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 | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65 for pjproject 2.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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 132 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 510 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 511 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 552 | PACKAGE_VERSION='2.x' |
| 553 | PACKAGE_STRING='pjproject 2.x' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 554 | PACKAGE_BUGREPORT='' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +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 | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 593 | ac_subst_vars='LTLIBOBJS |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 594 | LIBOBJS |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +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_resample_dll |
| 614 | ac_no_ilbc_codec |
| 615 | ac_no_speex_codec |
| 616 | ac_no_g7221_codec |
| 617 | ac_no_g722_codec |
| 618 | ac_no_gsm_codec |
| 619 | ac_no_l16_codec |
| 620 | ac_no_g711_codec |
| 621 | ac_no_speex_aec |
| 622 | ac_no_large_filter |
| 623 | ac_no_small_filter |
| 624 | ac_qt_cflags |
| 625 | ac_pjmedia_video_has_qt |
| 626 | ac_ios_cflags |
| 627 | ac_pjmedia_video_has_ios |
| 628 | ac_pjmedia_video |
| 629 | ac_pa_use_oss |
| 630 | ac_pa_use_alsa |
| 631 | ac_pa_cflags |
| 632 | ac_external_pa |
| 633 | ac_pjmedia_snd |
| 634 | ac_external_gsm |
| 635 | ac_external_speex |
| 636 | ac_os_objs |
| 637 | EGREP |
| 638 | GREP |
| 639 | CPP |
| 640 | ac_shlib_suffix |
| 641 | ac_build_mak_vars |
| 642 | ac_pjdir |
| 643 | CC_CFLAGS |
| 644 | CC_OPTIMIZE |
| 645 | CC_DEF |
| 646 | CC_INC |
| 647 | CC_OUT |
| 648 | LIBEXT2 |
| 649 | LIBEXT |
| 650 | RANLIB |
| 651 | LDOUT |
| 652 | LD |
| 653 | AR |
| 654 | ac_ct_CXX |
| 655 | CXXFLAGS |
| 656 | CXX |
| 657 | OBJEXT |
| 658 | EXEEXT |
| 659 | ac_ct_CC |
| 660 | CPPFLAGS |
| 661 | LDFLAGS |
| 662 | CFLAGS |
| 663 | CC |
| 664 | target_os |
| 665 | target_vendor |
| 666 | target_cpu |
| 667 | target |
| 668 | host_os |
| 669 | host_vendor |
| 670 | host_cpu |
| 671 | host |
| 672 | build_os |
| 673 | build_vendor |
| 674 | build_cpu |
| 675 | build |
| 676 | target_alias |
| 677 | host_alias |
| 678 | build_alias |
| 679 | LIBS |
| 680 | ECHO_T |
| 681 | ECHO_N |
| 682 | ECHO_C |
| 683 | DEFS |
| 684 | mandir |
| 685 | localedir |
| 686 | libdir |
| 687 | psdir |
| 688 | pdfdir |
| 689 | dvidir |
| 690 | htmldir |
| 691 | infodir |
| 692 | docdir |
| 693 | oldincludedir |
| 694 | includedir |
| 695 | localstatedir |
| 696 | sharedstatedir |
| 697 | sysconfdir |
| 698 | datadir |
| 699 | datarootdir |
| 700 | libexecdir |
| 701 | sbindir |
| 702 | bindir |
| 703 | program_transform_name |
| 704 | prefix |
| 705 | exec_prefix |
| 706 | PACKAGE_URL |
| 707 | PACKAGE_BUGREPORT |
| 708 | PACKAGE_STRING |
| 709 | PACKAGE_VERSION |
| 710 | PACKAGE_TARNAME |
| 711 | PACKAGE_NAME |
| 712 | PATH_SEPARATOR |
| 713 | SHELL' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 714 | ac_subst_files='' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 715 | ac_user_opts=' |
| 716 | enable_option_checking |
| 717 | enable_floating_point |
| 718 | enable_epoll |
| 719 | with_external_speex |
| 720 | with_external_gsm |
| 721 | enable_sound |
| 722 | with_external_pa |
| 723 | enable_oss |
| 724 | enable_ext_sound |
| 725 | enable_small_filter |
| 726 | enable_large_filter |
| 727 | enable_speex_aec |
| 728 | enable_g711_codec |
| 729 | enable_l16_codec |
| 730 | enable_gsm_codec |
| 731 | enable_g722_codec |
| 732 | enable_g7221_codec |
| 733 | enable_speex_codec |
| 734 | enable_ilbc_codec |
| 735 | enable_libsamplerate |
| 736 | enable_resample_dll |
| 737 | with_sdl |
| 738 | enable_sdl |
| 739 | enable_ffmpeg |
| 740 | with_ffmpeg |
| 741 | enable_v4l2 |
| 742 | enable_ipp |
| 743 | with_ipp |
| 744 | with_ipp_samples |
| 745 | with_ipp_arch |
| 746 | enable_ssl |
| 747 | enable_opencore_amrnb |
| 748 | ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 749 | ac_precious_vars='build_alias |
| 750 | host_alias |
| 751 | target_alias |
| 752 | CC |
| 753 | CFLAGS |
| 754 | LDFLAGS |
| 755 | LIBS |
| 756 | CPPFLAGS |
| 757 | CXX |
| 758 | CXXFLAGS |
| 759 | CCC |
| 760 | CPP' |
| 761 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 762 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 763 | # Initialize some variables set by options. |
| 764 | ac_init_help= |
| 765 | ac_init_version=false |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 766 | ac_unrecognized_opts= |
| 767 | ac_unrecognized_sep= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 768 | # The variables have the same names as the options, with |
| 769 | # dashes changed to underlines. |
| 770 | cache_file=/dev/null |
| 771 | exec_prefix=NONE |
| 772 | no_create= |
| 773 | no_recursion= |
| 774 | prefix=NONE |
| 775 | program_prefix=NONE |
| 776 | program_suffix=NONE |
| 777 | program_transform_name=s,x,x, |
| 778 | silent= |
| 779 | site= |
| 780 | srcdir= |
| 781 | verbose= |
| 782 | x_includes=NONE |
| 783 | x_libraries=NONE |
| 784 | |
| 785 | # Installation directory options. |
| 786 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 787 | # and all the variables that are supposed to be based on exec_prefix |
| 788 | # by default will actually change. |
| 789 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 790 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 791 | bindir='${exec_prefix}/bin' |
| 792 | sbindir='${exec_prefix}/sbin' |
| 793 | libexecdir='${exec_prefix}/libexec' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 794 | datarootdir='${prefix}/share' |
| 795 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 796 | sysconfdir='${prefix}/etc' |
| 797 | sharedstatedir='${prefix}/com' |
| 798 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 799 | includedir='${prefix}/include' |
| 800 | oldincludedir='/usr/include' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 801 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 802 | infodir='${datarootdir}/info' |
| 803 | htmldir='${docdir}' |
| 804 | dvidir='${docdir}' |
| 805 | pdfdir='${docdir}' |
| 806 | psdir='${docdir}' |
| 807 | libdir='${exec_prefix}/lib' |
| 808 | localedir='${datarootdir}/locale' |
| 809 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 810 | |
| 811 | ac_prev= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 812 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 813 | for ac_option |
| 814 | do |
| 815 | # If the previous option needs an argument, assign it. |
| 816 | if test -n "$ac_prev"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 817 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 818 | ac_prev= |
| 819 | continue |
| 820 | fi |
| 821 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 822 | case $ac_option in |
| 823 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 824 | *) ac_optarg=yes ;; |
| 825 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 826 | |
| 827 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 828 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 829 | case $ac_dashdash$ac_option in |
| 830 | --) |
| 831 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 832 | |
| 833 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 834 | ac_prev=bindir ;; |
| 835 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 836 | bindir=$ac_optarg ;; |
| 837 | |
| 838 | -build | --build | --buil | --bui | --bu) |
| 839 | ac_prev=build_alias ;; |
| 840 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 841 | build_alias=$ac_optarg ;; |
| 842 | |
| 843 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 844 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 845 | ac_prev=cache_file ;; |
| 846 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 847 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 848 | cache_file=$ac_optarg ;; |
| 849 | |
| 850 | --config-cache | -C) |
| 851 | cache_file=config.cache ;; |
| 852 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 853 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 854 | ac_prev=datadir ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 855 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 856 | datadir=$ac_optarg ;; |
| 857 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 858 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 859 | | --dataroo | --dataro | --datar) |
| 860 | ac_prev=datarootdir ;; |
| 861 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 862 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 863 | datarootdir=$ac_optarg ;; |
| 864 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 865 | -disable-* | --disable-*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 866 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 867 | # Reject names that are not valid shell variable names. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 868 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 869 | as_fn_error "invalid feature name: $ac_useropt" |
| 870 | ac_useropt_orig=$ac_useropt |
| 871 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 872 | case $ac_user_opts in |
| 873 | *" |
| 874 | "enable_$ac_useropt" |
| 875 | "*) ;; |
| 876 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 877 | ac_unrecognized_sep=', ';; |
| 878 | esac |
| 879 | eval enable_$ac_useropt=no ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 880 | |
| 881 | -docdir | --docdir | --docdi | --doc | --do) |
| 882 | ac_prev=docdir ;; |
| 883 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 884 | docdir=$ac_optarg ;; |
| 885 | |
| 886 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 887 | ac_prev=dvidir ;; |
| 888 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 889 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 890 | |
| 891 | -enable-* | --enable-*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 892 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 893 | # Reject names that are not valid shell variable names. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 894 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 895 | as_fn_error "invalid feature name: $ac_useropt" |
| 896 | ac_useropt_orig=$ac_useropt |
| 897 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 898 | case $ac_user_opts in |
| 899 | *" |
| 900 | "enable_$ac_useropt" |
| 901 | "*) ;; |
| 902 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 903 | ac_unrecognized_sep=', ';; |
| 904 | esac |
| 905 | eval enable_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 906 | |
| 907 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 908 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 909 | | --exec | --exe | --ex) |
| 910 | ac_prev=exec_prefix ;; |
| 911 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 912 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 913 | | --exec=* | --exe=* | --ex=*) |
| 914 | exec_prefix=$ac_optarg ;; |
| 915 | |
| 916 | -gas | --gas | --ga | --g) |
| 917 | # Obsolete; use --with-gas. |
| 918 | with_gas=yes ;; |
| 919 | |
| 920 | -help | --help | --hel | --he | -h) |
| 921 | ac_init_help=long ;; |
| 922 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 923 | ac_init_help=recursive ;; |
| 924 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 925 | ac_init_help=short ;; |
| 926 | |
| 927 | -host | --host | --hos | --ho) |
| 928 | ac_prev=host_alias ;; |
| 929 | -host=* | --host=* | --hos=* | --ho=*) |
| 930 | host_alias=$ac_optarg ;; |
| 931 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 932 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 933 | ac_prev=htmldir ;; |
| 934 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 935 | | --ht=*) |
| 936 | htmldir=$ac_optarg ;; |
| 937 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 938 | -includedir | --includedir | --includedi | --included | --include \ |
| 939 | | --includ | --inclu | --incl | --inc) |
| 940 | ac_prev=includedir ;; |
| 941 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 942 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 943 | includedir=$ac_optarg ;; |
| 944 | |
| 945 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 946 | ac_prev=infodir ;; |
| 947 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 948 | infodir=$ac_optarg ;; |
| 949 | |
| 950 | -libdir | --libdir | --libdi | --libd) |
| 951 | ac_prev=libdir ;; |
| 952 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 953 | libdir=$ac_optarg ;; |
| 954 | |
| 955 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 956 | | --libexe | --libex | --libe) |
| 957 | ac_prev=libexecdir ;; |
| 958 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 959 | | --libexe=* | --libex=* | --libe=*) |
| 960 | libexecdir=$ac_optarg ;; |
| 961 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 962 | -localedir | --localedir | --localedi | --localed | --locale) |
| 963 | ac_prev=localedir ;; |
| 964 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 965 | localedir=$ac_optarg ;; |
| 966 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 | ac_prev=localstatedir ;; |
| 970 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 971 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 972 | localstatedir=$ac_optarg ;; |
| 973 | |
| 974 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 975 | ac_prev=mandir ;; |
| 976 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 977 | mandir=$ac_optarg ;; |
| 978 | |
| 979 | -nfp | --nfp | --nf) |
| 980 | # Obsolete; use --without-fp. |
| 981 | with_fp=no ;; |
| 982 | |
| 983 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 984 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 985 | no_create=yes ;; |
| 986 | |
| 987 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 988 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 989 | no_recursion=yes ;; |
| 990 | |
| 991 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 992 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 993 | | --oldin | --oldi | --old | --ol | --o) |
| 994 | ac_prev=oldincludedir ;; |
| 995 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 996 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 997 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 998 | oldincludedir=$ac_optarg ;; |
| 999 | |
| 1000 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1001 | ac_prev=prefix ;; |
| 1002 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1003 | prefix=$ac_optarg ;; |
| 1004 | |
| 1005 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1006 | | --program-pre | --program-pr | --program-p) |
| 1007 | ac_prev=program_prefix ;; |
| 1008 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1009 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1010 | program_prefix=$ac_optarg ;; |
| 1011 | |
| 1012 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1013 | | --program-suf | --program-su | --program-s) |
| 1014 | ac_prev=program_suffix ;; |
| 1015 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1016 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1017 | program_suffix=$ac_optarg ;; |
| 1018 | |
| 1019 | -program-transform-name | --program-transform-name \ |
| 1020 | | --program-transform-nam | --program-transform-na \ |
| 1021 | | --program-transform-n | --program-transform- \ |
| 1022 | | --program-transform | --program-transfor \ |
| 1023 | | --program-transfo | --program-transf \ |
| 1024 | | --program-trans | --program-tran \ |
| 1025 | | --progr-tra | --program-tr | --program-t) |
| 1026 | ac_prev=program_transform_name ;; |
| 1027 | -program-transform-name=* | --program-transform-name=* \ |
| 1028 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1029 | | --program-transform-n=* | --program-transform-=* \ |
| 1030 | | --program-transform=* | --program-transfor=* \ |
| 1031 | | --program-transfo=* | --program-transf=* \ |
| 1032 | | --program-trans=* | --program-tran=* \ |
| 1033 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1034 | program_transform_name=$ac_optarg ;; |
| 1035 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1036 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1037 | ac_prev=pdfdir ;; |
| 1038 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1039 | pdfdir=$ac_optarg ;; |
| 1040 | |
| 1041 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1042 | ac_prev=psdir ;; |
| 1043 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1044 | psdir=$ac_optarg ;; |
| 1045 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1046 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1047 | | -silent | --silent | --silen | --sile | --sil) |
| 1048 | silent=yes ;; |
| 1049 | |
| 1050 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1051 | ac_prev=sbindir ;; |
| 1052 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1053 | | --sbi=* | --sb=*) |
| 1054 | sbindir=$ac_optarg ;; |
| 1055 | |
| 1056 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1057 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1058 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1059 | | --sha | --sh) |
| 1060 | ac_prev=sharedstatedir ;; |
| 1061 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1062 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1063 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1064 | | --sha=* | --sh=*) |
| 1065 | sharedstatedir=$ac_optarg ;; |
| 1066 | |
| 1067 | -site | --site | --sit) |
| 1068 | ac_prev=site ;; |
| 1069 | -site=* | --site=* | --sit=*) |
| 1070 | site=$ac_optarg ;; |
| 1071 | |
| 1072 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1073 | ac_prev=srcdir ;; |
| 1074 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1075 | srcdir=$ac_optarg ;; |
| 1076 | |
| 1077 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1078 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1079 | ac_prev=sysconfdir ;; |
| 1080 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1081 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1082 | sysconfdir=$ac_optarg ;; |
| 1083 | |
| 1084 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1085 | ac_prev=target_alias ;; |
| 1086 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1087 | target_alias=$ac_optarg ;; |
| 1088 | |
| 1089 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1090 | verbose=yes ;; |
| 1091 | |
| 1092 | -version | --version | --versio | --versi | --vers | -V) |
| 1093 | ac_init_version=: ;; |
| 1094 | |
| 1095 | -with-* | --with-*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1096 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1097 | # Reject names that are not valid shell variable names. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1098 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1099 | as_fn_error "invalid package name: $ac_useropt" |
| 1100 | ac_useropt_orig=$ac_useropt |
| 1101 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1102 | case $ac_user_opts in |
| 1103 | *" |
| 1104 | "with_$ac_useropt" |
| 1105 | "*) ;; |
| 1106 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1107 | ac_unrecognized_sep=', ';; |
| 1108 | esac |
| 1109 | eval with_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1110 | |
| 1111 | -without-* | --without-*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1112 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1113 | # Reject names that are not valid shell variable names. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1114 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1115 | as_fn_error "invalid package name: $ac_useropt" |
| 1116 | ac_useropt_orig=$ac_useropt |
| 1117 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1118 | case $ac_user_opts in |
| 1119 | *" |
| 1120 | "with_$ac_useropt" |
| 1121 | "*) ;; |
| 1122 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1123 | ac_unrecognized_sep=', ';; |
| 1124 | esac |
| 1125 | eval with_$ac_useropt=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1126 | |
| 1127 | --x) |
| 1128 | # Obsolete; use --with-x. |
| 1129 | with_x=yes ;; |
| 1130 | |
| 1131 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1132 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1133 | ac_prev=x_includes ;; |
| 1134 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1135 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1136 | x_includes=$ac_optarg ;; |
| 1137 | |
| 1138 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1139 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1140 | ac_prev=x_libraries ;; |
| 1141 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1142 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1143 | x_libraries=$ac_optarg ;; |
| 1144 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1145 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1146 | Try \`$0 --help' for more information." |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1147 | ;; |
| 1148 | |
| 1149 | *=*) |
| 1150 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1151 | # Reject names that are not valid shell variable names. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1152 | case $ac_envvar in #( |
| 1153 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1154 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1155 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1156 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1157 | export $ac_envvar ;; |
| 1158 | |
| 1159 | *) |
| 1160 | # FIXME: should be removed in autoconf 3.0. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1161 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1162 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1163 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1164 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1165 | ;; |
| 1166 | |
| 1167 | esac |
| 1168 | done |
| 1169 | |
| 1170 | if test -n "$ac_prev"; then |
| 1171 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1172 | as_fn_error "missing argument to $ac_option" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1173 | fi |
| 1174 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1175 | if test -n "$ac_unrecognized_opts"; then |
| 1176 | case $enable_option_checking in |
| 1177 | no) ;; |
| 1178 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1179 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1180 | esac |
| 1181 | fi |
| 1182 | |
| 1183 | # Check all directory arguments for consistency. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1184 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1185 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1186 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1187 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1188 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1189 | eval ac_val=\$$ac_var |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1190 | # Remove trailing slashes. |
| 1191 | case $ac_val in |
| 1192 | */ ) |
| 1193 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1194 | eval $ac_var=\$ac_val;; |
| 1195 | esac |
| 1196 | # Be sure to have absolute directory names. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1197 | case $ac_val in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1198 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1199 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1200 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1201 | 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] | 1202 | done |
| 1203 | |
| 1204 | # There might be people who depend on the old broken behavior: `$host' |
| 1205 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1206 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1207 | build=$build_alias |
| 1208 | host=$host_alias |
| 1209 | target=$target_alias |
| 1210 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1211 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1212 | if test "x$host_alias" != x; then |
| 1213 | if test "x$build_alias" = x; then |
| 1214 | cross_compiling=maybe |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1215 | $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] | 1216 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1217 | elif test "x$build_alias" != "x$host_alias"; then |
| 1218 | cross_compiling=yes |
| 1219 | fi |
| 1220 | fi |
| 1221 | |
| 1222 | ac_tool_prefix= |
| 1223 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1224 | |
| 1225 | test "$silent" = yes && exec 6>/dev/null |
| 1226 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1227 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1228 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1229 | ac_ls_di=`ls -di .` && |
| 1230 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1231 | as_fn_error "working directory cannot be determined" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1232 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1233 | as_fn_error "pwd does not report name of working directory" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1234 | |
| 1235 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1236 | # Find the source files, if location was not specified. |
| 1237 | if test -z "$srcdir"; then |
| 1238 | ac_srcdir_defaulted=yes |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1239 | # Try the directory containing this script, then the parent directory. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1240 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1241 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1242 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1243 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1244 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1245 | $as_echo X"$as_myself" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1246 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1247 | s//\1/ |
| 1248 | q |
| 1249 | } |
| 1250 | /^X\(\/\/\)[^/].*/{ |
| 1251 | s//\1/ |
| 1252 | q |
| 1253 | } |
| 1254 | /^X\(\/\/\)$/{ |
| 1255 | s//\1/ |
| 1256 | q |
| 1257 | } |
| 1258 | /^X\(\/\).*/{ |
| 1259 | s//\1/ |
| 1260 | q |
| 1261 | } |
| 1262 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1263 | srcdir=$ac_confdir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1264 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1265 | srcdir=.. |
| 1266 | fi |
| 1267 | else |
| 1268 | ac_srcdir_defaulted=no |
| 1269 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1270 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1271 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1272 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1273 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1274 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1275 | ac_abs_confdir=`( |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1276 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1277 | pwd)` |
| 1278 | # When building in place, set srcdir=. |
| 1279 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1280 | srcdir=. |
| 1281 | fi |
| 1282 | # Remove unnecessary trailing slashes from srcdir. |
| 1283 | # Double slashes in file names in object file debugging info |
| 1284 | # mess up M-x gdb in Emacs. |
| 1285 | case $srcdir in |
| 1286 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1287 | esac |
| 1288 | for ac_var in $ac_precious_vars; do |
| 1289 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1290 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1291 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1292 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1293 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1294 | |
| 1295 | # |
| 1296 | # Report the --help message. |
| 1297 | # |
| 1298 | if test "$ac_init_help" = "long"; then |
| 1299 | # Omit some internal or obsolete options to make the list less imposing. |
| 1300 | # 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] | 1301 | cat <<_ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1302 | \`configure' configures pjproject 2.x to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1303 | |
| 1304 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1305 | |
| 1306 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1307 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1308 | |
| 1309 | Defaults for the options are specified in brackets. |
| 1310 | |
| 1311 | Configuration: |
| 1312 | -h, --help display this help and exit |
| 1313 | --help=short display options specific to this package |
| 1314 | --help=recursive display the short help of all the included packages |
| 1315 | -V, --version display version information and exit |
| 1316 | -q, --quiet, --silent do not print \`checking...' messages |
| 1317 | --cache-file=FILE cache test results in FILE [disabled] |
| 1318 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1319 | -n, --no-create do not create output files |
| 1320 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1321 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1322 | Installation directories: |
| 1323 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1324 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1325 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1326 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1327 | |
| 1328 | By default, \`make install' will install all the files in |
| 1329 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1330 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1331 | for instance \`--prefix=\$HOME'. |
| 1332 | |
| 1333 | For better control, use the options below. |
| 1334 | |
| 1335 | Fine tuning of the installation directories: |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1336 | --bindir=DIR user executables [EPREFIX/bin] |
| 1337 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1338 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1339 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1340 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1341 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1342 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1343 | --includedir=DIR C header files [PREFIX/include] |
| 1344 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1345 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1346 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1347 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1348 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1349 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1350 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1351 | --htmldir=DIR html documentation [DOCDIR] |
| 1352 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1353 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1354 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1355 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1356 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1357 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1358 | |
| 1359 | System types: |
| 1360 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1361 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1362 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1363 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1364 | fi |
| 1365 | |
| 1366 | if test -n "$ac_init_help"; then |
| 1367 | case $ac_init_help in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1368 | short | recursive ) echo "Configuration of pjproject 2.x:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1369 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1370 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1371 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1372 | Optional Features: |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1373 | --disable-option-checking ignore unrecognized --enable/--with options |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1374 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1375 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1376 | --disable-floating-point |
| 1377 | Disable floating point where possible |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1378 | --enable-epoll Use /dev/epoll ioqueue on Linux (experimental) |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1379 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1380 | --disable-oss Disable OSS audio (default: not disabled) |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 1381 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1382 | --disable-small-filter Exclude small filter in resampling |
| 1383 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1384 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1385 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1386 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1387 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 1388 | --disable-g722-codec Exclude G.722 codec in the build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1389 | --disable-g7221-codec Exclude G.7221 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1390 | --disable-speex-codec Exclude Speex codecs in the build |
| 1391 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1392 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1393 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1394 | --enable-resample-dll Build libresample as shared library |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 1395 | --disable-sdl Disable SDL (default: not disabled) |
| 1396 | --disable-ffmpeg Disable ffmpeg (default: not disabled) |
| 1397 | --disable-v4l2 Disable Video4Linux2 (default: not disabled) |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1398 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 1399 | package and samples location using IPPROOT and |
| 1400 | IPPSAMPLES env var or with --with-ipp and |
| 1401 | --with-ipp-samples options |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1402 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1403 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 1404 | --disable-opencore-amrnb |
| 1405 | Exclude OpenCORE AMR-NB support from the build |
| 1406 | (default: autodetect) |
| 1407 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1408 | |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1409 | Optional Packages: |
| 1410 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1411 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1412 | --with-external-speex Use external Speex development files, not the one in |
| 1413 | "third_party" directory. When this option is set, |
| 1414 | make sure that Speex is accessible to use (hint: use |
| 1415 | CFLAGS and LDFLAGS env var to set the include/lib |
| 1416 | paths) |
| 1417 | --with-external-gsm Use external GSM codec library, not the one in |
| 1418 | "third_party" directory. When this option is set, |
| 1419 | make sure that the GSM include/lib files are |
| 1420 | accessible to use (hint: use CFLAGS and LDFLAGS env |
| 1421 | var to set the include/lib paths) |
| 1422 | --with-external-pa Use external PortAudio development files, not the |
| 1423 | one in "third_party" directory. When this option is |
| 1424 | set, make sure that PortAudio is accessible to use |
| 1425 | (hint: use CFLAGS and LDFLAGS env var to set the |
| 1426 | include/lib paths) |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 1427 | --with-sdl=DIR Specify alternate libSDL prefix |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 1428 | --with-ffmpeg=DIR Specify alternate FFMPEG prefix |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 1429 | --with-ipp=DIR Specify the Intel IPP location |
| 1430 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
| 1431 | --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] | 1432 | "em64t. Default is blank for IA32" |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1433 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1434 | Some influential environment variables: |
| 1435 | CC C compiler command |
| 1436 | CFLAGS C compiler flags |
| 1437 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1438 | nonstandard directory <lib dir> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1439 | LIBS libraries to pass to the linker, e.g. -l<library> |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1440 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1441 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1442 | CXX C++ compiler command |
| 1443 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1444 | CPP C preprocessor |
| 1445 | |
| 1446 | Use these variables to override the choices made by `configure' or to help |
| 1447 | it to find libraries and programs with nonstandard names/locations. |
| 1448 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1449 | Report bugs to the package provider. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1450 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1451 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1452 | fi |
| 1453 | |
| 1454 | if test "$ac_init_help" = "recursive"; then |
| 1455 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1456 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1457 | test -d "$ac_dir" || |
| 1458 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1459 | continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1460 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1461 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1462 | case "$ac_dir" in |
| 1463 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1464 | *) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1465 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1466 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1467 | 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] | 1468 | case $ac_top_builddir_sub in |
| 1469 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1470 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1471 | esac ;; |
| 1472 | esac |
| 1473 | ac_abs_top_builddir=$ac_pwd |
| 1474 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1475 | # for backward compatibility: |
| 1476 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1477 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1478 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1479 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1480 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1481 | ac_top_srcdir=$ac_top_builddir_sub |
| 1482 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1483 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1484 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1485 | ac_top_srcdir=$srcdir |
| 1486 | ac_abs_top_srcdir=$srcdir ;; |
| 1487 | *) # Relative name. |
| 1488 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1489 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1490 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1491 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1492 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1493 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1494 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1495 | # Check for guested configure. |
| 1496 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1497 | echo && |
| 1498 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1499 | elif test -f "$ac_srcdir/configure"; then |
| 1500 | echo && |
| 1501 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1502 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1503 | $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] | 1504 | fi || ac_status=$? |
| 1505 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1506 | done |
| 1507 | fi |
| 1508 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1509 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1510 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1511 | cat <<\_ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1512 | pjproject configure 2.x |
| 1513 | generated by GNU Autoconf 2.65 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1514 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1515 | Copyright (C) 2009 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1516 | This configure script is free software; the Free Software Foundation |
| 1517 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1518 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1519 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1520 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1521 | |
| 1522 | ## ------------------------ ## |
| 1523 | ## Autoconf initialization. ## |
| 1524 | ## ------------------------ ## |
| 1525 | |
| 1526 | # ac_fn_c_try_compile LINENO |
| 1527 | # -------------------------- |
| 1528 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1529 | ac_fn_c_try_compile () |
| 1530 | { |
| 1531 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1532 | rm -f conftest.$ac_objext |
| 1533 | if { { ac_try="$ac_compile" |
| 1534 | case "(($ac_try" in |
| 1535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1536 | *) ac_try_echo=$ac_try;; |
| 1537 | esac |
| 1538 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1539 | $as_echo "$ac_try_echo"; } >&5 |
| 1540 | (eval "$ac_compile") 2>conftest.err |
| 1541 | ac_status=$? |
| 1542 | if test -s conftest.err; then |
| 1543 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1544 | cat conftest.er1 >&5 |
| 1545 | mv -f conftest.er1 conftest.err |
| 1546 | fi |
| 1547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1548 | test $ac_status = 0; } && { |
| 1549 | test -z "$ac_c_werror_flag" || |
| 1550 | test ! -s conftest.err |
| 1551 | } && test -s conftest.$ac_objext; then : |
| 1552 | ac_retval=0 |
| 1553 | else |
| 1554 | $as_echo "$as_me: failed program was:" >&5 |
| 1555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1556 | |
| 1557 | ac_retval=1 |
| 1558 | fi |
| 1559 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1560 | as_fn_set_status $ac_retval |
| 1561 | |
| 1562 | } # ac_fn_c_try_compile |
| 1563 | |
| 1564 | # ac_fn_cxx_try_compile LINENO |
| 1565 | # ---------------------------- |
| 1566 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1567 | ac_fn_cxx_try_compile () |
| 1568 | { |
| 1569 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1570 | rm -f conftest.$ac_objext |
| 1571 | if { { ac_try="$ac_compile" |
| 1572 | case "(($ac_try" in |
| 1573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1574 | *) ac_try_echo=$ac_try;; |
| 1575 | esac |
| 1576 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1577 | $as_echo "$ac_try_echo"; } >&5 |
| 1578 | (eval "$ac_compile") 2>conftest.err |
| 1579 | ac_status=$? |
| 1580 | if test -s conftest.err; then |
| 1581 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1582 | cat conftest.er1 >&5 |
| 1583 | mv -f conftest.er1 conftest.err |
| 1584 | fi |
| 1585 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1586 | test $ac_status = 0; } && { |
| 1587 | test -z "$ac_cxx_werror_flag" || |
| 1588 | test ! -s conftest.err |
| 1589 | } && test -s conftest.$ac_objext; then : |
| 1590 | ac_retval=0 |
| 1591 | else |
| 1592 | $as_echo "$as_me: failed program was:" >&5 |
| 1593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1594 | |
| 1595 | ac_retval=1 |
| 1596 | fi |
| 1597 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1598 | as_fn_set_status $ac_retval |
| 1599 | |
| 1600 | } # ac_fn_cxx_try_compile |
| 1601 | |
| 1602 | # ac_fn_c_try_link LINENO |
| 1603 | # ----------------------- |
| 1604 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1605 | ac_fn_c_try_link () |
| 1606 | { |
| 1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1608 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1609 | if { { ac_try="$ac_link" |
| 1610 | case "(($ac_try" in |
| 1611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1612 | *) ac_try_echo=$ac_try;; |
| 1613 | esac |
| 1614 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1615 | $as_echo "$ac_try_echo"; } >&5 |
| 1616 | (eval "$ac_link") 2>conftest.err |
| 1617 | ac_status=$? |
| 1618 | if test -s conftest.err; then |
| 1619 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1620 | cat conftest.er1 >&5 |
| 1621 | mv -f conftest.er1 conftest.err |
| 1622 | fi |
| 1623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1624 | test $ac_status = 0; } && { |
| 1625 | test -z "$ac_c_werror_flag" || |
| 1626 | test ! -s conftest.err |
| 1627 | } && test -s conftest$ac_exeext && { |
| 1628 | test "$cross_compiling" = yes || |
| 1629 | $as_test_x conftest$ac_exeext |
| 1630 | }; then : |
| 1631 | ac_retval=0 |
| 1632 | else |
| 1633 | $as_echo "$as_me: failed program was:" >&5 |
| 1634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1635 | |
| 1636 | ac_retval=1 |
| 1637 | fi |
| 1638 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1639 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1640 | # interfere with the next link command; also delete a directory that is |
| 1641 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1642 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1643 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1644 | as_fn_set_status $ac_retval |
| 1645 | |
| 1646 | } # ac_fn_c_try_link |
| 1647 | |
| 1648 | # ac_fn_c_try_run LINENO |
| 1649 | # ---------------------- |
| 1650 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1651 | # that executables *can* be run. |
| 1652 | ac_fn_c_try_run () |
| 1653 | { |
| 1654 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1655 | if { { ac_try="$ac_link" |
| 1656 | case "(($ac_try" in |
| 1657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1658 | *) ac_try_echo=$ac_try;; |
| 1659 | esac |
| 1660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1661 | $as_echo "$ac_try_echo"; } >&5 |
| 1662 | (eval "$ac_link") 2>&5 |
| 1663 | ac_status=$? |
| 1664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1665 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1666 | { { case "(($ac_try" in |
| 1667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1668 | *) ac_try_echo=$ac_try;; |
| 1669 | esac |
| 1670 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1671 | $as_echo "$ac_try_echo"; } >&5 |
| 1672 | (eval "$ac_try") 2>&5 |
| 1673 | ac_status=$? |
| 1674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1675 | test $ac_status = 0; }; }; then : |
| 1676 | ac_retval=0 |
| 1677 | else |
| 1678 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1679 | $as_echo "$as_me: failed program was:" >&5 |
| 1680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1681 | |
| 1682 | ac_retval=$ac_status |
| 1683 | fi |
| 1684 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1685 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1686 | as_fn_set_status $ac_retval |
| 1687 | |
| 1688 | } # ac_fn_c_try_run |
| 1689 | |
| 1690 | # ac_fn_c_try_cpp LINENO |
| 1691 | # ---------------------- |
| 1692 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1693 | ac_fn_c_try_cpp () |
| 1694 | { |
| 1695 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1696 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1697 | case "(($ac_try" in |
| 1698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1699 | *) ac_try_echo=$ac_try;; |
| 1700 | esac |
| 1701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1702 | $as_echo "$ac_try_echo"; } >&5 |
| 1703 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1704 | ac_status=$? |
| 1705 | if test -s conftest.err; then |
| 1706 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1707 | cat conftest.er1 >&5 |
| 1708 | mv -f conftest.er1 conftest.err |
| 1709 | fi |
| 1710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1711 | test $ac_status = 0; } >/dev/null && { |
| 1712 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1713 | test ! -s conftest.err |
| 1714 | }; then : |
| 1715 | ac_retval=0 |
| 1716 | else |
| 1717 | $as_echo "$as_me: failed program was:" >&5 |
| 1718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1719 | |
| 1720 | ac_retval=1 |
| 1721 | fi |
| 1722 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1723 | as_fn_set_status $ac_retval |
| 1724 | |
| 1725 | } # ac_fn_c_try_cpp |
| 1726 | |
| 1727 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1728 | # ------------------------------------------------------- |
| 1729 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1730 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1731 | ac_fn_c_check_header_compile () |
| 1732 | { |
| 1733 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1735 | $as_echo_n "checking for $2... " >&6; } |
| 1736 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1737 | $as_echo_n "(cached) " >&6 |
| 1738 | else |
| 1739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1740 | /* end confdefs.h. */ |
| 1741 | $4 |
| 1742 | #include <$2> |
| 1743 | _ACEOF |
| 1744 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1745 | eval "$3=yes" |
| 1746 | else |
| 1747 | eval "$3=no" |
| 1748 | fi |
| 1749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1750 | fi |
| 1751 | eval ac_res=\$$3 |
| 1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1753 | $as_echo "$ac_res" >&6; } |
| 1754 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1755 | |
| 1756 | } # ac_fn_c_check_header_compile |
| 1757 | |
| 1758 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1759 | # ------------------------------------------------------- |
| 1760 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1761 | # the include files in INCLUDES and setting the cache variable VAR |
| 1762 | # accordingly. |
| 1763 | ac_fn_c_check_header_mongrel () |
| 1764 | { |
| 1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1766 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1768 | $as_echo_n "checking for $2... " >&6; } |
| 1769 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1770 | $as_echo_n "(cached) " >&6 |
| 1771 | fi |
| 1772 | eval ac_res=\$$3 |
| 1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1774 | $as_echo "$ac_res" >&6; } |
| 1775 | else |
| 1776 | # Is the header compilable? |
| 1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1778 | $as_echo_n "checking $2 usability... " >&6; } |
| 1779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1780 | /* end confdefs.h. */ |
| 1781 | $4 |
| 1782 | #include <$2> |
| 1783 | _ACEOF |
| 1784 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1785 | ac_header_compiler=yes |
| 1786 | else |
| 1787 | ac_header_compiler=no |
| 1788 | fi |
| 1789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1791 | $as_echo "$ac_header_compiler" >&6; } |
| 1792 | |
| 1793 | # Is the header present? |
| 1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1795 | $as_echo_n "checking $2 presence... " >&6; } |
| 1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1797 | /* end confdefs.h. */ |
| 1798 | #include <$2> |
| 1799 | _ACEOF |
| 1800 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1801 | ac_header_preproc=yes |
| 1802 | else |
| 1803 | ac_header_preproc=no |
| 1804 | fi |
| 1805 | rm -f conftest.err conftest.$ac_ext |
| 1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1807 | $as_echo "$ac_header_preproc" >&6; } |
| 1808 | |
| 1809 | # So? What about this header? |
| 1810 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1811 | yes:no: ) |
| 1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1813 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1815 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1816 | ;; |
| 1817 | no:yes:* ) |
| 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1819 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1821 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1823 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1825 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1827 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1828 | ;; |
| 1829 | esac |
| 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1831 | $as_echo_n "checking for $2... " >&6; } |
| 1832 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1833 | $as_echo_n "(cached) " >&6 |
| 1834 | else |
| 1835 | eval "$3=\$ac_header_compiler" |
| 1836 | fi |
| 1837 | eval ac_res=\$$3 |
| 1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1839 | $as_echo "$ac_res" >&6; } |
| 1840 | fi |
| 1841 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1842 | |
| 1843 | } # ac_fn_c_check_header_mongrel |
| 1844 | |
| 1845 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1846 | # ---------------------------------- |
| 1847 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1848 | ac_fn_c_check_func () |
| 1849 | { |
| 1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1852 | $as_echo_n "checking for $2... " >&6; } |
| 1853 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1854 | $as_echo_n "(cached) " >&6 |
| 1855 | else |
| 1856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1857 | /* end confdefs.h. */ |
| 1858 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1859 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1860 | #define $2 innocuous_$2 |
| 1861 | |
| 1862 | /* System header to define __stub macros and hopefully few prototypes, |
| 1863 | which can conflict with char $2 (); below. |
| 1864 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1865 | <limits.h> exists even on freestanding compilers. */ |
| 1866 | |
| 1867 | #ifdef __STDC__ |
| 1868 | # include <limits.h> |
| 1869 | #else |
| 1870 | # include <assert.h> |
| 1871 | #endif |
| 1872 | |
| 1873 | #undef $2 |
| 1874 | |
| 1875 | /* Override any GCC internal prototype to avoid an error. |
| 1876 | Use char because int might match the return type of a GCC |
| 1877 | builtin and then its argument prototype would still apply. */ |
| 1878 | #ifdef __cplusplus |
| 1879 | extern "C" |
| 1880 | #endif |
| 1881 | char $2 (); |
| 1882 | /* The GNU C library defines this for functions which it implements |
| 1883 | to always fail with ENOSYS. Some functions are actually named |
| 1884 | something starting with __ and the normal name is an alias. */ |
| 1885 | #if defined __stub_$2 || defined __stub___$2 |
| 1886 | choke me |
| 1887 | #endif |
| 1888 | |
| 1889 | int |
| 1890 | main () |
| 1891 | { |
| 1892 | return $2 (); |
| 1893 | ; |
| 1894 | return 0; |
| 1895 | } |
| 1896 | _ACEOF |
| 1897 | if ac_fn_c_try_link "$LINENO"; then : |
| 1898 | eval "$3=yes" |
| 1899 | else |
| 1900 | eval "$3=no" |
| 1901 | fi |
| 1902 | rm -f core conftest.err conftest.$ac_objext \ |
| 1903 | conftest$ac_exeext conftest.$ac_ext |
| 1904 | fi |
| 1905 | eval ac_res=\$$3 |
| 1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1907 | $as_echo "$ac_res" >&6; } |
| 1908 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1909 | |
| 1910 | } # ac_fn_c_check_func |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1911 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1912 | This file contains any messages produced by compilers while |
| 1913 | running configure, to aid debugging if configure makes a mistake. |
| 1914 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1915 | It was created by pjproject $as_me 2.x, which was |
| 1916 | generated by GNU Autoconf 2.65. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1917 | |
| 1918 | $ $0 $@ |
| 1919 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1920 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1921 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1922 | { |
| 1923 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1924 | ## --------- ## |
| 1925 | ## Platform. ## |
| 1926 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1927 | |
| 1928 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1929 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1930 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1931 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1932 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1933 | |
| 1934 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1935 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1936 | |
| 1937 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1938 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1939 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1940 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1941 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1942 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1943 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1944 | |
| 1945 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1946 | |
| 1947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1948 | for as_dir in $PATH |
| 1949 | do |
| 1950 | IFS=$as_save_IFS |
| 1951 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1952 | $as_echo "PATH: $as_dir" |
| 1953 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1954 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1955 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1956 | } >&5 |
| 1957 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1958 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1959 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1960 | |
| 1961 | ## ----------- ## |
| 1962 | ## Core tests. ## |
| 1963 | ## ----------- ## |
| 1964 | |
| 1965 | _ACEOF |
| 1966 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1967 | |
| 1968 | # Keep a trace of the command line. |
| 1969 | # 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] | 1970 | # 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] | 1971 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1972 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1973 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1974 | ac_configure_args0= |
| 1975 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1976 | ac_must_keep_next=false |
| 1977 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1978 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1979 | for ac_arg |
| 1980 | do |
| 1981 | case $ac_arg in |
| 1982 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1983 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1984 | | -silent | --silent | --silen | --sile | --sil) |
| 1985 | continue ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1986 | *\'*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1987 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1988 | esac |
| 1989 | case $ac_pass in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1990 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1991 | 2) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1992 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1993 | if test $ac_must_keep_next = true; then |
| 1994 | ac_must_keep_next=false # Got value, back to normal. |
| 1995 | else |
| 1996 | case $ac_arg in |
| 1997 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1998 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1999 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2000 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2001 | case "$ac_configure_args0 " in |
| 2002 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2003 | esac |
| 2004 | ;; |
| 2005 | -* ) ac_must_keep_next=true ;; |
| 2006 | esac |
| 2007 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2008 | as_fn_append ac_configure_args " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2009 | ;; |
| 2010 | esac |
| 2011 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2012 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2013 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2014 | { ac_configure_args1=; unset ac_configure_args1;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2015 | |
| 2016 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2017 | # config.log. We remove comments because anyway the quotes in there |
| 2018 | # would cause problems or look ugly. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2019 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2020 | # 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] | 2021 | trap 'exit_status=$? |
| 2022 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2023 | { |
| 2024 | echo |
| 2025 | |
| 2026 | cat <<\_ASBOX |
| 2027 | ## ---------------- ## |
| 2028 | ## Cache variables. ## |
| 2029 | ## ---------------- ## |
| 2030 | _ASBOX |
| 2031 | echo |
| 2032 | # The following way of writing the cache mishandles newlines in values, |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2033 | ( |
| 2034 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2035 | eval ac_val=\$$ac_var |
| 2036 | case $ac_val in #( |
| 2037 | *${as_nl}*) |
| 2038 | case $ac_var in #( |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2039 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2040 | $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] | 2041 | esac |
| 2042 | case $ac_var in #( |
| 2043 | _ | IFS | as_nl) ;; #( |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2044 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2045 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2046 | esac ;; |
| 2047 | esac |
| 2048 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2049 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2050 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2051 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2052 | sed -n \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2053 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2054 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2055 | ;; #( |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2056 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2057 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2058 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2059 | esac | |
| 2060 | sort |
| 2061 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2062 | echo |
| 2063 | |
| 2064 | cat <<\_ASBOX |
| 2065 | ## ----------------- ## |
| 2066 | ## Output variables. ## |
| 2067 | ## ----------------- ## |
| 2068 | _ASBOX |
| 2069 | echo |
| 2070 | for ac_var in $ac_subst_vars |
| 2071 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2072 | eval ac_val=\$$ac_var |
| 2073 | case $ac_val in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2074 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2075 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2076 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2077 | done | sort |
| 2078 | echo |
| 2079 | |
| 2080 | if test -n "$ac_subst_files"; then |
| 2081 | cat <<\_ASBOX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2082 | ## ------------------- ## |
| 2083 | ## File substitutions. ## |
| 2084 | ## ------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2085 | _ASBOX |
| 2086 | echo |
| 2087 | for ac_var in $ac_subst_files |
| 2088 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2089 | eval ac_val=\$$ac_var |
| 2090 | case $ac_val in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2091 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2092 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2093 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2094 | done | sort |
| 2095 | echo |
| 2096 | fi |
| 2097 | |
| 2098 | if test -s confdefs.h; then |
| 2099 | cat <<\_ASBOX |
| 2100 | ## ----------- ## |
| 2101 | ## confdefs.h. ## |
| 2102 | ## ----------- ## |
| 2103 | _ASBOX |
| 2104 | echo |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2105 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2106 | echo |
| 2107 | fi |
| 2108 | test "$ac_signal" != 0 && |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2109 | $as_echo "$as_me: caught signal $ac_signal" |
| 2110 | $as_echo "$as_me: exit $exit_status" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2111 | } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2112 | rm -f core *.core core.conftest.* && |
| 2113 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2114 | exit $exit_status |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2115 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2116 | for ac_signal in 1 2 13 15; do |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2117 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2118 | done |
| 2119 | ac_signal=0 |
| 2120 | |
| 2121 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2122 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2123 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2124 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2125 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2126 | # Predefined preprocessor variables. |
| 2127 | |
| 2128 | cat >>confdefs.h <<_ACEOF |
| 2129 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2130 | _ACEOF |
| 2131 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2132 | cat >>confdefs.h <<_ACEOF |
| 2133 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2134 | _ACEOF |
| 2135 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2136 | cat >>confdefs.h <<_ACEOF |
| 2137 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2138 | _ACEOF |
| 2139 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2140 | cat >>confdefs.h <<_ACEOF |
| 2141 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2142 | _ACEOF |
| 2143 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2144 | cat >>confdefs.h <<_ACEOF |
| 2145 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2146 | _ACEOF |
| 2147 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2148 | cat >>confdefs.h <<_ACEOF |
| 2149 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2150 | _ACEOF |
| 2151 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2152 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2153 | # Let the site file select an alternate cache file if it wants to. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2154 | # Prefer an explicitly selected file to automatically selected ones. |
| 2155 | ac_site_file1=NONE |
| 2156 | ac_site_file2=NONE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2157 | if test -n "$CONFIG_SITE"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2158 | ac_site_file1=$CONFIG_SITE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2159 | elif test "x$prefix" != xNONE; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2160 | ac_site_file1=$prefix/share/config.site |
| 2161 | ac_site_file2=$prefix/etc/config.site |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2162 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2163 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2164 | ac_site_file2=$ac_default_prefix/etc/config.site |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2165 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2166 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2167 | do |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2168 | test "x$ac_site_file" = xNONE && continue |
| 2169 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2171 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2172 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2173 | . "$ac_site_file" |
| 2174 | fi |
| 2175 | done |
| 2176 | |
| 2177 | if test -r "$cache_file"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2178 | # Some versions of bash will fail to source /dev/null (special files |
| 2179 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2180 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2182 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2183 | case $cache_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2184 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2185 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2186 | esac |
| 2187 | fi |
| 2188 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2189 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2190 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2191 | >$cache_file |
| 2192 | fi |
| 2193 | |
| 2194 | # Check that the precious variables saved in the cache have kept the same |
| 2195 | # value. |
| 2196 | ac_cache_corrupted=false |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2197 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2198 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2199 | eval ac_new_set=\$ac_env_${ac_var}_set |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2200 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2201 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2202 | case $ac_old_set,$ac_new_set in |
| 2203 | set,) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2205 | $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] | 2206 | ac_cache_corrupted=: ;; |
| 2207 | ,set) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2209 | $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] | 2210 | ac_cache_corrupted=: ;; |
| 2211 | ,);; |
| 2212 | *) |
| 2213 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2214 | # differences in whitespace do not lead to failure. |
| 2215 | ac_old_val_w=`echo x $ac_old_val` |
| 2216 | ac_new_val_w=`echo x $ac_new_val` |
| 2217 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2219 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2220 | ac_cache_corrupted=: |
| 2221 | else |
| 2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2223 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2224 | eval $ac_var=\$ac_old_val |
| 2225 | fi |
| 2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2227 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2228 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2229 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2230 | fi;; |
| 2231 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2232 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2233 | if test "$ac_new_set" = set; then |
| 2234 | case $ac_new_val in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2235 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2236 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2237 | esac |
| 2238 | case " $ac_configure_args " in |
| 2239 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2240 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2241 | esac |
| 2242 | fi |
| 2243 | done |
| 2244 | if $ac_cache_corrupted; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2246 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2248 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2249 | 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] | 2250 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2251 | ## -------------------- ## |
| 2252 | ## Main body of script. ## |
| 2253 | ## -------------------- ## |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2254 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2255 | ac_ext=c |
| 2256 | ac_cpp='$CPP $CPPFLAGS' |
| 2257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2260 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2261 | |
| 2262 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2263 | host_orig="$host" |
| 2264 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2265 | ac_aux_dir= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2266 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2267 | for ac_t in install-sh install.sh shtool; do |
| 2268 | if test -f "$ac_dir/$ac_t"; then |
| 2269 | ac_aux_dir=$ac_dir |
| 2270 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2271 | break 2 |
| 2272 | fi |
| 2273 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2274 | done |
| 2275 | if test -z "$ac_aux_dir"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2276 | 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] | 2277 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2278 | |
| 2279 | # These three variables are undocumented and unsupported, |
| 2280 | # and are intended to be withdrawn in a future Autoconf release. |
| 2281 | # They can cause serious problems if a builder's source tree is in a directory |
| 2282 | # whose full name contains unusual characters. |
| 2283 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2284 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2285 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2286 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2287 | |
| 2288 | # Make sure we can run config.sub. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2289 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2290 | 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] | 2291 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2293 | $as_echo_n "checking build system type... " >&6; } |
| 2294 | if test "${ac_cv_build+set}" = set; then : |
| 2295 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2296 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2297 | ac_build_alias=$build_alias |
| 2298 | test "x$ac_build_alias" = x && |
| 2299 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2300 | test "x$ac_build_alias" = x && |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2301 | 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] | 2302 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2303 | 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] | 2304 | |
| 2305 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2307 | $as_echo "$ac_cv_build" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2308 | case $ac_cv_build in |
| 2309 | *-*-*) ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2310 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2311 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2312 | build=$ac_cv_build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2313 | ac_save_IFS=$IFS; IFS='-' |
| 2314 | set x $ac_cv_build |
| 2315 | shift |
| 2316 | build_cpu=$1 |
| 2317 | build_vendor=$2 |
| 2318 | shift; shift |
| 2319 | # Remember, the first character of IFS is used to create $*, |
| 2320 | # except with old shells: |
| 2321 | build_os=$* |
| 2322 | IFS=$ac_save_IFS |
| 2323 | 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] | 2324 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2325 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2327 | $as_echo_n "checking host system type... " >&6; } |
| 2328 | if test "${ac_cv_host+set}" = set; then : |
| 2329 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2330 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2331 | if test "x$host_alias" = x; then |
| 2332 | ac_cv_host=$ac_cv_build |
| 2333 | else |
| 2334 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2335 | 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] | 2336 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2337 | |
| 2338 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2340 | $as_echo "$ac_cv_host" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2341 | case $ac_cv_host in |
| 2342 | *-*-*) ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2343 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2344 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2345 | host=$ac_cv_host |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2346 | ac_save_IFS=$IFS; IFS='-' |
| 2347 | set x $ac_cv_host |
| 2348 | shift |
| 2349 | host_cpu=$1 |
| 2350 | host_vendor=$2 |
| 2351 | shift; shift |
| 2352 | # Remember, the first character of IFS is used to create $*, |
| 2353 | # except with old shells: |
| 2354 | host_os=$* |
| 2355 | IFS=$ac_save_IFS |
| 2356 | 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] | 2357 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2358 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 2360 | $as_echo_n "checking target system type... " >&6; } |
| 2361 | if test "${ac_cv_target+set}" = set; then : |
| 2362 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2363 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2364 | if test "x$target_alias" = x; then |
| 2365 | ac_cv_target=$ac_cv_host |
| 2366 | else |
| 2367 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2368 | 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] | 2369 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2370 | |
| 2371 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 2373 | $as_echo "$ac_cv_target" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2374 | case $ac_cv_target in |
| 2375 | *-*-*) ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2376 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2377 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2378 | target=$ac_cv_target |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2379 | ac_save_IFS=$IFS; IFS='-' |
| 2380 | set x $ac_cv_target |
| 2381 | shift |
| 2382 | target_cpu=$1 |
| 2383 | target_vendor=$2 |
| 2384 | shift; shift |
| 2385 | # Remember, the first character of IFS is used to create $*, |
| 2386 | # except with old shells: |
| 2387 | target_os=$* |
| 2388 | IFS=$ac_save_IFS |
| 2389 | 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] | 2390 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2391 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2392 | # The aliases save the names the user supplied, while $host etc. |
| 2393 | # will get canonicalized. |
| 2394 | test -n "$target_alias" && |
| 2395 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2396 | NONENONEs,x,x, && |
| 2397 | program_prefix=${target_alias}- |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2398 | 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] | 2399 | |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 2400 | 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] | 2401 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2402 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2403 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2404 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 2405 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2406 | else |
| 2407 | CFLAGS="$CFLAGS" |
| 2408 | fi |
| 2409 | |
| 2410 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 2411 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2412 | ac_ext=c |
| 2413 | ac_cpp='$CPP $CPPFLAGS' |
| 2414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2417 | if test -n "$ac_tool_prefix"; then |
| 2418 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2419 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2421 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2422 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2423 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2424 | else |
| 2425 | if test -n "$CC"; then |
| 2426 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2427 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2429 | for as_dir in $PATH |
| 2430 | do |
| 2431 | IFS=$as_save_IFS |
| 2432 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2433 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2434 | 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] | 2435 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2436 | $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] | 2437 | break 2 |
| 2438 | fi |
| 2439 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2440 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2441 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2442 | |
| 2443 | fi |
| 2444 | fi |
| 2445 | CC=$ac_cv_prog_CC |
| 2446 | if test -n "$CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2448 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2449 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2451 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2452 | fi |
| 2453 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2454 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2455 | fi |
| 2456 | if test -z "$ac_cv_prog_CC"; then |
| 2457 | ac_ct_CC=$CC |
| 2458 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2459 | set dummy gcc; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2461 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2462 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2463 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2464 | else |
| 2465 | if test -n "$ac_ct_CC"; then |
| 2466 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2467 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2469 | for as_dir in $PATH |
| 2470 | do |
| 2471 | IFS=$as_save_IFS |
| 2472 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2473 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2474 | 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] | 2475 | ac_cv_prog_ac_ct_CC="gcc" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2476 | $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] | 2477 | break 2 |
| 2478 | fi |
| 2479 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2480 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2481 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2482 | |
| 2483 | fi |
| 2484 | fi |
| 2485 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2486 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2488 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2489 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2491 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2492 | fi |
| 2493 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2494 | if test "x$ac_ct_CC" = x; then |
| 2495 | CC="" |
| 2496 | else |
| 2497 | case $cross_compiling:$ac_tool_warned in |
| 2498 | yes:) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2500 | $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] | 2501 | ac_tool_warned=yes ;; |
| 2502 | esac |
| 2503 | CC=$ac_ct_CC |
| 2504 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2505 | else |
| 2506 | CC="$ac_cv_prog_CC" |
| 2507 | fi |
| 2508 | |
| 2509 | if test -z "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2510 | if test -n "$ac_tool_prefix"; then |
| 2511 | # 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] | 2512 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2514 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2515 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2516 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2517 | else |
| 2518 | if test -n "$CC"; then |
| 2519 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2520 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2522 | for as_dir in $PATH |
| 2523 | do |
| 2524 | IFS=$as_save_IFS |
| 2525 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2526 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2527 | 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] | 2528 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2529 | $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] | 2530 | break 2 |
| 2531 | fi |
| 2532 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2533 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2534 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2535 | |
| 2536 | fi |
| 2537 | fi |
| 2538 | CC=$ac_cv_prog_CC |
| 2539 | if test -n "$CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2541 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2542 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2544 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2545 | fi |
| 2546 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2547 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2548 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2549 | fi |
| 2550 | if test -z "$CC"; then |
| 2551 | # Extract the first word of "cc", so it can be a program name with args. |
| 2552 | set dummy cc; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2554 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2555 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2556 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2557 | else |
| 2558 | if test -n "$CC"; then |
| 2559 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2560 | else |
| 2561 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2563 | for as_dir in $PATH |
| 2564 | do |
| 2565 | IFS=$as_save_IFS |
| 2566 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2567 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2568 | 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] | 2569 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2570 | ac_prog_rejected=yes |
| 2571 | continue |
| 2572 | fi |
| 2573 | ac_cv_prog_CC="cc" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2574 | $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] | 2575 | break 2 |
| 2576 | fi |
| 2577 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2578 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2579 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2580 | |
| 2581 | if test $ac_prog_rejected = yes; then |
| 2582 | # We found a bogon in the path, so make sure we never use it. |
| 2583 | set dummy $ac_cv_prog_CC |
| 2584 | shift |
| 2585 | if test $# != 0; then |
| 2586 | # We chose a different compiler from the bogus one. |
| 2587 | # However, it has the same basename, so the bogon will be chosen |
| 2588 | # first if we set CC to just the basename; use the full file name. |
| 2589 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2590 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2591 | fi |
| 2592 | fi |
| 2593 | fi |
| 2594 | fi |
| 2595 | CC=$ac_cv_prog_CC |
| 2596 | if test -n "$CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2598 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2599 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2601 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2602 | fi |
| 2603 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2604 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2605 | fi |
| 2606 | if test -z "$CC"; then |
| 2607 | if test -n "$ac_tool_prefix"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2608 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2609 | do |
| 2610 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2611 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2613 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2614 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2615 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2616 | else |
| 2617 | if test -n "$CC"; then |
| 2618 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2619 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2621 | for as_dir in $PATH |
| 2622 | do |
| 2623 | IFS=$as_save_IFS |
| 2624 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2625 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2626 | 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] | 2627 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2628 | $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] | 2629 | break 2 |
| 2630 | fi |
| 2631 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2632 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2633 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2634 | |
| 2635 | fi |
| 2636 | fi |
| 2637 | CC=$ac_cv_prog_CC |
| 2638 | if test -n "$CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2640 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2641 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2643 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2644 | fi |
| 2645 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2646 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2647 | test -n "$CC" && break |
| 2648 | done |
| 2649 | fi |
| 2650 | if test -z "$CC"; then |
| 2651 | ac_ct_CC=$CC |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2652 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2653 | do |
| 2654 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2655 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2657 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2658 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2659 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2660 | else |
| 2661 | if test -n "$ac_ct_CC"; then |
| 2662 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2663 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2665 | for as_dir in $PATH |
| 2666 | do |
| 2667 | IFS=$as_save_IFS |
| 2668 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2669 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2670 | 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] | 2671 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2672 | $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] | 2673 | break 2 |
| 2674 | fi |
| 2675 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2676 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2677 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2678 | |
| 2679 | fi |
| 2680 | fi |
| 2681 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2682 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2684 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2685 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2687 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2688 | fi |
| 2689 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2690 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2691 | test -n "$ac_ct_CC" && break |
| 2692 | done |
| 2693 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2694 | if test "x$ac_ct_CC" = x; then |
| 2695 | CC="" |
| 2696 | else |
| 2697 | case $cross_compiling:$ac_tool_warned in |
| 2698 | yes:) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2700 | $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] | 2701 | ac_tool_warned=yes ;; |
| 2702 | esac |
| 2703 | CC=$ac_ct_CC |
| 2704 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2705 | fi |
| 2706 | |
| 2707 | fi |
| 2708 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2709 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2710 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2711 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2712 | as_fn_error "no acceptable C compiler found in \$PATH |
| 2713 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2714 | |
| 2715 | # Provide some information about the compiler. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2716 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2717 | set X $ac_compile |
| 2718 | ac_compiler=$2 |
| 2719 | for ac_option in --version -v -V -qversion; do |
| 2720 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2721 | case "(($ac_try" in |
| 2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2723 | *) ac_try_echo=$ac_try;; |
| 2724 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2726 | $as_echo "$ac_try_echo"; } >&5 |
| 2727 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2728 | ac_status=$? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2729 | if test -s conftest.err; then |
| 2730 | sed '10a\ |
| 2731 | ... rest of stderr output deleted ... |
| 2732 | 10q' conftest.err >conftest.er1 |
| 2733 | cat conftest.er1 >&5 |
| 2734 | fi |
| 2735 | rm -f conftest.er1 conftest.err |
| 2736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2737 | test $ac_status = 0; } |
| 2738 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2739 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2741 | /* end confdefs.h. */ |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2742 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2743 | int |
| 2744 | main () |
| 2745 | { |
| 2746 | |
| 2747 | ; |
| 2748 | return 0; |
| 2749 | } |
| 2750 | _ACEOF |
| 2751 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2752 | 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] | 2753 | # Try to create an executable without -o first, disregard a.out. |
| 2754 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2755 | # of exeext. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2757 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2758 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2759 | |
| 2760 | # The possible output files: |
| 2761 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2762 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2763 | ac_rmfiles= |
| 2764 | for ac_file in $ac_files |
| 2765 | do |
| 2766 | case $ac_file in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2767 | *.$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] | 2768 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2769 | esac |
| 2770 | done |
| 2771 | rm -f $ac_rmfiles |
| 2772 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2773 | if { { ac_try="$ac_link_default" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2774 | case "(($ac_try" in |
| 2775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2776 | *) ac_try_echo=$ac_try;; |
| 2777 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2778 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2779 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2780 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2781 | ac_status=$? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2783 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2784 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2785 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2786 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2787 | # so that the user can short-circuit this test for compilers unknown to |
| 2788 | # Autoconf. |
| 2789 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2790 | do |
| 2791 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2792 | case $ac_file in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2793 | *.$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] | 2794 | ;; |
| 2795 | [ab].out ) |
| 2796 | # We found the default executable, but exeext='' is most |
| 2797 | # certainly right. |
| 2798 | break;; |
| 2799 | *.* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2800 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2801 | then :; else |
| 2802 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2803 | fi |
| 2804 | # We set ac_cv_exeext here because the later test for it is not |
| 2805 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2806 | # argument, so we may need to know it at that point already. |
| 2807 | # Even if this section looks crufty: it has the advantage of |
| 2808 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2809 | break;; |
| 2810 | * ) |
| 2811 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2812 | esac |
| 2813 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2814 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2815 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2816 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2817 | ac_file='' |
| 2818 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2819 | if test -z "$ac_file"; then : |
| 2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2821 | $as_echo "no" >&6; } |
| 2822 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2824 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2825 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2826 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2827 | { as_fn_set_status 77 |
| 2828 | as_fn_error "C compiler cannot create executables |
| 2829 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 2830 | else |
| 2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2832 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2833 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2835 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2837 | $as_echo "$ac_file" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2838 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2839 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2840 | 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] | 2841 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2843 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2844 | if { { ac_try="$ac_link" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2845 | case "(($ac_try" in |
| 2846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2847 | *) ac_try_echo=$ac_try;; |
| 2848 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2849 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2850 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2851 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2852 | ac_status=$? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2854 | test $ac_status = 0; }; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2855 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2856 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2857 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2858 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2859 | for ac_file in conftest.exe conftest conftest.*; do |
| 2860 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2861 | case $ac_file in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2862 | *.$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] | 2863 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2864 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2865 | * ) break;; |
| 2866 | esac |
| 2867 | done |
| 2868 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2869 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2871 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 2872 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2873 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2874 | rm -f conftest conftest$ac_cv_exeext |
| 2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2876 | $as_echo "$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2877 | |
| 2878 | rm -f conftest.$ac_ext |
| 2879 | EXEEXT=$ac_cv_exeext |
| 2880 | ac_exeext=$EXEEXT |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2882 | /* end confdefs.h. */ |
| 2883 | #include <stdio.h> |
| 2884 | int |
| 2885 | main () |
| 2886 | { |
| 2887 | FILE *f = fopen ("conftest.out", "w"); |
| 2888 | return ferror (f) || fclose (f) != 0; |
| 2889 | |
| 2890 | ; |
| 2891 | return 0; |
| 2892 | } |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 2893 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2894 | ac_clean_files="$ac_clean_files conftest.out" |
| 2895 | # Check that the compiler produces executables we can run. If not, either |
| 2896 | # the compiler is broken, or we cross compile. |
| 2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2898 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2899 | if test "$cross_compiling" != yes; then |
| 2900 | { { ac_try="$ac_link" |
| 2901 | case "(($ac_try" in |
| 2902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2903 | *) ac_try_echo=$ac_try;; |
| 2904 | esac |
| 2905 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2906 | $as_echo "$ac_try_echo"; } >&5 |
| 2907 | (eval "$ac_link") 2>&5 |
| 2908 | ac_status=$? |
| 2909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2910 | test $ac_status = 0; } |
| 2911 | if { ac_try='./conftest$ac_cv_exeext' |
| 2912 | { { case "(($ac_try" in |
| 2913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2914 | *) ac_try_echo=$ac_try;; |
| 2915 | esac |
| 2916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2917 | $as_echo "$ac_try_echo"; } >&5 |
| 2918 | (eval "$ac_try") 2>&5 |
| 2919 | ac_status=$? |
| 2920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2921 | test $ac_status = 0; }; }; then |
| 2922 | cross_compiling=no |
| 2923 | else |
| 2924 | if test "$cross_compiling" = maybe; then |
| 2925 | cross_compiling=yes |
| 2926 | else |
| 2927 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2928 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2929 | as_fn_error "cannot run C compiled programs. |
| 2930 | If you meant to cross compile, use \`--host'. |
| 2931 | See \`config.log' for more details." "$LINENO" 5; } |
| 2932 | fi |
| 2933 | fi |
| 2934 | fi |
| 2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2936 | $as_echo "$cross_compiling" >&6; } |
| 2937 | |
| 2938 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2939 | ac_clean_files=$ac_clean_files_save |
| 2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2941 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2942 | if test "${ac_cv_objext+set}" = set; then : |
| 2943 | $as_echo_n "(cached) " >&6 |
| 2944 | else |
| 2945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2946 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2947 | |
| 2948 | int |
| 2949 | main () |
| 2950 | { |
| 2951 | |
| 2952 | ; |
| 2953 | return 0; |
| 2954 | } |
| 2955 | _ACEOF |
| 2956 | rm -f conftest.o conftest.obj |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2957 | if { { ac_try="$ac_compile" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2958 | case "(($ac_try" in |
| 2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2960 | *) ac_try_echo=$ac_try;; |
| 2961 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2962 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2963 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2964 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2965 | ac_status=$? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2967 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2968 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2969 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2970 | case $ac_file in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2971 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2972 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2973 | break;; |
| 2974 | esac |
| 2975 | done |
| 2976 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2977 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2979 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2980 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2981 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2982 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 2983 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2984 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2985 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2986 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2988 | $as_echo "$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2989 | OBJEXT=$ac_cv_objext |
| 2990 | ac_objext=$OBJEXT |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2992 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2993 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 2994 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2995 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2997 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2998 | |
| 2999 | int |
| 3000 | main () |
| 3001 | { |
| 3002 | #ifndef __GNUC__ |
| 3003 | choke me |
| 3004 | #endif |
| 3005 | |
| 3006 | ; |
| 3007 | return 0; |
| 3008 | } |
| 3009 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3010 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3011 | ac_compiler_gnu=yes |
| 3012 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3013 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3014 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3016 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3017 | |
| 3018 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3020 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3021 | if test $ac_compiler_gnu = yes; then |
| 3022 | GCC=yes |
| 3023 | else |
| 3024 | GCC= |
| 3025 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3026 | ac_test_CFLAGS=${CFLAGS+set} |
| 3027 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3029 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3030 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3031 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3032 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3033 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3034 | ac_c_werror_flag=yes |
| 3035 | ac_cv_prog_cc_g=no |
| 3036 | CFLAGS="-g" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3038 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3039 | |
| 3040 | int |
| 3041 | main () |
| 3042 | { |
| 3043 | |
| 3044 | ; |
| 3045 | return 0; |
| 3046 | } |
| 3047 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3048 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3049 | ac_cv_prog_cc_g=yes |
| 3050 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3051 | CFLAGS="" |
| 3052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3053 | /* end confdefs.h. */ |
| 3054 | |
| 3055 | int |
| 3056 | main () |
| 3057 | { |
| 3058 | |
| 3059 | ; |
| 3060 | return 0; |
| 3061 | } |
| 3062 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3063 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 3064 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3065 | else |
| 3066 | ac_c_werror_flag=$ac_save_c_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3067 | CFLAGS="-g" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3069 | /* end confdefs.h. */ |
| 3070 | |
| 3071 | int |
| 3072 | main () |
| 3073 | { |
| 3074 | |
| 3075 | ; |
| 3076 | return 0; |
| 3077 | } |
| 3078 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3079 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3080 | ac_cv_prog_cc_g=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3083 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3085 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3087 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3088 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3090 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3091 | if test "$ac_test_CFLAGS" = set; then |
| 3092 | CFLAGS=$ac_save_CFLAGS |
| 3093 | elif test $ac_cv_prog_cc_g = yes; then |
| 3094 | if test "$GCC" = yes; then |
| 3095 | CFLAGS="-g -O2" |
| 3096 | else |
| 3097 | CFLAGS="-g" |
| 3098 | fi |
| 3099 | else |
| 3100 | if test "$GCC" = yes; then |
| 3101 | CFLAGS="-O2" |
| 3102 | else |
| 3103 | CFLAGS= |
| 3104 | fi |
| 3105 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3107 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3108 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3109 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3110 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3111 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3112 | ac_save_CC=$CC |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3114 | /* end confdefs.h. */ |
| 3115 | #include <stdarg.h> |
| 3116 | #include <stdio.h> |
| 3117 | #include <sys/types.h> |
| 3118 | #include <sys/stat.h> |
| 3119 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3120 | struct buf { int x; }; |
| 3121 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3122 | static char *e (p, i) |
| 3123 | char **p; |
| 3124 | int i; |
| 3125 | { |
| 3126 | return p[i]; |
| 3127 | } |
| 3128 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3129 | { |
| 3130 | char *s; |
| 3131 | va_list v; |
| 3132 | va_start (v,p); |
| 3133 | s = g (p, va_arg (v,int)); |
| 3134 | va_end (v); |
| 3135 | return s; |
| 3136 | } |
| 3137 | |
| 3138 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3139 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3140 | These don't provoke an error unfortunately, instead are silently treated |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3141 | 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] | 3142 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3143 | 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] | 3144 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3145 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3146 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3147 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3148 | inside strings and character constants. */ |
| 3149 | #define FOO(x) 'x' |
| 3150 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3151 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3152 | int test (int i, double x); |
| 3153 | struct s1 {int (*f) (int a);}; |
| 3154 | struct s2 {int (*f) (double a);}; |
| 3155 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3156 | int argc; |
| 3157 | char **argv; |
| 3158 | int |
| 3159 | main () |
| 3160 | { |
| 3161 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3162 | ; |
| 3163 | return 0; |
| 3164 | } |
| 3165 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3166 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3167 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3168 | do |
| 3169 | CC="$ac_save_CC $ac_arg" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3170 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3171 | ac_cv_prog_cc_c89=$ac_arg |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3172 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3173 | rm -f core conftest.err conftest.$ac_objext |
| 3174 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3175 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3176 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3177 | CC=$ac_save_CC |
| 3178 | |
| 3179 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3180 | # AC_CACHE_VAL |
| 3181 | case "x$ac_cv_prog_cc_c89" in |
| 3182 | x) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3184 | $as_echo "none needed" >&6; } ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3185 | xno) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3187 | $as_echo "unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3188 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3189 | CC="$CC $ac_cv_prog_cc_c89" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3191 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3192 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3193 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3194 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3195 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3196 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3197 | ac_ext=c |
| 3198 | ac_cpp='$CPP $CPPFLAGS' |
| 3199 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3200 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3201 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3202 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3203 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3204 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3205 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3206 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3207 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3208 | if test -z "$CXX"; then |
| 3209 | if test -n "$CCC"; then |
| 3210 | CXX=$CCC |
| 3211 | else |
| 3212 | if test -n "$ac_tool_prefix"; then |
| 3213 | 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] | 3214 | do |
| 3215 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3216 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3218 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3219 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 3220 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3221 | else |
| 3222 | if test -n "$CXX"; then |
| 3223 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3224 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3226 | for as_dir in $PATH |
| 3227 | do |
| 3228 | IFS=$as_save_IFS |
| 3229 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3230 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3231 | 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] | 3232 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3233 | $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] | 3234 | break 2 |
| 3235 | fi |
| 3236 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3237 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3238 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3239 | |
| 3240 | fi |
| 3241 | fi |
| 3242 | CXX=$ac_cv_prog_CXX |
| 3243 | if test -n "$CXX"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 3245 | $as_echo "$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3246 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3248 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3249 | fi |
| 3250 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3251 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3252 | test -n "$CXX" && break |
| 3253 | done |
| 3254 | fi |
| 3255 | if test -z "$CXX"; then |
| 3256 | ac_ct_CXX=$CXX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3257 | 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] | 3258 | do |
| 3259 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3260 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3262 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3263 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 3264 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3265 | else |
| 3266 | if test -n "$ac_ct_CXX"; then |
| 3267 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3268 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3270 | for as_dir in $PATH |
| 3271 | do |
| 3272 | IFS=$as_save_IFS |
| 3273 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3274 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3275 | 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] | 3276 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3277 | $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] | 3278 | break 2 |
| 3279 | fi |
| 3280 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3281 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3282 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3283 | |
| 3284 | fi |
| 3285 | fi |
| 3286 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3287 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 3289 | $as_echo "$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3290 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3292 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3293 | fi |
| 3294 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3295 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3296 | test -n "$ac_ct_CXX" && break |
| 3297 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3298 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3299 | if test "x$ac_ct_CXX" = x; then |
| 3300 | CXX="g++" |
| 3301 | else |
| 3302 | case $cross_compiling:$ac_tool_warned in |
| 3303 | yes:) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3305 | $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] | 3306 | ac_tool_warned=yes ;; |
| 3307 | esac |
| 3308 | CXX=$ac_ct_CXX |
| 3309 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3310 | fi |
| 3311 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3312 | fi |
| 3313 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3314 | # Provide some information about the compiler. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3315 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 3316 | set X $ac_compile |
| 3317 | ac_compiler=$2 |
| 3318 | for ac_option in --version -v -V -qversion; do |
| 3319 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3320 | case "(($ac_try" in |
| 3321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3322 | *) ac_try_echo=$ac_try;; |
| 3323 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3324 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3325 | $as_echo "$ac_try_echo"; } >&5 |
| 3326 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3327 | ac_status=$? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3328 | if test -s conftest.err; then |
| 3329 | sed '10a\ |
| 3330 | ... rest of stderr output deleted ... |
| 3331 | 10q' conftest.err >conftest.er1 |
| 3332 | cat conftest.er1 >&5 |
| 3333 | fi |
| 3334 | rm -f conftest.er1 conftest.err |
| 3335 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3336 | test $ac_status = 0; } |
| 3337 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3338 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 3340 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 3341 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 3342 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3343 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3345 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3346 | |
| 3347 | int |
| 3348 | main () |
| 3349 | { |
| 3350 | #ifndef __GNUC__ |
| 3351 | choke me |
| 3352 | #endif |
| 3353 | |
| 3354 | ; |
| 3355 | return 0; |
| 3356 | } |
| 3357 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3358 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3359 | ac_compiler_gnu=yes |
| 3360 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3361 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3362 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3364 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3365 | |
| 3366 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3368 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3369 | if test $ac_compiler_gnu = yes; then |
| 3370 | GXX=yes |
| 3371 | else |
| 3372 | GXX= |
| 3373 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3374 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3375 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 3377 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 3378 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 3379 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3380 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3381 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3382 | ac_cxx_werror_flag=yes |
| 3383 | ac_cv_prog_cxx_g=no |
| 3384 | CXXFLAGS="-g" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3386 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3387 | |
| 3388 | int |
| 3389 | main () |
| 3390 | { |
| 3391 | |
| 3392 | ; |
| 3393 | return 0; |
| 3394 | } |
| 3395 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3396 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3397 | ac_cv_prog_cxx_g=yes |
| 3398 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3399 | CXXFLAGS="" |
| 3400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3401 | /* end confdefs.h. */ |
| 3402 | |
| 3403 | int |
| 3404 | main () |
| 3405 | { |
| 3406 | |
| 3407 | ; |
| 3408 | return 0; |
| 3409 | } |
| 3410 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3411 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 3412 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3413 | else |
| 3414 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3415 | CXXFLAGS="-g" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3417 | /* end confdefs.h. */ |
| 3418 | |
| 3419 | int |
| 3420 | main () |
| 3421 | { |
| 3422 | |
| 3423 | ; |
| 3424 | return 0; |
| 3425 | } |
| 3426 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3427 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3428 | ac_cv_prog_cxx_g=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 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 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3431 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3433 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3435 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3436 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 3438 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3439 | if test "$ac_test_CXXFLAGS" = set; then |
| 3440 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3441 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3442 | if test "$GXX" = yes; then |
| 3443 | CXXFLAGS="-g -O2" |
| 3444 | else |
| 3445 | CXXFLAGS="-g" |
| 3446 | fi |
| 3447 | else |
| 3448 | if test "$GXX" = yes; then |
| 3449 | CXXFLAGS="-O2" |
| 3450 | else |
| 3451 | CXXFLAGS= |
| 3452 | fi |
| 3453 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3454 | ac_ext=c |
| 3455 | ac_cpp='$CPP $CPPFLAGS' |
| 3456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3459 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3460 | ac_ext=c |
| 3461 | ac_cpp='$CPP $CPPFLAGS' |
| 3462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3465 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3466 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3467 | if test -z "$CROSS_COMPILE"; then |
| 3468 | CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'` |
| 3469 | fi |
| 3470 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3471 | if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3472 | |
| 3473 | if test "$LD" = ""; then LD="$CC"; fi |
| 3474 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 3475 | if test "$LDOUT" = ""; then LDOUT="-o "; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3476 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3477 | if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3478 | |
| 3479 | if test "$OBJEXT" = ""; then OBJEXT='o'; fi |
| 3480 | |
| 3481 | if test "$LIBEXT" = ""; then LIBEXT='a'; fi |
| 3482 | |
| 3483 | if test "$LIBEXT2" = ""; then LIBEXT2=""; fi |
| 3484 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 3485 | if test "$CC_OUT" = ""; then CC_OUT="-o "; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3486 | |
| 3487 | if test "$CC_INC" = ""; then CC_INC="-I"; fi |
| 3488 | |
| 3489 | if test "$CC_DEF" = ""; then CC_DEF="-D"; fi |
| 3490 | |
| 3491 | if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi |
| 3492 | |
| 3493 | if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi |
| 3494 | |
| 3495 | |
| 3496 | |
| 3497 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3498 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3499 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3500 | |
| 3501 | case $host in |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3502 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3503 | if pwd -W 2&> /dev/null; then |
| 3504 | ac_pjdir=`pwd -W` |
| 3505 | else |
| 3506 | # We're probably cross-compiling mingw on Linux |
| 3507 | ac_pjdir=`pwd` |
| 3508 | fi |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3509 | ;; |
| 3510 | *) |
| 3511 | ac_pjdir=`pwd` |
| 3512 | ;; |
| 3513 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3514 | |
| 3515 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3516 | case $target in |
| 3517 | *mingw* | *cygw* | *win32* | *w32* ) |
| 3518 | ac_shlib_suffix=dll |
| 3519 | ;; |
| 3520 | *darwin*) |
| 3521 | ac_shlib_suffix=dylib |
| 3522 | ;; |
| 3523 | *) |
| 3524 | ac_shlib_suffix=so |
| 3525 | ;; |
| 3526 | esac |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 3527 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3528 | |
| 3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 3530 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 3531 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : |
| 3532 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3533 | else |
| 3534 | ac_check_lib_save_LIBS=$LIBS |
| 3535 | LIBS="-lpthread $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3537 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3538 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3539 | /* Override any GCC internal prototype to avoid an error. |
| 3540 | Use char because int might match the return type of a GCC |
| 3541 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3542 | #ifdef __cplusplus |
| 3543 | extern "C" |
| 3544 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3545 | char pthread_create (); |
| 3546 | int |
| 3547 | main () |
| 3548 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3549 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3550 | ; |
| 3551 | return 0; |
| 3552 | } |
| 3553 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3554 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3555 | ac_cv_lib_pthread_pthread_create=yes |
| 3556 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3557 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3558 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3559 | rm -f core conftest.err conftest.$ac_objext \ |
| 3560 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3561 | LIBS=$ac_check_lib_save_LIBS |
| 3562 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3564 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
| 3565 | if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3566 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3567 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3568 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3569 | |
| 3570 | LIBS="-lpthread $LIBS" |
| 3571 | |
| 3572 | fi |
| 3573 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5 |
| 3575 | $as_echo_n "checking for puts in -lwsock32... " >&6; } |
| 3576 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then : |
| 3577 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3578 | else |
| 3579 | ac_check_lib_save_LIBS=$LIBS |
| 3580 | LIBS="-lwsock32 $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3582 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3583 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3584 | /* Override any GCC internal prototype to avoid an error. |
| 3585 | Use char because int might match the return type of a GCC |
| 3586 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3587 | #ifdef __cplusplus |
| 3588 | extern "C" |
| 3589 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3590 | char puts (); |
| 3591 | int |
| 3592 | main () |
| 3593 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3594 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3595 | ; |
| 3596 | return 0; |
| 3597 | } |
| 3598 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3599 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3600 | ac_cv_lib_wsock32_puts=yes |
| 3601 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3602 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3603 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3604 | rm -f core conftest.err conftest.$ac_objext \ |
| 3605 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3606 | LIBS=$ac_check_lib_save_LIBS |
| 3607 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3609 | $as_echo "$ac_cv_lib_wsock32_puts" >&6; } |
| 3610 | if test "x$ac_cv_lib_wsock32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3611 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3612 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3613 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3614 | |
| 3615 | LIBS="-lwsock32 $LIBS" |
| 3616 | |
| 3617 | fi |
| 3618 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5 |
| 3620 | $as_echo_n "checking for puts in -lws2_32... " >&6; } |
| 3621 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then : |
| 3622 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3623 | else |
| 3624 | ac_check_lib_save_LIBS=$LIBS |
| 3625 | LIBS="-lws2_32 $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3627 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3628 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3629 | /* Override any GCC internal prototype to avoid an error. |
| 3630 | Use char because int might match the return type of a GCC |
| 3631 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3632 | #ifdef __cplusplus |
| 3633 | extern "C" |
| 3634 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3635 | char puts (); |
| 3636 | int |
| 3637 | main () |
| 3638 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3639 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3640 | ; |
| 3641 | return 0; |
| 3642 | } |
| 3643 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3644 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3645 | ac_cv_lib_ws2_32_puts=yes |
| 3646 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3647 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3648 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3649 | rm -f core conftest.err conftest.$ac_objext \ |
| 3650 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3651 | LIBS=$ac_check_lib_save_LIBS |
| 3652 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3654 | $as_echo "$ac_cv_lib_ws2_32_puts" >&6; } |
| 3655 | if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3656 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3657 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3658 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3659 | |
| 3660 | LIBS="-lws2_32 $LIBS" |
| 3661 | |
| 3662 | fi |
| 3663 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5 |
| 3665 | $as_echo_n "checking for puts in -lole32... " >&6; } |
| 3666 | if test "${ac_cv_lib_ole32_puts+set}" = set; then : |
| 3667 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3668 | else |
| 3669 | ac_check_lib_save_LIBS=$LIBS |
| 3670 | LIBS="-lole32 $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3672 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3673 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3674 | /* Override any GCC internal prototype to avoid an error. |
| 3675 | Use char because int might match the return type of a GCC |
| 3676 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3677 | #ifdef __cplusplus |
| 3678 | extern "C" |
| 3679 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3680 | char puts (); |
| 3681 | int |
| 3682 | main () |
| 3683 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3684 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3685 | ; |
| 3686 | return 0; |
| 3687 | } |
| 3688 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3689 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3690 | ac_cv_lib_ole32_puts=yes |
| 3691 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3692 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3693 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3694 | rm -f core conftest.err conftest.$ac_objext \ |
| 3695 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3696 | LIBS=$ac_check_lib_save_LIBS |
| 3697 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5 |
| 3699 | $as_echo "$ac_cv_lib_ole32_puts" >&6; } |
| 3700 | if test "x$ac_cv_lib_ole32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3701 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3702 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3703 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3704 | |
| 3705 | LIBS="-lole32 $LIBS" |
| 3706 | |
| 3707 | fi |
| 3708 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5 |
| 3710 | $as_echo_n "checking for puts in -lwinmm... " >&6; } |
| 3711 | if test "${ac_cv_lib_winmm_puts+set}" = set; then : |
| 3712 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3713 | else |
| 3714 | ac_check_lib_save_LIBS=$LIBS |
| 3715 | LIBS="-lwinmm $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3717 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3718 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3719 | /* Override any GCC internal prototype to avoid an error. |
| 3720 | Use char because int might match the return type of a GCC |
| 3721 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3722 | #ifdef __cplusplus |
| 3723 | extern "C" |
| 3724 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3725 | char puts (); |
| 3726 | int |
| 3727 | main () |
| 3728 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3729 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3730 | ; |
| 3731 | return 0; |
| 3732 | } |
| 3733 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3734 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3735 | ac_cv_lib_winmm_puts=yes |
| 3736 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3737 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3738 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3739 | rm -f core conftest.err conftest.$ac_objext \ |
| 3740 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3741 | LIBS=$ac_check_lib_save_LIBS |
| 3742 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5 |
| 3744 | $as_echo "$ac_cv_lib_winmm_puts" >&6; } |
| 3745 | if test "x$ac_cv_lib_winmm_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3746 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3747 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3748 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3749 | |
| 3750 | LIBS="-lwinmm $LIBS" |
| 3751 | |
| 3752 | fi |
| 3753 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5 |
| 3755 | $as_echo_n "checking for puts in -lsocket... " >&6; } |
| 3756 | if test "${ac_cv_lib_socket_puts+set}" = set; then : |
| 3757 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3758 | else |
| 3759 | ac_check_lib_save_LIBS=$LIBS |
| 3760 | LIBS="-lsocket $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3762 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3763 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3764 | /* Override any GCC internal prototype to avoid an error. |
| 3765 | Use char because int might match the return type of a GCC |
| 3766 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3767 | #ifdef __cplusplus |
| 3768 | extern "C" |
| 3769 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3770 | char puts (); |
| 3771 | int |
| 3772 | main () |
| 3773 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3774 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3775 | ; |
| 3776 | return 0; |
| 3777 | } |
| 3778 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3779 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3780 | ac_cv_lib_socket_puts=yes |
| 3781 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3782 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3783 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3784 | rm -f core conftest.err conftest.$ac_objext \ |
| 3785 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3786 | LIBS=$ac_check_lib_save_LIBS |
| 3787 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5 |
| 3789 | $as_echo "$ac_cv_lib_socket_puts" >&6; } |
| 3790 | if test "x$ac_cv_lib_socket_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3791 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3792 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3793 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3794 | |
| 3795 | LIBS="-lsocket $LIBS" |
| 3796 | |
| 3797 | fi |
| 3798 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5 |
| 3800 | $as_echo_n "checking for puts in -lrt... " >&6; } |
| 3801 | if test "${ac_cv_lib_rt_puts+set}" = set; then : |
| 3802 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3803 | else |
| 3804 | ac_check_lib_save_LIBS=$LIBS |
| 3805 | LIBS="-lrt $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3807 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3808 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3809 | /* Override any GCC internal prototype to avoid an error. |
| 3810 | Use char because int might match the return type of a GCC |
| 3811 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3812 | #ifdef __cplusplus |
| 3813 | extern "C" |
| 3814 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3815 | char puts (); |
| 3816 | int |
| 3817 | main () |
| 3818 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3819 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3820 | ; |
| 3821 | return 0; |
| 3822 | } |
| 3823 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3824 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3825 | ac_cv_lib_rt_puts=yes |
| 3826 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3827 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3828 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3829 | rm -f core conftest.err conftest.$ac_objext \ |
| 3830 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3831 | LIBS=$ac_check_lib_save_LIBS |
| 3832 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5 |
| 3834 | $as_echo "$ac_cv_lib_rt_puts" >&6; } |
| 3835 | if test "x$ac_cv_lib_rt_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3836 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3837 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3838 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3839 | |
| 3840 | LIBS="-lrt $LIBS" |
| 3841 | |
| 3842 | fi |
| 3843 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5 |
| 3845 | $as_echo_n "checking for puts in -lnsl... " >&6; } |
| 3846 | if test "${ac_cv_lib_nsl_puts+set}" = set; then : |
| 3847 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3848 | else |
| 3849 | ac_check_lib_save_LIBS=$LIBS |
| 3850 | LIBS="-lnsl $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3852 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3853 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3854 | /* Override any GCC internal prototype to avoid an error. |
| 3855 | Use char because int might match the return type of a GCC |
| 3856 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3857 | #ifdef __cplusplus |
| 3858 | extern "C" |
| 3859 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3860 | char puts (); |
| 3861 | int |
| 3862 | main () |
| 3863 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3864 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3865 | ; |
| 3866 | return 0; |
| 3867 | } |
| 3868 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3869 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3870 | ac_cv_lib_nsl_puts=yes |
| 3871 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3872 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3873 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3874 | rm -f core conftest.err conftest.$ac_objext \ |
| 3875 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3876 | LIBS=$ac_check_lib_save_LIBS |
| 3877 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5 |
| 3879 | $as_echo "$ac_cv_lib_nsl_puts" >&6; } |
| 3880 | if test "x$ac_cv_lib_nsl_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3881 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3882 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3883 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3884 | |
| 3885 | LIBS="-lnsl $LIBS" |
| 3886 | |
| 3887 | fi |
| 3888 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3890 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 3891 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
| 3892 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3893 | else |
| 3894 | ac_check_lib_save_LIBS=$LIBS |
| 3895 | LIBS="-luuid $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3897 | /* end confdefs.h. */ |
| 3898 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3899 | /* Override any GCC internal prototype to avoid an error. |
| 3900 | Use char because int might match the return type of a GCC |
| 3901 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3902 | #ifdef __cplusplus |
| 3903 | extern "C" |
| 3904 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3905 | char uuid_generate (); |
| 3906 | int |
| 3907 | main () |
| 3908 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3909 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3910 | ; |
| 3911 | return 0; |
| 3912 | } |
| 3913 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3914 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3915 | ac_cv_lib_uuid_uuid_generate=yes |
| 3916 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3917 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3918 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3919 | rm -f core conftest.err conftest.$ac_objext \ |
| 3920 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3921 | LIBS=$ac_check_lib_save_LIBS |
| 3922 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3924 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3925 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3926 | cat >>confdefs.h <<_ACEOF |
| 3927 | #define HAVE_LIBUUID 1 |
| 3928 | _ACEOF |
| 3929 | |
| 3930 | LIBS="-luuid $LIBS" |
| 3931 | |
| 3932 | fi |
| 3933 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3935 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 3936 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
| 3937 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3938 | else |
| 3939 | ac_check_lib_save_LIBS=$LIBS |
| 3940 | LIBS="-luuid $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3942 | /* end confdefs.h. */ |
| 3943 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3944 | /* Override any GCC internal prototype to avoid an error. |
| 3945 | Use char because int might match the return type of a GCC |
| 3946 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3947 | #ifdef __cplusplus |
| 3948 | extern "C" |
| 3949 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3950 | char uuid_generate (); |
| 3951 | int |
| 3952 | main () |
| 3953 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3954 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3955 | ; |
| 3956 | return 0; |
| 3957 | } |
| 3958 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3959 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3960 | ac_cv_lib_uuid_uuid_generate=yes |
| 3961 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3962 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3963 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3964 | rm -f core conftest.err conftest.$ac_objext \ |
| 3965 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3966 | LIBS=$ac_check_lib_save_LIBS |
| 3967 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3969 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3970 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3971 | ac_has_uuid_lib=1 |
| 3972 | fi |
| 3973 | |
| 3974 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3976 | $as_echo "Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3977 | cat >>confdefs.h <<_ACEOF |
| 3978 | #define PJ_M_NAME "$target_cpu" |
| 3979 | _ACEOF |
| 3980 | |
| 3981 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5 |
| 3983 | $as_echo_n "checking memory alignment... " >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3984 | case $target in |
Benny Prijono | b18e950 | 2010-05-19 05:51:38 +0000 | [diff] [blame] | 3985 | sparc64-* | ia64-* | x86_64-* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3986 | $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3987 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5 |
| 3989 | $as_echo "8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3990 | ;; |
| 3991 | * ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3992 | $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3993 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5 |
| 3995 | $as_echo "4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3996 | ;; |
| 3997 | esac |
| 3998 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3999 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4000 | ac_ext=c |
| 4001 | ac_cpp='$CPP $CPPFLAGS' |
| 4002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4006 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4007 | # On Suns, sometimes $CPP names a directory. |
| 4008 | if test -n "$CPP" && test -d "$CPP"; then |
| 4009 | CPP= |
| 4010 | fi |
| 4011 | if test -z "$CPP"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4012 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 4013 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4014 | else |
| 4015 | # Double quotes because CPP needs to be expanded |
| 4016 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4017 | do |
| 4018 | ac_preproc_ok=false |
| 4019 | for ac_c_preproc_warn_flag in '' yes |
| 4020 | do |
| 4021 | # Use a header file that comes with gcc, so configuring glibc |
| 4022 | # with a fresh cross-compiler works. |
| 4023 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4024 | # <limits.h> exists even on freestanding compilers. |
| 4025 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4026 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4028 | /* end confdefs.h. */ |
| 4029 | #ifdef __STDC__ |
| 4030 | # include <limits.h> |
| 4031 | #else |
| 4032 | # include <assert.h> |
| 4033 | #endif |
| 4034 | Syntax error |
| 4035 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4036 | if ac_fn_c_try_cpp "$LINENO"; then : |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4037 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4038 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4039 | # Broken: fails on valid input. |
| 4040 | continue |
| 4041 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4042 | rm -f conftest.err conftest.$ac_ext |
| 4043 | |
| 4044 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4045 | # can be detected and how. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4047 | /* end confdefs.h. */ |
| 4048 | #include <ac_nonexistent.h> |
| 4049 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4050 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4051 | # Broken: success on invalid input. |
| 4052 | continue |
| 4053 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4054 | # Passes both tests. |
| 4055 | ac_preproc_ok=: |
| 4056 | break |
| 4057 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4058 | rm -f conftest.err conftest.$ac_ext |
| 4059 | |
| 4060 | done |
| 4061 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4062 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4063 | if $ac_preproc_ok; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4064 | break |
| 4065 | fi |
| 4066 | |
| 4067 | done |
| 4068 | ac_cv_prog_CPP=$CPP |
| 4069 | |
| 4070 | fi |
| 4071 | CPP=$ac_cv_prog_CPP |
| 4072 | else |
| 4073 | ac_cv_prog_CPP=$CPP |
| 4074 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4076 | $as_echo "$CPP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4077 | ac_preproc_ok=false |
| 4078 | for ac_c_preproc_warn_flag in '' yes |
| 4079 | do |
| 4080 | # Use a header file that comes with gcc, so configuring glibc |
| 4081 | # with a fresh cross-compiler works. |
| 4082 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4083 | # <limits.h> exists even on freestanding compilers. |
| 4084 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4085 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4087 | /* end confdefs.h. */ |
| 4088 | #ifdef __STDC__ |
| 4089 | # include <limits.h> |
| 4090 | #else |
| 4091 | # include <assert.h> |
| 4092 | #endif |
| 4093 | Syntax error |
| 4094 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4095 | if ac_fn_c_try_cpp "$LINENO"; then : |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4096 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4097 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4098 | # Broken: fails on valid input. |
| 4099 | continue |
| 4100 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4101 | rm -f conftest.err conftest.$ac_ext |
| 4102 | |
| 4103 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4104 | # can be detected and how. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4106 | /* end confdefs.h. */ |
| 4107 | #include <ac_nonexistent.h> |
| 4108 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4109 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4110 | # Broken: success on invalid input. |
| 4111 | continue |
| 4112 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4113 | # Passes both tests. |
| 4114 | ac_preproc_ok=: |
| 4115 | break |
| 4116 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4117 | rm -f conftest.err conftest.$ac_ext |
| 4118 | |
| 4119 | done |
| 4120 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4121 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4122 | if $ac_preproc_ok; then : |
| 4123 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4124 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4125 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4126 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4127 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4128 | See \`config.log' for more details." "$LINENO" 5; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4129 | fi |
| 4130 | |
| 4131 | ac_ext=c |
| 4132 | ac_cpp='$CPP $CPPFLAGS' |
| 4133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4136 | |
| 4137 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4139 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4140 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4141 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4142 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4143 | if test -z "$GREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4144 | ac_path_GREP_found=false |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4145 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4147 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4148 | do |
| 4149 | IFS=$as_save_IFS |
| 4150 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4151 | for ac_prog in grep ggrep; do |
| 4152 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4153 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4154 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4155 | # 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] | 4156 | # Check for GNU $ac_path_GREP |
| 4157 | case `"$ac_path_GREP" --version 2>&1` in |
| 4158 | *GNU*) |
| 4159 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4160 | *) |
| 4161 | ac_count=0 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4162 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4163 | while : |
| 4164 | do |
| 4165 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4166 | mv "conftest.tmp" "conftest.in" |
| 4167 | cp "conftest.in" "conftest.nl" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4168 | $as_echo 'GREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4169 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4170 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4171 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4172 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4173 | # Best one so far, save it but keep looking for a better one |
| 4174 | ac_cv_path_GREP="$ac_path_GREP" |
| 4175 | ac_path_GREP_max=$ac_count |
| 4176 | fi |
| 4177 | # 10*(2^10) chars as input seems more than enough |
| 4178 | test $ac_count -gt 10 && break |
| 4179 | done |
| 4180 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4181 | esac |
| 4182 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4183 | $ac_path_GREP_found && break 3 |
| 4184 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4185 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4186 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4187 | IFS=$as_save_IFS |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4188 | if test -z "$ac_cv_path_GREP"; then |
| 4189 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4190 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4191 | else |
| 4192 | ac_cv_path_GREP=$GREP |
| 4193 | fi |
| 4194 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4195 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4197 | $as_echo "$ac_cv_path_GREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4198 | GREP="$ac_cv_path_GREP" |
| 4199 | |
| 4200 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4202 | $as_echo_n "checking for egrep... " >&6; } |
| 4203 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4204 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4205 | else |
| 4206 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4207 | then ac_cv_path_EGREP="$GREP -E" |
| 4208 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4209 | if test -z "$EGREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4210 | ac_path_EGREP_found=false |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4211 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4213 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4214 | do |
| 4215 | IFS=$as_save_IFS |
| 4216 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4217 | for ac_prog in egrep; do |
| 4218 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4219 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4220 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4221 | # 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] | 4222 | # Check for GNU $ac_path_EGREP |
| 4223 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4224 | *GNU*) |
| 4225 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4226 | *) |
| 4227 | ac_count=0 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4228 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4229 | while : |
| 4230 | do |
| 4231 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4232 | mv "conftest.tmp" "conftest.in" |
| 4233 | cp "conftest.in" "conftest.nl" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4234 | $as_echo 'EGREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4235 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4236 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4237 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4238 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4239 | # Best one so far, save it but keep looking for a better one |
| 4240 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4241 | ac_path_EGREP_max=$ac_count |
| 4242 | fi |
| 4243 | # 10*(2^10) chars as input seems more than enough |
| 4244 | test $ac_count -gt 10 && break |
| 4245 | done |
| 4246 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4247 | esac |
| 4248 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4249 | $ac_path_EGREP_found && break 3 |
| 4250 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4251 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4252 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4253 | IFS=$as_save_IFS |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4254 | if test -z "$ac_cv_path_EGREP"; then |
| 4255 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4256 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4257 | else |
| 4258 | ac_cv_path_EGREP=$EGREP |
| 4259 | fi |
| 4260 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4261 | fi |
| 4262 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4264 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4265 | EGREP="$ac_cv_path_EGREP" |
| 4266 | |
| 4267 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4269 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4270 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4271 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4272 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4274 | /* end confdefs.h. */ |
| 4275 | #include <stdlib.h> |
| 4276 | #include <stdarg.h> |
| 4277 | #include <string.h> |
| 4278 | #include <float.h> |
| 4279 | |
| 4280 | int |
| 4281 | main () |
| 4282 | { |
| 4283 | |
| 4284 | ; |
| 4285 | return 0; |
| 4286 | } |
| 4287 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4288 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4289 | ac_cv_header_stdc=yes |
| 4290 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4291 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4292 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4294 | |
| 4295 | if test $ac_cv_header_stdc = yes; then |
| 4296 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +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 <string.h> |
| 4300 | |
| 4301 | _ACEOF |
| 4302 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4303 | $EGREP "memchr" >/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 | 28d3c56 | 2012-03-30 07:10:13 +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 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4315 | /* end confdefs.h. */ |
| 4316 | #include <stdlib.h> |
| 4317 | |
| 4318 | _ACEOF |
| 4319 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4320 | $EGREP "free" >/dev/null 2>&1; then : |
| 4321 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4322 | else |
| 4323 | ac_cv_header_stdc=no |
| 4324 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4325 | rm -f conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4326 | |
| 4327 | fi |
| 4328 | |
| 4329 | if test $ac_cv_header_stdc = yes; then |
| 4330 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4331 | if test "$cross_compiling" = yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4332 | : |
| 4333 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4335 | /* end confdefs.h. */ |
| 4336 | #include <ctype.h> |
| 4337 | #include <stdlib.h> |
| 4338 | #if ((' ' & 0x0FF) == 0x020) |
| 4339 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4340 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4341 | #else |
| 4342 | # define ISLOWER(c) \ |
| 4343 | (('a' <= (c) && (c) <= 'i') \ |
| 4344 | || ('j' <= (c) && (c) <= 'r') \ |
| 4345 | || ('s' <= (c) && (c) <= 'z')) |
| 4346 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4347 | #endif |
| 4348 | |
| 4349 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4350 | int |
| 4351 | main () |
| 4352 | { |
| 4353 | int i; |
| 4354 | for (i = 0; i < 256; i++) |
| 4355 | if (XOR (islower (i), ISLOWER (i)) |
| 4356 | || toupper (i) != TOUPPER (i)) |
| 4357 | return 2; |
| 4358 | return 0; |
| 4359 | } |
| 4360 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4361 | if ac_fn_c_try_run "$LINENO"; then : |
| 4362 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4363 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4364 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4365 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4366 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4367 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4368 | fi |
| 4369 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4370 | fi |
| 4371 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4373 | $as_echo "$ac_cv_header_stdc" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4374 | if test $ac_cv_header_stdc = yes; then |
| 4375 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4376 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4377 | |
| 4378 | fi |
| 4379 | |
| 4380 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4381 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4382 | inttypes.h stdint.h unistd.h |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4383 | do : |
| 4384 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4385 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4386 | " |
| 4387 | eval as_val=\$$as_ac_Header |
| 4388 | if test "x$as_val" = x""yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4389 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4390 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4391 | _ACEOF |
| 4392 | |
| 4393 | fi |
| 4394 | |
| 4395 | done |
| 4396 | |
| 4397 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 4399 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 4400 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| 4401 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4402 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4403 | ac_cv_c_bigendian=unknown |
| 4404 | # See if we're dealing with a universal compiler. |
| 4405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4406 | /* end confdefs.h. */ |
| 4407 | #ifndef __APPLE_CC__ |
| 4408 | not a universal capable compiler |
| 4409 | #endif |
| 4410 | typedef int dummy; |
| 4411 | |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4412 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4413 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4414 | |
| 4415 | # Check for potential -arch flags. It is not universal unless |
| 4416 | # there are at least two -arch flags with different values. |
| 4417 | ac_arch= |
| 4418 | ac_prev= |
| 4419 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 4420 | if test -n "$ac_prev"; then |
| 4421 | case $ac_word in |
| 4422 | i?86 | x86_64 | ppc | ppc64) |
| 4423 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 4424 | ac_arch=$ac_word |
| 4425 | else |
| 4426 | ac_cv_c_bigendian=universal |
| 4427 | break |
| 4428 | fi |
| 4429 | ;; |
| 4430 | esac |
| 4431 | ac_prev= |
| 4432 | elif test "x$ac_word" = "x-arch"; then |
| 4433 | ac_prev=arch |
| 4434 | fi |
| 4435 | done |
| 4436 | fi |
| 4437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4438 | if test $ac_cv_c_bigendian = unknown; then |
| 4439 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4441 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4442 | #include <sys/types.h> |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4443 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4444 | |
| 4445 | int |
| 4446 | main () |
| 4447 | { |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4448 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 4449 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 4450 | && LITTLE_ENDIAN) |
| 4451 | bogus endian macros |
| 4452 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4453 | |
| 4454 | ; |
| 4455 | return 0; |
| 4456 | } |
| 4457 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4458 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4459 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4461 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4462 | #include <sys/types.h> |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4463 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4464 | |
| 4465 | int |
| 4466 | main () |
| 4467 | { |
| 4468 | #if BYTE_ORDER != BIG_ENDIAN |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4469 | not big endian |
| 4470 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4471 | |
| 4472 | ; |
| 4473 | return 0; |
| 4474 | } |
| 4475 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4476 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4477 | ac_cv_c_bigendian=yes |
| 4478 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4479 | ac_cv_c_bigendian=no |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4480 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4482 | fi |
| 4483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4484 | fi |
| 4485 | if test $ac_cv_c_bigendian = unknown; then |
| 4486 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 4487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4488 | /* end confdefs.h. */ |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4489 | #include <limits.h> |
| 4490 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4491 | int |
| 4492 | main () |
| 4493 | { |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4494 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 4495 | bogus endian macros |
| 4496 | #endif |
| 4497 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4498 | ; |
| 4499 | return 0; |
| 4500 | } |
| 4501 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4502 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4503 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 4504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4505 | /* end confdefs.h. */ |
| 4506 | #include <limits.h> |
| 4507 | |
| 4508 | int |
| 4509 | main () |
| 4510 | { |
| 4511 | #ifndef _BIG_ENDIAN |
| 4512 | not big endian |
| 4513 | #endif |
| 4514 | |
| 4515 | ; |
| 4516 | return 0; |
| 4517 | } |
| 4518 | _ACEOF |
| 4519 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4520 | ac_cv_c_bigendian=yes |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4521 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4522 | ac_cv_c_bigendian=no |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 4523 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4525 | fi |
| 4526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4527 | fi |
| 4528 | if test $ac_cv_c_bigendian = unknown; then |
| 4529 | # Compile a test program. |
| 4530 | if test "$cross_compiling" = yes; then : |
| 4531 | # Try to guess by grepping values from an object file. |
| 4532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4533 | /* end confdefs.h. */ |
| 4534 | short int ascii_mm[] = |
| 4535 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4536 | short int ascii_ii[] = |
| 4537 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4538 | int use_ascii (int i) { |
| 4539 | return ascii_mm[i] + ascii_ii[i]; |
| 4540 | } |
| 4541 | short int ebcdic_ii[] = |
| 4542 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4543 | short int ebcdic_mm[] = |
| 4544 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4545 | int use_ebcdic (int i) { |
| 4546 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4547 | } |
| 4548 | extern int foo; |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4549 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4550 | int |
| 4551 | main () |
| 4552 | { |
| 4553 | return use_ascii (foo) == use_ebcdic (foo); |
| 4554 | ; |
| 4555 | return 0; |
| 4556 | } |
| 4557 | _ACEOF |
| 4558 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4559 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4560 | ac_cv_c_bigendian=yes |
| 4561 | fi |
| 4562 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4563 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4564 | ac_cv_c_bigendian=no |
| 4565 | else |
| 4566 | # finding both strings is unlikely to happen, but who knows? |
| 4567 | ac_cv_c_bigendian=unknown |
| 4568 | fi |
| 4569 | fi |
| 4570 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4572 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4574 | /* end confdefs.h. */ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4575 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4576 | int |
| 4577 | main () |
| 4578 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4579 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4580 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4581 | union |
| 4582 | { |
| 4583 | long int l; |
| 4584 | char c[sizeof (long int)]; |
| 4585 | } u; |
| 4586 | u.l = 1; |
| 4587 | return u.c[sizeof (long int) - 1] == 1; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4588 | |
| 4589 | ; |
| 4590 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4591 | } |
| 4592 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4593 | if ac_fn_c_try_run "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4594 | ac_cv_c_bigendian=no |
| 4595 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4596 | ac_cv_c_bigendian=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4597 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4598 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4599 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4600 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4601 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4602 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4603 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4605 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 4606 | case $ac_cv_c_bigendian in #( |
| 4607 | yes) |
| 4608 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 4609 | ;; #( |
| 4610 | no) |
| 4611 | ;; #( |
| 4612 | universal) |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4613 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4614 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4615 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4616 | ;; #( |
| 4617 | *) |
| 4618 | as_fn_error "unknown endianness |
| 4619 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 4620 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4621 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4622 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4623 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 4624 | CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0" |
| 4625 | else |
| 4626 | CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1" |
| 4627 | fi |
| 4628 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4629 | case $target in |
| 4630 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4631 | $as_echo "#define PJ_WIN32 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4632 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4633 | $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4634 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4635 | $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4636 | |
| 4637 | ;; |
| 4638 | *darwin*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4639 | $as_echo "#define PJ_DARWINOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4640 | |
| 4641 | ;; |
| 4642 | *linux*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4643 | $as_echo "#define PJ_LINUX 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4644 | |
| 4645 | ;; |
| 4646 | *rtems*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4647 | $as_echo "#define PJ_RTEMS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4648 | |
| 4649 | ;; |
| 4650 | *sunos* | *solaris* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4651 | $as_echo "#define PJ_SUNOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4652 | |
| 4653 | ;; |
| 4654 | *) |
| 4655 | ;; |
| 4656 | esac |
| 4657 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4658 | |
| 4659 | |
| 4660 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4661 | # Check whether --enable-floating-point was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4662 | if test "${enable_floating_point+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4663 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4664 | $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4665 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5 |
| 4667 | $as_echo "Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4668 | fi |
| 4669 | else |
| 4670 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4671 | $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4672 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5 |
| 4674 | $as_echo "Checking if floating point is disabled... no" >&6; } |
| 4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5 |
| 4676 | $as_echo_n "checking for fmod in -lm... " >&6; } |
| 4677 | if test "${ac_cv_lib_m_fmod+set}" = set; then : |
| 4678 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4679 | else |
| 4680 | ac_check_lib_save_LIBS=$LIBS |
| 4681 | LIBS="-lm $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4683 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4684 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4685 | /* Override any GCC internal prototype to avoid an error. |
| 4686 | Use char because int might match the return type of a GCC |
| 4687 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4688 | #ifdef __cplusplus |
| 4689 | extern "C" |
| 4690 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4691 | char fmod (); |
| 4692 | int |
| 4693 | main () |
| 4694 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4695 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4696 | ; |
| 4697 | return 0; |
| 4698 | } |
| 4699 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4700 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4701 | ac_cv_lib_m_fmod=yes |
| 4702 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4703 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4704 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4705 | rm -f core conftest.err conftest.$ac_objext \ |
| 4706 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4707 | LIBS=$ac_check_lib_save_LIBS |
| 4708 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5 |
| 4710 | $as_echo "$ac_cv_lib_m_fmod" >&6; } |
| 4711 | if test "x$ac_cv_lib_m_fmod" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4712 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4713 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4714 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4715 | |
| 4716 | LIBS="-lm $LIBS" |
| 4717 | |
| 4718 | fi |
| 4719 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4720 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4721 | fi |
| 4722 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4723 | |
| 4724 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4725 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
| 4726 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : |
| 4727 | $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4728 | |
| 4729 | fi |
| 4730 | |
| 4731 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4732 | ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
| 4733 | if test "x$ac_cv_header_assert_h" = x""yes; then : |
| 4734 | $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4735 | |
| 4736 | fi |
| 4737 | |
| 4738 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4739 | ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
| 4740 | if test "x$ac_cv_header_ctype_h" = x""yes; then : |
| 4741 | $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4742 | |
| 4743 | fi |
| 4744 | |
| 4745 | |
| 4746 | |
| 4747 | case $target in |
| 4748 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4749 | $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4750 | |
| 4751 | ;; |
| 4752 | *) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4753 | ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 4754 | if test "x$ac_cv_header_errno_h" = x""yes; then : |
| 4755 | $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4756 | |
| 4757 | fi |
| 4758 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4759 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4760 | ;; |
| 4761 | esac |
| 4762 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4763 | ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 4764 | if test "x$ac_cv_header_fcntl_h" = x""yes; then : |
| 4765 | $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4766 | |
| 4767 | fi |
| 4768 | |
| 4769 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4770 | ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default" |
| 4771 | if test "x$ac_cv_header_linux_socket_h" = x""yes; then : |
| 4772 | $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4773 | |
| 4774 | fi |
| 4775 | |
| 4776 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4777 | ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
| 4778 | if test "x$ac_cv_header_limits_h" = x""yes; then : |
| 4779 | $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4780 | |
| 4781 | fi |
| 4782 | |
| 4783 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4784 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
| 4785 | if test "x$ac_cv_header_malloc_h" = x""yes; then : |
| 4786 | $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4787 | |
| 4788 | fi |
| 4789 | |
| 4790 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4791 | ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" |
| 4792 | if test "x$ac_cv_header_netdb_h" = x""yes; then : |
| 4793 | $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4794 | |
| 4795 | fi |
| 4796 | |
| 4797 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4798 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" |
| 4799 | if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then : |
| 4800 | $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4801 | |
| 4802 | fi |
| 4803 | |
| 4804 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4805 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
| 4806 | if test "x$ac_cv_header_netinet_in_h" = x""yes; then : |
| 4807 | $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h |
Benny Prijono | e3e6580 | 2011-02-28 07:44:19 +0000 | [diff] [blame] | 4808 | |
| 4809 | fi |
| 4810 | |
| 4811 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4812 | 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] | 4813 | # include <sys/types.h> |
| 4814 | #endif |
| 4815 | #if PJ_HAS_NETINET_IN_SYSTM_H |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4816 | # include <netinet/in_systm.h> |
| 4817 | #endif |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4818 | #if PJ_HAS_NETINET_IN_H |
| 4819 | # include <netinet/in.h> |
| 4820 | #endif |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4821 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4822 | " |
| 4823 | if test "x$ac_cv_header_netinet_ip_h" = x""yes; then : |
| 4824 | $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4825 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4826 | fi |
| 4827 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4828 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4829 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" |
| 4830 | if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then : |
| 4831 | $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4832 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4833 | fi |
| 4834 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4835 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4836 | ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" |
| 4837 | if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : |
| 4838 | ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" |
| 4839 | if test "x$ac_cv_func_getifaddrs" = x""yes; then : |
| 4840 | $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4841 | |
| 4842 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4843 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4844 | fi |
| 4845 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4846 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4847 | ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" |
| 4848 | if test "x$ac_cv_header_semaphore_h" = x""yes; then : |
| 4849 | $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4850 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4851 | fi |
| 4852 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4853 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4854 | ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" |
| 4855 | if test "x$ac_cv_header_setjmp_h" = x""yes; then : |
| 4856 | $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4857 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4858 | fi |
| 4859 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4860 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4861 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
| 4862 | if test "x$ac_cv_header_stdarg_h" = x""yes; then : |
| 4863 | $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4864 | |
| 4865 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4866 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4867 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4868 | ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
| 4869 | if test "x$ac_cv_header_stddef_h" = x""yes; then : |
| 4870 | $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4871 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4872 | fi |
| 4873 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4874 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4875 | ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" |
| 4876 | if test "x$ac_cv_header_stdio_h" = x""yes; then : |
| 4877 | $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4878 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4879 | fi |
| 4880 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4881 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4882 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 4883 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
| 4884 | $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4885 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4886 | fi |
| 4887 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4888 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4889 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 4890 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
| 4891 | $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4892 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4893 | fi |
| 4894 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4895 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4896 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| 4897 | if test "x$ac_cv_header_string_h" = x""yes; then : |
| 4898 | $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4899 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4900 | fi |
| 4901 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4902 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4903 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 4904 | if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : |
| 4905 | $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4906 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4907 | fi |
| 4908 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4909 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4910 | ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 4911 | if test "x$ac_cv_header_sys_select_h" = x""yes; then : |
| 4912 | $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4913 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4914 | fi |
| 4915 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4916 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4917 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 4918 | if test "x$ac_cv_header_sys_socket_h" = x""yes; then : |
| 4919 | $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4920 | |
| 4921 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4922 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4923 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4924 | ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 4925 | if test "x$ac_cv_header_sys_time_h" = x""yes; then : |
| 4926 | $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4927 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4928 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4929 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4930 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4931 | ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 4932 | if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : |
| 4933 | $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4934 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4935 | fi |
| 4936 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4937 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4938 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 4939 | if test "x$ac_cv_header_sys_types_h" = x""yes; then : |
| 4940 | $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4941 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4942 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4943 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4944 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4945 | ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" |
| 4946 | if test "x$ac_cv_header_sys_filio_h" = x""yes; then : |
| 4947 | $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4948 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4949 | fi |
| 4950 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4951 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4952 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
| 4953 | if test "x$ac_cv_header_sys_sockio_h" = x""yes; then : |
| 4954 | $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4955 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4956 | fi |
| 4957 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4958 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4959 | ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" |
| 4960 | if test "x$ac_cv_header_sys_utsname_h" = x""yes; then : |
| 4961 | $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4962 | |
| 4963 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4964 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4965 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4966 | ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
| 4967 | if test "x$ac_cv_header_time_h" = x""yes; then : |
| 4968 | $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4969 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4970 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4971 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4972 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4973 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 4974 | if test "x$ac_cv_header_unistd_h" = x""yes; then : |
| 4975 | $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4976 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4977 | fi |
| 4978 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4979 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4980 | ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default" |
| 4981 | if test "x$ac_cv_header_winsock_h" = x""yes; then : |
| 4982 | $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4983 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4984 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4985 | |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 4986 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4987 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 4988 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 4989 | $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 4990 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4991 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4992 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4993 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4994 | 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] | 4995 | # include <winsock2.h> |
| 4996 | #elif PJ_HAS_WINSOCK_H |
| 4997 | # include <winsock.h> |
| 4998 | #endif |
| 4999 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5000 | " |
| 5001 | if test "x$ac_cv_header_mswsock_h" = x""yes; then : |
| 5002 | $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 5003 | |
| 5004 | fi |
| 5005 | |
| 5006 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5007 | ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" |
| 5008 | if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : |
| 5009 | $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5010 | |
| 5011 | fi |
| 5012 | |
| 5013 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5014 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" |
| 5015 | if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5016 | ac_has_uuid_h=1 |
| 5017 | fi |
| 5018 | |
| 5019 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5020 | 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] | 5021 | # include <sys/types.h> |
| 5022 | #endif |
| 5023 | #if PJ_HAS_SYS_SOCKET_H |
| 5024 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 5025 | # include <sys/socket.h> |
| 5026 | #endif |
| 5027 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5028 | " |
| 5029 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
| 5030 | $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 5031 | |
| 5032 | fi |
| 5033 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 5034 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5 |
| 5036 | $as_echo "Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5037 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5038 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5039 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5040 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5041 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 5043 | $as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
| 5044 | $as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5045 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5046 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 5048 | $as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
| 5049 | $as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5050 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5051 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 5053 | $as_echo "Setting PJ_HAS_MALLOC to 1" >&6; } |
| 5054 | $as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5055 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5056 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 5058 | $as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
| 5059 | $as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5060 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5061 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 5063 | $as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
| 5064 | $as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5065 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5066 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5 |
| 5068 | $as_echo_n "checking if inet_aton() is available... " >&6; } |
| 5069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5070 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5071 | #include <sys/types.h> |
| 5072 | #include <sys/socket.h> |
| 5073 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5074 | int |
| 5075 | main () |
| 5076 | { |
| 5077 | inet_aton(0, 0); |
| 5078 | ; |
| 5079 | return 0; |
| 5080 | } |
| 5081 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5082 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5083 | $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5084 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5086 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5087 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5089 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5090 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5092 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5 |
| 5094 | $as_echo_n "checking if inet_pton() is available... " >&6; } |
| 5095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5096 | /* end confdefs.h. */ |
| 5097 | #include <sys/types.h> |
| 5098 | #include <sys/socket.h> |
| 5099 | #include <arpa/inet.h> |
| 5100 | int |
| 5101 | main () |
| 5102 | { |
| 5103 | inet_pton(0, 0, 0); |
| 5104 | ; |
| 5105 | return 0; |
| 5106 | } |
| 5107 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5108 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5109 | $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5110 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5112 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5113 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5115 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5116 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5118 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5 |
| 5120 | $as_echo_n "checking if inet_ntop() is available... " >&6; } |
| 5121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5122 | /* end confdefs.h. */ |
| 5123 | #include <sys/types.h> |
| 5124 | #include <sys/socket.h> |
| 5125 | #include <arpa/inet.h> |
| 5126 | int |
| 5127 | main () |
| 5128 | { |
| 5129 | inet_ntop(0, 0, 0, 0); |
| 5130 | ; |
| 5131 | return 0; |
| 5132 | } |
| 5133 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5134 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5135 | $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5136 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5138 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5139 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5141 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5142 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5144 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5 |
| 5146 | $as_echo_n "checking if getaddrinfo() is available... " >&6; } |
| 5147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5148 | /* end confdefs.h. */ |
| 5149 | #include <sys/types.h> |
| 5150 | #include <sys/socket.h> |
| 5151 | #include <netdb.h> |
| 5152 | int |
| 5153 | main () |
| 5154 | { |
| 5155 | getaddrinfo(0, 0, 0, 0); |
| 5156 | ; |
| 5157 | return 0; |
| 5158 | } |
| 5159 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5160 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5161 | $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5162 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5164 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5165 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5167 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5168 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5170 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5 |
| 5172 | $as_echo_n "checking if sockaddr_in has sin_len member... " >&6; } |
| 5173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5174 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5175 | #include <sys/types.h> |
| 5176 | #include <sys/socket.h> |
| 5177 | #include <netinet/in.h> |
| 5178 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5179 | int |
| 5180 | main () |
| 5181 | { |
| 5182 | struct sockaddr_in a; a.sin_len=0; |
| 5183 | ; |
| 5184 | return 0; |
| 5185 | } |
| 5186 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5187 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5188 | $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5189 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5191 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5192 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5194 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5195 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5197 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5 |
| 5199 | $as_echo_n "checking if socklen_t is available... " >&6; } |
| 5200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5201 | /* end confdefs.h. */ |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 5202 | #include <sys/types.h> |
| 5203 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5204 | int |
| 5205 | main () |
| 5206 | { |
| 5207 | socklen_t xxx = 0; |
| 5208 | ; |
| 5209 | return 0; |
| 5210 | } |
| 5211 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5212 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5213 | $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5214 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5216 | $as_echo "yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5217 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5219 | $as_echo "no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5220 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5222 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5 |
| 5224 | $as_echo_n "checking if SO_ERROR is available... " >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5225 | case $target in |
| 5226 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5227 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5228 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5230 | $as_echo "yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5231 | ;; |
| 5232 | *) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5234 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5235 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5236 | #include <sys/socket.h> |
| 5237 | #include <netinet/in.h> |
| 5238 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5239 | int |
| 5240 | main () |
| 5241 | { |
| 5242 | int i=SO_ERROR; |
| 5243 | ; |
| 5244 | return 0; |
| 5245 | } |
| 5246 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5247 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5248 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5249 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5251 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5252 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5254 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5255 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5257 | ;; |
| 5258 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5259 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5260 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5 |
| 5262 | $as_echo_n "checking if pthread_rwlock_t is available... " >&6; } |
| 5263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5264 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5265 | #include <pthread.h> |
| 5266 | int |
| 5267 | main () |
| 5268 | { |
| 5269 | pthread_rwlock_t *x; |
| 5270 | ; |
| 5271 | return 0; |
| 5272 | } |
| 5273 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5274 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5275 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5276 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5277 | ac_rwmutex="yes" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5279 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5280 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5281 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5282 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5283 | ac_rwmutex="no" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5285 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5286 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5288 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5289 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 5291 | $as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; } |
| 5292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5293 | /* end confdefs.h. */ |
| 5294 | #define _POSIX_READER_WRITER_LOCKS |
| 5295 | #include <pthread.h> |
| 5296 | int |
| 5297 | main () |
| 5298 | { |
| 5299 | pthread_rwlock_t *x; |
| 5300 | ; |
| 5301 | return 0; |
| 5302 | } |
| 5303 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5304 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5305 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5306 | |
| 5307 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5309 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5310 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5311 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5312 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5314 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5315 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5317 | fi |
| 5318 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5 |
| 5320 | $as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; } |
| 5321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5322 | /* end confdefs.h. */ |
| 5323 | #include <pthread.h> |
| 5324 | int |
| 5325 | main () |
| 5326 | { |
| 5327 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 5328 | ; |
| 5329 | return 0; |
| 5330 | } |
| 5331 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5332 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5333 | $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5334 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5336 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5337 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5339 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5340 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5342 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5 |
| 5344 | $as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; } |
| 5345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5346 | /* end confdefs.h. */ |
| 5347 | #include <pthread.h> |
| 5348 | int |
| 5349 | main () |
| 5350 | { |
| 5351 | pthread_mutexattr_t attr; |
| 5352 | attr.recursive=1; |
| 5353 | ; |
| 5354 | return 0; |
| 5355 | } |
| 5356 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5357 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5358 | $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5359 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5361 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5362 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5364 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5365 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5367 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5368 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5 |
| 5370 | $as_echo_n "checking ioqueue backend... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5371 | # Check whether --enable-epoll was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5372 | if test "${enable_epoll+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5373 | enableval=$enable_epoll; |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5374 | ac_os_objs=ioqueue_epoll.o |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5 |
| 5376 | $as_echo "/dev/epoll" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5377 | |
| 5378 | else |
| 5379 | |
| 5380 | ac_os_objs=ioqueue_select.o |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 |
| 5382 | $as_echo "select()" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5383 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5384 | fi |
| 5385 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5386 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5387 | |
| 5388 | case $target in |
| 5389 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5390 | 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] | 5391 | ;; |
| 5392 | *) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5393 | 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] | 5394 | case $target in |
| 5395 | arm-apple-darwin*) |
Sauw Ming | fe42f0c | 2011-03-01 10:42:11 +0000 | [diff] [blame] | 5396 | ac_os_objs="$ac_os_objs os_info_iphone.o" |
Sauw Ming | 6a970a3 | 2011-03-01 05:25:27 +0000 | [diff] [blame] | 5397 | ;; |
| 5398 | esac |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5399 | # UUID |
| 5400 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 5401 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 5402 | else |
| 5403 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 5404 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5405 | ;; |
| 5406 | esac |
| 5407 | |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 5408 | case $target in |
| 5409 | *darwin*) |
| 5410 | ac_os_objs="$ac_os_objs os_core_darwin.o" |
| 5411 | ;; |
| 5412 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5413 | |
| 5414 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5415 | ac_external_speex=0 |
| 5416 | |
| 5417 | |
| 5418 | # Check whether --with-external-speex was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5419 | if test "${with_external_speex+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5420 | withval=$with_external_speex; |
| 5421 | if test "x$with_external_speex" != "xno"; then |
| 5422 | # Test Speex installation |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5 |
| 5424 | $as_echo_n "checking if external Speex devkit is installed... " >&6; } |
| 5425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5426 | /* end confdefs.h. */ |
| 5427 | #include <speex/speex.h> |
| 5428 | #include <speex/speex_echo.h> |
| 5429 | |
| 5430 | int |
| 5431 | main () |
| 5432 | { |
| 5433 | speex_echo_state_init(0, 0); speex_encoder_init(0); |
| 5434 | ; |
| 5435 | return 0; |
| 5436 | } |
| 5437 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5438 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5440 | $as_echo "yes!!" >&6; } |
| 5441 | $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5442 | |
| 5443 | ac_external_speex="1" |
| 5444 | |
| 5445 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5446 | 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] | 5447 | fi |
| 5448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5449 | fi |
| 5450 | |
| 5451 | |
| 5452 | fi |
| 5453 | |
| 5454 | |
| 5455 | ac_external_gsm=0 |
| 5456 | |
| 5457 | |
| 5458 | # Check whether --with-external-gsm was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5459 | if test "${with_external_gsm+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5460 | withval=$with_external_gsm; |
| 5461 | if test "x$with_external_gsm" != "xno"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5462 | # Test GSM library installation |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5 |
| 5464 | $as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; } |
| 5465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5466 | /* end confdefs.h. */ |
| 5467 | #include <gsm/gsm.h> |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5468 | int |
| 5469 | main () |
| 5470 | { |
| 5471 | gsm_create(); |
| 5472 | ; |
| 5473 | return 0; |
| 5474 | } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5475 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5476 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5478 | $as_echo "yes!!" >&6; } |
| 5479 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5480 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5481 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5482 | |
| 5483 | ac_external_gsm="1" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5484 | |
| 5485 | else |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5486 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5488 | $as_echo "no" >&6; } |
| 5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5 |
| 5490 | $as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; } |
| 5491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5492 | /* end confdefs.h. */ |
| 5493 | #include <gsm.h> |
| 5494 | int |
| 5495 | main () |
| 5496 | { |
| 5497 | gsm_create(); |
| 5498 | ; |
| 5499 | return 0; |
| 5500 | } |
| 5501 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5502 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5504 | $as_echo "yes!!" >&6; } |
| 5505 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5506 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5507 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5508 | |
| 5509 | ac_external_gsm="1" |
| 5510 | |
| 5511 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5512 | 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] | 5513 | |
| 5514 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5515 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5517 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5518 | |
| 5519 | fi |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5521 | fi |
| 5522 | |
| 5523 | |
| 5524 | fi |
| 5525 | |
| 5526 | |
| 5527 | |
| 5528 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5529 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5530 | # Check whether --enable-sound was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5531 | if test "${enable_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5532 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5533 | ac_pjmedia_snd=null |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5 |
| 5535 | $as_echo "Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5536 | fi |
| 5537 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5538 | fi |
| 5539 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5540 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5541 | ac_external_pa=0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5542 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5543 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5544 | # Check whether --with-external-pa was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5545 | if test "${with_external_pa+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5546 | withval=$with_external_pa; |
| 5547 | if test "x$with_external_pa" != "xno"; then |
| 5548 | # Test PortAudio installation |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5 |
| 5550 | $as_echo_n "checking if external PortAudio devkit is installed... " >&6; } |
| 5551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5552 | /* end confdefs.h. */ |
| 5553 | #include <portaudio.h> |
| 5554 | |
| 5555 | int |
| 5556 | main () |
| 5557 | { |
| 5558 | Pa_Initialize(); |
| 5559 | ; |
| 5560 | return 0; |
| 5561 | } |
| 5562 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5563 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5565 | $as_echo "yes!!" >&6; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5566 | ac_external_pa="1" |
| 5567 | |
| 5568 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5569 | 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] | 5570 | fi |
| 5571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5572 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5573 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5574 | |
| 5575 | fi |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5576 | |
| 5577 | |
| 5578 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5579 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" |
| 5580 | if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5581 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 5582 | fi |
| 5583 | |
| 5584 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5585 | ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default" |
| 5586 | if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5587 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 5588 | fi |
| 5589 | |
| 5590 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5591 | ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default" |
| 5592 | if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5593 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 5594 | fi |
| 5595 | |
| 5596 | |
| 5597 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 5598 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 5599 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 5600 | else |
| 5601 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 5602 | fi |
| 5603 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5604 | if test "$enable_sound" = "no"; then |
| 5605 | true; |
| 5606 | else |
| 5607 | case $target in |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 5608 | arm-apple-darwin*) |
Sauw Ming | 6a970a3 | 2011-03-01 05:25:27 +0000 | [diff] [blame] | 5609 | LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5 |
| 5611 | $as_echo "Checking sound device backend... AudioUnit" >&6; } |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 5612 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5613 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5614 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 5615 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5616 | #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] | 5617 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 5618 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5 |
| 5620 | $as_echo "Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5621 | else |
| 5622 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5 |
| 5624 | $as_echo "Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5625 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5626 | ;; |
| 5627 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5628 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5 |
| 5630 | $as_echo "Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5631 | ;; |
| 5632 | *rtems*) |
| 5633 | ac_pjmedia_snd=null |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5 |
| 5635 | $as_echo "Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5636 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5637 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5638 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5639 | ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" |
| 5640 | if test "x$ac_cv_header_alsa_version_h" = x""yes; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5641 | ac_pa_use_alsa=1 |
| 5642 | |
| 5643 | LIBS="$LIBS -lasound" |
| 5644 | |
| 5645 | else |
| 5646 | ac_pa_use_alsa=0 |
| 5647 | |
| 5648 | fi |
| 5649 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5650 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5 |
| 5652 | $as_echo "Checking sound device backend... unix" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5653 | |
| 5654 | ac_pa_use_oss=1 |
| 5655 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5656 | # Check whether --enable-oss was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5657 | if test "${enable_oss+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5658 | enableval=$enable_oss; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5659 | if test "$enable_oss" = "no"; then |
| 5660 | ac_pa_use_oss=0 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5 |
| 5662 | $as_echo "Checking if OSS audio is disabled... yes" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5663 | fi |
| 5664 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5665 | fi |
| 5666 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5667 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5668 | esac |
| 5669 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5670 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5671 | |
| 5672 | if test "$enable_video" = "no"; then |
| 5673 | true; |
| 5674 | else |
| 5675 | case $target in |
| 5676 | arm-apple-darwin*) |
| 5677 | ac_pjmedia_video=iphone_os |
| 5678 | |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5679 | |
| 5680 | SAVED_LIBS="$LIBS" |
| 5681 | LIBS="-framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5683 | /* end confdefs.h. */ |
| 5684 | |
| 5685 | int |
| 5686 | main () |
| 5687 | { |
| 5688 | |
| 5689 | ; |
| 5690 | return 0; |
| 5691 | } |
| 5692 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5693 | if ac_fn_c_try_link "$LINENO"; then : |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5694 | ac_pjmedia_video_has_ios=yes |
| 5695 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5696 | ac_pjmedia_video_has_ios=no |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5697 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5698 | rm -f core conftest.err conftest.$ac_objext \ |
| 5699 | conftest$ac_exeext conftest.$ac_ext |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5700 | LIBS="$SAVED_LIBS" |
| 5701 | if test "$ac_pjmedia_video_has_ios" = "yes"; then |
| 5702 | ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" |
| 5703 | LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5 |
| 5705 | $as_echo "Checking if AVFoundation framework is available... yes" >&6; } |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5706 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5 |
| 5708 | $as_echo "Checking if AVFoundation framework is available... no" >&6; } |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5709 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5710 | ;; |
| 5711 | *darwin*) |
| 5712 | ac_pjmedia_video=mac_os |
| 5713 | |
| 5714 | |
| 5715 | SAVED_LIBS="$LIBS" |
| 5716 | LIBS="-framework QTKit" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5718 | /* end confdefs.h. */ |
| 5719 | |
| 5720 | int |
| 5721 | main () |
| 5722 | { |
| 5723 | |
| 5724 | ; |
| 5725 | return 0; |
| 5726 | } |
| 5727 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5728 | if ac_fn_c_try_link "$LINENO"; then : |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5729 | ac_pjmedia_video_has_qt=yes |
| 5730 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5731 | ac_pjmedia_video_has_qt=no |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5732 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5733 | rm -f core conftest.err conftest.$ac_objext \ |
| 5734 | conftest$ac_exeext conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5735 | LIBS="$SAVED_LIBS" |
| 5736 | if test "$ac_pjmedia_video_has_qt" = "yes"; then |
| 5737 | ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" |
Sauw Ming | 21bd3fd | 2011-04-06 11:30:18 +0000 | [diff] [blame] | 5738 | LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5 |
| 5740 | $as_echo "Checking if QTKit framework is available... yes" >&6; } |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5741 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5 |
| 5743 | $as_echo "Checking if QTKit framework is available... no" >&6; } |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5744 | fi |
| 5745 | ;; |
| 5746 | esac |
| 5747 | fi |
| 5748 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5749 | # Check whether --enable-ext_sound was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5750 | if test "${enable_ext_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5751 | enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5752 | ac_pjmedia_snd=external |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5 |
| 5754 | $as_echo "Checking if external sound is set... yes" >&6; } |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5755 | fi |
| 5756 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5757 | fi |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5758 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5759 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5760 | |
| 5761 | # Check whether --enable-small-filter was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5762 | if test "${enable_small_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5763 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5764 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5 |
| 5766 | $as_echo "Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5767 | fi |
| 5768 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5 |
| 5770 | $as_echo "Checking if small filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5771 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5772 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5773 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5774 | |
| 5775 | # Check whether --enable-large-filter was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5776 | if test "${enable_large_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5777 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5778 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5 |
| 5780 | $as_echo "Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5781 | fi |
| 5782 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5 |
| 5784 | $as_echo "Checking if large filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5785 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5786 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5787 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5788 | |
| 5789 | # Check whether --enable-speex-aec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5790 | if test "${enable_speex_aec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5791 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5792 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5 |
| 5794 | $as_echo "Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5795 | fi |
| 5796 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5 |
| 5798 | $as_echo "Checking if Speex AEC is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5799 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5800 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5801 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5802 | |
| 5803 | # Check whether --enable-g711-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5804 | if test "${enable_g711_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5805 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5806 | ac_no_g711_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5807 | $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5808 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5 |
| 5810 | $as_echo "Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5811 | fi |
| 5812 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5 |
| 5814 | $as_echo "Checking if G.711 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-l16-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5821 | if test "${enable_l16_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5822 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5823 | ac_no_l16_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5824 | $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5825 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5 |
| 5827 | $as_echo "Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5828 | fi |
| 5829 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5 |
| 5831 | $as_echo "Checking if L16 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 | |
| 5835 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5836 | |
| 5837 | # Check whether --enable-gsm-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5838 | if test "${enable_gsm_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5839 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5840 | ac_no_gsm_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5841 | $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5842 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5 |
| 5844 | $as_echo "Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5845 | fi |
| 5846 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5 |
| 5848 | $as_echo "Checking if GSM codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5849 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5850 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5851 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5852 | |
| 5853 | # Check whether --enable-g722-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5854 | if test "${enable_g722_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5855 | enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5856 | ac_no_g722_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5857 | $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5858 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5 |
| 5860 | $as_echo "Checking if G.722 codec is disabled...yes" >&6; } |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5861 | fi |
| 5862 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5 |
| 5864 | $as_echo "Checking if G.722 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5865 | fi |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5866 | |
| 5867 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5868 | |
| 5869 | # Check whether --enable-g7221-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5870 | if test "${enable_g7221_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5871 | enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then |
| 5872 | ac_no_g7221_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5873 | $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5874 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5 |
| 5876 | $as_echo "Checking if G.722.1 codec is disabled...yes" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5877 | fi |
| 5878 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5 |
| 5880 | $as_echo "Checking if G.722.1 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5881 | fi |
| 5882 | |
| 5883 | |
| 5884 | |
| 5885 | # Check whether --enable-speex-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5886 | if test "${enable_speex_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5887 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5888 | ac_no_speex_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5889 | $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5890 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5 |
| 5892 | $as_echo "Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5893 | fi |
| 5894 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5 |
| 5896 | $as_echo "Checking if Speex codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5897 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5898 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5899 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5900 | |
| 5901 | # Check whether --enable-ilbc-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5902 | if test "${enable_ilbc_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5903 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5904 | ac_no_ilbc_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5905 | $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5906 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5 |
| 5908 | $as_echo "Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5909 | fi |
| 5910 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5 |
| 5912 | $as_echo "Checking if iLBC codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5913 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5914 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5915 | |
| 5916 | # Check whether --enable-libsamplerate was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5917 | if test "${enable_libsamplerate+set}" = set; then : |
| 5918 | enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5 |
| 5919 | $as_echo_n "checking for src_new in -lsamplerate... " >&6; } |
| 5920 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then : |
| 5921 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5922 | else |
| 5923 | ac_check_lib_save_LIBS=$LIBS |
| 5924 | LIBS="-lsamplerate $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5926 | /* end confdefs.h. */ |
| 5927 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5928 | /* Override any GCC internal prototype to avoid an error. |
| 5929 | Use char because int might match the return type of a GCC |
| 5930 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5931 | #ifdef __cplusplus |
| 5932 | extern "C" |
| 5933 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5934 | char src_new (); |
| 5935 | int |
| 5936 | main () |
| 5937 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5938 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5939 | ; |
| 5940 | return 0; |
| 5941 | } |
| 5942 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5943 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5944 | ac_cv_lib_samplerate_src_new=yes |
| 5945 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5946 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5947 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5948 | rm -f core conftest.err conftest.$ac_objext \ |
| 5949 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5950 | LIBS=$ac_check_lib_save_LIBS |
| 5951 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 5953 | $as_echo "$ac_cv_lib_samplerate_src_new" >&6; } |
| 5954 | if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5955 | cat >>confdefs.h <<_ACEOF |
| 5956 | #define HAVE_LIBSAMPLERATE 1 |
| 5957 | _ACEOF |
| 5958 | |
| 5959 | LIBS="-lsamplerate $LIBS" |
| 5960 | |
| 5961 | fi |
| 5962 | |
| 5963 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5 |
| 5965 | $as_echo "Skipping libsamplerate detection" >&6; } |
| 5966 | |
| 5967 | fi |
| 5968 | |
| 5969 | |
| 5970 | |
| 5971 | # Check whether --enable-resample_dll was given. |
| 5972 | if test "${enable_resample_dll+set}" = set; then : |
| 5973 | enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then |
| 5974 | ac_resample_dll=1 |
| 5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5 |
| 5976 | $as_echo "Building libresample as shared library... yes" >&6; } |
| 5977 | fi |
| 5978 | else |
| 5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5 |
| 5980 | $as_echo "Building libresample as shared library... no" >&6; } |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 5981 | |
| 5982 | fi |
| 5983 | |
| 5984 | |
| 5985 | |
| 5986 | # Check whether --with-sdl was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5987 | if test "${with_sdl+set}" = set; then : |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 5988 | withval=$with_sdl; |
| 5989 | else |
| 5990 | with_sdl=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5991 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5992 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5993 | |
| 5994 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5995 | # Check whether --enable-sdl was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5996 | if test "${enable_sdl+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5997 | enableval=$enable_sdl; |
| 5998 | if test "$enable_sdl" = "no"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5 |
| 6000 | $as_echo "Checking if SDL is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6001 | fi |
| 6002 | |
| 6003 | else |
| 6004 | |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 6005 | SDL_CONFIG="sdl-config" |
| 6006 | if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then |
| 6007 | SDL_CONFIG=$with_sdl/bin/sdl-config |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5 |
| 6009 | $as_echo "Using SDL prefix... $with_sdl" >&6; } |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 6010 | fi |
| 6011 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5 |
| 6013 | $as_echo_n "checking SDL availability..... " >&6; } |
Sauw Ming | 1d8ceb1 | 2011-08-24 05:54:25 +0000 | [diff] [blame] | 6014 | if (sh -c "$SDL_CONFIG --version" | grep 1.3) then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6015 | |
| 6016 | |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 6017 | ac_sdl_cflags=`$SDL_CONFIG --cflags` |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6018 | ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags" |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 6019 | ac_sdl_ldflags=`$SDL_CONFIG --libs` |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 6020 | LIBS="$LIBS $ac_sdl_ldflags" |
Sauw Ming | 1d8ceb1 | 2011-08-24 05:54:25 +0000 | [diff] [blame] | 6021 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5 |
| 6023 | $as_echo "Unsupported SDL version" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6024 | fi |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6025 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6026 | fi |
| 6027 | |
| 6028 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6029 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6030 | # Check whether --enable-ffmpeg was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6031 | if test "${enable_ffmpeg+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6032 | enableval=$enable_ffmpeg; |
| 6033 | ac_has_ffmpeg=0 |
| 6034 | |
| 6035 | if test "$enable_ffmpeg" = "no"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5 |
| 6037 | $as_echo "Checking if ffmpeg is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6038 | fi |
| 6039 | |
| 6040 | else |
| 6041 | |
| 6042 | |
| 6043 | |
| 6044 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| 6046 | $as_echo_n "checking for deflate in -lz... " >&6; } |
| 6047 | if test "${ac_cv_lib_z_deflate+set}" = set; then : |
| 6048 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6049 | else |
| 6050 | ac_check_lib_save_LIBS=$LIBS |
| 6051 | LIBS="-lz $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6053 | /* end confdefs.h. */ |
| 6054 | |
| 6055 | /* Override any GCC internal prototype to avoid an error. |
| 6056 | Use char because int might match the return type of a GCC |
| 6057 | builtin and then its argument prototype would still apply. */ |
| 6058 | #ifdef __cplusplus |
| 6059 | extern "C" |
| 6060 | #endif |
| 6061 | char deflate (); |
| 6062 | int |
| 6063 | main () |
| 6064 | { |
| 6065 | return deflate (); |
| 6066 | ; |
| 6067 | return 0; |
| 6068 | } |
| 6069 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6070 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6071 | ac_cv_lib_z_deflate=yes |
| 6072 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6073 | ac_cv_lib_z_deflate=no |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6074 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6075 | rm -f core conftest.err conftest.$ac_objext \ |
| 6076 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6077 | LIBS=$ac_check_lib_save_LIBS |
| 6078 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
| 6080 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
| 6081 | if test "x$ac_cv_lib_z_deflate" = x""yes; then : |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6082 | cat >>confdefs.h <<_ACEOF |
| 6083 | #define HAVE_LIBZ 1 |
| 6084 | _ACEOF |
| 6085 | |
| 6086 | LIBS="-lz $LIBS" |
| 6087 | |
| 6088 | fi |
| 6089 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x264_free in -lx264" >&5 |
| 6091 | $as_echo_n "checking for x264_free in -lx264... " >&6; } |
| 6092 | if test "${ac_cv_lib_x264_x264_free+set}" = set; then : |
| 6093 | $as_echo_n "(cached) " >&6 |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 6094 | else |
| 6095 | ac_check_lib_save_LIBS=$LIBS |
| 6096 | LIBS="-lx264 $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 6098 | /* end confdefs.h. */ |
| 6099 | |
| 6100 | /* Override any GCC internal prototype to avoid an error. |
| 6101 | Use char because int might match the return type of a GCC |
| 6102 | builtin and then its argument prototype would still apply. */ |
| 6103 | #ifdef __cplusplus |
| 6104 | extern "C" |
| 6105 | #endif |
| 6106 | char x264_free (); |
| 6107 | int |
| 6108 | main () |
| 6109 | { |
| 6110 | return x264_free (); |
| 6111 | ; |
| 6112 | return 0; |
| 6113 | } |
| 6114 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6115 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 6116 | ac_cv_lib_x264_x264_free=yes |
| 6117 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6118 | ac_cv_lib_x264_x264_free=no |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 6119 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6120 | rm -f core conftest.err conftest.$ac_objext \ |
| 6121 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 6122 | LIBS=$ac_check_lib_save_LIBS |
| 6123 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_x264_x264_free" >&5 |
| 6125 | $as_echo "$ac_cv_lib_x264_x264_free" >&6; } |
| 6126 | if test "x$ac_cv_lib_x264_x264_free" = x""yes; then : |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 6127 | cat >>confdefs.h <<_ACEOF |
| 6128 | #define HAVE_LIBX264 1 |
| 6129 | _ACEOF |
| 6130 | |
| 6131 | LIBS="-lx264 $LIBS" |
| 6132 | |
| 6133 | fi |
| 6134 | |
Benny Prijono | 6a0a49a | 2011-10-18 11:17:23 +0000 | [diff] [blame] | 6135 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5 |
| 6137 | $as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; } |
| 6138 | if test "${ac_cv_lib_bz2_BZ2_bzDecompressInit+set}" = set; then : |
| 6139 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 6140 | else |
| 6141 | ac_check_lib_save_LIBS=$LIBS |
| 6142 | LIBS="-lbz2 $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 6144 | /* end confdefs.h. */ |
| 6145 | |
| 6146 | /* Override any GCC internal prototype to avoid an error. |
| 6147 | Use char because int might match the return type of a GCC |
| 6148 | builtin and then its argument prototype would still apply. */ |
| 6149 | #ifdef __cplusplus |
| 6150 | extern "C" |
| 6151 | #endif |
| 6152 | char BZ2_bzDecompressInit (); |
| 6153 | int |
| 6154 | main () |
| 6155 | { |
| 6156 | return BZ2_bzDecompressInit (); |
| 6157 | ; |
| 6158 | return 0; |
| 6159 | } |
| 6160 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6161 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 6162 | ac_cv_lib_bz2_BZ2_bzDecompressInit=yes |
| 6163 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6164 | ac_cv_lib_bz2_BZ2_bzDecompressInit=no |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 6165 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6166 | rm -f core conftest.err conftest.$ac_objext \ |
| 6167 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 6168 | LIBS=$ac_check_lib_save_LIBS |
| 6169 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5 |
| 6171 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; } |
| 6172 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = x""yes; then : |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 6173 | cat >>confdefs.h <<_ACEOF |
| 6174 | #define HAVE_LIBBZ2 1 |
| 6175 | _ACEOF |
| 6176 | |
| 6177 | LIBS="-lbz2 $LIBS" |
| 6178 | |
| 6179 | fi |
| 6180 | |
| 6181 | |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6182 | FFMPEG_PREFIX="" |
| 6183 | if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then |
| 6184 | FFMPEG_PREFIX=$with_ffmpeg |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5 |
| 6186 | $as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; } |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6187 | LIBS="-L$FFMPEG_PREFIX/lib $LIBS" |
Sauw Ming | 01095d8 | 2011-07-14 08:46:19 +0000 | [diff] [blame] | 6188 | LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS" |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6189 | CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS" |
| 6190 | fi |
| 6191 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5 |
| 6193 | $as_echo_n "checking for avdevice_version in -lavdevice... " >&6; } |
| 6194 | if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then : |
| 6195 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6196 | else |
| 6197 | ac_check_lib_save_LIBS=$LIBS |
| 6198 | LIBS="-lavdevice $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6200 | /* end confdefs.h. */ |
| 6201 | |
| 6202 | /* Override any GCC internal prototype to avoid an error. |
| 6203 | Use char because int might match the return type of a GCC |
| 6204 | builtin and then its argument prototype would still apply. */ |
| 6205 | #ifdef __cplusplus |
| 6206 | extern "C" |
| 6207 | #endif |
| 6208 | char avdevice_version (); |
| 6209 | int |
| 6210 | main () |
| 6211 | { |
| 6212 | return avdevice_version (); |
| 6213 | ; |
| 6214 | return 0; |
| 6215 | } |
| 6216 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6217 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6218 | ac_cv_lib_avdevice_avdevice_version=yes |
| 6219 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6220 | ac_cv_lib_avdevice_avdevice_version=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6221 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6222 | rm -f core conftest.err conftest.$ac_objext \ |
| 6223 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6224 | LIBS=$ac_check_lib_save_LIBS |
| 6225 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5 |
| 6227 | $as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; } |
| 6228 | if test "x$ac_cv_lib_avdevice_avdevice_version" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6229 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" |
| 6230 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice" |
| 6231 | |
| 6232 | |
| 6233 | fi |
| 6234 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5 |
| 6236 | $as_echo_n "checking for av_register_all in -lavformat... " >&6; } |
| 6237 | if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then : |
| 6238 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6239 | else |
| 6240 | ac_check_lib_save_LIBS=$LIBS |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 6241 | LIBS="-lavformat -lavcodec -lavutil |
| 6242 | $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6244 | /* end confdefs.h. */ |
| 6245 | |
| 6246 | /* Override any GCC internal prototype to avoid an error. |
| 6247 | Use char because int might match the return type of a GCC |
| 6248 | builtin and then its argument prototype would still apply. */ |
| 6249 | #ifdef __cplusplus |
| 6250 | extern "C" |
| 6251 | #endif |
| 6252 | char av_register_all (); |
| 6253 | int |
| 6254 | main () |
| 6255 | { |
| 6256 | return av_register_all (); |
| 6257 | ; |
| 6258 | return 0; |
| 6259 | } |
| 6260 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6261 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6262 | ac_cv_lib_avformat_av_register_all=yes |
| 6263 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6264 | ac_cv_lib_avformat_av_register_all=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6265 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6266 | rm -f core conftest.err conftest.$ac_objext \ |
| 6267 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6268 | LIBS=$ac_check_lib_save_LIBS |
| 6269 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5 |
| 6271 | $as_echo "$ac_cv_lib_avformat_av_register_all" >&6; } |
| 6272 | 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] | 6273 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" |
| 6274 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat" |
| 6275 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6276 | fi |
| 6277 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5 |
| 6279 | $as_echo_n "checking for avcodec_init in -lavcodec... " >&6; } |
| 6280 | if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then : |
| 6281 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6282 | else |
| 6283 | ac_check_lib_save_LIBS=$LIBS |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 6284 | LIBS="-lavcodec -lavutil |
| 6285 | $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6287 | /* end confdefs.h. */ |
| 6288 | |
| 6289 | /* Override any GCC internal prototype to avoid an error. |
| 6290 | Use char because int might match the return type of a GCC |
| 6291 | builtin and then its argument prototype would still apply. */ |
| 6292 | #ifdef __cplusplus |
| 6293 | extern "C" |
| 6294 | #endif |
| 6295 | char avcodec_init (); |
| 6296 | int |
| 6297 | main () |
| 6298 | { |
| 6299 | return avcodec_init (); |
| 6300 | ; |
| 6301 | return 0; |
| 6302 | } |
| 6303 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6304 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6305 | ac_cv_lib_avcodec_avcodec_init=yes |
| 6306 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6307 | ac_cv_lib_avcodec_avcodec_init=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6308 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6309 | rm -f core conftest.err conftest.$ac_objext \ |
| 6310 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6311 | LIBS=$ac_check_lib_save_LIBS |
| 6312 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5 |
| 6314 | $as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; } |
| 6315 | if test "x$ac_cv_lib_avcodec_avcodec_init" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6316 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" |
| 6317 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec" |
| 6318 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6319 | fi |
| 6320 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5 |
| 6322 | $as_echo_n "checking for sws_scale in -lswscale... " >&6; } |
| 6323 | if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then : |
| 6324 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6325 | else |
| 6326 | ac_check_lib_save_LIBS=$LIBS |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 6327 | LIBS="-lswscale -lavutil |
| 6328 | $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6330 | /* end confdefs.h. */ |
| 6331 | |
| 6332 | /* Override any GCC internal prototype to avoid an error. |
| 6333 | Use char because int might match the return type of a GCC |
| 6334 | builtin and then its argument prototype would still apply. */ |
| 6335 | #ifdef __cplusplus |
| 6336 | extern "C" |
| 6337 | #endif |
| 6338 | char sws_scale (); |
| 6339 | int |
| 6340 | main () |
| 6341 | { |
| 6342 | return sws_scale (); |
| 6343 | ; |
| 6344 | return 0; |
| 6345 | } |
| 6346 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6347 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6348 | ac_cv_lib_swscale_sws_scale=yes |
| 6349 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6350 | ac_cv_lib_swscale_sws_scale=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6351 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6352 | rm -f core conftest.err conftest.$ac_objext \ |
| 6353 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6354 | LIBS=$ac_check_lib_save_LIBS |
| 6355 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5 |
| 6357 | $as_echo "$ac_cv_lib_swscale_sws_scale" >&6; } |
| 6358 | if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6359 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" |
| 6360 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" |
| 6361 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6362 | fi |
| 6363 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5 |
| 6365 | $as_echo_n "checking for av_malloc in -lavutil... " >&6; } |
| 6366 | if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then : |
| 6367 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6368 | else |
| 6369 | ac_check_lib_save_LIBS=$LIBS |
| 6370 | LIBS="-lavutil $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6372 | /* end confdefs.h. */ |
| 6373 | |
| 6374 | /* Override any GCC internal prototype to avoid an error. |
| 6375 | Use char because int might match the return type of a GCC |
| 6376 | builtin and then its argument prototype would still apply. */ |
| 6377 | #ifdef __cplusplus |
| 6378 | extern "C" |
| 6379 | #endif |
| 6380 | char av_malloc (); |
| 6381 | int |
| 6382 | main () |
| 6383 | { |
| 6384 | return av_malloc (); |
| 6385 | ; |
| 6386 | return 0; |
| 6387 | } |
| 6388 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6389 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6390 | ac_cv_lib_avutil_av_malloc=yes |
| 6391 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6392 | ac_cv_lib_avutil_av_malloc=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6393 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6394 | rm -f core conftest.err conftest.$ac_objext \ |
| 6395 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6396 | LIBS=$ac_check_lib_save_LIBS |
| 6397 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5 |
| 6399 | $as_echo "$ac_cv_lib_avutil_av_malloc" >&6; } |
| 6400 | if test "x$ac_cv_lib_avutil_av_malloc" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6401 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" |
| 6402 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil" |
| 6403 | |
| 6404 | |
| 6405 | fi |
| 6406 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5 |
| 6408 | $as_echo_n "checking for avcore_version in -lavcore... " >&6; } |
| 6409 | if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then : |
| 6410 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6411 | else |
| 6412 | ac_check_lib_save_LIBS=$LIBS |
| 6413 | LIBS="-lavcore $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6415 | /* end confdefs.h. */ |
| 6416 | |
| 6417 | /* Override any GCC internal prototype to avoid an error. |
| 6418 | Use char because int might match the return type of a GCC |
| 6419 | builtin and then its argument prototype would still apply. */ |
| 6420 | #ifdef __cplusplus |
| 6421 | extern "C" |
| 6422 | #endif |
| 6423 | char avcore_version (); |
| 6424 | int |
| 6425 | main () |
| 6426 | { |
| 6427 | return avcore_version (); |
| 6428 | ; |
| 6429 | return 0; |
| 6430 | } |
| 6431 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6432 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6433 | ac_cv_lib_avcore_avcore_version=yes |
| 6434 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6435 | ac_cv_lib_avcore_avcore_version=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6436 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6437 | rm -f core conftest.err conftest.$ac_objext \ |
| 6438 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6439 | LIBS=$ac_check_lib_save_LIBS |
| 6440 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5 |
| 6442 | $as_echo "$ac_cv_lib_avcore_avcore_version" >&6; } |
| 6443 | if test "x$ac_cv_lib_avcore_avcore_version" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6444 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" |
| 6445 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore" |
| 6446 | |
| 6447 | |
| 6448 | fi |
| 6449 | |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 6450 | LIBS="$LIBS $ac_ffmpeg_ldflags" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6451 | |
| 6452 | |
| 6453 | fi |
| 6454 | |
| 6455 | |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6456 | |
| 6457 | # Check whether --with-ffmpeg was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6458 | if test "${with_ffmpeg+set}" = set; then : |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6459 | withval=$with_ffmpeg; |
| 6460 | else |
| 6461 | with_ffmpeg=no |
| 6462 | |
| 6463 | fi |
| 6464 | |
| 6465 | |
| 6466 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6467 | # Check whether --enable-v4l2 was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6468 | if test "${enable_v4l2+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6469 | enableval=$enable_v4l2; |
| 6470 | if test "$enable_v4l2" = "no"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5 |
| 6472 | $as_echo "Checking if V4L2 is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6473 | fi |
| 6474 | |
| 6475 | else |
| 6476 | |
| 6477 | |
| 6478 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5 |
| 6480 | $as_echo_n "checking for v4l2_open in -lv4l2... " >&6; } |
| 6481 | if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then : |
| 6482 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6483 | else |
| 6484 | ac_check_lib_save_LIBS=$LIBS |
| 6485 | LIBS="-lv4l2 $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6487 | /* end confdefs.h. */ |
| 6488 | |
| 6489 | /* Override any GCC internal prototype to avoid an error. |
| 6490 | Use char because int might match the return type of a GCC |
| 6491 | builtin and then its argument prototype would still apply. */ |
| 6492 | #ifdef __cplusplus |
| 6493 | extern "C" |
| 6494 | #endif |
| 6495 | char v4l2_open (); |
| 6496 | int |
| 6497 | main () |
| 6498 | { |
| 6499 | return v4l2_open (); |
| 6500 | ; |
| 6501 | return 0; |
| 6502 | } |
| 6503 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6504 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6505 | ac_cv_lib_v4l2_v4l2_open=yes |
| 6506 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6507 | ac_cv_lib_v4l2_v4l2_open=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6508 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6509 | rm -f core conftest.err conftest.$ac_objext \ |
| 6510 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6511 | LIBS=$ac_check_lib_save_LIBS |
| 6512 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5 |
| 6514 | $as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; } |
| 6515 | if test "x$ac_cv_lib_v4l2_v4l2_open" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6516 | ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1" |
| 6517 | ac_v4l2_ldflags="-lv4l2" |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 6518 | LIBS="$LIBS -lv4l2" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6519 | |
| 6520 | |
| 6521 | fi |
| 6522 | |
| 6523 | |
| 6524 | fi |
| 6525 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6526 | |
| 6527 | # Check whether --enable-ipp was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6528 | if test "${enable_ipp+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6529 | enableval=$enable_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6530 | else |
| 6531 | enable_ipp=no |
| 6532 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6533 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6534 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6535 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6536 | |
| 6537 | # Check whether --with-ipp was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6538 | if test "${with_ipp+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6539 | withval=$with_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6540 | else |
| 6541 | with_ipp=no |
| 6542 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6543 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6544 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6545 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6546 | |
| 6547 | # Check whether --with-ipp-samples was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6548 | if test "${with_ipp_samples+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6549 | withval=$with_ipp_samples; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6550 | else |
| 6551 | with_ipp_samples=no |
| 6552 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6553 | fi |
| 6554 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6555 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6556 | |
| 6557 | # Check whether --with-ipp-arch was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6558 | if test "${with_ipp_arch+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6559 | withval=$with_ipp_arch; |
| 6560 | else |
| 6561 | with_ipp_arch=no |
| 6562 | |
| 6563 | fi |
| 6564 | |
| 6565 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6566 | if test "x$enable_ipp" != "xno"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5 |
| 6568 | $as_echo_n "checking Intel IPP location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6569 | |
| 6570 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5 |
| 6572 | $as_echo "$with_ipp" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6573 | IPPROOT=$with_ipp |
| 6574 | elif test "x$IPPROOT" = "x"; then |
| 6575 | if test -d /opt/intel/ipp; then |
| 6576 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5 |
| 6578 | $as_echo "autodetected in $IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6579 | fi |
| 6580 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5 |
| 6582 | $as_echo "$IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6583 | fi |
| 6584 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6585 | if test "x$with_ipp_arch" != "xno"; then |
Benny Prijono | 896be29 | 2010-08-17 12:16:46 +0000 | [diff] [blame] | 6586 | IPP_SUFFIX=$with_ipp_arch |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 |
| 6588 | $as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6589 | else |
| 6590 | IPP_SUFFIX="" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5 |
| 6592 | $as_echo "IPP arch suffix is set to empty" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6593 | fi |
| 6594 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6595 | if test x$IPPROOT = x; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6596 | 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] | 6597 | elif test ! -d $IPPROOT; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6598 | as_fn_error "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6599 | elif test ! -d $IPPROOT/include; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6600 | as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6601 | else |
| 6602 | # IPP directory looks okay. |
| 6603 | # Remove trailing backslash |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6604 | IPPROOT=`echo $IPPROOT | sed 's/\/$//'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6605 | |
| 6606 | SAVED_CFLAGS="$CFLAGS" |
| 6607 | SAVED_LDFLAGS="$LDFLAGS" |
| 6608 | SAVED_LIBS="$LIBS" |
| 6609 | |
| 6610 | IPP_CFLAGS="-I$IPPROOT/include" |
Benny Prijono | cd62c4e | 2011-03-18 08:33:29 +0000 | [diff] [blame] | 6611 | IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6612 | |
Benny Prijono | cd62c4e | 2011-03-18 08:33:29 +0000 | [diff] [blame] | 6613 | # |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6614 | # Some differences between Mac OS X and Linux |
| 6615 | case $target in |
| 6616 | *darwin* ) |
| 6617 | IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib" |
| 6618 | ;; |
| 6619 | *) |
Benny Prijono | cd62c4e | 2011-03-18 08:33:29 +0000 | [diff] [blame] | 6620 | # Find out where the libraries live. |
| 6621 | IPP7_ARCH="" |
| 6622 | if test -d $IPPROOT/lib/intel64; then |
| 6623 | IPP7_ARCH="intel64" |
| 6624 | elif test -d $IPPROOT/lib/ia32; then |
| 6625 | IPP7_ARCH="ia32" |
| 6626 | elif test -d $IPPROOT/lib/mic; then |
| 6627 | IPP7_ARCH="mic" |
| 6628 | fi |
| 6629 | |
| 6630 | if test -z "$IPP7_ARCH"; then |
| 6631 | # IPP6 (and possibly below) |
| 6632 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 6633 | IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide" |
| 6634 | else |
| 6635 | # IPP7 |
| 6636 | if ! test -d $IPPROOT/../compiler; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6637 | 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] | 6638 | fi |
| 6639 | IPP_CFLAGS="$IPP_CFLAGS" |
| 6640 | IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH" |
| 6641 | IPP_LIBS="$IPP_LIBS -liomp5" |
| 6642 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6643 | ;; |
| 6644 | esac |
| 6645 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6646 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6647 | #Static: |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6648 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 6649 | |
| 6650 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 6651 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 6652 | LIBS="$IPP_LIBS $LIBS" |
| 6653 | |
| 6654 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5 |
| 6656 | $as_echo_n "checking Intel IPP usability... " >&6; } |
| 6657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6658 | /* end confdefs.h. */ |
| 6659 | #include <ippcore.h> |
| 6660 | |
| 6661 | int |
| 6662 | main () |
| 6663 | { |
| 6664 | ippStaticInit(); |
| 6665 | ; |
| 6666 | return 0; |
| 6667 | } |
| 6668 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6669 | if ac_fn_c_try_link "$LINENO"; then : |
| 6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6671 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6672 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6673 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6674 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6675 | { as_fn_set_status run with --help for more info |
| 6676 | as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly |
| 6677 | See \`config.log' for more details." "$LINENO" 5; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6678 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6679 | rm -f core conftest.err conftest.$ac_objext \ |
| 6680 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6681 | |
| 6682 | CFLAGS="$SAVED_CFLAGS" |
| 6683 | LDFLAGS="$SAVED_LDFLAGS" |
| 6684 | LIBS="$SAVED_LIBS" |
| 6685 | fi |
| 6686 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5 |
| 6688 | $as_echo_n "checking Intel IPP samples location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6689 | |
| 6690 | if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5 |
| 6692 | $as_echo "$with_ipp_samples" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6693 | IPPSAMPLES=$with_ipp_samples |
| 6694 | elif test "x$IPPSAMPLES" = "x"; then |
| 6695 | if test -d /opt/intel/ipp-samples; then |
| 6696 | IPPSAMPLES=/opt/intel/ipp-samples |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5 |
| 6698 | $as_echo "autodetected in $IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6699 | fi |
| 6700 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5 |
| 6702 | $as_echo "$IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6703 | fi |
| 6704 | |
| 6705 | if test x$IPPSAMPLES = x; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6706 | 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] | 6707 | elif test ! -d $IPPSAMPLES; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6708 | as_fn_error "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6709 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6710 | as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6711 | else |
| 6712 | # Remove trailing backslash |
| 6713 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 6714 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6715 | # Guess the libusc.a/libspeech.a build location |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5 |
| 6717 | $as_echo_n "checking Intel IPP USC build location... " >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6718 | if test -d $IPPSAMPLES/speech-codecs/bin; then |
| 6719 | IPPVER=5 |
| 6720 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 6721 | elif test -d $IPPSAMPLES/speech-codecs/_bin; then |
| 6722 | IPPVER=6 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6723 | if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then |
| 6724 | # gcc compiler |
| 6725 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` |
| 6726 | elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then |
| 6727 | # icc compiler |
| 6728 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` |
| 6729 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6730 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6731 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6732 | as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? |
| 6733 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6734 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6735 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6736 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6738 | 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? |
| 6739 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6740 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6741 | |
| 6742 | # Test the directory |
| 6743 | if test ! -d $IPPSAMP_DIR; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6744 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6745 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6746 | as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist |
| 6747 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6748 | exit 1; |
| 6749 | fi |
| 6750 | |
| 6751 | if test "x$IPPVER" = "x5"; then |
| 6752 | IPPSAMP_LIBS="libusc.a" |
| 6753 | IPPSAMP_LDLIBS="-lusc" |
| 6754 | elif test "x$IPPVER" = "x6"; then |
| 6755 | IPPSAMP_LIBS="libspeech.a" |
| 6756 | IPPSAMP_LDLIBS="-lspeech" |
| 6757 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6758 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6759 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6760 | as_fn_error "bug in this script: unsupported IPP version |
| 6761 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6762 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6763 | |
| 6764 | if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6765 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6766 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6767 | as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR |
| 6768 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6769 | fi |
| 6770 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5 |
| 6772 | $as_echo "$IPPSAMP_DIR" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6773 | |
| 6774 | SAVED_CFLAGS="$CFLAGS" |
| 6775 | SAVED_LDFLAGS="$LDFLAGS" |
| 6776 | SAVED_LIBS="$LIBS" |
| 6777 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6778 | IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 6779 | CFLAGS="$CFLAGS $IPPSAMP_INC" |
| 6780 | LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR" |
| 6781 | LIBS="$IPPSAMP_LDLIBS $LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6782 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5 |
| 6784 | $as_echo_n "checking Intel IPP USC usability... " >&6; } |
| 6785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6786 | /* end confdefs.h. */ |
| 6787 | #include <usc.h> |
| 6788 | |
| 6789 | int |
| 6790 | main () |
| 6791 | { |
| 6792 | extern USC_Fxns USC_G729AFP_Fxns; |
| 6793 | ; |
| 6794 | return 0; |
| 6795 | } |
| 6796 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6797 | if ac_fn_c_try_link "$LINENO"; then : |
| 6798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6799 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6800 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6801 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6802 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6803 | as_fn_error "failed |
| 6804 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6805 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6806 | rm -f core conftest.err conftest.$ac_objext \ |
| 6807 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6808 | |
| 6809 | CFLAGS="$SAVED_CFLAGS" |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6810 | LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS" |
| 6811 | LIBS="$IPP_LIBS $SAVED_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6812 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6813 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC" |
| 6814 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR" |
| 6815 | IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6816 | fi |
| 6817 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6818 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 6819 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 6820 | LIBS="$LIBS $IPP_LIBS" |
| 6821 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6822 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 6823 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 6824 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 6825 | export IPP_LIBS=$IPP_LIBS" |
| 6826 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 6828 | $as_echo "Skipping Intel IPP settings (not wanted)" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6829 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6830 | |
| 6831 | |
| 6832 | |
| 6833 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6834 | # Check whether --enable-ssl was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6835 | if test "${enable_ssl+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6836 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6837 | if test "$enable_ssl" = "no"; then |
| 6838 | ac_no_ssl=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5 |
| 6840 | $as_echo "Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6841 | fi |
| 6842 | |
| 6843 | else |
| 6844 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5 |
| 6846 | $as_echo "checking for OpenSSL installations.." >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6847 | |
| 6848 | |
| 6849 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6850 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" |
| 6851 | if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6852 | openssl_h_present=1 |
| 6853 | fi |
| 6854 | |
| 6855 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 6857 | $as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; } |
| 6858 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then : |
| 6859 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6860 | else |
| 6861 | ac_check_lib_save_LIBS=$LIBS |
| 6862 | LIBS="-lcrypto $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6864 | /* end confdefs.h. */ |
| 6865 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6866 | /* Override any GCC internal prototype to avoid an error. |
| 6867 | Use char because int might match the return type of a GCC |
| 6868 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6869 | #ifdef __cplusplus |
| 6870 | extern "C" |
| 6871 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6872 | char ERR_load_BIO_strings (); |
| 6873 | int |
| 6874 | main () |
| 6875 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6876 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6877 | ; |
| 6878 | return 0; |
| 6879 | } |
| 6880 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6881 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6882 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 6883 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6884 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6885 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6886 | rm -f core conftest.err conftest.$ac_objext \ |
| 6887 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6888 | LIBS=$ac_check_lib_save_LIBS |
| 6889 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 6891 | $as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
| 6892 | 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] | 6893 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 6894 | fi |
| 6895 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 |
| 6897 | $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } |
| 6898 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then : |
| 6899 | $as_echo_n "(cached) " >&6 |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6900 | else |
| 6901 | ac_check_lib_save_LIBS=$LIBS |
| 6902 | LIBS="-lssl $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6904 | /* end confdefs.h. */ |
| 6905 | |
| 6906 | /* Override any GCC internal prototype to avoid an error. |
| 6907 | Use char because int might match the return type of a GCC |
| 6908 | builtin and then its argument prototype would still apply. */ |
| 6909 | #ifdef __cplusplus |
| 6910 | extern "C" |
| 6911 | #endif |
| 6912 | char SSL_library_init (); |
| 6913 | int |
| 6914 | main () |
| 6915 | { |
| 6916 | return SSL_library_init (); |
| 6917 | ; |
| 6918 | return 0; |
| 6919 | } |
| 6920 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6921 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6922 | ac_cv_lib_ssl_SSL_library_init=yes |
| 6923 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6924 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6925 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6926 | rm -f core conftest.err conftest.$ac_objext \ |
| 6927 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6928 | LIBS=$ac_check_lib_save_LIBS |
| 6929 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 6931 | $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } |
| 6932 | 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] | 6933 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 6934 | fi |
| 6935 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6936 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5 |
| 6938 | $as_echo "OpenSSL library found, SSL support enabled" >&6; } |
Nanang Izzuddin | 9c7616f | 2009-10-28 06:09:15 +0000 | [diff] [blame] | 6939 | # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK |
| 6940 | #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6941 | $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h |
Nanang Izzuddin | ea6d3c4 | 2009-10-26 15:47:52 +0000 | [diff] [blame] | 6942 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6943 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 6945 | $as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6946 | fi |
| 6947 | |
| 6948 | fi |
| 6949 | |
| 6950 | |
| 6951 | |
| 6952 | # Check whether --enable-opencore_amrnb was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6953 | if test "${enable_opencore_amrnb+set}" = set; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6954 | enableval=$enable_opencore_amrnb; |
| 6955 | if test "$enable_opencore_amrnb" = "no"; then |
| 6956 | ac_no_opencore_amrnb=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6957 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6958 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5 |
| 6960 | $as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; } |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6961 | fi |
| 6962 | |
| 6963 | else |
| 6964 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5 |
| 6966 | $as_echo "checking for OpenCORE AMR-NB installations.." >&6; } |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6967 | |
| 6968 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6969 | ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default" |
| 6970 | 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] | 6971 | opencore_amrnb_h_present=1 |
| 6972 | fi |
| 6973 | |
| 6974 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5 |
| 6976 | $as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; } |
| 6977 | if test "${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+set}" = set; then : |
| 6978 | $as_echo_n "(cached) " >&6 |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6979 | else |
| 6980 | ac_check_lib_save_LIBS=$LIBS |
| 6981 | LIBS="-lopencore-amrnb $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 6983 | /* end confdefs.h. */ |
| 6984 | |
| 6985 | /* Override any GCC internal prototype to avoid an error. |
| 6986 | Use char because int might match the return type of a GCC |
| 6987 | builtin and then its argument prototype would still apply. */ |
| 6988 | #ifdef __cplusplus |
| 6989 | extern "C" |
| 6990 | #endif |
| 6991 | char Encoder_Interface_init (); |
| 6992 | int |
| 6993 | main () |
| 6994 | { |
| 6995 | return Encoder_Interface_init (); |
| 6996 | ; |
| 6997 | return 0; |
| 6998 | } |
| 6999 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7000 | if ac_fn_c_try_link "$LINENO"; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7001 | ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes |
| 7002 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7003 | ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7004 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7005 | rm -f core conftest.err conftest.$ac_objext \ |
| 7006 | conftest$ac_exeext conftest.$ac_ext |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7007 | LIBS=$ac_check_lib_save_LIBS |
| 7008 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5 |
| 7010 | $as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; } |
| 7011 | 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] | 7012 | opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb" |
| 7013 | fi |
| 7014 | |
| 7015 | if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5 |
| 7017 | $as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; } |
| 7018 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7019 | |
| 7020 | else |
| 7021 | ac_no_opencore_amrnb=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7022 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7023 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7024 | fi |
| 7025 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7026 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7027 | |
| 7028 | |
| 7029 | |
| 7030 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5 |
| 7032 | $as_echo_n "checking if select() needs correct nfds... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7033 | case $target in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7034 | *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7035 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7037 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7038 | ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7039 | *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7040 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 7042 | $as_echo "no (default)" >&6; } |
| 7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 7044 | $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] | 7045 | ;; |
| 7046 | esac |
| 7047 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5 |
| 7049 | $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] | 7050 | case $target in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7051 | *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7052 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7054 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7055 | ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7056 | *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7057 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 7059 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7060 | ;; |
| 7061 | esac |
| 7062 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5 |
| 7064 | $as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7065 | case $target in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7066 | *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7067 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7069 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7070 | ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7071 | *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7072 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 7074 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7075 | ;; |
| 7076 | esac |
| 7077 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7078 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7079 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7080 | $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7081 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7082 | ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7083 | *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7084 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 7086 | $as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7087 | ;; |
| 7088 | esac |
| 7089 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7090 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7091 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7092 | $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7093 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7094 | ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7095 | *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7096 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 7098 | $as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7099 | ;; |
| 7100 | esac |
| 7101 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7102 | |
| 7103 | |
| 7104 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7105 | if test "$build" = "$host"; then |
| 7106 | ac_cross_compile= |
| 7107 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 7108 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7109 | fi |
| 7110 | ac_linux_poll=select |
| 7111 | |
| 7112 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7113 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7114 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7115 | case $target in |
| 7116 | *rtems*) |
| 7117 | ac_main_obj=main_rtems.o |
| 7118 | ;; |
| 7119 | *) |
| 7120 | ac_main_obj=main.o |
| 7121 | ;; |
| 7122 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7123 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7124 | |
| 7125 | 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] | 7126 | cat >confcache <<\_ACEOF |
| 7127 | # This file is a shell script that caches the results of configure |
| 7128 | # tests run on this system so they can be shared between configure |
| 7129 | # scripts and configure runs, see configure's option --config-cache. |
| 7130 | # It is not useful on other systems. If it contains results you don't |
| 7131 | # want to keep, you may remove or edit it. |
| 7132 | # |
| 7133 | # config.status only pays attention to the cache file if you give it |
| 7134 | # the --recheck option to rerun configure. |
| 7135 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7136 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7137 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7138 | # following values. |
| 7139 | |
| 7140 | _ACEOF |
| 7141 | |
| 7142 | # The following way of writing the cache mishandles newlines in values, |
| 7143 | # but we know of no workaround that is simple, portable, and efficient. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7144 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7145 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7146 | # 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] | 7147 | ( |
| 7148 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 7149 | eval ac_val=\$$ac_var |
| 7150 | case $ac_val in #( |
| 7151 | *${as_nl}*) |
| 7152 | case $ac_var in #( |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7153 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 7154 | $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] | 7155 | esac |
| 7156 | case $ac_var in #( |
| 7157 | _ | IFS | as_nl) ;; #( |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7158 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 7159 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7160 | esac ;; |
| 7161 | esac |
| 7162 | done |
| 7163 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7164 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7165 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 7166 | *${as_nl}ac_space=\ *) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7167 | # `set' does not quote correctly, so add quotes: double-quote |
| 7168 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7169 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7170 | "s/'/'\\\\''/g; |
| 7171 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7172 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7173 | *) |
| 7174 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7175 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7176 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7177 | esac | |
| 7178 | sort |
| 7179 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7180 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7181 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7182 | t clear |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7183 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7184 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7185 | t end |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7186 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7187 | :end' >>confcache |
| 7188 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 7189 | if test -w "$cache_file"; then |
| 7190 | test "x$cache_file" != "x/dev/null" && |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 7192 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7193 | cat confcache >$cache_file |
| 7194 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7195 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 7196 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7197 | fi |
| 7198 | fi |
| 7199 | rm -f confcache |
| 7200 | |
| 7201 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7202 | # Let make expand exec_prefix. |
| 7203 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7204 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7205 | DEFS=-DHAVE_CONFIG_H |
| 7206 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7207 | ac_libobjs= |
| 7208 | ac_ltlibobjs= |
| 7209 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 7210 | # 1. Remove the extension, and $U if already installed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7211 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7212 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7213 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 7214 | # will be set to the directory where LIBOBJS objects are built. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7215 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 7216 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7217 | done |
| 7218 | LIBOBJS=$ac_libobjs |
| 7219 | |
| 7220 | LTLIBOBJS=$ac_ltlibobjs |
| 7221 | |
| 7222 | |
| 7223 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7224 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7225 | : ${CONFIG_STATUS=./config.status} |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7226 | ac_write_fail=0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7227 | ac_clean_files_save=$ac_clean_files |
| 7228 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7229 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 7230 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7231 | as_write_fail=0 |
| 7232 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7233 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7234 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7235 | # Run this file to recreate the current configuration. |
| 7236 | # Compiler output produced by configure, useful for debugging |
| 7237 | # configure, is in config.log if it exists. |
| 7238 | |
| 7239 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7240 | ac_cs_recheck=false |
| 7241 | ac_cs_silent=false |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 7242 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7243 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 7244 | export SHELL |
| 7245 | _ASEOF |
| 7246 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 7247 | ## -------------------- ## |
| 7248 | ## M4sh Initialization. ## |
| 7249 | ## -------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7250 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7251 | # Be more Bourne compatible |
| 7252 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7253 | 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] | 7254 | emulate sh |
| 7255 | NULLCMD=: |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7256 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7257 | # is contrary to our usage. Disable this feature. |
| 7258 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7259 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7260 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7261 | case `(set -o) 2>/dev/null` in #( |
| 7262 | *posix*) : |
| 7263 | set -o posix ;; #( |
| 7264 | *) : |
| 7265 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7266 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7267 | fi |
| 7268 | |
| 7269 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7270 | as_nl=' |
| 7271 | ' |
| 7272 | export as_nl |
| 7273 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 7274 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 7275 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 7276 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 7277 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 7278 | # but without wasting forks for bash or zsh. |
| 7279 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 7280 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 7281 | as_echo='print -r --' |
| 7282 | as_echo_n='print -rn --' |
| 7283 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 7284 | as_echo='printf %s\n' |
| 7285 | as_echo_n='printf %s' |
| 7286 | else |
| 7287 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 7288 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 7289 | as_echo_n='/usr/ucb/echo -n' |
| 7290 | else |
| 7291 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 7292 | as_echo_n_body='eval |
| 7293 | arg=$1; |
| 7294 | case $arg in #( |
| 7295 | *"$as_nl"*) |
| 7296 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 7297 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 7298 | esac; |
| 7299 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 7300 | ' |
| 7301 | export as_echo_n_body |
| 7302 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 7303 | fi |
| 7304 | export as_echo_body |
| 7305 | as_echo='sh -c $as_echo_body as_echo' |
| 7306 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7307 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7308 | # The user is always right. |
| 7309 | if test "${PATH_SEPARATOR+set}" != set; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7310 | PATH_SEPARATOR=: |
| 7311 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 7312 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 7313 | PATH_SEPARATOR=';' |
| 7314 | } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7315 | fi |
| 7316 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7317 | |
| 7318 | # IFS |
| 7319 | # We need space, tab and new line, in precisely that order. Quoting is |
| 7320 | # there to prevent editors from complaining about space-tab. |
| 7321 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 7322 | # splitting by setting IFS to empty value.) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7323 | IFS=" "" $as_nl" |
| 7324 | |
| 7325 | # Find who we are. Look in the path if we contain no directory separator. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7326 | case $0 in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7327 | *[\\/]* ) as_myself=$0 ;; |
| 7328 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7329 | for as_dir in $PATH |
| 7330 | do |
| 7331 | IFS=$as_save_IFS |
| 7332 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7333 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 7334 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7335 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7336 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7337 | ;; |
| 7338 | esac |
| 7339 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 7340 | # in which case we are not to be found in the path. |
| 7341 | if test "x$as_myself" = x; then |
| 7342 | as_myself=$0 |
| 7343 | fi |
| 7344 | if test ! -f "$as_myself"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7345 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 7346 | exit 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7347 | fi |
| 7348 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7349 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 7350 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 7351 | # suppresses any "Segmentation fault" message there. '((' could |
| 7352 | # trigger a bug in pdksh 5.2.14. |
| 7353 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 7354 | do eval test x\${$as_var+set} = xset \ |
| 7355 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7356 | done |
| 7357 | PS1='$ ' |
| 7358 | PS2='> ' |
| 7359 | PS4='+ ' |
| 7360 | |
| 7361 | # NLS nuisances. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7362 | LC_ALL=C |
| 7363 | export LC_ALL |
| 7364 | LANGUAGE=C |
| 7365 | export LANGUAGE |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 7366 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7367 | # CDPATH. |
| 7368 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 7369 | |
| 7370 | |
| 7371 | # as_fn_error ERROR [LINENO LOG_FD] |
| 7372 | # --------------------------------- |
| 7373 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 7374 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 7375 | # script with status $?, using 1 if that was 0. |
| 7376 | as_fn_error () |
| 7377 | { |
| 7378 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 7379 | if test "$3"; then |
| 7380 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 7381 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 7382 | fi |
| 7383 | $as_echo "$as_me: error: $1" >&2 |
| 7384 | as_fn_exit $as_status |
| 7385 | } # as_fn_error |
| 7386 | |
| 7387 | |
| 7388 | # as_fn_set_status STATUS |
| 7389 | # ----------------------- |
| 7390 | # Set $? to STATUS, without forking. |
| 7391 | as_fn_set_status () |
| 7392 | { |
| 7393 | return $1 |
| 7394 | } # as_fn_set_status |
| 7395 | |
| 7396 | # as_fn_exit STATUS |
| 7397 | # ----------------- |
| 7398 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 7399 | as_fn_exit () |
| 7400 | { |
| 7401 | set +e |
| 7402 | as_fn_set_status $1 |
| 7403 | exit $1 |
| 7404 | } # as_fn_exit |
| 7405 | |
| 7406 | # as_fn_unset VAR |
| 7407 | # --------------- |
| 7408 | # Portably unset VAR. |
| 7409 | as_fn_unset () |
| 7410 | { |
| 7411 | { eval $1=; unset $1;} |
| 7412 | } |
| 7413 | as_unset=as_fn_unset |
| 7414 | # as_fn_append VAR VALUE |
| 7415 | # ---------------------- |
| 7416 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 7417 | # advantage of any shell optimizations that allow amortized linear growth over |
| 7418 | # repeated appends, instead of the typical quadratic growth present in naive |
| 7419 | # implementations. |
| 7420 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 7421 | eval 'as_fn_append () |
| 7422 | { |
| 7423 | eval $1+=\$2 |
| 7424 | }' |
| 7425 | else |
| 7426 | as_fn_append () |
| 7427 | { |
| 7428 | eval $1=\$$1\$2 |
| 7429 | } |
| 7430 | fi # as_fn_append |
| 7431 | |
| 7432 | # as_fn_arith ARG... |
| 7433 | # ------------------ |
| 7434 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 7435 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 7436 | # must be portable across $(()) and expr. |
| 7437 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 7438 | eval 'as_fn_arith () |
| 7439 | { |
| 7440 | as_val=$(( $* )) |
| 7441 | }' |
| 7442 | else |
| 7443 | as_fn_arith () |
| 7444 | { |
| 7445 | as_val=`expr "$@" || test $? -eq 1` |
| 7446 | } |
| 7447 | fi # as_fn_arith |
| 7448 | |
| 7449 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7450 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 7451 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 7452 | as_expr=expr |
| 7453 | else |
| 7454 | as_expr=false |
| 7455 | fi |
| 7456 | |
| 7457 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 7458 | as_basename=basename |
| 7459 | else |
| 7460 | as_basename=false |
| 7461 | fi |
| 7462 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7463 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 7464 | as_dirname=dirname |
| 7465 | else |
| 7466 | as_dirname=false |
| 7467 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7468 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7469 | as_me=`$as_basename -- "$0" || |
| 7470 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 7471 | X"$0" : 'X\(//\)$' \| \ |
| 7472 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7473 | $as_echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7474 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 7475 | s//\1/ |
| 7476 | q |
| 7477 | } |
| 7478 | /^X\/\(\/\/\)$/{ |
| 7479 | s//\1/ |
| 7480 | q |
| 7481 | } |
| 7482 | /^X\/\(\/\).*/{ |
| 7483 | s//\1/ |
| 7484 | q |
| 7485 | } |
| 7486 | s/.*/./; q'` |
| 7487 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7488 | # Avoid depending upon Character Ranges. |
| 7489 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 7490 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 7491 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 7492 | as_cr_digits='0123456789' |
| 7493 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7494 | |
| 7495 | ECHO_C= ECHO_N= ECHO_T= |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7496 | case `echo -n x` in #((((( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7497 | -n*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7498 | case `echo 'xy\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7499 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7500 | xy) ECHO_C='\c';; |
| 7501 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 7502 | ECHO_T=' ';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7503 | esac;; |
| 7504 | *) |
| 7505 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7506 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7507 | |
| 7508 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7509 | if test -d conf$$.dir; then |
| 7510 | rm -f conf$$.dir/conf$$.file |
| 7511 | else |
| 7512 | rm -f conf$$.dir |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7513 | mkdir conf$$.dir 2>/dev/null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7514 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7515 | if (echo >conf$$.file) 2>/dev/null; then |
| 7516 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7517 | as_ln_s='ln -s' |
| 7518 | # ... but there are two gotchas: |
| 7519 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 7520 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 7521 | # In both cases, we have to default to `cp -p'. |
| 7522 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 7523 | as_ln_s='cp -p' |
| 7524 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7525 | as_ln_s=ln |
| 7526 | else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7527 | as_ln_s='cp -p' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7528 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7529 | else |
| 7530 | as_ln_s='cp -p' |
| 7531 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7532 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 7533 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7534 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7535 | |
| 7536 | # as_fn_mkdir_p |
| 7537 | # ------------- |
| 7538 | # Create "$as_dir" as a directory, including parents if necessary. |
| 7539 | as_fn_mkdir_p () |
| 7540 | { |
| 7541 | |
| 7542 | case $as_dir in #( |
| 7543 | -*) as_dir=./$as_dir;; |
| 7544 | esac |
| 7545 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 7546 | as_dirs= |
| 7547 | while :; do |
| 7548 | case $as_dir in #( |
| 7549 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 7550 | *) as_qdir=$as_dir;; |
| 7551 | esac |
| 7552 | as_dirs="'$as_qdir' $as_dirs" |
| 7553 | as_dir=`$as_dirname -- "$as_dir" || |
| 7554 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7555 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7556 | X"$as_dir" : 'X\(//\)$' \| \ |
| 7557 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 7558 | $as_echo X"$as_dir" | |
| 7559 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7560 | s//\1/ |
| 7561 | q |
| 7562 | } |
| 7563 | /^X\(\/\/\)[^/].*/{ |
| 7564 | s//\1/ |
| 7565 | q |
| 7566 | } |
| 7567 | /^X\(\/\/\)$/{ |
| 7568 | s//\1/ |
| 7569 | q |
| 7570 | } |
| 7571 | /^X\(\/\).*/{ |
| 7572 | s//\1/ |
| 7573 | q |
| 7574 | } |
| 7575 | s/.*/./; q'` |
| 7576 | test -d "$as_dir" && break |
| 7577 | done |
| 7578 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 7579 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 7580 | |
| 7581 | |
| 7582 | } # as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7583 | if mkdir -p . 2>/dev/null; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7584 | as_mkdir_p='mkdir -p "$as_dir"' |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 7585 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7586 | test -d ./-p && rmdir ./-p |
| 7587 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 7588 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7589 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7590 | if test -x / >/dev/null 2>&1; then |
| 7591 | as_test_x='test -x' |
| 7592 | else |
| 7593 | if ls -dL / >/dev/null 2>&1; then |
| 7594 | as_ls_L_option=L |
| 7595 | else |
| 7596 | as_ls_L_option= |
| 7597 | fi |
| 7598 | as_test_x=' |
| 7599 | eval sh -c '\'' |
| 7600 | if test -d "$1"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7601 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7602 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7603 | case $1 in #( |
| 7604 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7605 | esac; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7606 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7607 | ???[sx]*):;;*)false;;esac;fi |
| 7608 | '\'' sh |
| 7609 | ' |
| 7610 | fi |
| 7611 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7612 | |
| 7613 | # Sed expression to map a string onto a valid CPP name. |
| 7614 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 7615 | |
| 7616 | # Sed expression to map a string onto a valid variable name. |
| 7617 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 7618 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7619 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7620 | exec 6>&1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7621 | ## ----------------------------------- ## |
| 7622 | ## Main body of $CONFIG_STATUS script. ## |
| 7623 | ## ----------------------------------- ## |
| 7624 | _ASEOF |
| 7625 | 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] | 7626 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7627 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7628 | # 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] | 7629 | # report actual input values of CONFIG_FILES etc. instead of their |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7630 | # values after options handling. |
| 7631 | ac_log=" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7632 | This file was extended by pjproject $as_me 2.x, which was |
| 7633 | generated by GNU Autoconf 2.65. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7634 | |
| 7635 | CONFIG_FILES = $CONFIG_FILES |
| 7636 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 7637 | CONFIG_LINKS = $CONFIG_LINKS |
| 7638 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7639 | $ $0 $@ |
| 7640 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7641 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 7642 | " |
| 7643 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7644 | _ACEOF |
| 7645 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7646 | case $ac_config_files in *" |
| 7647 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 7648 | esac |
| 7649 | |
| 7650 | case $ac_config_headers in *" |
| 7651 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 7652 | esac |
| 7653 | |
| 7654 | |
| 7655 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7656 | # Files that config.status was made for. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7657 | config_files="$ac_config_files" |
| 7658 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7659 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7660 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7661 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7662 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7663 | ac_cs_usage="\ |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7664 | \`$as_me' instantiates files and other configuration actions |
| 7665 | from templates according to the current configuration. Unless the files |
| 7666 | and actions are specified as TAGs, all are instantiated by default. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7667 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7668 | Usage: $0 [OPTION]... [TAG]... |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7669 | |
| 7670 | -h, --help print this help, then exit |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7671 | -V, --version print version number and configuration settings, then exit |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7672 | --config print configuration, then exit |
| 7673 | -q, --quiet, --silent |
| 7674 | do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7675 | -d, --debug don't remove temporary files |
| 7676 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7677 | --file=FILE[:TEMPLATE] |
| 7678 | instantiate the configuration file FILE |
| 7679 | --header=FILE[:TEMPLATE] |
| 7680 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7681 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7682 | Configuration files: |
| 7683 | $config_files |
| 7684 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7685 | Configuration headers: |
| 7686 | $config_headers |
| 7687 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7688 | Report bugs to the package provider." |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7689 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7690 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7691 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7692 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7693 | ac_cs_version="\\ |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7694 | pjproject config.status 2.x |
| 7695 | configured by $0, generated by GNU Autoconf 2.65, |
| 7696 | with options \\"\$ac_cs_config\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7697 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7698 | Copyright (C) 2009 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7699 | This config.status script is free software; the Free Software Foundation |
| 7700 | gives unlimited permission to copy, distribute and modify it." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7701 | |
| 7702 | ac_pwd='$ac_pwd' |
| 7703 | srcdir='$srcdir' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7704 | test -n "\$AWK" || AWK=awk |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7705 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7706 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7707 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7708 | # The default lists apply if the user does not specify any file. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7709 | ac_need_defaults=: |
| 7710 | while test $# != 0 |
| 7711 | do |
| 7712 | case $1 in |
| 7713 | --*=*) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7714 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 7715 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7716 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7717 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7718 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7719 | ac_option=$1 |
| 7720 | ac_optarg=$2 |
| 7721 | ac_shift=shift |
| 7722 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7723 | esac |
| 7724 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7725 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7726 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7727 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7728 | ac_cs_recheck=: ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7729 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7730 | $as_echo "$ac_cs_version"; exit ;; |
| 7731 | --config | --confi | --conf | --con | --co | --c ) |
| 7732 | $as_echo "$ac_cs_config"; exit ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7733 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7734 | debug=: ;; |
| 7735 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7736 | $ac_shift |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7737 | case $ac_optarg in |
| 7738 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 7739 | esac |
| 7740 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7741 | ac_need_defaults=false;; |
| 7742 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7743 | $ac_shift |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7744 | case $ac_optarg in |
| 7745 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 7746 | esac |
| 7747 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7748 | ac_need_defaults=false;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7749 | --he | --h) |
| 7750 | # Conflict between --help and --header |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7751 | as_fn_error "ambiguous option: \`$1' |
| 7752 | Try \`$0 --help' for more information.";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7753 | --help | --hel | -h ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7754 | $as_echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7755 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 7756 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 7757 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7758 | |
| 7759 | # This is an error. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7760 | -*) as_fn_error "unrecognized option: \`$1' |
| 7761 | Try \`$0 --help' for more information." ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7762 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7763 | *) as_fn_append ac_config_targets " $1" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7764 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7765 | |
| 7766 | esac |
| 7767 | shift |
| 7768 | done |
| 7769 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7770 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7771 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7772 | if $ac_cs_silent; then |
| 7773 | exec 6>/dev/null |
| 7774 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 7775 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7776 | |
| 7777 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7778 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7779 | if \$ac_cs_recheck; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7780 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 7781 | shift |
| 7782 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 7783 | CONFIG_SHELL='$SHELL' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7784 | export CONFIG_SHELL |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7785 | exec "\$@" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7786 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7787 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7788 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7789 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7790 | exec 5>>config.log |
| 7791 | { |
| 7792 | echo |
| 7793 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 7794 | ## Running $as_me. ## |
| 7795 | _ASBOX |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7796 | $as_echo "$ac_log" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7797 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7798 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7799 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7800 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7801 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7802 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7803 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7804 | |
| 7805 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7806 | for ac_config_target in $ac_config_targets |
| 7807 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7808 | case $ac_config_target in |
| 7809 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 7810 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 7811 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 7812 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 7813 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 7814 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 7815 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 7816 | "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7817 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 7818 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 7819 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 7820 | "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] | 7821 | "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] | 7822 | "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] | 7823 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7824 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7825 | esac |
| 7826 | done |
| 7827 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7828 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7829 | # If the user did not use the arguments to specify the items to instantiate, |
| 7830 | # then the envvar interface is used. Set only those that are not. |
| 7831 | # We use the long form for the default assignment because of an extremely |
| 7832 | # bizarre bug on SunOS 4.1.3. |
| 7833 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7834 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7835 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7836 | fi |
| 7837 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7838 | # Have a temporary directory for convenience. Make it in the build tree |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7839 | # 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] | 7840 | # creating and moving files from /tmp can sometimes cause problems. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7841 | # Hook for its removal unless debugging. |
| 7842 | # Note that there is a small window in which the directory will not be cleaned: |
| 7843 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7844 | $debug || |
| 7845 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7846 | tmp= |
| 7847 | trap 'exit_status=$? |
| 7848 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 7849 | ' 0 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7850 | trap 'as_fn_exit 1' 1 2 13 15 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7851 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7852 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7853 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7854 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7855 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7856 | test -n "$tmp" && test -d "$tmp" |
| 7857 | } || |
| 7858 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7859 | tmp=./conf$$-$RANDOM |
| 7860 | (umask 077 && mkdir "$tmp") |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7861 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7862 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7863 | # Set up the scripts for CONFIG_FILES section. |
| 7864 | # No need to generate them if there are no CONFIG_FILES. |
| 7865 | # This happens for instance with `./config.status config.h'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7866 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7867 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7868 | |
| 7869 | ac_cr=`echo X | tr X '\015'` |
| 7870 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 7871 | # But we know of no other shell where ac_cr would be empty at this |
| 7872 | # point, so we can use a bashism as a fallback. |
| 7873 | if test "x$ac_cr" = x; then |
| 7874 | eval ac_cr=\$\'\\r\' |
| 7875 | fi |
| 7876 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 7877 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 7878 | ac_cs_awk_cr='\r' |
| 7879 | else |
| 7880 | ac_cs_awk_cr=$ac_cr |
| 7881 | fi |
| 7882 | |
| 7883 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7884 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7885 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7886 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7887 | { |
| 7888 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 7889 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 7890 | echo "_ACEOF" |
| 7891 | } >conf$$subs.sh || |
| 7892 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 7893 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7894 | ac_delim='%!_!# ' |
| 7895 | for ac_last_try in false false false false false :; do |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7896 | . ./conf$$subs.sh || |
| 7897 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7898 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7899 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 7900 | if test $ac_delim_n = $ac_delim_num; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7901 | break |
| 7902 | elif $ac_last_try; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7903 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7904 | else |
| 7905 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7906 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7907 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7908 | rm -f conf$$subs.sh |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7909 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7910 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7911 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7912 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7913 | sed -n ' |
| 7914 | h |
| 7915 | s/^/S["/; s/!.*/"]=/ |
| 7916 | p |
| 7917 | g |
| 7918 | s/^[^!]*!// |
| 7919 | :repl |
| 7920 | t repl |
| 7921 | s/'"$ac_delim"'$// |
| 7922 | t delim |
| 7923 | :nl |
| 7924 | h |
| 7925 | s/\(.\{148\}\)..*/\1/ |
| 7926 | t more1 |
| 7927 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 7928 | p |
| 7929 | n |
| 7930 | b repl |
| 7931 | :more1 |
| 7932 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7933 | p |
| 7934 | g |
| 7935 | s/.\{148\}// |
| 7936 | t nl |
| 7937 | :delim |
| 7938 | h |
| 7939 | s/\(.\{148\}\)..*/\1/ |
| 7940 | t more2 |
| 7941 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 7942 | p |
| 7943 | b |
| 7944 | :more2 |
| 7945 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7946 | p |
| 7947 | g |
| 7948 | s/.\{148\}// |
| 7949 | t delim |
| 7950 | ' <conf$$subs.awk | sed ' |
| 7951 | /^[^""]/{ |
| 7952 | N |
| 7953 | s/\n// |
| 7954 | } |
| 7955 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7956 | rm -f conf$$subs.awk |
| 7957 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7958 | _ACAWK |
| 7959 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 7960 | for (key in S) S_is_set[key] = 1 |
| 7961 | FS = "" |
| 7962 | |
| 7963 | } |
| 7964 | { |
| 7965 | line = $ 0 |
| 7966 | nfields = split(line, field, "@") |
| 7967 | substed = 0 |
| 7968 | len = length(field[1]) |
| 7969 | for (i = 2; i < nfields; i++) { |
| 7970 | key = field[i] |
| 7971 | keylen = length(key) |
| 7972 | if (S_is_set[key]) { |
| 7973 | value = S[key] |
| 7974 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 7975 | len += length(value) + length(field[++i]) |
| 7976 | substed = 1 |
| 7977 | } else |
| 7978 | len += 1 + keylen |
| 7979 | } |
| 7980 | |
| 7981 | print line |
| 7982 | } |
| 7983 | |
| 7984 | _ACAWK |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7985 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7986 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7987 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 7988 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 7989 | else |
| 7990 | cat |
| 7991 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 7992 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7993 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7994 | |
| 7995 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7996 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 7997 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7998 | # (actually we leave an empty line to preserve line numbers). |
| 7999 | if test "x$srcdir" = x.; then |
| 8000 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 8001 | s/:*\$(srcdir):*/:/ |
| 8002 | s/:*\${srcdir}:*/:/ |
| 8003 | s/:*@srcdir@:*/:/ |
| 8004 | s/^\([^=]*=[ ]*\):*/\1/ |
| 8005 | s/:*$// |
| 8006 | s/^[^=]*=[ ]*$// |
| 8007 | }' |
| 8008 | fi |
| 8009 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8010 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8011 | fi # test -n "$CONFIG_FILES" |
| 8012 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8013 | # Set up the scripts for CONFIG_HEADERS section. |
| 8014 | # No need to generate them if there are no CONFIG_HEADERS. |
| 8015 | # This happens for instance with `./config.status Makefile'. |
| 8016 | if test -n "$CONFIG_HEADERS"; then |
| 8017 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 8018 | BEGIN { |
| 8019 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8020 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8021 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 8022 | # here-document in config.status, that substitutes the proper values into |
| 8023 | # config.h.in to produce config.h. |
| 8024 | |
| 8025 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 8026 | # handling of long lines. |
| 8027 | ac_delim='%!_!# ' |
| 8028 | for ac_last_try in false false :; do |
| 8029 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 8030 | if test -z "$ac_t"; then |
| 8031 | break |
| 8032 | elif $ac_last_try; then |
| 8033 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 8034 | else |
| 8035 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 8036 | fi |
| 8037 | done |
| 8038 | |
| 8039 | # For the awk script, D is an array of macro values keyed by name, |
| 8040 | # likewise P contains macro parameters if any. Preserve backslash |
| 8041 | # newline sequences. |
| 8042 | |
| 8043 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 8044 | sed -n ' |
| 8045 | s/.\{148\}/&'"$ac_delim"'/g |
| 8046 | t rset |
| 8047 | :rset |
| 8048 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 8049 | t def |
| 8050 | d |
| 8051 | :def |
| 8052 | s/\\$// |
| 8053 | t bsnl |
| 8054 | s/["\\]/\\&/g |
| 8055 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 8056 | D["\1"]=" \3"/p |
| 8057 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 8058 | d |
| 8059 | :bsnl |
| 8060 | s/["\\]/\\&/g |
| 8061 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 8062 | D["\1"]=" \3\\\\\\n"\\/p |
| 8063 | t cont |
| 8064 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 8065 | t cont |
| 8066 | d |
| 8067 | :cont |
| 8068 | n |
| 8069 | s/.\{148\}/&'"$ac_delim"'/g |
| 8070 | t clear |
| 8071 | :clear |
| 8072 | s/\\$// |
| 8073 | t bsnlc |
| 8074 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 8075 | d |
| 8076 | :bsnlc |
| 8077 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 8078 | b cont |
| 8079 | ' <confdefs.h | sed ' |
| 8080 | s/'"$ac_delim"'/"\\\ |
| 8081 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8082 | |
| 8083 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8084 | for (key in D) D_is_set[key] = 1 |
| 8085 | FS = "" |
| 8086 | } |
| 8087 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 8088 | line = \$ 0 |
| 8089 | split(line, arg, " ") |
| 8090 | if (arg[1] == "#") { |
| 8091 | defundef = arg[2] |
| 8092 | mac1 = arg[3] |
| 8093 | } else { |
| 8094 | defundef = substr(arg[1], 2) |
| 8095 | mac1 = arg[2] |
| 8096 | } |
| 8097 | split(mac1, mac2, "(") #) |
| 8098 | macro = mac2[1] |
| 8099 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 8100 | if (D_is_set[macro]) { |
| 8101 | # Preserve the white space surrounding the "#". |
| 8102 | print prefix "define", macro P[macro] D[macro] |
| 8103 | next |
| 8104 | } else { |
| 8105 | # Replace #undef with comments. This is necessary, for example, |
| 8106 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 8107 | # on some systems where configure will not decide to define it. |
| 8108 | if (defundef == "undef") { |
| 8109 | print "/*", prefix defundef, macro, "*/" |
| 8110 | next |
| 8111 | } |
| 8112 | } |
| 8113 | } |
| 8114 | { print } |
| 8115 | _ACAWK |
| 8116 | _ACEOF |
| 8117 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8118 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 8119 | fi # test -n "$CONFIG_HEADERS" |
| 8120 | |
| 8121 | |
| 8122 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 8123 | shift |
| 8124 | for ac_tag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8125 | do |
| 8126 | case $ac_tag in |
| 8127 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 8128 | esac |
| 8129 | case $ac_mode$ac_tag in |
| 8130 | :[FHL]*:*);; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8131 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8132 | :[FH]-) ac_tag=-:-;; |
| 8133 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 8134 | esac |
| 8135 | ac_save_IFS=$IFS |
| 8136 | IFS=: |
| 8137 | set x $ac_tag |
| 8138 | IFS=$ac_save_IFS |
| 8139 | shift |
| 8140 | ac_file=$1 |
| 8141 | shift |
| 8142 | |
| 8143 | case $ac_mode in |
| 8144 | :L) ac_source=$1;; |
| 8145 | :[FH]) |
| 8146 | ac_file_inputs= |
| 8147 | for ac_f |
| 8148 | do |
| 8149 | case $ac_f in |
| 8150 | -) ac_f="$tmp/stdin";; |
| 8151 | *) # Look for the file first in the build tree, then in the source tree |
| 8152 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 8153 | # because $ac_f cannot contain `:'. |
| 8154 | test -f "$ac_f" || |
| 8155 | case $ac_f in |
| 8156 | [\\/$]*) false;; |
| 8157 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 8158 | esac || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8159 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8160 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8161 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 8162 | as_fn_append ac_file_inputs " '$ac_f'" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8163 | done |
| 8164 | |
| 8165 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 8166 | # use $as_me), people would be surprised to read: |
| 8167 | # /* config.h. Generated by config.status. */ |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8168 | configure_input='Generated from '` |
| 8169 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 8170 | `' by configure.' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8171 | if test x"$ac_file" != x-; then |
| 8172 | configure_input="$ac_file. $configure_input" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 8174 | $as_echo "$as_me: creating $ac_file" >&6;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8175 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8176 | # Neutralize special characters interpreted by sed in replacement strings. |
| 8177 | case $configure_input in #( |
| 8178 | *\&* | *\|* | *\\* ) |
| 8179 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 8180 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 8181 | *) ac_sed_conf_input=$configure_input;; |
| 8182 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8183 | |
| 8184 | case $ac_tag in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8185 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 8186 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8187 | esac |
| 8188 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8189 | esac |
| 8190 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8191 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8192 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8193 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 8194 | X"$ac_file" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8195 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8196 | $as_echo X"$ac_file" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8198 | s//\1/ |
| 8199 | q |
| 8200 | } |
| 8201 | /^X\(\/\/\)[^/].*/{ |
| 8202 | s//\1/ |
| 8203 | q |
| 8204 | } |
| 8205 | /^X\(\/\/\)$/{ |
| 8206 | s//\1/ |
| 8207 | q |
| 8208 | } |
| 8209 | /^X\(\/\).*/{ |
| 8210 | s//\1/ |
| 8211 | q |
| 8212 | } |
| 8213 | s/.*/./; q'` |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8214 | as_dir="$ac_dir"; as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8215 | ac_builddir=. |
| 8216 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8217 | case "$ac_dir" in |
| 8218 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8219 | *) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8220 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8221 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8222 | 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] | 8223 | case $ac_top_builddir_sub in |
| 8224 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8225 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 8226 | esac ;; |
| 8227 | esac |
| 8228 | ac_abs_top_builddir=$ac_pwd |
| 8229 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 8230 | # for backward compatibility: |
| 8231 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8232 | |
| 8233 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8234 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8235 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8236 | ac_top_srcdir=$ac_top_builddir_sub |
| 8237 | ac_abs_top_srcdir=$ac_pwd ;; |
| 8238 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8239 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8240 | ac_top_srcdir=$srcdir |
| 8241 | ac_abs_top_srcdir=$srcdir ;; |
| 8242 | *) # Relative name. |
| 8243 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 8244 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 8245 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8246 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8247 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 8248 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8249 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8250 | case $ac_mode in |
| 8251 | :F) |
| 8252 | # |
| 8253 | # CONFIG_FILE |
| 8254 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8255 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8256 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8257 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8258 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8259 | # If the template does not know about datarootdir, expand it. |
| 8260 | # FIXME: This hack should be removed a few years after 2.60. |
| 8261 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8262 | ac_sed_dataroot=' |
| 8263 | /datarootdir/ { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8264 | p |
| 8265 | q |
| 8266 | } |
| 8267 | /@datadir@/p |
| 8268 | /@docdir@/p |
| 8269 | /@infodir@/p |
| 8270 | /@localedir@/p |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8271 | /@mandir@/p' |
| 8272 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8273 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 8274 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 8276 | $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] | 8277 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8278 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8279 | ac_datarootdir_hack=' |
| 8280 | s&@datadir@&$datadir&g |
| 8281 | s&@docdir@&$docdir&g |
| 8282 | s&@infodir@&$infodir&g |
| 8283 | s&@localedir@&$localedir&g |
| 8284 | s&@mandir@&$mandir&g |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8285 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8286 | esac |
| 8287 | _ACEOF |
| 8288 | |
| 8289 | # Neutralize VPATH when `$srcdir' = `.'. |
| 8290 | # Shell code in configure.ac might set extrasub. |
| 8291 | # FIXME: do we really want to maintain this feature? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8292 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8293 | ac_sed_extra="$ac_vpsub |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8294 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8295 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8296 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8297 | :t |
| 8298 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8299 | s|@configure_input@|$ac_sed_conf_input|;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8300 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8301 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8302 | s&@srcdir@&$ac_srcdir&;t t |
| 8303 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 8304 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 8305 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 8306 | s&@builddir@&$ac_builddir&;t t |
| 8307 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 8308 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 8309 | $ac_datarootdir_hack |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8310 | " |
| 8311 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 8312 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8313 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8314 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 8315 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 8316 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8317 | { $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] | 8318 | which seems to be undefined. Please make sure it is defined." >&5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8319 | $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] | 8320 | which seems to be undefined. Please make sure it is defined." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8321 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8322 | rm -f "$tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8323 | case $ac_file in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8324 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 8325 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 8326 | esac \ |
| 8327 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8328 | ;; |
| 8329 | :H) |
| 8330 | # |
| 8331 | # CONFIG_HEADER |
| 8332 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8333 | if test x"$ac_file" != x-; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8334 | { |
| 8335 | $as_echo "/* $configure_input */" \ |
| 8336 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 8337 | } >"$tmp/config.h" \ |
| 8338 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 8339 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 8340 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 8341 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8342 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8343 | rm -f "$ac_file" |
| 8344 | mv "$tmp/config.h" "$ac_file" \ |
| 8345 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8346 | fi |
| 8347 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8348 | $as_echo "/* $configure_input */" \ |
| 8349 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 8350 | || as_fn_error "could not create -" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8351 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8352 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8353 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8354 | |
| 8355 | esac |
| 8356 | |
| 8357 | done # for ac_tag |
| 8358 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8359 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8360 | as_fn_exit 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8361 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8362 | ac_clean_files=$ac_clean_files_save |
| 8363 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8364 | test $ac_write_fail = 0 || |
| 8365 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 8366 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8367 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8368 | # configure is writing to config.log, and then calls config.status. |
| 8369 | # config.status does its own redirection, appending to config.log. |
| 8370 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8371 | # by configure, so config.status won't be able to write to it; its |
| 8372 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8373 | # effectively closing config.log, so it can be properly (re)opened and |
| 8374 | # appended to by config.status. When coming back to configure, we |
| 8375 | # need to make the FD available again. |
| 8376 | if test "$no_create" != yes; then |
| 8377 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8378 | ac_config_status_args= |
| 8379 | test "$silent" = yes && |
| 8380 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8381 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8382 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8383 | exec 5>>config.log |
| 8384 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8385 | # would make configure fail if this is the last instruction. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8386 | $ac_cs_success || as_fn_exit $? |
| 8387 | fi |
| 8388 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 8389 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 8390 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 8391 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8392 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8393 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8394 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8396 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8397 | 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] | 8398 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8399 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8400 | - 'user.mak' |
| 8401 | - 'pjlib/include/pj/config_site.h' |
| 8402 | |
| 8403 | The next step now is to run 'make dep' and 'make'. |
| 8404 | " >&5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8405 | $as_echo " |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8406 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8407 | 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] | 8408 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8409 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8410 | - 'user.mak' |
| 8411 | - 'pjlib/include/pj/config_site.h' |
| 8412 | |
| 8413 | The next step now is to run 'make dep' and 'make'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8414 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8415 | |