Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for pjproject 2.x. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5 | # |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7 | # |
| 8 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 14 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 17 | 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] | 18 | emulate sh |
| 19 | NULLCMD=: |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 24 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 30 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 31 | fi |
| 32 | |
| 33 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in #( |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 71 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 79 | fi |
| 80 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 90 | as_myself= |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 91 | case $0 in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 100 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 101 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 | exit 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 112 | fi |
| 113 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 131 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 200 | if (eval "$as_required") 2>/dev/null; then : |
| 201 | as_have_required=yes |
| 202 | else |
| 203 | as_have_required=no |
| 204 | fi |
| 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 206 | |
| 207 | else |
| 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 209 | as_found=false |
| 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 211 | do |
| 212 | IFS=$as_save_IFS |
| 213 | test -z "$as_dir" && as_dir=. |
| 214 | as_found=: |
| 215 | case $as_dir in #( |
| 216 | /*) |
| 217 | for as_base in sh bash ksh sh5; do |
| 218 | # Try only shells that exist, to save several forks. |
| 219 | as_shell=$as_dir/$as_base |
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | break 2 |
| 225 | fi |
| 226 | fi |
| 227 | done;; |
| 228 | esac |
| 229 | as_found=false |
| 230 | done |
| 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 | fi; } |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | if test "x$CONFIG_SHELL" != x; then : |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 239 | export CONFIG_SHELL |
| 240 | # We cannot yet assume a decent shell, so we have to provide a |
| 241 | # neutralization value for shells without unset; and this also |
| 242 | # works around shells that cannot unset nonexistent variables. |
| 243 | # Preserve -v and -x to the replacement shell. |
| 244 | BASH_ENV=/dev/null |
| 245 | ENV=/dev/null |
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 | case $- in # (((( |
| 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 249 | *v* ) as_opts=-v ;; |
| 250 | *x* ) as_opts=-x ;; |
| 251 | * ) as_opts= ;; |
| 252 | esac |
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 255 | # out after a failed `exec'. |
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 | exit 255 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 258 | fi |
| 259 | |
| 260 | if test x$as_have_required = xno; then : |
| 261 | $as_echo "$0: This script requires a shell more modern than all" |
| 262 | $as_echo "$0: the shells that I found on your system." |
| 263 | if test x${ZSH_VERSION+set} = xset ; then |
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 266 | else |
| 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 268 | $0: including any error possibly output before this |
| 269 | $0: message. Then install a modern shell, or manually run |
| 270 | $0: the script under such a shell if you do have one." |
| 271 | fi |
| 272 | exit 1 |
| 273 | fi |
| 274 | fi |
| 275 | fi |
| 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 277 | export SHELL |
| 278 | # Unset more variables known to interfere with behavior of common tools. |
| 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 281 | |
| 282 | ## --------------------- ## |
| 283 | ## M4sh Shell Functions. ## |
| 284 | ## --------------------- ## |
| 285 | # as_fn_unset VAR |
| 286 | # --------------- |
| 287 | # Portably unset VAR. |
| 288 | as_fn_unset () |
| 289 | { |
| 290 | { eval $1=; unset $1;} |
| 291 | } |
| 292 | as_unset=as_fn_unset |
| 293 | |
| 294 | # as_fn_set_status STATUS |
| 295 | # ----------------------- |
| 296 | # Set $? to STATUS, without forking. |
| 297 | as_fn_set_status () |
| 298 | { |
| 299 | return $1 |
| 300 | } # as_fn_set_status |
| 301 | |
| 302 | # as_fn_exit STATUS |
| 303 | # ----------------- |
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 305 | as_fn_exit () |
| 306 | { |
| 307 | set +e |
| 308 | as_fn_set_status $1 |
| 309 | exit $1 |
| 310 | } # as_fn_exit |
| 311 | |
| 312 | # as_fn_mkdir_p |
| 313 | # ------------- |
| 314 | # Create "$as_dir" as a directory, including parents if necessary. |
| 315 | as_fn_mkdir_p () |
| 316 | { |
| 317 | |
| 318 | case $as_dir in #( |
| 319 | -*) as_dir=./$as_dir;; |
| 320 | esac |
| 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 322 | as_dirs= |
| 323 | while :; do |
| 324 | case $as_dir in #( |
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 326 | *) as_qdir=$as_dir;; |
| 327 | esac |
| 328 | as_dirs="'$as_qdir' $as_dirs" |
| 329 | as_dir=`$as_dirname -- "$as_dir" || |
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 332 | X"$as_dir" : 'X\(//\)$' \| \ |
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 334 | $as_echo X"$as_dir" | |
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 336 | s//\1/ |
| 337 | q |
| 338 | } |
| 339 | /^X\(\/\/\)[^/].*/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\).*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | s/.*/./; q'` |
| 352 | test -d "$as_dir" && break |
| 353 | done |
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 356 | |
| 357 | |
| 358 | } # as_fn_mkdir_p |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 359 | |
| 360 | # as_fn_executable_p FILE |
| 361 | # ----------------------- |
| 362 | # Test if FILE is an executable regular file. |
| 363 | as_fn_executable_p () |
| 364 | { |
| 365 | test -f "$1" && test -x "$1" |
| 366 | } # as_fn_executable_p |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 367 | # as_fn_append VAR VALUE |
| 368 | # ---------------------- |
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 370 | # advantage of any shell optimizations that allow amortized linear growth over |
| 371 | # repeated appends, instead of the typical quadratic growth present in naive |
| 372 | # implementations. |
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 374 | eval 'as_fn_append () |
| 375 | { |
| 376 | eval $1+=\$2 |
| 377 | }' |
| 378 | else |
| 379 | as_fn_append () |
| 380 | { |
| 381 | eval $1=\$$1\$2 |
| 382 | } |
| 383 | fi # as_fn_append |
| 384 | |
| 385 | # as_fn_arith ARG... |
| 386 | # ------------------ |
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 389 | # must be portable across $(()) and expr. |
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 391 | eval 'as_fn_arith () |
| 392 | { |
| 393 | as_val=$(( $* )) |
| 394 | }' |
| 395 | else |
| 396 | as_fn_arith () |
| 397 | { |
| 398 | as_val=`expr "$@" || test $? -eq 1` |
| 399 | } |
| 400 | fi # as_fn_arith |
| 401 | |
| 402 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 404 | # ---------------------------------------- |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 407 | # script with STATUS, using 1 if that was 0. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 408 | as_fn_error () |
| 409 | { |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 411 | if test "$4"; then |
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 414 | fi |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 415 | $as_echo "$as_me: error: $2" >&2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 416 | as_fn_exit $as_status |
| 417 | } # as_fn_error |
| 418 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 421 | as_expr=expr |
| 422 | else |
| 423 | as_expr=false |
| 424 | fi |
| 425 | |
| 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 427 | as_basename=basename |
| 428 | else |
| 429 | as_basename=false |
| 430 | fi |
| 431 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 437 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 438 | as_me=`$as_basename -- "$0" || |
| 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 440 | X"$0" : 'X\(//\)$' \| \ |
| 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 442 | $as_echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 444 | s//\1/ |
| 445 | q |
| 446 | } |
| 447 | /^X\/\(\/\/\)$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\).*/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | s/.*/./; q'` |
| 456 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 457 | # Avoid depending upon Character Ranges. |
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 461 | as_cr_digits='0123456789' |
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 463 | |
| 464 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 470 | sed -n ' |
| 471 | p |
| 472 | /[$]LINENO/= |
| 473 | ' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 474 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 475 | s/[$]LINENO.*/&-/ |
| 476 | t lineno |
| 477 | b |
| 478 | :lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 479 | N |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 480 | :loop |
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 482 | t loop |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 483 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 484 | ' >$as_me.lineno && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 485 | chmod +x "$as_me.lineno" || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 486 | { $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] | 487 | |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 489 | # already done that, so ensure we don't try to do so again and fall |
| 490 | # in an infinite loop. This has already happened in practice. |
| 491 | _as_can_reexec=no; export _as_can_reexec |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 493 | # (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] | 494 | # original and so on. Autoconf is especially sensitive to this). |
| 495 | . "./$as_me.lineno" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 496 | # Exit status is that of the last command. |
| 497 | exit |
| 498 | } |
| 499 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 500 | ECHO_C= ECHO_N= ECHO_T= |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 501 | case `echo -n x` in #((((( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 502 | -n*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 503 | case `echo 'xy\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 505 | xy) ECHO_C='\c';; |
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 507 | ECHO_T=' ';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 508 | esac;; |
| 509 | *) |
| 510 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 511 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 518 | mkdir conf$$.dir 2>/dev/null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 519 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 522 | as_ln_s='ln -s' |
| 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 526 | # In both cases, we have to default to `cp -pR'. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 528 | as_ln_s='cp -pR' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 532 | as_ln_s='cp -pR' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 533 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 534 | else |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 536 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 539 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 540 | if mkdir -p . 2>/dev/null; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 542 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 543 | test -d ./-p && rmdir ./-p |
| 544 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 545 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 546 | |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 547 | as_test_x='test -x' |
| 548 | as_executable_p=as_fn_executable_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid CPP name. |
| 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 552 | |
| 553 | # Sed expression to map a string onto a valid variable name. |
| 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 556 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 558 | exec 6>&1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 559 | |
| 560 | # Name of the host. |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 562 | # so uname gets run too. |
| 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 564 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 565 | # |
| 566 | # Initializations. |
| 567 | # |
| 568 | ac_default_prefix=/usr/local |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 569 | ac_clean_files= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 570 | ac_config_libobj_dir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 571 | LIBOBJS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 572 | cross_compiling=no |
| 573 | subdirs= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 574 | MFLAGS= |
| 575 | MAKEFLAGS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 576 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 577 | # Identity of this package. |
| 578 | PACKAGE_NAME='pjproject' |
| 579 | PACKAGE_TARNAME='pjproject' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 580 | PACKAGE_VERSION='2.x' |
| 581 | PACKAGE_STRING='pjproject 2.x' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 582 | PACKAGE_BUGREPORT='' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 583 | PACKAGE_URL='' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 584 | |
| 585 | # Factoring default headers for most tests. |
| 586 | ac_includes_default="\ |
| 587 | #include <stdio.h> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 588 | #ifdef HAVE_SYS_TYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 589 | # include <sys/types.h> |
| 590 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 591 | #ifdef HAVE_SYS_STAT_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 592 | # include <sys/stat.h> |
| 593 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 594 | #ifdef STDC_HEADERS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 595 | # include <stdlib.h> |
| 596 | # include <stddef.h> |
| 597 | #else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 598 | # ifdef HAVE_STDLIB_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 599 | # include <stdlib.h> |
| 600 | # endif |
| 601 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 602 | #ifdef HAVE_STRING_H |
| 603 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 604 | # include <memory.h> |
| 605 | # endif |
| 606 | # include <string.h> |
| 607 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 608 | #ifdef HAVE_STRINGS_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 609 | # include <strings.h> |
| 610 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 611 | #ifdef HAVE_INTTYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 612 | # include <inttypes.h> |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 613 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 614 | #ifdef HAVE_STDINT_H |
| 615 | # include <stdint.h> |
| 616 | #endif |
| 617 | #ifdef HAVE_UNISTD_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 618 | # include <unistd.h> |
| 619 | #endif" |
| 620 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 621 | ac_subst_vars='LTLIBOBJS |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 622 | LIBOBJS |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 623 | ac_main_obj |
| 624 | ac_host |
| 625 | ac_linux_poll |
Sauw Ming | 03df424 | 2012-09-25 02:23:06 +0000 | [diff] [blame] | 626 | silk_present |
| 627 | silk_h_present |
| 628 | ac_no_silk |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 629 | opencore_amrwb_dec_present |
| 630 | opencore_amrwb_dec_h_present |
| 631 | opencore_amrwb_enc_present |
| 632 | opencore_amrwb_enc_h_present |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 633 | opencore_amrnb_present |
| 634 | opencore_amrnb_h_present |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 635 | ac_no_opencore_amrwb |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 636 | ac_no_opencore_amrnb |
| 637 | libcrypto_present |
| 638 | libssl_present |
| 639 | openssl_h_present |
| 640 | ac_no_ssl |
| 641 | ac_v4l2_ldflags |
| 642 | ac_v4l2_cflags |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 643 | PKG_CONFIG |
| 644 | SAVED_PKG_CONFIG_PATH |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 645 | ac_ffmpeg_ldflags |
| 646 | ac_ffmpeg_cflags |
| 647 | ac_has_ffmpeg |
| 648 | ac_sdl_ldflags |
| 649 | ac_sdl_cflags |
Nanang Izzuddin | 08b20fe | 2012-06-06 09:37:25 +0000 | [diff] [blame] | 650 | SDL_CONFIG |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 651 | ac_resample_dll |
| 652 | ac_no_ilbc_codec |
| 653 | ac_no_speex_codec |
| 654 | ac_no_g7221_codec |
| 655 | ac_no_g722_codec |
| 656 | ac_no_gsm_codec |
| 657 | ac_no_l16_codec |
| 658 | ac_no_g711_codec |
| 659 | ac_no_speex_aec |
| 660 | ac_no_large_filter |
| 661 | ac_no_small_filter |
| 662 | ac_qt_cflags |
| 663 | ac_pjmedia_video_has_qt |
| 664 | ac_ios_cflags |
| 665 | ac_pjmedia_video_has_ios |
| 666 | ac_pjmedia_video |
| 667 | ac_pa_use_oss |
| 668 | ac_pa_use_alsa |
| 669 | ac_pa_cflags |
| 670 | ac_external_pa |
| 671 | ac_pjmedia_snd |
| 672 | ac_external_gsm |
| 673 | ac_external_speex |
| 674 | ac_os_objs |
| 675 | EGREP |
| 676 | GREP |
| 677 | CPP |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 678 | ac_cross_compile |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 679 | ac_shlib_suffix |
| 680 | ac_build_mak_vars |
| 681 | ac_pjdir |
| 682 | CC_CFLAGS |
| 683 | CC_OPTIMIZE |
| 684 | CC_DEF |
| 685 | CC_INC |
| 686 | CC_OUT |
| 687 | LIBEXT2 |
| 688 | LIBEXT |
| 689 | RANLIB |
| 690 | LDOUT |
| 691 | LD |
| 692 | AR |
| 693 | ac_ct_CXX |
| 694 | CXXFLAGS |
| 695 | CXX |
| 696 | OBJEXT |
| 697 | EXEEXT |
| 698 | ac_ct_CC |
| 699 | CPPFLAGS |
| 700 | LDFLAGS |
| 701 | CFLAGS |
| 702 | CC |
| 703 | target_os |
| 704 | target_vendor |
| 705 | target_cpu |
| 706 | target |
| 707 | host_os |
| 708 | host_vendor |
| 709 | host_cpu |
| 710 | host |
| 711 | build_os |
| 712 | build_vendor |
| 713 | build_cpu |
| 714 | build |
| 715 | target_alias |
| 716 | host_alias |
| 717 | build_alias |
| 718 | LIBS |
| 719 | ECHO_T |
| 720 | ECHO_N |
| 721 | ECHO_C |
| 722 | DEFS |
| 723 | mandir |
| 724 | localedir |
| 725 | libdir |
| 726 | psdir |
| 727 | pdfdir |
| 728 | dvidir |
| 729 | htmldir |
| 730 | infodir |
| 731 | docdir |
| 732 | oldincludedir |
| 733 | includedir |
| 734 | localstatedir |
| 735 | sharedstatedir |
| 736 | sysconfdir |
| 737 | datadir |
| 738 | datarootdir |
| 739 | libexecdir |
| 740 | sbindir |
| 741 | bindir |
| 742 | program_transform_name |
| 743 | prefix |
| 744 | exec_prefix |
| 745 | PACKAGE_URL |
| 746 | PACKAGE_BUGREPORT |
| 747 | PACKAGE_STRING |
| 748 | PACKAGE_VERSION |
| 749 | PACKAGE_TARNAME |
| 750 | PACKAGE_NAME |
| 751 | PATH_SEPARATOR |
| 752 | SHELL' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 753 | ac_subst_files='' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 754 | ac_user_opts=' |
| 755 | enable_option_checking |
| 756 | enable_floating_point |
| 757 | enable_epoll |
| 758 | with_external_speex |
| 759 | with_external_gsm |
| 760 | enable_sound |
| 761 | with_external_pa |
| 762 | enable_oss |
Nanang Izzuddin | 6898bfd | 2012-05-17 11:23:41 +0000 | [diff] [blame] | 763 | enable_video |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 764 | enable_ext_sound |
| 765 | enable_small_filter |
| 766 | enable_large_filter |
| 767 | enable_speex_aec |
| 768 | enable_g711_codec |
| 769 | enable_l16_codec |
| 770 | enable_gsm_codec |
| 771 | enable_g722_codec |
| 772 | enable_g7221_codec |
| 773 | enable_speex_codec |
| 774 | enable_ilbc_codec |
| 775 | enable_libsamplerate |
| 776 | enable_resample_dll |
| 777 | with_sdl |
| 778 | enable_sdl |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 779 | with_ffmpeg |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 780 | enable_ffmpeg |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 781 | enable_v4l2 |
| 782 | enable_ipp |
| 783 | with_ipp |
| 784 | with_ipp_samples |
| 785 | with_ipp_arch |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 786 | with_ssl |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 787 | enable_ssl |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 788 | with_opencore_amrnb |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 789 | with_opencore_amr |
| 790 | with_opencore_amrwbenc |
| 791 | enable_opencore_amr |
Sauw Ming | 03df424 | 2012-09-25 02:23:06 +0000 | [diff] [blame] | 792 | with_silk |
| 793 | enable_silk |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 794 | ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 795 | ac_precious_vars='build_alias |
| 796 | host_alias |
| 797 | target_alias |
| 798 | CC |
| 799 | CFLAGS |
| 800 | LDFLAGS |
| 801 | LIBS |
| 802 | CPPFLAGS |
| 803 | CXX |
| 804 | CXXFLAGS |
| 805 | CCC |
| 806 | CPP' |
| 807 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 808 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 809 | # Initialize some variables set by options. |
| 810 | ac_init_help= |
| 811 | ac_init_version=false |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 812 | ac_unrecognized_opts= |
| 813 | ac_unrecognized_sep= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 814 | # The variables have the same names as the options, with |
| 815 | # dashes changed to underlines. |
| 816 | cache_file=/dev/null |
| 817 | exec_prefix=NONE |
| 818 | no_create= |
| 819 | no_recursion= |
| 820 | prefix=NONE |
| 821 | program_prefix=NONE |
| 822 | program_suffix=NONE |
| 823 | program_transform_name=s,x,x, |
| 824 | silent= |
| 825 | site= |
| 826 | srcdir= |
| 827 | verbose= |
| 828 | x_includes=NONE |
| 829 | x_libraries=NONE |
| 830 | |
| 831 | # Installation directory options. |
| 832 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 833 | # and all the variables that are supposed to be based on exec_prefix |
| 834 | # by default will actually change. |
| 835 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 836 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 837 | bindir='${exec_prefix}/bin' |
| 838 | sbindir='${exec_prefix}/sbin' |
| 839 | libexecdir='${exec_prefix}/libexec' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 840 | datarootdir='${prefix}/share' |
| 841 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 842 | sysconfdir='${prefix}/etc' |
| 843 | sharedstatedir='${prefix}/com' |
| 844 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 845 | includedir='${prefix}/include' |
| 846 | oldincludedir='/usr/include' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 847 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 848 | infodir='${datarootdir}/info' |
| 849 | htmldir='${docdir}' |
| 850 | dvidir='${docdir}' |
| 851 | pdfdir='${docdir}' |
| 852 | psdir='${docdir}' |
| 853 | libdir='${exec_prefix}/lib' |
| 854 | localedir='${datarootdir}/locale' |
| 855 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 856 | |
| 857 | ac_prev= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 858 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 859 | for ac_option |
| 860 | do |
| 861 | # If the previous option needs an argument, assign it. |
| 862 | if test -n "$ac_prev"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 863 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 864 | ac_prev= |
| 865 | continue |
| 866 | fi |
| 867 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 868 | case $ac_option in |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 869 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 870 | *=) ac_optarg= ;; |
| 871 | *) ac_optarg=yes ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 872 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 873 | |
| 874 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 875 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 876 | case $ac_dashdash$ac_option in |
| 877 | --) |
| 878 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 879 | |
| 880 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 881 | ac_prev=bindir ;; |
| 882 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 883 | bindir=$ac_optarg ;; |
| 884 | |
| 885 | -build | --build | --buil | --bui | --bu) |
| 886 | ac_prev=build_alias ;; |
| 887 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 888 | build_alias=$ac_optarg ;; |
| 889 | |
| 890 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 891 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 892 | ac_prev=cache_file ;; |
| 893 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 894 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 895 | cache_file=$ac_optarg ;; |
| 896 | |
| 897 | --config-cache | -C) |
| 898 | cache_file=config.cache ;; |
| 899 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 900 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 901 | ac_prev=datadir ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 902 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 903 | datadir=$ac_optarg ;; |
| 904 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 905 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 906 | | --dataroo | --dataro | --datar) |
| 907 | ac_prev=datarootdir ;; |
| 908 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 909 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 910 | datarootdir=$ac_optarg ;; |
| 911 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 912 | -disable-* | --disable-*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 913 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 914 | # Reject names that are not valid shell variable names. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 915 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 916 | as_fn_error $? "invalid feature name: $ac_useropt" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 917 | ac_useropt_orig=$ac_useropt |
| 918 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 919 | case $ac_user_opts in |
| 920 | *" |
| 921 | "enable_$ac_useropt" |
| 922 | "*) ;; |
| 923 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 924 | ac_unrecognized_sep=', ';; |
| 925 | esac |
| 926 | eval enable_$ac_useropt=no ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 927 | |
| 928 | -docdir | --docdir | --docdi | --doc | --do) |
| 929 | ac_prev=docdir ;; |
| 930 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 931 | docdir=$ac_optarg ;; |
| 932 | |
| 933 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 934 | ac_prev=dvidir ;; |
| 935 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 936 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 937 | |
| 938 | -enable-* | --enable-*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 939 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 940 | # Reject names that are not valid shell variable names. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 941 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 942 | as_fn_error $? "invalid feature name: $ac_useropt" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 943 | ac_useropt_orig=$ac_useropt |
| 944 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 945 | case $ac_user_opts in |
| 946 | *" |
| 947 | "enable_$ac_useropt" |
| 948 | "*) ;; |
| 949 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 950 | ac_unrecognized_sep=', ';; |
| 951 | esac |
| 952 | eval enable_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 953 | |
| 954 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 955 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 956 | | --exec | --exe | --ex) |
| 957 | ac_prev=exec_prefix ;; |
| 958 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 959 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 960 | | --exec=* | --exe=* | --ex=*) |
| 961 | exec_prefix=$ac_optarg ;; |
| 962 | |
| 963 | -gas | --gas | --ga | --g) |
| 964 | # Obsolete; use --with-gas. |
| 965 | with_gas=yes ;; |
| 966 | |
| 967 | -help | --help | --hel | --he | -h) |
| 968 | ac_init_help=long ;; |
| 969 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 970 | ac_init_help=recursive ;; |
| 971 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 972 | ac_init_help=short ;; |
| 973 | |
| 974 | -host | --host | --hos | --ho) |
| 975 | ac_prev=host_alias ;; |
| 976 | -host=* | --host=* | --hos=* | --ho=*) |
| 977 | host_alias=$ac_optarg ;; |
| 978 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 979 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 980 | ac_prev=htmldir ;; |
| 981 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 982 | | --ht=*) |
| 983 | htmldir=$ac_optarg ;; |
| 984 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 985 | -includedir | --includedir | --includedi | --included | --include \ |
| 986 | | --includ | --inclu | --incl | --inc) |
| 987 | ac_prev=includedir ;; |
| 988 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 989 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 990 | includedir=$ac_optarg ;; |
| 991 | |
| 992 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 993 | ac_prev=infodir ;; |
| 994 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 995 | infodir=$ac_optarg ;; |
| 996 | |
| 997 | -libdir | --libdir | --libdi | --libd) |
| 998 | ac_prev=libdir ;; |
| 999 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1000 | libdir=$ac_optarg ;; |
| 1001 | |
| 1002 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1003 | | --libexe | --libex | --libe) |
| 1004 | ac_prev=libexecdir ;; |
| 1005 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1006 | | --libexe=* | --libex=* | --libe=*) |
| 1007 | libexecdir=$ac_optarg ;; |
| 1008 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1009 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1010 | ac_prev=localedir ;; |
| 1011 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1012 | localedir=$ac_optarg ;; |
| 1013 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1014 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1015 | | --localstate | --localstat | --localsta | --localst | --locals) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1016 | ac_prev=localstatedir ;; |
| 1017 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1018 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1019 | localstatedir=$ac_optarg ;; |
| 1020 | |
| 1021 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1022 | ac_prev=mandir ;; |
| 1023 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1024 | mandir=$ac_optarg ;; |
| 1025 | |
| 1026 | -nfp | --nfp | --nf) |
| 1027 | # Obsolete; use --without-fp. |
| 1028 | with_fp=no ;; |
| 1029 | |
| 1030 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1031 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1032 | no_create=yes ;; |
| 1033 | |
| 1034 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1035 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1036 | no_recursion=yes ;; |
| 1037 | |
| 1038 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1039 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1040 | | --oldin | --oldi | --old | --ol | --o) |
| 1041 | ac_prev=oldincludedir ;; |
| 1042 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1043 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1044 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1045 | oldincludedir=$ac_optarg ;; |
| 1046 | |
| 1047 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1048 | ac_prev=prefix ;; |
| 1049 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1050 | prefix=$ac_optarg ;; |
| 1051 | |
| 1052 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1053 | | --program-pre | --program-pr | --program-p) |
| 1054 | ac_prev=program_prefix ;; |
| 1055 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1056 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1057 | program_prefix=$ac_optarg ;; |
| 1058 | |
| 1059 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1060 | | --program-suf | --program-su | --program-s) |
| 1061 | ac_prev=program_suffix ;; |
| 1062 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1063 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1064 | program_suffix=$ac_optarg ;; |
| 1065 | |
| 1066 | -program-transform-name | --program-transform-name \ |
| 1067 | | --program-transform-nam | --program-transform-na \ |
| 1068 | | --program-transform-n | --program-transform- \ |
| 1069 | | --program-transform | --program-transfor \ |
| 1070 | | --program-transfo | --program-transf \ |
| 1071 | | --program-trans | --program-tran \ |
| 1072 | | --progr-tra | --program-tr | --program-t) |
| 1073 | ac_prev=program_transform_name ;; |
| 1074 | -program-transform-name=* | --program-transform-name=* \ |
| 1075 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1076 | | --program-transform-n=* | --program-transform-=* \ |
| 1077 | | --program-transform=* | --program-transfor=* \ |
| 1078 | | --program-transfo=* | --program-transf=* \ |
| 1079 | | --program-trans=* | --program-tran=* \ |
| 1080 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1081 | program_transform_name=$ac_optarg ;; |
| 1082 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1083 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1084 | ac_prev=pdfdir ;; |
| 1085 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1086 | pdfdir=$ac_optarg ;; |
| 1087 | |
| 1088 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1089 | ac_prev=psdir ;; |
| 1090 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1091 | psdir=$ac_optarg ;; |
| 1092 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1093 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1094 | | -silent | --silent | --silen | --sile | --sil) |
| 1095 | silent=yes ;; |
| 1096 | |
| 1097 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1098 | ac_prev=sbindir ;; |
| 1099 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1100 | | --sbi=* | --sb=*) |
| 1101 | sbindir=$ac_optarg ;; |
| 1102 | |
| 1103 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1104 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1105 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1106 | | --sha | --sh) |
| 1107 | ac_prev=sharedstatedir ;; |
| 1108 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1109 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1110 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1111 | | --sha=* | --sh=*) |
| 1112 | sharedstatedir=$ac_optarg ;; |
| 1113 | |
| 1114 | -site | --site | --sit) |
| 1115 | ac_prev=site ;; |
| 1116 | -site=* | --site=* | --sit=*) |
| 1117 | site=$ac_optarg ;; |
| 1118 | |
| 1119 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1120 | ac_prev=srcdir ;; |
| 1121 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1122 | srcdir=$ac_optarg ;; |
| 1123 | |
| 1124 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1125 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1126 | ac_prev=sysconfdir ;; |
| 1127 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1128 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1129 | sysconfdir=$ac_optarg ;; |
| 1130 | |
| 1131 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1132 | ac_prev=target_alias ;; |
| 1133 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1134 | target_alias=$ac_optarg ;; |
| 1135 | |
| 1136 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1137 | verbose=yes ;; |
| 1138 | |
| 1139 | -version | --version | --versio | --versi | --vers | -V) |
| 1140 | ac_init_version=: ;; |
| 1141 | |
| 1142 | -with-* | --with-*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1143 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1144 | # Reject names that are not valid shell variable names. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1145 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1146 | as_fn_error $? "invalid package name: $ac_useropt" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1147 | ac_useropt_orig=$ac_useropt |
| 1148 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1149 | case $ac_user_opts in |
| 1150 | *" |
| 1151 | "with_$ac_useropt" |
| 1152 | "*) ;; |
| 1153 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1154 | ac_unrecognized_sep=', ';; |
| 1155 | esac |
| 1156 | eval with_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1157 | |
| 1158 | -without-* | --without-*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1159 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1160 | # Reject names that are not valid shell variable names. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1161 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1162 | as_fn_error $? "invalid package name: $ac_useropt" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1163 | ac_useropt_orig=$ac_useropt |
| 1164 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1165 | case $ac_user_opts in |
| 1166 | *" |
| 1167 | "with_$ac_useropt" |
| 1168 | "*) ;; |
| 1169 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1170 | ac_unrecognized_sep=', ';; |
| 1171 | esac |
| 1172 | eval with_$ac_useropt=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1173 | |
| 1174 | --x) |
| 1175 | # Obsolete; use --with-x. |
| 1176 | with_x=yes ;; |
| 1177 | |
| 1178 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1179 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1180 | ac_prev=x_includes ;; |
| 1181 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1182 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1183 | x_includes=$ac_optarg ;; |
| 1184 | |
| 1185 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1186 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1187 | ac_prev=x_libraries ;; |
| 1188 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1189 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1190 | x_libraries=$ac_optarg ;; |
| 1191 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1192 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1193 | Try \`$0 --help' for more information" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1194 | ;; |
| 1195 | |
| 1196 | *=*) |
| 1197 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1198 | # Reject names that are not valid shell variable names. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1199 | case $ac_envvar in #( |
| 1200 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1201 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1202 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1203 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1204 | export $ac_envvar ;; |
| 1205 | |
| 1206 | *) |
| 1207 | # FIXME: should be removed in autoconf 3.0. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1208 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1209 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1210 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1211 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1212 | ;; |
| 1213 | |
| 1214 | esac |
| 1215 | done |
| 1216 | |
| 1217 | if test -n "$ac_prev"; then |
| 1218 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1219 | as_fn_error $? "missing argument to $ac_option" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1220 | fi |
| 1221 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1222 | if test -n "$ac_unrecognized_opts"; then |
| 1223 | case $enable_option_checking in |
| 1224 | no) ;; |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1225 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1226 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1227 | esac |
| 1228 | fi |
| 1229 | |
| 1230 | # Check all directory arguments for consistency. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1231 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1232 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1233 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1234 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1235 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1236 | eval ac_val=\$$ac_var |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1237 | # Remove trailing slashes. |
| 1238 | case $ac_val in |
| 1239 | */ ) |
| 1240 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1241 | eval $ac_var=\$ac_val;; |
| 1242 | esac |
| 1243 | # Be sure to have absolute directory names. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1244 | case $ac_val in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1245 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1246 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1247 | esac |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1248 | 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] | 1249 | done |
| 1250 | |
| 1251 | # There might be people who depend on the old broken behavior: `$host' |
| 1252 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1253 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1254 | build=$build_alias |
| 1255 | host=$host_alias |
| 1256 | target=$target_alias |
| 1257 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1258 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1259 | if test "x$host_alias" != x; then |
| 1260 | if test "x$build_alias" = x; then |
| 1261 | cross_compiling=maybe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1262 | elif test "x$build_alias" != "x$host_alias"; then |
| 1263 | cross_compiling=yes |
| 1264 | fi |
| 1265 | fi |
| 1266 | |
| 1267 | ac_tool_prefix= |
| 1268 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1269 | |
| 1270 | test "$silent" = yes && exec 6>/dev/null |
| 1271 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1272 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1273 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1274 | ac_ls_di=`ls -di .` && |
| 1275 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1276 | as_fn_error $? "working directory cannot be determined" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1277 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1278 | as_fn_error $? "pwd does not report name of working directory" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1279 | |
| 1280 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1281 | # Find the source files, if location was not specified. |
| 1282 | if test -z "$srcdir"; then |
| 1283 | ac_srcdir_defaulted=yes |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1284 | # Try the directory containing this script, then the parent directory. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1285 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1286 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1287 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1288 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1289 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1290 | $as_echo X"$as_myself" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1291 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1292 | s//\1/ |
| 1293 | q |
| 1294 | } |
| 1295 | /^X\(\/\/\)[^/].*/{ |
| 1296 | s//\1/ |
| 1297 | q |
| 1298 | } |
| 1299 | /^X\(\/\/\)$/{ |
| 1300 | s//\1/ |
| 1301 | q |
| 1302 | } |
| 1303 | /^X\(\/\).*/{ |
| 1304 | s//\1/ |
| 1305 | q |
| 1306 | } |
| 1307 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1308 | srcdir=$ac_confdir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1309 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1310 | srcdir=.. |
| 1311 | fi |
| 1312 | else |
| 1313 | ac_srcdir_defaulted=no |
| 1314 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1315 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1316 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1317 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1318 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1319 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1320 | ac_abs_confdir=`( |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1321 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1322 | pwd)` |
| 1323 | # When building in place, set srcdir=. |
| 1324 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1325 | srcdir=. |
| 1326 | fi |
| 1327 | # Remove unnecessary trailing slashes from srcdir. |
| 1328 | # Double slashes in file names in object file debugging info |
| 1329 | # mess up M-x gdb in Emacs. |
| 1330 | case $srcdir in |
| 1331 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1332 | esac |
| 1333 | for ac_var in $ac_precious_vars; do |
| 1334 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1335 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1336 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1337 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1338 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1339 | |
| 1340 | # |
| 1341 | # Report the --help message. |
| 1342 | # |
| 1343 | if test "$ac_init_help" = "long"; then |
| 1344 | # Omit some internal or obsolete options to make the list less imposing. |
| 1345 | # 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] | 1346 | cat <<_ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1347 | \`configure' configures pjproject 2.x to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1348 | |
| 1349 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1350 | |
| 1351 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1352 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1353 | |
| 1354 | Defaults for the options are specified in brackets. |
| 1355 | |
| 1356 | Configuration: |
| 1357 | -h, --help display this help and exit |
| 1358 | --help=short display options specific to this package |
| 1359 | --help=recursive display the short help of all the included packages |
| 1360 | -V, --version display version information and exit |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1361 | -q, --quiet, --silent do not print \`checking ...' messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1362 | --cache-file=FILE cache test results in FILE [disabled] |
| 1363 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1364 | -n, --no-create do not create output files |
| 1365 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1366 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1367 | Installation directories: |
| 1368 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1369 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1370 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1371 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1372 | |
| 1373 | By default, \`make install' will install all the files in |
| 1374 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1375 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1376 | for instance \`--prefix=\$HOME'. |
| 1377 | |
| 1378 | For better control, use the options below. |
| 1379 | |
| 1380 | Fine tuning of the installation directories: |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1381 | --bindir=DIR user executables [EPREFIX/bin] |
| 1382 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1383 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1384 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1385 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1386 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1387 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1388 | --includedir=DIR C header files [PREFIX/include] |
| 1389 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1390 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1391 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1392 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1393 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1394 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1395 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1396 | --htmldir=DIR html documentation [DOCDIR] |
| 1397 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1398 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1399 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1400 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1401 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1402 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1403 | |
| 1404 | System types: |
| 1405 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1406 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1407 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1408 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1409 | fi |
| 1410 | |
| 1411 | if test -n "$ac_init_help"; then |
| 1412 | case $ac_init_help in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1413 | short | recursive ) echo "Configuration of pjproject 2.x:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1414 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1415 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1416 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1417 | Optional Features: |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1418 | --disable-option-checking ignore unrecognized --enable/--with options |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1419 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1420 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1421 | --disable-floating-point |
| 1422 | Disable floating point where possible |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1423 | --enable-epoll Use /dev/epoll ioqueue on Linux (experimental) |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1424 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1425 | --disable-oss Disable OSS audio (default: not disabled) |
Nanang Izzuddin | 6898bfd | 2012-05-17 11:23:41 +0000 | [diff] [blame] | 1426 | --disable-video Disable video feature |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 1427 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1428 | --disable-small-filter Exclude small filter in resampling |
| 1429 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1430 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1431 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1432 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1433 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 1434 | --disable-g722-codec Exclude G.722 codec in the build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1435 | --disable-g7221-codec Exclude G.7221 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1436 | --disable-speex-codec Exclude Speex codecs in the build |
| 1437 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1438 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1439 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1440 | --enable-resample-dll Build libresample as shared library |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 1441 | --disable-sdl Disable SDL (default: not disabled) |
| 1442 | --disable-ffmpeg Disable ffmpeg (default: not disabled) |
| 1443 | --disable-v4l2 Disable Video4Linux2 (default: not disabled) |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1444 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 1445 | package and samples location using IPPROOT and |
| 1446 | IPPSAMPLES env var or with --with-ipp and |
| 1447 | --with-ipp-samples options |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1448 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1449 | |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 1450 | --disable-opencore-amr Exclude OpenCORE AMR support from the build |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 1451 | (default: autodetect) |
| 1452 | |
Sauw Ming | 03df424 | 2012-09-25 02:23:06 +0000 | [diff] [blame] | 1453 | --disable-silk Exclude SILK support from the build (default: |
| 1454 | autodetect) |
| 1455 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1456 | |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1457 | Optional Packages: |
| 1458 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1459 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1460 | --with-external-speex Use external Speex development files, not the one in |
| 1461 | "third_party" directory. When this option is set, |
| 1462 | make sure that Speex is accessible to use (hint: use |
| 1463 | CFLAGS and LDFLAGS env var to set the include/lib |
| 1464 | paths) |
| 1465 | --with-external-gsm Use external GSM codec library, not the one in |
| 1466 | "third_party" directory. When this option is set, |
| 1467 | make sure that the GSM include/lib files are |
| 1468 | accessible to use (hint: use CFLAGS and LDFLAGS env |
| 1469 | var to set the include/lib paths) |
| 1470 | --with-external-pa Use external PortAudio development files, not the |
| 1471 | one in "third_party" directory. When this option is |
| 1472 | set, make sure that PortAudio is accessible to use |
| 1473 | (hint: use CFLAGS and LDFLAGS env var to set the |
| 1474 | include/lib paths) |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 1475 | --with-sdl=DIR Specify alternate libSDL prefix |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 1476 | --with-ffmpeg=DIR Specify alternate FFMPEG prefix |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 1477 | --with-ipp=DIR Specify the Intel IPP location |
| 1478 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
| 1479 | --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] | 1480 | "em64t. Default is blank for IA32" |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1481 | --with-ssl=DIR Specify alternate libssl prefix |
| 1482 | --with-opencore-amrnb=DIR |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 1483 | This option is obsolete and replaced by |
| 1484 | --with-opencore-amr=DIR |
| 1485 | --with-opencore-amr=DIR Specify alternate libopencore-amr prefix |
| 1486 | --with-opencore-amrwbenc=DIR |
| 1487 | Specify alternate libvo-amrwbenc prefix |
Sauw Ming | 03df424 | 2012-09-25 02:23:06 +0000 | [diff] [blame] | 1488 | --with-silk=DIR Specify alternate SILK prefix |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1489 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1490 | Some influential environment variables: |
| 1491 | CC C compiler command |
| 1492 | CFLAGS C compiler flags |
| 1493 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1494 | nonstandard directory <lib dir> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1495 | LIBS libraries to pass to the linker, e.g. -l<library> |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1496 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1497 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1498 | CXX C++ compiler command |
| 1499 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1500 | CPP C preprocessor |
| 1501 | |
| 1502 | Use these variables to override the choices made by `configure' or to help |
| 1503 | it to find libraries and programs with nonstandard names/locations. |
| 1504 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1505 | Report bugs to the package provider. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1506 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1507 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1508 | fi |
| 1509 | |
| 1510 | if test "$ac_init_help" = "recursive"; then |
| 1511 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1512 | 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] | 1513 | test -d "$ac_dir" || |
| 1514 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1515 | continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1516 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1517 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1518 | case "$ac_dir" in |
| 1519 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1520 | *) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1521 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1522 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1523 | 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] | 1524 | case $ac_top_builddir_sub in |
| 1525 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1526 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1527 | esac ;; |
| 1528 | esac |
| 1529 | ac_abs_top_builddir=$ac_pwd |
| 1530 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1531 | # for backward compatibility: |
| 1532 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1533 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1534 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1535 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1536 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1537 | ac_top_srcdir=$ac_top_builddir_sub |
| 1538 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1539 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1540 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1541 | ac_top_srcdir=$srcdir |
| 1542 | ac_abs_top_srcdir=$srcdir ;; |
| 1543 | *) # Relative name. |
| 1544 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1545 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1546 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1547 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1548 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1549 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1550 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1551 | # Check for guested configure. |
| 1552 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1553 | echo && |
| 1554 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1555 | elif test -f "$ac_srcdir/configure"; then |
| 1556 | echo && |
| 1557 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1558 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1559 | $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] | 1560 | fi || ac_status=$? |
| 1561 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1562 | done |
| 1563 | fi |
| 1564 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1565 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1566 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1567 | cat <<\_ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1568 | pjproject configure 2.x |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1569 | generated by GNU Autoconf 2.69 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1570 | |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1571 | Copyright (C) 2012 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1572 | This configure script is free software; the Free Software Foundation |
| 1573 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1574 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1575 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1576 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1577 | |
| 1578 | ## ------------------------ ## |
| 1579 | ## Autoconf initialization. ## |
| 1580 | ## ------------------------ ## |
| 1581 | |
| 1582 | # ac_fn_c_try_compile LINENO |
| 1583 | # -------------------------- |
| 1584 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1585 | ac_fn_c_try_compile () |
| 1586 | { |
| 1587 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1588 | rm -f conftest.$ac_objext |
| 1589 | if { { ac_try="$ac_compile" |
| 1590 | case "(($ac_try" in |
| 1591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1592 | *) ac_try_echo=$ac_try;; |
| 1593 | esac |
| 1594 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1595 | $as_echo "$ac_try_echo"; } >&5 |
| 1596 | (eval "$ac_compile") 2>conftest.err |
| 1597 | ac_status=$? |
| 1598 | if test -s conftest.err; then |
| 1599 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1600 | cat conftest.er1 >&5 |
| 1601 | mv -f conftest.er1 conftest.err |
| 1602 | fi |
| 1603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1604 | test $ac_status = 0; } && { |
| 1605 | test -z "$ac_c_werror_flag" || |
| 1606 | test ! -s conftest.err |
| 1607 | } && test -s conftest.$ac_objext; then : |
| 1608 | ac_retval=0 |
| 1609 | else |
| 1610 | $as_echo "$as_me: failed program was:" >&5 |
| 1611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1612 | |
| 1613 | ac_retval=1 |
| 1614 | fi |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1615 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1616 | as_fn_set_status $ac_retval |
| 1617 | |
| 1618 | } # ac_fn_c_try_compile |
| 1619 | |
| 1620 | # ac_fn_cxx_try_compile LINENO |
| 1621 | # ---------------------------- |
| 1622 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1623 | ac_fn_cxx_try_compile () |
| 1624 | { |
| 1625 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1626 | rm -f conftest.$ac_objext |
| 1627 | if { { ac_try="$ac_compile" |
| 1628 | case "(($ac_try" in |
| 1629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1630 | *) ac_try_echo=$ac_try;; |
| 1631 | esac |
| 1632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1633 | $as_echo "$ac_try_echo"; } >&5 |
| 1634 | (eval "$ac_compile") 2>conftest.err |
| 1635 | ac_status=$? |
| 1636 | if test -s conftest.err; then |
| 1637 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1638 | cat conftest.er1 >&5 |
| 1639 | mv -f conftest.er1 conftest.err |
| 1640 | fi |
| 1641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1642 | test $ac_status = 0; } && { |
| 1643 | test -z "$ac_cxx_werror_flag" || |
| 1644 | test ! -s conftest.err |
| 1645 | } && test -s conftest.$ac_objext; then : |
| 1646 | ac_retval=0 |
| 1647 | else |
| 1648 | $as_echo "$as_me: failed program was:" >&5 |
| 1649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1650 | |
| 1651 | ac_retval=1 |
| 1652 | fi |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1653 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1654 | as_fn_set_status $ac_retval |
| 1655 | |
| 1656 | } # ac_fn_cxx_try_compile |
| 1657 | |
| 1658 | # ac_fn_c_try_link LINENO |
| 1659 | # ----------------------- |
| 1660 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1661 | ac_fn_c_try_link () |
| 1662 | { |
| 1663 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1664 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1665 | if { { ac_try="$ac_link" |
| 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_link") 2>conftest.err |
| 1673 | ac_status=$? |
| 1674 | if test -s conftest.err; then |
| 1675 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1676 | cat conftest.er1 >&5 |
| 1677 | mv -f conftest.er1 conftest.err |
| 1678 | fi |
| 1679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1680 | test $ac_status = 0; } && { |
| 1681 | test -z "$ac_c_werror_flag" || |
| 1682 | test ! -s conftest.err |
| 1683 | } && test -s conftest$ac_exeext && { |
| 1684 | test "$cross_compiling" = yes || |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1685 | test -x conftest$ac_exeext |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1686 | }; then : |
| 1687 | ac_retval=0 |
| 1688 | else |
| 1689 | $as_echo "$as_me: failed program was:" >&5 |
| 1690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1691 | |
| 1692 | ac_retval=1 |
| 1693 | fi |
| 1694 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1695 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1696 | # interfere with the next link command; also delete a directory that is |
| 1697 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1698 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1699 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1700 | as_fn_set_status $ac_retval |
| 1701 | |
| 1702 | } # ac_fn_c_try_link |
| 1703 | |
| 1704 | # ac_fn_c_try_run LINENO |
| 1705 | # ---------------------- |
| 1706 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1707 | # that executables *can* be run. |
| 1708 | ac_fn_c_try_run () |
| 1709 | { |
| 1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1711 | if { { ac_try="$ac_link" |
| 1712 | case "(($ac_try" in |
| 1713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1714 | *) ac_try_echo=$ac_try;; |
| 1715 | esac |
| 1716 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1717 | $as_echo "$ac_try_echo"; } >&5 |
| 1718 | (eval "$ac_link") 2>&5 |
| 1719 | ac_status=$? |
| 1720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1721 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1722 | { { case "(($ac_try" in |
| 1723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1724 | *) ac_try_echo=$ac_try;; |
| 1725 | esac |
| 1726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1727 | $as_echo "$ac_try_echo"; } >&5 |
| 1728 | (eval "$ac_try") 2>&5 |
| 1729 | ac_status=$? |
| 1730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1731 | test $ac_status = 0; }; }; then : |
| 1732 | ac_retval=0 |
| 1733 | else |
| 1734 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1735 | $as_echo "$as_me: failed program was:" >&5 |
| 1736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1737 | |
| 1738 | ac_retval=$ac_status |
| 1739 | fi |
| 1740 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1741 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1742 | as_fn_set_status $ac_retval |
| 1743 | |
| 1744 | } # ac_fn_c_try_run |
| 1745 | |
| 1746 | # ac_fn_c_try_cpp LINENO |
| 1747 | # ---------------------- |
| 1748 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1749 | ac_fn_c_try_cpp () |
| 1750 | { |
| 1751 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1752 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1753 | case "(($ac_try" in |
| 1754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1755 | *) ac_try_echo=$ac_try;; |
| 1756 | esac |
| 1757 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1758 | $as_echo "$ac_try_echo"; } >&5 |
| 1759 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1760 | ac_status=$? |
| 1761 | if test -s conftest.err; then |
| 1762 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1763 | cat conftest.er1 >&5 |
| 1764 | mv -f conftest.er1 conftest.err |
| 1765 | fi |
| 1766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1767 | test $ac_status = 0; } > conftest.i && { |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1768 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1769 | test ! -s conftest.err |
| 1770 | }; then : |
| 1771 | ac_retval=0 |
| 1772 | else |
| 1773 | $as_echo "$as_me: failed program was:" >&5 |
| 1774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1775 | |
| 1776 | ac_retval=1 |
| 1777 | fi |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1778 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1779 | as_fn_set_status $ac_retval |
| 1780 | |
| 1781 | } # ac_fn_c_try_cpp |
| 1782 | |
| 1783 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1784 | # ------------------------------------------------------- |
| 1785 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1786 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1787 | ac_fn_c_check_header_compile () |
| 1788 | { |
| 1789 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1791 | $as_echo_n "checking for $2... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1792 | if eval \${$3+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1793 | $as_echo_n "(cached) " >&6 |
| 1794 | else |
| 1795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1796 | /* end confdefs.h. */ |
| 1797 | $4 |
| 1798 | #include <$2> |
| 1799 | _ACEOF |
| 1800 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1801 | eval "$3=yes" |
| 1802 | else |
| 1803 | eval "$3=no" |
| 1804 | fi |
| 1805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1806 | fi |
| 1807 | eval ac_res=\$$3 |
| 1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1809 | $as_echo "$ac_res" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1810 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1811 | |
| 1812 | } # ac_fn_c_check_header_compile |
| 1813 | |
| 1814 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1815 | # ------------------------------------------------------- |
| 1816 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1817 | # the include files in INCLUDES and setting the cache variable VAR |
| 1818 | # accordingly. |
| 1819 | ac_fn_c_check_header_mongrel () |
| 1820 | { |
| 1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1822 | if eval \${$3+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1824 | $as_echo_n "checking for $2... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1825 | if eval \${$3+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1826 | $as_echo_n "(cached) " >&6 |
| 1827 | fi |
| 1828 | eval ac_res=\$$3 |
| 1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1830 | $as_echo "$ac_res" >&6; } |
| 1831 | else |
| 1832 | # Is the header compilable? |
| 1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1834 | $as_echo_n "checking $2 usability... " >&6; } |
| 1835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1836 | /* end confdefs.h. */ |
| 1837 | $4 |
| 1838 | #include <$2> |
| 1839 | _ACEOF |
| 1840 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1841 | ac_header_compiler=yes |
| 1842 | else |
| 1843 | ac_header_compiler=no |
| 1844 | fi |
| 1845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1847 | $as_echo "$ac_header_compiler" >&6; } |
| 1848 | |
| 1849 | # Is the header present? |
| 1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1851 | $as_echo_n "checking $2 presence... " >&6; } |
| 1852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1853 | /* end confdefs.h. */ |
| 1854 | #include <$2> |
| 1855 | _ACEOF |
| 1856 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1857 | ac_header_preproc=yes |
| 1858 | else |
| 1859 | ac_header_preproc=no |
| 1860 | fi |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 1861 | rm -f conftest.err conftest.i conftest.$ac_ext |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1863 | $as_echo "$ac_header_preproc" >&6; } |
| 1864 | |
| 1865 | # So? What about this header? |
| 1866 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1867 | yes:no: ) |
| 1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1869 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1871 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1872 | ;; |
| 1873 | no:yes:* ) |
| 1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1875 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1877 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1879 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1881 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1883 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1884 | ;; |
| 1885 | esac |
| 1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1887 | $as_echo_n "checking for $2... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1888 | if eval \${$3+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1889 | $as_echo_n "(cached) " >&6 |
| 1890 | else |
| 1891 | eval "$3=\$ac_header_compiler" |
| 1892 | fi |
| 1893 | eval ac_res=\$$3 |
| 1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1895 | $as_echo "$ac_res" >&6; } |
| 1896 | fi |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1897 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1898 | |
| 1899 | } # ac_fn_c_check_header_mongrel |
| 1900 | |
| 1901 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1902 | # ---------------------------------- |
| 1903 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1904 | ac_fn_c_check_func () |
| 1905 | { |
| 1906 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1908 | $as_echo_n "checking for $2... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1909 | if eval \${$3+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1910 | $as_echo_n "(cached) " >&6 |
| 1911 | else |
| 1912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1913 | /* end confdefs.h. */ |
| 1914 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1916 | #define $2 innocuous_$2 |
| 1917 | |
| 1918 | /* System header to define __stub macros and hopefully few prototypes, |
| 1919 | which can conflict with char $2 (); below. |
| 1920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1921 | <limits.h> exists even on freestanding compilers. */ |
| 1922 | |
| 1923 | #ifdef __STDC__ |
| 1924 | # include <limits.h> |
| 1925 | #else |
| 1926 | # include <assert.h> |
| 1927 | #endif |
| 1928 | |
| 1929 | #undef $2 |
| 1930 | |
| 1931 | /* Override any GCC internal prototype to avoid an error. |
| 1932 | Use char because int might match the return type of a GCC |
| 1933 | builtin and then its argument prototype would still apply. */ |
| 1934 | #ifdef __cplusplus |
| 1935 | extern "C" |
| 1936 | #endif |
| 1937 | char $2 (); |
| 1938 | /* The GNU C library defines this for functions which it implements |
| 1939 | to always fail with ENOSYS. Some functions are actually named |
| 1940 | something starting with __ and the normal name is an alias. */ |
| 1941 | #if defined __stub_$2 || defined __stub___$2 |
| 1942 | choke me |
| 1943 | #endif |
| 1944 | |
| 1945 | int |
| 1946 | main () |
| 1947 | { |
| 1948 | return $2 (); |
| 1949 | ; |
| 1950 | return 0; |
| 1951 | } |
| 1952 | _ACEOF |
| 1953 | if ac_fn_c_try_link "$LINENO"; then : |
| 1954 | eval "$3=yes" |
| 1955 | else |
| 1956 | eval "$3=no" |
| 1957 | fi |
| 1958 | rm -f core conftest.err conftest.$ac_objext \ |
| 1959 | conftest$ac_exeext conftest.$ac_ext |
| 1960 | fi |
| 1961 | eval ac_res=\$$3 |
| 1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1963 | $as_echo "$ac_res" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1964 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1965 | |
| 1966 | } # ac_fn_c_check_func |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1967 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1968 | This file contains any messages produced by compilers while |
| 1969 | running configure, to aid debugging if configure makes a mistake. |
| 1970 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 1971 | It was created by pjproject $as_me 2.x, which was |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 1972 | generated by GNU Autoconf 2.69. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1973 | |
| 1974 | $ $0 $@ |
| 1975 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1976 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1977 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1978 | { |
| 1979 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1980 | ## --------- ## |
| 1981 | ## Platform. ## |
| 1982 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1983 | |
| 1984 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1985 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1986 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1987 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1988 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1989 | |
| 1990 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1991 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1992 | |
| 1993 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1994 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1995 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1996 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1997 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1998 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1999 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2000 | |
| 2001 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2002 | |
| 2003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2004 | for as_dir in $PATH |
| 2005 | do |
| 2006 | IFS=$as_save_IFS |
| 2007 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2008 | $as_echo "PATH: $as_dir" |
| 2009 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2010 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2011 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2012 | } >&5 |
| 2013 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2014 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2015 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2016 | |
| 2017 | ## ----------- ## |
| 2018 | ## Core tests. ## |
| 2019 | ## ----------- ## |
| 2020 | |
| 2021 | _ACEOF |
| 2022 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2023 | |
| 2024 | # Keep a trace of the command line. |
| 2025 | # 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] | 2026 | # 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] | 2027 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2028 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2029 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2030 | ac_configure_args0= |
| 2031 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2032 | ac_must_keep_next=false |
| 2033 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2034 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2035 | for ac_arg |
| 2036 | do |
| 2037 | case $ac_arg in |
| 2038 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2039 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2040 | | -silent | --silent | --silen | --sile | --sil) |
| 2041 | continue ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2042 | *\'*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2043 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2044 | esac |
| 2045 | case $ac_pass in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2046 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2047 | 2) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2048 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2049 | if test $ac_must_keep_next = true; then |
| 2050 | ac_must_keep_next=false # Got value, back to normal. |
| 2051 | else |
| 2052 | case $ac_arg in |
| 2053 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2054 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2055 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2056 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2057 | case "$ac_configure_args0 " in |
| 2058 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2059 | esac |
| 2060 | ;; |
| 2061 | -* ) ac_must_keep_next=true ;; |
| 2062 | esac |
| 2063 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2064 | as_fn_append ac_configure_args " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2065 | ;; |
| 2066 | esac |
| 2067 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2068 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2069 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2070 | { ac_configure_args1=; unset ac_configure_args1;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2071 | |
| 2072 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2073 | # config.log. We remove comments because anyway the quotes in there |
| 2074 | # would cause problems or look ugly. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2075 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2076 | # 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] | 2077 | trap 'exit_status=$? |
| 2078 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2079 | { |
| 2080 | echo |
| 2081 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2082 | $as_echo "## ---------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2083 | ## Cache variables. ## |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2084 | ## ---------------- ##" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2085 | echo |
| 2086 | # The following way of writing the cache mishandles newlines in values, |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2087 | ( |
| 2088 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2089 | eval ac_val=\$$ac_var |
| 2090 | case $ac_val in #( |
| 2091 | *${as_nl}*) |
| 2092 | case $ac_var in #( |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2093 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2094 | $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] | 2095 | esac |
| 2096 | case $ac_var in #( |
| 2097 | _ | IFS | as_nl) ;; #( |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2098 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2099 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2100 | esac ;; |
| 2101 | esac |
| 2102 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2103 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2104 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2105 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2106 | sed -n \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2107 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2108 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2109 | ;; #( |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2110 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2111 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2112 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2113 | esac | |
| 2114 | sort |
| 2115 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2116 | echo |
| 2117 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2118 | $as_echo "## ----------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2119 | ## Output variables. ## |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2120 | ## ----------------- ##" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2121 | echo |
| 2122 | for ac_var in $ac_subst_vars |
| 2123 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2124 | eval ac_val=\$$ac_var |
| 2125 | case $ac_val in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2126 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2127 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2128 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2129 | done | sort |
| 2130 | echo |
| 2131 | |
| 2132 | if test -n "$ac_subst_files"; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2133 | $as_echo "## ------------------- ## |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2134 | ## File substitutions. ## |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2135 | ## ------------------- ##" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2136 | echo |
| 2137 | for ac_var in $ac_subst_files |
| 2138 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2139 | eval ac_val=\$$ac_var |
| 2140 | case $ac_val in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2141 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2142 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2143 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2144 | done | sort |
| 2145 | echo |
| 2146 | fi |
| 2147 | |
| 2148 | if test -s confdefs.h; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2149 | $as_echo "## ----------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2150 | ## confdefs.h. ## |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2151 | ## ----------- ##" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2152 | echo |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2153 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2154 | echo |
| 2155 | fi |
| 2156 | test "$ac_signal" != 0 && |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2157 | $as_echo "$as_me: caught signal $ac_signal" |
| 2158 | $as_echo "$as_me: exit $exit_status" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2159 | } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2160 | rm -f core *.core core.conftest.* && |
| 2161 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2162 | exit $exit_status |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2163 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2164 | for ac_signal in 1 2 13 15; do |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2165 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2166 | done |
| 2167 | ac_signal=0 |
| 2168 | |
| 2169 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2170 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2171 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2172 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2173 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2174 | # Predefined preprocessor variables. |
| 2175 | |
| 2176 | cat >>confdefs.h <<_ACEOF |
| 2177 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2178 | _ACEOF |
| 2179 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2180 | cat >>confdefs.h <<_ACEOF |
| 2181 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2182 | _ACEOF |
| 2183 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2184 | cat >>confdefs.h <<_ACEOF |
| 2185 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2186 | _ACEOF |
| 2187 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2188 | cat >>confdefs.h <<_ACEOF |
| 2189 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2190 | _ACEOF |
| 2191 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2192 | cat >>confdefs.h <<_ACEOF |
| 2193 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2194 | _ACEOF |
| 2195 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2196 | cat >>confdefs.h <<_ACEOF |
| 2197 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2198 | _ACEOF |
| 2199 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2200 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2201 | # 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] | 2202 | # Prefer an explicitly selected file to automatically selected ones. |
| 2203 | ac_site_file1=NONE |
| 2204 | ac_site_file2=NONE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2205 | if test -n "$CONFIG_SITE"; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2206 | # We do not want a PATH search for config.site. |
| 2207 | case $CONFIG_SITE in #(( |
| 2208 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2209 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2210 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2211 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2212 | elif test "x$prefix" != xNONE; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2213 | ac_site_file1=$prefix/share/config.site |
| 2214 | ac_site_file2=$prefix/etc/config.site |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2215 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2216 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2217 | ac_site_file2=$ac_default_prefix/etc/config.site |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2218 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2219 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2220 | do |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2221 | test "x$ac_site_file" = xNONE && continue |
| 2222 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2224 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2225 | sed 's/^/| /' "$ac_site_file" >&5 |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2226 | . "$ac_site_file" \ |
| 2227 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2228 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2229 | as_fn_error $? "failed to load site script $ac_site_file |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2230 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2231 | fi |
| 2232 | done |
| 2233 | |
| 2234 | if test -r "$cache_file"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2235 | # Some versions of bash will fail to source /dev/null (special files |
| 2236 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2237 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2239 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2240 | case $cache_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2241 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2242 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2243 | esac |
| 2244 | fi |
| 2245 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2246 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2247 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2248 | >$cache_file |
| 2249 | fi |
| 2250 | |
| 2251 | # Check that the precious variables saved in the cache have kept the same |
| 2252 | # value. |
| 2253 | ac_cache_corrupted=false |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2254 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2255 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2256 | eval ac_new_set=\$ac_env_${ac_var}_set |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2257 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2258 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2259 | case $ac_old_set,$ac_new_set in |
| 2260 | set,) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2262 | $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] | 2263 | ac_cache_corrupted=: ;; |
| 2264 | ,set) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2266 | $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] | 2267 | ac_cache_corrupted=: ;; |
| 2268 | ,);; |
| 2269 | *) |
| 2270 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2271 | # differences in whitespace do not lead to failure. |
| 2272 | ac_old_val_w=`echo x $ac_old_val` |
| 2273 | ac_new_val_w=`echo x $ac_new_val` |
| 2274 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2276 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2277 | ac_cache_corrupted=: |
| 2278 | else |
| 2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2280 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2281 | eval $ac_var=\$ac_old_val |
| 2282 | fi |
| 2283 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2284 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2285 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2286 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2287 | fi;; |
| 2288 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2289 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2290 | if test "$ac_new_set" = set; then |
| 2291 | case $ac_new_val in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2292 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2293 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2294 | esac |
| 2295 | case " $ac_configure_args " in |
| 2296 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2297 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2298 | esac |
| 2299 | fi |
| 2300 | done |
| 2301 | if $ac_cache_corrupted; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2303 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2305 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2306 | 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] | 2307 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2308 | ## -------------------- ## |
| 2309 | ## Main body of script. ## |
| 2310 | ## -------------------- ## |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2311 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2312 | ac_ext=c |
| 2313 | ac_cpp='$CPP $CPPFLAGS' |
| 2314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2317 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2318 | |
| 2319 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2320 | host_orig="$host" |
| 2321 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2322 | ac_aux_dir= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2323 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2324 | if test -f "$ac_dir/install-sh"; then |
| 2325 | ac_aux_dir=$ac_dir |
| 2326 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2327 | break |
| 2328 | elif test -f "$ac_dir/install.sh"; then |
| 2329 | ac_aux_dir=$ac_dir |
| 2330 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2331 | break |
| 2332 | elif test -f "$ac_dir/shtool"; then |
| 2333 | ac_aux_dir=$ac_dir |
| 2334 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2335 | break |
| 2336 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2337 | done |
| 2338 | if test -z "$ac_aux_dir"; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2339 | 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] | 2340 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2341 | |
| 2342 | # These three variables are undocumented and unsupported, |
| 2343 | # and are intended to be withdrawn in a future Autoconf release. |
| 2344 | # They can cause serious problems if a builder's source tree is in a directory |
| 2345 | # whose full name contains unusual characters. |
| 2346 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2347 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2348 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2349 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2350 | |
| 2351 | # Make sure we can run config.sub. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2352 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2353 | 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] | 2354 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2356 | $as_echo_n "checking build system type... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2357 | if ${ac_cv_build+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2358 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2359 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2360 | ac_build_alias=$build_alias |
| 2361 | test "x$ac_build_alias" = x && |
| 2362 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2363 | test "x$ac_build_alias" = x && |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2364 | 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] | 2365 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2366 | 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] | 2367 | |
| 2368 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2370 | $as_echo "$ac_cv_build" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2371 | case $ac_cv_build in |
| 2372 | *-*-*) ;; |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2373 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2374 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2375 | build=$ac_cv_build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2376 | ac_save_IFS=$IFS; IFS='-' |
| 2377 | set x $ac_cv_build |
| 2378 | shift |
| 2379 | build_cpu=$1 |
| 2380 | build_vendor=$2 |
| 2381 | shift; shift |
| 2382 | # Remember, the first character of IFS is used to create $*, |
| 2383 | # except with old shells: |
| 2384 | build_os=$* |
| 2385 | IFS=$ac_save_IFS |
| 2386 | 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] | 2387 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2388 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2390 | $as_echo_n "checking host system type... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2391 | if ${ac_cv_host+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2392 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2393 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2394 | if test "x$host_alias" = x; then |
| 2395 | ac_cv_host=$ac_cv_build |
| 2396 | else |
| 2397 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2398 | 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] | 2399 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2400 | |
| 2401 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2403 | $as_echo "$ac_cv_host" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2404 | case $ac_cv_host in |
| 2405 | *-*-*) ;; |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2406 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2407 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2408 | host=$ac_cv_host |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2409 | ac_save_IFS=$IFS; IFS='-' |
| 2410 | set x $ac_cv_host |
| 2411 | shift |
| 2412 | host_cpu=$1 |
| 2413 | host_vendor=$2 |
| 2414 | shift; shift |
| 2415 | # Remember, the first character of IFS is used to create $*, |
| 2416 | # except with old shells: |
| 2417 | host_os=$* |
| 2418 | IFS=$ac_save_IFS |
| 2419 | 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] | 2420 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2421 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 2423 | $as_echo_n "checking target system type... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2424 | if ${ac_cv_target+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2425 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2426 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2427 | if test "x$target_alias" = x; then |
| 2428 | ac_cv_target=$ac_cv_host |
| 2429 | else |
| 2430 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2431 | 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] | 2432 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2433 | |
| 2434 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 2436 | $as_echo "$ac_cv_target" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2437 | case $ac_cv_target in |
| 2438 | *-*-*) ;; |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2439 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2440 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2441 | target=$ac_cv_target |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2442 | ac_save_IFS=$IFS; IFS='-' |
| 2443 | set x $ac_cv_target |
| 2444 | shift |
| 2445 | target_cpu=$1 |
| 2446 | target_vendor=$2 |
| 2447 | shift; shift |
| 2448 | # Remember, the first character of IFS is used to create $*, |
| 2449 | # except with old shells: |
| 2450 | target_os=$* |
| 2451 | IFS=$ac_save_IFS |
| 2452 | 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] | 2453 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2454 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2455 | # The aliases save the names the user supplied, while $host etc. |
| 2456 | # will get canonicalized. |
| 2457 | test -n "$target_alias" && |
| 2458 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2459 | NONENONEs,x,x, && |
| 2460 | program_prefix=${target_alias}- |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2461 | 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] | 2462 | |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 2463 | 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] | 2464 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2465 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2466 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2467 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 2468 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2469 | else |
| 2470 | CFLAGS="$CFLAGS" |
| 2471 | fi |
| 2472 | |
| 2473 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 2474 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2475 | ac_ext=c |
| 2476 | ac_cpp='$CPP $CPPFLAGS' |
| 2477 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2478 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2479 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2480 | if test -n "$ac_tool_prefix"; then |
| 2481 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2482 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2484 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2485 | if ${ac_cv_prog_CC+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2486 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2487 | else |
| 2488 | if test -n "$CC"; then |
| 2489 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2490 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2492 | for as_dir in $PATH |
| 2493 | do |
| 2494 | IFS=$as_save_IFS |
| 2495 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2496 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2497 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2498 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2499 | $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] | 2500 | break 2 |
| 2501 | fi |
| 2502 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2503 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2504 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2505 | |
| 2506 | fi |
| 2507 | fi |
| 2508 | CC=$ac_cv_prog_CC |
| 2509 | if test -n "$CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2511 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2512 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2514 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2515 | fi |
| 2516 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2517 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2518 | fi |
| 2519 | if test -z "$ac_cv_prog_CC"; then |
| 2520 | ac_ct_CC=$CC |
| 2521 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2522 | set dummy gcc; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2524 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2525 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2526 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2527 | else |
| 2528 | if test -n "$ac_ct_CC"; then |
| 2529 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2530 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2532 | for as_dir in $PATH |
| 2533 | do |
| 2534 | IFS=$as_save_IFS |
| 2535 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2536 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2537 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2538 | ac_cv_prog_ac_ct_CC="gcc" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2539 | $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] | 2540 | break 2 |
| 2541 | fi |
| 2542 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2543 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2544 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2545 | |
| 2546 | fi |
| 2547 | fi |
| 2548 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2549 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2551 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2552 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2554 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2555 | fi |
| 2556 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2557 | if test "x$ac_ct_CC" = x; then |
| 2558 | CC="" |
| 2559 | else |
| 2560 | case $cross_compiling:$ac_tool_warned in |
| 2561 | yes:) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2563 | $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] | 2564 | ac_tool_warned=yes ;; |
| 2565 | esac |
| 2566 | CC=$ac_ct_CC |
| 2567 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2568 | else |
| 2569 | CC="$ac_cv_prog_CC" |
| 2570 | fi |
| 2571 | |
| 2572 | if test -z "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2573 | if test -n "$ac_tool_prefix"; then |
| 2574 | # 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] | 2575 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2577 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2578 | if ${ac_cv_prog_CC+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2579 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2580 | else |
| 2581 | if test -n "$CC"; then |
| 2582 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2583 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2585 | for as_dir in $PATH |
| 2586 | do |
| 2587 | IFS=$as_save_IFS |
| 2588 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2589 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2590 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2591 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2592 | $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] | 2593 | break 2 |
| 2594 | fi |
| 2595 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2596 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2597 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2598 | |
| 2599 | fi |
| 2600 | fi |
| 2601 | CC=$ac_cv_prog_CC |
| 2602 | if test -n "$CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2604 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2605 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2607 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2608 | fi |
| 2609 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2610 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2611 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2612 | fi |
| 2613 | if test -z "$CC"; then |
| 2614 | # Extract the first word of "cc", so it can be a program name with args. |
| 2615 | set dummy cc; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2617 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2618 | if ${ac_cv_prog_CC+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2619 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2620 | else |
| 2621 | if test -n "$CC"; then |
| 2622 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2623 | else |
| 2624 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2626 | for as_dir in $PATH |
| 2627 | do |
| 2628 | IFS=$as_save_IFS |
| 2629 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2630 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2632 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2633 | ac_prog_rejected=yes |
| 2634 | continue |
| 2635 | fi |
| 2636 | ac_cv_prog_CC="cc" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2637 | $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] | 2638 | break 2 |
| 2639 | fi |
| 2640 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2641 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2642 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2643 | |
| 2644 | if test $ac_prog_rejected = yes; then |
| 2645 | # We found a bogon in the path, so make sure we never use it. |
| 2646 | set dummy $ac_cv_prog_CC |
| 2647 | shift |
| 2648 | if test $# != 0; then |
| 2649 | # We chose a different compiler from the bogus one. |
| 2650 | # However, it has the same basename, so the bogon will be chosen |
| 2651 | # first if we set CC to just the basename; use the full file name. |
| 2652 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2653 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2654 | fi |
| 2655 | fi |
| 2656 | fi |
| 2657 | fi |
| 2658 | CC=$ac_cv_prog_CC |
| 2659 | if test -n "$CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2661 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2662 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2664 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2665 | fi |
| 2666 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2667 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2668 | fi |
| 2669 | if test -z "$CC"; then |
| 2670 | if test -n "$ac_tool_prefix"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2671 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2672 | do |
| 2673 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2674 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2676 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2677 | if ${ac_cv_prog_CC+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2678 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2679 | else |
| 2680 | if test -n "$CC"; then |
| 2681 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2682 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2684 | for as_dir in $PATH |
| 2685 | do |
| 2686 | IFS=$as_save_IFS |
| 2687 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2688 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2690 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2691 | $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] | 2692 | break 2 |
| 2693 | fi |
| 2694 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2695 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2696 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2697 | |
| 2698 | fi |
| 2699 | fi |
| 2700 | CC=$ac_cv_prog_CC |
| 2701 | if test -n "$CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2703 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2704 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2706 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2707 | fi |
| 2708 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2709 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2710 | test -n "$CC" && break |
| 2711 | done |
| 2712 | fi |
| 2713 | if test -z "$CC"; then |
| 2714 | ac_ct_CC=$CC |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2715 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2716 | do |
| 2717 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2718 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2720 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2721 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2722 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2723 | else |
| 2724 | if test -n "$ac_ct_CC"; then |
| 2725 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2726 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2728 | for as_dir in $PATH |
| 2729 | do |
| 2730 | IFS=$as_save_IFS |
| 2731 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2732 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2733 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2734 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2735 | $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] | 2736 | break 2 |
| 2737 | fi |
| 2738 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2739 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2740 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2741 | |
| 2742 | fi |
| 2743 | fi |
| 2744 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2745 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2747 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2748 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2750 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2751 | fi |
| 2752 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2753 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2754 | test -n "$ac_ct_CC" && break |
| 2755 | done |
| 2756 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2757 | if test "x$ac_ct_CC" = x; then |
| 2758 | CC="" |
| 2759 | else |
| 2760 | case $cross_compiling:$ac_tool_warned in |
| 2761 | yes:) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2763 | $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] | 2764 | ac_tool_warned=yes ;; |
| 2765 | esac |
| 2766 | CC=$ac_ct_CC |
| 2767 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2768 | fi |
| 2769 | |
| 2770 | fi |
| 2771 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2772 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2773 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2774 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2775 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2776 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2777 | |
| 2778 | # Provide some information about the compiler. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2779 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2780 | set X $ac_compile |
| 2781 | ac_compiler=$2 |
| 2782 | for ac_option in --version -v -V -qversion; do |
| 2783 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2784 | case "(($ac_try" in |
| 2785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2786 | *) ac_try_echo=$ac_try;; |
| 2787 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2788 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2789 | $as_echo "$ac_try_echo"; } >&5 |
| 2790 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2791 | ac_status=$? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2792 | if test -s conftest.err; then |
| 2793 | sed '10a\ |
| 2794 | ... rest of stderr output deleted ... |
| 2795 | 10q' conftest.err >conftest.er1 |
| 2796 | cat conftest.er1 >&5 |
| 2797 | fi |
| 2798 | rm -f conftest.er1 conftest.err |
| 2799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2800 | test $ac_status = 0; } |
| 2801 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2802 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2804 | /* end confdefs.h. */ |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2805 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2806 | int |
| 2807 | main () |
| 2808 | { |
| 2809 | |
| 2810 | ; |
| 2811 | return 0; |
| 2812 | } |
| 2813 | _ACEOF |
| 2814 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2815 | 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] | 2816 | # Try to create an executable without -o first, disregard a.out. |
| 2817 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2818 | # of exeext. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2820 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2821 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2822 | |
| 2823 | # The possible output files: |
| 2824 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2825 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2826 | ac_rmfiles= |
| 2827 | for ac_file in $ac_files |
| 2828 | do |
| 2829 | case $ac_file in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2830 | *.$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] | 2831 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2832 | esac |
| 2833 | done |
| 2834 | rm -f $ac_rmfiles |
| 2835 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2836 | if { { ac_try="$ac_link_default" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2837 | case "(($ac_try" in |
| 2838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2839 | *) ac_try_echo=$ac_try;; |
| 2840 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2841 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2842 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2843 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2844 | ac_status=$? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2845 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2846 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2847 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2848 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2849 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2850 | # so that the user can short-circuit this test for compilers unknown to |
| 2851 | # Autoconf. |
| 2852 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2853 | do |
| 2854 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2855 | case $ac_file in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2856 | *.$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] | 2857 | ;; |
| 2858 | [ab].out ) |
| 2859 | # We found the default executable, but exeext='' is most |
| 2860 | # certainly right. |
| 2861 | break;; |
| 2862 | *.* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2863 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2864 | then :; else |
| 2865 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2866 | fi |
| 2867 | # We set ac_cv_exeext here because the later test for it is not |
| 2868 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2869 | # argument, so we may need to know it at that point already. |
| 2870 | # Even if this section looks crufty: it has the advantage of |
| 2871 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2872 | break;; |
| 2873 | * ) |
| 2874 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2875 | esac |
| 2876 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2877 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2878 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2879 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2880 | ac_file='' |
| 2881 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2882 | if test -z "$ac_file"; then : |
| 2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2884 | $as_echo "no" >&6; } |
| 2885 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2887 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2888 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2889 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2890 | as_fn_error 77 "C compiler cannot create executables |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2891 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2892 | else |
| 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2894 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2895 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2897 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2899 | $as_echo "$ac_file" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2900 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2901 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2902 | 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] | 2903 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2905 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2906 | if { { ac_try="$ac_link" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2907 | case "(($ac_try" in |
| 2908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2909 | *) ac_try_echo=$ac_try;; |
| 2910 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2911 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2912 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2913 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2914 | ac_status=$? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2916 | test $ac_status = 0; }; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2917 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2918 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2919 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2920 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2921 | for ac_file in conftest.exe conftest conftest.*; do |
| 2922 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2923 | case $ac_file in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2924 | *.$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] | 2925 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2926 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2927 | * ) break;; |
| 2928 | esac |
| 2929 | done |
| 2930 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2931 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2932 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2933 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2934 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2935 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2936 | rm -f conftest conftest$ac_cv_exeext |
| 2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2938 | $as_echo "$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2939 | |
| 2940 | rm -f conftest.$ac_ext |
| 2941 | EXEEXT=$ac_cv_exeext |
| 2942 | ac_exeext=$EXEEXT |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2944 | /* end confdefs.h. */ |
| 2945 | #include <stdio.h> |
| 2946 | int |
| 2947 | main () |
| 2948 | { |
| 2949 | FILE *f = fopen ("conftest.out", "w"); |
| 2950 | return ferror (f) || fclose (f) != 0; |
| 2951 | |
| 2952 | ; |
| 2953 | return 0; |
| 2954 | } |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 2955 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2956 | ac_clean_files="$ac_clean_files conftest.out" |
| 2957 | # Check that the compiler produces executables we can run. If not, either |
| 2958 | # the compiler is broken, or we cross compile. |
| 2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2960 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2961 | if test "$cross_compiling" != yes; then |
| 2962 | { { ac_try="$ac_link" |
| 2963 | case "(($ac_try" in |
| 2964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2965 | *) ac_try_echo=$ac_try;; |
| 2966 | esac |
| 2967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2968 | $as_echo "$ac_try_echo"; } >&5 |
| 2969 | (eval "$ac_link") 2>&5 |
| 2970 | ac_status=$? |
| 2971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2972 | test $ac_status = 0; } |
| 2973 | if { ac_try='./conftest$ac_cv_exeext' |
| 2974 | { { case "(($ac_try" in |
| 2975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2976 | *) ac_try_echo=$ac_try;; |
| 2977 | esac |
| 2978 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2979 | $as_echo "$ac_try_echo"; } >&5 |
| 2980 | (eval "$ac_try") 2>&5 |
| 2981 | ac_status=$? |
| 2982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2983 | test $ac_status = 0; }; }; then |
| 2984 | cross_compiling=no |
| 2985 | else |
| 2986 | if test "$cross_compiling" = maybe; then |
| 2987 | cross_compiling=yes |
| 2988 | else |
| 2989 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2990 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 2991 | as_fn_error $? "cannot run C compiled programs. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2992 | If you meant to cross compile, use \`--host'. |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 2993 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 2994 | fi |
| 2995 | fi |
| 2996 | fi |
| 2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2998 | $as_echo "$cross_compiling" >&6; } |
| 2999 | |
| 3000 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3001 | ac_clean_files=$ac_clean_files_save |
| 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3003 | $as_echo_n "checking for suffix of object files... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3004 | if ${ac_cv_objext+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3005 | $as_echo_n "(cached) " >&6 |
| 3006 | else |
| 3007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3008 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3009 | |
| 3010 | int |
| 3011 | main () |
| 3012 | { |
| 3013 | |
| 3014 | ; |
| 3015 | return 0; |
| 3016 | } |
| 3017 | _ACEOF |
| 3018 | rm -f conftest.o conftest.obj |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3019 | if { { ac_try="$ac_compile" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3020 | case "(($ac_try" in |
| 3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3022 | *) ac_try_echo=$ac_try;; |
| 3023 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3024 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3025 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3026 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3027 | ac_status=$? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3029 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3030 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3031 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3032 | case $ac_file in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3033 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3034 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3035 | break;; |
| 3036 | esac |
| 3037 | done |
| 3038 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3039 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3041 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3042 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3043 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 3044 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3045 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3046 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3047 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3048 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3050 | $as_echo "$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3051 | OBJEXT=$ac_cv_objext |
| 3052 | ac_objext=$OBJEXT |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3054 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3055 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3056 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3057 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3059 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3060 | |
| 3061 | int |
| 3062 | main () |
| 3063 | { |
| 3064 | #ifndef __GNUC__ |
| 3065 | choke me |
| 3066 | #endif |
| 3067 | |
| 3068 | ; |
| 3069 | return 0; |
| 3070 | } |
| 3071 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3072 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3073 | ac_compiler_gnu=yes |
| 3074 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3075 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3076 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3078 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3079 | |
| 3080 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3082 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3083 | if test $ac_compiler_gnu = yes; then |
| 3084 | GCC=yes |
| 3085 | else |
| 3086 | GCC= |
| 3087 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3088 | ac_test_CFLAGS=${CFLAGS+set} |
| 3089 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3091 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3092 | if ${ac_cv_prog_cc_g+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3093 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3094 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3095 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3096 | ac_c_werror_flag=yes |
| 3097 | ac_cv_prog_cc_g=no |
| 3098 | CFLAGS="-g" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3100 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3101 | |
| 3102 | int |
| 3103 | main () |
| 3104 | { |
| 3105 | |
| 3106 | ; |
| 3107 | return 0; |
| 3108 | } |
| 3109 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3110 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3111 | ac_cv_prog_cc_g=yes |
| 3112 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3113 | CFLAGS="" |
| 3114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3115 | /* end confdefs.h. */ |
| 3116 | |
| 3117 | int |
| 3118 | main () |
| 3119 | { |
| 3120 | |
| 3121 | ; |
| 3122 | return 0; |
| 3123 | } |
| 3124 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3125 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 3126 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3127 | else |
| 3128 | ac_c_werror_flag=$ac_save_c_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3129 | CFLAGS="-g" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3131 | /* end confdefs.h. */ |
| 3132 | |
| 3133 | int |
| 3134 | main () |
| 3135 | { |
| 3136 | |
| 3137 | ; |
| 3138 | return 0; |
| 3139 | } |
| 3140 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3141 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3142 | ac_cv_prog_cc_g=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3143 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3145 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3147 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3149 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3150 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3152 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3153 | if test "$ac_test_CFLAGS" = set; then |
| 3154 | CFLAGS=$ac_save_CFLAGS |
| 3155 | elif test $ac_cv_prog_cc_g = yes; then |
| 3156 | if test "$GCC" = yes; then |
| 3157 | CFLAGS="-g -O2" |
| 3158 | else |
| 3159 | CFLAGS="-g" |
| 3160 | fi |
| 3161 | else |
| 3162 | if test "$GCC" = yes; then |
| 3163 | CFLAGS="-O2" |
| 3164 | else |
| 3165 | CFLAGS= |
| 3166 | fi |
| 3167 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3169 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3170 | if ${ac_cv_prog_cc_c89+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3171 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3172 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3173 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3174 | ac_save_CC=$CC |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3176 | /* end confdefs.h. */ |
| 3177 | #include <stdarg.h> |
| 3178 | #include <stdio.h> |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3179 | struct stat; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3180 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3181 | struct buf { int x; }; |
| 3182 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3183 | static char *e (p, i) |
| 3184 | char **p; |
| 3185 | int i; |
| 3186 | { |
| 3187 | return p[i]; |
| 3188 | } |
| 3189 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3190 | { |
| 3191 | char *s; |
| 3192 | va_list v; |
| 3193 | va_start (v,p); |
| 3194 | s = g (p, va_arg (v,int)); |
| 3195 | va_end (v); |
| 3196 | return s; |
| 3197 | } |
| 3198 | |
| 3199 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3200 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3201 | These don't provoke an error unfortunately, instead are silently treated |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3202 | 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] | 3203 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3204 | 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] | 3205 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3206 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3207 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3208 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3209 | inside strings and character constants. */ |
| 3210 | #define FOO(x) 'x' |
| 3211 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3212 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3213 | int test (int i, double x); |
| 3214 | struct s1 {int (*f) (int a);}; |
| 3215 | struct s2 {int (*f) (double a);}; |
| 3216 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3217 | int argc; |
| 3218 | char **argv; |
| 3219 | int |
| 3220 | main () |
| 3221 | { |
| 3222 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3223 | ; |
| 3224 | return 0; |
| 3225 | } |
| 3226 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3227 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3228 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3229 | do |
| 3230 | CC="$ac_save_CC $ac_arg" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3231 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3232 | ac_cv_prog_cc_c89=$ac_arg |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3233 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3234 | rm -f core conftest.err conftest.$ac_objext |
| 3235 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3236 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3237 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3238 | CC=$ac_save_CC |
| 3239 | |
| 3240 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3241 | # AC_CACHE_VAL |
| 3242 | case "x$ac_cv_prog_cc_c89" in |
| 3243 | x) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3245 | $as_echo "none needed" >&6; } ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3246 | xno) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3248 | $as_echo "unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3249 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3250 | CC="$CC $ac_cv_prog_cc_c89" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3252 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3253 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3254 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3255 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3256 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3257 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3258 | ac_ext=c |
| 3259 | ac_cpp='$CPP $CPPFLAGS' |
| 3260 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3261 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3262 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3263 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3264 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3265 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3266 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3267 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3268 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3269 | if test -z "$CXX"; then |
| 3270 | if test -n "$CCC"; then |
| 3271 | CXX=$CCC |
| 3272 | else |
| 3273 | if test -n "$ac_tool_prefix"; then |
| 3274 | 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] | 3275 | do |
| 3276 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3277 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3279 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3280 | if ${ac_cv_prog_CXX+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3281 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3282 | else |
| 3283 | if test -n "$CXX"; then |
| 3284 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3285 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3287 | for as_dir in $PATH |
| 3288 | do |
| 3289 | IFS=$as_save_IFS |
| 3290 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3291 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3292 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3293 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3294 | $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] | 3295 | break 2 |
| 3296 | fi |
| 3297 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3298 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3299 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3300 | |
| 3301 | fi |
| 3302 | fi |
| 3303 | CXX=$ac_cv_prog_CXX |
| 3304 | if test -n "$CXX"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 3306 | $as_echo "$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3307 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3309 | $as_echo "no" >&6; } |
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 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3313 | test -n "$CXX" && break |
| 3314 | done |
| 3315 | fi |
| 3316 | if test -z "$CXX"; then |
| 3317 | ac_ct_CXX=$CXX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3318 | 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] | 3319 | do |
| 3320 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3321 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3323 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3324 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3325 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3326 | else |
| 3327 | if test -n "$ac_ct_CXX"; then |
| 3328 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3329 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3331 | for as_dir in $PATH |
| 3332 | do |
| 3333 | IFS=$as_save_IFS |
| 3334 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3335 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3337 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3338 | $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] | 3339 | break 2 |
| 3340 | fi |
| 3341 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3342 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3343 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3344 | |
| 3345 | fi |
| 3346 | fi |
| 3347 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3348 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 3350 | $as_echo "$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3351 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3353 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3354 | fi |
| 3355 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3356 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3357 | test -n "$ac_ct_CXX" && break |
| 3358 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3359 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3360 | if test "x$ac_ct_CXX" = x; then |
| 3361 | CXX="g++" |
| 3362 | else |
| 3363 | case $cross_compiling:$ac_tool_warned in |
| 3364 | yes:) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3366 | $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] | 3367 | ac_tool_warned=yes ;; |
| 3368 | esac |
| 3369 | CXX=$ac_ct_CXX |
| 3370 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3371 | fi |
| 3372 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3373 | fi |
| 3374 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3375 | # Provide some information about the compiler. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3376 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 3377 | set X $ac_compile |
| 3378 | ac_compiler=$2 |
| 3379 | for ac_option in --version -v -V -qversion; do |
| 3380 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3381 | case "(($ac_try" in |
| 3382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3383 | *) ac_try_echo=$ac_try;; |
| 3384 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3385 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3386 | $as_echo "$ac_try_echo"; } >&5 |
| 3387 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3388 | ac_status=$? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3389 | if test -s conftest.err; then |
| 3390 | sed '10a\ |
| 3391 | ... rest of stderr output deleted ... |
| 3392 | 10q' conftest.err >conftest.er1 |
| 3393 | cat conftest.er1 >&5 |
| 3394 | fi |
| 3395 | rm -f conftest.er1 conftest.err |
| 3396 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3397 | test $ac_status = 0; } |
| 3398 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3399 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 3401 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3402 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3403 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3404 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3406 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3407 | |
| 3408 | int |
| 3409 | main () |
| 3410 | { |
| 3411 | #ifndef __GNUC__ |
| 3412 | choke me |
| 3413 | #endif |
| 3414 | |
| 3415 | ; |
| 3416 | return 0; |
| 3417 | } |
| 3418 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3419 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3420 | ac_compiler_gnu=yes |
| 3421 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3422 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3423 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3425 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3426 | |
| 3427 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3429 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3430 | if test $ac_compiler_gnu = yes; then |
| 3431 | GXX=yes |
| 3432 | else |
| 3433 | GXX= |
| 3434 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3435 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3436 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 3438 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3439 | if ${ac_cv_prog_cxx_g+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3440 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3441 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3442 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3443 | ac_cxx_werror_flag=yes |
| 3444 | ac_cv_prog_cxx_g=no |
| 3445 | CXXFLAGS="-g" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3447 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3448 | |
| 3449 | int |
| 3450 | main () |
| 3451 | { |
| 3452 | |
| 3453 | ; |
| 3454 | return 0; |
| 3455 | } |
| 3456 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3457 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3458 | ac_cv_prog_cxx_g=yes |
| 3459 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3460 | CXXFLAGS="" |
| 3461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3462 | /* end confdefs.h. */ |
| 3463 | |
| 3464 | int |
| 3465 | main () |
| 3466 | { |
| 3467 | |
| 3468 | ; |
| 3469 | return 0; |
| 3470 | } |
| 3471 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3472 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 3473 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3474 | else |
| 3475 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3476 | CXXFLAGS="-g" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3478 | /* end confdefs.h. */ |
| 3479 | |
| 3480 | int |
| 3481 | main () |
| 3482 | { |
| 3483 | |
| 3484 | ; |
| 3485 | return 0; |
| 3486 | } |
| 3487 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3488 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3489 | ac_cv_prog_cxx_g=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3490 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3492 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3494 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3496 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3497 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 3499 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3500 | if test "$ac_test_CXXFLAGS" = set; then |
| 3501 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3502 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3503 | if test "$GXX" = yes; then |
| 3504 | CXXFLAGS="-g -O2" |
| 3505 | else |
| 3506 | CXXFLAGS="-g" |
| 3507 | fi |
| 3508 | else |
| 3509 | if test "$GXX" = yes; then |
| 3510 | CXXFLAGS="-O2" |
| 3511 | else |
| 3512 | CXXFLAGS= |
| 3513 | fi |
| 3514 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3515 | ac_ext=c |
| 3516 | ac_cpp='$CPP $CPPFLAGS' |
| 3517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3520 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3521 | ac_ext=c |
| 3522 | ac_cpp='$CPP $CPPFLAGS' |
| 3523 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3524 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3525 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3526 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3527 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3528 | if test -z "$CROSS_COMPILE"; then |
| 3529 | CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'` |
| 3530 | fi |
| 3531 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3532 | if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3533 | |
| 3534 | if test "$LD" = ""; then LD="$CC"; fi |
| 3535 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 3536 | if test "$LDOUT" = ""; then LDOUT="-o "; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3537 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3538 | if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3539 | |
| 3540 | if test "$OBJEXT" = ""; then OBJEXT='o'; fi |
| 3541 | |
| 3542 | if test "$LIBEXT" = ""; then LIBEXT='a'; fi |
| 3543 | |
| 3544 | if test "$LIBEXT2" = ""; then LIBEXT2=""; fi |
| 3545 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 3546 | if test "$CC_OUT" = ""; then CC_OUT="-o "; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3547 | |
| 3548 | if test "$CC_INC" = ""; then CC_INC="-I"; fi |
| 3549 | |
| 3550 | if test "$CC_DEF" = ""; then CC_DEF="-D"; fi |
| 3551 | |
| 3552 | if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi |
| 3553 | |
| 3554 | if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi |
| 3555 | |
| 3556 | |
| 3557 | |
| 3558 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3559 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3560 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3561 | |
| 3562 | case $host in |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3563 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3564 | if pwd -W 2&> /dev/null; then |
| 3565 | ac_pjdir=`pwd -W` |
| 3566 | else |
| 3567 | # We're probably cross-compiling mingw on Linux |
| 3568 | ac_pjdir=`pwd` |
| 3569 | fi |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3570 | ;; |
| 3571 | *) |
| 3572 | ac_pjdir=`pwd` |
| 3573 | ;; |
| 3574 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3575 | |
| 3576 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3577 | case $target in |
| 3578 | *mingw* | *cygw* | *win32* | *w32* ) |
| 3579 | ac_shlib_suffix=dll |
| 3580 | ;; |
| 3581 | *darwin*) |
| 3582 | ac_shlib_suffix=dylib |
| 3583 | ;; |
| 3584 | *) |
| 3585 | ac_shlib_suffix=so |
| 3586 | ;; |
| 3587 | esac |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 3588 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3589 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 3590 | if test "$build" = "$host"; then |
| 3591 | ac_cross_compile= |
| 3592 | else |
| 3593 | ac_cross_compile=${host_orig}- |
| 3594 | fi |
| 3595 | |
| 3596 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 3598 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3599 | if ${ac_cv_lib_pthread_pthread_create+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3600 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3601 | else |
| 3602 | ac_check_lib_save_LIBS=$LIBS |
| 3603 | LIBS="-lpthread $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3605 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3606 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3607 | /* Override any GCC internal prototype to avoid an error. |
| 3608 | Use char because int might match the return type of a GCC |
| 3609 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3610 | #ifdef __cplusplus |
| 3611 | extern "C" |
| 3612 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3613 | char pthread_create (); |
| 3614 | int |
| 3615 | main () |
| 3616 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3617 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3618 | ; |
| 3619 | return 0; |
| 3620 | } |
| 3621 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3622 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3623 | ac_cv_lib_pthread_pthread_create=yes |
| 3624 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3625 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3626 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3627 | rm -f core conftest.err conftest.$ac_objext \ |
| 3628 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3629 | LIBS=$ac_check_lib_save_LIBS |
| 3630 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3632 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3633 | if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3634 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3635 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3636 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3637 | |
| 3638 | LIBS="-lpthread $LIBS" |
| 3639 | |
| 3640 | fi |
| 3641 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5 |
| 3643 | $as_echo_n "checking for puts in -lwsock32... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3644 | if ${ac_cv_lib_wsock32_puts+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3645 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3646 | else |
| 3647 | ac_check_lib_save_LIBS=$LIBS |
| 3648 | LIBS="-lwsock32 $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3650 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3651 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3652 | /* Override any GCC internal prototype to avoid an error. |
| 3653 | Use char because int might match the return type of a GCC |
| 3654 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3655 | #ifdef __cplusplus |
| 3656 | extern "C" |
| 3657 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3658 | char puts (); |
| 3659 | int |
| 3660 | main () |
| 3661 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3662 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3663 | ; |
| 3664 | return 0; |
| 3665 | } |
| 3666 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3667 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3668 | ac_cv_lib_wsock32_puts=yes |
| 3669 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3670 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3671 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3672 | rm -f core conftest.err conftest.$ac_objext \ |
| 3673 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3674 | LIBS=$ac_check_lib_save_LIBS |
| 3675 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3677 | $as_echo "$ac_cv_lib_wsock32_puts" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3678 | if test "x$ac_cv_lib_wsock32_puts" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3679 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3680 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3681 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3682 | |
| 3683 | LIBS="-lwsock32 $LIBS" |
| 3684 | |
| 3685 | fi |
| 3686 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5 |
| 3688 | $as_echo_n "checking for puts in -lws2_32... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3689 | if ${ac_cv_lib_ws2_32_puts+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3690 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3691 | else |
| 3692 | ac_check_lib_save_LIBS=$LIBS |
| 3693 | LIBS="-lws2_32 $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3695 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3696 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3697 | /* Override any GCC internal prototype to avoid an error. |
| 3698 | Use char because int might match the return type of a GCC |
| 3699 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3700 | #ifdef __cplusplus |
| 3701 | extern "C" |
| 3702 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3703 | char puts (); |
| 3704 | int |
| 3705 | main () |
| 3706 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3707 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3708 | ; |
| 3709 | return 0; |
| 3710 | } |
| 3711 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3712 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3713 | ac_cv_lib_ws2_32_puts=yes |
| 3714 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3715 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3716 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3717 | rm -f core conftest.err conftest.$ac_objext \ |
| 3718 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3719 | LIBS=$ac_check_lib_save_LIBS |
| 3720 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3722 | $as_echo "$ac_cv_lib_ws2_32_puts" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3723 | if test "x$ac_cv_lib_ws2_32_puts" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3724 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3725 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3726 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3727 | |
| 3728 | LIBS="-lws2_32 $LIBS" |
| 3729 | |
| 3730 | fi |
| 3731 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5 |
| 3733 | $as_echo_n "checking for puts in -lole32... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3734 | if ${ac_cv_lib_ole32_puts+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3735 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3736 | else |
| 3737 | ac_check_lib_save_LIBS=$LIBS |
| 3738 | LIBS="-lole32 $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3740 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3741 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3742 | /* Override any GCC internal prototype to avoid an error. |
| 3743 | Use char because int might match the return type of a GCC |
| 3744 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3745 | #ifdef __cplusplus |
| 3746 | extern "C" |
| 3747 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3748 | char puts (); |
| 3749 | int |
| 3750 | main () |
| 3751 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3752 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3753 | ; |
| 3754 | return 0; |
| 3755 | } |
| 3756 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3757 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3758 | ac_cv_lib_ole32_puts=yes |
| 3759 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3760 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3761 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3762 | rm -f core conftest.err conftest.$ac_objext \ |
| 3763 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3764 | LIBS=$ac_check_lib_save_LIBS |
| 3765 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5 |
| 3767 | $as_echo "$ac_cv_lib_ole32_puts" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3768 | if test "x$ac_cv_lib_ole32_puts" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3769 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3770 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3771 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3772 | |
| 3773 | LIBS="-lole32 $LIBS" |
| 3774 | |
| 3775 | fi |
| 3776 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5 |
| 3778 | $as_echo_n "checking for puts in -lwinmm... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3779 | if ${ac_cv_lib_winmm_puts+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3780 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3781 | else |
| 3782 | ac_check_lib_save_LIBS=$LIBS |
| 3783 | LIBS="-lwinmm $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3785 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3786 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3787 | /* Override any GCC internal prototype to avoid an error. |
| 3788 | Use char because int might match the return type of a GCC |
| 3789 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3790 | #ifdef __cplusplus |
| 3791 | extern "C" |
| 3792 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3793 | char puts (); |
| 3794 | int |
| 3795 | main () |
| 3796 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3797 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3798 | ; |
| 3799 | return 0; |
| 3800 | } |
| 3801 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3802 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3803 | ac_cv_lib_winmm_puts=yes |
| 3804 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3805 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3806 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3807 | rm -f core conftest.err conftest.$ac_objext \ |
| 3808 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3809 | LIBS=$ac_check_lib_save_LIBS |
| 3810 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5 |
| 3812 | $as_echo "$ac_cv_lib_winmm_puts" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3813 | if test "x$ac_cv_lib_winmm_puts" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3814 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3815 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3816 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3817 | |
| 3818 | LIBS="-lwinmm $LIBS" |
| 3819 | |
| 3820 | fi |
| 3821 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5 |
| 3823 | $as_echo_n "checking for puts in -lsocket... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3824 | if ${ac_cv_lib_socket_puts+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3825 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3826 | else |
| 3827 | ac_check_lib_save_LIBS=$LIBS |
| 3828 | LIBS="-lsocket $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3830 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3831 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3832 | /* Override any GCC internal prototype to avoid an error. |
| 3833 | Use char because int might match the return type of a GCC |
| 3834 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3835 | #ifdef __cplusplus |
| 3836 | extern "C" |
| 3837 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3838 | char puts (); |
| 3839 | int |
| 3840 | main () |
| 3841 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3842 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3843 | ; |
| 3844 | return 0; |
| 3845 | } |
| 3846 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3847 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3848 | ac_cv_lib_socket_puts=yes |
| 3849 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3850 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3851 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3852 | rm -f core conftest.err conftest.$ac_objext \ |
| 3853 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3854 | LIBS=$ac_check_lib_save_LIBS |
| 3855 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5 |
| 3857 | $as_echo "$ac_cv_lib_socket_puts" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3858 | if test "x$ac_cv_lib_socket_puts" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3859 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3860 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3861 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3862 | |
| 3863 | LIBS="-lsocket $LIBS" |
| 3864 | |
| 3865 | fi |
| 3866 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5 |
| 3868 | $as_echo_n "checking for puts in -lrt... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3869 | if ${ac_cv_lib_rt_puts+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3870 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3871 | else |
| 3872 | ac_check_lib_save_LIBS=$LIBS |
| 3873 | LIBS="-lrt $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3875 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3876 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3877 | /* Override any GCC internal prototype to avoid an error. |
| 3878 | Use char because int might match the return type of a GCC |
| 3879 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3880 | #ifdef __cplusplus |
| 3881 | extern "C" |
| 3882 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3883 | char puts (); |
| 3884 | int |
| 3885 | main () |
| 3886 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3887 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3888 | ; |
| 3889 | return 0; |
| 3890 | } |
| 3891 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3892 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3893 | ac_cv_lib_rt_puts=yes |
| 3894 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3895 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3896 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3897 | rm -f core conftest.err conftest.$ac_objext \ |
| 3898 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3899 | LIBS=$ac_check_lib_save_LIBS |
| 3900 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5 |
| 3902 | $as_echo "$ac_cv_lib_rt_puts" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3903 | if test "x$ac_cv_lib_rt_puts" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3904 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3905 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3906 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3907 | |
| 3908 | LIBS="-lrt $LIBS" |
| 3909 | |
| 3910 | fi |
| 3911 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5 |
| 3913 | $as_echo_n "checking for puts in -lnsl... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3914 | if ${ac_cv_lib_nsl_puts+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3915 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3916 | else |
| 3917 | ac_check_lib_save_LIBS=$LIBS |
| 3918 | LIBS="-lnsl $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3920 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3921 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3922 | /* Override any GCC internal prototype to avoid an error. |
| 3923 | Use char because int might match the return type of a GCC |
| 3924 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3925 | #ifdef __cplusplus |
| 3926 | extern "C" |
| 3927 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3928 | char puts (); |
| 3929 | int |
| 3930 | main () |
| 3931 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3932 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3933 | ; |
| 3934 | return 0; |
| 3935 | } |
| 3936 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3937 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3938 | ac_cv_lib_nsl_puts=yes |
| 3939 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3940 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3941 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3942 | rm -f core conftest.err conftest.$ac_objext \ |
| 3943 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3944 | LIBS=$ac_check_lib_save_LIBS |
| 3945 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5 |
| 3947 | $as_echo "$ac_cv_lib_nsl_puts" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3948 | if test "x$ac_cv_lib_nsl_puts" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3949 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3950 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3951 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3952 | |
| 3953 | LIBS="-lnsl $LIBS" |
| 3954 | |
| 3955 | fi |
| 3956 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3958 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3959 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3960 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3961 | else |
| 3962 | ac_check_lib_save_LIBS=$LIBS |
| 3963 | LIBS="-luuid $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3965 | /* end confdefs.h. */ |
| 3966 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3967 | /* Override any GCC internal prototype to avoid an error. |
| 3968 | Use char because int might match the return type of a GCC |
| 3969 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3970 | #ifdef __cplusplus |
| 3971 | extern "C" |
| 3972 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3973 | char uuid_generate (); |
| 3974 | int |
| 3975 | main () |
| 3976 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3977 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3978 | ; |
| 3979 | return 0; |
| 3980 | } |
| 3981 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3982 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3983 | ac_cv_lib_uuid_uuid_generate=yes |
| 3984 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3985 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3986 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3987 | rm -f core conftest.err conftest.$ac_objext \ |
| 3988 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3989 | LIBS=$ac_check_lib_save_LIBS |
| 3990 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3992 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 3993 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3994 | cat >>confdefs.h <<_ACEOF |
| 3995 | #define HAVE_LIBUUID 1 |
| 3996 | _ACEOF |
| 3997 | |
| 3998 | LIBS="-luuid $LIBS" |
| 3999 | |
| 4000 | fi |
| 4001 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 4003 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4004 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4005 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4006 | else |
| 4007 | ac_check_lib_save_LIBS=$LIBS |
| 4008 | LIBS="-luuid $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4010 | /* end confdefs.h. */ |
| 4011 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4012 | /* Override any GCC internal prototype to avoid an error. |
| 4013 | Use char because int might match the return type of a GCC |
| 4014 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4015 | #ifdef __cplusplus |
| 4016 | extern "C" |
| 4017 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4018 | char uuid_generate (); |
| 4019 | int |
| 4020 | main () |
| 4021 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4022 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4023 | ; |
| 4024 | return 0; |
| 4025 | } |
| 4026 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4027 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4028 | ac_cv_lib_uuid_uuid_generate=yes |
| 4029 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4030 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4031 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4032 | rm -f core conftest.err conftest.$ac_objext \ |
| 4033 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4034 | LIBS=$ac_check_lib_save_LIBS |
| 4035 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 4037 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4038 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4039 | ac_has_uuid_lib=1 |
| 4040 | fi |
| 4041 | |
| 4042 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 4044 | $as_echo "Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4045 | cat >>confdefs.h <<_ACEOF |
| 4046 | #define PJ_M_NAME "$target_cpu" |
| 4047 | _ACEOF |
| 4048 | |
| 4049 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5 |
| 4051 | $as_echo_n "checking memory alignment... " >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4052 | case $target in |
Benny Prijono | b18e950 | 2010-05-19 05:51:38 +0000 | [diff] [blame] | 4053 | sparc64-* | ia64-* | x86_64-* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4054 | $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4055 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5 |
| 4057 | $as_echo "8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4058 | ;; |
| 4059 | * ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4060 | $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4061 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5 |
| 4063 | $as_echo "4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 4064 | ;; |
| 4065 | esac |
| 4066 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4067 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4068 | ac_ext=c |
| 4069 | ac_cpp='$CPP $CPPFLAGS' |
| 4070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4074 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4075 | # On Suns, sometimes $CPP names a directory. |
| 4076 | if test -n "$CPP" && test -d "$CPP"; then |
| 4077 | CPP= |
| 4078 | fi |
| 4079 | if test -z "$CPP"; then |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4080 | if ${ac_cv_prog_CPP+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4081 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4082 | else |
| 4083 | # Double quotes because CPP needs to be expanded |
| 4084 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4085 | do |
| 4086 | ac_preproc_ok=false |
| 4087 | for ac_c_preproc_warn_flag in '' yes |
| 4088 | do |
| 4089 | # Use a header file that comes with gcc, so configuring glibc |
| 4090 | # with a fresh cross-compiler works. |
| 4091 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4092 | # <limits.h> exists even on freestanding compilers. |
| 4093 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4094 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4096 | /* end confdefs.h. */ |
| 4097 | #ifdef __STDC__ |
| 4098 | # include <limits.h> |
| 4099 | #else |
| 4100 | # include <assert.h> |
| 4101 | #endif |
| 4102 | Syntax error |
| 4103 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4104 | if ac_fn_c_try_cpp "$LINENO"; then : |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4105 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4106 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4107 | # Broken: fails on valid input. |
| 4108 | continue |
| 4109 | fi |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4110 | rm -f conftest.err conftest.i conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4111 | |
| 4112 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4113 | # can be detected and how. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4115 | /* end confdefs.h. */ |
| 4116 | #include <ac_nonexistent.h> |
| 4117 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4118 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4119 | # Broken: success on invalid input. |
| 4120 | continue |
| 4121 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4122 | # Passes both tests. |
| 4123 | ac_preproc_ok=: |
| 4124 | break |
| 4125 | fi |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4126 | rm -f conftest.err conftest.i conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4127 | |
| 4128 | done |
| 4129 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4130 | rm -f conftest.i conftest.err conftest.$ac_ext |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4131 | if $ac_preproc_ok; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4132 | break |
| 4133 | fi |
| 4134 | |
| 4135 | done |
| 4136 | ac_cv_prog_CPP=$CPP |
| 4137 | |
| 4138 | fi |
| 4139 | CPP=$ac_cv_prog_CPP |
| 4140 | else |
| 4141 | ac_cv_prog_CPP=$CPP |
| 4142 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4144 | $as_echo "$CPP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4145 | ac_preproc_ok=false |
| 4146 | for ac_c_preproc_warn_flag in '' yes |
| 4147 | do |
| 4148 | # Use a header file that comes with gcc, so configuring glibc |
| 4149 | # with a fresh cross-compiler works. |
| 4150 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4151 | # <limits.h> exists even on freestanding compilers. |
| 4152 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4153 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4155 | /* end confdefs.h. */ |
| 4156 | #ifdef __STDC__ |
| 4157 | # include <limits.h> |
| 4158 | #else |
| 4159 | # include <assert.h> |
| 4160 | #endif |
| 4161 | Syntax error |
| 4162 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4163 | if ac_fn_c_try_cpp "$LINENO"; then : |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4164 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4165 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4166 | # Broken: fails on valid input. |
| 4167 | continue |
| 4168 | fi |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4169 | rm -f conftest.err conftest.i conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4170 | |
| 4171 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4172 | # can be detected and how. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4174 | /* end confdefs.h. */ |
| 4175 | #include <ac_nonexistent.h> |
| 4176 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4177 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4178 | # Broken: success on invalid input. |
| 4179 | continue |
| 4180 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4181 | # Passes both tests. |
| 4182 | ac_preproc_ok=: |
| 4183 | break |
| 4184 | fi |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4185 | rm -f conftest.err conftest.i conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4186 | |
| 4187 | done |
| 4188 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4189 | rm -f conftest.i conftest.err conftest.$ac_ext |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4190 | if $ac_preproc_ok; then : |
| 4191 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4192 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4193 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4194 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4195 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4196 | See \`config.log' for more details" "$LINENO" 5; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4197 | fi |
| 4198 | |
| 4199 | ac_ext=c |
| 4200 | ac_cpp='$CPP $CPPFLAGS' |
| 4201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4204 | |
| 4205 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4207 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4208 | if ${ac_cv_path_GREP+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4209 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4210 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4211 | if test -z "$GREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4212 | ac_path_GREP_found=false |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4213 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4215 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4216 | do |
| 4217 | IFS=$as_save_IFS |
| 4218 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4219 | for ac_prog in grep ggrep; do |
| 4220 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4221 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4222 | as_fn_executable_p "$ac_path_GREP" || continue |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4223 | # 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] | 4224 | # Check for GNU $ac_path_GREP |
| 4225 | case `"$ac_path_GREP" --version 2>&1` in |
| 4226 | *GNU*) |
| 4227 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4228 | *) |
| 4229 | ac_count=0 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4230 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4231 | while : |
| 4232 | do |
| 4233 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4234 | mv "conftest.tmp" "conftest.in" |
| 4235 | cp "conftest.in" "conftest.nl" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4236 | $as_echo 'GREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4237 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4238 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4239 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4240 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4241 | # Best one so far, save it but keep looking for a better one |
| 4242 | ac_cv_path_GREP="$ac_path_GREP" |
| 4243 | ac_path_GREP_max=$ac_count |
| 4244 | fi |
| 4245 | # 10*(2^10) chars as input seems more than enough |
| 4246 | test $ac_count -gt 10 && break |
| 4247 | done |
| 4248 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4249 | esac |
| 4250 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4251 | $ac_path_GREP_found && break 3 |
| 4252 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4253 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4254 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4255 | IFS=$as_save_IFS |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4256 | if test -z "$ac_cv_path_GREP"; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4257 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4258 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4259 | else |
| 4260 | ac_cv_path_GREP=$GREP |
| 4261 | fi |
| 4262 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4263 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4265 | $as_echo "$ac_cv_path_GREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4266 | GREP="$ac_cv_path_GREP" |
| 4267 | |
| 4268 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4270 | $as_echo_n "checking for egrep... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4271 | if ${ac_cv_path_EGREP+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4272 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4273 | else |
| 4274 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4275 | then ac_cv_path_EGREP="$GREP -E" |
| 4276 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4277 | if test -z "$EGREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4278 | ac_path_EGREP_found=false |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4279 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4281 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4282 | do |
| 4283 | IFS=$as_save_IFS |
| 4284 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4285 | for ac_prog in egrep; do |
| 4286 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4287 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4288 | as_fn_executable_p "$ac_path_EGREP" || continue |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4289 | # 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] | 4290 | # Check for GNU $ac_path_EGREP |
| 4291 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4292 | *GNU*) |
| 4293 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4294 | *) |
| 4295 | ac_count=0 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4296 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4297 | while : |
| 4298 | do |
| 4299 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4300 | mv "conftest.tmp" "conftest.in" |
| 4301 | cp "conftest.in" "conftest.nl" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4302 | $as_echo 'EGREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4303 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4304 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4305 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4306 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4307 | # Best one so far, save it but keep looking for a better one |
| 4308 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4309 | ac_path_EGREP_max=$ac_count |
| 4310 | fi |
| 4311 | # 10*(2^10) chars as input seems more than enough |
| 4312 | test $ac_count -gt 10 && break |
| 4313 | done |
| 4314 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4315 | esac |
| 4316 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4317 | $ac_path_EGREP_found && break 3 |
| 4318 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4319 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4320 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4321 | IFS=$as_save_IFS |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4322 | if test -z "$ac_cv_path_EGREP"; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4323 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4324 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4325 | else |
| 4326 | ac_cv_path_EGREP=$EGREP |
| 4327 | fi |
| 4328 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4329 | fi |
| 4330 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4332 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4333 | EGREP="$ac_cv_path_EGREP" |
| 4334 | |
| 4335 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4337 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4338 | if ${ac_cv_header_stdc+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4339 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4340 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4342 | /* end confdefs.h. */ |
| 4343 | #include <stdlib.h> |
| 4344 | #include <stdarg.h> |
| 4345 | #include <string.h> |
| 4346 | #include <float.h> |
| 4347 | |
| 4348 | int |
| 4349 | main () |
| 4350 | { |
| 4351 | |
| 4352 | ; |
| 4353 | return 0; |
| 4354 | } |
| 4355 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4356 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4357 | ac_cv_header_stdc=yes |
| 4358 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4359 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4360 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4362 | |
| 4363 | if test $ac_cv_header_stdc = yes; then |
| 4364 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4366 | /* end confdefs.h. */ |
| 4367 | #include <string.h> |
| 4368 | |
| 4369 | _ACEOF |
| 4370 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4371 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4372 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4373 | else |
| 4374 | ac_cv_header_stdc=no |
| 4375 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4376 | rm -f conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4377 | |
| 4378 | fi |
| 4379 | |
| 4380 | if test $ac_cv_header_stdc = yes; then |
| 4381 | # 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] | 4382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4383 | /* end confdefs.h. */ |
| 4384 | #include <stdlib.h> |
| 4385 | |
| 4386 | _ACEOF |
| 4387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4388 | $EGREP "free" >/dev/null 2>&1; then : |
| 4389 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4390 | else |
| 4391 | ac_cv_header_stdc=no |
| 4392 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4393 | rm -f conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4394 | |
| 4395 | fi |
| 4396 | |
| 4397 | if test $ac_cv_header_stdc = yes; then |
| 4398 | # /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] | 4399 | if test "$cross_compiling" = yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4400 | : |
| 4401 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4403 | /* end confdefs.h. */ |
| 4404 | #include <ctype.h> |
| 4405 | #include <stdlib.h> |
| 4406 | #if ((' ' & 0x0FF) == 0x020) |
| 4407 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4408 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4409 | #else |
| 4410 | # define ISLOWER(c) \ |
| 4411 | (('a' <= (c) && (c) <= 'i') \ |
| 4412 | || ('j' <= (c) && (c) <= 'r') \ |
| 4413 | || ('s' <= (c) && (c) <= 'z')) |
| 4414 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4415 | #endif |
| 4416 | |
| 4417 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4418 | int |
| 4419 | main () |
| 4420 | { |
| 4421 | int i; |
| 4422 | for (i = 0; i < 256; i++) |
| 4423 | if (XOR (islower (i), ISLOWER (i)) |
| 4424 | || toupper (i) != TOUPPER (i)) |
| 4425 | return 2; |
| 4426 | return 0; |
| 4427 | } |
| 4428 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4429 | if ac_fn_c_try_run "$LINENO"; then : |
| 4430 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4431 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4432 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4433 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4434 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4435 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4436 | fi |
| 4437 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4438 | fi |
| 4439 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4441 | $as_echo "$ac_cv_header_stdc" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4442 | if test $ac_cv_header_stdc = yes; then |
| 4443 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4444 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4445 | |
| 4446 | fi |
| 4447 | |
| 4448 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4449 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4450 | inttypes.h stdint.h unistd.h |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4451 | do : |
| 4452 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4453 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4454 | " |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4455 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4456 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4457 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4458 | _ACEOF |
| 4459 | |
| 4460 | fi |
| 4461 | |
| 4462 | done |
| 4463 | |
| 4464 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 4466 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4467 | if ${ac_cv_c_bigendian+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4468 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4469 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4470 | ac_cv_c_bigendian=unknown |
| 4471 | # See if we're dealing with a universal compiler. |
| 4472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4473 | /* end confdefs.h. */ |
| 4474 | #ifndef __APPLE_CC__ |
| 4475 | not a universal capable compiler |
| 4476 | #endif |
| 4477 | typedef int dummy; |
| 4478 | |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4479 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4480 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4481 | |
| 4482 | # Check for potential -arch flags. It is not universal unless |
| 4483 | # there are at least two -arch flags with different values. |
| 4484 | ac_arch= |
| 4485 | ac_prev= |
| 4486 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 4487 | if test -n "$ac_prev"; then |
| 4488 | case $ac_word in |
| 4489 | i?86 | x86_64 | ppc | ppc64) |
| 4490 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 4491 | ac_arch=$ac_word |
| 4492 | else |
| 4493 | ac_cv_c_bigendian=universal |
| 4494 | break |
| 4495 | fi |
| 4496 | ;; |
| 4497 | esac |
| 4498 | ac_prev= |
| 4499 | elif test "x$ac_word" = "x-arch"; then |
| 4500 | ac_prev=arch |
| 4501 | fi |
| 4502 | done |
| 4503 | fi |
| 4504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4505 | if test $ac_cv_c_bigendian = unknown; then |
| 4506 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4508 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4509 | #include <sys/types.h> |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4510 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4511 | |
| 4512 | int |
| 4513 | main () |
| 4514 | { |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4515 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 4516 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 4517 | && LITTLE_ENDIAN) |
| 4518 | bogus endian macros |
| 4519 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4520 | |
| 4521 | ; |
| 4522 | return 0; |
| 4523 | } |
| 4524 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4525 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4526 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4528 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4529 | #include <sys/types.h> |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4530 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4531 | |
| 4532 | int |
| 4533 | main () |
| 4534 | { |
| 4535 | #if BYTE_ORDER != BIG_ENDIAN |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4536 | not big endian |
| 4537 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4538 | |
| 4539 | ; |
| 4540 | return 0; |
| 4541 | } |
| 4542 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4543 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4544 | ac_cv_c_bigendian=yes |
| 4545 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4546 | ac_cv_c_bigendian=no |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4547 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4549 | fi |
| 4550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4551 | fi |
| 4552 | if test $ac_cv_c_bigendian = unknown; then |
| 4553 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 4554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4555 | /* end confdefs.h. */ |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4556 | #include <limits.h> |
| 4557 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4558 | int |
| 4559 | main () |
| 4560 | { |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4561 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 4562 | bogus endian macros |
| 4563 | #endif |
| 4564 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4565 | ; |
| 4566 | return 0; |
| 4567 | } |
| 4568 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4569 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4570 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 4571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4572 | /* end confdefs.h. */ |
| 4573 | #include <limits.h> |
| 4574 | |
| 4575 | int |
| 4576 | main () |
| 4577 | { |
| 4578 | #ifndef _BIG_ENDIAN |
| 4579 | not big endian |
| 4580 | #endif |
| 4581 | |
| 4582 | ; |
| 4583 | return 0; |
| 4584 | } |
| 4585 | _ACEOF |
| 4586 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4587 | ac_cv_c_bigendian=yes |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4588 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4589 | ac_cv_c_bigendian=no |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 4590 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4592 | fi |
| 4593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4594 | fi |
| 4595 | if test $ac_cv_c_bigendian = unknown; then |
| 4596 | # Compile a test program. |
| 4597 | if test "$cross_compiling" = yes; then : |
| 4598 | # Try to guess by grepping values from an object file. |
| 4599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4600 | /* end confdefs.h. */ |
| 4601 | short int ascii_mm[] = |
| 4602 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4603 | short int ascii_ii[] = |
| 4604 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4605 | int use_ascii (int i) { |
| 4606 | return ascii_mm[i] + ascii_ii[i]; |
| 4607 | } |
| 4608 | short int ebcdic_ii[] = |
| 4609 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4610 | short int ebcdic_mm[] = |
| 4611 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4612 | int use_ebcdic (int i) { |
| 4613 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4614 | } |
| 4615 | extern int foo; |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4616 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4617 | int |
| 4618 | main () |
| 4619 | { |
| 4620 | return use_ascii (foo) == use_ebcdic (foo); |
| 4621 | ; |
| 4622 | return 0; |
| 4623 | } |
| 4624 | _ACEOF |
| 4625 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4626 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4627 | ac_cv_c_bigendian=yes |
| 4628 | fi |
| 4629 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4630 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4631 | ac_cv_c_bigendian=no |
| 4632 | else |
| 4633 | # finding both strings is unlikely to happen, but who knows? |
| 4634 | ac_cv_c_bigendian=unknown |
| 4635 | fi |
| 4636 | fi |
| 4637 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4639 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4641 | /* end confdefs.h. */ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4642 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4643 | int |
| 4644 | main () |
| 4645 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4646 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4647 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4648 | union |
| 4649 | { |
| 4650 | long int l; |
| 4651 | char c[sizeof (long int)]; |
| 4652 | } u; |
| 4653 | u.l = 1; |
| 4654 | return u.c[sizeof (long int) - 1] == 1; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4655 | |
| 4656 | ; |
| 4657 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4658 | } |
| 4659 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4660 | if ac_fn_c_try_run "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4661 | ac_cv_c_bigendian=no |
| 4662 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4663 | ac_cv_c_bigendian=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4664 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4665 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4666 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4667 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4668 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4669 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4670 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4672 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 4673 | case $ac_cv_c_bigendian in #( |
| 4674 | yes) |
| 4675 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 4676 | ;; #( |
| 4677 | no) |
| 4678 | ;; #( |
| 4679 | universal) |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4680 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4681 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4682 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4683 | ;; #( |
| 4684 | *) |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 4685 | as_fn_error $? "unknown endianness |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4686 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4687 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4688 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4689 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4690 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 4691 | CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0" |
| 4692 | else |
| 4693 | CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1" |
| 4694 | fi |
| 4695 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4696 | case $target in |
Sauw Ming | 6d3b427 | 2012-07-03 07:46:49 +0000 | [diff] [blame] | 4697 | *android*) |
| 4698 | $as_echo "#define PJ_ANDROID 1" >>confdefs.h |
| 4699 | |
| 4700 | ;; |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4701 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4702 | $as_echo "#define PJ_WIN32 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4703 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4704 | $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4705 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4706 | $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4707 | |
| 4708 | ;; |
| 4709 | *darwin*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4710 | $as_echo "#define PJ_DARWINOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4711 | |
| 4712 | ;; |
| 4713 | *linux*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4714 | $as_echo "#define PJ_LINUX 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4715 | |
| 4716 | ;; |
| 4717 | *rtems*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4718 | $as_echo "#define PJ_RTEMS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4719 | |
| 4720 | ;; |
| 4721 | *sunos* | *solaris* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4722 | $as_echo "#define PJ_SUNOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4723 | |
| 4724 | ;; |
| 4725 | *) |
| 4726 | ;; |
| 4727 | esac |
| 4728 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4729 | |
| 4730 | |
| 4731 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4732 | # Check whether --enable-floating-point was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4733 | if test "${enable_floating_point+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4734 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4735 | $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4736 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5 |
| 4738 | $as_echo "Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4739 | fi |
| 4740 | else |
| 4741 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4742 | $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4743 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5 |
| 4745 | $as_echo "Checking if floating point is disabled... no" >&6; } |
| 4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5 |
| 4747 | $as_echo_n "checking for fmod in -lm... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4748 | if ${ac_cv_lib_m_fmod+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4749 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4750 | else |
| 4751 | ac_check_lib_save_LIBS=$LIBS |
| 4752 | LIBS="-lm $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4754 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4755 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4756 | /* Override any GCC internal prototype to avoid an error. |
| 4757 | Use char because int might match the return type of a GCC |
| 4758 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4759 | #ifdef __cplusplus |
| 4760 | extern "C" |
| 4761 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4762 | char fmod (); |
| 4763 | int |
| 4764 | main () |
| 4765 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4766 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4767 | ; |
| 4768 | return 0; |
| 4769 | } |
| 4770 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4771 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4772 | ac_cv_lib_m_fmod=yes |
| 4773 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4774 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4775 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4776 | rm -f core conftest.err conftest.$ac_objext \ |
| 4777 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4778 | LIBS=$ac_check_lib_save_LIBS |
| 4779 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5 |
| 4781 | $as_echo "$ac_cv_lib_m_fmod" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4782 | if test "x$ac_cv_lib_m_fmod" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4783 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4784 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4785 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4786 | |
| 4787 | LIBS="-lm $LIBS" |
| 4788 | |
| 4789 | fi |
| 4790 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4791 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4792 | fi |
| 4793 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4794 | |
| 4795 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4796 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4797 | if test "x$ac_cv_header_arpa_inet_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4798 | $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4799 | |
| 4800 | fi |
| 4801 | |
| 4802 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4803 | ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4804 | if test "x$ac_cv_header_assert_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4805 | $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4806 | |
| 4807 | fi |
| 4808 | |
| 4809 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4810 | ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4811 | if test "x$ac_cv_header_ctype_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4812 | $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4813 | |
| 4814 | fi |
| 4815 | |
| 4816 | |
| 4817 | |
| 4818 | case $target in |
| 4819 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4820 | $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4821 | |
| 4822 | ;; |
| 4823 | *) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4824 | ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4825 | if test "x$ac_cv_header_errno_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4826 | $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4827 | |
| 4828 | fi |
| 4829 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4830 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4831 | ;; |
| 4832 | esac |
| 4833 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4834 | ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4835 | if test "x$ac_cv_header_fcntl_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4836 | $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4837 | |
| 4838 | fi |
| 4839 | |
| 4840 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4841 | ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4842 | if test "x$ac_cv_header_linux_socket_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4843 | $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4844 | |
| 4845 | fi |
| 4846 | |
| 4847 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4848 | ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4849 | if test "x$ac_cv_header_limits_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4850 | $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4851 | |
| 4852 | fi |
| 4853 | |
| 4854 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4855 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4856 | if test "x$ac_cv_header_malloc_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4857 | $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4858 | |
| 4859 | fi |
| 4860 | |
| 4861 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4862 | ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4863 | if test "x$ac_cv_header_netdb_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4864 | $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4865 | |
| 4866 | fi |
| 4867 | |
| 4868 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4869 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4870 | if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4871 | $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4872 | |
| 4873 | fi |
| 4874 | |
| 4875 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4876 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4877 | if test "x$ac_cv_header_netinet_in_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4878 | $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h |
Benny Prijono | e3e6580 | 2011-02-28 07:44:19 +0000 | [diff] [blame] | 4879 | |
| 4880 | fi |
| 4881 | |
| 4882 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4883 | 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] | 4884 | # include <sys/types.h> |
| 4885 | #endif |
| 4886 | #if PJ_HAS_NETINET_IN_SYSTM_H |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4887 | # include <netinet/in_systm.h> |
| 4888 | #endif |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4889 | #if PJ_HAS_NETINET_IN_H |
| 4890 | # include <netinet/in.h> |
| 4891 | #endif |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4892 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4893 | " |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4894 | if test "x$ac_cv_header_netinet_ip_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4895 | $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4896 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4897 | fi |
| 4898 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4899 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4900 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4901 | if test "x$ac_cv_header_netinet_tcp_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4902 | $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4903 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4904 | fi |
| 4905 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4906 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4907 | ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4908 | if test "x$ac_cv_header_ifaddrs_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4909 | ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4910 | if test "x$ac_cv_func_getifaddrs" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4911 | $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4912 | |
| 4913 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4914 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4915 | fi |
| 4916 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4917 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4918 | ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4919 | if test "x$ac_cv_header_semaphore_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4920 | $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4921 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4922 | fi |
| 4923 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4924 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4925 | ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4926 | if test "x$ac_cv_header_setjmp_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4927 | $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4928 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4929 | fi |
| 4930 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4931 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4932 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4933 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4934 | $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4935 | |
| 4936 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4937 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4938 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4939 | ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4940 | if test "x$ac_cv_header_stddef_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4941 | $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4942 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4943 | fi |
| 4944 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4945 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4946 | ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4947 | if test "x$ac_cv_header_stdio_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4948 | $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4949 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4950 | fi |
| 4951 | |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 4952 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4953 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4954 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4955 | $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4956 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4957 | fi |
| 4958 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4959 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4960 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4961 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4962 | $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4963 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4964 | fi |
| 4965 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4966 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4967 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4968 | if test "x$ac_cv_header_string_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4969 | $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4970 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4971 | fi |
| 4972 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4973 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4974 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4975 | if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4976 | $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4977 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4978 | fi |
| 4979 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4980 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4981 | ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4982 | if test "x$ac_cv_header_sys_select_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4983 | $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4984 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4985 | fi |
| 4986 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4987 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4988 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4989 | if test "x$ac_cv_header_sys_socket_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4990 | $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4991 | |
| 4992 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4993 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4994 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4995 | ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 4996 | if test "x$ac_cv_header_sys_time_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 4997 | $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 4998 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 4999 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5000 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5001 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5002 | ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5003 | if test "x$ac_cv_header_sys_timeb_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5004 | $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5005 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5006 | fi |
| 5007 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5008 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5009 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5010 | if test "x$ac_cv_header_sys_types_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5011 | $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5012 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5013 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5014 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 5015 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5016 | ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5017 | if test "x$ac_cv_header_sys_filio_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5018 | $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5019 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5020 | fi |
| 5021 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5022 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5023 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5024 | if test "x$ac_cv_header_sys_sockio_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5025 | $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5026 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5027 | fi |
| 5028 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5029 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5030 | ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5031 | if test "x$ac_cv_header_sys_utsname_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5032 | $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5033 | |
| 5034 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 5035 | |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 5036 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5037 | ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5038 | if test "x$ac_cv_header_time_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5039 | $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h |
Sauw Ming | d8aa67c | 2011-08-09 04:31:41 +0000 | [diff] [blame] | 5040 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5041 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5042 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5043 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5044 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5045 | if test "x$ac_cv_header_unistd_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5046 | $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5047 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5048 | fi |
| 5049 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5050 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5051 | ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5052 | if test "x$ac_cv_header_winsock_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5053 | $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5054 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5055 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5056 | |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 5057 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5058 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5059 | if test "x$ac_cv_header_winsock2_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5060 | $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 5061 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5062 | fi |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5063 | |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 5064 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5065 | 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] | 5066 | # include <winsock2.h> |
| 5067 | #elif PJ_HAS_WINSOCK_H |
| 5068 | # include <winsock.h> |
| 5069 | #endif |
| 5070 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5071 | " |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5072 | if test "x$ac_cv_header_mswsock_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5073 | $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 5074 | |
| 5075 | fi |
| 5076 | |
| 5077 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5078 | ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5079 | if test "x$ac_cv_header_ws2tcpip_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5080 | $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 5081 | |
| 5082 | fi |
| 5083 | |
| 5084 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5085 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5086 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5087 | ac_has_uuid_h=1 |
| 5088 | fi |
| 5089 | |
| 5090 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5091 | 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] | 5092 | # include <sys/types.h> |
| 5093 | #endif |
| 5094 | #if PJ_HAS_SYS_SOCKET_H |
| 5095 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 5096 | # include <sys/socket.h> |
| 5097 | #endif |
| 5098 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5099 | " |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5100 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5101 | $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 5102 | |
| 5103 | fi |
| 5104 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 5105 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5 |
| 5107 | $as_echo "Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5108 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5109 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5110 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5111 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5112 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 5114 | $as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
| 5115 | $as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5116 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5117 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 5119 | $as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
| 5120 | $as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5121 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5122 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 5124 | $as_echo "Setting PJ_HAS_MALLOC to 1" >&6; } |
| 5125 | $as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5126 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5127 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 5129 | $as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
| 5130 | $as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5131 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5132 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 5134 | $as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
| 5135 | $as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5136 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5137 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5 |
| 5139 | $as_echo_n "checking if inet_aton() is available... " >&6; } |
| 5140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5141 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5142 | #include <sys/types.h> |
| 5143 | #include <sys/socket.h> |
| 5144 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5145 | int |
| 5146 | main () |
| 5147 | { |
| 5148 | inet_aton(0, 0); |
| 5149 | ; |
| 5150 | return 0; |
| 5151 | } |
| 5152 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5153 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5154 | $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5155 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5157 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5158 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5160 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5161 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5163 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5 |
| 5165 | $as_echo_n "checking if inet_pton() is available... " >&6; } |
| 5166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5167 | /* end confdefs.h. */ |
| 5168 | #include <sys/types.h> |
| 5169 | #include <sys/socket.h> |
| 5170 | #include <arpa/inet.h> |
| 5171 | int |
| 5172 | main () |
| 5173 | { |
| 5174 | inet_pton(0, 0, 0); |
| 5175 | ; |
| 5176 | return 0; |
| 5177 | } |
| 5178 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5179 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5180 | $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5181 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5183 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5184 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5186 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5187 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5189 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5 |
| 5191 | $as_echo_n "checking if inet_ntop() is available... " >&6; } |
| 5192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5193 | /* end confdefs.h. */ |
| 5194 | #include <sys/types.h> |
| 5195 | #include <sys/socket.h> |
| 5196 | #include <arpa/inet.h> |
| 5197 | int |
| 5198 | main () |
| 5199 | { |
| 5200 | inet_ntop(0, 0, 0, 0); |
| 5201 | ; |
| 5202 | return 0; |
| 5203 | } |
| 5204 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5205 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5206 | $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5207 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5209 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5210 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5212 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5213 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5215 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5 |
| 5217 | $as_echo_n "checking if getaddrinfo() is available... " >&6; } |
| 5218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5219 | /* end confdefs.h. */ |
| 5220 | #include <sys/types.h> |
| 5221 | #include <sys/socket.h> |
| 5222 | #include <netdb.h> |
| 5223 | int |
| 5224 | main () |
| 5225 | { |
| 5226 | getaddrinfo(0, 0, 0, 0); |
| 5227 | ; |
| 5228 | return 0; |
| 5229 | } |
| 5230 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5231 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5232 | $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5233 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5235 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5236 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5238 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5239 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5241 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5 |
| 5243 | $as_echo_n "checking if sockaddr_in has sin_len member... " >&6; } |
| 5244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5245 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5246 | #include <sys/types.h> |
| 5247 | #include <sys/socket.h> |
| 5248 | #include <netinet/in.h> |
| 5249 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5250 | int |
| 5251 | main () |
| 5252 | { |
| 5253 | struct sockaddr_in a; a.sin_len=0; |
| 5254 | ; |
| 5255 | return 0; |
| 5256 | } |
| 5257 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5258 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5259 | $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5260 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5262 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5263 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5265 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5266 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5268 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5 |
| 5270 | $as_echo_n "checking if socklen_t is available... " >&6; } |
| 5271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5272 | /* end confdefs.h. */ |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 5273 | #include <sys/types.h> |
| 5274 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5275 | int |
| 5276 | main () |
| 5277 | { |
| 5278 | socklen_t xxx = 0; |
| 5279 | ; |
| 5280 | return 0; |
| 5281 | } |
| 5282 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5283 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5284 | $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5285 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5287 | $as_echo "yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5288 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5290 | $as_echo "no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5291 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5293 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5 |
| 5295 | $as_echo_n "checking if SO_ERROR is available... " >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5296 | case $target in |
| 5297 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5298 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5299 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5301 | $as_echo "yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5302 | ;; |
| 5303 | *) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5305 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5306 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5307 | #include <sys/socket.h> |
| 5308 | #include <netinet/in.h> |
| 5309 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5310 | int |
| 5311 | main () |
| 5312 | { |
| 5313 | int i=SO_ERROR; |
| 5314 | ; |
| 5315 | return 0; |
| 5316 | } |
| 5317 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5318 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5319 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5320 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5322 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5323 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5325 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5326 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5328 | ;; |
| 5329 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5330 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5331 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5 |
| 5333 | $as_echo_n "checking if pthread_rwlock_t is available... " >&6; } |
| 5334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5335 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5336 | #include <pthread.h> |
| 5337 | int |
| 5338 | main () |
| 5339 | { |
| 5340 | pthread_rwlock_t *x; |
| 5341 | ; |
| 5342 | return 0; |
| 5343 | } |
| 5344 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5345 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5346 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5347 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5348 | ac_rwmutex="yes" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5350 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5351 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5352 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5353 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5354 | ac_rwmutex="no" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5356 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5357 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5359 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5360 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 5362 | $as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; } |
| 5363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5364 | /* end confdefs.h. */ |
| 5365 | #define _POSIX_READER_WRITER_LOCKS |
| 5366 | #include <pthread.h> |
| 5367 | int |
| 5368 | main () |
| 5369 | { |
| 5370 | pthread_rwlock_t *x; |
| 5371 | ; |
| 5372 | return 0; |
| 5373 | } |
| 5374 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5375 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5376 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5377 | |
| 5378 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5380 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5381 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5382 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5383 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5385 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5386 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5388 | fi |
| 5389 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5 |
| 5391 | $as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; } |
| 5392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5393 | /* end confdefs.h. */ |
| 5394 | #include <pthread.h> |
| 5395 | int |
| 5396 | main () |
| 5397 | { |
| 5398 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 5399 | ; |
| 5400 | return 0; |
| 5401 | } |
| 5402 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5403 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5404 | $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5405 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5407 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5408 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5410 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5411 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5413 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5 |
| 5415 | $as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; } |
| 5416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5417 | /* end confdefs.h. */ |
| 5418 | #include <pthread.h> |
| 5419 | int |
| 5420 | main () |
| 5421 | { |
| 5422 | pthread_mutexattr_t attr; |
| 5423 | attr.recursive=1; |
| 5424 | ; |
| 5425 | return 0; |
| 5426 | } |
| 5427 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5428 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5429 | $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5430 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5432 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5433 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5435 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5436 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5438 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5439 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5 |
| 5441 | $as_echo_n "checking ioqueue backend... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5442 | # Check whether --enable-epoll was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5443 | if test "${enable_epoll+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5444 | enableval=$enable_epoll; |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5445 | ac_os_objs=ioqueue_epoll.o |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5 |
| 5447 | $as_echo "/dev/epoll" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5448 | |
| 5449 | else |
| 5450 | |
| 5451 | ac_os_objs=ioqueue_select.o |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 |
| 5453 | $as_echo "select()" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5454 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5455 | fi |
| 5456 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5457 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5458 | |
| 5459 | case $target in |
| 5460 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5461 | 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] | 5462 | ;; |
| 5463 | *) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5464 | 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] | 5465 | case $target in |
| 5466 | arm-apple-darwin*) |
Sauw Ming | fe42f0c | 2011-03-01 10:42:11 +0000 | [diff] [blame] | 5467 | ac_os_objs="$ac_os_objs os_info_iphone.o" |
Sauw Ming | 6a970a3 | 2011-03-01 05:25:27 +0000 | [diff] [blame] | 5468 | ;; |
| 5469 | esac |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5470 | # UUID |
| 5471 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 5472 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 5473 | else |
| 5474 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 5475 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5476 | ;; |
| 5477 | esac |
| 5478 | |
Sauw Ming | 68c1457 | 2011-07-20 03:00:48 +0000 | [diff] [blame] | 5479 | case $target in |
| 5480 | *darwin*) |
| 5481 | ac_os_objs="$ac_os_objs os_core_darwin.o" |
| 5482 | ;; |
| 5483 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5484 | |
| 5485 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5486 | ac_external_speex=0 |
| 5487 | |
| 5488 | |
| 5489 | # Check whether --with-external-speex was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5490 | if test "${with_external_speex+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5491 | withval=$with_external_speex; |
| 5492 | if test "x$with_external_speex" != "xno"; then |
| 5493 | # Test Speex installation |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5 |
| 5495 | $as_echo_n "checking if external Speex devkit is installed... " >&6; } |
| 5496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5497 | /* end confdefs.h. */ |
| 5498 | #include <speex/speex.h> |
| 5499 | #include <speex/speex_echo.h> |
| 5500 | |
| 5501 | int |
| 5502 | main () |
| 5503 | { |
| 5504 | speex_echo_state_init(0, 0); speex_encoder_init(0); |
| 5505 | ; |
| 5506 | return 0; |
| 5507 | } |
| 5508 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5509 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5511 | $as_echo "yes!!" >&6; } |
| 5512 | $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5513 | |
| 5514 | ac_external_speex="1" |
| 5515 | |
| 5516 | else |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 5517 | 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] | 5518 | fi |
| 5519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5520 | fi |
| 5521 | |
| 5522 | |
| 5523 | fi |
| 5524 | |
| 5525 | |
| 5526 | ac_external_gsm=0 |
| 5527 | |
| 5528 | |
| 5529 | # Check whether --with-external-gsm was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5530 | if test "${with_external_gsm+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5531 | withval=$with_external_gsm; |
| 5532 | if test "x$with_external_gsm" != "xno"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5533 | # Test GSM library installation |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5 |
| 5535 | $as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; } |
| 5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5537 | /* end confdefs.h. */ |
| 5538 | #include <gsm/gsm.h> |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5539 | int |
| 5540 | main () |
| 5541 | { |
| 5542 | gsm_create(); |
| 5543 | ; |
| 5544 | return 0; |
| 5545 | } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5546 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5547 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5549 | $as_echo "yes!!" >&6; } |
| 5550 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5551 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5552 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5553 | |
| 5554 | ac_external_gsm="1" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5555 | |
| 5556 | else |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5557 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5559 | $as_echo "no" >&6; } |
| 5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5 |
| 5561 | $as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; } |
| 5562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5563 | /* end confdefs.h. */ |
| 5564 | #include <gsm.h> |
| 5565 | int |
| 5566 | main () |
| 5567 | { |
| 5568 | gsm_create(); |
| 5569 | ; |
| 5570 | return 0; |
| 5571 | } |
| 5572 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5573 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5575 | $as_echo "yes!!" >&6; } |
| 5576 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5577 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5578 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5579 | |
| 5580 | ac_external_gsm="1" |
| 5581 | |
| 5582 | else |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 5583 | 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] | 5584 | |
| 5585 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5586 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5588 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5589 | |
| 5590 | fi |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5592 | fi |
| 5593 | |
| 5594 | |
| 5595 | fi |
| 5596 | |
| 5597 | |
| 5598 | |
| 5599 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5600 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5601 | # Check whether --enable-sound was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5602 | if test "${enable_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5603 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5604 | ac_pjmedia_snd=null |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5 |
| 5606 | $as_echo "Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5607 | fi |
| 5608 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5609 | fi |
| 5610 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5611 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5612 | ac_external_pa=0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5613 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5614 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5615 | # Check whether --with-external-pa was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5616 | if test "${with_external_pa+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5617 | withval=$with_external_pa; |
| 5618 | if test "x$with_external_pa" != "xno"; then |
| 5619 | # Test PortAudio installation |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5 |
| 5621 | $as_echo_n "checking if external PortAudio devkit is installed... " >&6; } |
| 5622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5623 | /* end confdefs.h. */ |
| 5624 | #include <portaudio.h> |
| 5625 | |
| 5626 | int |
| 5627 | main () |
| 5628 | { |
| 5629 | Pa_Initialize(); |
| 5630 | ; |
| 5631 | return 0; |
| 5632 | } |
| 5633 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5634 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5636 | $as_echo "yes!!" >&6; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5637 | ac_external_pa="1" |
| 5638 | |
| 5639 | else |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 5640 | 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] | 5641 | fi |
| 5642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5643 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5644 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5645 | |
| 5646 | fi |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5647 | |
| 5648 | |
| 5649 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5650 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5651 | if test "x$ac_cv_header_sys_soundcard_h" = xyes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5652 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 5653 | fi |
| 5654 | |
| 5655 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5656 | ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5657 | if test "x$ac_cv_header_linux_soundcard_h" = xyes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5658 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 5659 | fi |
| 5660 | |
| 5661 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5662 | ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5663 | if test "x$ac_cv_header_machine_soundcard_h" = xyes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5664 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 5665 | fi |
| 5666 | |
| 5667 | |
| 5668 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 5669 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 5670 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 5671 | else |
| 5672 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 5673 | fi |
| 5674 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5675 | if test "$enable_sound" = "no"; then |
| 5676 | true; |
| 5677 | else |
| 5678 | case $target in |
Sauw Ming | 6d3b427 | 2012-07-03 07:46:49 +0000 | [diff] [blame] | 5679 | *android*) |
| 5680 | LIBS="$LIBS -lOpenSLES" |
| 5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... OpenSL ES" >&5 |
| 5682 | $as_echo "Checking sound device backend... OpenSL ES" >&6; } |
| 5683 | ;; |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 5684 | arm-apple-darwin*) |
Sauw Ming | 6a970a3 | 2011-03-01 05:25:27 +0000 | [diff] [blame] | 5685 | LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5 |
| 5687 | $as_echo "Checking sound device backend... AudioUnit" >&6; } |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 5688 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5689 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5690 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 5691 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5692 | #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] | 5693 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 5694 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5 |
| 5696 | $as_echo "Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5697 | else |
| 5698 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5 |
| 5700 | $as_echo "Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5701 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5702 | ;; |
| 5703 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5704 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5 |
| 5706 | $as_echo "Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5707 | ;; |
| 5708 | *rtems*) |
| 5709 | ac_pjmedia_snd=null |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5 |
| 5711 | $as_echo "Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5712 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5713 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5714 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5715 | ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 5716 | if test "x$ac_cv_header_alsa_version_h" = xyes; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5717 | ac_pa_use_alsa=1 |
| 5718 | |
| 5719 | LIBS="$LIBS -lasound" |
| 5720 | |
| 5721 | else |
| 5722 | ac_pa_use_alsa=0 |
| 5723 | |
| 5724 | fi |
| 5725 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5726 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5 |
| 5728 | $as_echo "Checking sound device backend... unix" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5729 | |
| 5730 | ac_pa_use_oss=1 |
| 5731 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5732 | # Check whether --enable-oss was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5733 | if test "${enable_oss+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5734 | enableval=$enable_oss; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5735 | if test "$enable_oss" = "no"; then |
| 5736 | ac_pa_use_oss=0 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5 |
| 5738 | $as_echo "Checking if OSS audio is disabled... yes" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5739 | fi |
| 5740 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5741 | fi |
| 5742 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5743 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5744 | esac |
| 5745 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5746 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5747 | |
Nanang Izzuddin | 6898bfd | 2012-05-17 11:23:41 +0000 | [diff] [blame] | 5748 | |
| 5749 | # Check whether --enable-video was given. |
| 5750 | if test "${enable_video+set}" = set; then : |
| 5751 | enableval=$enable_video; if test "$enable_video" = "no"; then |
| 5752 | #AC_DEFINE(PJMEDIA_HAS_VIDEO,0) |
| 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5 |
| 5754 | $as_echo "Video is disabled" >&6; } |
| 5755 | enable_sdl="no" |
| 5756 | enable_ffmpeg="no" |
| 5757 | enable_v4l2="no" |
| 5758 | fi |
| 5759 | fi |
| 5760 | |
| 5761 | |
| 5762 | case $target in |
Sauw Ming | 6d3b427 | 2012-07-03 07:46:49 +0000 | [diff] [blame] | 5763 | *android*) |
| 5764 | LIBS="$LIBS -llog -lgcc" |
| 5765 | ;; |
Nanang Izzuddin | 6898bfd | 2012-05-17 11:23:41 +0000 | [diff] [blame] | 5766 | arm-apple-darwin*) |
| 5767 | LIBS="$LIBS -framework UIKit" |
| 5768 | ;; |
| 5769 | *darwin*) |
| 5770 | LIBS="$LIBS -framework Foundation -framework AppKit" |
| 5771 | ;; |
| 5772 | esac |
| 5773 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5774 | if test "$enable_video" = "no"; then |
| 5775 | true; |
| 5776 | else |
| 5777 | case $target in |
| 5778 | arm-apple-darwin*) |
| 5779 | ac_pjmedia_video=iphone_os |
| 5780 | |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5781 | |
| 5782 | SAVED_LIBS="$LIBS" |
Nanang Izzuddin | 6898bfd | 2012-05-17 11:23:41 +0000 | [diff] [blame] | 5783 | LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5785 | /* end confdefs.h. */ |
| 5786 | |
| 5787 | int |
| 5788 | main () |
| 5789 | { |
| 5790 | |
| 5791 | ; |
| 5792 | return 0; |
| 5793 | } |
| 5794 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5795 | if ac_fn_c_try_link "$LINENO"; then : |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5796 | ac_pjmedia_video_has_ios=yes |
| 5797 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5798 | ac_pjmedia_video_has_ios=no |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5799 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5800 | rm -f core conftest.err conftest.$ac_objext \ |
| 5801 | conftest$ac_exeext conftest.$ac_ext |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5802 | LIBS="$SAVED_LIBS" |
| 5803 | if test "$ac_pjmedia_video_has_ios" = "yes"; then |
| 5804 | ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" |
Nanang Izzuddin | 6898bfd | 2012-05-17 11:23:41 +0000 | [diff] [blame] | 5805 | LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5 |
| 5807 | $as_echo "Checking if AVFoundation framework is available... yes" >&6; } |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5808 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5 |
| 5810 | $as_echo "Checking if AVFoundation framework is available... no" >&6; } |
Sauw Ming | 24c39a3 | 2011-08-16 05:44:46 +0000 | [diff] [blame] | 5811 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5812 | ;; |
| 5813 | *darwin*) |
| 5814 | ac_pjmedia_video=mac_os |
| 5815 | |
| 5816 | |
| 5817 | SAVED_LIBS="$LIBS" |
| 5818 | LIBS="-framework QTKit" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5820 | /* end confdefs.h. */ |
| 5821 | |
| 5822 | int |
| 5823 | main () |
| 5824 | { |
| 5825 | |
| 5826 | ; |
| 5827 | return 0; |
| 5828 | } |
| 5829 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5830 | if ac_fn_c_try_link "$LINENO"; then : |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5831 | ac_pjmedia_video_has_qt=yes |
| 5832 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5833 | ac_pjmedia_video_has_qt=no |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5834 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5835 | rm -f core conftest.err conftest.$ac_objext \ |
| 5836 | conftest$ac_exeext conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5837 | LIBS="$SAVED_LIBS" |
| 5838 | if test "$ac_pjmedia_video_has_qt" = "yes"; then |
| 5839 | ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" |
Nanang Izzuddin | 6898bfd | 2012-05-17 11:23:41 +0000 | [diff] [blame] | 5840 | LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5 |
| 5842 | $as_echo "Checking if QTKit framework is available... yes" >&6; } |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5843 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5 |
| 5845 | $as_echo "Checking if QTKit framework is available... no" >&6; } |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5846 | fi |
| 5847 | ;; |
| 5848 | esac |
| 5849 | fi |
| 5850 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5851 | # Check whether --enable-ext_sound was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5852 | if test "${enable_ext_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5853 | enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5854 | ac_pjmedia_snd=external |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5 |
| 5856 | $as_echo "Checking if external sound is set... yes" >&6; } |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5857 | fi |
| 5858 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5859 | fi |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5860 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5861 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5862 | |
| 5863 | # Check whether --enable-small-filter was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5864 | if test "${enable_small_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5865 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5866 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5 |
| 5868 | $as_echo "Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5869 | fi |
| 5870 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5 |
| 5872 | $as_echo "Checking if small filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5873 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5874 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5875 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5876 | |
| 5877 | # Check whether --enable-large-filter was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5878 | if test "${enable_large_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5879 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5880 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5 |
| 5882 | $as_echo "Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5883 | fi |
| 5884 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5 |
| 5886 | $as_echo "Checking if large filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5887 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5888 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5889 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5890 | |
| 5891 | # Check whether --enable-speex-aec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5892 | if test "${enable_speex_aec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5893 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5894 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5 |
| 5896 | $as_echo "Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5897 | fi |
| 5898 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5 |
| 5900 | $as_echo "Checking if Speex AEC is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5901 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5902 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5903 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5904 | |
| 5905 | # Check whether --enable-g711-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5906 | if test "${enable_g711_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5907 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5908 | ac_no_g711_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5909 | $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5910 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5 |
| 5912 | $as_echo "Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5913 | fi |
| 5914 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5 |
| 5916 | $as_echo "Checking if G.711 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5917 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5918 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5919 | |
| 5920 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5921 | |
| 5922 | # Check whether --enable-l16-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5923 | if test "${enable_l16_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5924 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5925 | ac_no_l16_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5926 | $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5927 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5 |
| 5929 | $as_echo "Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5930 | fi |
| 5931 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5 |
| 5933 | $as_echo "Checking if L16 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5934 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5935 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5936 | |
| 5937 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5938 | |
| 5939 | # Check whether --enable-gsm-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5940 | if test "${enable_gsm_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5941 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5942 | ac_no_gsm_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5943 | $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5944 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5 |
| 5946 | $as_echo "Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5947 | fi |
| 5948 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5 |
| 5950 | $as_echo "Checking if GSM codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5951 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5952 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5953 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5954 | |
| 5955 | # Check whether --enable-g722-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5956 | if test "${enable_g722_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5957 | enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5958 | ac_no_g722_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5959 | $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5960 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5 |
| 5962 | $as_echo "Checking if G.722 codec is disabled...yes" >&6; } |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5963 | fi |
| 5964 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5 |
| 5966 | $as_echo "Checking if G.722 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5967 | fi |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5968 | |
| 5969 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5970 | |
| 5971 | # Check whether --enable-g7221-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5972 | if test "${enable_g7221_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5973 | enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then |
| 5974 | ac_no_g7221_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5975 | $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5976 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5 |
| 5978 | $as_echo "Checking if G.722.1 codec is disabled...yes" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5979 | fi |
| 5980 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5 |
| 5982 | $as_echo "Checking if G.722.1 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5983 | fi |
| 5984 | |
| 5985 | |
| 5986 | |
| 5987 | # Check whether --enable-speex-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5988 | if test "${enable_speex_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5989 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5990 | ac_no_speex_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5991 | $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5992 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5 |
| 5994 | $as_echo "Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5995 | fi |
| 5996 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5 |
| 5998 | $as_echo "Checking if Speex codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5999 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6000 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6001 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6002 | |
| 6003 | # Check whether --enable-ilbc-codec was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6004 | if test "${enable_ilbc_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6005 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6006 | ac_no_ilbc_codec=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6007 | $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 6008 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5 |
| 6010 | $as_echo "Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6011 | fi |
| 6012 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5 |
| 6014 | $as_echo "Checking if iLBC codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6015 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6016 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6017 | |
| 6018 | # Check whether --enable-libsamplerate was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6019 | if test "${enable_libsamplerate+set}" = set; then : |
| 6020 | enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5 |
| 6021 | $as_echo_n "checking for src_new in -lsamplerate... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6022 | if ${ac_cv_lib_samplerate_src_new+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6023 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6024 | else |
| 6025 | ac_check_lib_save_LIBS=$LIBS |
| 6026 | LIBS="-lsamplerate $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6028 | /* end confdefs.h. */ |
| 6029 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6030 | /* Override any GCC internal prototype to avoid an error. |
| 6031 | Use char because int might match the return type of a GCC |
| 6032 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6033 | #ifdef __cplusplus |
| 6034 | extern "C" |
| 6035 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6036 | char src_new (); |
| 6037 | int |
| 6038 | main () |
| 6039 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6040 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6041 | ; |
| 6042 | return 0; |
| 6043 | } |
| 6044 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6045 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6046 | ac_cv_lib_samplerate_src_new=yes |
| 6047 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6048 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6049 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6050 | rm -f core conftest.err conftest.$ac_objext \ |
| 6051 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6052 | LIBS=$ac_check_lib_save_LIBS |
| 6053 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 6055 | $as_echo "$ac_cv_lib_samplerate_src_new" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6056 | if test "x$ac_cv_lib_samplerate_src_new" = xyes; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6057 | cat >>confdefs.h <<_ACEOF |
| 6058 | #define HAVE_LIBSAMPLERATE 1 |
| 6059 | _ACEOF |
| 6060 | |
| 6061 | LIBS="-lsamplerate $LIBS" |
| 6062 | |
| 6063 | fi |
| 6064 | |
| 6065 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5 |
| 6067 | $as_echo "Skipping libsamplerate detection" >&6; } |
| 6068 | |
| 6069 | fi |
| 6070 | |
| 6071 | |
| 6072 | |
| 6073 | # Check whether --enable-resample_dll was given. |
| 6074 | if test "${enable_resample_dll+set}" = set; then : |
| 6075 | enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then |
| 6076 | ac_resample_dll=1 |
| 6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5 |
| 6078 | $as_echo "Building libresample as shared library... yes" >&6; } |
| 6079 | fi |
| 6080 | else |
| 6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5 |
| 6082 | $as_echo "Building libresample as shared library... no" >&6; } |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 6083 | |
| 6084 | fi |
| 6085 | |
| 6086 | |
| 6087 | |
| 6088 | # Check whether --with-sdl was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6089 | if test "${with_sdl+set}" = set; then : |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 6090 | withval=$with_sdl; |
| 6091 | else |
| 6092 | with_sdl=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6093 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6094 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6095 | |
| 6096 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6097 | if test "x$ac_cross_compile" != "x" -a "x$with_sdl" = "xno"; then |
| 6098 | enable_sdl=no |
| 6099 | fi |
| 6100 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6101 | # Check whether --enable-sdl was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6102 | if test "${enable_sdl+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6103 | enableval=$enable_sdl; |
| 6104 | if test "$enable_sdl" = "no"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5 |
| 6106 | $as_echo "Checking if SDL is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6107 | fi |
| 6108 | |
| 6109 | else |
| 6110 | |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 6111 | if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5 |
| 6113 | $as_echo "Using SDL prefix... $with_sdl" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6114 | for ac_prog in sdl2-config sdl-config |
Nanang Izzuddin | 08b20fe | 2012-06-06 09:37:25 +0000 | [diff] [blame] | 6115 | do |
| 6116 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6117 | set dummy $ac_prog; ac_word=$2 |
| 6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6119 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6120 | if ${ac_cv_path_SDL_CONFIG+:} false; then : |
Nanang Izzuddin | 08b20fe | 2012-06-06 09:37:25 +0000 | [diff] [blame] | 6121 | $as_echo_n "(cached) " >&6 |
| 6122 | else |
| 6123 | case $SDL_CONFIG in |
| 6124 | [\\/]* | ?:[\\/]*) |
| 6125 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. |
| 6126 | ;; |
| 6127 | *) |
| 6128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6129 | for as_dir in $with_sdl/bin |
| 6130 | do |
| 6131 | IFS=$as_save_IFS |
| 6132 | test -z "$as_dir" && as_dir=. |
| 6133 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Nanang Izzuddin | 08b20fe | 2012-06-06 09:37:25 +0000 | [diff] [blame] | 6135 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 6136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6137 | break 2 |
| 6138 | fi |
| 6139 | done |
| 6140 | done |
| 6141 | IFS=$as_save_IFS |
| 6142 | |
| 6143 | ;; |
| 6144 | esac |
| 6145 | fi |
| 6146 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG |
| 6147 | if test -n "$SDL_CONFIG"; then |
| 6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 |
| 6149 | $as_echo "$SDL_CONFIG" >&6; } |
| 6150 | else |
| 6151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6152 | $as_echo "no" >&6; } |
| 6153 | fi |
| 6154 | |
| 6155 | |
| 6156 | test -n "$SDL_CONFIG" && break |
| 6157 | done |
| 6158 | |
| 6159 | else |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6160 | for ac_prog in sdl2-config sdl-config |
Nanang Izzuddin | 08b20fe | 2012-06-06 09:37:25 +0000 | [diff] [blame] | 6161 | do |
| 6162 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6163 | set dummy $ac_prog; ac_word=$2 |
| 6164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6165 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6166 | if ${ac_cv_path_SDL_CONFIG+:} false; then : |
Nanang Izzuddin | 08b20fe | 2012-06-06 09:37:25 +0000 | [diff] [blame] | 6167 | $as_echo_n "(cached) " >&6 |
| 6168 | else |
| 6169 | case $SDL_CONFIG in |
| 6170 | [\\/]* | ?:[\\/]*) |
| 6171 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. |
| 6172 | ;; |
| 6173 | *) |
| 6174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6175 | for as_dir in $PATH |
| 6176 | do |
| 6177 | IFS=$as_save_IFS |
| 6178 | test -z "$as_dir" && as_dir=. |
| 6179 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Nanang Izzuddin | 08b20fe | 2012-06-06 09:37:25 +0000 | [diff] [blame] | 6181 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 6182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6183 | break 2 |
| 6184 | fi |
| 6185 | done |
| 6186 | done |
| 6187 | IFS=$as_save_IFS |
| 6188 | |
| 6189 | ;; |
| 6190 | esac |
| 6191 | fi |
| 6192 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG |
| 6193 | if test -n "$SDL_CONFIG"; then |
| 6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 |
| 6195 | $as_echo "$SDL_CONFIG" >&6; } |
| 6196 | else |
| 6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6198 | $as_echo "no" >&6; } |
| 6199 | fi |
| 6200 | |
| 6201 | |
| 6202 | test -n "$SDL_CONFIG" && break |
| 6203 | done |
| 6204 | |
Benny Prijono | 5b0af63 | 2011-07-20 03:16:25 +0000 | [diff] [blame] | 6205 | fi |
| 6206 | |
Nanang Izzuddin | 08b20fe | 2012-06-06 09:37:25 +0000 | [diff] [blame] | 6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability" >&5 |
| 6208 | $as_echo_n "checking SDL availability... " >&6; } |
| 6209 | if test "x$SDL_CONFIG" = "x"; then |
| 6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6211 | $as_echo "not found" >&6; } |
| 6212 | elif (sh -c "$SDL_CONFIG --version" | grep -e '^1\.3' -e '^2\.') then |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6213 | |
| 6214 | |
Nanang Izzuddin | 08b20fe | 2012-06-06 09:37:25 +0000 | [diff] [blame] | 6215 | ac_sdl_cflags=`$SDL_CONFIG --cflags` |
| 6216 | ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags" |
| 6217 | ac_sdl_ldflags=`$SDL_CONFIG --libs` |
| 6218 | LIBS="$LIBS $ac_sdl_ldflags" |
| 6219 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5 |
| 6221 | $as_echo "Unsupported SDL version" >&6; } |
Nanang Izzuddin | 08b20fe | 2012-06-06 09:37:25 +0000 | [diff] [blame] | 6222 | fi |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 6223 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6224 | fi |
| 6225 | |
| 6226 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6227 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6228 | |
| 6229 | # Check whether --with-ffmpeg was given. |
| 6230 | if test "${with_ffmpeg+set}" = set; then : |
| 6231 | withval=$with_ffmpeg; |
| 6232 | else |
| 6233 | with_ffmpeg=no |
| 6234 | |
| 6235 | fi |
| 6236 | |
| 6237 | |
| 6238 | if test "x$ac_cross_compile" != "x" -a "x$with_ffmpeg" = "xno"; then |
| 6239 | enable_ffmpeg=no |
| 6240 | fi |
| 6241 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6242 | # Check whether --enable-ffmpeg was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6243 | if test "${enable_ffmpeg+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6244 | enableval=$enable_ffmpeg; |
| 6245 | ac_has_ffmpeg=0 |
| 6246 | |
| 6247 | if test "$enable_ffmpeg" = "no"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5 |
| 6249 | $as_echo "Checking if ffmpeg is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6250 | fi |
| 6251 | |
| 6252 | else |
| 6253 | |
| 6254 | |
| 6255 | |
| 6256 | |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6257 | FFMPEG_PREFIX="" |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6258 | |
| 6259 | SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6260 | if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then |
| 6261 | FFMPEG_PREFIX=$with_ffmpeg |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5 |
| 6263 | $as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; } |
Nanang Izzuddin | 6898bfd | 2012-05-17 11:23:41 +0000 | [diff] [blame] | 6264 | export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6265 | fi |
| 6266 | |
| 6267 | for ac_prog in pkg-config "python pkgconfig.py" |
| 6268 | do |
| 6269 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6270 | set dummy $ac_prog; ac_word=$2 |
| 6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6272 | $as_echo_n "checking for $ac_word... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6273 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6274 | $as_echo_n "(cached) " >&6 |
| 6275 | else |
| 6276 | if test -n "$PKG_CONFIG"; then |
| 6277 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 6278 | else |
| 6279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6280 | for as_dir in $PATH |
| 6281 | do |
| 6282 | IFS=$as_save_IFS |
| 6283 | test -z "$as_dir" && as_dir=. |
| 6284 | for ac_exec_ext in '' $ac_executable_extensions; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6285 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6286 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
| 6287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6288 | break 2 |
| 6289 | fi |
| 6290 | done |
| 6291 | done |
| 6292 | IFS=$as_save_IFS |
| 6293 | |
| 6294 | fi |
| 6295 | fi |
| 6296 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 6297 | if test -n "$PKG_CONFIG"; then |
| 6298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 6299 | $as_echo "$PKG_CONFIG" >&6; } |
| 6300 | else |
| 6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6302 | $as_echo "no" >&6; } |
| 6303 | fi |
| 6304 | |
| 6305 | |
| 6306 | test -n "$PKG_CONFIG" && break |
| 6307 | done |
| 6308 | test -n "$PKG_CONFIG" || PKG_CONFIG="none" |
| 6309 | |
| 6310 | |
| 6311 | if test "$PKG_CONFIG" != "none"; then |
| 6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5 |
| 6313 | $as_echo_n "checking ffmpeg packages... " >&6; } |
| 6314 | av_pkg="" |
| 6315 | if $PKG_CONFIG --exists libdevice; then |
| 6316 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" |
| 6317 | av_pkg="$av_pkg libdevice" |
| 6318 | fi |
| 6319 | if $PKG_CONFIG --exists libavformat; then |
| 6320 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" |
| 6321 | av_pkg="$av_pkg libavformat" |
| 6322 | fi |
| 6323 | if $PKG_CONFIG --exists libavcodec; then |
| 6324 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" |
| 6325 | av_pkg="$av_pkg libavcodec" |
| 6326 | fi |
| 6327 | if $PKG_CONFIG --exists libswscale; then |
| 6328 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" |
| 6329 | av_pkg="$av_pkg libswscale" |
| 6330 | fi |
| 6331 | if $PKG_CONFIG --exists libavutil; then |
| 6332 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" |
| 6333 | av_pkg="$av_pkg libavutil" |
| 6334 | fi |
| 6335 | if $PKG_CONFIG --exists libavcore; then |
| 6336 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" |
| 6337 | av_pkg="$av_pkg libavcore" |
| 6338 | fi |
| 6339 | |
| 6340 | if test "x$av_pkg" == "x"; then |
| 6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5 |
| 6342 | $as_echo "none detected (check the prefix)! **" >&6; } |
| 6343 | else |
| 6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5 |
| 6345 | $as_echo "$av_pkg" >&6; } |
| 6346 | fi |
| 6347 | |
| 6348 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`" |
| 6349 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`" |
| 6350 | |
| 6351 | else |
| 6352 | |
| 6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&5 |
| 6354 | $as_echo "*** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&6; } |
| 6355 | |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6356 | LIBS="-L$FFMPEG_PREFIX/lib $LIBS" |
Sauw Ming | 01095d8 | 2011-07-14 08:46:19 +0000 | [diff] [blame] | 6357 | LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS" |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6358 | CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS" |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame] | 6359 | |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6361 | $as_echo_n "checking for avdevice_version in -lavdevice... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6362 | if ${ac_cv_lib_avdevice_avdevice_version+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6363 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6364 | else |
| 6365 | ac_check_lib_save_LIBS=$LIBS |
| 6366 | LIBS="-lavdevice $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6368 | /* end confdefs.h. */ |
| 6369 | |
| 6370 | /* Override any GCC internal prototype to avoid an error. |
| 6371 | Use char because int might match the return type of a GCC |
| 6372 | builtin and then its argument prototype would still apply. */ |
| 6373 | #ifdef __cplusplus |
| 6374 | extern "C" |
| 6375 | #endif |
| 6376 | char avdevice_version (); |
| 6377 | int |
| 6378 | main () |
| 6379 | { |
| 6380 | return avdevice_version (); |
| 6381 | ; |
| 6382 | return 0; |
| 6383 | } |
| 6384 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6385 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6386 | ac_cv_lib_avdevice_avdevice_version=yes |
| 6387 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6388 | ac_cv_lib_avdevice_avdevice_version=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6389 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6390 | rm -f core conftest.err conftest.$ac_objext \ |
| 6391 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6392 | LIBS=$ac_check_lib_save_LIBS |
| 6393 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5 |
| 6395 | $as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6396 | if test "x$ac_cv_lib_avdevice_avdevice_version" = xyes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6397 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6398 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6399 | |
| 6400 | |
| 6401 | fi |
| 6402 | |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6404 | $as_echo_n "checking for av_malloc in -lavutil... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6405 | if ${ac_cv_lib_avutil_av_malloc+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6406 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6407 | else |
| 6408 | ac_check_lib_save_LIBS=$LIBS |
| 6409 | LIBS="-lavutil $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6411 | /* end confdefs.h. */ |
| 6412 | |
| 6413 | /* Override any GCC internal prototype to avoid an error. |
| 6414 | Use char because int might match the return type of a GCC |
| 6415 | builtin and then its argument prototype would still apply. */ |
| 6416 | #ifdef __cplusplus |
| 6417 | extern "C" |
| 6418 | #endif |
| 6419 | char av_malloc (); |
| 6420 | int |
| 6421 | main () |
| 6422 | { |
| 6423 | return av_malloc (); |
| 6424 | ; |
| 6425 | return 0; |
| 6426 | } |
| 6427 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6428 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6429 | ac_cv_lib_avutil_av_malloc=yes |
| 6430 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6431 | ac_cv_lib_avutil_av_malloc=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6432 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6433 | rm -f core conftest.err conftest.$ac_objext \ |
| 6434 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6435 | LIBS=$ac_check_lib_save_LIBS |
| 6436 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5 |
| 6438 | $as_echo "$ac_cv_lib_avutil_av_malloc" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6439 | if test "x$ac_cv_lib_avutil_av_malloc" = xyes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6440 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6441 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6442 | |
| 6443 | |
| 6444 | fi |
| 6445 | |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5 |
| 6447 | $as_echo_n "checking for avcodec_init in -lavcodec... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6448 | if ${ac_cv_lib_avcodec_avcodec_init+:} false; then : |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6449 | $as_echo_n "(cached) " >&6 |
| 6450 | else |
| 6451 | ac_check_lib_save_LIBS=$LIBS |
| 6452 | LIBS="-lavcodec -lavutil |
| 6453 | $LIBS" |
| 6454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6455 | /* end confdefs.h. */ |
| 6456 | |
| 6457 | /* Override any GCC internal prototype to avoid an error. |
| 6458 | Use char because int might match the return type of a GCC |
| 6459 | builtin and then its argument prototype would still apply. */ |
| 6460 | #ifdef __cplusplus |
| 6461 | extern "C" |
| 6462 | #endif |
| 6463 | char avcodec_init (); |
| 6464 | int |
| 6465 | main () |
| 6466 | { |
| 6467 | return avcodec_init (); |
| 6468 | ; |
| 6469 | return 0; |
| 6470 | } |
| 6471 | _ACEOF |
| 6472 | if ac_fn_c_try_link "$LINENO"; then : |
| 6473 | ac_cv_lib_avcodec_avcodec_init=yes |
| 6474 | else |
| 6475 | ac_cv_lib_avcodec_avcodec_init=no |
| 6476 | fi |
| 6477 | rm -f core conftest.err conftest.$ac_objext \ |
| 6478 | conftest$ac_exeext conftest.$ac_ext |
| 6479 | LIBS=$ac_check_lib_save_LIBS |
| 6480 | fi |
| 6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5 |
| 6482 | $as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6483 | if test "x$ac_cv_lib_avcodec_avcodec_init" = xyes; then : |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6484 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" |
| 6485 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec" |
| 6486 | |
| 6487 | fi |
| 6488 | |
| 6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5 |
| 6490 | $as_echo_n "checking for av_register_all in -lavformat... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6491 | if ${ac_cv_lib_avformat_av_register_all+:} false; then : |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6492 | $as_echo_n "(cached) " >&6 |
| 6493 | else |
| 6494 | ac_check_lib_save_LIBS=$LIBS |
| 6495 | LIBS="-lavformat -lavcodec -lavutil |
| 6496 | $LIBS" |
| 6497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6498 | /* end confdefs.h. */ |
| 6499 | |
| 6500 | /* Override any GCC internal prototype to avoid an error. |
| 6501 | Use char because int might match the return type of a GCC |
| 6502 | builtin and then its argument prototype would still apply. */ |
| 6503 | #ifdef __cplusplus |
| 6504 | extern "C" |
| 6505 | #endif |
| 6506 | char av_register_all (); |
| 6507 | int |
| 6508 | main () |
| 6509 | { |
| 6510 | return av_register_all (); |
| 6511 | ; |
| 6512 | return 0; |
| 6513 | } |
| 6514 | _ACEOF |
| 6515 | if ac_fn_c_try_link "$LINENO"; then : |
| 6516 | ac_cv_lib_avformat_av_register_all=yes |
| 6517 | else |
| 6518 | ac_cv_lib_avformat_av_register_all=no |
| 6519 | fi |
| 6520 | rm -f core conftest.err conftest.$ac_objext \ |
| 6521 | conftest$ac_exeext conftest.$ac_ext |
| 6522 | LIBS=$ac_check_lib_save_LIBS |
| 6523 | fi |
| 6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5 |
| 6525 | $as_echo "$ac_cv_lib_avformat_av_register_all" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6526 | if test "x$ac_cv_lib_avformat_av_register_all" = xyes; then : |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6527 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" |
| 6528 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat" |
| 6529 | |
| 6530 | fi |
| 6531 | |
| 6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5 |
| 6533 | $as_echo_n "checking for sws_scale in -lswscale... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6534 | if ${ac_cv_lib_swscale_sws_scale+:} false; then : |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6535 | $as_echo_n "(cached) " >&6 |
| 6536 | else |
| 6537 | ac_check_lib_save_LIBS=$LIBS |
| 6538 | LIBS="-lswscale -lavutil |
| 6539 | $LIBS" |
| 6540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6541 | /* end confdefs.h. */ |
| 6542 | |
| 6543 | /* Override any GCC internal prototype to avoid an error. |
| 6544 | Use char because int might match the return type of a GCC |
| 6545 | builtin and then its argument prototype would still apply. */ |
| 6546 | #ifdef __cplusplus |
| 6547 | extern "C" |
| 6548 | #endif |
| 6549 | char sws_scale (); |
| 6550 | int |
| 6551 | main () |
| 6552 | { |
| 6553 | return sws_scale (); |
| 6554 | ; |
| 6555 | return 0; |
| 6556 | } |
| 6557 | _ACEOF |
| 6558 | if ac_fn_c_try_link "$LINENO"; then : |
| 6559 | ac_cv_lib_swscale_sws_scale=yes |
| 6560 | else |
| 6561 | ac_cv_lib_swscale_sws_scale=no |
| 6562 | fi |
| 6563 | rm -f core conftest.err conftest.$ac_objext \ |
| 6564 | conftest$ac_exeext conftest.$ac_ext |
| 6565 | LIBS=$ac_check_lib_save_LIBS |
| 6566 | fi |
| 6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5 |
| 6568 | $as_echo "$ac_cv_lib_swscale_sws_scale" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6569 | if test "x$ac_cv_lib_swscale_sws_scale" = xyes; then : |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6570 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" |
| 6571 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" |
| 6572 | |
| 6573 | fi |
| 6574 | |
| 6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6576 | $as_echo_n "checking for avcore_version in -lavcore... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6577 | if ${ac_cv_lib_avcore_avcore_version+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6578 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6579 | else |
| 6580 | ac_check_lib_save_LIBS=$LIBS |
| 6581 | LIBS="-lavcore $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6583 | /* end confdefs.h. */ |
| 6584 | |
| 6585 | /* Override any GCC internal prototype to avoid an error. |
| 6586 | Use char because int might match the return type of a GCC |
| 6587 | builtin and then its argument prototype would still apply. */ |
| 6588 | #ifdef __cplusplus |
| 6589 | extern "C" |
| 6590 | #endif |
| 6591 | char avcore_version (); |
| 6592 | int |
| 6593 | main () |
| 6594 | { |
| 6595 | return avcore_version (); |
| 6596 | ; |
| 6597 | return 0; |
| 6598 | } |
| 6599 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6600 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6601 | ac_cv_lib_avcore_avcore_version=yes |
| 6602 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6603 | ac_cv_lib_avcore_avcore_version=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6604 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6605 | rm -f core conftest.err conftest.$ac_objext \ |
| 6606 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6607 | LIBS=$ac_check_lib_save_LIBS |
| 6608 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5 |
| 6610 | $as_echo "$ac_cv_lib_avcore_avcore_version" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6611 | if test "x$ac_cv_lib_avcore_avcore_version" = xyes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6612 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6613 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6614 | |
| 6615 | |
| 6616 | fi |
| 6617 | |
Benny Prijono | eeebfab | 2012-04-23 13:46:21 +0000 | [diff] [blame] | 6618 | |
| 6619 | fi |
| 6620 | |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 6621 | LIBS="$LIBS $ac_ffmpeg_ldflags" |
Nanang Izzuddin | 6898bfd | 2012-05-17 11:23:41 +0000 | [diff] [blame] | 6622 | export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6623 | |
| 6624 | |
| 6625 | fi |
| 6626 | |
| 6627 | |
| 6628 | # Check whether --enable-v4l2 was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6629 | if test "${enable_v4l2+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6630 | enableval=$enable_v4l2; |
| 6631 | if test "$enable_v4l2" = "no"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5 |
| 6633 | $as_echo "Checking if V4L2 is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6634 | fi |
| 6635 | |
| 6636 | else |
| 6637 | |
| 6638 | |
| 6639 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5 |
| 6641 | $as_echo_n "checking for v4l2_open in -lv4l2... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6642 | if ${ac_cv_lib_v4l2_v4l2_open+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6643 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6644 | else |
| 6645 | ac_check_lib_save_LIBS=$LIBS |
| 6646 | LIBS="-lv4l2 $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6648 | /* end confdefs.h. */ |
| 6649 | |
| 6650 | /* Override any GCC internal prototype to avoid an error. |
| 6651 | Use char because int might match the return type of a GCC |
| 6652 | builtin and then its argument prototype would still apply. */ |
| 6653 | #ifdef __cplusplus |
| 6654 | extern "C" |
| 6655 | #endif |
| 6656 | char v4l2_open (); |
| 6657 | int |
| 6658 | main () |
| 6659 | { |
| 6660 | return v4l2_open (); |
| 6661 | ; |
| 6662 | return 0; |
| 6663 | } |
| 6664 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6665 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6666 | ac_cv_lib_v4l2_v4l2_open=yes |
| 6667 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6668 | ac_cv_lib_v4l2_v4l2_open=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6669 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6670 | rm -f core conftest.err conftest.$ac_objext \ |
| 6671 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6672 | LIBS=$ac_check_lib_save_LIBS |
| 6673 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5 |
| 6675 | $as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6676 | if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6677 | ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1" |
| 6678 | ac_v4l2_ldflags="-lv4l2" |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 6679 | LIBS="$LIBS -lv4l2" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6680 | |
| 6681 | |
| 6682 | fi |
| 6683 | |
| 6684 | |
| 6685 | fi |
| 6686 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6687 | |
| 6688 | # Check whether --enable-ipp was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6689 | if test "${enable_ipp+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6690 | enableval=$enable_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6691 | else |
| 6692 | enable_ipp=no |
| 6693 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6694 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6695 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6696 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6697 | |
| 6698 | # Check whether --with-ipp was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6699 | if test "${with_ipp+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6700 | withval=$with_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6701 | else |
| 6702 | with_ipp=no |
| 6703 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6704 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6705 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6706 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6707 | |
| 6708 | # Check whether --with-ipp-samples was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6709 | if test "${with_ipp_samples+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6710 | withval=$with_ipp_samples; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6711 | else |
| 6712 | with_ipp_samples=no |
| 6713 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6714 | fi |
| 6715 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6716 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6717 | |
| 6718 | # Check whether --with-ipp-arch was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6719 | if test "${with_ipp_arch+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6720 | withval=$with_ipp_arch; |
| 6721 | else |
| 6722 | with_ipp_arch=no |
| 6723 | |
| 6724 | fi |
| 6725 | |
| 6726 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6727 | if test "x$enable_ipp" != "xno"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5 |
| 6729 | $as_echo_n "checking Intel IPP location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6730 | |
| 6731 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5 |
| 6733 | $as_echo "$with_ipp" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6734 | IPPROOT=$with_ipp |
| 6735 | elif test "x$IPPROOT" = "x"; then |
| 6736 | if test -d /opt/intel/ipp; then |
| 6737 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5 |
| 6739 | $as_echo "autodetected in $IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6740 | fi |
| 6741 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5 |
| 6743 | $as_echo "$IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6744 | fi |
| 6745 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6746 | if test "x$with_ipp_arch" != "xno"; then |
Benny Prijono | 896be29 | 2010-08-17 12:16:46 +0000 | [diff] [blame] | 6747 | IPP_SUFFIX=$with_ipp_arch |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 |
| 6749 | $as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6750 | else |
| 6751 | IPP_SUFFIX="" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5 |
| 6753 | $as_echo "IPP arch suffix is set to empty" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6754 | fi |
| 6755 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6756 | if test x$IPPROOT = x; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6757 | 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] | 6758 | elif test ! -d $IPPROOT; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6759 | as_fn_error $? "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6760 | elif test ! -d $IPPROOT/include; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6761 | as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6762 | else |
| 6763 | # IPP directory looks okay. |
| 6764 | # Remove trailing backslash |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6765 | IPPROOT=`echo $IPPROOT | sed 's/\/$//'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6766 | |
| 6767 | SAVED_CFLAGS="$CFLAGS" |
| 6768 | SAVED_LDFLAGS="$LDFLAGS" |
| 6769 | SAVED_LIBS="$LIBS" |
| 6770 | |
| 6771 | IPP_CFLAGS="-I$IPPROOT/include" |
Benny Prijono | cd62c4e | 2011-03-18 08:33:29 +0000 | [diff] [blame] | 6772 | IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6773 | |
Benny Prijono | cd62c4e | 2011-03-18 08:33:29 +0000 | [diff] [blame] | 6774 | # |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6775 | # Some differences between Mac OS X and Linux |
| 6776 | case $target in |
| 6777 | *darwin* ) |
| 6778 | IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib" |
| 6779 | ;; |
| 6780 | *) |
Benny Prijono | cd62c4e | 2011-03-18 08:33:29 +0000 | [diff] [blame] | 6781 | # Find out where the libraries live. |
| 6782 | IPP7_ARCH="" |
| 6783 | if test -d $IPPROOT/lib/intel64; then |
| 6784 | IPP7_ARCH="intel64" |
| 6785 | elif test -d $IPPROOT/lib/ia32; then |
| 6786 | IPP7_ARCH="ia32" |
| 6787 | elif test -d $IPPROOT/lib/mic; then |
| 6788 | IPP7_ARCH="mic" |
| 6789 | fi |
| 6790 | |
| 6791 | if test -z "$IPP7_ARCH"; then |
| 6792 | # IPP6 (and possibly below) |
| 6793 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 6794 | IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide" |
| 6795 | else |
| 6796 | # IPP7 |
| 6797 | if ! test -d $IPPROOT/../compiler; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6798 | 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] | 6799 | fi |
| 6800 | IPP_CFLAGS="$IPP_CFLAGS" |
| 6801 | IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH" |
| 6802 | IPP_LIBS="$IPP_LIBS -liomp5" |
| 6803 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6804 | ;; |
| 6805 | esac |
| 6806 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6807 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6808 | #Static: |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6809 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 6810 | |
| 6811 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 6812 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 6813 | LIBS="$IPP_LIBS $LIBS" |
| 6814 | |
| 6815 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5 |
| 6817 | $as_echo_n "checking Intel IPP usability... " >&6; } |
| 6818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6819 | /* end confdefs.h. */ |
| 6820 | #include <ippcore.h> |
| 6821 | |
| 6822 | int |
| 6823 | main () |
| 6824 | { |
| 6825 | ippStaticInit(); |
| 6826 | ; |
| 6827 | return 0; |
| 6828 | } |
| 6829 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6830 | if ac_fn_c_try_link "$LINENO"; then : |
| 6831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6832 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6833 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6836 | as_fn_error $? "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6837 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6838 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6839 | rm -f core conftest.err conftest.$ac_objext \ |
| 6840 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6841 | |
| 6842 | CFLAGS="$SAVED_CFLAGS" |
| 6843 | LDFLAGS="$SAVED_LDFLAGS" |
| 6844 | LIBS="$SAVED_LIBS" |
| 6845 | fi |
| 6846 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5 |
| 6848 | $as_echo_n "checking Intel IPP samples location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6849 | |
| 6850 | 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] | 6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5 |
| 6852 | $as_echo "$with_ipp_samples" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6853 | IPPSAMPLES=$with_ipp_samples |
| 6854 | elif test "x$IPPSAMPLES" = "x"; then |
| 6855 | if test -d /opt/intel/ipp-samples; then |
| 6856 | IPPSAMPLES=/opt/intel/ipp-samples |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5 |
| 6858 | $as_echo "autodetected in $IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6859 | fi |
| 6860 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5 |
| 6862 | $as_echo "$IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6863 | fi |
| 6864 | |
| 6865 | if test x$IPPSAMPLES = x; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6866 | 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] | 6867 | elif test ! -d $IPPSAMPLES; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6868 | as_fn_error $? "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6869 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6870 | as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6871 | else |
| 6872 | # Remove trailing backslash |
| 6873 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 6874 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6875 | # Guess the libusc.a/libspeech.a build location |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5 |
| 6877 | $as_echo_n "checking Intel IPP USC build location... " >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6878 | if test -d $IPPSAMPLES/speech-codecs/bin; then |
| 6879 | IPPVER=5 |
| 6880 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 6881 | elif test -d $IPPSAMPLES/speech-codecs/_bin; then |
| 6882 | IPPVER=6 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6883 | if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then |
| 6884 | # gcc compiler |
| 6885 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` |
| 6886 | elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then |
| 6887 | # icc compiler |
| 6888 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` |
| 6889 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6890 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6892 | as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6893 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6894 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6895 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6896 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6897 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6898 | 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? |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6899 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6900 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6901 | |
| 6902 | # Test the directory |
| 6903 | if test ! -d $IPPSAMP_DIR; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6904 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6905 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6906 | as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6907 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6908 | exit 1; |
| 6909 | fi |
| 6910 | |
| 6911 | if test "x$IPPVER" = "x5"; then |
| 6912 | IPPSAMP_LIBS="libusc.a" |
| 6913 | IPPSAMP_LDLIBS="-lusc" |
| 6914 | elif test "x$IPPVER" = "x6"; then |
| 6915 | IPPSAMP_LIBS="libspeech.a" |
| 6916 | IPPSAMP_LDLIBS="-lspeech" |
| 6917 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6918 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6919 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6920 | as_fn_error $? "bug in this script: unsupported IPP version |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6921 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6922 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6923 | |
| 6924 | if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6925 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6926 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6927 | as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6928 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6929 | fi |
| 6930 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5 |
| 6932 | $as_echo "$IPPSAMP_DIR" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6933 | |
| 6934 | SAVED_CFLAGS="$CFLAGS" |
| 6935 | SAVED_LDFLAGS="$LDFLAGS" |
| 6936 | SAVED_LIBS="$LIBS" |
| 6937 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6938 | IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 6939 | CFLAGS="$CFLAGS $IPPSAMP_INC" |
| 6940 | LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR" |
| 6941 | LIBS="$IPPSAMP_LDLIBS $LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6942 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5 |
| 6944 | $as_echo_n "checking Intel IPP USC usability... " >&6; } |
| 6945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6946 | /* end confdefs.h. */ |
| 6947 | #include <usc.h> |
| 6948 | |
| 6949 | int |
| 6950 | main () |
| 6951 | { |
| 6952 | extern USC_Fxns USC_G729AFP_Fxns; |
| 6953 | ; |
| 6954 | return 0; |
| 6955 | } |
| 6956 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6957 | if ac_fn_c_try_link "$LINENO"; then : |
| 6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6959 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6960 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6961 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6962 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6963 | as_fn_error $? "failed |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 6964 | See \`config.log' for more details" "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6965 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6966 | rm -f core conftest.err conftest.$ac_objext \ |
| 6967 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6968 | |
| 6969 | CFLAGS="$SAVED_CFLAGS" |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6970 | LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS" |
| 6971 | LIBS="$IPP_LIBS $SAVED_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6972 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6973 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC" |
| 6974 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR" |
| 6975 | IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6976 | fi |
| 6977 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6978 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 6979 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 6980 | LIBS="$LIBS $IPP_LIBS" |
| 6981 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6982 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 6983 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 6984 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 6985 | export IPP_LIBS=$IPP_LIBS" |
| 6986 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 6988 | $as_echo "Skipping Intel IPP settings (not wanted)" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6989 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6990 | |
| 6991 | |
| 6992 | |
| 6993 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 6994 | # Check whether --with-ssl was given. |
| 6995 | if test "${with_ssl+set}" = set; then : |
| 6996 | withval=$with_ssl; |
| 6997 | else |
| 6998 | with_ssl=no |
| 6999 | |
| 7000 | fi |
| 7001 | |
| 7002 | |
| 7003 | if test "x$ac_cross_compile" != "x" -a "x$with_ssl" = "xno"; then |
| 7004 | enable_ssl=no |
| 7005 | fi |
| 7006 | |
| 7007 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7008 | # Check whether --enable-ssl was given. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7009 | if test "${enable_ssl+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7010 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7011 | if test "$enable_ssl" = "no"; then |
| 7012 | ac_no_ssl=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5 |
| 7014 | $as_echo "Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7015 | fi |
| 7016 | |
| 7017 | else |
| 7018 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5 |
| 7020 | $as_echo "checking for OpenSSL installations.." >&6; } |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7021 | if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then |
| 7022 | CFLAGS="$CFLAGS -I$with_ssl/include" |
| 7023 | LDFLAGS="$LDFLAGS -L$with_ssl/lib" |
| 7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5 |
| 7025 | $as_echo "Using SSL prefix... $with_ssl" >&6; } |
| 7026 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7027 | |
| 7028 | |
| 7029 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7030 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7031 | if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7032 | openssl_h_present=1 |
| 7033 | fi |
| 7034 | |
| 7035 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 7037 | $as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7038 | if ${ac_cv_lib_crypto_ERR_load_BIO_strings+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7039 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7040 | else |
| 7041 | ac_check_lib_save_LIBS=$LIBS |
| 7042 | LIBS="-lcrypto $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7044 | /* end confdefs.h. */ |
| 7045 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7046 | /* Override any GCC internal prototype to avoid an error. |
| 7047 | Use char because int might match the return type of a GCC |
| 7048 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7049 | #ifdef __cplusplus |
| 7050 | extern "C" |
| 7051 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7052 | char ERR_load_BIO_strings (); |
| 7053 | int |
| 7054 | main () |
| 7055 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7056 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7057 | ; |
| 7058 | return 0; |
| 7059 | } |
| 7060 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7061 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7062 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 7063 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7064 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7065 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7066 | rm -f core conftest.err conftest.$ac_objext \ |
| 7067 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7068 | LIBS=$ac_check_lib_save_LIBS |
| 7069 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 7071 | $as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7072 | if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7073 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 7074 | fi |
| 7075 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 |
| 7077 | $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7078 | if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7079 | $as_echo_n "(cached) " >&6 |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7080 | else |
| 7081 | ac_check_lib_save_LIBS=$LIBS |
| 7082 | LIBS="-lssl $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7084 | /* end confdefs.h. */ |
| 7085 | |
| 7086 | /* Override any GCC internal prototype to avoid an error. |
| 7087 | Use char because int might match the return type of a GCC |
| 7088 | builtin and then its argument prototype would still apply. */ |
| 7089 | #ifdef __cplusplus |
| 7090 | extern "C" |
| 7091 | #endif |
| 7092 | char SSL_library_init (); |
| 7093 | int |
| 7094 | main () |
| 7095 | { |
| 7096 | return SSL_library_init (); |
| 7097 | ; |
| 7098 | return 0; |
| 7099 | } |
| 7100 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7101 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7102 | ac_cv_lib_ssl_SSL_library_init=yes |
| 7103 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7104 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7105 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7106 | rm -f core conftest.err conftest.$ac_objext \ |
| 7107 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7108 | LIBS=$ac_check_lib_save_LIBS |
| 7109 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 7111 | $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7112 | if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7113 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 7114 | fi |
| 7115 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7116 | 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] | 7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5 |
| 7118 | $as_echo "OpenSSL library found, SSL support enabled" >&6; } |
Nanang Izzuddin | 9c7616f | 2009-10-28 06:09:15 +0000 | [diff] [blame] | 7119 | # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK |
| 7120 | #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7121 | $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h |
Nanang Izzuddin | ea6d3c4 | 2009-10-26 15:47:52 +0000 | [diff] [blame] | 7122 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7123 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 7125 | $as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7126 | fi |
| 7127 | |
| 7128 | fi |
| 7129 | |
| 7130 | |
| 7131 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7132 | # Check whether --with-opencore-amrnb was given. |
| 7133 | if test "${with_opencore_amrnb+set}" = set; then : |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 7134 | withval=$with_opencore_amrnb; as_fn_error $? "This option is obsolete and replaced by --with-opencore-amr=DIR" "$LINENO" 5 |
| 7135 | fi |
| 7136 | |
| 7137 | |
| 7138 | |
| 7139 | # Check whether --with-opencore-amr was given. |
| 7140 | if test "${with_opencore_amr+set}" = set; then : |
| 7141 | withval=$with_opencore_amr; |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7142 | else |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 7143 | with_opencore_amr=no |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7144 | |
| 7145 | fi |
| 7146 | |
| 7147 | |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 7148 | if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amr" = "xno"; then |
| 7149 | enable_opencore_amr=no |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7150 | fi |
| 7151 | |
| 7152 | |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 7153 | # Check whether --with-opencore-amrwbenc was given. |
| 7154 | if test "${with_opencore_amrwbenc+set}" = set; then : |
| 7155 | withval=$with_opencore_amrwbenc; |
| 7156 | else |
| 7157 | with_opencore_amrwbenc=no |
| 7158 | |
| 7159 | fi |
| 7160 | |
| 7161 | |
| 7162 | if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrwbenc" = "xno"; then |
| 7163 | enable_opencore_amrwbenc=no |
| 7164 | fi |
| 7165 | |
| 7166 | |
| 7167 | |
| 7168 | |
| 7169 | # Check whether --enable-opencore_amr was given. |
| 7170 | if test "${enable_opencore_amr+set}" = set; then : |
| 7171 | enableval=$enable_opencore_amr; |
| 7172 | if test "$enable_opencore_amr" = "no"; then |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7173 | ac_no_opencore_amrnb=1 |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 7174 | ac_no_opencore_amrwb=1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7175 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7176 | |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 7177 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h |
| 7178 | |
| 7179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR support is disabled... yes" >&5 |
| 7180 | $as_echo "Checking if OpenCORE AMR support is disabled... yes" >&6; } |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7181 | fi |
| 7182 | |
| 7183 | else |
| 7184 | |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR installations.." >&5 |
| 7186 | $as_echo "checking for OpenCORE AMR installations.." >&6; } |
| 7187 | if test "x$with_opencore_amr" != "xno" -a "x$with_opencore_amr" != "x"; then |
| 7188 | CFLAGS="$CFLAGS -I$with_opencore_amr/include" |
| 7189 | LDFLAGS="$LDFLAGS -L$with_opencore_amr/lib" |
| 7190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR prefix... $with_opencore_amr" >&5 |
| 7191 | $as_echo "Using OpenCORE AMR prefix... $with_opencore_amr" >&6; } |
| 7192 | fi |
| 7193 | if test "x$with_opencore_amrwbenc" != "xno" -a "x$with_opencore_amrwbenc" != "x"; then |
| 7194 | CFLAGS="$CFLAGS -I$with_opencore_amrwbenc/include" |
| 7195 | LDFLAGS="$LDFLAGS -L$with_opencore_amrwbenc/lib" |
| 7196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&5 |
| 7197 | $as_echo "Using OpenCORE AMRWB-enc prefix... $with_opencore_amrwbenc" >&6; } |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7198 | fi |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7199 | |
| 7200 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7201 | ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7202 | if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = xyes; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7203 | opencore_amrnb_h_present=1 |
| 7204 | fi |
| 7205 | |
| 7206 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5 |
| 7208 | $as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7209 | if ${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+:} false; then : |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7210 | $as_echo_n "(cached) " >&6 |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7211 | else |
| 7212 | ac_check_lib_save_LIBS=$LIBS |
| 7213 | LIBS="-lopencore-amrnb $LIBS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7215 | /* end confdefs.h. */ |
| 7216 | |
| 7217 | /* Override any GCC internal prototype to avoid an error. |
| 7218 | Use char because int might match the return type of a GCC |
| 7219 | builtin and then its argument prototype would still apply. */ |
| 7220 | #ifdef __cplusplus |
| 7221 | extern "C" |
| 7222 | #endif |
| 7223 | char Encoder_Interface_init (); |
| 7224 | int |
| 7225 | main () |
| 7226 | { |
| 7227 | return Encoder_Interface_init (); |
| 7228 | ; |
| 7229 | return 0; |
| 7230 | } |
| 7231 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7232 | if ac_fn_c_try_link "$LINENO"; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7233 | ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes |
| 7234 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7235 | ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7236 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7237 | rm -f core conftest.err conftest.$ac_objext \ |
| 7238 | conftest$ac_exeext conftest.$ac_ext |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7239 | LIBS=$ac_check_lib_save_LIBS |
| 7240 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5 |
| 7242 | $as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; } |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7243 | if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = xyes; then : |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7244 | opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb" |
| 7245 | fi |
| 7246 | |
| 7247 | 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] | 7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5 |
| 7249 | $as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; } |
| 7250 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7251 | |
| 7252 | else |
| 7253 | ac_no_opencore_amrnb=1 |
Sauw Ming | ec02c08 | 2012-10-01 11:08:08 +0000 | [diff] [blame] | 7254 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h |
Sauw Ming | e7dbbc8 | 2011-10-24 09:28:13 +0000 | [diff] [blame] | 7255 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7256 | fi |
| 7257 | |
Sauw Ming | 2f67f47 | 2013-01-23 06:18:18 +0000 | [diff] [blame] | 7258 | |
| 7259 | |
| 7260 | |
| 7261 | ac_fn_c_check_header_mongrel "$LINENO" "vo-amrwbenc/enc_if.h" "ac_cv_header_vo_amrwbenc_enc_if_h" "$ac_includes_default" |
| 7262 | if test "x$ac_cv_header_vo_amrwbenc_enc_if_h" = xyes; then : |
| 7263 | opencore_amrwb_enc_h_present=1 |
| 7264 | fi |
| 7265 | |
| 7266 | |
| 7267 | ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrwb/dec_if.h" "ac_cv_header_opencore_amrwb_dec_if_h" "$ac_includes_default" |
| 7268 | if test "x$ac_cv_header_opencore_amrwb_dec_if_h" = xyes; then : |
| 7269 | opencore_amrwb_dec_h_present=1 |
| 7270 | fi |
| 7271 | |
| 7272 | |
| 7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D_IF_init in -lopencore-amrwb" >&5 |
| 7274 | $as_echo_n "checking for D_IF_init in -lopencore-amrwb... " >&6; } |
| 7275 | if ${ac_cv_lib_opencore_amrwb_D_IF_init+:} false; then : |
| 7276 | $as_echo_n "(cached) " >&6 |
| 7277 | else |
| 7278 | ac_check_lib_save_LIBS=$LIBS |
| 7279 | LIBS="-lopencore-amrwb $LIBS" |
| 7280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7281 | /* end confdefs.h. */ |
| 7282 | |
| 7283 | /* Override any GCC internal prototype to avoid an error. |
| 7284 | Use char because int might match the return type of a GCC |
| 7285 | builtin and then its argument prototype would still apply. */ |
| 7286 | #ifdef __cplusplus |
| 7287 | extern "C" |
| 7288 | #endif |
| 7289 | char D_IF_init (); |
| 7290 | int |
| 7291 | main () |
| 7292 | { |
| 7293 | return D_IF_init (); |
| 7294 | ; |
| 7295 | return 0; |
| 7296 | } |
| 7297 | _ACEOF |
| 7298 | if ac_fn_c_try_link "$LINENO"; then : |
| 7299 | ac_cv_lib_opencore_amrwb_D_IF_init=yes |
| 7300 | else |
| 7301 | ac_cv_lib_opencore_amrwb_D_IF_init=no |
| 7302 | fi |
| 7303 | rm -f core conftest.err conftest.$ac_objext \ |
| 7304 | conftest$ac_exeext conftest.$ac_ext |
| 7305 | LIBS=$ac_check_lib_save_LIBS |
| 7306 | fi |
| 7307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrwb_D_IF_init" >&5 |
| 7308 | $as_echo "$ac_cv_lib_opencore_amrwb_D_IF_init" >&6; } |
| 7309 | if test "x$ac_cv_lib_opencore_amrwb_D_IF_init" = xyes; then : |
| 7310 | opencore_amrwb_dec_present=1 && LIBS="$LIBS -lopencore-amrwb" |
| 7311 | fi |
| 7312 | |
| 7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for E_IF_init in -lvo-amrwbenc" >&5 |
| 7314 | $as_echo_n "checking for E_IF_init in -lvo-amrwbenc... " >&6; } |
| 7315 | if ${ac_cv_lib_vo_amrwbenc_E_IF_init+:} false; then : |
| 7316 | $as_echo_n "(cached) " >&6 |
| 7317 | else |
| 7318 | ac_check_lib_save_LIBS=$LIBS |
| 7319 | LIBS="-lvo-amrwbenc $LIBS" |
| 7320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7321 | /* end confdefs.h. */ |
| 7322 | |
| 7323 | /* Override any GCC internal prototype to avoid an error. |
| 7324 | Use char because int might match the return type of a GCC |
| 7325 | builtin and then its argument prototype would still apply. */ |
| 7326 | #ifdef __cplusplus |
| 7327 | extern "C" |
| 7328 | #endif |
| 7329 | char E_IF_init (); |
| 7330 | int |
| 7331 | main () |
| 7332 | { |
| 7333 | return E_IF_init (); |
| 7334 | ; |
| 7335 | return 0; |
| 7336 | } |
| 7337 | _ACEOF |
| 7338 | if ac_fn_c_try_link "$LINENO"; then : |
| 7339 | ac_cv_lib_vo_amrwbenc_E_IF_init=yes |
| 7340 | else |
| 7341 | ac_cv_lib_vo_amrwbenc_E_IF_init=no |
| 7342 | fi |
| 7343 | rm -f core conftest.err conftest.$ac_objext \ |
| 7344 | conftest$ac_exeext conftest.$ac_ext |
| 7345 | LIBS=$ac_check_lib_save_LIBS |
| 7346 | fi |
| 7347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vo_amrwbenc_E_IF_init" >&5 |
| 7348 | $as_echo "$ac_cv_lib_vo_amrwbenc_E_IF_init" >&6; } |
| 7349 | if test "x$ac_cv_lib_vo_amrwbenc_E_IF_init" = xyes; then : |
| 7350 | opencore_amrwb_enc_present=1 && LIBS="$LIBS -lvo-amrwbenc" |
| 7351 | fi |
| 7352 | |
| 7353 | if test "x$opencore_amrwb_enc_h_present" = "x1" -a "x$opencore_amrwb_dec_h_present" = "x1" -a "x$opencore_amrwb_enc_present" = "x1" -a "x$opencore_amrwb_dec_present" = "x1"; then |
| 7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-WB library found, AMR-WB support enabled" >&5 |
| 7355 | $as_echo "OpenCORE AMR-WB library found, AMR-WB support enabled" >&6; } |
| 7356 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 1" >>confdefs.h |
| 7357 | |
| 7358 | else |
| 7359 | ac_no_opencore_amrwb=1 |
| 7360 | $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRWB_CODEC 0" >>confdefs.h |
| 7361 | |
| 7362 | fi |
| 7363 | |
| 7364 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7365 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7366 | |
| 7367 | |
| 7368 | |
Sauw Ming | 03df424 | 2012-09-25 02:23:06 +0000 | [diff] [blame] | 7369 | # Check whether --with-silk was given. |
| 7370 | if test "${with_silk+set}" = set; then : |
| 7371 | withval=$with_silk; |
| 7372 | else |
| 7373 | with_silk=no |
| 7374 | |
| 7375 | fi |
| 7376 | |
| 7377 | |
| 7378 | if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then |
| 7379 | enable_silk=no |
| 7380 | fi |
| 7381 | |
| 7382 | |
| 7383 | # Check whether --enable-silk was given. |
| 7384 | if test "${enable_silk+set}" = set; then : |
| 7385 | enableval=$enable_silk; |
| 7386 | if test "$enable_silk" = "no"; then |
| 7387 | ac_no_silk=1 |
| 7388 | $as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h |
| 7389 | |
| 7390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SILK support is disabled... yes" >&5 |
| 7391 | $as_echo "Checking if SILK support is disabled... yes" >&6; } |
| 7392 | fi |
| 7393 | |
| 7394 | else |
| 7395 | |
| 7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for SILK installations.." >&5 |
| 7397 | $as_echo "checking for SILK installations.." >&6; } |
| 7398 | if test "x$with_silk" != "xno" -a "x$with_silk" != "x"; then |
| 7399 | CFLAGS="$CFLAGS -I$with_silk/interface" |
Sauw Ming | ec02c08 | 2012-10-01 11:08:08 +0000 | [diff] [blame] | 7400 | CPPFLAGS="$CPPFLAGS -I$with_silk/interface" |
Sauw Ming | 03df424 | 2012-09-25 02:23:06 +0000 | [diff] [blame] | 7401 | LDFLAGS="$LDFLAGS -L$with_silk" |
| 7402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SILK prefix... $with_silk" >&5 |
| 7403 | $as_echo "Using SILK prefix... $with_silk" >&6; } |
| 7404 | fi |
| 7405 | |
| 7406 | |
| 7407 | ac_fn_c_check_header_mongrel "$LINENO" "SKP_Silk_SDK_API.h" "ac_cv_header_SKP_Silk_SDK_API_h" "$ac_includes_default" |
| 7408 | if test "x$ac_cv_header_SKP_Silk_SDK_API_h" = xyes; then : |
| 7409 | silk_h_present=1 |
| 7410 | fi |
| 7411 | |
| 7412 | |
| 7413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK" >&5 |
| 7414 | $as_echo_n "checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK... " >&6; } |
| 7415 | if ${ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version+:} false; then : |
| 7416 | $as_echo_n "(cached) " >&6 |
| 7417 | else |
| 7418 | ac_check_lib_save_LIBS=$LIBS |
| 7419 | LIBS="-lSKP_SILK_SDK $LIBS" |
| 7420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7421 | /* end confdefs.h. */ |
| 7422 | |
| 7423 | /* Override any GCC internal prototype to avoid an error. |
| 7424 | Use char because int might match the return type of a GCC |
| 7425 | builtin and then its argument prototype would still apply. */ |
| 7426 | #ifdef __cplusplus |
| 7427 | extern "C" |
| 7428 | #endif |
| 7429 | char SKP_Silk_SDK_get_version (); |
| 7430 | int |
| 7431 | main () |
| 7432 | { |
| 7433 | return SKP_Silk_SDK_get_version (); |
| 7434 | ; |
| 7435 | return 0; |
| 7436 | } |
| 7437 | _ACEOF |
| 7438 | if ac_fn_c_try_link "$LINENO"; then : |
| 7439 | ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=yes |
| 7440 | else |
| 7441 | ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version=no |
| 7442 | fi |
| 7443 | rm -f core conftest.err conftest.$ac_objext \ |
| 7444 | conftest$ac_exeext conftest.$ac_ext |
| 7445 | LIBS=$ac_check_lib_save_LIBS |
| 7446 | fi |
| 7447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&5 |
| 7448 | $as_echo "$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" >&6; } |
| 7449 | if test "x$ac_cv_lib_SKP_SILK_SDK_SKP_Silk_SDK_get_version" = xyes; then : |
| 7450 | silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK" |
| 7451 | fi |
| 7452 | |
| 7453 | if test "x$silk_h_present" = "x1" -a "x$silk_present" = "x1"; then |
| 7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SILK library found, SILK support enabled" >&5 |
| 7455 | $as_echo "SILK library found, SILK support enabled" >&6; } |
| 7456 | $as_echo "#define PJMEDIA_HAS_SILK_CODEC 1" >>confdefs.h |
| 7457 | |
| 7458 | else |
| 7459 | ac_no_silk=1 |
| 7460 | $as_echo "#define PJMEDIA_HAS_SILK_CODEC 0" >>confdefs.h |
| 7461 | |
| 7462 | fi |
| 7463 | |
| 7464 | fi |
| 7465 | |
| 7466 | |
| 7467 | |
| 7468 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7469 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5 |
| 7471 | $as_echo_n "checking if select() needs correct nfds... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7472 | case $target in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7473 | *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7474 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7476 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7477 | ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7478 | *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7479 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 7481 | $as_echo "no (default)" >&6; } |
| 7482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 7483 | $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] | 7484 | ;; |
| 7485 | esac |
| 7486 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5 |
| 7488 | $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] | 7489 | case $target in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7490 | *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7491 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7493 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7494 | ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7495 | *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7496 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 7498 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7499 | ;; |
| 7500 | esac |
| 7501 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5 |
| 7503 | $as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7504 | case $target in |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7505 | *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7506 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7508 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7509 | ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7510 | *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7511 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 7513 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7514 | ;; |
| 7515 | esac |
| 7516 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7517 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7518 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7519 | $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7520 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7521 | ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7522 | *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7523 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 7525 | $as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7526 | ;; |
| 7527 | esac |
| 7528 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7529 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7530 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7531 | $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7532 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7533 | ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7534 | *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7535 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 7537 | $as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7538 | ;; |
| 7539 | esac |
| 7540 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7541 | |
| 7542 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7543 | ac_linux_poll=select |
| 7544 | |
| 7545 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7546 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7547 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7548 | case $target in |
| 7549 | *rtems*) |
| 7550 | ac_main_obj=main_rtems.o |
| 7551 | ;; |
| 7552 | *) |
| 7553 | ac_main_obj=main.o |
| 7554 | ;; |
| 7555 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7556 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 7557 | |
| 7558 | 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] | 7559 | cat >confcache <<\_ACEOF |
| 7560 | # This file is a shell script that caches the results of configure |
| 7561 | # tests run on this system so they can be shared between configure |
| 7562 | # scripts and configure runs, see configure's option --config-cache. |
| 7563 | # It is not useful on other systems. If it contains results you don't |
| 7564 | # want to keep, you may remove or edit it. |
| 7565 | # |
| 7566 | # config.status only pays attention to the cache file if you give it |
| 7567 | # the --recheck option to rerun configure. |
| 7568 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7569 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7570 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7571 | # following values. |
| 7572 | |
| 7573 | _ACEOF |
| 7574 | |
| 7575 | # The following way of writing the cache mishandles newlines in values, |
| 7576 | # but we know of no workaround that is simple, portable, and efficient. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7577 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7578 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7579 | # 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] | 7580 | ( |
| 7581 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 7582 | eval ac_val=\$$ac_var |
| 7583 | case $ac_val in #( |
| 7584 | *${as_nl}*) |
| 7585 | case $ac_var in #( |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7586 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 7587 | $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] | 7588 | esac |
| 7589 | case $ac_var in #( |
| 7590 | _ | IFS | as_nl) ;; #( |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7591 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 7592 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7593 | esac ;; |
| 7594 | esac |
| 7595 | done |
| 7596 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7597 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7598 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 7599 | *${as_nl}ac_space=\ *) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7600 | # `set' does not quote correctly, so add quotes: double-quote |
| 7601 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7602 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7603 | "s/'/'\\\\''/g; |
| 7604 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7605 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7606 | *) |
| 7607 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7608 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7609 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7610 | esac | |
| 7611 | sort |
| 7612 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7613 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7614 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7615 | t clear |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7616 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7617 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7618 | t end |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7619 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7620 | :end' >>confcache |
| 7621 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 7622 | if test -w "$cache_file"; then |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7623 | if test "x$cache_file" != "x/dev/null"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 7625 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7626 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 7627 | cat confcache >"$cache_file" |
| 7628 | else |
| 7629 | case $cache_file in #( |
| 7630 | */* | ?:*) |
| 7631 | mv -f confcache "$cache_file"$$ && |
| 7632 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 7633 | *) |
| 7634 | mv -f confcache "$cache_file" ;; |
| 7635 | esac |
| 7636 | fi |
| 7637 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7638 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7639 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 7640 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7641 | fi |
| 7642 | fi |
| 7643 | rm -f confcache |
| 7644 | |
| 7645 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7646 | # Let make expand exec_prefix. |
| 7647 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7648 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7649 | DEFS=-DHAVE_CONFIG_H |
| 7650 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7651 | ac_libobjs= |
| 7652 | ac_ltlibobjs= |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7653 | U= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7654 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 7655 | # 1. Remove the extension, and $U if already installed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7656 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7657 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7658 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 7659 | # will be set to the directory where LIBOBJS objects are built. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7660 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 7661 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7662 | done |
| 7663 | LIBOBJS=$ac_libobjs |
| 7664 | |
| 7665 | LTLIBOBJS=$ac_ltlibobjs |
| 7666 | |
| 7667 | |
| 7668 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7669 | |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7670 | : "${CONFIG_STATUS=./config.status}" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7671 | ac_write_fail=0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7672 | ac_clean_files_save=$ac_clean_files |
| 7673 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 7675 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7676 | as_write_fail=0 |
| 7677 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7678 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7679 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7680 | # Run this file to recreate the current configuration. |
| 7681 | # Compiler output produced by configure, useful for debugging |
| 7682 | # configure, is in config.log if it exists. |
| 7683 | |
| 7684 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7685 | ac_cs_recheck=false |
| 7686 | ac_cs_silent=false |
Benny Prijono | 36d3249 | 2011-12-28 08:42:23 +0000 | [diff] [blame] | 7687 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7688 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 7689 | export SHELL |
| 7690 | _ASEOF |
| 7691 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 7692 | ## -------------------- ## |
| 7693 | ## M4sh Initialization. ## |
| 7694 | ## -------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7695 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7696 | # Be more Bourne compatible |
| 7697 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7698 | 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] | 7699 | emulate sh |
| 7700 | NULLCMD=: |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7701 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7702 | # is contrary to our usage. Disable this feature. |
| 7703 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7704 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7705 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7706 | case `(set -o) 2>/dev/null` in #( |
| 7707 | *posix*) : |
| 7708 | set -o posix ;; #( |
| 7709 | *) : |
| 7710 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7711 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7712 | fi |
| 7713 | |
| 7714 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7715 | as_nl=' |
| 7716 | ' |
| 7717 | export as_nl |
| 7718 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 7719 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 7720 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 7721 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 7722 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 7723 | # but without wasting forks for bash or zsh. |
| 7724 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 7725 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 7726 | as_echo='print -r --' |
| 7727 | as_echo_n='print -rn --' |
| 7728 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 7729 | as_echo='printf %s\n' |
| 7730 | as_echo_n='printf %s' |
| 7731 | else |
| 7732 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 7733 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 7734 | as_echo_n='/usr/ucb/echo -n' |
| 7735 | else |
| 7736 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 7737 | as_echo_n_body='eval |
| 7738 | arg=$1; |
| 7739 | case $arg in #( |
| 7740 | *"$as_nl"*) |
| 7741 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 7742 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 7743 | esac; |
| 7744 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 7745 | ' |
| 7746 | export as_echo_n_body |
| 7747 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 7748 | fi |
| 7749 | export as_echo_body |
| 7750 | as_echo='sh -c $as_echo_body as_echo' |
| 7751 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7752 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7753 | # The user is always right. |
| 7754 | if test "${PATH_SEPARATOR+set}" != set; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7755 | PATH_SEPARATOR=: |
| 7756 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 7757 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 7758 | PATH_SEPARATOR=';' |
| 7759 | } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7760 | fi |
| 7761 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7762 | |
| 7763 | # IFS |
| 7764 | # We need space, tab and new line, in precisely that order. Quoting is |
| 7765 | # there to prevent editors from complaining about space-tab. |
| 7766 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 7767 | # splitting by setting IFS to empty value.) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7768 | IFS=" "" $as_nl" |
| 7769 | |
| 7770 | # Find who we are. Look in the path if we contain no directory separator. |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7771 | as_myself= |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7772 | case $0 in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7773 | *[\\/]* ) as_myself=$0 ;; |
| 7774 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7775 | for as_dir in $PATH |
| 7776 | do |
| 7777 | IFS=$as_save_IFS |
| 7778 | test -z "$as_dir" && as_dir=. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7779 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 7780 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7781 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7782 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7783 | ;; |
| 7784 | esac |
| 7785 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 7786 | # in which case we are not to be found in the path. |
| 7787 | if test "x$as_myself" = x; then |
| 7788 | as_myself=$0 |
| 7789 | fi |
| 7790 | if test ! -f "$as_myself"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7791 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 7792 | exit 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7793 | fi |
| 7794 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7795 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 7796 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 7797 | # suppresses any "Segmentation fault" message there. '((' could |
| 7798 | # trigger a bug in pdksh 5.2.14. |
| 7799 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 7800 | do eval test x\${$as_var+set} = xset \ |
| 7801 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7802 | done |
| 7803 | PS1='$ ' |
| 7804 | PS2='> ' |
| 7805 | PS4='+ ' |
| 7806 | |
| 7807 | # NLS nuisances. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7808 | LC_ALL=C |
| 7809 | export LC_ALL |
| 7810 | LANGUAGE=C |
| 7811 | export LANGUAGE |
Benny Prijono | e110523 | 2011-10-26 06:49:34 +0000 | [diff] [blame] | 7812 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7813 | # CDPATH. |
| 7814 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 7815 | |
| 7816 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7817 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 7818 | # ---------------------------------------- |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7819 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 7820 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7821 | # script with STATUS, using 1 if that was 0. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7822 | as_fn_error () |
| 7823 | { |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7824 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 7825 | if test "$4"; then |
| 7826 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 7827 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7828 | fi |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 7829 | $as_echo "$as_me: error: $2" >&2 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7830 | as_fn_exit $as_status |
| 7831 | } # as_fn_error |
| 7832 | |
| 7833 | |
| 7834 | # as_fn_set_status STATUS |
| 7835 | # ----------------------- |
| 7836 | # Set $? to STATUS, without forking. |
| 7837 | as_fn_set_status () |
| 7838 | { |
| 7839 | return $1 |
| 7840 | } # as_fn_set_status |
| 7841 | |
| 7842 | # as_fn_exit STATUS |
| 7843 | # ----------------- |
| 7844 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 7845 | as_fn_exit () |
| 7846 | { |
| 7847 | set +e |
| 7848 | as_fn_set_status $1 |
| 7849 | exit $1 |
| 7850 | } # as_fn_exit |
| 7851 | |
| 7852 | # as_fn_unset VAR |
| 7853 | # --------------- |
| 7854 | # Portably unset VAR. |
| 7855 | as_fn_unset () |
| 7856 | { |
| 7857 | { eval $1=; unset $1;} |
| 7858 | } |
| 7859 | as_unset=as_fn_unset |
| 7860 | # as_fn_append VAR VALUE |
| 7861 | # ---------------------- |
| 7862 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 7863 | # advantage of any shell optimizations that allow amortized linear growth over |
| 7864 | # repeated appends, instead of the typical quadratic growth present in naive |
| 7865 | # implementations. |
| 7866 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 7867 | eval 'as_fn_append () |
| 7868 | { |
| 7869 | eval $1+=\$2 |
| 7870 | }' |
| 7871 | else |
| 7872 | as_fn_append () |
| 7873 | { |
| 7874 | eval $1=\$$1\$2 |
| 7875 | } |
| 7876 | fi # as_fn_append |
| 7877 | |
| 7878 | # as_fn_arith ARG... |
| 7879 | # ------------------ |
| 7880 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 7881 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 7882 | # must be portable across $(()) and expr. |
| 7883 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 7884 | eval 'as_fn_arith () |
| 7885 | { |
| 7886 | as_val=$(( $* )) |
| 7887 | }' |
| 7888 | else |
| 7889 | as_fn_arith () |
| 7890 | { |
| 7891 | as_val=`expr "$@" || test $? -eq 1` |
| 7892 | } |
| 7893 | fi # as_fn_arith |
| 7894 | |
| 7895 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7896 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 7897 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 7898 | as_expr=expr |
| 7899 | else |
| 7900 | as_expr=false |
| 7901 | fi |
| 7902 | |
| 7903 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 7904 | as_basename=basename |
| 7905 | else |
| 7906 | as_basename=false |
| 7907 | fi |
| 7908 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7909 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 7910 | as_dirname=dirname |
| 7911 | else |
| 7912 | as_dirname=false |
| 7913 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7914 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7915 | as_me=`$as_basename -- "$0" || |
| 7916 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 7917 | X"$0" : 'X\(//\)$' \| \ |
| 7918 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7919 | $as_echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7920 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 7921 | s//\1/ |
| 7922 | q |
| 7923 | } |
| 7924 | /^X\/\(\/\/\)$/{ |
| 7925 | s//\1/ |
| 7926 | q |
| 7927 | } |
| 7928 | /^X\/\(\/\).*/{ |
| 7929 | s//\1/ |
| 7930 | q |
| 7931 | } |
| 7932 | s/.*/./; q'` |
| 7933 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7934 | # Avoid depending upon Character Ranges. |
| 7935 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 7936 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 7937 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 7938 | as_cr_digits='0123456789' |
| 7939 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7940 | |
| 7941 | ECHO_C= ECHO_N= ECHO_T= |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7942 | case `echo -n x` in #((((( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7943 | -n*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7944 | case `echo 'xy\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7945 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7946 | xy) ECHO_C='\c';; |
| 7947 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 7948 | ECHO_T=' ';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7949 | esac;; |
| 7950 | *) |
| 7951 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7952 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7953 | |
| 7954 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7955 | if test -d conf$$.dir; then |
| 7956 | rm -f conf$$.dir/conf$$.file |
| 7957 | else |
| 7958 | rm -f conf$$.dir |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7959 | mkdir conf$$.dir 2>/dev/null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7960 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7961 | if (echo >conf$$.file) 2>/dev/null; then |
| 7962 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7963 | as_ln_s='ln -s' |
| 7964 | # ... but there are two gotchas: |
| 7965 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 7966 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7967 | # In both cases, we have to default to `cp -pR'. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7968 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7969 | as_ln_s='cp -pR' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7970 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7971 | as_ln_s=ln |
| 7972 | else |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7973 | as_ln_s='cp -pR' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7974 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7975 | else |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 7976 | as_ln_s='cp -pR' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7977 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7978 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 7979 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7980 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 7981 | |
| 7982 | # as_fn_mkdir_p |
| 7983 | # ------------- |
| 7984 | # Create "$as_dir" as a directory, including parents if necessary. |
| 7985 | as_fn_mkdir_p () |
| 7986 | { |
| 7987 | |
| 7988 | case $as_dir in #( |
| 7989 | -*) as_dir=./$as_dir;; |
| 7990 | esac |
| 7991 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 7992 | as_dirs= |
| 7993 | while :; do |
| 7994 | case $as_dir in #( |
| 7995 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 7996 | *) as_qdir=$as_dir;; |
| 7997 | esac |
| 7998 | as_dirs="'$as_qdir' $as_dirs" |
| 7999 | as_dir=`$as_dirname -- "$as_dir" || |
| 8000 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8001 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 8002 | X"$as_dir" : 'X\(//\)$' \| \ |
| 8003 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 8004 | $as_echo X"$as_dir" | |
| 8005 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8006 | s//\1/ |
| 8007 | q |
| 8008 | } |
| 8009 | /^X\(\/\/\)[^/].*/{ |
| 8010 | s//\1/ |
| 8011 | q |
| 8012 | } |
| 8013 | /^X\(\/\/\)$/{ |
| 8014 | s//\1/ |
| 8015 | q |
| 8016 | } |
| 8017 | /^X\(\/\).*/{ |
| 8018 | s//\1/ |
| 8019 | q |
| 8020 | } |
| 8021 | s/.*/./; q'` |
| 8022 | test -d "$as_dir" && break |
| 8023 | done |
| 8024 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8025 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8026 | |
| 8027 | |
| 8028 | } # as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8029 | if mkdir -p . 2>/dev/null; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8030 | as_mkdir_p='mkdir -p "$as_dir"' |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 8031 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8032 | test -d ./-p && rmdir ./-p |
| 8033 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 8034 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8035 | |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8036 | |
| 8037 | # as_fn_executable_p FILE |
| 8038 | # ----------------------- |
| 8039 | # Test if FILE is an executable regular file. |
| 8040 | as_fn_executable_p () |
| 8041 | { |
| 8042 | test -f "$1" && test -x "$1" |
| 8043 | } # as_fn_executable_p |
| 8044 | as_test_x='test -x' |
| 8045 | as_executable_p=as_fn_executable_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8046 | |
| 8047 | # Sed expression to map a string onto a valid CPP name. |
| 8048 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 8049 | |
| 8050 | # Sed expression to map a string onto a valid variable name. |
| 8051 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 8052 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8053 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8054 | exec 6>&1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8055 | ## ----------------------------------- ## |
| 8056 | ## Main body of $CONFIG_STATUS script. ## |
| 8057 | ## ----------------------------------- ## |
| 8058 | _ASEOF |
| 8059 | 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] | 8060 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8061 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8062 | # 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] | 8063 | # report actual input values of CONFIG_FILES etc. instead of their |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8064 | # values after options handling. |
| 8065 | ac_log=" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8066 | This file was extended by pjproject $as_me 2.x, which was |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8067 | generated by GNU Autoconf 2.69. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8068 | |
| 8069 | CONFIG_FILES = $CONFIG_FILES |
| 8070 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 8071 | CONFIG_LINKS = $CONFIG_LINKS |
| 8072 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 8073 | $ $0 $@ |
| 8074 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8075 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 8076 | " |
| 8077 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8078 | _ACEOF |
| 8079 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8080 | case $ac_config_files in *" |
| 8081 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 8082 | esac |
| 8083 | |
| 8084 | case $ac_config_headers in *" |
| 8085 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 8086 | esac |
| 8087 | |
| 8088 | |
| 8089 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8090 | # Files that config.status was made for. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8091 | config_files="$ac_config_files" |
| 8092 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8093 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8094 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8095 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8096 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8097 | ac_cs_usage="\ |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8098 | \`$as_me' instantiates files and other configuration actions |
| 8099 | from templates according to the current configuration. Unless the files |
| 8100 | and actions are specified as TAGs, all are instantiated by default. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8101 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8102 | Usage: $0 [OPTION]... [TAG]... |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8103 | |
| 8104 | -h, --help print this help, then exit |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8105 | -V, --version print version number and configuration settings, then exit |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8106 | --config print configuration, then exit |
| 8107 | -q, --quiet, --silent |
| 8108 | do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8109 | -d, --debug don't remove temporary files |
| 8110 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8111 | --file=FILE[:TEMPLATE] |
| 8112 | instantiate the configuration file FILE |
| 8113 | --header=FILE[:TEMPLATE] |
| 8114 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8115 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8116 | Configuration files: |
| 8117 | $config_files |
| 8118 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8119 | Configuration headers: |
| 8120 | $config_headers |
| 8121 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8122 | Report bugs to the package provider." |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8123 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8124 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8125 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8126 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8127 | ac_cs_version="\\ |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8128 | pjproject config.status 2.x |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8129 | configured by $0, generated by GNU Autoconf 2.69, |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8130 | with options \\"\$ac_cs_config\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8131 | |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8132 | Copyright (C) 2012 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8133 | This config.status script is free software; the Free Software Foundation |
| 8134 | gives unlimited permission to copy, distribute and modify it." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8135 | |
| 8136 | ac_pwd='$ac_pwd' |
| 8137 | srcdir='$srcdir' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8138 | test -n "\$AWK" || AWK=awk |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8139 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8140 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8141 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8142 | # The default lists apply if the user does not specify any file. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8143 | ac_need_defaults=: |
| 8144 | while test $# != 0 |
| 8145 | do |
| 8146 | case $1 in |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8147 | --*=?*) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8148 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 8149 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8150 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8151 | ;; |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8152 | --*=) |
| 8153 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 8154 | ac_optarg= |
| 8155 | ac_shift=: |
| 8156 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8157 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8158 | ac_option=$1 |
| 8159 | ac_optarg=$2 |
| 8160 | ac_shift=shift |
| 8161 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8162 | esac |
| 8163 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8164 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8165 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8166 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8167 | ac_cs_recheck=: ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8168 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8169 | $as_echo "$ac_cs_version"; exit ;; |
| 8170 | --config | --confi | --conf | --con | --co | --c ) |
| 8171 | $as_echo "$ac_cs_config"; exit ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8172 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8173 | debug=: ;; |
| 8174 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8175 | $ac_shift |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8176 | case $ac_optarg in |
| 8177 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8178 | '') as_fn_error $? "missing file argument" ;; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8179 | esac |
| 8180 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8181 | ac_need_defaults=false;; |
| 8182 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8183 | $ac_shift |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8184 | case $ac_optarg in |
| 8185 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 8186 | esac |
| 8187 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8188 | ac_need_defaults=false;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8189 | --he | --h) |
| 8190 | # Conflict between --help and --header |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8191 | as_fn_error $? "ambiguous option: \`$1' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8192 | Try \`$0 --help' for more information.";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8193 | --help | --hel | -h ) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8194 | $as_echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8195 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 8196 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 8197 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8198 | |
| 8199 | # This is an error. |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8200 | -*) as_fn_error $? "unrecognized option: \`$1' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8201 | Try \`$0 --help' for more information." ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8202 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8203 | *) as_fn_append ac_config_targets " $1" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8204 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8205 | |
| 8206 | esac |
| 8207 | shift |
| 8208 | done |
| 8209 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8210 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8211 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8212 | if $ac_cs_silent; then |
| 8213 | exec 6>/dev/null |
| 8214 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 8215 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8216 | |
| 8217 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8218 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8219 | if \$ac_cs_recheck; then |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8220 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8221 | shift |
| 8222 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 8223 | CONFIG_SHELL='$SHELL' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8224 | export CONFIG_SHELL |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8225 | exec "\$@" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8226 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8227 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8228 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8229 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8230 | exec 5>>config.log |
| 8231 | { |
| 8232 | echo |
| 8233 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 8234 | ## Running $as_me. ## |
| 8235 | _ASBOX |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8236 | $as_echo "$ac_log" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8237 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8238 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8239 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8240 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8241 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8242 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8243 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8244 | |
| 8245 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8246 | for ac_config_target in $ac_config_targets |
| 8247 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8248 | case $ac_config_target in |
| 8249 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 8250 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 8251 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 8252 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 8253 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 8254 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 8255 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 8256 | "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8257 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 8258 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 8259 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 8260 | "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] | 8261 | "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] | 8262 | "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] | 8263 | |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8264 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8265 | esac |
| 8266 | done |
| 8267 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8268 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8269 | # If the user did not use the arguments to specify the items to instantiate, |
| 8270 | # then the envvar interface is used. Set only those that are not. |
| 8271 | # We use the long form for the default assignment because of an extremely |
| 8272 | # bizarre bug on SunOS 4.1.3. |
| 8273 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8274 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8275 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 8276 | fi |
| 8277 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8278 | # Have a temporary directory for convenience. Make it in the build tree |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8279 | # 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] | 8280 | # creating and moving files from /tmp can sometimes cause problems. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8281 | # Hook for its removal unless debugging. |
| 8282 | # Note that there is a small window in which the directory will not be cleaned: |
| 8283 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8284 | $debug || |
| 8285 | { |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8286 | tmp= ac_tmp= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8287 | trap 'exit_status=$? |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8288 | : "${ac_tmp:=$tmp}" |
| 8289 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8290 | ' 0 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8291 | trap 'as_fn_exit 1' 1 2 13 15 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8292 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8293 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8294 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8295 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8296 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8297 | test -d "$tmp" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8298 | } || |
| 8299 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8300 | tmp=./conf$$-$RANDOM |
| 8301 | (umask 077 && mkdir "$tmp") |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8302 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8303 | ac_tmp=$tmp |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8304 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8305 | # Set up the scripts for CONFIG_FILES section. |
| 8306 | # No need to generate them if there are no CONFIG_FILES. |
| 8307 | # This happens for instance with `./config.status config.h'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8308 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8309 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8310 | |
| 8311 | ac_cr=`echo X | tr X '\015'` |
| 8312 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 8313 | # But we know of no other shell where ac_cr would be empty at this |
| 8314 | # point, so we can use a bashism as a fallback. |
| 8315 | if test "x$ac_cr" = x; then |
| 8316 | eval ac_cr=\$\'\\r\' |
| 8317 | fi |
| 8318 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 8319 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8320 | ac_cs_awk_cr='\\r' |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8321 | else |
| 8322 | ac_cs_awk_cr=$ac_cr |
| 8323 | fi |
| 8324 | |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8325 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8326 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8327 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8328 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8329 | { |
| 8330 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 8331 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 8332 | echo "_ACEOF" |
| 8333 | } >conf$$subs.sh || |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8334 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 8335 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8336 | ac_delim='%!_!# ' |
| 8337 | for ac_last_try in false false false false false :; do |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8338 | . ./conf$$subs.sh || |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8339 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8340 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8341 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 8342 | if test $ac_delim_n = $ac_delim_num; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8343 | break |
| 8344 | elif $ac_last_try; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8345 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8346 | else |
| 8347 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8348 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8349 | done |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8350 | rm -f conf$$subs.sh |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8351 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8352 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8353 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8354 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8355 | sed -n ' |
| 8356 | h |
| 8357 | s/^/S["/; s/!.*/"]=/ |
| 8358 | p |
| 8359 | g |
| 8360 | s/^[^!]*!// |
| 8361 | :repl |
| 8362 | t repl |
| 8363 | s/'"$ac_delim"'$// |
| 8364 | t delim |
| 8365 | :nl |
| 8366 | h |
| 8367 | s/\(.\{148\}\)..*/\1/ |
| 8368 | t more1 |
| 8369 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 8370 | p |
| 8371 | n |
| 8372 | b repl |
| 8373 | :more1 |
| 8374 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8375 | p |
| 8376 | g |
| 8377 | s/.\{148\}// |
| 8378 | t nl |
| 8379 | :delim |
| 8380 | h |
| 8381 | s/\(.\{148\}\)..*/\1/ |
| 8382 | t more2 |
| 8383 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 8384 | p |
| 8385 | b |
| 8386 | :more2 |
| 8387 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8388 | p |
| 8389 | g |
| 8390 | s/.\{148\}// |
| 8391 | t delim |
| 8392 | ' <conf$$subs.awk | sed ' |
| 8393 | /^[^""]/{ |
| 8394 | N |
| 8395 | s/\n// |
| 8396 | } |
| 8397 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8398 | rm -f conf$$subs.awk |
| 8399 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8400 | _ACAWK |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8401 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8402 | for (key in S) S_is_set[key] = 1 |
| 8403 | FS = "" |
| 8404 | |
| 8405 | } |
| 8406 | { |
| 8407 | line = $ 0 |
| 8408 | nfields = split(line, field, "@") |
| 8409 | substed = 0 |
| 8410 | len = length(field[1]) |
| 8411 | for (i = 2; i < nfields; i++) { |
| 8412 | key = field[i] |
| 8413 | keylen = length(key) |
| 8414 | if (S_is_set[key]) { |
| 8415 | value = S[key] |
| 8416 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 8417 | len += length(value) + length(field[++i]) |
| 8418 | substed = 1 |
| 8419 | } else |
| 8420 | len += 1 + keylen |
| 8421 | } |
| 8422 | |
| 8423 | print line |
| 8424 | } |
| 8425 | |
| 8426 | _ACAWK |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 8427 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8428 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8429 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 8430 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 8431 | else |
| 8432 | cat |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8433 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8434 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 8435 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8436 | |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8437 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 8438 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8439 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 8440 | # (actually we leave an empty line to preserve line numbers). |
| 8441 | if test "x$srcdir" = x.; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8442 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 8443 | h |
| 8444 | s/// |
| 8445 | s/^/:/ |
| 8446 | s/[ ]*$/:/ |
| 8447 | s/:\$(srcdir):/:/g |
| 8448 | s/:\${srcdir}:/:/g |
| 8449 | s/:@srcdir@:/:/g |
| 8450 | s/^:*// |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8451 | s/:*$// |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8452 | x |
| 8453 | s/\(=[ ]*\).*/\1/ |
| 8454 | G |
| 8455 | s/\n// |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8456 | s/^[^=]*=[ ]*$// |
| 8457 | }' |
| 8458 | fi |
| 8459 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8460 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8461 | fi # test -n "$CONFIG_FILES" |
| 8462 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8463 | # Set up the scripts for CONFIG_HEADERS section. |
| 8464 | # No need to generate them if there are no CONFIG_HEADERS. |
| 8465 | # This happens for instance with `./config.status Makefile'. |
| 8466 | if test -n "$CONFIG_HEADERS"; then |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8467 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8468 | BEGIN { |
| 8469 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8470 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8471 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 8472 | # here-document in config.status, that substitutes the proper values into |
| 8473 | # config.h.in to produce config.h. |
| 8474 | |
| 8475 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 8476 | # handling of long lines. |
| 8477 | ac_delim='%!_!# ' |
| 8478 | for ac_last_try in false false :; do |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8479 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 8480 | if test -z "$ac_tt"; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8481 | break |
| 8482 | elif $ac_last_try; then |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8483 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8484 | else |
| 8485 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 8486 | fi |
| 8487 | done |
| 8488 | |
| 8489 | # For the awk script, D is an array of macro values keyed by name, |
| 8490 | # likewise P contains macro parameters if any. Preserve backslash |
| 8491 | # newline sequences. |
| 8492 | |
| 8493 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 8494 | sed -n ' |
| 8495 | s/.\{148\}/&'"$ac_delim"'/g |
| 8496 | t rset |
| 8497 | :rset |
| 8498 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 8499 | t def |
| 8500 | d |
| 8501 | :def |
| 8502 | s/\\$// |
| 8503 | t bsnl |
| 8504 | s/["\\]/\\&/g |
| 8505 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 8506 | D["\1"]=" \3"/p |
| 8507 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 8508 | d |
| 8509 | :bsnl |
| 8510 | s/["\\]/\\&/g |
| 8511 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 8512 | D["\1"]=" \3\\\\\\n"\\/p |
| 8513 | t cont |
| 8514 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 8515 | t cont |
| 8516 | d |
| 8517 | :cont |
| 8518 | n |
| 8519 | s/.\{148\}/&'"$ac_delim"'/g |
| 8520 | t clear |
| 8521 | :clear |
| 8522 | s/\\$// |
| 8523 | t bsnlc |
| 8524 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 8525 | d |
| 8526 | :bsnlc |
| 8527 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 8528 | b cont |
| 8529 | ' <confdefs.h | sed ' |
| 8530 | s/'"$ac_delim"'/"\\\ |
| 8531 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8532 | |
| 8533 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8534 | for (key in D) D_is_set[key] = 1 |
| 8535 | FS = "" |
| 8536 | } |
| 8537 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 8538 | line = \$ 0 |
| 8539 | split(line, arg, " ") |
| 8540 | if (arg[1] == "#") { |
| 8541 | defundef = arg[2] |
| 8542 | mac1 = arg[3] |
| 8543 | } else { |
| 8544 | defundef = substr(arg[1], 2) |
| 8545 | mac1 = arg[2] |
| 8546 | } |
| 8547 | split(mac1, mac2, "(") #) |
| 8548 | macro = mac2[1] |
| 8549 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 8550 | if (D_is_set[macro]) { |
| 8551 | # Preserve the white space surrounding the "#". |
| 8552 | print prefix "define", macro P[macro] D[macro] |
| 8553 | next |
| 8554 | } else { |
| 8555 | # Replace #undef with comments. This is necessary, for example, |
| 8556 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 8557 | # on some systems where configure will not decide to define it. |
| 8558 | if (defundef == "undef") { |
| 8559 | print "/*", prefix defundef, macro, "*/" |
| 8560 | next |
| 8561 | } |
| 8562 | } |
| 8563 | } |
| 8564 | { print } |
| 8565 | _ACAWK |
| 8566 | _ACEOF |
| 8567 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8568 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8569 | fi # test -n "$CONFIG_HEADERS" |
| 8570 | |
| 8571 | |
| 8572 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 8573 | shift |
| 8574 | for ac_tag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8575 | do |
| 8576 | case $ac_tag in |
| 8577 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 8578 | esac |
| 8579 | case $ac_mode$ac_tag in |
| 8580 | :[FHL]*:*);; |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8581 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8582 | :[FH]-) ac_tag=-:-;; |
| 8583 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 8584 | esac |
| 8585 | ac_save_IFS=$IFS |
| 8586 | IFS=: |
| 8587 | set x $ac_tag |
| 8588 | IFS=$ac_save_IFS |
| 8589 | shift |
| 8590 | ac_file=$1 |
| 8591 | shift |
| 8592 | |
| 8593 | case $ac_mode in |
| 8594 | :L) ac_source=$1;; |
| 8595 | :[FH]) |
| 8596 | ac_file_inputs= |
| 8597 | for ac_f |
| 8598 | do |
| 8599 | case $ac_f in |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8600 | -) ac_f="$ac_tmp/stdin";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8601 | *) # Look for the file first in the build tree, then in the source tree |
| 8602 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 8603 | # because $ac_f cannot contain `:'. |
| 8604 | test -f "$ac_f" || |
| 8605 | case $ac_f in |
| 8606 | [\\/$]*) false;; |
| 8607 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 8608 | esac || |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8609 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8610 | esac |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8611 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 8612 | as_fn_append ac_file_inputs " '$ac_f'" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8613 | done |
| 8614 | |
| 8615 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 8616 | # use $as_me), people would be surprised to read: |
| 8617 | # /* config.h. Generated by config.status. */ |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8618 | configure_input='Generated from '` |
| 8619 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 8620 | `' by configure.' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8621 | if test x"$ac_file" != x-; then |
| 8622 | configure_input="$ac_file. $configure_input" |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 8624 | $as_echo "$as_me: creating $ac_file" >&6;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8625 | fi |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8626 | # Neutralize special characters interpreted by sed in replacement strings. |
| 8627 | case $configure_input in #( |
| 8628 | *\&* | *\|* | *\\* ) |
| 8629 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 8630 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 8631 | *) ac_sed_conf_input=$configure_input;; |
| 8632 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8633 | |
| 8634 | case $ac_tag in |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8635 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 8636 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8637 | esac |
| 8638 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8639 | esac |
| 8640 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8641 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8642 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8643 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 8644 | X"$ac_file" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8645 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8646 | $as_echo X"$ac_file" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8647 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8648 | s//\1/ |
| 8649 | q |
| 8650 | } |
| 8651 | /^X\(\/\/\)[^/].*/{ |
| 8652 | s//\1/ |
| 8653 | q |
| 8654 | } |
| 8655 | /^X\(\/\/\)$/{ |
| 8656 | s//\1/ |
| 8657 | q |
| 8658 | } |
| 8659 | /^X\(\/\).*/{ |
| 8660 | s//\1/ |
| 8661 | q |
| 8662 | } |
| 8663 | s/.*/./; q'` |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8664 | as_dir="$ac_dir"; as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8665 | ac_builddir=. |
| 8666 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8667 | case "$ac_dir" in |
| 8668 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8669 | *) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8670 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8671 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8672 | 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] | 8673 | case $ac_top_builddir_sub in |
| 8674 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8675 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 8676 | esac ;; |
| 8677 | esac |
| 8678 | ac_abs_top_builddir=$ac_pwd |
| 8679 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 8680 | # for backward compatibility: |
| 8681 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8682 | |
| 8683 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8684 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8685 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8686 | ac_top_srcdir=$ac_top_builddir_sub |
| 8687 | ac_abs_top_srcdir=$ac_pwd ;; |
| 8688 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8689 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8690 | ac_top_srcdir=$srcdir |
| 8691 | ac_abs_top_srcdir=$srcdir ;; |
| 8692 | *) # Relative name. |
| 8693 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 8694 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 8695 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8696 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8697 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 8698 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8699 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8700 | case $ac_mode in |
| 8701 | :F) |
| 8702 | # |
| 8703 | # CONFIG_FILE |
| 8704 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8705 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 8706 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8707 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8708 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8709 | # If the template does not know about datarootdir, expand it. |
| 8710 | # FIXME: This hack should be removed a few years after 2.60. |
| 8711 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8712 | ac_sed_dataroot=' |
| 8713 | /datarootdir/ { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8714 | p |
| 8715 | q |
| 8716 | } |
| 8717 | /@datadir@/p |
| 8718 | /@docdir@/p |
| 8719 | /@infodir@/p |
| 8720 | /@localedir@/p |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8721 | /@mandir@/p' |
| 8722 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8723 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 8724 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 8726 | $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] | 8727 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8728 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8729 | ac_datarootdir_hack=' |
| 8730 | s&@datadir@&$datadir&g |
| 8731 | s&@docdir@&$docdir&g |
| 8732 | s&@infodir@&$infodir&g |
| 8733 | s&@localedir@&$localedir&g |
| 8734 | s&@mandir@&$mandir&g |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8735 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8736 | esac |
| 8737 | _ACEOF |
| 8738 | |
| 8739 | # Neutralize VPATH when `$srcdir' = `.'. |
| 8740 | # Shell code in configure.ac might set extrasub. |
| 8741 | # FIXME: do we really want to maintain this feature? |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8742 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8743 | ac_sed_extra="$ac_vpsub |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8744 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8745 | _ACEOF |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8747 | :t |
| 8748 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8749 | s|@configure_input@|$ac_sed_conf_input|;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8750 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8751 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8752 | s&@srcdir@&$ac_srcdir&;t t |
| 8753 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 8754 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 8755 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 8756 | s&@builddir@&$ac_builddir&;t t |
| 8757 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 8758 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 8759 | $ac_datarootdir_hack |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8760 | " |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8761 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 8762 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8763 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8764 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8765 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 8766 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 8767 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8769 | which seems to be undefined. Please make sure it is defined" >&5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8770 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8771 | which seems to be undefined. Please make sure it is defined" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8772 | |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8773 | rm -f "$ac_tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8774 | case $ac_file in |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8775 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 8776 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8777 | esac \ |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8778 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8779 | ;; |
| 8780 | :H) |
| 8781 | # |
| 8782 | # CONFIG_HEADER |
| 8783 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8784 | if test x"$ac_file" != x-; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8785 | { |
| 8786 | $as_echo "/* $configure_input */" \ |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8787 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 8788 | } >"$ac_tmp/config.h" \ |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8789 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8790 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8791 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 8792 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8793 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8794 | rm -f "$ac_file" |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8795 | mv "$ac_tmp/config.h" "$ac_file" \ |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8796 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8797 | fi |
| 8798 | else |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8799 | $as_echo "/* $configure_input */" \ |
Sauw Ming | 2f91da0 | 2012-06-07 02:24:51 +0000 | [diff] [blame] | 8800 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8801 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8802 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8803 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8804 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8805 | |
| 8806 | esac |
| 8807 | |
| 8808 | done # for ac_tag |
| 8809 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8810 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8811 | as_fn_exit 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8812 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8813 | ac_clean_files=$ac_clean_files_save |
| 8814 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8815 | test $ac_write_fail = 0 || |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8816 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8817 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8818 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8819 | # configure is writing to config.log, and then calls config.status. |
| 8820 | # config.status does its own redirection, appending to config.log. |
| 8821 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8822 | # by configure, so config.status won't be able to write to it; its |
| 8823 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8824 | # effectively closing config.log, so it can be properly (re)opened and |
| 8825 | # appended to by config.status. When coming back to configure, we |
| 8826 | # need to make the FD available again. |
| 8827 | if test "$no_create" != yes; then |
| 8828 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8829 | ac_config_status_args= |
| 8830 | test "$silent" = yes && |
| 8831 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8832 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8833 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8834 | exec 5>>config.log |
| 8835 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8836 | # would make configure fail if this is the last instruction. |
Sauw Ming | 4e4ec7e | 2012-06-01 04:27:01 +0000 | [diff] [blame] | 8837 | $ac_cs_success || as_fn_exit 1 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8838 | fi |
| 8839 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 8841 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 8842 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8843 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8844 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8845 | |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8847 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8848 | 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] | 8849 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8850 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8851 | - 'user.mak' |
| 8852 | - 'pjlib/include/pj/config_site.h' |
| 8853 | |
| 8854 | The next step now is to run 'make dep' and 'make'. |
| 8855 | " >&5 |
Benny Prijono | 28d3c56 | 2012-03-30 07:10:13 +0000 | [diff] [blame] | 8856 | $as_echo " |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8857 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8858 | 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] | 8859 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8860 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8861 | - 'user.mak' |
| 8862 | - 'pjlib/include/pj/config_site.h' |
| 8863 | |
| 8864 | The next step now is to run 'make dep' and 'make'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8865 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8866 | |