Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65 for pjproject 1.x. |
| 4 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5 | # |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 | # Inc. |
| 9 | # |
| 10 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 16 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 26 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 32 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 33 | fi |
| 34 | |
| 35 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 73 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 81 | fi |
| 82 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 92 | case $0 in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 93 | *[\\/]* ) as_myself=$0 ;; |
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 95 | for as_dir in $PATH |
| 96 | do |
| 97 | IFS=$as_save_IFS |
| 98 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 101 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 102 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 103 | ;; |
| 104 | esac |
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 | # in which case we are not to be found in the path. |
| 107 | if test "x$as_myself" = x; then |
| 108 | as_myself=$0 |
| 109 | fi |
| 110 | if test ! -f "$as_myself"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 112 | exit 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 113 | fi |
| 114 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 115 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 117 | # suppresses any "Segmentation fault" message there. '((' could |
| 118 | # trigger a bug in pdksh 5.2.14. |
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 120 | do eval test x\${$as_var+set} = xset \ |
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 122 | done |
| 123 | PS1='$ ' |
| 124 | PS2='> ' |
| 125 | PS4='+ ' |
| 126 | |
| 127 | # NLS nuisances. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 132 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 133 | # CDPATH. |
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 135 | |
| 136 | if test "x$CONFIG_SHELL" = x; then |
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 138 | emulate sh |
| 139 | NULLCMD=: |
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 141 | # is contrary to our usage. Disable this feature. |
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 143 | setopt NO_GLOB_SUBST |
| 144 | else |
| 145 | case \`(set -o) 2>/dev/null\` in #( |
| 146 | *posix*) : |
| 147 | set -o posix ;; #( |
| 148 | *) : |
| 149 | ;; |
| 150 | esac |
| 151 | fi |
| 152 | " |
| 153 | as_required="as_fn_return () { (exit \$1); } |
| 154 | as_fn_success () { as_fn_return 0; } |
| 155 | as_fn_failure () { as_fn_return 1; } |
| 156 | as_fn_ret_success () { return 0; } |
| 157 | as_fn_ret_failure () { return 1; } |
| 158 | |
| 159 | exitcode=0 |
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 165 | |
| 166 | else |
| 167 | exitcode=1; echo positional parameters were not saved. |
| 168 | fi |
| 169 | test x\$exitcode = x0 || exit 1" |
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 174 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 175 | if (eval "$as_required") 2>/dev/null; then : |
| 176 | as_have_required=yes |
| 177 | else |
| 178 | as_have_required=no |
| 179 | fi |
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 181 | |
| 182 | else |
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 184 | as_found=false |
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 186 | do |
| 187 | IFS=$as_save_IFS |
| 188 | test -z "$as_dir" && as_dir=. |
| 189 | as_found=: |
| 190 | case $as_dir in #( |
| 191 | /*) |
| 192 | for as_base in sh bash ksh sh5; do |
| 193 | # Try only shells that exist, to save several forks. |
| 194 | as_shell=$as_dir/$as_base |
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | break 2 |
| 200 | fi |
| 201 | fi |
| 202 | done;; |
| 203 | esac |
| 204 | as_found=false |
| 205 | done |
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 209 | fi; } |
| 210 | IFS=$as_save_IFS |
| 211 | |
| 212 | |
| 213 | if test "x$CONFIG_SHELL" != x; then : |
| 214 | # We cannot yet assume a decent shell, so we have to provide a |
| 215 | # neutralization value for shells without unset; and this also |
| 216 | # works around shells that cannot unset nonexistent variables. |
| 217 | BASH_ENV=/dev/null |
| 218 | ENV=/dev/null |
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 220 | export CONFIG_SHELL |
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 222 | fi |
| 223 | |
| 224 | if test x$as_have_required = xno; then : |
| 225 | $as_echo "$0: This script requires a shell more modern than all" |
| 226 | $as_echo "$0: the shells that I found on your system." |
| 227 | if test x${ZSH_VERSION+set} = xset ; then |
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 230 | else |
| 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 232 | $0: including any error possibly output before this |
| 233 | $0: message. Then install a modern shell, or manually run |
| 234 | $0: the script under such a shell if you do have one." |
| 235 | fi |
| 236 | exit 1 |
| 237 | fi |
| 238 | fi |
| 239 | fi |
| 240 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 241 | export SHELL |
| 242 | # Unset more variables known to interfere with behavior of common tools. |
| 243 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 245 | |
| 246 | ## --------------------- ## |
| 247 | ## M4sh Shell Functions. ## |
| 248 | ## --------------------- ## |
| 249 | # as_fn_unset VAR |
| 250 | # --------------- |
| 251 | # Portably unset VAR. |
| 252 | as_fn_unset () |
| 253 | { |
| 254 | { eval $1=; unset $1;} |
| 255 | } |
| 256 | as_unset=as_fn_unset |
| 257 | |
| 258 | # as_fn_set_status STATUS |
| 259 | # ----------------------- |
| 260 | # Set $? to STATUS, without forking. |
| 261 | as_fn_set_status () |
| 262 | { |
| 263 | return $1 |
| 264 | } # as_fn_set_status |
| 265 | |
| 266 | # as_fn_exit STATUS |
| 267 | # ----------------- |
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 269 | as_fn_exit () |
| 270 | { |
| 271 | set +e |
| 272 | as_fn_set_status $1 |
| 273 | exit $1 |
| 274 | } # as_fn_exit |
| 275 | |
| 276 | # as_fn_mkdir_p |
| 277 | # ------------- |
| 278 | # Create "$as_dir" as a directory, including parents if necessary. |
| 279 | as_fn_mkdir_p () |
| 280 | { |
| 281 | |
| 282 | case $as_dir in #( |
| 283 | -*) as_dir=./$as_dir;; |
| 284 | esac |
| 285 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 286 | as_dirs= |
| 287 | while :; do |
| 288 | case $as_dir in #( |
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 290 | *) as_qdir=$as_dir;; |
| 291 | esac |
| 292 | as_dirs="'$as_qdir' $as_dirs" |
| 293 | as_dir=`$as_dirname -- "$as_dir" || |
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 296 | X"$as_dir" : 'X\(//\)$' \| \ |
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 298 | $as_echo X"$as_dir" | |
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 300 | s//\1/ |
| 301 | q |
| 302 | } |
| 303 | /^X\(\/\/\)[^/].*/{ |
| 304 | s//\1/ |
| 305 | q |
| 306 | } |
| 307 | /^X\(\/\/\)$/{ |
| 308 | s//\1/ |
| 309 | q |
| 310 | } |
| 311 | /^X\(\/\).*/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | s/.*/./; q'` |
| 316 | test -d "$as_dir" && break |
| 317 | done |
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 320 | |
| 321 | |
| 322 | } # as_fn_mkdir_p |
| 323 | # as_fn_append VAR VALUE |
| 324 | # ---------------------- |
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 326 | # advantage of any shell optimizations that allow amortized linear growth over |
| 327 | # repeated appends, instead of the typical quadratic growth present in naive |
| 328 | # implementations. |
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 330 | eval 'as_fn_append () |
| 331 | { |
| 332 | eval $1+=\$2 |
| 333 | }' |
| 334 | else |
| 335 | as_fn_append () |
| 336 | { |
| 337 | eval $1=\$$1\$2 |
| 338 | } |
| 339 | fi # as_fn_append |
| 340 | |
| 341 | # as_fn_arith ARG... |
| 342 | # ------------------ |
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 345 | # must be portable across $(()) and expr. |
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 347 | eval 'as_fn_arith () |
| 348 | { |
| 349 | as_val=$(( $* )) |
| 350 | }' |
| 351 | else |
| 352 | as_fn_arith () |
| 353 | { |
| 354 | as_val=`expr "$@" || test $? -eq 1` |
| 355 | } |
| 356 | fi # as_fn_arith |
| 357 | |
| 358 | |
| 359 | # as_fn_error ERROR [LINENO LOG_FD] |
| 360 | # --------------------------------- |
| 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 363 | # script with status $?, using 1 if that was 0. |
| 364 | as_fn_error () |
| 365 | { |
| 366 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 367 | if test "$3"; then |
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 370 | fi |
| 371 | $as_echo "$as_me: error: $1" >&2 |
| 372 | as_fn_exit $as_status |
| 373 | } # as_fn_error |
| 374 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 377 | as_expr=expr |
| 378 | else |
| 379 | as_expr=false |
| 380 | fi |
| 381 | |
| 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 383 | as_basename=basename |
| 384 | else |
| 385 | as_basename=false |
| 386 | fi |
| 387 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 389 | as_dirname=dirname |
| 390 | else |
| 391 | as_dirname=false |
| 392 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 393 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 394 | as_me=`$as_basename -- "$0" || |
| 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 396 | X"$0" : 'X\(//\)$' \| \ |
| 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 398 | $as_echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 400 | s//\1/ |
| 401 | q |
| 402 | } |
| 403 | /^X\/\(\/\/\)$/{ |
| 404 | s//\1/ |
| 405 | q |
| 406 | } |
| 407 | /^X\/\(\/\).*/{ |
| 408 | s//\1/ |
| 409 | q |
| 410 | } |
| 411 | s/.*/./; q'` |
| 412 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 413 | # Avoid depending upon Character Ranges. |
| 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 417 | as_cr_digits='0123456789' |
| 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 419 | |
| 420 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 426 | sed -n ' |
| 427 | p |
| 428 | /[$]LINENO/= |
| 429 | ' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 430 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 431 | s/[$]LINENO.*/&-/ |
| 432 | t lineno |
| 433 | b |
| 434 | :lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 435 | N |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 436 | :loop |
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 438 | t loop |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 439 | s/-\n.*// |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 440 | ' >$as_me.lineno && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 441 | chmod +x "$as_me.lineno" || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 443 | |
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 445 | # (the dirname of $[0] is not the place where we might find the |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 446 | # original and so on. Autoconf is especially sensitive to this). |
| 447 | . "./$as_me.lineno" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 448 | # Exit status is that of the last command. |
| 449 | exit |
| 450 | } |
| 451 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 452 | ECHO_C= ECHO_N= ECHO_T= |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 453 | case `echo -n x` in #((((( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 454 | -n*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 455 | case `echo 'xy\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 457 | xy) ECHO_C='\c';; |
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 459 | ECHO_T=' ';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 460 | esac;; |
| 461 | *) |
| 462 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 463 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 464 | |
| 465 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 466 | if test -d conf$$.dir; then |
| 467 | rm -f conf$$.dir/conf$$.file |
| 468 | else |
| 469 | rm -f conf$$.dir |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 470 | mkdir conf$$.dir 2>/dev/null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 471 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 472 | if (echo >conf$$.file) 2>/dev/null; then |
| 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 474 | as_ln_s='ln -s' |
| 475 | # ... but there are two gotchas: |
| 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 478 | # In both cases, we have to default to `cp -p'. |
| 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 480 | as_ln_s='cp -p' |
| 481 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 482 | as_ln_s=ln |
| 483 | else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 484 | as_ln_s='cp -p' |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 485 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 486 | else |
| 487 | as_ln_s='cp -p' |
| 488 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 490 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 491 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 492 | if mkdir -p . 2>/dev/null; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 493 | as_mkdir_p='mkdir -p "$as_dir"' |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 494 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 495 | test -d ./-p && rmdir ./-p |
| 496 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 497 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 498 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 499 | if test -x / >/dev/null 2>&1; then |
| 500 | as_test_x='test -x' |
| 501 | else |
| 502 | if ls -dL / >/dev/null 2>&1; then |
| 503 | as_ls_L_option=L |
| 504 | else |
| 505 | as_ls_L_option= |
| 506 | fi |
| 507 | as_test_x=' |
| 508 | eval sh -c '\'' |
| 509 | if test -d "$1"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 510 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 511 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 512 | case $1 in #( |
| 513 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 514 | esac; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 516 | ???[sx]*):;;*)false;;esac;fi |
| 517 | '\'' sh |
| 518 | ' |
| 519 | fi |
| 520 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 521 | |
| 522 | # Sed expression to map a string onto a valid CPP name. |
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 524 | |
| 525 | # Sed expression to map a string onto a valid variable name. |
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 528 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 530 | exec 6>&1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 531 | |
| 532 | # Name of the host. |
| 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 534 | # so uname gets run too. |
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 536 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 537 | # |
| 538 | # Initializations. |
| 539 | # |
| 540 | ac_default_prefix=/usr/local |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 541 | ac_clean_files= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 542 | ac_config_libobj_dir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 543 | LIBOBJS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 544 | cross_compiling=no |
| 545 | subdirs= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 546 | MFLAGS= |
| 547 | MAKEFLAGS= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 548 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 549 | # Identity of this package. |
| 550 | PACKAGE_NAME='pjproject' |
| 551 | PACKAGE_TARNAME='pjproject' |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 552 | PACKAGE_VERSION='1.x' |
| 553 | PACKAGE_STRING='pjproject 1.x' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 554 | PACKAGE_BUGREPORT='' |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 555 | PACKAGE_URL='' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 556 | |
| 557 | # Factoring default headers for most tests. |
| 558 | ac_includes_default="\ |
| 559 | #include <stdio.h> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 560 | #ifdef HAVE_SYS_TYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 561 | # include <sys/types.h> |
| 562 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 563 | #ifdef HAVE_SYS_STAT_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 564 | # include <sys/stat.h> |
| 565 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 566 | #ifdef STDC_HEADERS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 567 | # include <stdlib.h> |
| 568 | # include <stddef.h> |
| 569 | #else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 570 | # ifdef HAVE_STDLIB_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 571 | # include <stdlib.h> |
| 572 | # endif |
| 573 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 574 | #ifdef HAVE_STRING_H |
| 575 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 576 | # include <memory.h> |
| 577 | # endif |
| 578 | # include <string.h> |
| 579 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 580 | #ifdef HAVE_STRINGS_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 581 | # include <strings.h> |
| 582 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 583 | #ifdef HAVE_INTTYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 584 | # include <inttypes.h> |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 585 | #endif |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 586 | #ifdef HAVE_STDINT_H |
| 587 | # include <stdint.h> |
| 588 | #endif |
| 589 | #ifdef HAVE_UNISTD_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 590 | # include <unistd.h> |
| 591 | #endif" |
| 592 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 593 | ac_subst_vars='LTLIBOBJS |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 594 | LIBOBJS |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 595 | ac_main_obj |
| 596 | ac_host |
| 597 | ac_linux_poll |
| 598 | ac_cross_compile |
| 599 | libcrypto_present |
| 600 | libssl_present |
| 601 | openssl_h_present |
| 602 | ac_no_ssl |
| 603 | ac_v4l2_ldflags |
| 604 | ac_v4l2_cflags |
| 605 | ac_ffmpeg_ldflags |
| 606 | ac_ffmpeg_cflags |
| 607 | ac_has_ffmpeg |
| 608 | ac_sdl_ldflags |
| 609 | ac_sdl_cflags |
| 610 | ac_no_ilbc_codec |
| 611 | ac_no_speex_codec |
| 612 | ac_no_g7221_codec |
| 613 | ac_no_g722_codec |
| 614 | ac_no_gsm_codec |
| 615 | ac_no_l16_codec |
| 616 | ac_no_g711_codec |
| 617 | ac_no_speex_aec |
| 618 | ac_no_large_filter |
| 619 | ac_no_small_filter |
| 620 | ac_qt_cflags |
| 621 | ac_pjmedia_video_has_qt |
| 622 | ac_ios_cflags |
| 623 | ac_pjmedia_video |
| 624 | ac_pa_use_oss |
| 625 | ac_pa_use_alsa |
| 626 | ac_pa_cflags |
| 627 | ac_external_pa |
| 628 | ac_pjmedia_snd |
| 629 | ac_external_gsm |
| 630 | ac_external_speex |
| 631 | ac_os_objs |
| 632 | EGREP |
| 633 | GREP |
| 634 | CPP |
| 635 | ac_build_mak_vars |
| 636 | ac_pjdir |
| 637 | CC_CFLAGS |
| 638 | CC_OPTIMIZE |
| 639 | CC_DEF |
| 640 | CC_INC |
| 641 | CC_OUT |
| 642 | LIBEXT2 |
| 643 | LIBEXT |
| 644 | RANLIB |
| 645 | LDOUT |
| 646 | LD |
| 647 | AR |
| 648 | ac_ct_CXX |
| 649 | CXXFLAGS |
| 650 | CXX |
| 651 | OBJEXT |
| 652 | EXEEXT |
| 653 | ac_ct_CC |
| 654 | CPPFLAGS |
| 655 | LDFLAGS |
| 656 | CFLAGS |
| 657 | CC |
| 658 | target_os |
| 659 | target_vendor |
| 660 | target_cpu |
| 661 | target |
| 662 | host_os |
| 663 | host_vendor |
| 664 | host_cpu |
| 665 | host |
| 666 | build_os |
| 667 | build_vendor |
| 668 | build_cpu |
| 669 | build |
| 670 | target_alias |
| 671 | host_alias |
| 672 | build_alias |
| 673 | LIBS |
| 674 | ECHO_T |
| 675 | ECHO_N |
| 676 | ECHO_C |
| 677 | DEFS |
| 678 | mandir |
| 679 | localedir |
| 680 | libdir |
| 681 | psdir |
| 682 | pdfdir |
| 683 | dvidir |
| 684 | htmldir |
| 685 | infodir |
| 686 | docdir |
| 687 | oldincludedir |
| 688 | includedir |
| 689 | localstatedir |
| 690 | sharedstatedir |
| 691 | sysconfdir |
| 692 | datadir |
| 693 | datarootdir |
| 694 | libexecdir |
| 695 | sbindir |
| 696 | bindir |
| 697 | program_transform_name |
| 698 | prefix |
| 699 | exec_prefix |
| 700 | PACKAGE_URL |
| 701 | PACKAGE_BUGREPORT |
| 702 | PACKAGE_STRING |
| 703 | PACKAGE_VERSION |
| 704 | PACKAGE_TARNAME |
| 705 | PACKAGE_NAME |
| 706 | PATH_SEPARATOR |
| 707 | SHELL' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 708 | ac_subst_files='' |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 709 | ac_user_opts=' |
| 710 | enable_option_checking |
| 711 | enable_floating_point |
| 712 | enable_epoll |
| 713 | with_external_speex |
| 714 | with_external_gsm |
| 715 | enable_sound |
| 716 | with_external_pa |
| 717 | enable_oss |
| 718 | enable_ext_sound |
| 719 | enable_small_filter |
| 720 | enable_large_filter |
| 721 | enable_speex_aec |
| 722 | enable_g711_codec |
| 723 | enable_l16_codec |
| 724 | enable_gsm_codec |
| 725 | enable_g722_codec |
| 726 | enable_g7221_codec |
| 727 | enable_speex_codec |
| 728 | enable_ilbc_codec |
| 729 | enable_libsamplerate |
| 730 | enable_sdl |
| 731 | enable_ffmpeg |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame^] | 732 | with_ffmpeg |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 733 | enable_v4l2 |
| 734 | enable_ipp |
| 735 | with_ipp |
| 736 | with_ipp_samples |
| 737 | with_ipp_arch |
| 738 | enable_ssl |
| 739 | ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 740 | ac_precious_vars='build_alias |
| 741 | host_alias |
| 742 | target_alias |
| 743 | CC |
| 744 | CFLAGS |
| 745 | LDFLAGS |
| 746 | LIBS |
| 747 | CPPFLAGS |
| 748 | CXX |
| 749 | CXXFLAGS |
| 750 | CCC |
| 751 | CPP' |
| 752 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 753 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 754 | # Initialize some variables set by options. |
| 755 | ac_init_help= |
| 756 | ac_init_version=false |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 757 | ac_unrecognized_opts= |
| 758 | ac_unrecognized_sep= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 759 | # The variables have the same names as the options, with |
| 760 | # dashes changed to underlines. |
| 761 | cache_file=/dev/null |
| 762 | exec_prefix=NONE |
| 763 | no_create= |
| 764 | no_recursion= |
| 765 | prefix=NONE |
| 766 | program_prefix=NONE |
| 767 | program_suffix=NONE |
| 768 | program_transform_name=s,x,x, |
| 769 | silent= |
| 770 | site= |
| 771 | srcdir= |
| 772 | verbose= |
| 773 | x_includes=NONE |
| 774 | x_libraries=NONE |
| 775 | |
| 776 | # Installation directory options. |
| 777 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 778 | # and all the variables that are supposed to be based on exec_prefix |
| 779 | # by default will actually change. |
| 780 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 781 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 782 | bindir='${exec_prefix}/bin' |
| 783 | sbindir='${exec_prefix}/sbin' |
| 784 | libexecdir='${exec_prefix}/libexec' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 785 | datarootdir='${prefix}/share' |
| 786 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 787 | sysconfdir='${prefix}/etc' |
| 788 | sharedstatedir='${prefix}/com' |
| 789 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 790 | includedir='${prefix}/include' |
| 791 | oldincludedir='/usr/include' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 792 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 793 | infodir='${datarootdir}/info' |
| 794 | htmldir='${docdir}' |
| 795 | dvidir='${docdir}' |
| 796 | pdfdir='${docdir}' |
| 797 | psdir='${docdir}' |
| 798 | libdir='${exec_prefix}/lib' |
| 799 | localedir='${datarootdir}/locale' |
| 800 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 801 | |
| 802 | ac_prev= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 803 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 804 | for ac_option |
| 805 | do |
| 806 | # If the previous option needs an argument, assign it. |
| 807 | if test -n "$ac_prev"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 808 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 809 | ac_prev= |
| 810 | continue |
| 811 | fi |
| 812 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 813 | case $ac_option in |
| 814 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 815 | *) ac_optarg=yes ;; |
| 816 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 817 | |
| 818 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 819 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 820 | case $ac_dashdash$ac_option in |
| 821 | --) |
| 822 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 823 | |
| 824 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 825 | ac_prev=bindir ;; |
| 826 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 827 | bindir=$ac_optarg ;; |
| 828 | |
| 829 | -build | --build | --buil | --bui | --bu) |
| 830 | ac_prev=build_alias ;; |
| 831 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 832 | build_alias=$ac_optarg ;; |
| 833 | |
| 834 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 835 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 836 | ac_prev=cache_file ;; |
| 837 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 838 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 839 | cache_file=$ac_optarg ;; |
| 840 | |
| 841 | --config-cache | -C) |
| 842 | cache_file=config.cache ;; |
| 843 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 844 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 845 | ac_prev=datadir ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 846 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 847 | datadir=$ac_optarg ;; |
| 848 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 849 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 850 | | --dataroo | --dataro | --datar) |
| 851 | ac_prev=datarootdir ;; |
| 852 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 853 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 854 | datarootdir=$ac_optarg ;; |
| 855 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 856 | -disable-* | --disable-*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 857 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 858 | # Reject names that are not valid shell variable names. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 859 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 860 | as_fn_error "invalid feature name: $ac_useropt" |
| 861 | ac_useropt_orig=$ac_useropt |
| 862 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 863 | case $ac_user_opts in |
| 864 | *" |
| 865 | "enable_$ac_useropt" |
| 866 | "*) ;; |
| 867 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 868 | ac_unrecognized_sep=', ';; |
| 869 | esac |
| 870 | eval enable_$ac_useropt=no ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 871 | |
| 872 | -docdir | --docdir | --docdi | --doc | --do) |
| 873 | ac_prev=docdir ;; |
| 874 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 875 | docdir=$ac_optarg ;; |
| 876 | |
| 877 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 878 | ac_prev=dvidir ;; |
| 879 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 880 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 881 | |
| 882 | -enable-* | --enable-*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 883 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 884 | # Reject names that are not valid shell variable names. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 885 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 886 | as_fn_error "invalid feature name: $ac_useropt" |
| 887 | ac_useropt_orig=$ac_useropt |
| 888 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 889 | case $ac_user_opts in |
| 890 | *" |
| 891 | "enable_$ac_useropt" |
| 892 | "*) ;; |
| 893 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 894 | ac_unrecognized_sep=', ';; |
| 895 | esac |
| 896 | eval enable_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 897 | |
| 898 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 899 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 900 | | --exec | --exe | --ex) |
| 901 | ac_prev=exec_prefix ;; |
| 902 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 903 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 904 | | --exec=* | --exe=* | --ex=*) |
| 905 | exec_prefix=$ac_optarg ;; |
| 906 | |
| 907 | -gas | --gas | --ga | --g) |
| 908 | # Obsolete; use --with-gas. |
| 909 | with_gas=yes ;; |
| 910 | |
| 911 | -help | --help | --hel | --he | -h) |
| 912 | ac_init_help=long ;; |
| 913 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 914 | ac_init_help=recursive ;; |
| 915 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 916 | ac_init_help=short ;; |
| 917 | |
| 918 | -host | --host | --hos | --ho) |
| 919 | ac_prev=host_alias ;; |
| 920 | -host=* | --host=* | --hos=* | --ho=*) |
| 921 | host_alias=$ac_optarg ;; |
| 922 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 923 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 924 | ac_prev=htmldir ;; |
| 925 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 926 | | --ht=*) |
| 927 | htmldir=$ac_optarg ;; |
| 928 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 929 | -includedir | --includedir | --includedi | --included | --include \ |
| 930 | | --includ | --inclu | --incl | --inc) |
| 931 | ac_prev=includedir ;; |
| 932 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 933 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 934 | includedir=$ac_optarg ;; |
| 935 | |
| 936 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 937 | ac_prev=infodir ;; |
| 938 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 939 | infodir=$ac_optarg ;; |
| 940 | |
| 941 | -libdir | --libdir | --libdi | --libd) |
| 942 | ac_prev=libdir ;; |
| 943 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 944 | libdir=$ac_optarg ;; |
| 945 | |
| 946 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 947 | | --libexe | --libex | --libe) |
| 948 | ac_prev=libexecdir ;; |
| 949 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 950 | | --libexe=* | --libex=* | --libe=*) |
| 951 | libexecdir=$ac_optarg ;; |
| 952 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 953 | -localedir | --localedir | --localedi | --localed | --locale) |
| 954 | ac_prev=localedir ;; |
| 955 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 956 | localedir=$ac_optarg ;; |
| 957 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 958 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 959 | | --localstate | --localstat | --localsta | --localst | --locals) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 960 | ac_prev=localstatedir ;; |
| 961 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 962 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 963 | localstatedir=$ac_optarg ;; |
| 964 | |
| 965 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 966 | ac_prev=mandir ;; |
| 967 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 968 | mandir=$ac_optarg ;; |
| 969 | |
| 970 | -nfp | --nfp | --nf) |
| 971 | # Obsolete; use --without-fp. |
| 972 | with_fp=no ;; |
| 973 | |
| 974 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 975 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 976 | no_create=yes ;; |
| 977 | |
| 978 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 979 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 980 | no_recursion=yes ;; |
| 981 | |
| 982 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 983 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 984 | | --oldin | --oldi | --old | --ol | --o) |
| 985 | ac_prev=oldincludedir ;; |
| 986 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 987 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 988 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 989 | oldincludedir=$ac_optarg ;; |
| 990 | |
| 991 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 992 | ac_prev=prefix ;; |
| 993 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 994 | prefix=$ac_optarg ;; |
| 995 | |
| 996 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 997 | | --program-pre | --program-pr | --program-p) |
| 998 | ac_prev=program_prefix ;; |
| 999 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1000 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1001 | program_prefix=$ac_optarg ;; |
| 1002 | |
| 1003 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1004 | | --program-suf | --program-su | --program-s) |
| 1005 | ac_prev=program_suffix ;; |
| 1006 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1007 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1008 | program_suffix=$ac_optarg ;; |
| 1009 | |
| 1010 | -program-transform-name | --program-transform-name \ |
| 1011 | | --program-transform-nam | --program-transform-na \ |
| 1012 | | --program-transform-n | --program-transform- \ |
| 1013 | | --program-transform | --program-transfor \ |
| 1014 | | --program-transfo | --program-transf \ |
| 1015 | | --program-trans | --program-tran \ |
| 1016 | | --progr-tra | --program-tr | --program-t) |
| 1017 | ac_prev=program_transform_name ;; |
| 1018 | -program-transform-name=* | --program-transform-name=* \ |
| 1019 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1020 | | --program-transform-n=* | --program-transform-=* \ |
| 1021 | | --program-transform=* | --program-transfor=* \ |
| 1022 | | --program-transfo=* | --program-transf=* \ |
| 1023 | | --program-trans=* | --program-tran=* \ |
| 1024 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1025 | program_transform_name=$ac_optarg ;; |
| 1026 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1027 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1028 | ac_prev=pdfdir ;; |
| 1029 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1030 | pdfdir=$ac_optarg ;; |
| 1031 | |
| 1032 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1033 | ac_prev=psdir ;; |
| 1034 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1035 | psdir=$ac_optarg ;; |
| 1036 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1037 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1038 | | -silent | --silent | --silen | --sile | --sil) |
| 1039 | silent=yes ;; |
| 1040 | |
| 1041 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1042 | ac_prev=sbindir ;; |
| 1043 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1044 | | --sbi=* | --sb=*) |
| 1045 | sbindir=$ac_optarg ;; |
| 1046 | |
| 1047 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1048 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1049 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1050 | | --sha | --sh) |
| 1051 | ac_prev=sharedstatedir ;; |
| 1052 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1053 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1054 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1055 | | --sha=* | --sh=*) |
| 1056 | sharedstatedir=$ac_optarg ;; |
| 1057 | |
| 1058 | -site | --site | --sit) |
| 1059 | ac_prev=site ;; |
| 1060 | -site=* | --site=* | --sit=*) |
| 1061 | site=$ac_optarg ;; |
| 1062 | |
| 1063 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1064 | ac_prev=srcdir ;; |
| 1065 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1066 | srcdir=$ac_optarg ;; |
| 1067 | |
| 1068 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1069 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1070 | ac_prev=sysconfdir ;; |
| 1071 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1072 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1073 | sysconfdir=$ac_optarg ;; |
| 1074 | |
| 1075 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1076 | ac_prev=target_alias ;; |
| 1077 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1078 | target_alias=$ac_optarg ;; |
| 1079 | |
| 1080 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1081 | verbose=yes ;; |
| 1082 | |
| 1083 | -version | --version | --versio | --versi | --vers | -V) |
| 1084 | ac_init_version=: ;; |
| 1085 | |
| 1086 | -with-* | --with-*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1087 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1088 | # Reject names that are not valid shell variable names. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1089 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1090 | as_fn_error "invalid package name: $ac_useropt" |
| 1091 | ac_useropt_orig=$ac_useropt |
| 1092 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1093 | case $ac_user_opts in |
| 1094 | *" |
| 1095 | "with_$ac_useropt" |
| 1096 | "*) ;; |
| 1097 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1098 | ac_unrecognized_sep=', ';; |
| 1099 | esac |
| 1100 | eval with_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1101 | |
| 1102 | -without-* | --without-*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1103 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1104 | # Reject names that are not valid shell variable names. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1105 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1106 | as_fn_error "invalid package name: $ac_useropt" |
| 1107 | ac_useropt_orig=$ac_useropt |
| 1108 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1109 | case $ac_user_opts in |
| 1110 | *" |
| 1111 | "with_$ac_useropt" |
| 1112 | "*) ;; |
| 1113 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1114 | ac_unrecognized_sep=', ';; |
| 1115 | esac |
| 1116 | eval with_$ac_useropt=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1117 | |
| 1118 | --x) |
| 1119 | # Obsolete; use --with-x. |
| 1120 | with_x=yes ;; |
| 1121 | |
| 1122 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1123 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1124 | ac_prev=x_includes ;; |
| 1125 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1126 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1127 | x_includes=$ac_optarg ;; |
| 1128 | |
| 1129 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1130 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1131 | ac_prev=x_libraries ;; |
| 1132 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1133 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1134 | x_libraries=$ac_optarg ;; |
| 1135 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1136 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1137 | Try \`$0 --help' for more information." |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1138 | ;; |
| 1139 | |
| 1140 | *=*) |
| 1141 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1142 | # Reject names that are not valid shell variable names. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1143 | case $ac_envvar in #( |
| 1144 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1145 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1146 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1147 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1148 | export $ac_envvar ;; |
| 1149 | |
| 1150 | *) |
| 1151 | # FIXME: should be removed in autoconf 3.0. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1152 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1153 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1154 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1155 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1156 | ;; |
| 1157 | |
| 1158 | esac |
| 1159 | done |
| 1160 | |
| 1161 | if test -n "$ac_prev"; then |
| 1162 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1163 | as_fn_error "missing argument to $ac_option" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1164 | fi |
| 1165 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1166 | if test -n "$ac_unrecognized_opts"; then |
| 1167 | case $enable_option_checking in |
| 1168 | no) ;; |
| 1169 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1170 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1171 | esac |
| 1172 | fi |
| 1173 | |
| 1174 | # Check all directory arguments for consistency. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1175 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1176 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1177 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1178 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1179 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1180 | eval ac_val=\$$ac_var |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1181 | # Remove trailing slashes. |
| 1182 | case $ac_val in |
| 1183 | */ ) |
| 1184 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1185 | eval $ac_var=\$ac_val;; |
| 1186 | esac |
| 1187 | # Be sure to have absolute directory names. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1188 | case $ac_val in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1189 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1190 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1191 | esac |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1192 | 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] | 1193 | done |
| 1194 | |
| 1195 | # There might be people who depend on the old broken behavior: `$host' |
| 1196 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1197 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1198 | build=$build_alias |
| 1199 | host=$host_alias |
| 1200 | target=$target_alias |
| 1201 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1202 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1203 | if test "x$host_alias" != x; then |
| 1204 | if test "x$build_alias" = x; then |
| 1205 | cross_compiling=maybe |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1206 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1207 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1208 | elif test "x$build_alias" != "x$host_alias"; then |
| 1209 | cross_compiling=yes |
| 1210 | fi |
| 1211 | fi |
| 1212 | |
| 1213 | ac_tool_prefix= |
| 1214 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1215 | |
| 1216 | test "$silent" = yes && exec 6>/dev/null |
| 1217 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1218 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1219 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1220 | ac_ls_di=`ls -di .` && |
| 1221 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1222 | as_fn_error "working directory cannot be determined" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1223 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1224 | as_fn_error "pwd does not report name of working directory" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1225 | |
| 1226 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1227 | # Find the source files, if location was not specified. |
| 1228 | if test -z "$srcdir"; then |
| 1229 | ac_srcdir_defaulted=yes |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1230 | # Try the directory containing this script, then the parent directory. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1231 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1232 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1233 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1234 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1235 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1236 | $as_echo X"$as_myself" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1238 | s//\1/ |
| 1239 | q |
| 1240 | } |
| 1241 | /^X\(\/\/\)[^/].*/{ |
| 1242 | s//\1/ |
| 1243 | q |
| 1244 | } |
| 1245 | /^X\(\/\/\)$/{ |
| 1246 | s//\1/ |
| 1247 | q |
| 1248 | } |
| 1249 | /^X\(\/\).*/{ |
| 1250 | s//\1/ |
| 1251 | q |
| 1252 | } |
| 1253 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1254 | srcdir=$ac_confdir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1255 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1256 | srcdir=.. |
| 1257 | fi |
| 1258 | else |
| 1259 | ac_srcdir_defaulted=no |
| 1260 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1261 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1262 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1263 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1264 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1265 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1266 | ac_abs_confdir=`( |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1267 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1268 | pwd)` |
| 1269 | # When building in place, set srcdir=. |
| 1270 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1271 | srcdir=. |
| 1272 | fi |
| 1273 | # Remove unnecessary trailing slashes from srcdir. |
| 1274 | # Double slashes in file names in object file debugging info |
| 1275 | # mess up M-x gdb in Emacs. |
| 1276 | case $srcdir in |
| 1277 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1278 | esac |
| 1279 | for ac_var in $ac_precious_vars; do |
| 1280 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1281 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1282 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1283 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1284 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1285 | |
| 1286 | # |
| 1287 | # Report the --help message. |
| 1288 | # |
| 1289 | if test "$ac_init_help" = "long"; then |
| 1290 | # Omit some internal or obsolete options to make the list less imposing. |
| 1291 | # 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] | 1292 | cat <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1293 | \`configure' configures pjproject 1.x to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1294 | |
| 1295 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1296 | |
| 1297 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1298 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1299 | |
| 1300 | Defaults for the options are specified in brackets. |
| 1301 | |
| 1302 | Configuration: |
| 1303 | -h, --help display this help and exit |
| 1304 | --help=short display options specific to this package |
| 1305 | --help=recursive display the short help of all the included packages |
| 1306 | -V, --version display version information and exit |
| 1307 | -q, --quiet, --silent do not print \`checking...' messages |
| 1308 | --cache-file=FILE cache test results in FILE [disabled] |
| 1309 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1310 | -n, --no-create do not create output files |
| 1311 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1312 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1313 | Installation directories: |
| 1314 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1315 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1316 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1317 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1318 | |
| 1319 | By default, \`make install' will install all the files in |
| 1320 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1321 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1322 | for instance \`--prefix=\$HOME'. |
| 1323 | |
| 1324 | For better control, use the options below. |
| 1325 | |
| 1326 | Fine tuning of the installation directories: |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1327 | --bindir=DIR user executables [EPREFIX/bin] |
| 1328 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1329 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1330 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1331 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1332 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1333 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1334 | --includedir=DIR C header files [PREFIX/include] |
| 1335 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1336 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1337 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1338 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1339 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1340 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1341 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1342 | --htmldir=DIR html documentation [DOCDIR] |
| 1343 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1344 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1345 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1346 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1347 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1348 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1349 | |
| 1350 | System types: |
| 1351 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1352 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1353 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1354 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1355 | fi |
| 1356 | |
| 1357 | if test -n "$ac_init_help"; then |
| 1358 | case $ac_init_help in |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1359 | short | recursive ) echo "Configuration of pjproject 1.x:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1360 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1361 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1362 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1363 | Optional Features: |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1364 | --disable-option-checking ignore unrecognized --enable/--with options |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1365 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1366 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1367 | --disable-floating-point |
| 1368 | Disable floating point where possible |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1369 | --enable-epoll Use /dev/epoll ioqueue on Linux (experimental) |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1370 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1371 | --disable-oss Disable OSS audio (default: not disabled) |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 1372 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1373 | --disable-small-filter Exclude small filter in resampling |
| 1374 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1375 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1376 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1377 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1378 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 1379 | --disable-g722-codec Exclude G.722 codec in the build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1380 | --disable-g7221-codec Exclude G.7221 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1381 | --disable-speex-codec Exclude Speex codecs in the build |
| 1382 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1383 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1384 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 1385 | --disable-sdl Disable SDL (default: not disabled) |
| 1386 | --disable-ffmpeg Disable ffmpeg (default: not disabled) |
| 1387 | --disable-v4l2 Disable Video4Linux2 (default: not disabled) |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1388 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 1389 | package and samples location using IPPROOT and |
| 1390 | IPPSAMPLES env var or with --with-ipp and |
| 1391 | --with-ipp-samples options |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1392 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1393 | |
| 1394 | |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1395 | Optional Packages: |
| 1396 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1397 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1398 | --with-external-speex Use external Speex development files, not the one in |
| 1399 | "third_party" directory. When this option is set, |
| 1400 | make sure that Speex is accessible to use (hint: use |
| 1401 | CFLAGS and LDFLAGS env var to set the include/lib |
| 1402 | paths) |
| 1403 | --with-external-gsm Use external GSM codec library, not the one in |
| 1404 | "third_party" directory. When this option is set, |
| 1405 | make sure that the GSM include/lib files are |
| 1406 | accessible to use (hint: use CFLAGS and LDFLAGS env |
| 1407 | var to set the include/lib paths) |
| 1408 | --with-external-pa Use external PortAudio development files, not the |
| 1409 | one in "third_party" directory. When this option is |
| 1410 | set, make sure that PortAudio is accessible to use |
| 1411 | (hint: use CFLAGS and LDFLAGS env var to set the |
| 1412 | include/lib paths) |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame^] | 1413 | --with-ffmpeg=DIR Specify alternate FFMPEG prefix |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 1414 | --with-ipp=DIR Specify the Intel IPP location |
| 1415 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
| 1416 | --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] | 1417 | "em64t. Default is blank for IA32" |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1418 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1419 | Some influential environment variables: |
| 1420 | CC C compiler command |
| 1421 | CFLAGS C compiler flags |
| 1422 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1423 | nonstandard directory <lib dir> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1424 | LIBS libraries to pass to the linker, e.g. -l<library> |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1425 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1426 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1427 | CXX C++ compiler command |
| 1428 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1429 | CPP C preprocessor |
| 1430 | |
| 1431 | Use these variables to override the choices made by `configure' or to help |
| 1432 | it to find libraries and programs with nonstandard names/locations. |
| 1433 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1434 | Report bugs to the package provider. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1435 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1436 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1437 | fi |
| 1438 | |
| 1439 | if test "$ac_init_help" = "recursive"; then |
| 1440 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1441 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1442 | test -d "$ac_dir" || |
| 1443 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1444 | continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1445 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1446 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1447 | case "$ac_dir" in |
| 1448 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1449 | *) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1450 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1451 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1452 | 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] | 1453 | case $ac_top_builddir_sub in |
| 1454 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1455 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1456 | esac ;; |
| 1457 | esac |
| 1458 | ac_abs_top_builddir=$ac_pwd |
| 1459 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1460 | # for backward compatibility: |
| 1461 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1462 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1463 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1464 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1465 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1466 | ac_top_srcdir=$ac_top_builddir_sub |
| 1467 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1468 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1469 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1470 | ac_top_srcdir=$srcdir |
| 1471 | ac_abs_top_srcdir=$srcdir ;; |
| 1472 | *) # Relative name. |
| 1473 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1474 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1475 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1476 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1477 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1478 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1479 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1480 | # Check for guested configure. |
| 1481 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1482 | echo && |
| 1483 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1484 | elif test -f "$ac_srcdir/configure"; then |
| 1485 | echo && |
| 1486 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1487 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1488 | $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] | 1489 | fi || ac_status=$? |
| 1490 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1491 | done |
| 1492 | fi |
| 1493 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1494 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1495 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1496 | cat <<\_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1497 | pjproject configure 1.x |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1498 | generated by GNU Autoconf 2.65 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1499 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1500 | Copyright (C) 2009 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1501 | This configure script is free software; the Free Software Foundation |
| 1502 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1503 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1504 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1505 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1506 | |
| 1507 | ## ------------------------ ## |
| 1508 | ## Autoconf initialization. ## |
| 1509 | ## ------------------------ ## |
| 1510 | |
| 1511 | # ac_fn_c_try_compile LINENO |
| 1512 | # -------------------------- |
| 1513 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1514 | ac_fn_c_try_compile () |
| 1515 | { |
| 1516 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1517 | rm -f conftest.$ac_objext |
| 1518 | if { { ac_try="$ac_compile" |
| 1519 | case "(($ac_try" in |
| 1520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1521 | *) ac_try_echo=$ac_try;; |
| 1522 | esac |
| 1523 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1524 | $as_echo "$ac_try_echo"; } >&5 |
| 1525 | (eval "$ac_compile") 2>conftest.err |
| 1526 | ac_status=$? |
| 1527 | if test -s conftest.err; then |
| 1528 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1529 | cat conftest.er1 >&5 |
| 1530 | mv -f conftest.er1 conftest.err |
| 1531 | fi |
| 1532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1533 | test $ac_status = 0; } && { |
| 1534 | test -z "$ac_c_werror_flag" || |
| 1535 | test ! -s conftest.err |
| 1536 | } && test -s conftest.$ac_objext; then : |
| 1537 | ac_retval=0 |
| 1538 | else |
| 1539 | $as_echo "$as_me: failed program was:" >&5 |
| 1540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1541 | |
| 1542 | ac_retval=1 |
| 1543 | fi |
| 1544 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1545 | as_fn_set_status $ac_retval |
| 1546 | |
| 1547 | } # ac_fn_c_try_compile |
| 1548 | |
| 1549 | # ac_fn_cxx_try_compile LINENO |
| 1550 | # ---------------------------- |
| 1551 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1552 | ac_fn_cxx_try_compile () |
| 1553 | { |
| 1554 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1555 | rm -f conftest.$ac_objext |
| 1556 | if { { ac_try="$ac_compile" |
| 1557 | case "(($ac_try" in |
| 1558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1559 | *) ac_try_echo=$ac_try;; |
| 1560 | esac |
| 1561 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1562 | $as_echo "$ac_try_echo"; } >&5 |
| 1563 | (eval "$ac_compile") 2>conftest.err |
| 1564 | ac_status=$? |
| 1565 | if test -s conftest.err; then |
| 1566 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1567 | cat conftest.er1 >&5 |
| 1568 | mv -f conftest.er1 conftest.err |
| 1569 | fi |
| 1570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1571 | test $ac_status = 0; } && { |
| 1572 | test -z "$ac_cxx_werror_flag" || |
| 1573 | test ! -s conftest.err |
| 1574 | } && test -s conftest.$ac_objext; then : |
| 1575 | ac_retval=0 |
| 1576 | else |
| 1577 | $as_echo "$as_me: failed program was:" >&5 |
| 1578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1579 | |
| 1580 | ac_retval=1 |
| 1581 | fi |
| 1582 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1583 | as_fn_set_status $ac_retval |
| 1584 | |
| 1585 | } # ac_fn_cxx_try_compile |
| 1586 | |
| 1587 | # ac_fn_c_try_link LINENO |
| 1588 | # ----------------------- |
| 1589 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1590 | ac_fn_c_try_link () |
| 1591 | { |
| 1592 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1593 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1594 | if { { ac_try="$ac_link" |
| 1595 | case "(($ac_try" in |
| 1596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1597 | *) ac_try_echo=$ac_try;; |
| 1598 | esac |
| 1599 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1600 | $as_echo "$ac_try_echo"; } >&5 |
| 1601 | (eval "$ac_link") 2>conftest.err |
| 1602 | ac_status=$? |
| 1603 | if test -s conftest.err; then |
| 1604 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1605 | cat conftest.er1 >&5 |
| 1606 | mv -f conftest.er1 conftest.err |
| 1607 | fi |
| 1608 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1609 | test $ac_status = 0; } && { |
| 1610 | test -z "$ac_c_werror_flag" || |
| 1611 | test ! -s conftest.err |
| 1612 | } && test -s conftest$ac_exeext && { |
| 1613 | test "$cross_compiling" = yes || |
| 1614 | $as_test_x conftest$ac_exeext |
| 1615 | }; then : |
| 1616 | ac_retval=0 |
| 1617 | else |
| 1618 | $as_echo "$as_me: failed program was:" >&5 |
| 1619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1620 | |
| 1621 | ac_retval=1 |
| 1622 | fi |
| 1623 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1624 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1625 | # interfere with the next link command; also delete a directory that is |
| 1626 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1627 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1628 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1629 | as_fn_set_status $ac_retval |
| 1630 | |
| 1631 | } # ac_fn_c_try_link |
| 1632 | |
| 1633 | # ac_fn_c_try_run LINENO |
| 1634 | # ---------------------- |
| 1635 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1636 | # that executables *can* be run. |
| 1637 | ac_fn_c_try_run () |
| 1638 | { |
| 1639 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1640 | if { { ac_try="$ac_link" |
| 1641 | case "(($ac_try" in |
| 1642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1643 | *) ac_try_echo=$ac_try;; |
| 1644 | esac |
| 1645 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1646 | $as_echo "$ac_try_echo"; } >&5 |
| 1647 | (eval "$ac_link") 2>&5 |
| 1648 | ac_status=$? |
| 1649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1650 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1651 | { { case "(($ac_try" in |
| 1652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1653 | *) ac_try_echo=$ac_try;; |
| 1654 | esac |
| 1655 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1656 | $as_echo "$ac_try_echo"; } >&5 |
| 1657 | (eval "$ac_try") 2>&5 |
| 1658 | ac_status=$? |
| 1659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1660 | test $ac_status = 0; }; }; then : |
| 1661 | ac_retval=0 |
| 1662 | else |
| 1663 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1664 | $as_echo "$as_me: failed program was:" >&5 |
| 1665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1666 | |
| 1667 | ac_retval=$ac_status |
| 1668 | fi |
| 1669 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1670 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1671 | as_fn_set_status $ac_retval |
| 1672 | |
| 1673 | } # ac_fn_c_try_run |
| 1674 | |
| 1675 | # ac_fn_c_try_cpp LINENO |
| 1676 | # ---------------------- |
| 1677 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1678 | ac_fn_c_try_cpp () |
| 1679 | { |
| 1680 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1681 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1682 | case "(($ac_try" in |
| 1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1684 | *) ac_try_echo=$ac_try;; |
| 1685 | esac |
| 1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1687 | $as_echo "$ac_try_echo"; } >&5 |
| 1688 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1689 | ac_status=$? |
| 1690 | if test -s conftest.err; then |
| 1691 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1692 | cat conftest.er1 >&5 |
| 1693 | mv -f conftest.er1 conftest.err |
| 1694 | fi |
| 1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1696 | test $ac_status = 0; } >/dev/null && { |
| 1697 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1698 | test ! -s conftest.err |
| 1699 | }; then : |
| 1700 | ac_retval=0 |
| 1701 | else |
| 1702 | $as_echo "$as_me: failed program was:" >&5 |
| 1703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1704 | |
| 1705 | ac_retval=1 |
| 1706 | fi |
| 1707 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1708 | as_fn_set_status $ac_retval |
| 1709 | |
| 1710 | } # ac_fn_c_try_cpp |
| 1711 | |
| 1712 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1713 | # ------------------------------------------------------- |
| 1714 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1715 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1716 | ac_fn_c_check_header_compile () |
| 1717 | { |
| 1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1720 | $as_echo_n "checking for $2... " >&6; } |
| 1721 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1722 | $as_echo_n "(cached) " >&6 |
| 1723 | else |
| 1724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1725 | /* end confdefs.h. */ |
| 1726 | $4 |
| 1727 | #include <$2> |
| 1728 | _ACEOF |
| 1729 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1730 | eval "$3=yes" |
| 1731 | else |
| 1732 | eval "$3=no" |
| 1733 | fi |
| 1734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1735 | fi |
| 1736 | eval ac_res=\$$3 |
| 1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1738 | $as_echo "$ac_res" >&6; } |
| 1739 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1740 | |
| 1741 | } # ac_fn_c_check_header_compile |
| 1742 | |
| 1743 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1744 | # ------------------------------------------------------- |
| 1745 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1746 | # the include files in INCLUDES and setting the cache variable VAR |
| 1747 | # accordingly. |
| 1748 | ac_fn_c_check_header_mongrel () |
| 1749 | { |
| 1750 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1751 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1753 | $as_echo_n "checking for $2... " >&6; } |
| 1754 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1755 | $as_echo_n "(cached) " >&6 |
| 1756 | fi |
| 1757 | eval ac_res=\$$3 |
| 1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1759 | $as_echo "$ac_res" >&6; } |
| 1760 | else |
| 1761 | # Is the header compilable? |
| 1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1763 | $as_echo_n "checking $2 usability... " >&6; } |
| 1764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1765 | /* end confdefs.h. */ |
| 1766 | $4 |
| 1767 | #include <$2> |
| 1768 | _ACEOF |
| 1769 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1770 | ac_header_compiler=yes |
| 1771 | else |
| 1772 | ac_header_compiler=no |
| 1773 | fi |
| 1774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1776 | $as_echo "$ac_header_compiler" >&6; } |
| 1777 | |
| 1778 | # Is the header present? |
| 1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1780 | $as_echo_n "checking $2 presence... " >&6; } |
| 1781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1782 | /* end confdefs.h. */ |
| 1783 | #include <$2> |
| 1784 | _ACEOF |
| 1785 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1786 | ac_header_preproc=yes |
| 1787 | else |
| 1788 | ac_header_preproc=no |
| 1789 | fi |
| 1790 | rm -f conftest.err conftest.$ac_ext |
| 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1792 | $as_echo "$ac_header_preproc" >&6; } |
| 1793 | |
| 1794 | # So? What about this header? |
| 1795 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1796 | yes:no: ) |
| 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1798 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1800 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1801 | ;; |
| 1802 | no:yes:* ) |
| 1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1804 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1806 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1808 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1810 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1812 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1813 | ;; |
| 1814 | esac |
| 1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1816 | $as_echo_n "checking for $2... " >&6; } |
| 1817 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1818 | $as_echo_n "(cached) " >&6 |
| 1819 | else |
| 1820 | eval "$3=\$ac_header_compiler" |
| 1821 | fi |
| 1822 | eval ac_res=\$$3 |
| 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1824 | $as_echo "$ac_res" >&6; } |
| 1825 | fi |
| 1826 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1827 | |
| 1828 | } # ac_fn_c_check_header_mongrel |
| 1829 | |
| 1830 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1831 | # ---------------------------------- |
| 1832 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1833 | ac_fn_c_check_func () |
| 1834 | { |
| 1835 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1837 | $as_echo_n "checking for $2... " >&6; } |
| 1838 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1839 | $as_echo_n "(cached) " >&6 |
| 1840 | else |
| 1841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1842 | /* end confdefs.h. */ |
| 1843 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1844 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1845 | #define $2 innocuous_$2 |
| 1846 | |
| 1847 | /* System header to define __stub macros and hopefully few prototypes, |
| 1848 | which can conflict with char $2 (); below. |
| 1849 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1850 | <limits.h> exists even on freestanding compilers. */ |
| 1851 | |
| 1852 | #ifdef __STDC__ |
| 1853 | # include <limits.h> |
| 1854 | #else |
| 1855 | # include <assert.h> |
| 1856 | #endif |
| 1857 | |
| 1858 | #undef $2 |
| 1859 | |
| 1860 | /* Override any GCC internal prototype to avoid an error. |
| 1861 | Use char because int might match the return type of a GCC |
| 1862 | builtin and then its argument prototype would still apply. */ |
| 1863 | #ifdef __cplusplus |
| 1864 | extern "C" |
| 1865 | #endif |
| 1866 | char $2 (); |
| 1867 | /* The GNU C library defines this for functions which it implements |
| 1868 | to always fail with ENOSYS. Some functions are actually named |
| 1869 | something starting with __ and the normal name is an alias. */ |
| 1870 | #if defined __stub_$2 || defined __stub___$2 |
| 1871 | choke me |
| 1872 | #endif |
| 1873 | |
| 1874 | int |
| 1875 | main () |
| 1876 | { |
| 1877 | return $2 (); |
| 1878 | ; |
| 1879 | return 0; |
| 1880 | } |
| 1881 | _ACEOF |
| 1882 | if ac_fn_c_try_link "$LINENO"; then : |
| 1883 | eval "$3=yes" |
| 1884 | else |
| 1885 | eval "$3=no" |
| 1886 | fi |
| 1887 | rm -f core conftest.err conftest.$ac_objext \ |
| 1888 | conftest$ac_exeext conftest.$ac_ext |
| 1889 | fi |
| 1890 | eval ac_res=\$$3 |
| 1891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1892 | $as_echo "$ac_res" >&6; } |
| 1893 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1894 | |
| 1895 | } # ac_fn_c_check_func |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1896 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1897 | This file contains any messages produced by compilers while |
| 1898 | running configure, to aid debugging if configure makes a mistake. |
| 1899 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1900 | It was created by pjproject $as_me 1.x, which was |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1901 | generated by GNU Autoconf 2.65. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1902 | |
| 1903 | $ $0 $@ |
| 1904 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1905 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1906 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1907 | { |
| 1908 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1909 | ## --------- ## |
| 1910 | ## Platform. ## |
| 1911 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1912 | |
| 1913 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1914 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1915 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1916 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1917 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1918 | |
| 1919 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1920 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1921 | |
| 1922 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1923 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1924 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1925 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1926 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1927 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1928 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1929 | |
| 1930 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1931 | |
| 1932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1933 | for as_dir in $PATH |
| 1934 | do |
| 1935 | IFS=$as_save_IFS |
| 1936 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1937 | $as_echo "PATH: $as_dir" |
| 1938 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1939 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1940 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1941 | } >&5 |
| 1942 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1943 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1944 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1945 | |
| 1946 | ## ----------- ## |
| 1947 | ## Core tests. ## |
| 1948 | ## ----------- ## |
| 1949 | |
| 1950 | _ACEOF |
| 1951 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1952 | |
| 1953 | # Keep a trace of the command line. |
| 1954 | # 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] | 1955 | # 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] | 1956 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1957 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1958 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1959 | ac_configure_args0= |
| 1960 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1961 | ac_must_keep_next=false |
| 1962 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1963 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1964 | for ac_arg |
| 1965 | do |
| 1966 | case $ac_arg in |
| 1967 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1968 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1969 | | -silent | --silent | --silen | --sile | --sil) |
| 1970 | continue ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1971 | *\'*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1972 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1973 | esac |
| 1974 | case $ac_pass in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1975 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1976 | 2) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1977 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1978 | if test $ac_must_keep_next = true; then |
| 1979 | ac_must_keep_next=false # Got value, back to normal. |
| 1980 | else |
| 1981 | case $ac_arg in |
| 1982 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1983 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1984 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1985 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1986 | case "$ac_configure_args0 " in |
| 1987 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1988 | esac |
| 1989 | ;; |
| 1990 | -* ) ac_must_keep_next=true ;; |
| 1991 | esac |
| 1992 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1993 | as_fn_append ac_configure_args " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1994 | ;; |
| 1995 | esac |
| 1996 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1997 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 1998 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1999 | { ac_configure_args1=; unset ac_configure_args1;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2000 | |
| 2001 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2002 | # config.log. We remove comments because anyway the quotes in there |
| 2003 | # would cause problems or look ugly. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2004 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2005 | # 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] | 2006 | trap 'exit_status=$? |
| 2007 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2008 | { |
| 2009 | echo |
| 2010 | |
| 2011 | cat <<\_ASBOX |
| 2012 | ## ---------------- ## |
| 2013 | ## Cache variables. ## |
| 2014 | ## ---------------- ## |
| 2015 | _ASBOX |
| 2016 | echo |
| 2017 | # The following way of writing the cache mishandles newlines in values, |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2018 | ( |
| 2019 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2020 | eval ac_val=\$$ac_var |
| 2021 | case $ac_val in #( |
| 2022 | *${as_nl}*) |
| 2023 | case $ac_var in #( |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2024 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2025 | $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] | 2026 | esac |
| 2027 | case $ac_var in #( |
| 2028 | _ | IFS | as_nl) ;; #( |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2029 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2030 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2031 | esac ;; |
| 2032 | esac |
| 2033 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2034 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2035 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2036 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2037 | sed -n \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2038 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2039 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2040 | ;; #( |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2041 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2042 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2043 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2044 | esac | |
| 2045 | sort |
| 2046 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2047 | echo |
| 2048 | |
| 2049 | cat <<\_ASBOX |
| 2050 | ## ----------------- ## |
| 2051 | ## Output variables. ## |
| 2052 | ## ----------------- ## |
| 2053 | _ASBOX |
| 2054 | echo |
| 2055 | for ac_var in $ac_subst_vars |
| 2056 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2057 | eval ac_val=\$$ac_var |
| 2058 | case $ac_val in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2059 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2060 | esac |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2061 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2062 | done | sort |
| 2063 | echo |
| 2064 | |
| 2065 | if test -n "$ac_subst_files"; then |
| 2066 | cat <<\_ASBOX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2067 | ## ------------------- ## |
| 2068 | ## File substitutions. ## |
| 2069 | ## ------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2070 | _ASBOX |
| 2071 | echo |
| 2072 | for ac_var in $ac_subst_files |
| 2073 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2074 | eval ac_val=\$$ac_var |
| 2075 | case $ac_val in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2076 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2077 | esac |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2078 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2079 | done | sort |
| 2080 | echo |
| 2081 | fi |
| 2082 | |
| 2083 | if test -s confdefs.h; then |
| 2084 | cat <<\_ASBOX |
| 2085 | ## ----------- ## |
| 2086 | ## confdefs.h. ## |
| 2087 | ## ----------- ## |
| 2088 | _ASBOX |
| 2089 | echo |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2090 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2091 | echo |
| 2092 | fi |
| 2093 | test "$ac_signal" != 0 && |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2094 | $as_echo "$as_me: caught signal $ac_signal" |
| 2095 | $as_echo "$as_me: exit $exit_status" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2096 | } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2097 | rm -f core *.core core.conftest.* && |
| 2098 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2099 | exit $exit_status |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2100 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2101 | for ac_signal in 1 2 13 15; do |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2102 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2103 | done |
| 2104 | ac_signal=0 |
| 2105 | |
| 2106 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2107 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2108 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2109 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2110 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2111 | # Predefined preprocessor variables. |
| 2112 | |
| 2113 | cat >>confdefs.h <<_ACEOF |
| 2114 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2115 | _ACEOF |
| 2116 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2117 | cat >>confdefs.h <<_ACEOF |
| 2118 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2119 | _ACEOF |
| 2120 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2121 | cat >>confdefs.h <<_ACEOF |
| 2122 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2123 | _ACEOF |
| 2124 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2125 | cat >>confdefs.h <<_ACEOF |
| 2126 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2127 | _ACEOF |
| 2128 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2129 | cat >>confdefs.h <<_ACEOF |
| 2130 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2131 | _ACEOF |
| 2132 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2133 | cat >>confdefs.h <<_ACEOF |
| 2134 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2135 | _ACEOF |
| 2136 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2137 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2138 | # Let the site file select an alternate cache file if it wants to. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2139 | # Prefer an explicitly selected file to automatically selected ones. |
| 2140 | ac_site_file1=NONE |
| 2141 | ac_site_file2=NONE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2142 | if test -n "$CONFIG_SITE"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2143 | ac_site_file1=$CONFIG_SITE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2144 | elif test "x$prefix" != xNONE; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2145 | ac_site_file1=$prefix/share/config.site |
| 2146 | ac_site_file2=$prefix/etc/config.site |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2147 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2148 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2149 | ac_site_file2=$ac_default_prefix/etc/config.site |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2150 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2151 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2152 | do |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2153 | test "x$ac_site_file" = xNONE && continue |
| 2154 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2156 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2157 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2158 | . "$ac_site_file" |
| 2159 | fi |
| 2160 | done |
| 2161 | |
| 2162 | if test -r "$cache_file"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2163 | # Some versions of bash will fail to source /dev/null (special files |
| 2164 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2165 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2167 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2168 | case $cache_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2169 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2170 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2171 | esac |
| 2172 | fi |
| 2173 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2175 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2176 | >$cache_file |
| 2177 | fi |
| 2178 | |
| 2179 | # Check that the precious variables saved in the cache have kept the same |
| 2180 | # value. |
| 2181 | ac_cache_corrupted=false |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2182 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2183 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2184 | eval ac_new_set=\$ac_env_${ac_var}_set |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2185 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2186 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2187 | case $ac_old_set,$ac_new_set in |
| 2188 | set,) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2189 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2190 | $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] | 2191 | ac_cache_corrupted=: ;; |
| 2192 | ,set) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2194 | $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] | 2195 | ac_cache_corrupted=: ;; |
| 2196 | ,);; |
| 2197 | *) |
| 2198 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2199 | # differences in whitespace do not lead to failure. |
| 2200 | ac_old_val_w=`echo x $ac_old_val` |
| 2201 | ac_new_val_w=`echo x $ac_new_val` |
| 2202 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2204 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2205 | ac_cache_corrupted=: |
| 2206 | else |
| 2207 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2208 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2209 | eval $ac_var=\$ac_old_val |
| 2210 | fi |
| 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2212 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2214 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2215 | fi;; |
| 2216 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2217 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2218 | if test "$ac_new_set" = set; then |
| 2219 | case $ac_new_val in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2220 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2221 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2222 | esac |
| 2223 | case " $ac_configure_args " in |
| 2224 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2225 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2226 | esac |
| 2227 | fi |
| 2228 | done |
| 2229 | if $ac_cache_corrupted; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2231 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2233 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2234 | 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] | 2235 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2236 | ## -------------------- ## |
| 2237 | ## Main body of script. ## |
| 2238 | ## -------------------- ## |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2239 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2240 | ac_ext=c |
| 2241 | ac_cpp='$CPP $CPPFLAGS' |
| 2242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2245 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2246 | |
| 2247 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2248 | host_orig="$host" |
| 2249 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2250 | ac_aux_dir= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2251 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2252 | for ac_t in install-sh install.sh shtool; do |
| 2253 | if test -f "$ac_dir/$ac_t"; then |
| 2254 | ac_aux_dir=$ac_dir |
| 2255 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2256 | break 2 |
| 2257 | fi |
| 2258 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2259 | done |
| 2260 | if test -z "$ac_aux_dir"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2261 | 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] | 2262 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2263 | |
| 2264 | # These three variables are undocumented and unsupported, |
| 2265 | # and are intended to be withdrawn in a future Autoconf release. |
| 2266 | # They can cause serious problems if a builder's source tree is in a directory |
| 2267 | # whose full name contains unusual characters. |
| 2268 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2269 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2270 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2271 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2272 | |
| 2273 | # Make sure we can run config.sub. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2274 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2275 | 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] | 2276 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2278 | $as_echo_n "checking build system type... " >&6; } |
| 2279 | if test "${ac_cv_build+set}" = set; then : |
| 2280 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2281 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2282 | ac_build_alias=$build_alias |
| 2283 | test "x$ac_build_alias" = x && |
| 2284 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2285 | test "x$ac_build_alias" = x && |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2286 | 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] | 2287 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2288 | 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] | 2289 | |
| 2290 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2292 | $as_echo "$ac_cv_build" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2293 | case $ac_cv_build in |
| 2294 | *-*-*) ;; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2295 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2296 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2297 | build=$ac_cv_build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2298 | ac_save_IFS=$IFS; IFS='-' |
| 2299 | set x $ac_cv_build |
| 2300 | shift |
| 2301 | build_cpu=$1 |
| 2302 | build_vendor=$2 |
| 2303 | shift; shift |
| 2304 | # Remember, the first character of IFS is used to create $*, |
| 2305 | # except with old shells: |
| 2306 | build_os=$* |
| 2307 | IFS=$ac_save_IFS |
| 2308 | 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] | 2309 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2310 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2312 | $as_echo_n "checking host system type... " >&6; } |
| 2313 | if test "${ac_cv_host+set}" = set; then : |
| 2314 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2315 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2316 | if test "x$host_alias" = x; then |
| 2317 | ac_cv_host=$ac_cv_build |
| 2318 | else |
| 2319 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2320 | 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] | 2321 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2322 | |
| 2323 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2325 | $as_echo "$ac_cv_host" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2326 | case $ac_cv_host in |
| 2327 | *-*-*) ;; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2328 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2329 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2330 | host=$ac_cv_host |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2331 | ac_save_IFS=$IFS; IFS='-' |
| 2332 | set x $ac_cv_host |
| 2333 | shift |
| 2334 | host_cpu=$1 |
| 2335 | host_vendor=$2 |
| 2336 | shift; shift |
| 2337 | # Remember, the first character of IFS is used to create $*, |
| 2338 | # except with old shells: |
| 2339 | host_os=$* |
| 2340 | IFS=$ac_save_IFS |
| 2341 | 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] | 2342 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2343 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 2345 | $as_echo_n "checking target system type... " >&6; } |
| 2346 | if test "${ac_cv_target+set}" = set; then : |
| 2347 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2348 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2349 | if test "x$target_alias" = x; then |
| 2350 | ac_cv_target=$ac_cv_host |
| 2351 | else |
| 2352 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2353 | 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] | 2354 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2355 | |
| 2356 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 2358 | $as_echo "$ac_cv_target" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2359 | case $ac_cv_target in |
| 2360 | *-*-*) ;; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2361 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2362 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2363 | target=$ac_cv_target |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2364 | ac_save_IFS=$IFS; IFS='-' |
| 2365 | set x $ac_cv_target |
| 2366 | shift |
| 2367 | target_cpu=$1 |
| 2368 | target_vendor=$2 |
| 2369 | shift; shift |
| 2370 | # Remember, the first character of IFS is used to create $*, |
| 2371 | # except with old shells: |
| 2372 | target_os=$* |
| 2373 | IFS=$ac_save_IFS |
| 2374 | 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] | 2375 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2376 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2377 | # The aliases save the names the user supplied, while $host etc. |
| 2378 | # will get canonicalized. |
| 2379 | test -n "$target_alias" && |
| 2380 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2381 | NONENONEs,x,x, && |
| 2382 | program_prefix=${target_alias}- |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2383 | 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] | 2384 | |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 2385 | 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] | 2386 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2387 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2388 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2389 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 2390 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2391 | else |
| 2392 | CFLAGS="$CFLAGS" |
| 2393 | fi |
| 2394 | |
| 2395 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 2396 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2397 | ac_ext=c |
| 2398 | ac_cpp='$CPP $CPPFLAGS' |
| 2399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2402 | if test -n "$ac_tool_prefix"; then |
| 2403 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2404 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2406 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2407 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2408 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2409 | else |
| 2410 | if test -n "$CC"; then |
| 2411 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2412 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2414 | for as_dir in $PATH |
| 2415 | do |
| 2416 | IFS=$as_save_IFS |
| 2417 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2418 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2419 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2420 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2421 | $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] | 2422 | break 2 |
| 2423 | fi |
| 2424 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2425 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2426 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2427 | |
| 2428 | fi |
| 2429 | fi |
| 2430 | CC=$ac_cv_prog_CC |
| 2431 | if test -n "$CC"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2433 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2434 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2436 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2437 | fi |
| 2438 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2439 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2440 | fi |
| 2441 | if test -z "$ac_cv_prog_CC"; then |
| 2442 | ac_ct_CC=$CC |
| 2443 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2444 | set dummy gcc; ac_word=$2 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2446 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2447 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2448 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2449 | else |
| 2450 | if test -n "$ac_ct_CC"; then |
| 2451 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2452 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2454 | for as_dir in $PATH |
| 2455 | do |
| 2456 | IFS=$as_save_IFS |
| 2457 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2458 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2459 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2460 | ac_cv_prog_ac_ct_CC="gcc" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2461 | $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] | 2462 | break 2 |
| 2463 | fi |
| 2464 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2465 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2466 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2467 | |
| 2468 | fi |
| 2469 | fi |
| 2470 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2471 | if test -n "$ac_ct_CC"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2473 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2474 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2476 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2477 | fi |
| 2478 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2479 | if test "x$ac_ct_CC" = x; then |
| 2480 | CC="" |
| 2481 | else |
| 2482 | case $cross_compiling:$ac_tool_warned in |
| 2483 | yes:) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2485 | $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] | 2486 | ac_tool_warned=yes ;; |
| 2487 | esac |
| 2488 | CC=$ac_ct_CC |
| 2489 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2490 | else |
| 2491 | CC="$ac_cv_prog_CC" |
| 2492 | fi |
| 2493 | |
| 2494 | if test -z "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2495 | if test -n "$ac_tool_prefix"; then |
| 2496 | # 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] | 2497 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2499 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2500 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2501 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2502 | else |
| 2503 | if test -n "$CC"; then |
| 2504 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2505 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2507 | for as_dir in $PATH |
| 2508 | do |
| 2509 | IFS=$as_save_IFS |
| 2510 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2511 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2513 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2514 | $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] | 2515 | break 2 |
| 2516 | fi |
| 2517 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2518 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2519 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2520 | |
| 2521 | fi |
| 2522 | fi |
| 2523 | CC=$ac_cv_prog_CC |
| 2524 | if test -n "$CC"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2526 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2527 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2529 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2530 | fi |
| 2531 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2532 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2533 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2534 | fi |
| 2535 | if test -z "$CC"; then |
| 2536 | # Extract the first word of "cc", so it can be a program name with args. |
| 2537 | set dummy cc; ac_word=$2 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2539 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2540 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2541 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2542 | else |
| 2543 | if test -n "$CC"; then |
| 2544 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2545 | else |
| 2546 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2548 | for as_dir in $PATH |
| 2549 | do |
| 2550 | IFS=$as_save_IFS |
| 2551 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2552 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2554 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2555 | ac_prog_rejected=yes |
| 2556 | continue |
| 2557 | fi |
| 2558 | ac_cv_prog_CC="cc" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2559 | $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] | 2560 | break 2 |
| 2561 | fi |
| 2562 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2563 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2564 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2565 | |
| 2566 | if test $ac_prog_rejected = yes; then |
| 2567 | # We found a bogon in the path, so make sure we never use it. |
| 2568 | set dummy $ac_cv_prog_CC |
| 2569 | shift |
| 2570 | if test $# != 0; then |
| 2571 | # We chose a different compiler from the bogus one. |
| 2572 | # However, it has the same basename, so the bogon will be chosen |
| 2573 | # first if we set CC to just the basename; use the full file name. |
| 2574 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2575 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2576 | fi |
| 2577 | fi |
| 2578 | fi |
| 2579 | fi |
| 2580 | CC=$ac_cv_prog_CC |
| 2581 | if test -n "$CC"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2583 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2584 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2586 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2587 | fi |
| 2588 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2589 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2590 | fi |
| 2591 | if test -z "$CC"; then |
| 2592 | if test -n "$ac_tool_prefix"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2593 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2594 | do |
| 2595 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2596 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2598 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2599 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2600 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2601 | else |
| 2602 | if test -n "$CC"; then |
| 2603 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2604 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2606 | for as_dir in $PATH |
| 2607 | do |
| 2608 | IFS=$as_save_IFS |
| 2609 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2610 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2612 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2613 | $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] | 2614 | break 2 |
| 2615 | fi |
| 2616 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2617 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2618 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2619 | |
| 2620 | fi |
| 2621 | fi |
| 2622 | CC=$ac_cv_prog_CC |
| 2623 | if test -n "$CC"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2625 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2626 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2628 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2629 | fi |
| 2630 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2631 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2632 | test -n "$CC" && break |
| 2633 | done |
| 2634 | fi |
| 2635 | if test -z "$CC"; then |
| 2636 | ac_ct_CC=$CC |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2637 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2638 | do |
| 2639 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2640 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2642 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2643 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2644 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2645 | else |
| 2646 | if test -n "$ac_ct_CC"; then |
| 2647 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2648 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2650 | for as_dir in $PATH |
| 2651 | do |
| 2652 | IFS=$as_save_IFS |
| 2653 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2654 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2656 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2657 | $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] | 2658 | break 2 |
| 2659 | fi |
| 2660 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2661 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2662 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2663 | |
| 2664 | fi |
| 2665 | fi |
| 2666 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2667 | if test -n "$ac_ct_CC"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2669 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2670 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2672 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2673 | fi |
| 2674 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2675 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2676 | test -n "$ac_ct_CC" && break |
| 2677 | done |
| 2678 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2679 | if test "x$ac_ct_CC" = x; then |
| 2680 | CC="" |
| 2681 | else |
| 2682 | case $cross_compiling:$ac_tool_warned in |
| 2683 | yes:) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2685 | $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] | 2686 | ac_tool_warned=yes ;; |
| 2687 | esac |
| 2688 | CC=$ac_ct_CC |
| 2689 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2690 | fi |
| 2691 | |
| 2692 | fi |
| 2693 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2694 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2695 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2696 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2697 | as_fn_error "no acceptable C compiler found in \$PATH |
| 2698 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2699 | |
| 2700 | # Provide some information about the compiler. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2701 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2702 | set X $ac_compile |
| 2703 | ac_compiler=$2 |
| 2704 | for ac_option in --version -v -V -qversion; do |
| 2705 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2706 | case "(($ac_try" in |
| 2707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2708 | *) ac_try_echo=$ac_try;; |
| 2709 | esac |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2711 | $as_echo "$ac_try_echo"; } >&5 |
| 2712 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2713 | ac_status=$? |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2714 | if test -s conftest.err; then |
| 2715 | sed '10a\ |
| 2716 | ... rest of stderr output deleted ... |
| 2717 | 10q' conftest.err >conftest.er1 |
| 2718 | cat conftest.er1 >&5 |
| 2719 | fi |
| 2720 | rm -f conftest.er1 conftest.err |
| 2721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2722 | test $ac_status = 0; } |
| 2723 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2724 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2726 | /* end confdefs.h. */ |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2727 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2728 | int |
| 2729 | main () |
| 2730 | { |
| 2731 | |
| 2732 | ; |
| 2733 | return 0; |
| 2734 | } |
| 2735 | _ACEOF |
| 2736 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2737 | 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] | 2738 | # Try to create an executable without -o first, disregard a.out. |
| 2739 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2740 | # of exeext. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2742 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2743 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2744 | |
| 2745 | # The possible output files: |
| 2746 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2747 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2748 | ac_rmfiles= |
| 2749 | for ac_file in $ac_files |
| 2750 | do |
| 2751 | case $ac_file in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2752 | *.$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] | 2753 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2754 | esac |
| 2755 | done |
| 2756 | rm -f $ac_rmfiles |
| 2757 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2758 | if { { ac_try="$ac_link_default" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2759 | case "(($ac_try" in |
| 2760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2761 | *) ac_try_echo=$ac_try;; |
| 2762 | esac |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2763 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2764 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2765 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2766 | ac_status=$? |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2768 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2769 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2770 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2771 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2772 | # so that the user can short-circuit this test for compilers unknown to |
| 2773 | # Autoconf. |
| 2774 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2775 | do |
| 2776 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2777 | case $ac_file in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2778 | *.$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] | 2779 | ;; |
| 2780 | [ab].out ) |
| 2781 | # We found the default executable, but exeext='' is most |
| 2782 | # certainly right. |
| 2783 | break;; |
| 2784 | *.* ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2785 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2786 | then :; else |
| 2787 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2788 | fi |
| 2789 | # We set ac_cv_exeext here because the later test for it is not |
| 2790 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2791 | # argument, so we may need to know it at that point already. |
| 2792 | # Even if this section looks crufty: it has the advantage of |
| 2793 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2794 | break;; |
| 2795 | * ) |
| 2796 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2797 | esac |
| 2798 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2799 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2800 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2801 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2802 | ac_file='' |
| 2803 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2804 | if test -z "$ac_file"; then : |
| 2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2806 | $as_echo "no" >&6; } |
| 2807 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2809 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2810 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2811 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2812 | { as_fn_set_status 77 |
| 2813 | as_fn_error "C compiler cannot create executables |
| 2814 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 2815 | else |
| 2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2817 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2818 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2820 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2822 | $as_echo "$ac_file" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2823 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2824 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2825 | 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] | 2826 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2828 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2829 | if { { ac_try="$ac_link" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2830 | case "(($ac_try" in |
| 2831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2832 | *) ac_try_echo=$ac_try;; |
| 2833 | esac |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2834 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2835 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2836 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2837 | ac_status=$? |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2839 | test $ac_status = 0; }; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2840 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2841 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2842 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2843 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2844 | for ac_file in conftest.exe conftest conftest.*; do |
| 2845 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2846 | case $ac_file in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2847 | *.$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] | 2848 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2849 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2850 | * ) break;; |
| 2851 | esac |
| 2852 | done |
| 2853 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2854 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2855 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2856 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 2857 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2858 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2859 | rm -f conftest conftest$ac_cv_exeext |
| 2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2861 | $as_echo "$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2862 | |
| 2863 | rm -f conftest.$ac_ext |
| 2864 | EXEEXT=$ac_cv_exeext |
| 2865 | ac_exeext=$EXEEXT |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2867 | /* end confdefs.h. */ |
| 2868 | #include <stdio.h> |
| 2869 | int |
| 2870 | main () |
| 2871 | { |
| 2872 | FILE *f = fopen ("conftest.out", "w"); |
| 2873 | return ferror (f) || fclose (f) != 0; |
| 2874 | |
| 2875 | ; |
| 2876 | return 0; |
| 2877 | } |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 2878 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2879 | ac_clean_files="$ac_clean_files conftest.out" |
| 2880 | # Check that the compiler produces executables we can run. If not, either |
| 2881 | # the compiler is broken, or we cross compile. |
| 2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2883 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2884 | if test "$cross_compiling" != yes; then |
| 2885 | { { ac_try="$ac_link" |
| 2886 | case "(($ac_try" in |
| 2887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2888 | *) ac_try_echo=$ac_try;; |
| 2889 | esac |
| 2890 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2891 | $as_echo "$ac_try_echo"; } >&5 |
| 2892 | (eval "$ac_link") 2>&5 |
| 2893 | ac_status=$? |
| 2894 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2895 | test $ac_status = 0; } |
| 2896 | if { ac_try='./conftest$ac_cv_exeext' |
| 2897 | { { case "(($ac_try" in |
| 2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2899 | *) ac_try_echo=$ac_try;; |
| 2900 | esac |
| 2901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2902 | $as_echo "$ac_try_echo"; } >&5 |
| 2903 | (eval "$ac_try") 2>&5 |
| 2904 | ac_status=$? |
| 2905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2906 | test $ac_status = 0; }; }; then |
| 2907 | cross_compiling=no |
| 2908 | else |
| 2909 | if test "$cross_compiling" = maybe; then |
| 2910 | cross_compiling=yes |
| 2911 | else |
| 2912 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2913 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2914 | as_fn_error "cannot run C compiled programs. |
| 2915 | If you meant to cross compile, use \`--host'. |
| 2916 | See \`config.log' for more details." "$LINENO" 5; } |
| 2917 | fi |
| 2918 | fi |
| 2919 | fi |
| 2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2921 | $as_echo "$cross_compiling" >&6; } |
| 2922 | |
| 2923 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2924 | ac_clean_files=$ac_clean_files_save |
| 2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2926 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2927 | if test "${ac_cv_objext+set}" = set; then : |
| 2928 | $as_echo_n "(cached) " >&6 |
| 2929 | else |
| 2930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2931 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2932 | |
| 2933 | int |
| 2934 | main () |
| 2935 | { |
| 2936 | |
| 2937 | ; |
| 2938 | return 0; |
| 2939 | } |
| 2940 | _ACEOF |
| 2941 | rm -f conftest.o conftest.obj |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2942 | if { { ac_try="$ac_compile" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2943 | case "(($ac_try" in |
| 2944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2945 | *) ac_try_echo=$ac_try;; |
| 2946 | esac |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2947 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2948 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2949 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2950 | ac_status=$? |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2951 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2952 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2953 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2954 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2955 | case $ac_file in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2956 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2957 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2958 | break;; |
| 2959 | esac |
| 2960 | done |
| 2961 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2962 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2964 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2965 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2966 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2967 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 2968 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2969 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2970 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2971 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2973 | $as_echo "$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2974 | OBJEXT=$ac_cv_objext |
| 2975 | ac_objext=$OBJEXT |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2977 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2978 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 2979 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2980 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2982 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2983 | |
| 2984 | int |
| 2985 | main () |
| 2986 | { |
| 2987 | #ifndef __GNUC__ |
| 2988 | choke me |
| 2989 | #endif |
| 2990 | |
| 2991 | ; |
| 2992 | return 0; |
| 2993 | } |
| 2994 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2995 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2996 | ac_compiler_gnu=yes |
| 2997 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 2998 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2999 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3001 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3002 | |
| 3003 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3005 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3006 | if test $ac_compiler_gnu = yes; then |
| 3007 | GCC=yes |
| 3008 | else |
| 3009 | GCC= |
| 3010 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3011 | ac_test_CFLAGS=${CFLAGS+set} |
| 3012 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3014 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3015 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3016 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3017 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3018 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3019 | ac_c_werror_flag=yes |
| 3020 | ac_cv_prog_cc_g=no |
| 3021 | CFLAGS="-g" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3023 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3024 | |
| 3025 | int |
| 3026 | main () |
| 3027 | { |
| 3028 | |
| 3029 | ; |
| 3030 | return 0; |
| 3031 | } |
| 3032 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3033 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3034 | ac_cv_prog_cc_g=yes |
| 3035 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3036 | CFLAGS="" |
| 3037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3038 | /* end confdefs.h. */ |
| 3039 | |
| 3040 | int |
| 3041 | main () |
| 3042 | { |
| 3043 | |
| 3044 | ; |
| 3045 | return 0; |
| 3046 | } |
| 3047 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3048 | if ac_fn_c_try_compile "$LINENO"; then : |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3049 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3050 | else |
| 3051 | ac_c_werror_flag=$ac_save_c_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3052 | CFLAGS="-g" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3054 | /* end confdefs.h. */ |
| 3055 | |
| 3056 | int |
| 3057 | main () |
| 3058 | { |
| 3059 | |
| 3060 | ; |
| 3061 | return 0; |
| 3062 | } |
| 3063 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3064 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3065 | ac_cv_prog_cc_g=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3066 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3068 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3070 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3072 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3073 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3075 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3076 | if test "$ac_test_CFLAGS" = set; then |
| 3077 | CFLAGS=$ac_save_CFLAGS |
| 3078 | elif test $ac_cv_prog_cc_g = yes; then |
| 3079 | if test "$GCC" = yes; then |
| 3080 | CFLAGS="-g -O2" |
| 3081 | else |
| 3082 | CFLAGS="-g" |
| 3083 | fi |
| 3084 | else |
| 3085 | if test "$GCC" = yes; then |
| 3086 | CFLAGS="-O2" |
| 3087 | else |
| 3088 | CFLAGS= |
| 3089 | fi |
| 3090 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3092 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3093 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3094 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3095 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3096 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3097 | ac_save_CC=$CC |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3099 | /* end confdefs.h. */ |
| 3100 | #include <stdarg.h> |
| 3101 | #include <stdio.h> |
| 3102 | #include <sys/types.h> |
| 3103 | #include <sys/stat.h> |
| 3104 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3105 | struct buf { int x; }; |
| 3106 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3107 | static char *e (p, i) |
| 3108 | char **p; |
| 3109 | int i; |
| 3110 | { |
| 3111 | return p[i]; |
| 3112 | } |
| 3113 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3114 | { |
| 3115 | char *s; |
| 3116 | va_list v; |
| 3117 | va_start (v,p); |
| 3118 | s = g (p, va_arg (v,int)); |
| 3119 | va_end (v); |
| 3120 | return s; |
| 3121 | } |
| 3122 | |
| 3123 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3124 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3125 | These don't provoke an error unfortunately, instead are silently treated |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3126 | 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] | 3127 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3128 | 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] | 3129 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3130 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3131 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3132 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3133 | inside strings and character constants. */ |
| 3134 | #define FOO(x) 'x' |
| 3135 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3136 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3137 | int test (int i, double x); |
| 3138 | struct s1 {int (*f) (int a);}; |
| 3139 | struct s2 {int (*f) (double a);}; |
| 3140 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3141 | int argc; |
| 3142 | char **argv; |
| 3143 | int |
| 3144 | main () |
| 3145 | { |
| 3146 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3147 | ; |
| 3148 | return 0; |
| 3149 | } |
| 3150 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3151 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3152 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3153 | do |
| 3154 | CC="$ac_save_CC $ac_arg" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3155 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3156 | ac_cv_prog_cc_c89=$ac_arg |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3157 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3158 | rm -f core conftest.err conftest.$ac_objext |
| 3159 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3160 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3161 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3162 | CC=$ac_save_CC |
| 3163 | |
| 3164 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3165 | # AC_CACHE_VAL |
| 3166 | case "x$ac_cv_prog_cc_c89" in |
| 3167 | x) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3169 | $as_echo "none needed" >&6; } ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3170 | xno) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3172 | $as_echo "unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3173 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3174 | CC="$CC $ac_cv_prog_cc_c89" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3176 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3177 | esac |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3178 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3179 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3180 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3181 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3182 | ac_ext=c |
| 3183 | ac_cpp='$CPP $CPPFLAGS' |
| 3184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3187 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3188 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3189 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3190 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3191 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3192 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3193 | if test -z "$CXX"; then |
| 3194 | if test -n "$CCC"; then |
| 3195 | CXX=$CCC |
| 3196 | else |
| 3197 | if test -n "$ac_tool_prefix"; then |
| 3198 | 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] | 3199 | do |
| 3200 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3201 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3203 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3204 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 3205 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3206 | else |
| 3207 | if test -n "$CXX"; then |
| 3208 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3209 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3211 | for as_dir in $PATH |
| 3212 | do |
| 3213 | IFS=$as_save_IFS |
| 3214 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3215 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3217 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3218 | $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] | 3219 | break 2 |
| 3220 | fi |
| 3221 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3222 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3223 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3224 | |
| 3225 | fi |
| 3226 | fi |
| 3227 | CXX=$ac_cv_prog_CXX |
| 3228 | if test -n "$CXX"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 3230 | $as_echo "$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3231 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3233 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3234 | fi |
| 3235 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3236 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3237 | test -n "$CXX" && break |
| 3238 | done |
| 3239 | fi |
| 3240 | if test -z "$CXX"; then |
| 3241 | ac_ct_CXX=$CXX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3242 | 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] | 3243 | do |
| 3244 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3245 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3247 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3248 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 3249 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3250 | else |
| 3251 | if test -n "$ac_ct_CXX"; then |
| 3252 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3253 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3255 | for as_dir in $PATH |
| 3256 | do |
| 3257 | IFS=$as_save_IFS |
| 3258 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3259 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3261 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3262 | $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] | 3263 | break 2 |
| 3264 | fi |
| 3265 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3266 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3267 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3268 | |
| 3269 | fi |
| 3270 | fi |
| 3271 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3272 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 3274 | $as_echo "$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3275 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3277 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3278 | fi |
| 3279 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3280 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3281 | test -n "$ac_ct_CXX" && break |
| 3282 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3283 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3284 | if test "x$ac_ct_CXX" = x; then |
| 3285 | CXX="g++" |
| 3286 | else |
| 3287 | case $cross_compiling:$ac_tool_warned in |
| 3288 | yes:) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3290 | $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] | 3291 | ac_tool_warned=yes ;; |
| 3292 | esac |
| 3293 | CXX=$ac_ct_CXX |
| 3294 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3295 | fi |
| 3296 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3297 | fi |
| 3298 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3299 | # Provide some information about the compiler. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3300 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 3301 | set X $ac_compile |
| 3302 | ac_compiler=$2 |
| 3303 | for ac_option in --version -v -V -qversion; do |
| 3304 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3305 | case "(($ac_try" in |
| 3306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3307 | *) ac_try_echo=$ac_try;; |
| 3308 | esac |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3309 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3310 | $as_echo "$ac_try_echo"; } >&5 |
| 3311 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3312 | ac_status=$? |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3313 | if test -s conftest.err; then |
| 3314 | sed '10a\ |
| 3315 | ... rest of stderr output deleted ... |
| 3316 | 10q' conftest.err >conftest.er1 |
| 3317 | cat conftest.er1 >&5 |
| 3318 | fi |
| 3319 | rm -f conftest.er1 conftest.err |
| 3320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3321 | test $ac_status = 0; } |
| 3322 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3323 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 3325 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 3326 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 3327 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3328 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3330 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3331 | |
| 3332 | int |
| 3333 | main () |
| 3334 | { |
| 3335 | #ifndef __GNUC__ |
| 3336 | choke me |
| 3337 | #endif |
| 3338 | |
| 3339 | ; |
| 3340 | return 0; |
| 3341 | } |
| 3342 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3343 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3344 | ac_compiler_gnu=yes |
| 3345 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3346 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3347 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3349 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3350 | |
| 3351 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3353 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3354 | if test $ac_compiler_gnu = yes; then |
| 3355 | GXX=yes |
| 3356 | else |
| 3357 | GXX= |
| 3358 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3359 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3360 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 3362 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 3363 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 3364 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3365 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3366 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3367 | ac_cxx_werror_flag=yes |
| 3368 | ac_cv_prog_cxx_g=no |
| 3369 | CXXFLAGS="-g" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3371 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3372 | |
| 3373 | int |
| 3374 | main () |
| 3375 | { |
| 3376 | |
| 3377 | ; |
| 3378 | return 0; |
| 3379 | } |
| 3380 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3381 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3382 | ac_cv_prog_cxx_g=yes |
| 3383 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3384 | CXXFLAGS="" |
| 3385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3386 | /* end confdefs.h. */ |
| 3387 | |
| 3388 | int |
| 3389 | main () |
| 3390 | { |
| 3391 | |
| 3392 | ; |
| 3393 | return 0; |
| 3394 | } |
| 3395 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3396 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 3397 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3398 | else |
| 3399 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3400 | CXXFLAGS="-g" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3402 | /* end confdefs.h. */ |
| 3403 | |
| 3404 | int |
| 3405 | main () |
| 3406 | { |
| 3407 | |
| 3408 | ; |
| 3409 | return 0; |
| 3410 | } |
| 3411 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3412 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3413 | ac_cv_prog_cxx_g=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3414 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3416 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3418 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3420 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3421 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 3423 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3424 | if test "$ac_test_CXXFLAGS" = set; then |
| 3425 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3426 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3427 | if test "$GXX" = yes; then |
| 3428 | CXXFLAGS="-g -O2" |
| 3429 | else |
| 3430 | CXXFLAGS="-g" |
| 3431 | fi |
| 3432 | else |
| 3433 | if test "$GXX" = yes; then |
| 3434 | CXXFLAGS="-O2" |
| 3435 | else |
| 3436 | CXXFLAGS= |
| 3437 | fi |
| 3438 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3439 | ac_ext=c |
| 3440 | ac_cpp='$CPP $CPPFLAGS' |
| 3441 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3442 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3443 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3444 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3445 | ac_ext=c |
| 3446 | ac_cpp='$CPP $CPPFLAGS' |
| 3447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3450 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3451 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3452 | if test -z "$CROSS_COMPILE"; then |
| 3453 | CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'` |
| 3454 | fi |
| 3455 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3456 | if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3457 | |
| 3458 | if test "$LD" = ""; then LD="$CC"; fi |
| 3459 | |
| 3460 | if test "$LDOUT" = ""; then LDOUT="-o"; fi |
| 3461 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3462 | if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3463 | |
| 3464 | if test "$OBJEXT" = ""; then OBJEXT='o'; fi |
| 3465 | |
| 3466 | if test "$LIBEXT" = ""; then LIBEXT='a'; fi |
| 3467 | |
| 3468 | if test "$LIBEXT2" = ""; then LIBEXT2=""; fi |
| 3469 | |
| 3470 | if test "$CC_OUT" = ""; then CC_OUT="-o"; fi |
| 3471 | |
| 3472 | if test "$CC_INC" = ""; then CC_INC="-I"; fi |
| 3473 | |
| 3474 | if test "$CC_DEF" = ""; then CC_DEF="-D"; fi |
| 3475 | |
| 3476 | if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi |
| 3477 | |
| 3478 | if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi |
| 3479 | |
| 3480 | |
| 3481 | |
| 3482 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3483 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3484 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3485 | |
| 3486 | case $host in |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3487 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3488 | if pwd -W 2&> /dev/null; then |
| 3489 | ac_pjdir=`pwd -W` |
| 3490 | else |
| 3491 | # We're probably cross-compiling mingw on Linux |
| 3492 | ac_pjdir=`pwd` |
| 3493 | fi |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3494 | ;; |
| 3495 | *) |
| 3496 | ac_pjdir=`pwd` |
| 3497 | ;; |
| 3498 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3499 | |
| 3500 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 3502 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 3503 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : |
| 3504 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3505 | else |
| 3506 | ac_check_lib_save_LIBS=$LIBS |
| 3507 | LIBS="-lpthread $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3509 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3510 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3511 | /* Override any GCC internal prototype to avoid an error. |
| 3512 | Use char because int might match the return type of a GCC |
| 3513 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3514 | #ifdef __cplusplus |
| 3515 | extern "C" |
| 3516 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3517 | char pthread_create (); |
| 3518 | int |
| 3519 | main () |
| 3520 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3521 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3522 | ; |
| 3523 | return 0; |
| 3524 | } |
| 3525 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3526 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3527 | ac_cv_lib_pthread_pthread_create=yes |
| 3528 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3529 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3530 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3531 | rm -f core conftest.err conftest.$ac_objext \ |
| 3532 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3533 | LIBS=$ac_check_lib_save_LIBS |
| 3534 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3536 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
| 3537 | if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3538 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3539 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3540 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3541 | |
| 3542 | LIBS="-lpthread $LIBS" |
| 3543 | |
| 3544 | fi |
| 3545 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5 |
| 3547 | $as_echo_n "checking for puts in -lwsock32... " >&6; } |
| 3548 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then : |
| 3549 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3550 | else |
| 3551 | ac_check_lib_save_LIBS=$LIBS |
| 3552 | LIBS="-lwsock32 $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3554 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3555 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3556 | /* Override any GCC internal prototype to avoid an error. |
| 3557 | Use char because int might match the return type of a GCC |
| 3558 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3559 | #ifdef __cplusplus |
| 3560 | extern "C" |
| 3561 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3562 | char puts (); |
| 3563 | int |
| 3564 | main () |
| 3565 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3566 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3567 | ; |
| 3568 | return 0; |
| 3569 | } |
| 3570 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3571 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3572 | ac_cv_lib_wsock32_puts=yes |
| 3573 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3574 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3575 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3576 | rm -f core conftest.err conftest.$ac_objext \ |
| 3577 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3578 | LIBS=$ac_check_lib_save_LIBS |
| 3579 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3581 | $as_echo "$ac_cv_lib_wsock32_puts" >&6; } |
| 3582 | if test "x$ac_cv_lib_wsock32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3583 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3584 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3585 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3586 | |
| 3587 | LIBS="-lwsock32 $LIBS" |
| 3588 | |
| 3589 | fi |
| 3590 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5 |
| 3592 | $as_echo_n "checking for puts in -lws2_32... " >&6; } |
| 3593 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then : |
| 3594 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3595 | else |
| 3596 | ac_check_lib_save_LIBS=$LIBS |
| 3597 | LIBS="-lws2_32 $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3599 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3600 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3601 | /* Override any GCC internal prototype to avoid an error. |
| 3602 | Use char because int might match the return type of a GCC |
| 3603 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3604 | #ifdef __cplusplus |
| 3605 | extern "C" |
| 3606 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3607 | char puts (); |
| 3608 | int |
| 3609 | main () |
| 3610 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3611 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3612 | ; |
| 3613 | return 0; |
| 3614 | } |
| 3615 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3616 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3617 | ac_cv_lib_ws2_32_puts=yes |
| 3618 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3619 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3620 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3621 | rm -f core conftest.err conftest.$ac_objext \ |
| 3622 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3623 | LIBS=$ac_check_lib_save_LIBS |
| 3624 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3626 | $as_echo "$ac_cv_lib_ws2_32_puts" >&6; } |
| 3627 | if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3628 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3629 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3630 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3631 | |
| 3632 | LIBS="-lws2_32 $LIBS" |
| 3633 | |
| 3634 | fi |
| 3635 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5 |
| 3637 | $as_echo_n "checking for puts in -lole32... " >&6; } |
| 3638 | if test "${ac_cv_lib_ole32_puts+set}" = set; then : |
| 3639 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3640 | else |
| 3641 | ac_check_lib_save_LIBS=$LIBS |
| 3642 | LIBS="-lole32 $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3644 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3645 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3646 | /* Override any GCC internal prototype to avoid an error. |
| 3647 | Use char because int might match the return type of a GCC |
| 3648 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3649 | #ifdef __cplusplus |
| 3650 | extern "C" |
| 3651 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3652 | char puts (); |
| 3653 | int |
| 3654 | main () |
| 3655 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3656 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3657 | ; |
| 3658 | return 0; |
| 3659 | } |
| 3660 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3661 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3662 | ac_cv_lib_ole32_puts=yes |
| 3663 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3664 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3665 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3666 | rm -f core conftest.err conftest.$ac_objext \ |
| 3667 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3668 | LIBS=$ac_check_lib_save_LIBS |
| 3669 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5 |
| 3671 | $as_echo "$ac_cv_lib_ole32_puts" >&6; } |
| 3672 | if test "x$ac_cv_lib_ole32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3673 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3674 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3675 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3676 | |
| 3677 | LIBS="-lole32 $LIBS" |
| 3678 | |
| 3679 | fi |
| 3680 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5 |
| 3682 | $as_echo_n "checking for puts in -lwinmm... " >&6; } |
| 3683 | if test "${ac_cv_lib_winmm_puts+set}" = set; then : |
| 3684 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3685 | else |
| 3686 | ac_check_lib_save_LIBS=$LIBS |
| 3687 | LIBS="-lwinmm $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3689 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3690 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3691 | /* Override any GCC internal prototype to avoid an error. |
| 3692 | Use char because int might match the return type of a GCC |
| 3693 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3694 | #ifdef __cplusplus |
| 3695 | extern "C" |
| 3696 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3697 | char puts (); |
| 3698 | int |
| 3699 | main () |
| 3700 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3701 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3702 | ; |
| 3703 | return 0; |
| 3704 | } |
| 3705 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3706 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3707 | ac_cv_lib_winmm_puts=yes |
| 3708 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3709 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3710 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3711 | rm -f core conftest.err conftest.$ac_objext \ |
| 3712 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3713 | LIBS=$ac_check_lib_save_LIBS |
| 3714 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5 |
| 3716 | $as_echo "$ac_cv_lib_winmm_puts" >&6; } |
| 3717 | if test "x$ac_cv_lib_winmm_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3718 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3719 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3720 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3721 | |
| 3722 | LIBS="-lwinmm $LIBS" |
| 3723 | |
| 3724 | fi |
| 3725 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5 |
| 3727 | $as_echo_n "checking for puts in -lsocket... " >&6; } |
| 3728 | if test "${ac_cv_lib_socket_puts+set}" = set; then : |
| 3729 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3730 | else |
| 3731 | ac_check_lib_save_LIBS=$LIBS |
| 3732 | LIBS="-lsocket $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3734 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3735 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3736 | /* Override any GCC internal prototype to avoid an error. |
| 3737 | Use char because int might match the return type of a GCC |
| 3738 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3739 | #ifdef __cplusplus |
| 3740 | extern "C" |
| 3741 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3742 | char puts (); |
| 3743 | int |
| 3744 | main () |
| 3745 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3746 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3747 | ; |
| 3748 | return 0; |
| 3749 | } |
| 3750 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3751 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3752 | ac_cv_lib_socket_puts=yes |
| 3753 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3754 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3755 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3756 | rm -f core conftest.err conftest.$ac_objext \ |
| 3757 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3758 | LIBS=$ac_check_lib_save_LIBS |
| 3759 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5 |
| 3761 | $as_echo "$ac_cv_lib_socket_puts" >&6; } |
| 3762 | if test "x$ac_cv_lib_socket_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3763 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3764 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3765 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3766 | |
| 3767 | LIBS="-lsocket $LIBS" |
| 3768 | |
| 3769 | fi |
| 3770 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5 |
| 3772 | $as_echo_n "checking for puts in -lrt... " >&6; } |
| 3773 | if test "${ac_cv_lib_rt_puts+set}" = set; then : |
| 3774 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3775 | else |
| 3776 | ac_check_lib_save_LIBS=$LIBS |
| 3777 | LIBS="-lrt $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3779 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3780 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3781 | /* Override any GCC internal prototype to avoid an error. |
| 3782 | Use char because int might match the return type of a GCC |
| 3783 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3784 | #ifdef __cplusplus |
| 3785 | extern "C" |
| 3786 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3787 | char puts (); |
| 3788 | int |
| 3789 | main () |
| 3790 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3791 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3792 | ; |
| 3793 | return 0; |
| 3794 | } |
| 3795 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3796 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3797 | ac_cv_lib_rt_puts=yes |
| 3798 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3799 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3800 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3801 | rm -f core conftest.err conftest.$ac_objext \ |
| 3802 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3803 | LIBS=$ac_check_lib_save_LIBS |
| 3804 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5 |
| 3806 | $as_echo "$ac_cv_lib_rt_puts" >&6; } |
| 3807 | if test "x$ac_cv_lib_rt_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3808 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3809 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3810 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3811 | |
| 3812 | LIBS="-lrt $LIBS" |
| 3813 | |
| 3814 | fi |
| 3815 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5 |
| 3817 | $as_echo_n "checking for puts in -lnsl... " >&6; } |
| 3818 | if test "${ac_cv_lib_nsl_puts+set}" = set; then : |
| 3819 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3820 | else |
| 3821 | ac_check_lib_save_LIBS=$LIBS |
| 3822 | LIBS="-lnsl $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3824 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3825 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3826 | /* Override any GCC internal prototype to avoid an error. |
| 3827 | Use char because int might match the return type of a GCC |
| 3828 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3829 | #ifdef __cplusplus |
| 3830 | extern "C" |
| 3831 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3832 | char puts (); |
| 3833 | int |
| 3834 | main () |
| 3835 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3836 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3837 | ; |
| 3838 | return 0; |
| 3839 | } |
| 3840 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3841 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3842 | ac_cv_lib_nsl_puts=yes |
| 3843 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3844 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3845 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3846 | rm -f core conftest.err conftest.$ac_objext \ |
| 3847 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3848 | LIBS=$ac_check_lib_save_LIBS |
| 3849 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5 |
| 3851 | $as_echo "$ac_cv_lib_nsl_puts" >&6; } |
| 3852 | if test "x$ac_cv_lib_nsl_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3853 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3854 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3855 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3856 | |
| 3857 | LIBS="-lnsl $LIBS" |
| 3858 | |
| 3859 | fi |
| 3860 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3862 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 3863 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
| 3864 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3865 | else |
| 3866 | ac_check_lib_save_LIBS=$LIBS |
| 3867 | LIBS="-luuid $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3869 | /* end confdefs.h. */ |
| 3870 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3871 | /* Override any GCC internal prototype to avoid an error. |
| 3872 | Use char because int might match the return type of a GCC |
| 3873 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3874 | #ifdef __cplusplus |
| 3875 | extern "C" |
| 3876 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3877 | char uuid_generate (); |
| 3878 | int |
| 3879 | main () |
| 3880 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3881 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3882 | ; |
| 3883 | return 0; |
| 3884 | } |
| 3885 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3886 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3887 | ac_cv_lib_uuid_uuid_generate=yes |
| 3888 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3889 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3890 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3891 | rm -f core conftest.err conftest.$ac_objext \ |
| 3892 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3893 | LIBS=$ac_check_lib_save_LIBS |
| 3894 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3896 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3897 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3898 | cat >>confdefs.h <<_ACEOF |
| 3899 | #define HAVE_LIBUUID 1 |
| 3900 | _ACEOF |
| 3901 | |
| 3902 | LIBS="-luuid $LIBS" |
| 3903 | |
| 3904 | fi |
| 3905 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3907 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 3908 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
| 3909 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3910 | else |
| 3911 | ac_check_lib_save_LIBS=$LIBS |
| 3912 | LIBS="-luuid $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3914 | /* end confdefs.h. */ |
| 3915 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3916 | /* Override any GCC internal prototype to avoid an error. |
| 3917 | Use char because int might match the return type of a GCC |
| 3918 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3919 | #ifdef __cplusplus |
| 3920 | extern "C" |
| 3921 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3922 | char uuid_generate (); |
| 3923 | int |
| 3924 | main () |
| 3925 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3926 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3927 | ; |
| 3928 | return 0; |
| 3929 | } |
| 3930 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3931 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3932 | ac_cv_lib_uuid_uuid_generate=yes |
| 3933 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3934 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3935 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3936 | rm -f core conftest.err conftest.$ac_objext \ |
| 3937 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3938 | LIBS=$ac_check_lib_save_LIBS |
| 3939 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3941 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3942 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3943 | ac_has_uuid_lib=1 |
| 3944 | fi |
| 3945 | |
| 3946 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3948 | $as_echo "Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3949 | cat >>confdefs.h <<_ACEOF |
| 3950 | #define PJ_M_NAME "$target_cpu" |
| 3951 | _ACEOF |
| 3952 | |
| 3953 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5 |
| 3955 | $as_echo_n "checking memory alignment... " >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3956 | case $target in |
Benny Prijono | b18e950 | 2010-05-19 05:51:38 +0000 | [diff] [blame] | 3957 | sparc64-* | ia64-* | x86_64-* ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3958 | $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3959 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5 |
| 3961 | $as_echo "8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3962 | ;; |
| 3963 | * ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3964 | $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3965 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5 |
| 3967 | $as_echo "4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3968 | ;; |
| 3969 | esac |
| 3970 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3971 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3972 | ac_ext=c |
| 3973 | ac_cpp='$CPP $CPPFLAGS' |
| 3974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3978 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3979 | # On Suns, sometimes $CPP names a directory. |
| 3980 | if test -n "$CPP" && test -d "$CPP"; then |
| 3981 | CPP= |
| 3982 | fi |
| 3983 | if test -z "$CPP"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3984 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3985 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3986 | else |
| 3987 | # Double quotes because CPP needs to be expanded |
| 3988 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3989 | do |
| 3990 | ac_preproc_ok=false |
| 3991 | for ac_c_preproc_warn_flag in '' yes |
| 3992 | do |
| 3993 | # Use a header file that comes with gcc, so configuring glibc |
| 3994 | # with a fresh cross-compiler works. |
| 3995 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3996 | # <limits.h> exists even on freestanding compilers. |
| 3997 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3998 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 3999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4000 | /* end confdefs.h. */ |
| 4001 | #ifdef __STDC__ |
| 4002 | # include <limits.h> |
| 4003 | #else |
| 4004 | # include <assert.h> |
| 4005 | #endif |
| 4006 | Syntax error |
| 4007 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4008 | if ac_fn_c_try_cpp "$LINENO"; then : |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4009 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4010 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4011 | # Broken: fails on valid input. |
| 4012 | continue |
| 4013 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4014 | rm -f conftest.err conftest.$ac_ext |
| 4015 | |
| 4016 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4017 | # can be detected and how. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4019 | /* end confdefs.h. */ |
| 4020 | #include <ac_nonexistent.h> |
| 4021 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4022 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4023 | # Broken: success on invalid input. |
| 4024 | continue |
| 4025 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4026 | # Passes both tests. |
| 4027 | ac_preproc_ok=: |
| 4028 | break |
| 4029 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4030 | rm -f conftest.err conftest.$ac_ext |
| 4031 | |
| 4032 | done |
| 4033 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4034 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4035 | if $ac_preproc_ok; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4036 | break |
| 4037 | fi |
| 4038 | |
| 4039 | done |
| 4040 | ac_cv_prog_CPP=$CPP |
| 4041 | |
| 4042 | fi |
| 4043 | CPP=$ac_cv_prog_CPP |
| 4044 | else |
| 4045 | ac_cv_prog_CPP=$CPP |
| 4046 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4048 | $as_echo "$CPP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4049 | ac_preproc_ok=false |
| 4050 | for ac_c_preproc_warn_flag in '' yes |
| 4051 | do |
| 4052 | # Use a header file that comes with gcc, so configuring glibc |
| 4053 | # with a fresh cross-compiler works. |
| 4054 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4055 | # <limits.h> exists even on freestanding compilers. |
| 4056 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4057 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4059 | /* end confdefs.h. */ |
| 4060 | #ifdef __STDC__ |
| 4061 | # include <limits.h> |
| 4062 | #else |
| 4063 | # include <assert.h> |
| 4064 | #endif |
| 4065 | Syntax error |
| 4066 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4067 | if ac_fn_c_try_cpp "$LINENO"; then : |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4068 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4069 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4070 | # Broken: fails on valid input. |
| 4071 | continue |
| 4072 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4073 | rm -f conftest.err conftest.$ac_ext |
| 4074 | |
| 4075 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4076 | # can be detected and how. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4078 | /* end confdefs.h. */ |
| 4079 | #include <ac_nonexistent.h> |
| 4080 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4081 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4082 | # Broken: success on invalid input. |
| 4083 | continue |
| 4084 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4085 | # Passes both tests. |
| 4086 | ac_preproc_ok=: |
| 4087 | break |
| 4088 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4089 | rm -f conftest.err conftest.$ac_ext |
| 4090 | |
| 4091 | done |
| 4092 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4093 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4094 | if $ac_preproc_ok; then : |
| 4095 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4096 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4097 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4098 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4099 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4100 | See \`config.log' for more details." "$LINENO" 5; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4101 | fi |
| 4102 | |
| 4103 | ac_ext=c |
| 4104 | ac_cpp='$CPP $CPPFLAGS' |
| 4105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4108 | |
| 4109 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4111 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4112 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4113 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4114 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4115 | if test -z "$GREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4116 | ac_path_GREP_found=false |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4117 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4119 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4120 | do |
| 4121 | IFS=$as_save_IFS |
| 4122 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4123 | for ac_prog in grep ggrep; do |
| 4124 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4125 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4126 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4127 | # 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] | 4128 | # Check for GNU $ac_path_GREP |
| 4129 | case `"$ac_path_GREP" --version 2>&1` in |
| 4130 | *GNU*) |
| 4131 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4132 | *) |
| 4133 | ac_count=0 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4134 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4135 | while : |
| 4136 | do |
| 4137 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4138 | mv "conftest.tmp" "conftest.in" |
| 4139 | cp "conftest.in" "conftest.nl" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4140 | $as_echo 'GREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4141 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4142 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4143 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4144 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4145 | # Best one so far, save it but keep looking for a better one |
| 4146 | ac_cv_path_GREP="$ac_path_GREP" |
| 4147 | ac_path_GREP_max=$ac_count |
| 4148 | fi |
| 4149 | # 10*(2^10) chars as input seems more than enough |
| 4150 | test $ac_count -gt 10 && break |
| 4151 | done |
| 4152 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4153 | esac |
| 4154 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4155 | $ac_path_GREP_found && break 3 |
| 4156 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4157 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4158 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4159 | IFS=$as_save_IFS |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4160 | if test -z "$ac_cv_path_GREP"; then |
| 4161 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4162 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4163 | else |
| 4164 | ac_cv_path_GREP=$GREP |
| 4165 | fi |
| 4166 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4167 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4169 | $as_echo "$ac_cv_path_GREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4170 | GREP="$ac_cv_path_GREP" |
| 4171 | |
| 4172 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4174 | $as_echo_n "checking for egrep... " >&6; } |
| 4175 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4176 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4177 | else |
| 4178 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4179 | then ac_cv_path_EGREP="$GREP -E" |
| 4180 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4181 | if test -z "$EGREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4182 | ac_path_EGREP_found=false |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4183 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4185 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4186 | do |
| 4187 | IFS=$as_save_IFS |
| 4188 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4189 | for ac_prog in egrep; do |
| 4190 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4191 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4192 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4193 | # 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] | 4194 | # Check for GNU $ac_path_EGREP |
| 4195 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4196 | *GNU*) |
| 4197 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4198 | *) |
| 4199 | ac_count=0 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4200 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4201 | while : |
| 4202 | do |
| 4203 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4204 | mv "conftest.tmp" "conftest.in" |
| 4205 | cp "conftest.in" "conftest.nl" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4206 | $as_echo 'EGREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4207 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4208 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4209 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4210 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4211 | # Best one so far, save it but keep looking for a better one |
| 4212 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4213 | ac_path_EGREP_max=$ac_count |
| 4214 | fi |
| 4215 | # 10*(2^10) chars as input seems more than enough |
| 4216 | test $ac_count -gt 10 && break |
| 4217 | done |
| 4218 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4219 | esac |
| 4220 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4221 | $ac_path_EGREP_found && break 3 |
| 4222 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4223 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4224 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4225 | IFS=$as_save_IFS |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4226 | if test -z "$ac_cv_path_EGREP"; then |
| 4227 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4228 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4229 | else |
| 4230 | ac_cv_path_EGREP=$EGREP |
| 4231 | fi |
| 4232 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4233 | fi |
| 4234 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4236 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4237 | EGREP="$ac_cv_path_EGREP" |
| 4238 | |
| 4239 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4241 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4242 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4243 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4244 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4246 | /* end confdefs.h. */ |
| 4247 | #include <stdlib.h> |
| 4248 | #include <stdarg.h> |
| 4249 | #include <string.h> |
| 4250 | #include <float.h> |
| 4251 | |
| 4252 | int |
| 4253 | main () |
| 4254 | { |
| 4255 | |
| 4256 | ; |
| 4257 | return 0; |
| 4258 | } |
| 4259 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4260 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4261 | ac_cv_header_stdc=yes |
| 4262 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4263 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4264 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4266 | |
| 4267 | if test $ac_cv_header_stdc = yes; then |
| 4268 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4270 | /* end confdefs.h. */ |
| 4271 | #include <string.h> |
| 4272 | |
| 4273 | _ACEOF |
| 4274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4275 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4276 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4277 | else |
| 4278 | ac_cv_header_stdc=no |
| 4279 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4280 | rm -f conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4281 | |
| 4282 | fi |
| 4283 | |
| 4284 | if test $ac_cv_header_stdc = yes; then |
| 4285 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4287 | /* end confdefs.h. */ |
| 4288 | #include <stdlib.h> |
| 4289 | |
| 4290 | _ACEOF |
| 4291 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4292 | $EGREP "free" >/dev/null 2>&1; then : |
| 4293 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4294 | else |
| 4295 | ac_cv_header_stdc=no |
| 4296 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4297 | rm -f conftest* |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4298 | |
| 4299 | fi |
| 4300 | |
| 4301 | if test $ac_cv_header_stdc = yes; then |
| 4302 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4303 | if test "$cross_compiling" = yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4304 | : |
| 4305 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4307 | /* end confdefs.h. */ |
| 4308 | #include <ctype.h> |
| 4309 | #include <stdlib.h> |
| 4310 | #if ((' ' & 0x0FF) == 0x020) |
| 4311 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4312 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4313 | #else |
| 4314 | # define ISLOWER(c) \ |
| 4315 | (('a' <= (c) && (c) <= 'i') \ |
| 4316 | || ('j' <= (c) && (c) <= 'r') \ |
| 4317 | || ('s' <= (c) && (c) <= 'z')) |
| 4318 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4319 | #endif |
| 4320 | |
| 4321 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4322 | int |
| 4323 | main () |
| 4324 | { |
| 4325 | int i; |
| 4326 | for (i = 0; i < 256; i++) |
| 4327 | if (XOR (islower (i), ISLOWER (i)) |
| 4328 | || toupper (i) != TOUPPER (i)) |
| 4329 | return 2; |
| 4330 | return 0; |
| 4331 | } |
| 4332 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4333 | if ac_fn_c_try_run "$LINENO"; then : |
| 4334 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4335 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4336 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4337 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4338 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4339 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4340 | fi |
| 4341 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4342 | fi |
| 4343 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4345 | $as_echo "$ac_cv_header_stdc" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4346 | if test $ac_cv_header_stdc = yes; then |
| 4347 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4348 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4349 | |
| 4350 | fi |
| 4351 | |
| 4352 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4353 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4354 | inttypes.h stdint.h unistd.h |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4355 | do : |
| 4356 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4357 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4358 | " |
| 4359 | eval as_val=\$$as_ac_Header |
| 4360 | if test "x$as_val" = x""yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4361 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4362 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4363 | _ACEOF |
| 4364 | |
| 4365 | fi |
| 4366 | |
| 4367 | done |
| 4368 | |
| 4369 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 4371 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 4372 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| 4373 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4374 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4375 | ac_cv_c_bigendian=unknown |
| 4376 | # See if we're dealing with a universal compiler. |
| 4377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4378 | /* end confdefs.h. */ |
| 4379 | #ifndef __APPLE_CC__ |
| 4380 | not a universal capable compiler |
| 4381 | #endif |
| 4382 | typedef int dummy; |
| 4383 | |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4384 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4385 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4386 | |
| 4387 | # Check for potential -arch flags. It is not universal unless |
| 4388 | # there are at least two -arch flags with different values. |
| 4389 | ac_arch= |
| 4390 | ac_prev= |
| 4391 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 4392 | if test -n "$ac_prev"; then |
| 4393 | case $ac_word in |
| 4394 | i?86 | x86_64 | ppc | ppc64) |
| 4395 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 4396 | ac_arch=$ac_word |
| 4397 | else |
| 4398 | ac_cv_c_bigendian=universal |
| 4399 | break |
| 4400 | fi |
| 4401 | ;; |
| 4402 | esac |
| 4403 | ac_prev= |
| 4404 | elif test "x$ac_word" = "x-arch"; then |
| 4405 | ac_prev=arch |
| 4406 | fi |
| 4407 | done |
| 4408 | fi |
| 4409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4410 | if test $ac_cv_c_bigendian = unknown; then |
| 4411 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4413 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4414 | #include <sys/types.h> |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4415 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4416 | |
| 4417 | int |
| 4418 | main () |
| 4419 | { |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4420 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 4421 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 4422 | && LITTLE_ENDIAN) |
| 4423 | bogus endian macros |
| 4424 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4425 | |
| 4426 | ; |
| 4427 | return 0; |
| 4428 | } |
| 4429 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4430 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4431 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4433 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4434 | #include <sys/types.h> |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4435 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4436 | |
| 4437 | int |
| 4438 | main () |
| 4439 | { |
| 4440 | #if BYTE_ORDER != BIG_ENDIAN |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4441 | not big endian |
| 4442 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4443 | |
| 4444 | ; |
| 4445 | return 0; |
| 4446 | } |
| 4447 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4448 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4449 | ac_cv_c_bigendian=yes |
| 4450 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4451 | ac_cv_c_bigendian=no |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4452 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4454 | fi |
| 4455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4456 | fi |
| 4457 | if test $ac_cv_c_bigendian = unknown; then |
| 4458 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 4459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4460 | /* end confdefs.h. */ |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4461 | #include <limits.h> |
| 4462 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4463 | int |
| 4464 | main () |
| 4465 | { |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4466 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 4467 | bogus endian macros |
| 4468 | #endif |
| 4469 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4470 | ; |
| 4471 | return 0; |
| 4472 | } |
| 4473 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4474 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4475 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 4476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4477 | /* end confdefs.h. */ |
| 4478 | #include <limits.h> |
| 4479 | |
| 4480 | int |
| 4481 | main () |
| 4482 | { |
| 4483 | #ifndef _BIG_ENDIAN |
| 4484 | not big endian |
| 4485 | #endif |
| 4486 | |
| 4487 | ; |
| 4488 | return 0; |
| 4489 | } |
| 4490 | _ACEOF |
| 4491 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4492 | ac_cv_c_bigendian=yes |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4493 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4494 | ac_cv_c_bigendian=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 4495 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4497 | fi |
| 4498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4499 | fi |
| 4500 | if test $ac_cv_c_bigendian = unknown; then |
| 4501 | # Compile a test program. |
| 4502 | if test "$cross_compiling" = yes; then : |
| 4503 | # Try to guess by grepping values from an object file. |
| 4504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4505 | /* end confdefs.h. */ |
| 4506 | short int ascii_mm[] = |
| 4507 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4508 | short int ascii_ii[] = |
| 4509 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4510 | int use_ascii (int i) { |
| 4511 | return ascii_mm[i] + ascii_ii[i]; |
| 4512 | } |
| 4513 | short int ebcdic_ii[] = |
| 4514 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4515 | short int ebcdic_mm[] = |
| 4516 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4517 | int use_ebcdic (int i) { |
| 4518 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4519 | } |
| 4520 | extern int foo; |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4521 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4522 | int |
| 4523 | main () |
| 4524 | { |
| 4525 | return use_ascii (foo) == use_ebcdic (foo); |
| 4526 | ; |
| 4527 | return 0; |
| 4528 | } |
| 4529 | _ACEOF |
| 4530 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4531 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4532 | ac_cv_c_bigendian=yes |
| 4533 | fi |
| 4534 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4535 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4536 | ac_cv_c_bigendian=no |
| 4537 | else |
| 4538 | # finding both strings is unlikely to happen, but who knows? |
| 4539 | ac_cv_c_bigendian=unknown |
| 4540 | fi |
| 4541 | fi |
| 4542 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4544 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4546 | /* end confdefs.h. */ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4547 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4548 | int |
| 4549 | main () |
| 4550 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4551 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4552 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4553 | union |
| 4554 | { |
| 4555 | long int l; |
| 4556 | char c[sizeof (long int)]; |
| 4557 | } u; |
| 4558 | u.l = 1; |
| 4559 | return u.c[sizeof (long int) - 1] == 1; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4560 | |
| 4561 | ; |
| 4562 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4563 | } |
| 4564 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4565 | if ac_fn_c_try_run "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4566 | ac_cv_c_bigendian=no |
| 4567 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4568 | ac_cv_c_bigendian=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4569 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4570 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4571 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4572 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4573 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4574 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4575 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4577 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 4578 | case $ac_cv_c_bigendian in #( |
| 4579 | yes) |
| 4580 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 4581 | ;; #( |
| 4582 | no) |
| 4583 | ;; #( |
| 4584 | universal) |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4585 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4586 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4587 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4588 | ;; #( |
| 4589 | *) |
| 4590 | as_fn_error "unknown endianness |
| 4591 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 4592 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4593 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4594 | |
| 4595 | case $target in |
| 4596 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4597 | $as_echo "#define PJ_WIN32 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4598 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4599 | $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4600 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4601 | $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4602 | |
| 4603 | ;; |
| 4604 | *darwin*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4605 | $as_echo "#define PJ_DARWINOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4606 | |
| 4607 | ;; |
| 4608 | *linux*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4609 | $as_echo "#define PJ_LINUX 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4610 | |
| 4611 | ;; |
| 4612 | *rtems*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4613 | $as_echo "#define PJ_RTEMS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4614 | |
| 4615 | ;; |
| 4616 | *sunos* | *solaris* ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4617 | $as_echo "#define PJ_SUNOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4618 | |
| 4619 | ;; |
| 4620 | *) |
| 4621 | ;; |
| 4622 | esac |
| 4623 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4624 | |
| 4625 | |
| 4626 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4627 | # Check whether --enable-floating-point was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4628 | if test "${enable_floating_point+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4629 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4630 | $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4631 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5 |
| 4633 | $as_echo "Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4634 | fi |
| 4635 | else |
| 4636 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4637 | $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4638 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5 |
| 4640 | $as_echo "Checking if floating point is disabled... no" >&6; } |
| 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5 |
| 4642 | $as_echo_n "checking for fmod in -lm... " >&6; } |
| 4643 | if test "${ac_cv_lib_m_fmod+set}" = set; then : |
| 4644 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4645 | else |
| 4646 | ac_check_lib_save_LIBS=$LIBS |
| 4647 | LIBS="-lm $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4649 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4650 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4651 | /* Override any GCC internal prototype to avoid an error. |
| 4652 | Use char because int might match the return type of a GCC |
| 4653 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4654 | #ifdef __cplusplus |
| 4655 | extern "C" |
| 4656 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4657 | char fmod (); |
| 4658 | int |
| 4659 | main () |
| 4660 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4661 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4662 | ; |
| 4663 | return 0; |
| 4664 | } |
| 4665 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4666 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4667 | ac_cv_lib_m_fmod=yes |
| 4668 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4669 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4670 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4671 | rm -f core conftest.err conftest.$ac_objext \ |
| 4672 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4673 | LIBS=$ac_check_lib_save_LIBS |
| 4674 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5 |
| 4676 | $as_echo "$ac_cv_lib_m_fmod" >&6; } |
| 4677 | if test "x$ac_cv_lib_m_fmod" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4678 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4679 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4680 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4681 | |
| 4682 | LIBS="-lm $LIBS" |
| 4683 | |
| 4684 | fi |
| 4685 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4686 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4687 | fi |
| 4688 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4689 | |
| 4690 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4691 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
| 4692 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : |
| 4693 | $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4694 | |
| 4695 | fi |
| 4696 | |
| 4697 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4698 | ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
| 4699 | if test "x$ac_cv_header_assert_h" = x""yes; then : |
| 4700 | $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4701 | |
| 4702 | fi |
| 4703 | |
| 4704 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4705 | ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
| 4706 | if test "x$ac_cv_header_ctype_h" = x""yes; then : |
| 4707 | $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4708 | |
| 4709 | fi |
| 4710 | |
| 4711 | |
| 4712 | |
| 4713 | case $target in |
| 4714 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4715 | $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4716 | |
| 4717 | ;; |
| 4718 | *) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4719 | ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 4720 | if test "x$ac_cv_header_errno_h" = x""yes; then : |
| 4721 | $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4722 | |
| 4723 | fi |
| 4724 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4725 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4726 | ;; |
| 4727 | esac |
| 4728 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4729 | ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 4730 | if test "x$ac_cv_header_fcntl_h" = x""yes; then : |
| 4731 | $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4732 | |
| 4733 | fi |
| 4734 | |
| 4735 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4736 | ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default" |
| 4737 | if test "x$ac_cv_header_linux_socket_h" = x""yes; then : |
| 4738 | $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4739 | |
| 4740 | fi |
| 4741 | |
| 4742 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4743 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
| 4744 | if test "x$ac_cv_header_malloc_h" = x""yes; then : |
| 4745 | $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4746 | |
| 4747 | fi |
| 4748 | |
| 4749 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4750 | ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" |
| 4751 | if test "x$ac_cv_header_netdb_h" = x""yes; then : |
| 4752 | $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4753 | |
| 4754 | fi |
| 4755 | |
| 4756 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4757 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" |
| 4758 | if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then : |
| 4759 | $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4760 | |
| 4761 | fi |
| 4762 | |
| 4763 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4764 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
| 4765 | if test "x$ac_cv_header_netinet_in_h" = x""yes; then : |
| 4766 | $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4767 | |
| 4768 | fi |
| 4769 | |
| 4770 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4771 | 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] | 4772 | # include <sys/types.h> |
| 4773 | #endif |
| 4774 | #if PJ_HAS_NETINET_IN_SYSTM_H |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4775 | # include <netinet/in_systm.h> |
| 4776 | #endif |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4777 | #if PJ_HAS_NETINET_IN_H |
| 4778 | # include <netinet/in.h> |
| 4779 | #endif |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4780 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4781 | " |
| 4782 | if test "x$ac_cv_header_netinet_ip_h" = x""yes; then : |
| 4783 | $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4784 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4785 | fi |
| 4786 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4787 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4788 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" |
| 4789 | if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then : |
| 4790 | $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4791 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4792 | fi |
| 4793 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4794 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4795 | ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" |
| 4796 | if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : |
| 4797 | ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" |
| 4798 | if test "x$ac_cv_func_getifaddrs" = x""yes; then : |
| 4799 | $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4800 | |
| 4801 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4802 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4803 | fi |
| 4804 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4805 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4806 | ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" |
| 4807 | if test "x$ac_cv_header_semaphore_h" = x""yes; then : |
| 4808 | $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4809 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4810 | fi |
| 4811 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4812 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4813 | ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" |
| 4814 | if test "x$ac_cv_header_setjmp_h" = x""yes; then : |
| 4815 | $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4816 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4817 | fi |
| 4818 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4819 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4820 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
| 4821 | if test "x$ac_cv_header_stdarg_h" = x""yes; then : |
| 4822 | $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4823 | |
| 4824 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4825 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4826 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4827 | ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
| 4828 | if test "x$ac_cv_header_stddef_h" = x""yes; then : |
| 4829 | $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4830 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4831 | fi |
| 4832 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4833 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4834 | ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" |
| 4835 | if test "x$ac_cv_header_stdio_h" = x""yes; then : |
| 4836 | $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4837 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4838 | fi |
| 4839 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4840 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4841 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 4842 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
| 4843 | $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4844 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4845 | fi |
| 4846 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4847 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4848 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 4849 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
| 4850 | $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4851 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4852 | fi |
| 4853 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4854 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4855 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| 4856 | if test "x$ac_cv_header_string_h" = x""yes; then : |
| 4857 | $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4858 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4859 | fi |
| 4860 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4861 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4862 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 4863 | if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : |
| 4864 | $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4865 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4866 | fi |
| 4867 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4868 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4869 | ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 4870 | if test "x$ac_cv_header_sys_select_h" = x""yes; then : |
| 4871 | $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4872 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4873 | fi |
| 4874 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4875 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4876 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 4877 | if test "x$ac_cv_header_sys_socket_h" = x""yes; then : |
| 4878 | $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4879 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4880 | fi |
| 4881 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4882 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4883 | ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 4884 | if test "x$ac_cv_header_sys_time_h" = x""yes; then : |
| 4885 | $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4886 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4887 | fi |
| 4888 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4889 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4890 | ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 4891 | if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : |
| 4892 | $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4893 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4894 | fi |
| 4895 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4896 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4897 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 4898 | if test "x$ac_cv_header_sys_types_h" = x""yes; then : |
| 4899 | $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4900 | |
| 4901 | fi |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4902 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4903 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4904 | ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" |
| 4905 | if test "x$ac_cv_header_sys_filio_h" = x""yes; then : |
| 4906 | $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4907 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4908 | fi |
| 4909 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4910 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4911 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
| 4912 | if test "x$ac_cv_header_sys_sockio_h" = x""yes; then : |
| 4913 | $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4914 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4915 | fi |
| 4916 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4917 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4918 | ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
| 4919 | if test "x$ac_cv_header_time_h" = x""yes; then : |
| 4920 | $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4921 | |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 4922 | fi |
| 4923 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4924 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4925 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 4926 | if test "x$ac_cv_header_unistd_h" = x""yes; then : |
| 4927 | $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4928 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4929 | fi |
| 4930 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4931 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4932 | ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default" |
| 4933 | if test "x$ac_cv_header_winsock_h" = x""yes; then : |
| 4934 | $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4935 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4936 | fi |
| 4937 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4938 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4939 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 4940 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 4941 | $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4942 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4943 | fi |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 4944 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4945 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4946 | 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] | 4947 | # include <winsock2.h> |
| 4948 | #elif PJ_HAS_WINSOCK_H |
| 4949 | # include <winsock.h> |
| 4950 | #endif |
| 4951 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4952 | " |
| 4953 | if test "x$ac_cv_header_mswsock_h" = x""yes; then : |
| 4954 | $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 4955 | |
| 4956 | fi |
| 4957 | |
| 4958 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4959 | ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" |
| 4960 | if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : |
| 4961 | $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4962 | |
| 4963 | fi |
| 4964 | |
| 4965 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4966 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" |
| 4967 | if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4968 | ac_has_uuid_h=1 |
| 4969 | fi |
| 4970 | |
| 4971 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4972 | 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] | 4973 | # include <sys/types.h> |
| 4974 | #endif |
| 4975 | #if PJ_HAS_SYS_SOCKET_H |
| 4976 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 4977 | # include <sys/socket.h> |
| 4978 | #endif |
| 4979 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4980 | " |
| 4981 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
| 4982 | $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 4983 | |
| 4984 | fi |
| 4985 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 4986 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5 |
| 4988 | $as_echo "Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4989 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4990 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4991 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4992 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4993 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 4995 | $as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
| 4996 | $as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4997 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4998 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 5000 | $as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
| 5001 | $as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5002 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5003 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 5005 | $as_echo "Setting PJ_HAS_MALLOC to 1" >&6; } |
| 5006 | $as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5007 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5008 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 5010 | $as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
| 5011 | $as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5012 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5013 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 5015 | $as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
| 5016 | $as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5017 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5018 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5 |
| 5020 | $as_echo_n "checking if inet_aton() is available... " >&6; } |
| 5021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5022 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5023 | #include <sys/types.h> |
| 5024 | #include <sys/socket.h> |
| 5025 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5026 | int |
| 5027 | main () |
| 5028 | { |
| 5029 | inet_aton(0, 0); |
| 5030 | ; |
| 5031 | return 0; |
| 5032 | } |
| 5033 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5034 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5035 | $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5036 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5038 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5039 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5041 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5042 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5044 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5 |
| 5046 | $as_echo_n "checking if inet_pton() is available... " >&6; } |
| 5047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5048 | /* end confdefs.h. */ |
| 5049 | #include <sys/types.h> |
| 5050 | #include <sys/socket.h> |
| 5051 | #include <arpa/inet.h> |
| 5052 | int |
| 5053 | main () |
| 5054 | { |
| 5055 | inet_pton(0, 0, 0); |
| 5056 | ; |
| 5057 | return 0; |
| 5058 | } |
| 5059 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5060 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5061 | $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5062 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5064 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5065 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5067 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5068 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5070 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5 |
| 5072 | $as_echo_n "checking if inet_ntop() is available... " >&6; } |
| 5073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5074 | /* end confdefs.h. */ |
| 5075 | #include <sys/types.h> |
| 5076 | #include <sys/socket.h> |
| 5077 | #include <arpa/inet.h> |
| 5078 | int |
| 5079 | main () |
| 5080 | { |
| 5081 | inet_ntop(0, 0, 0, 0); |
| 5082 | ; |
| 5083 | return 0; |
| 5084 | } |
| 5085 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5086 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5087 | $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5088 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5090 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5091 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5093 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5094 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5096 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5 |
| 5098 | $as_echo_n "checking if getaddrinfo() is available... " >&6; } |
| 5099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5100 | /* end confdefs.h. */ |
| 5101 | #include <sys/types.h> |
| 5102 | #include <sys/socket.h> |
| 5103 | #include <netdb.h> |
| 5104 | int |
| 5105 | main () |
| 5106 | { |
| 5107 | getaddrinfo(0, 0, 0, 0); |
| 5108 | ; |
| 5109 | return 0; |
| 5110 | } |
| 5111 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5112 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5113 | $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5114 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5116 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5117 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5119 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5120 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5122 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5 |
| 5124 | $as_echo_n "checking if sockaddr_in has sin_len member... " >&6; } |
| 5125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5126 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5127 | #include <sys/types.h> |
| 5128 | #include <sys/socket.h> |
| 5129 | #include <netinet/in.h> |
| 5130 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5131 | int |
| 5132 | main () |
| 5133 | { |
| 5134 | struct sockaddr_in a; a.sin_len=0; |
| 5135 | ; |
| 5136 | return 0; |
| 5137 | } |
| 5138 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5139 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5140 | $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5141 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5143 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5144 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5146 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5147 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5149 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5 |
| 5151 | $as_echo_n "checking if socklen_t is available... " >&6; } |
| 5152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5153 | /* end confdefs.h. */ |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 5154 | #include <sys/types.h> |
| 5155 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5156 | int |
| 5157 | main () |
| 5158 | { |
| 5159 | socklen_t xxx = 0; |
| 5160 | ; |
| 5161 | return 0; |
| 5162 | } |
| 5163 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5164 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5165 | $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5166 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5168 | $as_echo "yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5169 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5171 | $as_echo "no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5172 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5174 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5 |
| 5176 | $as_echo_n "checking if SO_ERROR is available... " >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5177 | case $target in |
| 5178 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5179 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5180 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5182 | $as_echo "yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5183 | ;; |
| 5184 | *) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5186 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5187 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5188 | #include <sys/socket.h> |
| 5189 | #include <netinet/in.h> |
| 5190 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5191 | int |
| 5192 | main () |
| 5193 | { |
| 5194 | int i=SO_ERROR; |
| 5195 | ; |
| 5196 | return 0; |
| 5197 | } |
| 5198 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5199 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5200 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5201 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5203 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5204 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5206 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5207 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5209 | ;; |
| 5210 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5211 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5212 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5 |
| 5214 | $as_echo_n "checking if pthread_rwlock_t is available... " >&6; } |
| 5215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5216 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5217 | #include <pthread.h> |
| 5218 | int |
| 5219 | main () |
| 5220 | { |
| 5221 | pthread_rwlock_t *x; |
| 5222 | ; |
| 5223 | return 0; |
| 5224 | } |
| 5225 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5226 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5227 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5228 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5229 | ac_rwmutex="yes" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5231 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5232 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5233 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5234 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5235 | ac_rwmutex="no" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5237 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5238 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5240 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5241 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 5243 | $as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; } |
| 5244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5245 | /* end confdefs.h. */ |
| 5246 | #define _POSIX_READER_WRITER_LOCKS |
| 5247 | #include <pthread.h> |
| 5248 | int |
| 5249 | main () |
| 5250 | { |
| 5251 | pthread_rwlock_t *x; |
| 5252 | ; |
| 5253 | return 0; |
| 5254 | } |
| 5255 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5256 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5257 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5258 | |
| 5259 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5261 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5262 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5263 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5264 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5266 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5267 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5269 | fi |
| 5270 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5 |
| 5272 | $as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; } |
| 5273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5274 | /* end confdefs.h. */ |
| 5275 | #include <pthread.h> |
| 5276 | int |
| 5277 | main () |
| 5278 | { |
| 5279 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 5280 | ; |
| 5281 | return 0; |
| 5282 | } |
| 5283 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5284 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5285 | $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5286 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5288 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5289 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5291 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5292 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5294 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5 |
| 5296 | $as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; } |
| 5297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5298 | /* end confdefs.h. */ |
| 5299 | #include <pthread.h> |
| 5300 | int |
| 5301 | main () |
| 5302 | { |
| 5303 | pthread_mutexattr_t attr; |
| 5304 | attr.recursive=1; |
| 5305 | ; |
| 5306 | return 0; |
| 5307 | } |
| 5308 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5309 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5310 | $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5311 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5313 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5314 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5316 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5317 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5319 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5320 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5 |
| 5322 | $as_echo_n "checking ioqueue backend... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5323 | # Check whether --enable-epoll was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5324 | if test "${enable_epoll+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5325 | enableval=$enable_epoll; |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5326 | ac_os_objs=ioqueue_epoll.o |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5 |
| 5328 | $as_echo "/dev/epoll" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5329 | |
| 5330 | else |
| 5331 | |
| 5332 | ac_os_objs=ioqueue_select.o |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 |
| 5334 | $as_echo "select()" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5335 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5336 | fi |
| 5337 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5338 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5339 | |
| 5340 | case $target in |
| 5341 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5342 | 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] | 5343 | ;; |
| 5344 | *) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5345 | 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" |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5346 | # UUID |
| 5347 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 5348 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 5349 | else |
| 5350 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 5351 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5352 | ;; |
| 5353 | esac |
| 5354 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5355 | |
| 5356 | |
| 5357 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5358 | ac_external_speex=0 |
| 5359 | |
| 5360 | |
| 5361 | # Check whether --with-external-speex was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5362 | if test "${with_external_speex+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5363 | withval=$with_external_speex; |
| 5364 | if test "x$with_external_speex" != "xno"; then |
| 5365 | # Test Speex installation |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5 |
| 5367 | $as_echo_n "checking if external Speex devkit is installed... " >&6; } |
| 5368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5369 | /* end confdefs.h. */ |
| 5370 | #include <speex/speex.h> |
| 5371 | #include <speex/speex_echo.h> |
| 5372 | |
| 5373 | int |
| 5374 | main () |
| 5375 | { |
| 5376 | speex_echo_state_init(0, 0); speex_encoder_init(0); |
| 5377 | ; |
| 5378 | return 0; |
| 5379 | } |
| 5380 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5381 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5383 | $as_echo "yes!!" >&6; } |
| 5384 | $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5385 | |
| 5386 | ac_external_speex="1" |
| 5387 | |
| 5388 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5389 | 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] | 5390 | fi |
| 5391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5392 | fi |
| 5393 | |
| 5394 | |
| 5395 | fi |
| 5396 | |
| 5397 | |
| 5398 | ac_external_gsm=0 |
| 5399 | |
| 5400 | |
| 5401 | # Check whether --with-external-gsm was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5402 | if test "${with_external_gsm+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5403 | withval=$with_external_gsm; |
| 5404 | if test "x$with_external_gsm" != "xno"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5405 | # Test GSM library installation |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5 |
| 5407 | $as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; } |
| 5408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5409 | /* end confdefs.h. */ |
| 5410 | #include <gsm/gsm.h> |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5411 | int |
| 5412 | main () |
| 5413 | { |
| 5414 | gsm_create(); |
| 5415 | ; |
| 5416 | return 0; |
| 5417 | } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5418 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5419 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5421 | $as_echo "yes!!" >&6; } |
| 5422 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5423 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5424 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5425 | |
| 5426 | ac_external_gsm="1" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5427 | |
| 5428 | else |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5429 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5431 | $as_echo "no" >&6; } |
| 5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5 |
| 5433 | $as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; } |
| 5434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5435 | /* end confdefs.h. */ |
| 5436 | #include <gsm.h> |
| 5437 | int |
| 5438 | main () |
| 5439 | { |
| 5440 | gsm_create(); |
| 5441 | ; |
| 5442 | return 0; |
| 5443 | } |
| 5444 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5445 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5447 | $as_echo "yes!!" >&6; } |
| 5448 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5449 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5450 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5451 | |
| 5452 | ac_external_gsm="1" |
| 5453 | |
| 5454 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5455 | 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] | 5456 | |
| 5457 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5458 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5460 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5461 | |
| 5462 | fi |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5464 | fi |
| 5465 | |
| 5466 | |
| 5467 | fi |
| 5468 | |
| 5469 | |
| 5470 | |
| 5471 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5472 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5473 | # Check whether --enable-sound was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5474 | if test "${enable_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5475 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5476 | ac_pjmedia_snd=null |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5 |
| 5478 | $as_echo "Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5479 | fi |
| 5480 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5481 | fi |
| 5482 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5483 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5484 | ac_external_pa=0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5485 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5486 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5487 | # Check whether --with-external-pa was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5488 | if test "${with_external_pa+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5489 | withval=$with_external_pa; |
| 5490 | if test "x$with_external_pa" != "xno"; then |
| 5491 | # Test PortAudio installation |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5 |
| 5493 | $as_echo_n "checking if external PortAudio devkit is installed... " >&6; } |
| 5494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5495 | /* end confdefs.h. */ |
| 5496 | #include <portaudio.h> |
| 5497 | |
| 5498 | int |
| 5499 | main () |
| 5500 | { |
| 5501 | Pa_Initialize(); |
| 5502 | ; |
| 5503 | return 0; |
| 5504 | } |
| 5505 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5506 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5508 | $as_echo "yes!!" >&6; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5509 | ac_external_pa="1" |
| 5510 | |
| 5511 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5512 | 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] | 5513 | fi |
| 5514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5515 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5516 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5517 | |
| 5518 | fi |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5519 | |
| 5520 | |
| 5521 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5522 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" |
| 5523 | if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5524 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 5525 | fi |
| 5526 | |
| 5527 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5528 | ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default" |
| 5529 | if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5530 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 5531 | fi |
| 5532 | |
| 5533 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5534 | ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default" |
| 5535 | if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5536 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 5537 | fi |
| 5538 | |
| 5539 | |
| 5540 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 5541 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 5542 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 5543 | else |
| 5544 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 5545 | fi |
| 5546 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5547 | if test "$enable_sound" = "no"; then |
| 5548 | true; |
| 5549 | else |
| 5550 | case $target in |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 5551 | arm-apple-darwin*) |
Sauw Ming | be3771a | 2010-08-27 06:46:29 +0000 | [diff] [blame] | 5552 | LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5 |
| 5554 | $as_echo "Checking sound device backend... AudioUnit" >&6; } |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 5555 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5556 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5557 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 5558 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5559 | #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] | 5560 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 5561 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5 |
| 5563 | $as_echo "Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5564 | else |
| 5565 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5 |
| 5567 | $as_echo "Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5568 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5569 | ;; |
| 5570 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5571 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5 |
| 5573 | $as_echo "Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5574 | ;; |
| 5575 | *rtems*) |
| 5576 | ac_pjmedia_snd=null |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5 |
| 5578 | $as_echo "Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5579 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5580 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5581 | ac_pjmedia_snd=pa_unix |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5582 | ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" |
| 5583 | if test "x$ac_cv_header_alsa_version_h" = x""yes; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5584 | ac_pa_use_alsa=1 |
| 5585 | |
| 5586 | LIBS="$LIBS -lasound" |
| 5587 | |
| 5588 | else |
| 5589 | ac_pa_use_alsa=0 |
| 5590 | |
| 5591 | fi |
| 5592 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5593 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5 |
| 5595 | $as_echo "Checking sound device backend... unix" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5596 | |
| 5597 | ac_pa_use_oss=1 |
| 5598 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5599 | # Check whether --enable-oss was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5600 | if test "${enable_oss+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5601 | enableval=$enable_oss; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5602 | if test "$enable_oss" = "no"; then |
| 5603 | ac_pa_use_oss=0 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5 |
| 5605 | $as_echo "Checking if OSS audio is disabled... yes" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5606 | fi |
| 5607 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5608 | fi |
| 5609 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5610 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5611 | esac |
| 5612 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5613 | |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5614 | |
| 5615 | if test "$enable_video" = "no"; then |
| 5616 | true; |
| 5617 | else |
| 5618 | case $target in |
| 5619 | arm-apple-darwin*) |
| 5620 | ac_pjmedia_video=iphone_os |
| 5621 | |
| 5622 | ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" |
| 5623 | LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking video device backend... AVFoundation" >&5 |
| 5625 | $as_echo "Checking video device backend... AVFoundation" >&6; } |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5626 | ;; |
| 5627 | *darwin*) |
| 5628 | ac_pjmedia_video=mac_os |
| 5629 | |
| 5630 | |
| 5631 | SAVED_LIBS="$LIBS" |
| 5632 | LIBS="-framework QTKit" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5634 | /* end confdefs.h. */ |
| 5635 | |
| 5636 | int |
| 5637 | main () |
| 5638 | { |
| 5639 | |
| 5640 | ; |
| 5641 | return 0; |
| 5642 | } |
| 5643 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5644 | if ac_fn_c_try_link "$LINENO"; then : |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5645 | ac_pjmedia_video_has_qt=yes |
| 5646 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5647 | ac_pjmedia_video_has_qt=no |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5648 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5649 | rm -f core conftest.err conftest.$ac_objext \ |
| 5650 | conftest$ac_exeext conftest.$ac_ext |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5651 | LIBS="$SAVED_LIBS" |
| 5652 | if test "$ac_pjmedia_video_has_qt" = "yes"; then |
| 5653 | ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" |
Sauw Ming | 21bd3fd | 2011-04-06 11:30:18 +0000 | [diff] [blame] | 5654 | LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5 |
| 5656 | $as_echo "Checking if QTKit framework is available... yes" >&6; } |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5657 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5 |
| 5659 | $as_echo "Checking if QTKit framework is available... no" >&6; } |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 5660 | fi |
| 5661 | ;; |
| 5662 | esac |
| 5663 | fi |
| 5664 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5665 | # Check whether --enable-ext_sound was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5666 | if test "${enable_ext_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5667 | enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5668 | ac_pjmedia_snd=external |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5 |
| 5670 | $as_echo "Checking if external sound is set... yes" >&6; } |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5671 | fi |
| 5672 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5673 | fi |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5674 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5675 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5676 | |
| 5677 | # Check whether --enable-small-filter was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5678 | if test "${enable_small_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5679 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5680 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5 |
| 5682 | $as_echo "Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5683 | fi |
| 5684 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5 |
| 5686 | $as_echo "Checking if small filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5687 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5688 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5689 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5690 | |
| 5691 | # Check whether --enable-large-filter was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5692 | if test "${enable_large_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5693 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5694 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5 |
| 5696 | $as_echo "Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5697 | fi |
| 5698 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5 |
| 5700 | $as_echo "Checking if large filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5701 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5702 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5703 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5704 | |
| 5705 | # Check whether --enable-speex-aec was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5706 | if test "${enable_speex_aec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5707 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5708 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5 |
| 5710 | $as_echo "Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5711 | fi |
| 5712 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5 |
| 5714 | $as_echo "Checking if Speex AEC is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5715 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5716 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5717 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5718 | |
| 5719 | # Check whether --enable-g711-codec was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5720 | if test "${enable_g711_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5721 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5722 | ac_no_g711_codec=1 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5723 | $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5724 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5 |
| 5726 | $as_echo "Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5727 | fi |
| 5728 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5 |
| 5730 | $as_echo "Checking if G.711 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5731 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5732 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5733 | |
| 5734 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5735 | |
| 5736 | # Check whether --enable-l16-codec was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5737 | if test "${enable_l16_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5738 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5739 | ac_no_l16_codec=1 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5740 | $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5741 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5 |
| 5743 | $as_echo "Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5744 | fi |
| 5745 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5 |
| 5747 | $as_echo "Checking if L16 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5748 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5749 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5750 | |
| 5751 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5752 | |
| 5753 | # Check whether --enable-gsm-codec was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5754 | if test "${enable_gsm_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5755 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5756 | ac_no_gsm_codec=1 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5757 | $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5758 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5 |
| 5760 | $as_echo "Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5761 | fi |
| 5762 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5 |
| 5764 | $as_echo "Checking if GSM codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5765 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5766 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5767 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5768 | |
| 5769 | # Check whether --enable-g722-codec was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5770 | if test "${enable_g722_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5771 | enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5772 | ac_no_g722_codec=1 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5773 | $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5774 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5 |
| 5776 | $as_echo "Checking if G.722 codec is disabled...yes" >&6; } |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5777 | fi |
| 5778 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5 |
| 5780 | $as_echo "Checking if G.722 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5781 | fi |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5782 | |
| 5783 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5784 | |
| 5785 | # Check whether --enable-g7221-codec was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5786 | if test "${enable_g7221_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5787 | enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then |
| 5788 | ac_no_g7221_codec=1 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5789 | $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5790 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5 |
| 5792 | $as_echo "Checking if G.722.1 codec is disabled...yes" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5793 | fi |
| 5794 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5 |
| 5796 | $as_echo "Checking if G.722.1 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5797 | fi |
| 5798 | |
| 5799 | |
| 5800 | |
| 5801 | # Check whether --enable-speex-codec was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5802 | if test "${enable_speex_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5803 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5804 | ac_no_speex_codec=1 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5805 | $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5806 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5 |
| 5808 | $as_echo "Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5809 | fi |
| 5810 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5 |
| 5812 | $as_echo "Checking if Speex codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5813 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5814 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5815 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5816 | |
| 5817 | # Check whether --enable-ilbc-codec was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5818 | if test "${enable_ilbc_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5819 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5820 | ac_no_ilbc_codec=1 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5821 | $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5822 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5 |
| 5824 | $as_echo "Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5825 | fi |
| 5826 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5 |
| 5828 | $as_echo "Checking if iLBC codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5829 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5830 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5831 | |
| 5832 | # Check whether --enable-libsamplerate was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5833 | if test "${enable_libsamplerate+set}" = set; then : |
| 5834 | enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5 |
| 5835 | $as_echo_n "checking for src_new in -lsamplerate... " >&6; } |
| 5836 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then : |
| 5837 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5838 | else |
| 5839 | ac_check_lib_save_LIBS=$LIBS |
| 5840 | LIBS="-lsamplerate $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5842 | /* end confdefs.h. */ |
| 5843 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5844 | /* Override any GCC internal prototype to avoid an error. |
| 5845 | Use char because int might match the return type of a GCC |
| 5846 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5847 | #ifdef __cplusplus |
| 5848 | extern "C" |
| 5849 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5850 | char src_new (); |
| 5851 | int |
| 5852 | main () |
| 5853 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5854 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5855 | ; |
| 5856 | return 0; |
| 5857 | } |
| 5858 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5859 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5860 | ac_cv_lib_samplerate_src_new=yes |
| 5861 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5862 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5863 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5864 | rm -f core conftest.err conftest.$ac_objext \ |
| 5865 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5866 | LIBS=$ac_check_lib_save_LIBS |
| 5867 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 5869 | $as_echo "$ac_cv_lib_samplerate_src_new" >&6; } |
| 5870 | if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5871 | cat >>confdefs.h <<_ACEOF |
| 5872 | #define HAVE_LIBSAMPLERATE 1 |
| 5873 | _ACEOF |
| 5874 | |
| 5875 | LIBS="-lsamplerate $LIBS" |
| 5876 | |
| 5877 | fi |
| 5878 | |
| 5879 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5 |
| 5881 | $as_echo "Skipping libsamplerate detection" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5882 | |
| 5883 | fi |
| 5884 | |
| 5885 | |
| 5886 | # Check whether --enable-sdl was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5887 | if test "${enable_sdl+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5888 | enableval=$enable_sdl; |
| 5889 | if test "$enable_sdl" = "no"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5 |
| 5891 | $as_echo "Checking if SDL is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5892 | fi |
| 5893 | |
| 5894 | else |
| 5895 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability.." >&5 |
| 5897 | $as_echo_n "checking SDL availability..... " >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5898 | if sdl-config --version; then |
| 5899 | |
| 5900 | |
| 5901 | ac_sdl_cflags=`sdl-config --cflags` |
| 5902 | ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags" |
| 5903 | ac_sdl_ldflags=`sdl-config --libs` |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 5904 | LIBS="$LIBS $ac_sdl_ldflags" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5905 | fi |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5906 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5907 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5908 | |
| 5909 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5910 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5911 | # Check whether --enable-ffmpeg was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5912 | if test "${enable_ffmpeg+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5913 | enableval=$enable_ffmpeg; |
| 5914 | ac_has_ffmpeg=0 |
| 5915 | |
| 5916 | if test "$enable_ffmpeg" = "no"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5 |
| 5918 | $as_echo "Checking if ffmpeg is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5919 | fi |
| 5920 | |
| 5921 | else |
| 5922 | |
| 5923 | |
| 5924 | |
| 5925 | |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame^] | 5926 | FFMPEG_PREFIX="" |
| 5927 | if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then |
| 5928 | FFMPEG_PREFIX=$with_ffmpeg |
| 5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5 |
| 5930 | $as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; } |
| 5931 | LIBS="-L$FFMPEG_PREFIX/lib $LIBS" |
| 5932 | CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS" |
| 5933 | fi |
| 5934 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5 |
| 5936 | $as_echo_n "checking for avdevice_version in -lavdevice... " >&6; } |
| 5937 | if test "${ac_cv_lib_avdevice_avdevice_version+set}" = set; then : |
| 5938 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5939 | else |
| 5940 | ac_check_lib_save_LIBS=$LIBS |
| 5941 | LIBS="-lavdevice $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5943 | /* end confdefs.h. */ |
| 5944 | |
| 5945 | /* Override any GCC internal prototype to avoid an error. |
| 5946 | Use char because int might match the return type of a GCC |
| 5947 | builtin and then its argument prototype would still apply. */ |
| 5948 | #ifdef __cplusplus |
| 5949 | extern "C" |
| 5950 | #endif |
| 5951 | char avdevice_version (); |
| 5952 | int |
| 5953 | main () |
| 5954 | { |
| 5955 | return avdevice_version (); |
| 5956 | ; |
| 5957 | return 0; |
| 5958 | } |
| 5959 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5960 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5961 | ac_cv_lib_avdevice_avdevice_version=yes |
| 5962 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5963 | ac_cv_lib_avdevice_avdevice_version=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5964 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5965 | rm -f core conftest.err conftest.$ac_objext \ |
| 5966 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5967 | LIBS=$ac_check_lib_save_LIBS |
| 5968 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5 |
| 5970 | $as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; } |
| 5971 | if test "x$ac_cv_lib_avdevice_avdevice_version" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5972 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" |
| 5973 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice" |
| 5974 | |
| 5975 | |
| 5976 | fi |
| 5977 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5 |
| 5979 | $as_echo_n "checking for av_register_all in -lavformat... " >&6; } |
| 5980 | if test "${ac_cv_lib_avformat_av_register_all+set}" = set; then : |
| 5981 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5982 | else |
| 5983 | ac_check_lib_save_LIBS=$LIBS |
| 5984 | LIBS="-lavformat $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 5985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 5986 | /* end confdefs.h. */ |
| 5987 | |
| 5988 | /* Override any GCC internal prototype to avoid an error. |
| 5989 | Use char because int might match the return type of a GCC |
| 5990 | builtin and then its argument prototype would still apply. */ |
| 5991 | #ifdef __cplusplus |
| 5992 | extern "C" |
| 5993 | #endif |
| 5994 | char av_register_all (); |
| 5995 | int |
| 5996 | main () |
| 5997 | { |
| 5998 | return av_register_all (); |
| 5999 | ; |
| 6000 | return 0; |
| 6001 | } |
| 6002 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6003 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6004 | ac_cv_lib_avformat_av_register_all=yes |
| 6005 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6006 | ac_cv_lib_avformat_av_register_all=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6007 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6008 | rm -f core conftest.err conftest.$ac_objext \ |
| 6009 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6010 | LIBS=$ac_check_lib_save_LIBS |
| 6011 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5 |
| 6013 | $as_echo "$ac_cv_lib_avformat_av_register_all" >&6; } |
| 6014 | if test "x$ac_cv_lib_avformat_av_register_all" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6015 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" |
| 6016 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat" |
| 6017 | |
| 6018 | |
| 6019 | fi |
| 6020 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5 |
| 6022 | $as_echo_n "checking for avcodec_init in -lavcodec... " >&6; } |
| 6023 | if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then : |
| 6024 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6025 | else |
| 6026 | ac_check_lib_save_LIBS=$LIBS |
| 6027 | LIBS="-lavcodec $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6029 | /* end confdefs.h. */ |
| 6030 | |
| 6031 | /* Override any GCC internal prototype to avoid an error. |
| 6032 | Use char because int might match the return type of a GCC |
| 6033 | builtin and then its argument prototype would still apply. */ |
| 6034 | #ifdef __cplusplus |
| 6035 | extern "C" |
| 6036 | #endif |
| 6037 | char avcodec_init (); |
| 6038 | int |
| 6039 | main () |
| 6040 | { |
| 6041 | return avcodec_init (); |
| 6042 | ; |
| 6043 | return 0; |
| 6044 | } |
| 6045 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6046 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6047 | ac_cv_lib_avcodec_avcodec_init=yes |
| 6048 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6049 | ac_cv_lib_avcodec_avcodec_init=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6050 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6051 | rm -f core conftest.err conftest.$ac_objext \ |
| 6052 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6053 | LIBS=$ac_check_lib_save_LIBS |
| 6054 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5 |
| 6056 | $as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; } |
| 6057 | if test "x$ac_cv_lib_avcodec_avcodec_init" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6058 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" |
| 6059 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec" |
| 6060 | |
| 6061 | |
| 6062 | fi |
| 6063 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5 |
| 6065 | $as_echo_n "checking for sws_scale in -lswscale... " >&6; } |
| 6066 | if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then : |
| 6067 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6068 | else |
| 6069 | ac_check_lib_save_LIBS=$LIBS |
| 6070 | LIBS="-lswscale $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6072 | /* end confdefs.h. */ |
| 6073 | |
| 6074 | /* Override any GCC internal prototype to avoid an error. |
| 6075 | Use char because int might match the return type of a GCC |
| 6076 | builtin and then its argument prototype would still apply. */ |
| 6077 | #ifdef __cplusplus |
| 6078 | extern "C" |
| 6079 | #endif |
| 6080 | char sws_scale (); |
| 6081 | int |
| 6082 | main () |
| 6083 | { |
| 6084 | return sws_scale (); |
| 6085 | ; |
| 6086 | return 0; |
| 6087 | } |
| 6088 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6089 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6090 | ac_cv_lib_swscale_sws_scale=yes |
| 6091 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6092 | ac_cv_lib_swscale_sws_scale=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6093 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6094 | rm -f core conftest.err conftest.$ac_objext \ |
| 6095 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6096 | LIBS=$ac_check_lib_save_LIBS |
| 6097 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5 |
| 6099 | $as_echo "$ac_cv_lib_swscale_sws_scale" >&6; } |
| 6100 | if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6101 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" |
| 6102 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" |
| 6103 | |
| 6104 | |
| 6105 | fi |
| 6106 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5 |
| 6108 | $as_echo_n "checking for av_malloc in -lavutil... " >&6; } |
| 6109 | if test "${ac_cv_lib_avutil_av_malloc+set}" = set; then : |
| 6110 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6111 | else |
| 6112 | ac_check_lib_save_LIBS=$LIBS |
| 6113 | LIBS="-lavutil $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6115 | /* end confdefs.h. */ |
| 6116 | |
| 6117 | /* Override any GCC internal prototype to avoid an error. |
| 6118 | Use char because int might match the return type of a GCC |
| 6119 | builtin and then its argument prototype would still apply. */ |
| 6120 | #ifdef __cplusplus |
| 6121 | extern "C" |
| 6122 | #endif |
| 6123 | char av_malloc (); |
| 6124 | int |
| 6125 | main () |
| 6126 | { |
| 6127 | return av_malloc (); |
| 6128 | ; |
| 6129 | return 0; |
| 6130 | } |
| 6131 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6132 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6133 | ac_cv_lib_avutil_av_malloc=yes |
| 6134 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6135 | ac_cv_lib_avutil_av_malloc=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6136 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6137 | rm -f core conftest.err conftest.$ac_objext \ |
| 6138 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6139 | LIBS=$ac_check_lib_save_LIBS |
| 6140 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5 |
| 6142 | $as_echo "$ac_cv_lib_avutil_av_malloc" >&6; } |
| 6143 | if test "x$ac_cv_lib_avutil_av_malloc" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6144 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" |
| 6145 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil" |
| 6146 | |
| 6147 | |
| 6148 | fi |
| 6149 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5 |
| 6151 | $as_echo_n "checking for avcore_version in -lavcore... " >&6; } |
| 6152 | if test "${ac_cv_lib_avcore_avcore_version+set}" = set; then : |
| 6153 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6154 | else |
| 6155 | ac_check_lib_save_LIBS=$LIBS |
| 6156 | LIBS="-lavcore $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6158 | /* end confdefs.h. */ |
| 6159 | |
| 6160 | /* Override any GCC internal prototype to avoid an error. |
| 6161 | Use char because int might match the return type of a GCC |
| 6162 | builtin and then its argument prototype would still apply. */ |
| 6163 | #ifdef __cplusplus |
| 6164 | extern "C" |
| 6165 | #endif |
| 6166 | char avcore_version (); |
| 6167 | int |
| 6168 | main () |
| 6169 | { |
| 6170 | return avcore_version (); |
| 6171 | ; |
| 6172 | return 0; |
| 6173 | } |
| 6174 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6175 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6176 | ac_cv_lib_avcore_avcore_version=yes |
| 6177 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6178 | ac_cv_lib_avcore_avcore_version=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6179 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6180 | rm -f core conftest.err conftest.$ac_objext \ |
| 6181 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6182 | LIBS=$ac_check_lib_save_LIBS |
| 6183 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5 |
| 6185 | $as_echo "$ac_cv_lib_avcore_avcore_version" >&6; } |
| 6186 | if test "x$ac_cv_lib_avcore_avcore_version" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6187 | ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" |
| 6188 | ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore" |
| 6189 | |
| 6190 | |
| 6191 | fi |
| 6192 | |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 6193 | LIBS="$LIBS $ac_ffmpeg_ldflags" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6194 | |
| 6195 | |
| 6196 | fi |
| 6197 | |
| 6198 | |
Benny Prijono | c8ef0ac | 2011-04-13 19:13:56 +0000 | [diff] [blame^] | 6199 | |
| 6200 | # Check whether --with-ffmpeg was given. |
| 6201 | if test "${with_ffmpeg+set}" = set; then : |
| 6202 | withval=$with_ffmpeg; |
| 6203 | else |
| 6204 | with_ffmpeg=no |
| 6205 | |
| 6206 | fi |
| 6207 | |
| 6208 | |
| 6209 | |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6210 | # Check whether --enable-v4l2 was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6211 | if test "${enable_v4l2+set}" = set; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6212 | enableval=$enable_v4l2; |
| 6213 | if test "$enable_v4l2" = "no"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5 |
| 6215 | $as_echo "Checking if V4L2 is disabled... yes" >&6; } |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6216 | fi |
| 6217 | |
| 6218 | else |
| 6219 | |
| 6220 | |
| 6221 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5 |
| 6223 | $as_echo_n "checking for v4l2_open in -lv4l2... " >&6; } |
| 6224 | if test "${ac_cv_lib_v4l2_v4l2_open+set}" = set; then : |
| 6225 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6226 | else |
| 6227 | ac_check_lib_save_LIBS=$LIBS |
| 6228 | LIBS="-lv4l2 $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6230 | /* end confdefs.h. */ |
| 6231 | |
| 6232 | /* Override any GCC internal prototype to avoid an error. |
| 6233 | Use char because int might match the return type of a GCC |
| 6234 | builtin and then its argument prototype would still apply. */ |
| 6235 | #ifdef __cplusplus |
| 6236 | extern "C" |
| 6237 | #endif |
| 6238 | char v4l2_open (); |
| 6239 | int |
| 6240 | main () |
| 6241 | { |
| 6242 | return v4l2_open (); |
| 6243 | ; |
| 6244 | return 0; |
| 6245 | } |
| 6246 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6247 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6248 | ac_cv_lib_v4l2_v4l2_open=yes |
| 6249 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6250 | ac_cv_lib_v4l2_v4l2_open=no |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6251 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6252 | rm -f core conftest.err conftest.$ac_objext \ |
| 6253 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6254 | LIBS=$ac_check_lib_save_LIBS |
| 6255 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5 |
| 6257 | $as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; } |
| 6258 | if test "x$ac_cv_lib_v4l2_v4l2_open" = x""yes; then : |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6259 | ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1" |
| 6260 | ac_v4l2_ldflags="-lv4l2" |
Benny Prijono | 69b1f82 | 2010-12-10 11:33:01 +0000 | [diff] [blame] | 6261 | LIBS="$LIBS -lv4l2" |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 6262 | |
| 6263 | |
| 6264 | fi |
| 6265 | |
| 6266 | |
| 6267 | fi |
| 6268 | |
| 6269 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6270 | # Check whether --enable-ipp was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6271 | if test "${enable_ipp+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6272 | enableval=$enable_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6273 | else |
| 6274 | enable_ipp=no |
| 6275 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6276 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6277 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6278 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6279 | |
| 6280 | # Check whether --with-ipp was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6281 | if test "${with_ipp+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6282 | withval=$with_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6283 | else |
| 6284 | with_ipp=no |
| 6285 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6286 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6287 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6288 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6289 | |
| 6290 | # Check whether --with-ipp-samples was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6291 | if test "${with_ipp_samples+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6292 | withval=$with_ipp_samples; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6293 | else |
| 6294 | with_ipp_samples=no |
| 6295 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6296 | fi |
| 6297 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6298 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6299 | |
| 6300 | # Check whether --with-ipp-arch was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6301 | if test "${with_ipp_arch+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6302 | withval=$with_ipp_arch; |
| 6303 | else |
| 6304 | with_ipp_arch=no |
| 6305 | |
| 6306 | fi |
| 6307 | |
| 6308 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6309 | if test "x$enable_ipp" != "xno"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5 |
| 6311 | $as_echo_n "checking Intel IPP location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6312 | |
| 6313 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5 |
| 6315 | $as_echo "$with_ipp" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6316 | IPPROOT=$with_ipp |
| 6317 | elif test "x$IPPROOT" = "x"; then |
| 6318 | if test -d /opt/intel/ipp; then |
| 6319 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5 |
| 6321 | $as_echo "autodetected in $IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6322 | fi |
| 6323 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5 |
| 6325 | $as_echo "$IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6326 | fi |
| 6327 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6328 | if test "x$with_ipp_arch" != "xno"; then |
Benny Prijono | 896be29 | 2010-08-17 12:16:46 +0000 | [diff] [blame] | 6329 | IPP_SUFFIX=$with_ipp_arch |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 |
| 6331 | $as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6332 | else |
| 6333 | IPP_SUFFIX="" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5 |
| 6335 | $as_echo "IPP arch suffix is set to empty" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6336 | fi |
| 6337 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6338 | if test x$IPPROOT = x; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6339 | 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] | 6340 | elif test ! -d $IPPROOT; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6341 | as_fn_error "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6342 | elif test ! -d $IPPROOT/include; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6343 | as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6344 | else |
| 6345 | # IPP directory looks okay. |
| 6346 | # Remove trailing backslash |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6347 | IPPROOT=`echo $IPPROOT | sed 's/\/$//'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6348 | |
| 6349 | SAVED_CFLAGS="$CFLAGS" |
| 6350 | SAVED_LDFLAGS="$LDFLAGS" |
| 6351 | SAVED_LIBS="$LIBS" |
| 6352 | |
| 6353 | IPP_CFLAGS="-I$IPPROOT/include" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6354 | IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6355 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6356 | # |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6357 | # Some differences between Mac OS X and Linux |
| 6358 | case $target in |
| 6359 | *darwin* ) |
| 6360 | IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib" |
| 6361 | ;; |
| 6362 | *) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6363 | # Find out where the libraries live. |
| 6364 | IPP7_ARCH="" |
| 6365 | if test -d $IPPROOT/lib/intel64; then |
| 6366 | IPP7_ARCH="intel64" |
| 6367 | elif test -d $IPPROOT/lib/ia32; then |
| 6368 | IPP7_ARCH="ia32" |
| 6369 | elif test -d $IPPROOT/lib/mic; then |
| 6370 | IPP7_ARCH="mic" |
| 6371 | fi |
| 6372 | |
| 6373 | if test -z "$IPP7_ARCH"; then |
| 6374 | # IPP6 (and possibly below) |
| 6375 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 6376 | IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide" |
| 6377 | else |
| 6378 | # IPP7 |
| 6379 | if ! test -d $IPPROOT/../compiler; then |
| 6380 | as_fn_error "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5 |
| 6381 | fi |
| 6382 | IPP_CFLAGS="$IPP_CFLAGS" |
| 6383 | IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH" |
| 6384 | IPP_LIBS="$IPP_LIBS -liomp5" |
| 6385 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6386 | ;; |
| 6387 | esac |
| 6388 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6389 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6390 | #Static: |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6391 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 6392 | |
| 6393 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 6394 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 6395 | LIBS="$IPP_LIBS $LIBS" |
| 6396 | |
| 6397 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5 |
| 6399 | $as_echo_n "checking Intel IPP usability... " >&6; } |
| 6400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6401 | /* end confdefs.h. */ |
| 6402 | #include <ippcore.h> |
| 6403 | |
| 6404 | int |
| 6405 | main () |
| 6406 | { |
| 6407 | ippStaticInit(); |
| 6408 | ; |
| 6409 | return 0; |
| 6410 | } |
| 6411 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6412 | if ac_fn_c_try_link "$LINENO"; then : |
| 6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6414 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6415 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6416 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6417 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6418 | { as_fn_set_status run with --help for more info |
| 6419 | as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly |
| 6420 | See \`config.log' for more details." "$LINENO" 5; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6421 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6422 | rm -f core conftest.err conftest.$ac_objext \ |
| 6423 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6424 | |
| 6425 | CFLAGS="$SAVED_CFLAGS" |
| 6426 | LDFLAGS="$SAVED_LDFLAGS" |
| 6427 | LIBS="$SAVED_LIBS" |
| 6428 | fi |
| 6429 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5 |
| 6431 | $as_echo_n "checking Intel IPP samples location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6432 | |
| 6433 | if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5 |
| 6435 | $as_echo "$with_ipp_samples" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6436 | IPPSAMPLES=$with_ipp_samples |
| 6437 | elif test "x$IPPSAMPLES" = "x"; then |
| 6438 | if test -d /opt/intel/ipp-samples; then |
| 6439 | IPPSAMPLES=/opt/intel/ipp-samples |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5 |
| 6441 | $as_echo "autodetected in $IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6442 | fi |
| 6443 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5 |
| 6445 | $as_echo "$IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6446 | fi |
| 6447 | |
| 6448 | if test x$IPPSAMPLES = x; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6449 | 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] | 6450 | elif test ! -d $IPPSAMPLES; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6451 | as_fn_error "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6452 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6453 | as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6454 | else |
| 6455 | # Remove trailing backslash |
| 6456 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 6457 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6458 | # Guess the libusc.a/libspeech.a build location |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5 |
| 6460 | $as_echo_n "checking Intel IPP USC build location... " >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6461 | if test -d $IPPSAMPLES/speech-codecs/bin; then |
| 6462 | IPPVER=5 |
| 6463 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 6464 | elif test -d $IPPSAMPLES/speech-codecs/_bin; then |
| 6465 | IPPVER=6 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6466 | if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then |
| 6467 | # gcc compiler |
| 6468 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` |
| 6469 | elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then |
| 6470 | # icc compiler |
| 6471 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` |
| 6472 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6473 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6474 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6475 | as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? |
| 6476 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6477 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6478 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6479 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6480 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6481 | 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? |
| 6482 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6483 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6484 | |
| 6485 | # Test the directory |
| 6486 | if test ! -d $IPPSAMP_DIR; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6487 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6488 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6489 | as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist |
| 6490 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6491 | exit 1; |
| 6492 | fi |
| 6493 | |
| 6494 | if test "x$IPPVER" = "x5"; then |
| 6495 | IPPSAMP_LIBS="libusc.a" |
| 6496 | IPPSAMP_LDLIBS="-lusc" |
| 6497 | elif test "x$IPPVER" = "x6"; then |
| 6498 | IPPSAMP_LIBS="libspeech.a" |
| 6499 | IPPSAMP_LDLIBS="-lspeech" |
| 6500 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6501 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6502 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6503 | as_fn_error "bug in this script: unsupported IPP version |
| 6504 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6505 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6506 | |
| 6507 | if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6508 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6509 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6510 | as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR |
| 6511 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6512 | fi |
| 6513 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5 |
| 6515 | $as_echo "$IPPSAMP_DIR" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6516 | |
| 6517 | SAVED_CFLAGS="$CFLAGS" |
| 6518 | SAVED_LDFLAGS="$LDFLAGS" |
| 6519 | SAVED_LIBS="$LIBS" |
| 6520 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6521 | IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 6522 | CFLAGS="$CFLAGS $IPPSAMP_INC" |
| 6523 | LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR" |
| 6524 | LIBS="$IPPSAMP_LDLIBS $LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6525 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5 |
| 6527 | $as_echo_n "checking Intel IPP USC usability... " >&6; } |
| 6528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6529 | /* end confdefs.h. */ |
| 6530 | #include <usc.h> |
| 6531 | |
| 6532 | int |
| 6533 | main () |
| 6534 | { |
| 6535 | extern USC_Fxns USC_G729AFP_Fxns; |
| 6536 | ; |
| 6537 | return 0; |
| 6538 | } |
| 6539 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6540 | if ac_fn_c_try_link "$LINENO"; then : |
| 6541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6542 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6543 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6544 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6545 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6546 | as_fn_error "failed |
| 6547 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6548 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6549 | rm -f core conftest.err conftest.$ac_objext \ |
| 6550 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6551 | |
| 6552 | CFLAGS="$SAVED_CFLAGS" |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6553 | LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS" |
| 6554 | LIBS="$IPP_LIBS $SAVED_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6555 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6556 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC" |
| 6557 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR" |
| 6558 | IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6559 | fi |
| 6560 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6561 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 6562 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 6563 | LIBS="$LIBS $IPP_LIBS" |
| 6564 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6565 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 6566 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 6567 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 6568 | export IPP_LIBS=$IPP_LIBS" |
| 6569 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 6571 | $as_echo "Skipping Intel IPP settings (not wanted)" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6572 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6573 | |
| 6574 | |
| 6575 | |
| 6576 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6577 | # Check whether --enable-ssl was given. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6578 | if test "${enable_ssl+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6579 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6580 | if test "$enable_ssl" = "no"; then |
| 6581 | ac_no_ssl=1 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5 |
| 6583 | $as_echo "Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6584 | fi |
| 6585 | |
| 6586 | else |
| 6587 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5 |
| 6589 | $as_echo "checking for OpenSSL installations.." >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6590 | |
| 6591 | |
| 6592 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6593 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" |
| 6594 | if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6595 | openssl_h_present=1 |
| 6596 | fi |
| 6597 | |
| 6598 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 6600 | $as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; } |
| 6601 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then : |
| 6602 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6603 | else |
| 6604 | ac_check_lib_save_LIBS=$LIBS |
| 6605 | LIBS="-lcrypto $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6607 | /* end confdefs.h. */ |
| 6608 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6609 | /* Override any GCC internal prototype to avoid an error. |
| 6610 | Use char because int might match the return type of a GCC |
| 6611 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6612 | #ifdef __cplusplus |
| 6613 | extern "C" |
| 6614 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6615 | char ERR_load_BIO_strings (); |
| 6616 | int |
| 6617 | main () |
| 6618 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6619 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6620 | ; |
| 6621 | return 0; |
| 6622 | } |
| 6623 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6624 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6625 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 6626 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6627 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6628 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6629 | rm -f core conftest.err conftest.$ac_objext \ |
| 6630 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6631 | LIBS=$ac_check_lib_save_LIBS |
| 6632 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 6634 | $as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
| 6635 | if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6636 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 6637 | fi |
| 6638 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 |
| 6640 | $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } |
| 6641 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then : |
| 6642 | $as_echo_n "(cached) " >&6 |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6643 | else |
| 6644 | ac_check_lib_save_LIBS=$LIBS |
| 6645 | LIBS="-lssl $LIBS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6647 | /* end confdefs.h. */ |
| 6648 | |
| 6649 | /* Override any GCC internal prototype to avoid an error. |
| 6650 | Use char because int might match the return type of a GCC |
| 6651 | builtin and then its argument prototype would still apply. */ |
| 6652 | #ifdef __cplusplus |
| 6653 | extern "C" |
| 6654 | #endif |
| 6655 | char SSL_library_init (); |
| 6656 | int |
| 6657 | main () |
| 6658 | { |
| 6659 | return SSL_library_init (); |
| 6660 | ; |
| 6661 | return 0; |
| 6662 | } |
| 6663 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6664 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6665 | ac_cv_lib_ssl_SSL_library_init=yes |
| 6666 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6667 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6668 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6669 | rm -f core conftest.err conftest.$ac_objext \ |
| 6670 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6671 | LIBS=$ac_check_lib_save_LIBS |
| 6672 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 6674 | $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } |
| 6675 | if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then : |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6676 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 6677 | fi |
| 6678 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6679 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5 |
| 6681 | $as_echo "OpenSSL library found, SSL support enabled" >&6; } |
Nanang Izzuddin | 9c7616f | 2009-10-28 06:09:15 +0000 | [diff] [blame] | 6682 | # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK |
| 6683 | #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6684 | $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h |
Nanang Izzuddin | ea6d3c4 | 2009-10-26 15:47:52 +0000 | [diff] [blame] | 6685 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6686 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 6688 | $as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6689 | fi |
| 6690 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6691 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6692 | |
| 6693 | |
| 6694 | |
| 6695 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6696 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5 |
| 6698 | $as_echo_n "checking if select() needs correct nfds... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6699 | case $target in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6700 | *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6701 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6703 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6704 | ;; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6705 | *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6706 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6708 | $as_echo "no (default)" >&6; } |
| 6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 6710 | $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] | 6711 | ;; |
| 6712 | esac |
| 6713 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5 |
| 6715 | $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] | 6716 | case $target in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6717 | *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6718 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6720 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6721 | ;; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6722 | *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6723 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6725 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6726 | ;; |
| 6727 | esac |
| 6728 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5 |
| 6730 | $as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6731 | case $target in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6732 | *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6733 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6735 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6736 | ;; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6737 | *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6738 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6740 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6741 | ;; |
| 6742 | esac |
| 6743 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6744 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6745 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6746 | $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6747 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6748 | ;; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6749 | *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6750 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 6752 | $as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6753 | ;; |
| 6754 | esac |
| 6755 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6756 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6757 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6758 | $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6759 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6760 | ;; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6761 | *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6762 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 6764 | $as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6765 | ;; |
| 6766 | esac |
| 6767 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6768 | |
| 6769 | |
| 6770 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6771 | if test "$build" = "$host"; then |
| 6772 | ac_cross_compile= |
| 6773 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 6774 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6775 | fi |
| 6776 | ac_linux_poll=select |
| 6777 | |
| 6778 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6779 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6780 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6781 | case $target in |
| 6782 | *rtems*) |
| 6783 | ac_main_obj=main_rtems.o |
| 6784 | ;; |
| 6785 | *) |
| 6786 | ac_main_obj=main.o |
| 6787 | ;; |
| 6788 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6789 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6790 | |
| 6791 | 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] | 6792 | cat >confcache <<\_ACEOF |
| 6793 | # This file is a shell script that caches the results of configure |
| 6794 | # tests run on this system so they can be shared between configure |
| 6795 | # scripts and configure runs, see configure's option --config-cache. |
| 6796 | # It is not useful on other systems. If it contains results you don't |
| 6797 | # want to keep, you may remove or edit it. |
| 6798 | # |
| 6799 | # config.status only pays attention to the cache file if you give it |
| 6800 | # the --recheck option to rerun configure. |
| 6801 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6802 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6803 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 6804 | # following values. |
| 6805 | |
| 6806 | _ACEOF |
| 6807 | |
| 6808 | # The following way of writing the cache mishandles newlines in values, |
| 6809 | # but we know of no workaround that is simple, portable, and efficient. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6810 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6811 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6812 | # 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] | 6813 | ( |
| 6814 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 6815 | eval ac_val=\$$ac_var |
| 6816 | case $ac_val in #( |
| 6817 | *${as_nl}*) |
| 6818 | case $ac_var in #( |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6819 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 6820 | $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] | 6821 | esac |
| 6822 | case $ac_var in #( |
| 6823 | _ | IFS | as_nl) ;; #( |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6824 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 6825 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6826 | esac ;; |
| 6827 | esac |
| 6828 | done |
| 6829 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6830 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6831 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 6832 | *${as_nl}ac_space=\ *) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6833 | # `set' does not quote correctly, so add quotes: double-quote |
| 6834 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6835 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6836 | "s/'/'\\\\''/g; |
| 6837 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6838 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6839 | *) |
| 6840 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6841 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6842 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6843 | esac | |
| 6844 | sort |
| 6845 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6846 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6847 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6848 | t clear |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6849 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6850 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6851 | t end |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6852 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6853 | :end' >>confcache |
| 6854 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 6855 | if test -w "$cache_file"; then |
| 6856 | test "x$cache_file" != "x/dev/null" && |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 6858 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6859 | cat confcache >$cache_file |
| 6860 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 6862 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6863 | fi |
| 6864 | fi |
| 6865 | rm -f confcache |
| 6866 | |
| 6867 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6868 | # Let make expand exec_prefix. |
| 6869 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6870 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6871 | DEFS=-DHAVE_CONFIG_H |
| 6872 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6873 | ac_libobjs= |
| 6874 | ac_ltlibobjs= |
| 6875 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 6876 | # 1. Remove the extension, and $U if already installed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6877 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6878 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6879 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 6880 | # will be set to the directory where LIBOBJS objects are built. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6881 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 6882 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6883 | done |
| 6884 | LIBOBJS=$ac_libobjs |
| 6885 | |
| 6886 | LTLIBOBJS=$ac_ltlibobjs |
| 6887 | |
| 6888 | |
| 6889 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6890 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6891 | : ${CONFIG_STATUS=./config.status} |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6892 | ac_write_fail=0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6893 | ac_clean_files_save=$ac_clean_files |
| 6894 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 6896 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6897 | as_write_fail=0 |
| 6898 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6899 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6900 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6901 | # Run this file to recreate the current configuration. |
| 6902 | # Compiler output produced by configure, useful for debugging |
| 6903 | # configure, is in config.log if it exists. |
| 6904 | |
| 6905 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6906 | ac_cs_recheck=false |
| 6907 | ac_cs_silent=false |
Sauw Ming | 6e6c215 | 2010-12-14 13:03:10 +0000 | [diff] [blame] | 6908 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6909 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 6910 | export SHELL |
| 6911 | _ASEOF |
| 6912 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 6913 | ## -------------------- ## |
| 6914 | ## M4sh Initialization. ## |
| 6915 | ## -------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6916 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6917 | # Be more Bourne compatible |
| 6918 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6919 | 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] | 6920 | emulate sh |
| 6921 | NULLCMD=: |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6922 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6923 | # is contrary to our usage. Disable this feature. |
| 6924 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6925 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6926 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6927 | case `(set -o) 2>/dev/null` in #( |
| 6928 | *posix*) : |
| 6929 | set -o posix ;; #( |
| 6930 | *) : |
| 6931 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6932 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6933 | fi |
| 6934 | |
| 6935 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6936 | as_nl=' |
| 6937 | ' |
| 6938 | export as_nl |
| 6939 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 6940 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6941 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6942 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6943 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 6944 | # but without wasting forks for bash or zsh. |
| 6945 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 6946 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6947 | as_echo='print -r --' |
| 6948 | as_echo_n='print -rn --' |
| 6949 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6950 | as_echo='printf %s\n' |
| 6951 | as_echo_n='printf %s' |
| 6952 | else |
| 6953 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 6954 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 6955 | as_echo_n='/usr/ucb/echo -n' |
| 6956 | else |
| 6957 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 6958 | as_echo_n_body='eval |
| 6959 | arg=$1; |
| 6960 | case $arg in #( |
| 6961 | *"$as_nl"*) |
| 6962 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 6963 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 6964 | esac; |
| 6965 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 6966 | ' |
| 6967 | export as_echo_n_body |
| 6968 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 6969 | fi |
| 6970 | export as_echo_body |
| 6971 | as_echo='sh -c $as_echo_body as_echo' |
| 6972 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6973 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6974 | # The user is always right. |
| 6975 | if test "${PATH_SEPARATOR+set}" != set; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6976 | PATH_SEPARATOR=: |
| 6977 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 6978 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 6979 | PATH_SEPARATOR=';' |
| 6980 | } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6981 | fi |
| 6982 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6983 | |
| 6984 | # IFS |
| 6985 | # We need space, tab and new line, in precisely that order. Quoting is |
| 6986 | # there to prevent editors from complaining about space-tab. |
| 6987 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 6988 | # splitting by setting IFS to empty value.) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6989 | IFS=" "" $as_nl" |
| 6990 | |
| 6991 | # Find who we are. Look in the path if we contain no directory separator. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6992 | case $0 in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6993 | *[\\/]* ) as_myself=$0 ;; |
| 6994 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6995 | for as_dir in $PATH |
| 6996 | do |
| 6997 | IFS=$as_save_IFS |
| 6998 | test -z "$as_dir" && as_dir=. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 6999 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 7000 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7001 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7002 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7003 | ;; |
| 7004 | esac |
| 7005 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 7006 | # in which case we are not to be found in the path. |
| 7007 | if test "x$as_myself" = x; then |
| 7008 | as_myself=$0 |
| 7009 | fi |
| 7010 | if test ! -f "$as_myself"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7011 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 7012 | exit 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7013 | fi |
| 7014 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7015 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 7016 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 7017 | # suppresses any "Segmentation fault" message there. '((' could |
| 7018 | # trigger a bug in pdksh 5.2.14. |
| 7019 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 7020 | do eval test x\${$as_var+set} = xset \ |
| 7021 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7022 | done |
| 7023 | PS1='$ ' |
| 7024 | PS2='> ' |
| 7025 | PS4='+ ' |
| 7026 | |
| 7027 | # NLS nuisances. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7028 | LC_ALL=C |
| 7029 | export LC_ALL |
| 7030 | LANGUAGE=C |
| 7031 | export LANGUAGE |
Benny Prijono | c45d951 | 2010-12-10 11:04:30 +0000 | [diff] [blame] | 7032 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7033 | # CDPATH. |
| 7034 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 7035 | |
| 7036 | |
| 7037 | # as_fn_error ERROR [LINENO LOG_FD] |
| 7038 | # --------------------------------- |
| 7039 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 7040 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 7041 | # script with status $?, using 1 if that was 0. |
| 7042 | as_fn_error () |
| 7043 | { |
| 7044 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 7045 | if test "$3"; then |
| 7046 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 7047 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 7048 | fi |
| 7049 | $as_echo "$as_me: error: $1" >&2 |
| 7050 | as_fn_exit $as_status |
| 7051 | } # as_fn_error |
| 7052 | |
| 7053 | |
| 7054 | # as_fn_set_status STATUS |
| 7055 | # ----------------------- |
| 7056 | # Set $? to STATUS, without forking. |
| 7057 | as_fn_set_status () |
| 7058 | { |
| 7059 | return $1 |
| 7060 | } # as_fn_set_status |
| 7061 | |
| 7062 | # as_fn_exit STATUS |
| 7063 | # ----------------- |
| 7064 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 7065 | as_fn_exit () |
| 7066 | { |
| 7067 | set +e |
| 7068 | as_fn_set_status $1 |
| 7069 | exit $1 |
| 7070 | } # as_fn_exit |
| 7071 | |
| 7072 | # as_fn_unset VAR |
| 7073 | # --------------- |
| 7074 | # Portably unset VAR. |
| 7075 | as_fn_unset () |
| 7076 | { |
| 7077 | { eval $1=; unset $1;} |
| 7078 | } |
| 7079 | as_unset=as_fn_unset |
| 7080 | # as_fn_append VAR VALUE |
| 7081 | # ---------------------- |
| 7082 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 7083 | # advantage of any shell optimizations that allow amortized linear growth over |
| 7084 | # repeated appends, instead of the typical quadratic growth present in naive |
| 7085 | # implementations. |
| 7086 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 7087 | eval 'as_fn_append () |
| 7088 | { |
| 7089 | eval $1+=\$2 |
| 7090 | }' |
| 7091 | else |
| 7092 | as_fn_append () |
| 7093 | { |
| 7094 | eval $1=\$$1\$2 |
| 7095 | } |
| 7096 | fi # as_fn_append |
| 7097 | |
| 7098 | # as_fn_arith ARG... |
| 7099 | # ------------------ |
| 7100 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 7101 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 7102 | # must be portable across $(()) and expr. |
| 7103 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 7104 | eval 'as_fn_arith () |
| 7105 | { |
| 7106 | as_val=$(( $* )) |
| 7107 | }' |
| 7108 | else |
| 7109 | as_fn_arith () |
| 7110 | { |
| 7111 | as_val=`expr "$@" || test $? -eq 1` |
| 7112 | } |
| 7113 | fi # as_fn_arith |
| 7114 | |
| 7115 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 7117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 7118 | as_expr=expr |
| 7119 | else |
| 7120 | as_expr=false |
| 7121 | fi |
| 7122 | |
| 7123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 7124 | as_basename=basename |
| 7125 | else |
| 7126 | as_basename=false |
| 7127 | fi |
| 7128 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7129 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 7130 | as_dirname=dirname |
| 7131 | else |
| 7132 | as_dirname=false |
| 7133 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7134 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7135 | as_me=`$as_basename -- "$0" || |
| 7136 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 7137 | X"$0" : 'X\(//\)$' \| \ |
| 7138 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7139 | $as_echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7140 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 7141 | s//\1/ |
| 7142 | q |
| 7143 | } |
| 7144 | /^X\/\(\/\/\)$/{ |
| 7145 | s//\1/ |
| 7146 | q |
| 7147 | } |
| 7148 | /^X\/\(\/\).*/{ |
| 7149 | s//\1/ |
| 7150 | q |
| 7151 | } |
| 7152 | s/.*/./; q'` |
| 7153 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7154 | # Avoid depending upon Character Ranges. |
| 7155 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 7156 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 7157 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 7158 | as_cr_digits='0123456789' |
| 7159 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7160 | |
| 7161 | ECHO_C= ECHO_N= ECHO_T= |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7162 | case `echo -n x` in #((((( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7163 | -n*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7164 | case `echo 'xy\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7165 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7166 | xy) ECHO_C='\c';; |
| 7167 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 7168 | ECHO_T=' ';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7169 | esac;; |
| 7170 | *) |
| 7171 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7172 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7173 | |
| 7174 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7175 | if test -d conf$$.dir; then |
| 7176 | rm -f conf$$.dir/conf$$.file |
| 7177 | else |
| 7178 | rm -f conf$$.dir |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7179 | mkdir conf$$.dir 2>/dev/null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7180 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7181 | if (echo >conf$$.file) 2>/dev/null; then |
| 7182 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7183 | as_ln_s='ln -s' |
| 7184 | # ... but there are two gotchas: |
| 7185 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 7186 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 7187 | # In both cases, we have to default to `cp -p'. |
| 7188 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 7189 | as_ln_s='cp -p' |
| 7190 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7191 | as_ln_s=ln |
| 7192 | else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7193 | as_ln_s='cp -p' |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7194 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7195 | else |
| 7196 | as_ln_s='cp -p' |
| 7197 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7198 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 7199 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7200 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7201 | |
| 7202 | # as_fn_mkdir_p |
| 7203 | # ------------- |
| 7204 | # Create "$as_dir" as a directory, including parents if necessary. |
| 7205 | as_fn_mkdir_p () |
| 7206 | { |
| 7207 | |
| 7208 | case $as_dir in #( |
| 7209 | -*) as_dir=./$as_dir;; |
| 7210 | esac |
| 7211 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 7212 | as_dirs= |
| 7213 | while :; do |
| 7214 | case $as_dir in #( |
| 7215 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 7216 | *) as_qdir=$as_dir;; |
| 7217 | esac |
| 7218 | as_dirs="'$as_qdir' $as_dirs" |
| 7219 | as_dir=`$as_dirname -- "$as_dir" || |
| 7220 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7221 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7222 | X"$as_dir" : 'X\(//\)$' \| \ |
| 7223 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 7224 | $as_echo X"$as_dir" | |
| 7225 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7226 | s//\1/ |
| 7227 | q |
| 7228 | } |
| 7229 | /^X\(\/\/\)[^/].*/{ |
| 7230 | s//\1/ |
| 7231 | q |
| 7232 | } |
| 7233 | /^X\(\/\/\)$/{ |
| 7234 | s//\1/ |
| 7235 | q |
| 7236 | } |
| 7237 | /^X\(\/\).*/{ |
| 7238 | s//\1/ |
| 7239 | q |
| 7240 | } |
| 7241 | s/.*/./; q'` |
| 7242 | test -d "$as_dir" && break |
| 7243 | done |
| 7244 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 7245 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 7246 | |
| 7247 | |
| 7248 | } # as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7249 | if mkdir -p . 2>/dev/null; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7250 | as_mkdir_p='mkdir -p "$as_dir"' |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 7251 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7252 | test -d ./-p && rmdir ./-p |
| 7253 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 7254 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7255 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7256 | if test -x / >/dev/null 2>&1; then |
| 7257 | as_test_x='test -x' |
| 7258 | else |
| 7259 | if ls -dL / >/dev/null 2>&1; then |
| 7260 | as_ls_L_option=L |
| 7261 | else |
| 7262 | as_ls_L_option= |
| 7263 | fi |
| 7264 | as_test_x=' |
| 7265 | eval sh -c '\'' |
| 7266 | if test -d "$1"; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7267 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7268 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7269 | case $1 in #( |
| 7270 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7271 | esac; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7272 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7273 | ???[sx]*):;;*)false;;esac;fi |
| 7274 | '\'' sh |
| 7275 | ' |
| 7276 | fi |
| 7277 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7278 | |
| 7279 | # Sed expression to map a string onto a valid CPP name. |
| 7280 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 7281 | |
| 7282 | # Sed expression to map a string onto a valid variable name. |
| 7283 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 7284 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7285 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7286 | exec 6>&1 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7287 | ## ----------------------------------- ## |
| 7288 | ## Main body of $CONFIG_STATUS script. ## |
| 7289 | ## ----------------------------------- ## |
| 7290 | _ASEOF |
| 7291 | 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] | 7292 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7293 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7294 | # 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] | 7295 | # report actual input values of CONFIG_FILES etc. instead of their |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7296 | # values after options handling. |
| 7297 | ac_log=" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 7298 | This file was extended by pjproject $as_me 1.x, which was |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7299 | generated by GNU Autoconf 2.65. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7300 | |
| 7301 | CONFIG_FILES = $CONFIG_FILES |
| 7302 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 7303 | CONFIG_LINKS = $CONFIG_LINKS |
| 7304 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7305 | $ $0 $@ |
| 7306 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7307 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 7308 | " |
| 7309 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7310 | _ACEOF |
| 7311 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7312 | case $ac_config_files in *" |
| 7313 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 7314 | esac |
| 7315 | |
| 7316 | case $ac_config_headers in *" |
| 7317 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 7318 | esac |
| 7319 | |
| 7320 | |
| 7321 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7322 | # Files that config.status was made for. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7323 | config_files="$ac_config_files" |
| 7324 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7325 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7326 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7327 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7328 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7329 | ac_cs_usage="\ |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7330 | \`$as_me' instantiates files and other configuration actions |
| 7331 | from templates according to the current configuration. Unless the files |
| 7332 | and actions are specified as TAGs, all are instantiated by default. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7333 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7334 | Usage: $0 [OPTION]... [TAG]... |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7335 | |
| 7336 | -h, --help print this help, then exit |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7337 | -V, --version print version number and configuration settings, then exit |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7338 | --config print configuration, then exit |
| 7339 | -q, --quiet, --silent |
| 7340 | do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7341 | -d, --debug don't remove temporary files |
| 7342 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7343 | --file=FILE[:TEMPLATE] |
| 7344 | instantiate the configuration file FILE |
| 7345 | --header=FILE[:TEMPLATE] |
| 7346 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7347 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7348 | Configuration files: |
| 7349 | $config_files |
| 7350 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7351 | Configuration headers: |
| 7352 | $config_headers |
| 7353 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7354 | Report bugs to the package provider." |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7355 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7356 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7357 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7358 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7359 | ac_cs_version="\\ |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 7360 | pjproject config.status 1.x |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7361 | configured by $0, generated by GNU Autoconf 2.65, |
| 7362 | with options \\"\$ac_cs_config\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7363 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7364 | Copyright (C) 2009 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7365 | This config.status script is free software; the Free Software Foundation |
| 7366 | gives unlimited permission to copy, distribute and modify it." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7367 | |
| 7368 | ac_pwd='$ac_pwd' |
| 7369 | srcdir='$srcdir' |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7370 | test -n "\$AWK" || AWK=awk |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7371 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7372 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7373 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7374 | # The default lists apply if the user does not specify any file. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7375 | ac_need_defaults=: |
| 7376 | while test $# != 0 |
| 7377 | do |
| 7378 | case $1 in |
| 7379 | --*=*) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7380 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 7381 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7382 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7383 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7384 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7385 | ac_option=$1 |
| 7386 | ac_optarg=$2 |
| 7387 | ac_shift=shift |
| 7388 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7389 | esac |
| 7390 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7391 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7392 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7393 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7394 | ac_cs_recheck=: ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7395 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7396 | $as_echo "$ac_cs_version"; exit ;; |
| 7397 | --config | --confi | --conf | --con | --co | --c ) |
| 7398 | $as_echo "$ac_cs_config"; exit ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7399 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7400 | debug=: ;; |
| 7401 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7402 | $ac_shift |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7403 | case $ac_optarg in |
| 7404 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 7405 | esac |
| 7406 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7407 | ac_need_defaults=false;; |
| 7408 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7409 | $ac_shift |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7410 | case $ac_optarg in |
| 7411 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 7412 | esac |
| 7413 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7414 | ac_need_defaults=false;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7415 | --he | --h) |
| 7416 | # Conflict between --help and --header |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7417 | as_fn_error "ambiguous option: \`$1' |
| 7418 | Try \`$0 --help' for more information.";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7419 | --help | --hel | -h ) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7420 | $as_echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7421 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 7422 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 7423 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7424 | |
| 7425 | # This is an error. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7426 | -*) as_fn_error "unrecognized option: \`$1' |
| 7427 | Try \`$0 --help' for more information." ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7428 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7429 | *) as_fn_append ac_config_targets " $1" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7430 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7431 | |
| 7432 | esac |
| 7433 | shift |
| 7434 | done |
| 7435 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7436 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7437 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7438 | if $ac_cs_silent; then |
| 7439 | exec 6>/dev/null |
| 7440 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 7441 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7442 | |
| 7443 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7444 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7445 | if \$ac_cs_recheck; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7446 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 7447 | shift |
| 7448 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 7449 | CONFIG_SHELL='$SHELL' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7450 | export CONFIG_SHELL |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7451 | exec "\$@" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7452 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7453 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7454 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7455 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7456 | exec 5>>config.log |
| 7457 | { |
| 7458 | echo |
| 7459 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 7460 | ## Running $as_me. ## |
| 7461 | _ASBOX |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7462 | $as_echo "$ac_log" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7463 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7464 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7465 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7466 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7467 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7468 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7469 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7470 | |
| 7471 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7472 | for ac_config_target in $ac_config_targets |
| 7473 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7474 | case $ac_config_target in |
| 7475 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 7476 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 7477 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 7478 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 7479 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 7480 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 7481 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 7482 | "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7483 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 7484 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 7485 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 7486 | "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] | 7487 | "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] | 7488 | "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] | 7489 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7490 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7491 | esac |
| 7492 | done |
| 7493 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7494 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7495 | # If the user did not use the arguments to specify the items to instantiate, |
| 7496 | # then the envvar interface is used. Set only those that are not. |
| 7497 | # We use the long form for the default assignment because of an extremely |
| 7498 | # bizarre bug on SunOS 4.1.3. |
| 7499 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7500 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7501 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7502 | fi |
| 7503 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7504 | # Have a temporary directory for convenience. Make it in the build tree |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7505 | # 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] | 7506 | # creating and moving files from /tmp can sometimes cause problems. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7507 | # Hook for its removal unless debugging. |
| 7508 | # Note that there is a small window in which the directory will not be cleaned: |
| 7509 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7510 | $debug || |
| 7511 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7512 | tmp= |
| 7513 | trap 'exit_status=$? |
| 7514 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 7515 | ' 0 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7516 | trap 'as_fn_exit 1' 1 2 13 15 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7517 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7518 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7519 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7520 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7521 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7522 | test -n "$tmp" && test -d "$tmp" |
| 7523 | } || |
| 7524 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7525 | tmp=./conf$$-$RANDOM |
| 7526 | (umask 077 && mkdir "$tmp") |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7527 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7528 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7529 | # Set up the scripts for CONFIG_FILES section. |
| 7530 | # No need to generate them if there are no CONFIG_FILES. |
| 7531 | # This happens for instance with `./config.status config.h'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7532 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7533 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7534 | |
| 7535 | ac_cr=`echo X | tr X '\015'` |
| 7536 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 7537 | # But we know of no other shell where ac_cr would be empty at this |
| 7538 | # point, so we can use a bashism as a fallback. |
| 7539 | if test "x$ac_cr" = x; then |
| 7540 | eval ac_cr=\$\'\\r\' |
| 7541 | fi |
| 7542 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 7543 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 7544 | ac_cs_awk_cr='\r' |
| 7545 | else |
| 7546 | ac_cs_awk_cr=$ac_cr |
| 7547 | fi |
| 7548 | |
| 7549 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7550 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7551 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7552 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7553 | { |
| 7554 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 7555 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 7556 | echo "_ACEOF" |
| 7557 | } >conf$$subs.sh || |
| 7558 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 7559 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7560 | ac_delim='%!_!# ' |
| 7561 | for ac_last_try in false false false false false :; do |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7562 | . ./conf$$subs.sh || |
| 7563 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7564 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7565 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 7566 | if test $ac_delim_n = $ac_delim_num; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7567 | break |
| 7568 | elif $ac_last_try; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7569 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7570 | else |
| 7571 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7572 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7573 | done |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7574 | rm -f conf$$subs.sh |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7575 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7577 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7578 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7579 | sed -n ' |
| 7580 | h |
| 7581 | s/^/S["/; s/!.*/"]=/ |
| 7582 | p |
| 7583 | g |
| 7584 | s/^[^!]*!// |
| 7585 | :repl |
| 7586 | t repl |
| 7587 | s/'"$ac_delim"'$// |
| 7588 | t delim |
| 7589 | :nl |
| 7590 | h |
| 7591 | s/\(.\{148\}\)..*/\1/ |
| 7592 | t more1 |
| 7593 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 7594 | p |
| 7595 | n |
| 7596 | b repl |
| 7597 | :more1 |
| 7598 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7599 | p |
| 7600 | g |
| 7601 | s/.\{148\}// |
| 7602 | t nl |
| 7603 | :delim |
| 7604 | h |
| 7605 | s/\(.\{148\}\)..*/\1/ |
| 7606 | t more2 |
| 7607 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 7608 | p |
| 7609 | b |
| 7610 | :more2 |
| 7611 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7612 | p |
| 7613 | g |
| 7614 | s/.\{148\}// |
| 7615 | t delim |
| 7616 | ' <conf$$subs.awk | sed ' |
| 7617 | /^[^""]/{ |
| 7618 | N |
| 7619 | s/\n// |
| 7620 | } |
| 7621 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7622 | rm -f conf$$subs.awk |
| 7623 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7624 | _ACAWK |
| 7625 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 7626 | for (key in S) S_is_set[key] = 1 |
| 7627 | FS = "" |
| 7628 | |
| 7629 | } |
| 7630 | { |
| 7631 | line = $ 0 |
| 7632 | nfields = split(line, field, "@") |
| 7633 | substed = 0 |
| 7634 | len = length(field[1]) |
| 7635 | for (i = 2; i < nfields; i++) { |
| 7636 | key = field[i] |
| 7637 | keylen = length(key) |
| 7638 | if (S_is_set[key]) { |
| 7639 | value = S[key] |
| 7640 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 7641 | len += length(value) + length(field[++i]) |
| 7642 | substed = 1 |
| 7643 | } else |
| 7644 | len += 1 + keylen |
| 7645 | } |
| 7646 | |
| 7647 | print line |
| 7648 | } |
| 7649 | |
| 7650 | _ACAWK |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7651 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7652 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7653 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 7654 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 7655 | else |
| 7656 | cat |
| 7657 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 7658 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7659 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7660 | |
| 7661 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7662 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 7663 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7664 | # (actually we leave an empty line to preserve line numbers). |
| 7665 | if test "x$srcdir" = x.; then |
| 7666 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 7667 | s/:*\$(srcdir):*/:/ |
| 7668 | s/:*\${srcdir}:*/:/ |
| 7669 | s/:*@srcdir@:*/:/ |
| 7670 | s/^\([^=]*=[ ]*\):*/\1/ |
| 7671 | s/:*$// |
| 7672 | s/^[^=]*=[ ]*$// |
| 7673 | }' |
| 7674 | fi |
| 7675 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7676 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7677 | fi # test -n "$CONFIG_FILES" |
| 7678 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7679 | # Set up the scripts for CONFIG_HEADERS section. |
| 7680 | # No need to generate them if there are no CONFIG_HEADERS. |
| 7681 | # This happens for instance with `./config.status Makefile'. |
| 7682 | if test -n "$CONFIG_HEADERS"; then |
| 7683 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 7684 | BEGIN { |
| 7685 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7686 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7687 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 7688 | # here-document in config.status, that substitutes the proper values into |
| 7689 | # config.h.in to produce config.h. |
| 7690 | |
| 7691 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 7692 | # handling of long lines. |
| 7693 | ac_delim='%!_!# ' |
| 7694 | for ac_last_try in false false :; do |
| 7695 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 7696 | if test -z "$ac_t"; then |
| 7697 | break |
| 7698 | elif $ac_last_try; then |
| 7699 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 7700 | else |
| 7701 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 7702 | fi |
| 7703 | done |
| 7704 | |
| 7705 | # For the awk script, D is an array of macro values keyed by name, |
| 7706 | # likewise P contains macro parameters if any. Preserve backslash |
| 7707 | # newline sequences. |
| 7708 | |
| 7709 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 7710 | sed -n ' |
| 7711 | s/.\{148\}/&'"$ac_delim"'/g |
| 7712 | t rset |
| 7713 | :rset |
| 7714 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 7715 | t def |
| 7716 | d |
| 7717 | :def |
| 7718 | s/\\$// |
| 7719 | t bsnl |
| 7720 | s/["\\]/\\&/g |
| 7721 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7722 | D["\1"]=" \3"/p |
| 7723 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 7724 | d |
| 7725 | :bsnl |
| 7726 | s/["\\]/\\&/g |
| 7727 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7728 | D["\1"]=" \3\\\\\\n"\\/p |
| 7729 | t cont |
| 7730 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 7731 | t cont |
| 7732 | d |
| 7733 | :cont |
| 7734 | n |
| 7735 | s/.\{148\}/&'"$ac_delim"'/g |
| 7736 | t clear |
| 7737 | :clear |
| 7738 | s/\\$// |
| 7739 | t bsnlc |
| 7740 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 7741 | d |
| 7742 | :bsnlc |
| 7743 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 7744 | b cont |
| 7745 | ' <confdefs.h | sed ' |
| 7746 | s/'"$ac_delim"'/"\\\ |
| 7747 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7748 | |
| 7749 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7750 | for (key in D) D_is_set[key] = 1 |
| 7751 | FS = "" |
| 7752 | } |
| 7753 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 7754 | line = \$ 0 |
| 7755 | split(line, arg, " ") |
| 7756 | if (arg[1] == "#") { |
| 7757 | defundef = arg[2] |
| 7758 | mac1 = arg[3] |
| 7759 | } else { |
| 7760 | defundef = substr(arg[1], 2) |
| 7761 | mac1 = arg[2] |
| 7762 | } |
| 7763 | split(mac1, mac2, "(") #) |
| 7764 | macro = mac2[1] |
| 7765 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 7766 | if (D_is_set[macro]) { |
| 7767 | # Preserve the white space surrounding the "#". |
| 7768 | print prefix "define", macro P[macro] D[macro] |
| 7769 | next |
| 7770 | } else { |
| 7771 | # Replace #undef with comments. This is necessary, for example, |
| 7772 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 7773 | # on some systems where configure will not decide to define it. |
| 7774 | if (defundef == "undef") { |
| 7775 | print "/*", prefix defundef, macro, "*/" |
| 7776 | next |
| 7777 | } |
| 7778 | } |
| 7779 | } |
| 7780 | { print } |
| 7781 | _ACAWK |
| 7782 | _ACEOF |
| 7783 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7784 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 7785 | fi # test -n "$CONFIG_HEADERS" |
| 7786 | |
| 7787 | |
| 7788 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 7789 | shift |
| 7790 | for ac_tag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7791 | do |
| 7792 | case $ac_tag in |
| 7793 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 7794 | esac |
| 7795 | case $ac_mode$ac_tag in |
| 7796 | :[FHL]*:*);; |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7797 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7798 | :[FH]-) ac_tag=-:-;; |
| 7799 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 7800 | esac |
| 7801 | ac_save_IFS=$IFS |
| 7802 | IFS=: |
| 7803 | set x $ac_tag |
| 7804 | IFS=$ac_save_IFS |
| 7805 | shift |
| 7806 | ac_file=$1 |
| 7807 | shift |
| 7808 | |
| 7809 | case $ac_mode in |
| 7810 | :L) ac_source=$1;; |
| 7811 | :[FH]) |
| 7812 | ac_file_inputs= |
| 7813 | for ac_f |
| 7814 | do |
| 7815 | case $ac_f in |
| 7816 | -) ac_f="$tmp/stdin";; |
| 7817 | *) # Look for the file first in the build tree, then in the source tree |
| 7818 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 7819 | # because $ac_f cannot contain `:'. |
| 7820 | test -f "$ac_f" || |
| 7821 | case $ac_f in |
| 7822 | [\\/$]*) false;; |
| 7823 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 7824 | esac || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7825 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7826 | esac |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7827 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 7828 | as_fn_append ac_file_inputs " '$ac_f'" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7829 | done |
| 7830 | |
| 7831 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7832 | # use $as_me), people would be surprised to read: |
| 7833 | # /* config.h. Generated by config.status. */ |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7834 | configure_input='Generated from '` |
| 7835 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 7836 | `' by configure.' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7837 | if test x"$ac_file" != x-; then |
| 7838 | configure_input="$ac_file. $configure_input" |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 7840 | $as_echo "$as_me: creating $ac_file" >&6;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7841 | fi |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7842 | # Neutralize special characters interpreted by sed in replacement strings. |
| 7843 | case $configure_input in #( |
| 7844 | *\&* | *\|* | *\\* ) |
| 7845 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 7846 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 7847 | *) ac_sed_conf_input=$configure_input;; |
| 7848 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7849 | |
| 7850 | case $ac_tag in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7851 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 7852 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7853 | esac |
| 7854 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7855 | esac |
| 7856 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7857 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7858 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7859 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7860 | X"$ac_file" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7861 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7862 | $as_echo X"$ac_file" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7863 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7864 | s//\1/ |
| 7865 | q |
| 7866 | } |
| 7867 | /^X\(\/\/\)[^/].*/{ |
| 7868 | s//\1/ |
| 7869 | q |
| 7870 | } |
| 7871 | /^X\(\/\/\)$/{ |
| 7872 | s//\1/ |
| 7873 | q |
| 7874 | } |
| 7875 | /^X\(\/\).*/{ |
| 7876 | s//\1/ |
| 7877 | q |
| 7878 | } |
| 7879 | s/.*/./; q'` |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7880 | as_dir="$ac_dir"; as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7881 | ac_builddir=. |
| 7882 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7883 | case "$ac_dir" in |
| 7884 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7885 | *) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7886 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7887 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7888 | 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] | 7889 | case $ac_top_builddir_sub in |
| 7890 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7891 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 7892 | esac ;; |
| 7893 | esac |
| 7894 | ac_abs_top_builddir=$ac_pwd |
| 7895 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 7896 | # for backward compatibility: |
| 7897 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7898 | |
| 7899 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7900 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7901 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7902 | ac_top_srcdir=$ac_top_builddir_sub |
| 7903 | ac_abs_top_srcdir=$ac_pwd ;; |
| 7904 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7905 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7906 | ac_top_srcdir=$srcdir |
| 7907 | ac_abs_top_srcdir=$srcdir ;; |
| 7908 | *) # Relative name. |
| 7909 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 7910 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 7911 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7912 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7913 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 7914 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7915 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7916 | case $ac_mode in |
| 7917 | :F) |
| 7918 | # |
| 7919 | # CONFIG_FILE |
| 7920 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7921 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7922 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7923 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7924 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7925 | # If the template does not know about datarootdir, expand it. |
| 7926 | # FIXME: This hack should be removed a few years after 2.60. |
| 7927 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7928 | ac_sed_dataroot=' |
| 7929 | /datarootdir/ { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7930 | p |
| 7931 | q |
| 7932 | } |
| 7933 | /@datadir@/p |
| 7934 | /@docdir@/p |
| 7935 | /@infodir@/p |
| 7936 | /@localedir@/p |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7937 | /@mandir@/p' |
| 7938 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7939 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 7940 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 7942 | $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] | 7943 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7944 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7945 | ac_datarootdir_hack=' |
| 7946 | s&@datadir@&$datadir&g |
| 7947 | s&@docdir@&$docdir&g |
| 7948 | s&@infodir@&$infodir&g |
| 7949 | s&@localedir@&$localedir&g |
| 7950 | s&@mandir@&$mandir&g |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7951 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7952 | esac |
| 7953 | _ACEOF |
| 7954 | |
| 7955 | # Neutralize VPATH when `$srcdir' = `.'. |
| 7956 | # Shell code in configure.ac might set extrasub. |
| 7957 | # FIXME: do we really want to maintain this feature? |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7958 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7959 | ac_sed_extra="$ac_vpsub |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7960 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7961 | _ACEOF |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7962 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7963 | :t |
| 7964 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7965 | s|@configure_input@|$ac_sed_conf_input|;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7966 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7967 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7968 | s&@srcdir@&$ac_srcdir&;t t |
| 7969 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 7970 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 7971 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 7972 | s&@builddir@&$ac_builddir&;t t |
| 7973 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 7974 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 7975 | $ac_datarootdir_hack |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7976 | " |
| 7977 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 7978 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7979 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7980 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 7981 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 7982 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7984 | which seems to be undefined. Please make sure it is defined." >&5 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7985 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7986 | which seems to be undefined. Please make sure it is defined." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7987 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7988 | rm -f "$tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7989 | case $ac_file in |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 7990 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 7991 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 7992 | esac \ |
| 7993 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7994 | ;; |
| 7995 | :H) |
| 7996 | # |
| 7997 | # CONFIG_HEADER |
| 7998 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7999 | if test x"$ac_file" != x-; then |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 8000 | { |
| 8001 | $as_echo "/* $configure_input */" \ |
| 8002 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 8003 | } >"$tmp/config.h" \ |
| 8004 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 8005 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 8007 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8008 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 8009 | rm -f "$ac_file" |
| 8010 | mv "$tmp/config.h" "$ac_file" \ |
| 8011 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8012 | fi |
| 8013 | else |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 8014 | $as_echo "/* $configure_input */" \ |
| 8015 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 8016 | || as_fn_error "could not create -" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8017 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8018 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8019 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8020 | |
| 8021 | esac |
| 8022 | |
| 8023 | done # for ac_tag |
| 8024 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8025 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 8026 | as_fn_exit 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8027 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8028 | ac_clean_files=$ac_clean_files_save |
| 8029 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 8030 | test $ac_write_fail = 0 || |
| 8031 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 8032 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8033 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8034 | # configure is writing to config.log, and then calls config.status. |
| 8035 | # config.status does its own redirection, appending to config.log. |
| 8036 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8037 | # by configure, so config.status won't be able to write to it; its |
| 8038 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8039 | # effectively closing config.log, so it can be properly (re)opened and |
| 8040 | # appended to by config.status. When coming back to configure, we |
| 8041 | # need to make the FD available again. |
| 8042 | if test "$no_create" != yes; then |
| 8043 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8044 | ac_config_status_args= |
| 8045 | test "$silent" = yes && |
| 8046 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8047 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8048 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8049 | exec 5>>config.log |
| 8050 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8051 | # would make configure fail if this is the last instruction. |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 8052 | $ac_cs_success || as_fn_exit $? |
| 8053 | fi |
| 8054 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 8055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 8056 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 8057 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8058 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8059 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8060 | |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8062 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8063 | 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] | 8064 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8065 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8066 | - 'user.mak' |
| 8067 | - 'pjlib/include/pj/config_site.h' |
| 8068 | |
| 8069 | The next step now is to run 'make dep' and 'make'. |
| 8070 | " >&5 |
Benny Prijono | f895778 | 2011-04-11 02:43:04 +0000 | [diff] [blame] | 8071 | $as_echo " |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8072 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8073 | 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] | 8074 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8075 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8076 | - 'user.mak' |
| 8077 | - 'pjlib/include/pj/config_site.h' |
| 8078 | |
| 8079 | The next step now is to run 'make dep' and 'make'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 8080 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 8081 | |