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 | 5bbebc0 | 2010-06-15 05:21:43 +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 | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 | # Inc. |
| 9 | # |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 132 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 510 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 511 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +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 | 5bbebc0 | 2010-06-15 05:21:43 +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 | d430643 | 2010-05-01 22:05:41 +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 | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 593 | ac_subst_vars='LTLIBOBJS |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 594 | LIBOBJS |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +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_no_ilbc_codec |
| 604 | ac_no_speex_codec |
| 605 | ac_no_g7221_codec |
| 606 | ac_no_g722_codec |
| 607 | ac_no_gsm_codec |
| 608 | ac_no_l16_codec |
| 609 | ac_no_g711_codec |
| 610 | ac_no_speex_aec |
| 611 | ac_no_large_filter |
| 612 | ac_no_small_filter |
| 613 | ac_pa_use_oss |
| 614 | ac_pa_use_alsa |
| 615 | ac_pa_cflags |
| 616 | ac_external_pa |
| 617 | ac_pjmedia_snd |
| 618 | ac_external_gsm |
| 619 | ac_external_speex |
| 620 | ac_os_objs |
| 621 | EGREP |
| 622 | GREP |
| 623 | CPP |
| 624 | ac_build_mak_vars |
| 625 | ac_pjdir |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 626 | CC_CFLAGS |
| 627 | CC_OPTIMIZE |
| 628 | CC_DEF |
| 629 | CC_INC |
| 630 | CC_OUT |
| 631 | LIBEXT2 |
| 632 | LIBEXT |
| 633 | RANLIB |
| 634 | LDOUT |
| 635 | LD |
| 636 | AR |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 637 | ac_ct_CXX |
| 638 | CXXFLAGS |
| 639 | CXX |
| 640 | OBJEXT |
| 641 | EXEEXT |
| 642 | ac_ct_CC |
| 643 | CPPFLAGS |
| 644 | LDFLAGS |
| 645 | CFLAGS |
| 646 | CC |
| 647 | target_os |
| 648 | target_vendor |
| 649 | target_cpu |
| 650 | target |
| 651 | host_os |
| 652 | host_vendor |
| 653 | host_cpu |
| 654 | host |
| 655 | build_os |
| 656 | build_vendor |
| 657 | build_cpu |
| 658 | build |
| 659 | target_alias |
| 660 | host_alias |
| 661 | build_alias |
| 662 | LIBS |
| 663 | ECHO_T |
| 664 | ECHO_N |
| 665 | ECHO_C |
| 666 | DEFS |
| 667 | mandir |
| 668 | localedir |
| 669 | libdir |
| 670 | psdir |
| 671 | pdfdir |
| 672 | dvidir |
| 673 | htmldir |
| 674 | infodir |
| 675 | docdir |
| 676 | oldincludedir |
| 677 | includedir |
| 678 | localstatedir |
| 679 | sharedstatedir |
| 680 | sysconfdir |
| 681 | datadir |
| 682 | datarootdir |
| 683 | libexecdir |
| 684 | sbindir |
| 685 | bindir |
| 686 | program_transform_name |
| 687 | prefix |
| 688 | exec_prefix |
| 689 | PACKAGE_URL |
| 690 | PACKAGE_BUGREPORT |
| 691 | PACKAGE_STRING |
| 692 | PACKAGE_VERSION |
| 693 | PACKAGE_TARNAME |
| 694 | PACKAGE_NAME |
| 695 | PATH_SEPARATOR |
| 696 | SHELL' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 697 | ac_subst_files='' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 698 | ac_user_opts=' |
| 699 | enable_option_checking |
| 700 | enable_floating_point |
| 701 | enable_epoll |
| 702 | with_external_speex |
| 703 | with_external_gsm |
| 704 | enable_sound |
| 705 | with_external_pa |
| 706 | enable_oss |
| 707 | enable_ext_sound |
| 708 | enable_small_filter |
| 709 | enable_large_filter |
| 710 | enable_speex_aec |
| 711 | enable_g711_codec |
| 712 | enable_l16_codec |
| 713 | enable_gsm_codec |
| 714 | enable_g722_codec |
| 715 | enable_g7221_codec |
| 716 | enable_speex_codec |
| 717 | enable_ilbc_codec |
| 718 | enable_libsamplerate |
| 719 | enable_ipp |
| 720 | with_ipp |
| 721 | with_ipp_samples |
| 722 | with_ipp_arch |
| 723 | enable_ssl |
| 724 | ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 725 | ac_precious_vars='build_alias |
| 726 | host_alias |
| 727 | target_alias |
| 728 | CC |
| 729 | CFLAGS |
| 730 | LDFLAGS |
| 731 | LIBS |
| 732 | CPPFLAGS |
| 733 | CXX |
| 734 | CXXFLAGS |
| 735 | CCC |
| 736 | CPP' |
| 737 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 738 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 739 | # Initialize some variables set by options. |
| 740 | ac_init_help= |
| 741 | ac_init_version=false |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 742 | ac_unrecognized_opts= |
| 743 | ac_unrecognized_sep= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 744 | # The variables have the same names as the options, with |
| 745 | # dashes changed to underlines. |
| 746 | cache_file=/dev/null |
| 747 | exec_prefix=NONE |
| 748 | no_create= |
| 749 | no_recursion= |
| 750 | prefix=NONE |
| 751 | program_prefix=NONE |
| 752 | program_suffix=NONE |
| 753 | program_transform_name=s,x,x, |
| 754 | silent= |
| 755 | site= |
| 756 | srcdir= |
| 757 | verbose= |
| 758 | x_includes=NONE |
| 759 | x_libraries=NONE |
| 760 | |
| 761 | # Installation directory options. |
| 762 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 763 | # and all the variables that are supposed to be based on exec_prefix |
| 764 | # by default will actually change. |
| 765 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 766 | # (The list follows the same order as the GNU Coding Standards.) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 767 | bindir='${exec_prefix}/bin' |
| 768 | sbindir='${exec_prefix}/sbin' |
| 769 | libexecdir='${exec_prefix}/libexec' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 770 | datarootdir='${prefix}/share' |
| 771 | datadir='${datarootdir}' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 772 | sysconfdir='${prefix}/etc' |
| 773 | sharedstatedir='${prefix}/com' |
| 774 | localstatedir='${prefix}/var' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 775 | includedir='${prefix}/include' |
| 776 | oldincludedir='/usr/include' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 777 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 778 | infodir='${datarootdir}/info' |
| 779 | htmldir='${docdir}' |
| 780 | dvidir='${docdir}' |
| 781 | pdfdir='${docdir}' |
| 782 | psdir='${docdir}' |
| 783 | libdir='${exec_prefix}/lib' |
| 784 | localedir='${datarootdir}/locale' |
| 785 | mandir='${datarootdir}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 786 | |
| 787 | ac_prev= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 788 | ac_dashdash= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 789 | for ac_option |
| 790 | do |
| 791 | # If the previous option needs an argument, assign it. |
| 792 | if test -n "$ac_prev"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 793 | eval $ac_prev=\$ac_option |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 794 | ac_prev= |
| 795 | continue |
| 796 | fi |
| 797 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 798 | case $ac_option in |
| 799 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 800 | *) ac_optarg=yes ;; |
| 801 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 802 | |
| 803 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 804 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 805 | case $ac_dashdash$ac_option in |
| 806 | --) |
| 807 | ac_dashdash=yes ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 808 | |
| 809 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 810 | ac_prev=bindir ;; |
| 811 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 812 | bindir=$ac_optarg ;; |
| 813 | |
| 814 | -build | --build | --buil | --bui | --bu) |
| 815 | ac_prev=build_alias ;; |
| 816 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 817 | build_alias=$ac_optarg ;; |
| 818 | |
| 819 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 820 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 821 | ac_prev=cache_file ;; |
| 822 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 823 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 824 | cache_file=$ac_optarg ;; |
| 825 | |
| 826 | --config-cache | -C) |
| 827 | cache_file=config.cache ;; |
| 828 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 829 | -datadir | --datadir | --datadi | --datad) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 830 | ac_prev=datadir ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 831 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 832 | datadir=$ac_optarg ;; |
| 833 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 834 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 835 | | --dataroo | --dataro | --datar) |
| 836 | ac_prev=datarootdir ;; |
| 837 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 838 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 839 | datarootdir=$ac_optarg ;; |
| 840 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 841 | -disable-* | --disable-*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 842 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 843 | # Reject names that are not valid shell variable names. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 844 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 845 | as_fn_error "invalid feature name: $ac_useropt" |
| 846 | ac_useropt_orig=$ac_useropt |
| 847 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 848 | case $ac_user_opts in |
| 849 | *" |
| 850 | "enable_$ac_useropt" |
| 851 | "*) ;; |
| 852 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 853 | ac_unrecognized_sep=', ';; |
| 854 | esac |
| 855 | eval enable_$ac_useropt=no ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 856 | |
| 857 | -docdir | --docdir | --docdi | --doc | --do) |
| 858 | ac_prev=docdir ;; |
| 859 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 860 | docdir=$ac_optarg ;; |
| 861 | |
| 862 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 863 | ac_prev=dvidir ;; |
| 864 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 865 | dvidir=$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 866 | |
| 867 | -enable-* | --enable-*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 868 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 869 | # Reject names that are not valid shell variable names. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 870 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 871 | as_fn_error "invalid feature name: $ac_useropt" |
| 872 | ac_useropt_orig=$ac_useropt |
| 873 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 874 | case $ac_user_opts in |
| 875 | *" |
| 876 | "enable_$ac_useropt" |
| 877 | "*) ;; |
| 878 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 879 | ac_unrecognized_sep=', ';; |
| 880 | esac |
| 881 | eval enable_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 882 | |
| 883 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 884 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 885 | | --exec | --exe | --ex) |
| 886 | ac_prev=exec_prefix ;; |
| 887 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 888 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 889 | | --exec=* | --exe=* | --ex=*) |
| 890 | exec_prefix=$ac_optarg ;; |
| 891 | |
| 892 | -gas | --gas | --ga | --g) |
| 893 | # Obsolete; use --with-gas. |
| 894 | with_gas=yes ;; |
| 895 | |
| 896 | -help | --help | --hel | --he | -h) |
| 897 | ac_init_help=long ;; |
| 898 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 899 | ac_init_help=recursive ;; |
| 900 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 901 | ac_init_help=short ;; |
| 902 | |
| 903 | -host | --host | --hos | --ho) |
| 904 | ac_prev=host_alias ;; |
| 905 | -host=* | --host=* | --hos=* | --ho=*) |
| 906 | host_alias=$ac_optarg ;; |
| 907 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 908 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 909 | ac_prev=htmldir ;; |
| 910 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 911 | | --ht=*) |
| 912 | htmldir=$ac_optarg ;; |
| 913 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 914 | -includedir | --includedir | --includedi | --included | --include \ |
| 915 | | --includ | --inclu | --incl | --inc) |
| 916 | ac_prev=includedir ;; |
| 917 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 918 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 919 | includedir=$ac_optarg ;; |
| 920 | |
| 921 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 922 | ac_prev=infodir ;; |
| 923 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 924 | infodir=$ac_optarg ;; |
| 925 | |
| 926 | -libdir | --libdir | --libdi | --libd) |
| 927 | ac_prev=libdir ;; |
| 928 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 929 | libdir=$ac_optarg ;; |
| 930 | |
| 931 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 932 | | --libexe | --libex | --libe) |
| 933 | ac_prev=libexecdir ;; |
| 934 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 935 | | --libexe=* | --libex=* | --libe=*) |
| 936 | libexecdir=$ac_optarg ;; |
| 937 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 938 | -localedir | --localedir | --localedi | --localed | --locale) |
| 939 | ac_prev=localedir ;; |
| 940 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 941 | localedir=$ac_optarg ;; |
| 942 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 943 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 944 | | --localstate | --localstat | --localsta | --localst | --locals) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 945 | ac_prev=localstatedir ;; |
| 946 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 947 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 948 | localstatedir=$ac_optarg ;; |
| 949 | |
| 950 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 951 | ac_prev=mandir ;; |
| 952 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 953 | mandir=$ac_optarg ;; |
| 954 | |
| 955 | -nfp | --nfp | --nf) |
| 956 | # Obsolete; use --without-fp. |
| 957 | with_fp=no ;; |
| 958 | |
| 959 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 960 | | --no-cr | --no-c | -n) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 961 | no_create=yes ;; |
| 962 | |
| 963 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 964 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 965 | no_recursion=yes ;; |
| 966 | |
| 967 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 968 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 969 | | --oldin | --oldi | --old | --ol | --o) |
| 970 | ac_prev=oldincludedir ;; |
| 971 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 972 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 973 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 974 | oldincludedir=$ac_optarg ;; |
| 975 | |
| 976 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 977 | ac_prev=prefix ;; |
| 978 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 979 | prefix=$ac_optarg ;; |
| 980 | |
| 981 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 982 | | --program-pre | --program-pr | --program-p) |
| 983 | ac_prev=program_prefix ;; |
| 984 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 985 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 986 | program_prefix=$ac_optarg ;; |
| 987 | |
| 988 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 989 | | --program-suf | --program-su | --program-s) |
| 990 | ac_prev=program_suffix ;; |
| 991 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 992 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 993 | program_suffix=$ac_optarg ;; |
| 994 | |
| 995 | -program-transform-name | --program-transform-name \ |
| 996 | | --program-transform-nam | --program-transform-na \ |
| 997 | | --program-transform-n | --program-transform- \ |
| 998 | | --program-transform | --program-transfor \ |
| 999 | | --program-transfo | --program-transf \ |
| 1000 | | --program-trans | --program-tran \ |
| 1001 | | --progr-tra | --program-tr | --program-t) |
| 1002 | ac_prev=program_transform_name ;; |
| 1003 | -program-transform-name=* | --program-transform-name=* \ |
| 1004 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1005 | | --program-transform-n=* | --program-transform-=* \ |
| 1006 | | --program-transform=* | --program-transfor=* \ |
| 1007 | | --program-transfo=* | --program-transf=* \ |
| 1008 | | --program-trans=* | --program-tran=* \ |
| 1009 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1010 | program_transform_name=$ac_optarg ;; |
| 1011 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1012 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1013 | ac_prev=pdfdir ;; |
| 1014 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1015 | pdfdir=$ac_optarg ;; |
| 1016 | |
| 1017 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1018 | ac_prev=psdir ;; |
| 1019 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1020 | psdir=$ac_optarg ;; |
| 1021 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1022 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1023 | | -silent | --silent | --silen | --sile | --sil) |
| 1024 | silent=yes ;; |
| 1025 | |
| 1026 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1027 | ac_prev=sbindir ;; |
| 1028 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1029 | | --sbi=* | --sb=*) |
| 1030 | sbindir=$ac_optarg ;; |
| 1031 | |
| 1032 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1033 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1034 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1035 | | --sha | --sh) |
| 1036 | ac_prev=sharedstatedir ;; |
| 1037 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1038 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1039 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1040 | | --sha=* | --sh=*) |
| 1041 | sharedstatedir=$ac_optarg ;; |
| 1042 | |
| 1043 | -site | --site | --sit) |
| 1044 | ac_prev=site ;; |
| 1045 | -site=* | --site=* | --sit=*) |
| 1046 | site=$ac_optarg ;; |
| 1047 | |
| 1048 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1049 | ac_prev=srcdir ;; |
| 1050 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1051 | srcdir=$ac_optarg ;; |
| 1052 | |
| 1053 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1054 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1055 | ac_prev=sysconfdir ;; |
| 1056 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1057 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1058 | sysconfdir=$ac_optarg ;; |
| 1059 | |
| 1060 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1061 | ac_prev=target_alias ;; |
| 1062 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1063 | target_alias=$ac_optarg ;; |
| 1064 | |
| 1065 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1066 | verbose=yes ;; |
| 1067 | |
| 1068 | -version | --version | --versio | --versi | --vers | -V) |
| 1069 | ac_init_version=: ;; |
| 1070 | |
| 1071 | -with-* | --with-*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1072 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1073 | # Reject names that are not valid shell variable names. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1074 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1075 | as_fn_error "invalid package name: $ac_useropt" |
| 1076 | ac_useropt_orig=$ac_useropt |
| 1077 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1078 | case $ac_user_opts in |
| 1079 | *" |
| 1080 | "with_$ac_useropt" |
| 1081 | "*) ;; |
| 1082 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1083 | ac_unrecognized_sep=', ';; |
| 1084 | esac |
| 1085 | eval with_$ac_useropt=\$ac_optarg ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1086 | |
| 1087 | -without-* | --without-*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1088 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1089 | # Reject names that are not valid shell variable names. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1090 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1091 | as_fn_error "invalid package name: $ac_useropt" |
| 1092 | ac_useropt_orig=$ac_useropt |
| 1093 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1094 | case $ac_user_opts in |
| 1095 | *" |
| 1096 | "with_$ac_useropt" |
| 1097 | "*) ;; |
| 1098 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1099 | ac_unrecognized_sep=', ';; |
| 1100 | esac |
| 1101 | eval with_$ac_useropt=no ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1102 | |
| 1103 | --x) |
| 1104 | # Obsolete; use --with-x. |
| 1105 | with_x=yes ;; |
| 1106 | |
| 1107 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1108 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1109 | ac_prev=x_includes ;; |
| 1110 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1111 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1112 | x_includes=$ac_optarg ;; |
| 1113 | |
| 1114 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1115 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1116 | ac_prev=x_libraries ;; |
| 1117 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1118 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1119 | x_libraries=$ac_optarg ;; |
| 1120 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1121 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1122 | Try \`$0 --help' for more information." |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1123 | ;; |
| 1124 | |
| 1125 | *=*) |
| 1126 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1127 | # Reject names that are not valid shell variable names. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1128 | case $ac_envvar in #( |
| 1129 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1130 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1131 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1132 | eval $ac_envvar=\$ac_optarg |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1133 | export $ac_envvar ;; |
| 1134 | |
| 1135 | *) |
| 1136 | # FIXME: should be removed in autoconf 3.0. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1137 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1138 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1139 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1140 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1141 | ;; |
| 1142 | |
| 1143 | esac |
| 1144 | done |
| 1145 | |
| 1146 | if test -n "$ac_prev"; then |
| 1147 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1148 | as_fn_error "missing argument to $ac_option" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1149 | fi |
| 1150 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1151 | if test -n "$ac_unrecognized_opts"; then |
| 1152 | case $enable_option_checking in |
| 1153 | no) ;; |
| 1154 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1155 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1156 | esac |
| 1157 | fi |
| 1158 | |
| 1159 | # Check all directory arguments for consistency. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1160 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1161 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1162 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1163 | libdir localedir mandir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1164 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1165 | eval ac_val=\$$ac_var |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1166 | # Remove trailing slashes. |
| 1167 | case $ac_val in |
| 1168 | */ ) |
| 1169 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1170 | eval $ac_var=\$ac_val;; |
| 1171 | esac |
| 1172 | # Be sure to have absolute directory names. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1173 | case $ac_val in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1174 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1175 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1176 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1177 | 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] | 1178 | done |
| 1179 | |
| 1180 | # There might be people who depend on the old broken behavior: `$host' |
| 1181 | # used to hold the argument of --host etc. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1182 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1183 | build=$build_alias |
| 1184 | host=$host_alias |
| 1185 | target=$target_alias |
| 1186 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1187 | # FIXME: To remove some day. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1188 | if test "x$host_alias" != x; then |
| 1189 | if test "x$build_alias" = x; then |
| 1190 | cross_compiling=maybe |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1191 | $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] | 1192 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1193 | elif test "x$build_alias" != "x$host_alias"; then |
| 1194 | cross_compiling=yes |
| 1195 | fi |
| 1196 | fi |
| 1197 | |
| 1198 | ac_tool_prefix= |
| 1199 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1200 | |
| 1201 | test "$silent" = yes && exec 6>/dev/null |
| 1202 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1203 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1204 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1205 | ac_ls_di=`ls -di .` && |
| 1206 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1207 | as_fn_error "working directory cannot be determined" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1208 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1209 | as_fn_error "pwd does not report name of working directory" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1210 | |
| 1211 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1212 | # Find the source files, if location was not specified. |
| 1213 | if test -z "$srcdir"; then |
| 1214 | ac_srcdir_defaulted=yes |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1215 | # Try the directory containing this script, then the parent directory. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1216 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1217 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1218 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1219 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1220 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1221 | $as_echo X"$as_myself" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1223 | s//\1/ |
| 1224 | q |
| 1225 | } |
| 1226 | /^X\(\/\/\)[^/].*/{ |
| 1227 | s//\1/ |
| 1228 | q |
| 1229 | } |
| 1230 | /^X\(\/\/\)$/{ |
| 1231 | s//\1/ |
| 1232 | q |
| 1233 | } |
| 1234 | /^X\(\/\).*/{ |
| 1235 | s//\1/ |
| 1236 | q |
| 1237 | } |
| 1238 | s/.*/./; q'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1239 | srcdir=$ac_confdir |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1240 | if test ! -r "$srcdir/$ac_unique_file"; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1241 | srcdir=.. |
| 1242 | fi |
| 1243 | else |
| 1244 | ac_srcdir_defaulted=no |
| 1245 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1246 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1247 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1248 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1249 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1250 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1251 | ac_abs_confdir=`( |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1252 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1253 | pwd)` |
| 1254 | # When building in place, set srcdir=. |
| 1255 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1256 | srcdir=. |
| 1257 | fi |
| 1258 | # Remove unnecessary trailing slashes from srcdir. |
| 1259 | # Double slashes in file names in object file debugging info |
| 1260 | # mess up M-x gdb in Emacs. |
| 1261 | case $srcdir in |
| 1262 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1263 | esac |
| 1264 | for ac_var in $ac_precious_vars; do |
| 1265 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1266 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1267 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1268 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1269 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1270 | |
| 1271 | # |
| 1272 | # Report the --help message. |
| 1273 | # |
| 1274 | if test "$ac_init_help" = "long"; then |
| 1275 | # Omit some internal or obsolete options to make the list less imposing. |
| 1276 | # 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] | 1277 | cat <<_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1278 | \`configure' configures pjproject 1.x to adapt to many kinds of systems. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1279 | |
| 1280 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1281 | |
| 1282 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1283 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1284 | |
| 1285 | Defaults for the options are specified in brackets. |
| 1286 | |
| 1287 | Configuration: |
| 1288 | -h, --help display this help and exit |
| 1289 | --help=short display options specific to this package |
| 1290 | --help=recursive display the short help of all the included packages |
| 1291 | -V, --version display version information and exit |
| 1292 | -q, --quiet, --silent do not print \`checking...' messages |
| 1293 | --cache-file=FILE cache test results in FILE [disabled] |
| 1294 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1295 | -n, --no-create do not create output files |
| 1296 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1297 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1298 | Installation directories: |
| 1299 | --prefix=PREFIX install architecture-independent files in PREFIX |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1300 | [$ac_default_prefix] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1301 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1302 | [PREFIX] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1303 | |
| 1304 | By default, \`make install' will install all the files in |
| 1305 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1306 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1307 | for instance \`--prefix=\$HOME'. |
| 1308 | |
| 1309 | For better control, use the options below. |
| 1310 | |
| 1311 | Fine tuning of the installation directories: |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1312 | --bindir=DIR user executables [EPREFIX/bin] |
| 1313 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1314 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1315 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1316 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1317 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1318 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1319 | --includedir=DIR C header files [PREFIX/include] |
| 1320 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1321 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1322 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1323 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1324 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1325 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1326 | --docdir=DIR documentation root [DATAROOTDIR/doc/pjproject] |
| 1327 | --htmldir=DIR html documentation [DOCDIR] |
| 1328 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1329 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1330 | --psdir=DIR ps documentation [DOCDIR] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1331 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1332 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1333 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1334 | |
| 1335 | System types: |
| 1336 | --build=BUILD configure for building on BUILD [guessed] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1337 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1338 | --target=TARGET configure for building compilers for TARGET [HOST] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1339 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1340 | fi |
| 1341 | |
| 1342 | if test -n "$ac_init_help"; then |
| 1343 | case $ac_init_help in |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1344 | short | recursive ) echo "Configuration of pjproject 1.x:";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1345 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1346 | cat <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1347 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1348 | Optional Features: |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1349 | --disable-option-checking ignore unrecognized --enable/--with options |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1350 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1351 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1352 | --disable-floating-point |
| 1353 | Disable floating point where possible |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 1354 | --enable-epoll Use /dev/epoll ioqueue on Linux (experimental) |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 1355 | --disable-sound Exclude sound (i.e. use null sound) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1356 | --disable-oss Disable OSS audio (default: not disabled) |
| 1357 | |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 1358 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1359 | --disable-small-filter Exclude small filter in resampling |
| 1360 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1361 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 1362 | --disable-g711-codec Exclude G.711 codecs from the build |
| 1363 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 1364 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 1365 | --disable-g722-codec Exclude G.722 codec in the build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1366 | --disable-g7221-codec Exclude G.7221 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1367 | --disable-speex-codec Exclude Speex codecs in the build |
| 1368 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 1369 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 1370 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 1371 | --enable-ipp Enable Intel IPP support. Specify the Intel IPP |
| 1372 | package and samples location using IPPROOT and |
| 1373 | IPPSAMPLES env var or with --with-ipp and |
| 1374 | --with-ipp-samples options |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 1375 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1376 | |
| 1377 | |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1378 | Optional Packages: |
| 1379 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1380 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1381 | --with-external-speex Use external Speex development files, not the one in |
| 1382 | "third_party" directory. When this option is set, |
| 1383 | make sure that Speex is accessible to use (hint: use |
| 1384 | CFLAGS and LDFLAGS env var to set the include/lib |
| 1385 | paths) |
| 1386 | --with-external-gsm Use external GSM codec library, not the one in |
| 1387 | "third_party" directory. When this option is set, |
| 1388 | make sure that the GSM include/lib files are |
| 1389 | accessible to use (hint: use CFLAGS and LDFLAGS env |
| 1390 | var to set the include/lib paths) |
| 1391 | --with-external-pa Use external PortAudio development files, not the |
| 1392 | one in "third_party" directory. When this option is |
| 1393 | set, make sure that PortAudio is accessible to use |
| 1394 | (hint: use CFLAGS and LDFLAGS env var to set the |
| 1395 | include/lib paths) |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 1396 | --with-ipp=DIR Specify the Intel IPP location |
| 1397 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
| 1398 | --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] | 1399 | "em64t. Default is blank for IA32" |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 1400 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1401 | Some influential environment variables: |
| 1402 | CC C compiler command |
| 1403 | CFLAGS C compiler flags |
| 1404 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1405 | nonstandard directory <lib dir> |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1406 | LIBS libraries to pass to the linker, e.g. -l<library> |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 1407 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1408 | you have headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 1409 | CXX C++ compiler command |
| 1410 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1411 | CPP C preprocessor |
| 1412 | |
| 1413 | Use these variables to override the choices made by `configure' or to help |
| 1414 | it to find libraries and programs with nonstandard names/locations. |
| 1415 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1416 | Report bugs to the package provider. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1417 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1418 | ac_status=$? |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1419 | fi |
| 1420 | |
| 1421 | if test "$ac_init_help" = "recursive"; then |
| 1422 | # If there are subdirs, report their specific --help. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1423 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1424 | test -d "$ac_dir" || |
| 1425 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1426 | continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1427 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1428 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1429 | case "$ac_dir" in |
| 1430 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1431 | *) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1432 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1433 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1434 | 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] | 1435 | case $ac_top_builddir_sub in |
| 1436 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1437 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1438 | esac ;; |
| 1439 | esac |
| 1440 | ac_abs_top_builddir=$ac_pwd |
| 1441 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1442 | # for backward compatibility: |
| 1443 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1444 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1445 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1446 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1447 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1448 | ac_top_srcdir=$ac_top_builddir_sub |
| 1449 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1450 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1451 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1452 | ac_top_srcdir=$srcdir |
| 1453 | ac_abs_top_srcdir=$srcdir ;; |
| 1454 | *) # Relative name. |
| 1455 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1456 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1457 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1458 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1459 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1460 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1461 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1462 | # Check for guested configure. |
| 1463 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1464 | echo && |
| 1465 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1466 | elif test -f "$ac_srcdir/configure"; then |
| 1467 | echo && |
| 1468 | $SHELL "$ac_srcdir/configure" --help=recursive |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1469 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1470 | $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] | 1471 | fi || ac_status=$? |
| 1472 | cd "$ac_pwd" || { ac_status=$?; break; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1473 | done |
| 1474 | fi |
| 1475 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1476 | test -n "$ac_init_help" && exit $ac_status |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1477 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1478 | cat <<\_ACEOF |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1479 | pjproject configure 1.x |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 1480 | generated by GNU Autoconf 2.65 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1481 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1482 | Copyright (C) 2009 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1483 | This configure script is free software; the Free Software Foundation |
| 1484 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1485 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1486 | exit |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1487 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1488 | |
| 1489 | ## ------------------------ ## |
| 1490 | ## Autoconf initialization. ## |
| 1491 | ## ------------------------ ## |
| 1492 | |
| 1493 | # ac_fn_c_try_compile LINENO |
| 1494 | # -------------------------- |
| 1495 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1496 | ac_fn_c_try_compile () |
| 1497 | { |
| 1498 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1499 | rm -f conftest.$ac_objext |
| 1500 | if { { ac_try="$ac_compile" |
| 1501 | case "(($ac_try" in |
| 1502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1503 | *) ac_try_echo=$ac_try;; |
| 1504 | esac |
| 1505 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1506 | $as_echo "$ac_try_echo"; } >&5 |
| 1507 | (eval "$ac_compile") 2>conftest.err |
| 1508 | ac_status=$? |
| 1509 | if test -s conftest.err; then |
| 1510 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1511 | cat conftest.er1 >&5 |
| 1512 | mv -f conftest.er1 conftest.err |
| 1513 | fi |
| 1514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1515 | test $ac_status = 0; } && { |
| 1516 | test -z "$ac_c_werror_flag" || |
| 1517 | test ! -s conftest.err |
| 1518 | } && test -s conftest.$ac_objext; then : |
| 1519 | ac_retval=0 |
| 1520 | else |
| 1521 | $as_echo "$as_me: failed program was:" >&5 |
| 1522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1523 | |
| 1524 | ac_retval=1 |
| 1525 | fi |
| 1526 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 1527 | as_fn_set_status $ac_retval |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1528 | |
| 1529 | } # ac_fn_c_try_compile |
| 1530 | |
| 1531 | # ac_fn_cxx_try_compile LINENO |
| 1532 | # ---------------------------- |
| 1533 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1534 | ac_fn_cxx_try_compile () |
| 1535 | { |
| 1536 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1537 | rm -f conftest.$ac_objext |
| 1538 | if { { ac_try="$ac_compile" |
| 1539 | case "(($ac_try" in |
| 1540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1541 | *) ac_try_echo=$ac_try;; |
| 1542 | esac |
| 1543 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1544 | $as_echo "$ac_try_echo"; } >&5 |
| 1545 | (eval "$ac_compile") 2>conftest.err |
| 1546 | ac_status=$? |
| 1547 | if test -s conftest.err; then |
| 1548 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1549 | cat conftest.er1 >&5 |
| 1550 | mv -f conftest.er1 conftest.err |
| 1551 | fi |
| 1552 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1553 | test $ac_status = 0; } && { |
| 1554 | test -z "$ac_cxx_werror_flag" || |
| 1555 | test ! -s conftest.err |
| 1556 | } && test -s conftest.$ac_objext; then : |
| 1557 | ac_retval=0 |
| 1558 | else |
| 1559 | $as_echo "$as_me: failed program was:" >&5 |
| 1560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1561 | |
| 1562 | ac_retval=1 |
| 1563 | fi |
| 1564 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 1565 | as_fn_set_status $ac_retval |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1566 | |
| 1567 | } # ac_fn_cxx_try_compile |
| 1568 | |
| 1569 | # ac_fn_c_try_link LINENO |
| 1570 | # ----------------------- |
| 1571 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1572 | ac_fn_c_try_link () |
| 1573 | { |
| 1574 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1575 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1576 | if { { ac_try="$ac_link" |
| 1577 | case "(($ac_try" in |
| 1578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1579 | *) ac_try_echo=$ac_try;; |
| 1580 | esac |
| 1581 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1582 | $as_echo "$ac_try_echo"; } >&5 |
| 1583 | (eval "$ac_link") 2>conftest.err |
| 1584 | ac_status=$? |
| 1585 | if test -s conftest.err; then |
| 1586 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1587 | cat conftest.er1 >&5 |
| 1588 | mv -f conftest.er1 conftest.err |
| 1589 | fi |
| 1590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1591 | test $ac_status = 0; } && { |
| 1592 | test -z "$ac_c_werror_flag" || |
| 1593 | test ! -s conftest.err |
| 1594 | } && test -s conftest$ac_exeext && { |
| 1595 | test "$cross_compiling" = yes || |
| 1596 | $as_test_x conftest$ac_exeext |
| 1597 | }; then : |
| 1598 | ac_retval=0 |
| 1599 | else |
| 1600 | $as_echo "$as_me: failed program was:" >&5 |
| 1601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1602 | |
| 1603 | ac_retval=1 |
| 1604 | fi |
| 1605 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1606 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1607 | # interfere with the next link command; also delete a directory that is |
| 1608 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1609 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1610 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 1611 | as_fn_set_status $ac_retval |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1612 | |
| 1613 | } # ac_fn_c_try_link |
| 1614 | |
| 1615 | # ac_fn_c_try_run LINENO |
| 1616 | # ---------------------- |
| 1617 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1618 | # that executables *can* be run. |
| 1619 | ac_fn_c_try_run () |
| 1620 | { |
| 1621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1622 | if { { ac_try="$ac_link" |
| 1623 | case "(($ac_try" in |
| 1624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1625 | *) ac_try_echo=$ac_try;; |
| 1626 | esac |
| 1627 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1628 | $as_echo "$ac_try_echo"; } >&5 |
| 1629 | (eval "$ac_link") 2>&5 |
| 1630 | ac_status=$? |
| 1631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1632 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1633 | { { case "(($ac_try" in |
| 1634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1635 | *) ac_try_echo=$ac_try;; |
| 1636 | esac |
| 1637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1638 | $as_echo "$ac_try_echo"; } >&5 |
| 1639 | (eval "$ac_try") 2>&5 |
| 1640 | ac_status=$? |
| 1641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1642 | test $ac_status = 0; }; }; then : |
| 1643 | ac_retval=0 |
| 1644 | else |
| 1645 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1646 | $as_echo "$as_me: failed program was:" >&5 |
| 1647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1648 | |
| 1649 | ac_retval=$ac_status |
| 1650 | fi |
| 1651 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1652 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 1653 | as_fn_set_status $ac_retval |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1654 | |
| 1655 | } # ac_fn_c_try_run |
| 1656 | |
| 1657 | # ac_fn_c_try_cpp LINENO |
| 1658 | # ---------------------- |
| 1659 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1660 | ac_fn_c_try_cpp () |
| 1661 | { |
| 1662 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1663 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1664 | case "(($ac_try" in |
| 1665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1666 | *) ac_try_echo=$ac_try;; |
| 1667 | esac |
| 1668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1669 | $as_echo "$ac_try_echo"; } >&5 |
| 1670 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1671 | ac_status=$? |
| 1672 | if test -s conftest.err; then |
| 1673 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1674 | cat conftest.er1 >&5 |
| 1675 | mv -f conftest.er1 conftest.err |
| 1676 | fi |
| 1677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1678 | test $ac_status = 0; } >/dev/null && { |
| 1679 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1680 | test ! -s conftest.err |
| 1681 | }; then : |
| 1682 | ac_retval=0 |
| 1683 | else |
| 1684 | $as_echo "$as_me: failed program was:" >&5 |
| 1685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1686 | |
| 1687 | ac_retval=1 |
| 1688 | fi |
| 1689 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 1690 | as_fn_set_status $ac_retval |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1691 | |
| 1692 | } # ac_fn_c_try_cpp |
| 1693 | |
| 1694 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1695 | # ------------------------------------------------------- |
| 1696 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1697 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1698 | ac_fn_c_check_header_compile () |
| 1699 | { |
| 1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1702 | $as_echo_n "checking for $2... " >&6; } |
| 1703 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1704 | $as_echo_n "(cached) " >&6 |
| 1705 | else |
| 1706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1707 | /* end confdefs.h. */ |
| 1708 | $4 |
| 1709 | #include <$2> |
| 1710 | _ACEOF |
| 1711 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1712 | eval "$3=yes" |
| 1713 | else |
| 1714 | eval "$3=no" |
| 1715 | fi |
| 1716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1717 | fi |
| 1718 | eval ac_res=\$$3 |
| 1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1720 | $as_echo "$ac_res" >&6; } |
| 1721 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1722 | |
| 1723 | } # ac_fn_c_check_header_compile |
| 1724 | |
| 1725 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1726 | # ------------------------------------------------------- |
| 1727 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1728 | # the include files in INCLUDES and setting the cache variable VAR |
| 1729 | # accordingly. |
| 1730 | ac_fn_c_check_header_mongrel () |
| 1731 | { |
| 1732 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1733 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1735 | $as_echo_n "checking for $2... " >&6; } |
| 1736 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1737 | $as_echo_n "(cached) " >&6 |
| 1738 | fi |
| 1739 | eval ac_res=\$$3 |
| 1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1741 | $as_echo "$ac_res" >&6; } |
| 1742 | else |
| 1743 | # Is the header compilable? |
| 1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1745 | $as_echo_n "checking $2 usability... " >&6; } |
| 1746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1747 | /* end confdefs.h. */ |
| 1748 | $4 |
| 1749 | #include <$2> |
| 1750 | _ACEOF |
| 1751 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1752 | ac_header_compiler=yes |
| 1753 | else |
| 1754 | ac_header_compiler=no |
| 1755 | fi |
| 1756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1758 | $as_echo "$ac_header_compiler" >&6; } |
| 1759 | |
| 1760 | # Is the header present? |
| 1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1762 | $as_echo_n "checking $2 presence... " >&6; } |
| 1763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1764 | /* end confdefs.h. */ |
| 1765 | #include <$2> |
| 1766 | _ACEOF |
| 1767 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1768 | ac_header_preproc=yes |
| 1769 | else |
| 1770 | ac_header_preproc=no |
| 1771 | fi |
| 1772 | rm -f conftest.err conftest.$ac_ext |
| 1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1774 | $as_echo "$ac_header_preproc" >&6; } |
| 1775 | |
| 1776 | # So? What about this header? |
| 1777 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1778 | yes:no: ) |
| 1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1780 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1782 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1783 | ;; |
| 1784 | no:yes:* ) |
| 1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1786 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1788 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1790 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1792 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1794 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1795 | ;; |
| 1796 | esac |
| 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1798 | $as_echo_n "checking for $2... " >&6; } |
| 1799 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1800 | $as_echo_n "(cached) " >&6 |
| 1801 | else |
| 1802 | eval "$3=\$ac_header_compiler" |
| 1803 | fi |
| 1804 | eval ac_res=\$$3 |
| 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1806 | $as_echo "$ac_res" >&6; } |
| 1807 | fi |
| 1808 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1809 | |
| 1810 | } # ac_fn_c_check_header_mongrel |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 1811 | |
| 1812 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1813 | # ---------------------------------- |
| 1814 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1815 | ac_fn_c_check_func () |
| 1816 | { |
| 1817 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1819 | $as_echo_n "checking for $2... " >&6; } |
| 1820 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1821 | $as_echo_n "(cached) " >&6 |
| 1822 | else |
| 1823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1824 | /* end confdefs.h. */ |
| 1825 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1826 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1827 | #define $2 innocuous_$2 |
| 1828 | |
| 1829 | /* System header to define __stub macros and hopefully few prototypes, |
| 1830 | which can conflict with char $2 (); below. |
| 1831 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1832 | <limits.h> exists even on freestanding compilers. */ |
| 1833 | |
| 1834 | #ifdef __STDC__ |
| 1835 | # include <limits.h> |
| 1836 | #else |
| 1837 | # include <assert.h> |
| 1838 | #endif |
| 1839 | |
| 1840 | #undef $2 |
| 1841 | |
| 1842 | /* Override any GCC internal prototype to avoid an error. |
| 1843 | Use char because int might match the return type of a GCC |
| 1844 | builtin and then its argument prototype would still apply. */ |
| 1845 | #ifdef __cplusplus |
| 1846 | extern "C" |
| 1847 | #endif |
| 1848 | char $2 (); |
| 1849 | /* The GNU C library defines this for functions which it implements |
| 1850 | to always fail with ENOSYS. Some functions are actually named |
| 1851 | something starting with __ and the normal name is an alias. */ |
| 1852 | #if defined __stub_$2 || defined __stub___$2 |
| 1853 | choke me |
| 1854 | #endif |
| 1855 | |
| 1856 | int |
| 1857 | main () |
| 1858 | { |
| 1859 | return $2 (); |
| 1860 | ; |
| 1861 | return 0; |
| 1862 | } |
| 1863 | _ACEOF |
| 1864 | if ac_fn_c_try_link "$LINENO"; then : |
| 1865 | eval "$3=yes" |
| 1866 | else |
| 1867 | eval "$3=no" |
| 1868 | fi |
| 1869 | rm -f core conftest.err conftest.$ac_objext \ |
| 1870 | conftest$ac_exeext conftest.$ac_ext |
| 1871 | fi |
| 1872 | eval ac_res=\$$3 |
| 1873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1874 | $as_echo "$ac_res" >&6; } |
| 1875 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1876 | |
| 1877 | } # ac_fn_c_check_func |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1878 | cat >config.log <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1879 | This file contains any messages produced by compilers while |
| 1880 | running configure, to aid debugging if configure makes a mistake. |
| 1881 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 1882 | It was created by pjproject $as_me 1.x, which was |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 1883 | generated by GNU Autoconf 2.65. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1884 | |
| 1885 | $ $0 $@ |
| 1886 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1887 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1888 | exec 5>>config.log |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1889 | { |
| 1890 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1891 | ## --------- ## |
| 1892 | ## Platform. ## |
| 1893 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1894 | |
| 1895 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1896 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1897 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1898 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1899 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1900 | |
| 1901 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1902 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1903 | |
| 1904 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1905 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1906 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1907 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1908 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1909 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1910 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1911 | |
| 1912 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1913 | |
| 1914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1915 | for as_dir in $PATH |
| 1916 | do |
| 1917 | IFS=$as_save_IFS |
| 1918 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1919 | $as_echo "PATH: $as_dir" |
| 1920 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1921 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1922 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1923 | } >&5 |
| 1924 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1925 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1926 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1927 | |
| 1928 | ## ----------- ## |
| 1929 | ## Core tests. ## |
| 1930 | ## ----------- ## |
| 1931 | |
| 1932 | _ACEOF |
| 1933 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1934 | |
| 1935 | # Keep a trace of the command line. |
| 1936 | # 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] | 1937 | # 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] | 1938 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1939 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1940 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1941 | ac_configure_args0= |
| 1942 | ac_configure_args1= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1943 | ac_must_keep_next=false |
| 1944 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1945 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1946 | for ac_arg |
| 1947 | do |
| 1948 | case $ac_arg in |
| 1949 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1950 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1951 | | -silent | --silent | --silen | --sile | --sil) |
| 1952 | continue ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1953 | *\'*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1954 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1955 | esac |
| 1956 | case $ac_pass in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1957 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1958 | 2) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1959 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1960 | if test $ac_must_keep_next = true; then |
| 1961 | ac_must_keep_next=false # Got value, back to normal. |
| 1962 | else |
| 1963 | case $ac_arg in |
| 1964 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1965 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1966 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1967 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1968 | case "$ac_configure_args0 " in |
| 1969 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1970 | esac |
| 1971 | ;; |
| 1972 | -* ) ac_must_keep_next=true ;; |
| 1973 | esac |
| 1974 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1975 | as_fn_append ac_configure_args " '$ac_arg'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1976 | ;; |
| 1977 | esac |
| 1978 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1979 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 1980 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1981 | { ac_configure_args1=; unset ac_configure_args1;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1982 | |
| 1983 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1984 | # config.log. We remove comments because anyway the quotes in there |
| 1985 | # would cause problems or look ugly. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 1986 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1987 | # 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] | 1988 | trap 'exit_status=$? |
| 1989 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1990 | { |
| 1991 | echo |
| 1992 | |
| 1993 | cat <<\_ASBOX |
| 1994 | ## ---------------- ## |
| 1995 | ## Cache variables. ## |
| 1996 | ## ---------------- ## |
| 1997 | _ASBOX |
| 1998 | echo |
| 1999 | # The following way of writing the cache mishandles newlines in values, |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2000 | ( |
| 2001 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2002 | eval ac_val=\$$ac_var |
| 2003 | case $ac_val in #( |
| 2004 | *${as_nl}*) |
| 2005 | case $ac_var in #( |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2006 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2007 | $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] | 2008 | esac |
| 2009 | case $ac_var in #( |
| 2010 | _ | IFS | as_nl) ;; #( |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2011 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2012 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2013 | esac ;; |
| 2014 | esac |
| 2015 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2016 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2017 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2018 | *${as_nl}ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2019 | sed -n \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2020 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2021 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2022 | ;; #( |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2023 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2024 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 2025 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2026 | esac | |
| 2027 | sort |
| 2028 | ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2029 | echo |
| 2030 | |
| 2031 | cat <<\_ASBOX |
| 2032 | ## ----------------- ## |
| 2033 | ## Output variables. ## |
| 2034 | ## ----------------- ## |
| 2035 | _ASBOX |
| 2036 | echo |
| 2037 | for ac_var in $ac_subst_vars |
| 2038 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2039 | eval ac_val=\$$ac_var |
| 2040 | case $ac_val in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2041 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2042 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2043 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2044 | done | sort |
| 2045 | echo |
| 2046 | |
| 2047 | if test -n "$ac_subst_files"; then |
| 2048 | cat <<\_ASBOX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2049 | ## ------------------- ## |
| 2050 | ## File substitutions. ## |
| 2051 | ## ------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2052 | _ASBOX |
| 2053 | echo |
| 2054 | for ac_var in $ac_subst_files |
| 2055 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2056 | eval ac_val=\$$ac_var |
| 2057 | case $ac_val in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2058 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2059 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2060 | $as_echo "$ac_var='\''$ac_val'\''" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2061 | done | sort |
| 2062 | echo |
| 2063 | fi |
| 2064 | |
| 2065 | if test -s confdefs.h; then |
| 2066 | cat <<\_ASBOX |
| 2067 | ## ----------- ## |
| 2068 | ## confdefs.h. ## |
| 2069 | ## ----------- ## |
| 2070 | _ASBOX |
| 2071 | echo |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2072 | cat confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2073 | echo |
| 2074 | fi |
| 2075 | test "$ac_signal" != 0 && |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2076 | $as_echo "$as_me: caught signal $ac_signal" |
| 2077 | $as_echo "$as_me: exit $exit_status" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2078 | } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2079 | rm -f core *.core core.conftest.* && |
| 2080 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2081 | exit $exit_status |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2082 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2083 | for ac_signal in 1 2 13 15; do |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2084 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2085 | done |
| 2086 | ac_signal=0 |
| 2087 | |
| 2088 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2089 | rm -f -r conftest* confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2090 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2091 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2092 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2093 | # Predefined preprocessor variables. |
| 2094 | |
| 2095 | cat >>confdefs.h <<_ACEOF |
| 2096 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2097 | _ACEOF |
| 2098 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2099 | cat >>confdefs.h <<_ACEOF |
| 2100 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2101 | _ACEOF |
| 2102 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2103 | cat >>confdefs.h <<_ACEOF |
| 2104 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2105 | _ACEOF |
| 2106 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2107 | cat >>confdefs.h <<_ACEOF |
| 2108 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2109 | _ACEOF |
| 2110 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2111 | cat >>confdefs.h <<_ACEOF |
| 2112 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2113 | _ACEOF |
| 2114 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2115 | cat >>confdefs.h <<_ACEOF |
| 2116 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2117 | _ACEOF |
| 2118 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2119 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2120 | # Let the site file select an alternate cache file if it wants to. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2121 | # Prefer an explicitly selected file to automatically selected ones. |
| 2122 | ac_site_file1=NONE |
| 2123 | ac_site_file2=NONE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2124 | if test -n "$CONFIG_SITE"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2125 | ac_site_file1=$CONFIG_SITE |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2126 | elif test "x$prefix" != xNONE; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2127 | ac_site_file1=$prefix/share/config.site |
| 2128 | ac_site_file2=$prefix/etc/config.site |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2129 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2130 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2131 | ac_site_file2=$ac_default_prefix/etc/config.site |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2132 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2133 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2134 | do |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2135 | test "x$ac_site_file" = xNONE && continue |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2136 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2138 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2139 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2140 | . "$ac_site_file" |
| 2141 | fi |
| 2142 | done |
| 2143 | |
| 2144 | if test -r "$cache_file"; then |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2145 | # Some versions of bash will fail to source /dev/null (special files |
| 2146 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2147 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2149 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2150 | case $cache_file in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2151 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2152 | *) . "./$cache_file";; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2153 | esac |
| 2154 | fi |
| 2155 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2157 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2158 | >$cache_file |
| 2159 | fi |
| 2160 | |
| 2161 | # Check that the precious variables saved in the cache have kept the same |
| 2162 | # value. |
| 2163 | ac_cache_corrupted=false |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2164 | for ac_var in $ac_precious_vars; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2165 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2166 | eval ac_new_set=\$ac_env_${ac_var}_set |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2167 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2168 | eval ac_new_val=\$ac_env_${ac_var}_value |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2169 | case $ac_old_set,$ac_new_set in |
| 2170 | set,) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2172 | $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] | 2173 | ac_cache_corrupted=: ;; |
| 2174 | ,set) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2176 | $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] | 2177 | ac_cache_corrupted=: ;; |
| 2178 | ,);; |
| 2179 | *) |
| 2180 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2181 | # differences in whitespace do not lead to failure. |
| 2182 | ac_old_val_w=`echo x $ac_old_val` |
| 2183 | ac_new_val_w=`echo x $ac_new_val` |
| 2184 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2186 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2187 | ac_cache_corrupted=: |
| 2188 | else |
| 2189 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2190 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2191 | eval $ac_var=\$ac_old_val |
| 2192 | fi |
| 2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2194 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2196 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2197 | fi;; |
| 2198 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2199 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2200 | if test "$ac_new_set" = set; then |
| 2201 | case $ac_new_val in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2202 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2203 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2204 | esac |
| 2205 | case " $ac_configure_args " in |
| 2206 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2207 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2208 | esac |
| 2209 | fi |
| 2210 | done |
| 2211 | if $ac_cache_corrupted; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2212 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2213 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2215 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2216 | 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] | 2217 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2218 | ## -------------------- ## |
| 2219 | ## Main body of script. ## |
| 2220 | ## -------------------- ## |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2221 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2222 | ac_ext=c |
| 2223 | ac_cpp='$CPP $CPPFLAGS' |
| 2224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2227 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2228 | |
| 2229 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 2230 | host_orig="$host" |
| 2231 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2232 | ac_aux_dir= |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2233 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2234 | for ac_t in install-sh install.sh shtool; do |
| 2235 | if test -f "$ac_dir/$ac_t"; then |
| 2236 | ac_aux_dir=$ac_dir |
| 2237 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2238 | break 2 |
| 2239 | fi |
| 2240 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2241 | done |
| 2242 | if test -z "$ac_aux_dir"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2243 | 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] | 2244 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2245 | |
| 2246 | # These three variables are undocumented and unsupported, |
| 2247 | # and are intended to be withdrawn in a future Autoconf release. |
| 2248 | # They can cause serious problems if a builder's source tree is in a directory |
| 2249 | # whose full name contains unusual characters. |
| 2250 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2251 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2252 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2253 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2254 | |
| 2255 | # Make sure we can run config.sub. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2256 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2257 | 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] | 2258 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2260 | $as_echo_n "checking build system type... " >&6; } |
| 2261 | if test "${ac_cv_build+set}" = set; then : |
| 2262 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2263 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2264 | ac_build_alias=$build_alias |
| 2265 | test "x$ac_build_alias" = x && |
| 2266 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2267 | test "x$ac_build_alias" = x && |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2268 | 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] | 2269 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2270 | 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] | 2271 | |
| 2272 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2274 | $as_echo "$ac_cv_build" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2275 | case $ac_cv_build in |
| 2276 | *-*-*) ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2277 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2278 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2279 | build=$ac_cv_build |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2280 | ac_save_IFS=$IFS; IFS='-' |
| 2281 | set x $ac_cv_build |
| 2282 | shift |
| 2283 | build_cpu=$1 |
| 2284 | build_vendor=$2 |
| 2285 | shift; shift |
| 2286 | # Remember, the first character of IFS is used to create $*, |
| 2287 | # except with old shells: |
| 2288 | build_os=$* |
| 2289 | IFS=$ac_save_IFS |
| 2290 | 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] | 2291 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2292 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2294 | $as_echo_n "checking host system type... " >&6; } |
| 2295 | if test "${ac_cv_host+set}" = set; then : |
| 2296 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2297 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2298 | if test "x$host_alias" = x; then |
| 2299 | ac_cv_host=$ac_cv_build |
| 2300 | else |
| 2301 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2302 | 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] | 2303 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2304 | |
| 2305 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2307 | $as_echo "$ac_cv_host" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2308 | case $ac_cv_host in |
| 2309 | *-*-*) ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2310 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2311 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2312 | host=$ac_cv_host |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2313 | ac_save_IFS=$IFS; IFS='-' |
| 2314 | set x $ac_cv_host |
| 2315 | shift |
| 2316 | host_cpu=$1 |
| 2317 | host_vendor=$2 |
| 2318 | shift; shift |
| 2319 | # Remember, the first character of IFS is used to create $*, |
| 2320 | # except with old shells: |
| 2321 | host_os=$* |
| 2322 | IFS=$ac_save_IFS |
| 2323 | 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] | 2324 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2325 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 2327 | $as_echo_n "checking target system type... " >&6; } |
| 2328 | if test "${ac_cv_target+set}" = set; then : |
| 2329 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2330 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2331 | if test "x$target_alias" = x; then |
| 2332 | ac_cv_target=$ac_cv_host |
| 2333 | else |
| 2334 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2335 | 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] | 2336 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2337 | |
| 2338 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 2340 | $as_echo "$ac_cv_target" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2341 | case $ac_cv_target in |
| 2342 | *-*-*) ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2343 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2344 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2345 | target=$ac_cv_target |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2346 | ac_save_IFS=$IFS; IFS='-' |
| 2347 | set x $ac_cv_target |
| 2348 | shift |
| 2349 | target_cpu=$1 |
| 2350 | target_vendor=$2 |
| 2351 | shift; shift |
| 2352 | # Remember, the first character of IFS is used to create $*, |
| 2353 | # except with old shells: |
| 2354 | target_os=$* |
| 2355 | IFS=$ac_save_IFS |
| 2356 | 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] | 2357 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2358 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2359 | # The aliases save the names the user supplied, while $host etc. |
| 2360 | # will get canonicalized. |
| 2361 | test -n "$target_alias" && |
| 2362 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2363 | NONENONEs,x,x, && |
| 2364 | program_prefix=${target_alias}- |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2365 | 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] | 2366 | |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 2367 | 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] | 2368 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2369 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2370 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2371 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 2372 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 2373 | else |
| 2374 | CFLAGS="$CFLAGS" |
| 2375 | fi |
| 2376 | |
| 2377 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 2378 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2379 | ac_ext=c |
| 2380 | ac_cpp='$CPP $CPPFLAGS' |
| 2381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2384 | if test -n "$ac_tool_prefix"; then |
| 2385 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2386 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2388 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2389 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2390 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2391 | else |
| 2392 | if test -n "$CC"; then |
| 2393 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2394 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2396 | for as_dir in $PATH |
| 2397 | do |
| 2398 | IFS=$as_save_IFS |
| 2399 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2400 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2401 | 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] | 2402 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2403 | $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] | 2404 | break 2 |
| 2405 | fi |
| 2406 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2407 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2408 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2409 | |
| 2410 | fi |
| 2411 | fi |
| 2412 | CC=$ac_cv_prog_CC |
| 2413 | if test -n "$CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2415 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2416 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2418 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2419 | fi |
| 2420 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2421 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2422 | fi |
| 2423 | if test -z "$ac_cv_prog_CC"; then |
| 2424 | ac_ct_CC=$CC |
| 2425 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2426 | set dummy gcc; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2428 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2429 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2430 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2431 | else |
| 2432 | if test -n "$ac_ct_CC"; then |
| 2433 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2434 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2436 | for as_dir in $PATH |
| 2437 | do |
| 2438 | IFS=$as_save_IFS |
| 2439 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2440 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2441 | 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] | 2442 | ac_cv_prog_ac_ct_CC="gcc" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2443 | $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] | 2444 | break 2 |
| 2445 | fi |
| 2446 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2447 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2448 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2449 | |
| 2450 | fi |
| 2451 | fi |
| 2452 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2453 | if test -n "$ac_ct_CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2455 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2456 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2458 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2459 | fi |
| 2460 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2461 | if test "x$ac_ct_CC" = x; then |
| 2462 | CC="" |
| 2463 | else |
| 2464 | case $cross_compiling:$ac_tool_warned in |
| 2465 | yes:) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2467 | $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] | 2468 | ac_tool_warned=yes ;; |
| 2469 | esac |
| 2470 | CC=$ac_ct_CC |
| 2471 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2472 | else |
| 2473 | CC="$ac_cv_prog_CC" |
| 2474 | fi |
| 2475 | |
| 2476 | if test -z "$CC"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2477 | if test -n "$ac_tool_prefix"; then |
| 2478 | # 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] | 2479 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2481 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2482 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2483 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2484 | else |
| 2485 | if test -n "$CC"; then |
| 2486 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2487 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2489 | for as_dir in $PATH |
| 2490 | do |
| 2491 | IFS=$as_save_IFS |
| 2492 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2493 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2494 | 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] | 2495 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2496 | $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] | 2497 | break 2 |
| 2498 | fi |
| 2499 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2500 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2501 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2502 | |
| 2503 | fi |
| 2504 | fi |
| 2505 | CC=$ac_cv_prog_CC |
| 2506 | if test -n "$CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2508 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2509 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2511 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2512 | fi |
| 2513 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2514 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2515 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2516 | fi |
| 2517 | if test -z "$CC"; then |
| 2518 | # Extract the first word of "cc", so it can be a program name with args. |
| 2519 | set dummy cc; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2521 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2522 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2523 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2524 | else |
| 2525 | if test -n "$CC"; then |
| 2526 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2527 | else |
| 2528 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2530 | for as_dir in $PATH |
| 2531 | do |
| 2532 | IFS=$as_save_IFS |
| 2533 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2534 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2535 | 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] | 2536 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2537 | ac_prog_rejected=yes |
| 2538 | continue |
| 2539 | fi |
| 2540 | ac_cv_prog_CC="cc" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2541 | $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] | 2542 | break 2 |
| 2543 | fi |
| 2544 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2545 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2546 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2547 | |
| 2548 | if test $ac_prog_rejected = yes; then |
| 2549 | # We found a bogon in the path, so make sure we never use it. |
| 2550 | set dummy $ac_cv_prog_CC |
| 2551 | shift |
| 2552 | if test $# != 0; then |
| 2553 | # We chose a different compiler from the bogus one. |
| 2554 | # However, it has the same basename, so the bogon will be chosen |
| 2555 | # first if we set CC to just the basename; use the full file name. |
| 2556 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2557 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2558 | fi |
| 2559 | fi |
| 2560 | fi |
| 2561 | fi |
| 2562 | CC=$ac_cv_prog_CC |
| 2563 | if test -n "$CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2565 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2566 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2568 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2569 | fi |
| 2570 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2571 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2572 | fi |
| 2573 | if test -z "$CC"; then |
| 2574 | if test -n "$ac_tool_prefix"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2575 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2576 | do |
| 2577 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2578 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2580 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2581 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2582 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2583 | else |
| 2584 | if test -n "$CC"; then |
| 2585 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2586 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2588 | for as_dir in $PATH |
| 2589 | do |
| 2590 | IFS=$as_save_IFS |
| 2591 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2592 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2593 | 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] | 2594 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2595 | $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] | 2596 | break 2 |
| 2597 | fi |
| 2598 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2599 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2600 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2601 | |
| 2602 | fi |
| 2603 | fi |
| 2604 | CC=$ac_cv_prog_CC |
| 2605 | if test -n "$CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2607 | $as_echo "$CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2608 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2610 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2611 | fi |
| 2612 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2613 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2614 | test -n "$CC" && break |
| 2615 | done |
| 2616 | fi |
| 2617 | if test -z "$CC"; then |
| 2618 | ac_ct_CC=$CC |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2619 | for ac_prog in cl.exe |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2620 | do |
| 2621 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2622 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2624 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2625 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2626 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2627 | else |
| 2628 | if test -n "$ac_ct_CC"; then |
| 2629 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2630 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2632 | for as_dir in $PATH |
| 2633 | do |
| 2634 | IFS=$as_save_IFS |
| 2635 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2636 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2637 | 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] | 2638 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2639 | $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] | 2640 | break 2 |
| 2641 | fi |
| 2642 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2643 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2644 | IFS=$as_save_IFS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2645 | |
| 2646 | fi |
| 2647 | fi |
| 2648 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2649 | if test -n "$ac_ct_CC"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2651 | $as_echo "$ac_ct_CC" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2652 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2654 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2655 | fi |
| 2656 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2657 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2658 | test -n "$ac_ct_CC" && break |
| 2659 | done |
| 2660 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2661 | if test "x$ac_ct_CC" = x; then |
| 2662 | CC="" |
| 2663 | else |
| 2664 | case $cross_compiling:$ac_tool_warned in |
| 2665 | yes:) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2667 | $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] | 2668 | ac_tool_warned=yes ;; |
| 2669 | esac |
| 2670 | CC=$ac_ct_CC |
| 2671 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2672 | fi |
| 2673 | |
| 2674 | fi |
| 2675 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2676 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2677 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2678 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2679 | as_fn_error "no acceptable C compiler found in \$PATH |
| 2680 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2681 | |
| 2682 | # Provide some information about the compiler. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2683 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2684 | set X $ac_compile |
| 2685 | ac_compiler=$2 |
| 2686 | for ac_option in --version -v -V -qversion; do |
| 2687 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2688 | case "(($ac_try" in |
| 2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2690 | *) ac_try_echo=$ac_try;; |
| 2691 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2692 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2693 | $as_echo "$ac_try_echo"; } >&5 |
| 2694 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2695 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2696 | if test -s conftest.err; then |
| 2697 | sed '10a\ |
| 2698 | ... rest of stderr output deleted ... |
| 2699 | 10q' conftest.err >conftest.er1 |
| 2700 | cat conftest.er1 >&5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2701 | fi |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2702 | rm -f conftest.er1 conftest.err |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2704 | test $ac_status = 0; } |
| 2705 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2706 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2708 | /* end confdefs.h. */ |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2709 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2710 | int |
| 2711 | main () |
| 2712 | { |
| 2713 | |
| 2714 | ; |
| 2715 | return 0; |
| 2716 | } |
| 2717 | _ACEOF |
| 2718 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2719 | 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] | 2720 | # Try to create an executable without -o first, disregard a.out. |
| 2721 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2722 | # of exeext. |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2724 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2725 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2726 | |
| 2727 | # The possible output files: |
| 2728 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2729 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2730 | ac_rmfiles= |
| 2731 | for ac_file in $ac_files |
| 2732 | do |
| 2733 | case $ac_file in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2734 | *.$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] | 2735 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2736 | esac |
| 2737 | done |
| 2738 | rm -f $ac_rmfiles |
| 2739 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2740 | if { { ac_try="$ac_link_default" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2741 | case "(($ac_try" in |
| 2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2743 | *) ac_try_echo=$ac_try;; |
| 2744 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2746 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2747 | (eval "$ac_link_default") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2748 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2750 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2751 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2752 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2753 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2754 | # so that the user can short-circuit this test for compilers unknown to |
| 2755 | # Autoconf. |
| 2756 | for ac_file in $ac_files '' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2757 | do |
| 2758 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2759 | case $ac_file in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2760 | *.$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] | 2761 | ;; |
| 2762 | [ab].out ) |
| 2763 | # We found the default executable, but exeext='' is most |
| 2764 | # certainly right. |
| 2765 | break;; |
| 2766 | *.* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2767 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2768 | then :; else |
| 2769 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2770 | fi |
| 2771 | # We set ac_cv_exeext here because the later test for it is not |
| 2772 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2773 | # argument, so we may need to know it at that point already. |
| 2774 | # Even if this section looks crufty: it has the advantage of |
| 2775 | # actually working. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2776 | break;; |
| 2777 | * ) |
| 2778 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2779 | esac |
| 2780 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2781 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2782 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2783 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2784 | ac_file='' |
| 2785 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2786 | if test -z "$ac_file"; then : |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2788 | $as_echo "no" >&6; } |
| 2789 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2791 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2792 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2793 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2794 | { as_fn_set_status 77 |
| 2795 | as_fn_error "C compiler cannot create executables |
| 2796 | See \`config.log' for more details." "$LINENO" 5; }; } |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2797 | else |
| 2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2799 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2800 | fi |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2802 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2804 | $as_echo "$ac_file" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2805 | ac_exeext=$ac_cv_exeext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2806 | |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2807 | 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] | 2808 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2810 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2811 | if { { ac_try="$ac_link" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2812 | case "(($ac_try" in |
| 2813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2814 | *) ac_try_echo=$ac_try;; |
| 2815 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2816 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2817 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2818 | (eval "$ac_link") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2819 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2821 | test $ac_status = 0; }; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2822 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2823 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2824 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2825 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2826 | for ac_file in conftest.exe conftest conftest.*; do |
| 2827 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2828 | case $ac_file in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2829 | *.$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] | 2830 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2831 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2832 | * ) break;; |
| 2833 | esac |
| 2834 | done |
| 2835 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2836 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2837 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2838 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 2839 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2840 | fi |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2841 | rm -f conftest conftest$ac_cv_exeext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2843 | $as_echo "$ac_cv_exeext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2844 | |
| 2845 | rm -f conftest.$ac_ext |
| 2846 | EXEEXT=$ac_cv_exeext |
| 2847 | ac_exeext=$EXEEXT |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 2848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2849 | /* end confdefs.h. */ |
| 2850 | #include <stdio.h> |
| 2851 | int |
| 2852 | main () |
| 2853 | { |
| 2854 | FILE *f = fopen ("conftest.out", "w"); |
| 2855 | return ferror (f) || fclose (f) != 0; |
| 2856 | |
| 2857 | ; |
| 2858 | return 0; |
| 2859 | } |
| 2860 | _ACEOF |
| 2861 | ac_clean_files="$ac_clean_files conftest.out" |
| 2862 | # Check that the compiler produces executables we can run. If not, either |
| 2863 | # the compiler is broken, or we cross compile. |
| 2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2865 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2866 | if test "$cross_compiling" != yes; then |
| 2867 | { { ac_try="$ac_link" |
| 2868 | case "(($ac_try" in |
| 2869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2870 | *) ac_try_echo=$ac_try;; |
| 2871 | esac |
| 2872 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2873 | $as_echo "$ac_try_echo"; } >&5 |
| 2874 | (eval "$ac_link") 2>&5 |
| 2875 | ac_status=$? |
| 2876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2877 | test $ac_status = 0; } |
| 2878 | if { ac_try='./conftest$ac_cv_exeext' |
| 2879 | { { case "(($ac_try" in |
| 2880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2881 | *) ac_try_echo=$ac_try;; |
| 2882 | esac |
| 2883 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2884 | $as_echo "$ac_try_echo"; } >&5 |
| 2885 | (eval "$ac_try") 2>&5 |
| 2886 | ac_status=$? |
| 2887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2888 | test $ac_status = 0; }; }; then |
| 2889 | cross_compiling=no |
| 2890 | else |
| 2891 | if test "$cross_compiling" = maybe; then |
| 2892 | cross_compiling=yes |
| 2893 | else |
| 2894 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2895 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2896 | as_fn_error "cannot run C compiled programs. |
| 2897 | If you meant to cross compile, use \`--host'. |
| 2898 | See \`config.log' for more details." "$LINENO" 5; } |
| 2899 | fi |
| 2900 | fi |
| 2901 | fi |
| 2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2903 | $as_echo "$cross_compiling" >&6; } |
| 2904 | |
| 2905 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2906 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2908 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2909 | if test "${ac_cv_objext+set}" = set; then : |
| 2910 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2911 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2913 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2914 | |
| 2915 | int |
| 2916 | main () |
| 2917 | { |
| 2918 | |
| 2919 | ; |
| 2920 | return 0; |
| 2921 | } |
| 2922 | _ACEOF |
| 2923 | rm -f conftest.o conftest.obj |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2924 | if { { ac_try="$ac_compile" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2925 | case "(($ac_try" in |
| 2926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2927 | *) ac_try_echo=$ac_try;; |
| 2928 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2929 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2930 | $as_echo "$ac_try_echo"; } >&5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2931 | (eval "$ac_compile") 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2932 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2934 | test $ac_status = 0; }; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2935 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2936 | test -f "$ac_file" || continue; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2937 | case $ac_file in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2938 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2939 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2940 | break;; |
| 2941 | esac |
| 2942 | done |
| 2943 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2944 | $as_echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2946 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2947 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2948 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2949 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 2950 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2951 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2952 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2953 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2955 | $as_echo "$ac_cv_objext" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2956 | OBJEXT=$ac_cv_objext |
| 2957 | ac_objext=$OBJEXT |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2959 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2960 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 2961 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2962 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2964 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2965 | |
| 2966 | int |
| 2967 | main () |
| 2968 | { |
| 2969 | #ifndef __GNUC__ |
| 2970 | choke me |
| 2971 | #endif |
| 2972 | |
| 2973 | ; |
| 2974 | return 0; |
| 2975 | } |
| 2976 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2977 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2978 | ac_compiler_gnu=yes |
| 2979 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2980 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2981 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 2982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2983 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2984 | |
| 2985 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 2987 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2988 | if test $ac_compiler_gnu = yes; then |
| 2989 | GCC=yes |
| 2990 | else |
| 2991 | GCC= |
| 2992 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2993 | ac_test_CFLAGS=${CFLAGS+set} |
| 2994 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 2996 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 2997 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 2998 | $as_echo_n "(cached) " >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2999 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3000 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3001 | ac_c_werror_flag=yes |
| 3002 | ac_cv_prog_cc_g=no |
| 3003 | CFLAGS="-g" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3005 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3006 | |
| 3007 | int |
| 3008 | main () |
| 3009 | { |
| 3010 | |
| 3011 | ; |
| 3012 | return 0; |
| 3013 | } |
| 3014 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3015 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3016 | ac_cv_prog_cc_g=yes |
| 3017 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3018 | CFLAGS="" |
| 3019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3020 | /* end confdefs.h. */ |
| 3021 | |
| 3022 | int |
| 3023 | main () |
| 3024 | { |
| 3025 | |
| 3026 | ; |
| 3027 | return 0; |
| 3028 | } |
| 3029 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3030 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 3031 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3032 | else |
| 3033 | ac_c_werror_flag=$ac_save_c_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3034 | CFLAGS="-g" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3036 | /* end confdefs.h. */ |
| 3037 | |
| 3038 | int |
| 3039 | main () |
| 3040 | { |
| 3041 | |
| 3042 | ; |
| 3043 | return 0; |
| 3044 | } |
| 3045 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3046 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3047 | ac_cv_prog_cc_g=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3048 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3050 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3052 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3054 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3055 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3057 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3058 | if test "$ac_test_CFLAGS" = set; then |
| 3059 | CFLAGS=$ac_save_CFLAGS |
| 3060 | elif test $ac_cv_prog_cc_g = yes; then |
| 3061 | if test "$GCC" = yes; then |
| 3062 | CFLAGS="-g -O2" |
| 3063 | else |
| 3064 | CFLAGS="-g" |
| 3065 | fi |
| 3066 | else |
| 3067 | if test "$GCC" = yes; then |
| 3068 | CFLAGS="-O2" |
| 3069 | else |
| 3070 | CFLAGS= |
| 3071 | fi |
| 3072 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3074 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3075 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3076 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3077 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3078 | ac_cv_prog_cc_c89=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3079 | ac_save_CC=$CC |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3081 | /* end confdefs.h. */ |
| 3082 | #include <stdarg.h> |
| 3083 | #include <stdio.h> |
| 3084 | #include <sys/types.h> |
| 3085 | #include <sys/stat.h> |
| 3086 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3087 | struct buf { int x; }; |
| 3088 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3089 | static char *e (p, i) |
| 3090 | char **p; |
| 3091 | int i; |
| 3092 | { |
| 3093 | return p[i]; |
| 3094 | } |
| 3095 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3096 | { |
| 3097 | char *s; |
| 3098 | va_list v; |
| 3099 | va_start (v,p); |
| 3100 | s = g (p, va_arg (v,int)); |
| 3101 | va_end (v); |
| 3102 | return s; |
| 3103 | } |
| 3104 | |
| 3105 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3106 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3107 | These don't provoke an error unfortunately, instead are silently treated |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3108 | 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] | 3109 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3110 | 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] | 3111 | that's true only with -std. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3112 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3113 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3114 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3115 | inside strings and character constants. */ |
| 3116 | #define FOO(x) 'x' |
| 3117 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3118 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3119 | int test (int i, double x); |
| 3120 | struct s1 {int (*f) (int a);}; |
| 3121 | struct s2 {int (*f) (double a);}; |
| 3122 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3123 | int argc; |
| 3124 | char **argv; |
| 3125 | int |
| 3126 | main () |
| 3127 | { |
| 3128 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3129 | ; |
| 3130 | return 0; |
| 3131 | } |
| 3132 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3133 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3134 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3135 | do |
| 3136 | CC="$ac_save_CC $ac_arg" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3137 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3138 | ac_cv_prog_cc_c89=$ac_arg |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3139 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3140 | rm -f core conftest.err conftest.$ac_objext |
| 3141 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3142 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3143 | rm -f conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3144 | CC=$ac_save_CC |
| 3145 | |
| 3146 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3147 | # AC_CACHE_VAL |
| 3148 | case "x$ac_cv_prog_cc_c89" in |
| 3149 | x) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3151 | $as_echo "none needed" >&6; } ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3152 | xno) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3154 | $as_echo "unsupported" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3155 | *) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3156 | CC="$CC $ac_cv_prog_cc_c89" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3158 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3159 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3160 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3161 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3162 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3163 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3164 | ac_ext=c |
| 3165 | ac_cpp='$CPP $CPPFLAGS' |
| 3166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3169 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3170 | ac_ext=cpp |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3171 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3172 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3173 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3174 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3175 | if test -z "$CXX"; then |
| 3176 | if test -n "$CCC"; then |
| 3177 | CXX=$CCC |
| 3178 | else |
| 3179 | if test -n "$ac_tool_prefix"; then |
| 3180 | 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] | 3181 | do |
| 3182 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3183 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3185 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3186 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 3187 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3188 | else |
| 3189 | if test -n "$CXX"; then |
| 3190 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3191 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3193 | for as_dir in $PATH |
| 3194 | do |
| 3195 | IFS=$as_save_IFS |
| 3196 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3197 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3198 | 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] | 3199 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3200 | $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] | 3201 | break 2 |
| 3202 | fi |
| 3203 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3204 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3205 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3206 | |
| 3207 | fi |
| 3208 | fi |
| 3209 | CXX=$ac_cv_prog_CXX |
| 3210 | if test -n "$CXX"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 3212 | $as_echo "$CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3213 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3215 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3216 | fi |
| 3217 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3218 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3219 | test -n "$CXX" && break |
| 3220 | done |
| 3221 | fi |
| 3222 | if test -z "$CXX"; then |
| 3223 | ac_ct_CXX=$CXX |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3224 | 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] | 3225 | do |
| 3226 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3227 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3229 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3230 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 3231 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3232 | else |
| 3233 | if test -n "$ac_ct_CXX"; then |
| 3234 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3235 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3237 | for as_dir in $PATH |
| 3238 | do |
| 3239 | IFS=$as_save_IFS |
| 3240 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3241 | for ac_exec_ext in '' $ac_executable_extensions; do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3242 | 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] | 3243 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3244 | $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] | 3245 | break 2 |
| 3246 | fi |
| 3247 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3248 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3249 | IFS=$as_save_IFS |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3250 | |
| 3251 | fi |
| 3252 | fi |
| 3253 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3254 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 3256 | $as_echo "$ac_ct_CXX" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3257 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3259 | $as_echo "no" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3260 | fi |
| 3261 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3262 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3263 | test -n "$ac_ct_CXX" && break |
| 3264 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3265 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3266 | if test "x$ac_ct_CXX" = x; then |
| 3267 | CXX="g++" |
| 3268 | else |
| 3269 | case $cross_compiling:$ac_tool_warned in |
| 3270 | yes:) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3272 | $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] | 3273 | ac_tool_warned=yes ;; |
| 3274 | esac |
| 3275 | CXX=$ac_ct_CXX |
| 3276 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3277 | fi |
| 3278 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3279 | fi |
| 3280 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3281 | # Provide some information about the compiler. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3282 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 3283 | set X $ac_compile |
| 3284 | ac_compiler=$2 |
| 3285 | for ac_option in --version -v -V -qversion; do |
| 3286 | { { ac_try="$ac_compiler $ac_option >&5" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3287 | case "(($ac_try" in |
| 3288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3289 | *) ac_try_echo=$ac_try;; |
| 3290 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3291 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3292 | $as_echo "$ac_try_echo"; } >&5 |
| 3293 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3294 | ac_status=$? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3295 | if test -s conftest.err; then |
| 3296 | sed '10a\ |
| 3297 | ... rest of stderr output deleted ... |
| 3298 | 10q' conftest.err >conftest.er1 |
| 3299 | cat conftest.er1 >&5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3300 | fi |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 3301 | rm -f conftest.er1 conftest.err |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3302 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3303 | test $ac_status = 0; } |
| 3304 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3305 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 3307 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 3308 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 3309 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3310 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3312 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3313 | |
| 3314 | int |
| 3315 | main () |
| 3316 | { |
| 3317 | #ifndef __GNUC__ |
| 3318 | choke me |
| 3319 | #endif |
| 3320 | |
| 3321 | ; |
| 3322 | return 0; |
| 3323 | } |
| 3324 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3325 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3326 | ac_compiler_gnu=yes |
| 3327 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3328 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3329 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3331 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3332 | |
| 3333 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3335 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3336 | if test $ac_compiler_gnu = yes; then |
| 3337 | GXX=yes |
| 3338 | else |
| 3339 | GXX= |
| 3340 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3341 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3342 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 3344 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 3345 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 3346 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3347 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3348 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3349 | ac_cxx_werror_flag=yes |
| 3350 | ac_cv_prog_cxx_g=no |
| 3351 | CXXFLAGS="-g" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3353 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3354 | |
| 3355 | int |
| 3356 | main () |
| 3357 | { |
| 3358 | |
| 3359 | ; |
| 3360 | return 0; |
| 3361 | } |
| 3362 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3363 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3364 | ac_cv_prog_cxx_g=yes |
| 3365 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3366 | CXXFLAGS="" |
| 3367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3368 | /* end confdefs.h. */ |
| 3369 | |
| 3370 | int |
| 3371 | main () |
| 3372 | { |
| 3373 | |
| 3374 | ; |
| 3375 | return 0; |
| 3376 | } |
| 3377 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3378 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 3379 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3380 | else |
| 3381 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3382 | CXXFLAGS="-g" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3384 | /* end confdefs.h. */ |
| 3385 | |
| 3386 | int |
| 3387 | main () |
| 3388 | { |
| 3389 | |
| 3390 | ; |
| 3391 | return 0; |
| 3392 | } |
| 3393 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3394 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3395 | ac_cv_prog_cxx_g=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3396 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3398 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3400 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3402 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3403 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 3405 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3406 | if test "$ac_test_CXXFLAGS" = set; then |
| 3407 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3408 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3409 | if test "$GXX" = yes; then |
| 3410 | CXXFLAGS="-g -O2" |
| 3411 | else |
| 3412 | CXXFLAGS="-g" |
| 3413 | fi |
| 3414 | else |
| 3415 | if test "$GXX" = yes; then |
| 3416 | CXXFLAGS="-O2" |
| 3417 | else |
| 3418 | CXXFLAGS= |
| 3419 | fi |
| 3420 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 3421 | ac_ext=c |
| 3422 | ac_cpp='$CPP $CPPFLAGS' |
| 3423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3426 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3427 | ac_ext=c |
| 3428 | ac_cpp='$CPP $CPPFLAGS' |
| 3429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3432 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3433 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3434 | if test -z "$CROSS_COMPILE"; then |
| 3435 | CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'` |
| 3436 | fi |
| 3437 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3438 | if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3439 | |
| 3440 | if test "$LD" = ""; then LD="$CC"; fi |
| 3441 | |
| 3442 | if test "$LDOUT" = ""; then LDOUT="-o"; fi |
| 3443 | |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 3444 | if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 3445 | |
| 3446 | if test "$OBJEXT" = ""; then OBJEXT='o'; fi |
| 3447 | |
| 3448 | if test "$LIBEXT" = ""; then LIBEXT='a'; fi |
| 3449 | |
| 3450 | if test "$LIBEXT2" = ""; then LIBEXT2=""; fi |
| 3451 | |
| 3452 | if test "$CC_OUT" = ""; then CC_OUT="-o"; fi |
| 3453 | |
| 3454 | if test "$CC_INC" = ""; then CC_INC="-I"; fi |
| 3455 | |
| 3456 | if test "$CC_DEF" = ""; then CC_DEF="-D"; fi |
| 3457 | |
| 3458 | if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi |
| 3459 | |
| 3460 | if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi |
| 3461 | |
| 3462 | |
| 3463 | |
| 3464 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3465 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 3466 | |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3467 | |
| 3468 | case $host in |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3469 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | fe3bf0e | 2010-08-05 06:27:20 +0000 | [diff] [blame] | 3470 | if pwd -W 2&> /dev/null; then |
| 3471 | ac_pjdir=`pwd -W` |
| 3472 | else |
| 3473 | # We're probably cross-compiling mingw on Linux |
| 3474 | ac_pjdir=`pwd` |
| 3475 | fi |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 3476 | ;; |
| 3477 | *) |
| 3478 | ac_pjdir=`pwd` |
| 3479 | ;; |
| 3480 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 3481 | |
| 3482 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 3484 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 3485 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : |
| 3486 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3487 | else |
| 3488 | ac_check_lib_save_LIBS=$LIBS |
| 3489 | LIBS="-lpthread $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3491 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3492 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3493 | /* Override any GCC internal prototype to avoid an error. |
| 3494 | Use char because int might match the return type of a GCC |
| 3495 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3496 | #ifdef __cplusplus |
| 3497 | extern "C" |
| 3498 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3499 | char pthread_create (); |
| 3500 | int |
| 3501 | main () |
| 3502 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3503 | return pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3504 | ; |
| 3505 | return 0; |
| 3506 | } |
| 3507 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3508 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3509 | ac_cv_lib_pthread_pthread_create=yes |
| 3510 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3511 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3512 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3513 | rm -f core conftest.err conftest.$ac_objext \ |
| 3514 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3515 | LIBS=$ac_check_lib_save_LIBS |
| 3516 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 3518 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
| 3519 | if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3520 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3521 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3522 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3523 | |
| 3524 | LIBS="-lpthread $LIBS" |
| 3525 | |
| 3526 | fi |
| 3527 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5 |
| 3529 | $as_echo_n "checking for puts in -lwsock32... " >&6; } |
| 3530 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then : |
| 3531 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3532 | else |
| 3533 | ac_check_lib_save_LIBS=$LIBS |
| 3534 | LIBS="-lwsock32 $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3536 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3537 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3538 | /* Override any GCC internal prototype to avoid an error. |
| 3539 | Use char because int might match the return type of a GCC |
| 3540 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3541 | #ifdef __cplusplus |
| 3542 | extern "C" |
| 3543 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3544 | char puts (); |
| 3545 | int |
| 3546 | main () |
| 3547 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3548 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3549 | ; |
| 3550 | return 0; |
| 3551 | } |
| 3552 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3553 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3554 | ac_cv_lib_wsock32_puts=yes |
| 3555 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3556 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3557 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3558 | rm -f core conftest.err conftest.$ac_objext \ |
| 3559 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3560 | LIBS=$ac_check_lib_save_LIBS |
| 3561 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5 |
| 3563 | $as_echo "$ac_cv_lib_wsock32_puts" >&6; } |
| 3564 | if test "x$ac_cv_lib_wsock32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3565 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3566 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3567 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3568 | |
| 3569 | LIBS="-lwsock32 $LIBS" |
| 3570 | |
| 3571 | fi |
| 3572 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5 |
| 3574 | $as_echo_n "checking for puts in -lws2_32... " >&6; } |
| 3575 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then : |
| 3576 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3577 | else |
| 3578 | ac_check_lib_save_LIBS=$LIBS |
| 3579 | LIBS="-lws2_32 $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3581 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3582 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3583 | /* Override any GCC internal prototype to avoid an error. |
| 3584 | Use char because int might match the return type of a GCC |
| 3585 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3586 | #ifdef __cplusplus |
| 3587 | extern "C" |
| 3588 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3589 | char puts (); |
| 3590 | int |
| 3591 | main () |
| 3592 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3593 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3594 | ; |
| 3595 | return 0; |
| 3596 | } |
| 3597 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3598 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3599 | ac_cv_lib_ws2_32_puts=yes |
| 3600 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3601 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3602 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3603 | rm -f core conftest.err conftest.$ac_objext \ |
| 3604 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3605 | LIBS=$ac_check_lib_save_LIBS |
| 3606 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 3608 | $as_echo "$ac_cv_lib_ws2_32_puts" >&6; } |
| 3609 | if test "x$ac_cv_lib_ws2_32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3610 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3611 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3612 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3613 | |
| 3614 | LIBS="-lws2_32 $LIBS" |
| 3615 | |
| 3616 | fi |
| 3617 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5 |
| 3619 | $as_echo_n "checking for puts in -lole32... " >&6; } |
| 3620 | if test "${ac_cv_lib_ole32_puts+set}" = set; then : |
| 3621 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3622 | else |
| 3623 | ac_check_lib_save_LIBS=$LIBS |
| 3624 | LIBS="-lole32 $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3626 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3627 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3628 | /* Override any GCC internal prototype to avoid an error. |
| 3629 | Use char because int might match the return type of a GCC |
| 3630 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3631 | #ifdef __cplusplus |
| 3632 | extern "C" |
| 3633 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3634 | char puts (); |
| 3635 | int |
| 3636 | main () |
| 3637 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3638 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3639 | ; |
| 3640 | return 0; |
| 3641 | } |
| 3642 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3643 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3644 | ac_cv_lib_ole32_puts=yes |
| 3645 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3646 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3647 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3648 | rm -f core conftest.err conftest.$ac_objext \ |
| 3649 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3650 | LIBS=$ac_check_lib_save_LIBS |
| 3651 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5 |
| 3653 | $as_echo "$ac_cv_lib_ole32_puts" >&6; } |
| 3654 | if test "x$ac_cv_lib_ole32_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3655 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3656 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3657 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3658 | |
| 3659 | LIBS="-lole32 $LIBS" |
| 3660 | |
| 3661 | fi |
| 3662 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5 |
| 3664 | $as_echo_n "checking for puts in -lwinmm... " >&6; } |
| 3665 | if test "${ac_cv_lib_winmm_puts+set}" = set; then : |
| 3666 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3667 | else |
| 3668 | ac_check_lib_save_LIBS=$LIBS |
| 3669 | LIBS="-lwinmm $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3671 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3672 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3673 | /* Override any GCC internal prototype to avoid an error. |
| 3674 | Use char because int might match the return type of a GCC |
| 3675 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3676 | #ifdef __cplusplus |
| 3677 | extern "C" |
| 3678 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3679 | char puts (); |
| 3680 | int |
| 3681 | main () |
| 3682 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3683 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3684 | ; |
| 3685 | return 0; |
| 3686 | } |
| 3687 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3688 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3689 | ac_cv_lib_winmm_puts=yes |
| 3690 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3691 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3692 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3693 | rm -f core conftest.err conftest.$ac_objext \ |
| 3694 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3695 | LIBS=$ac_check_lib_save_LIBS |
| 3696 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5 |
| 3698 | $as_echo "$ac_cv_lib_winmm_puts" >&6; } |
| 3699 | if test "x$ac_cv_lib_winmm_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3700 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3701 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3702 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3703 | |
| 3704 | LIBS="-lwinmm $LIBS" |
| 3705 | |
| 3706 | fi |
| 3707 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5 |
| 3709 | $as_echo_n "checking for puts in -lsocket... " >&6; } |
| 3710 | if test "${ac_cv_lib_socket_puts+set}" = set; then : |
| 3711 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3712 | else |
| 3713 | ac_check_lib_save_LIBS=$LIBS |
| 3714 | LIBS="-lsocket $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3716 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3717 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3718 | /* Override any GCC internal prototype to avoid an error. |
| 3719 | Use char because int might match the return type of a GCC |
| 3720 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3721 | #ifdef __cplusplus |
| 3722 | extern "C" |
| 3723 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3724 | char puts (); |
| 3725 | int |
| 3726 | main () |
| 3727 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3728 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3729 | ; |
| 3730 | return 0; |
| 3731 | } |
| 3732 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3733 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3734 | ac_cv_lib_socket_puts=yes |
| 3735 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3736 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3737 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3738 | rm -f core conftest.err conftest.$ac_objext \ |
| 3739 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3740 | LIBS=$ac_check_lib_save_LIBS |
| 3741 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5 |
| 3743 | $as_echo "$ac_cv_lib_socket_puts" >&6; } |
| 3744 | if test "x$ac_cv_lib_socket_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3745 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3746 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3747 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3748 | |
| 3749 | LIBS="-lsocket $LIBS" |
| 3750 | |
| 3751 | fi |
| 3752 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5 |
| 3754 | $as_echo_n "checking for puts in -lrt... " >&6; } |
| 3755 | if test "${ac_cv_lib_rt_puts+set}" = set; then : |
| 3756 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3757 | else |
| 3758 | ac_check_lib_save_LIBS=$LIBS |
| 3759 | LIBS="-lrt $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3761 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3762 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3763 | /* Override any GCC internal prototype to avoid an error. |
| 3764 | Use char because int might match the return type of a GCC |
| 3765 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3766 | #ifdef __cplusplus |
| 3767 | extern "C" |
| 3768 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3769 | char puts (); |
| 3770 | int |
| 3771 | main () |
| 3772 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3773 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3774 | ; |
| 3775 | return 0; |
| 3776 | } |
| 3777 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3778 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3779 | ac_cv_lib_rt_puts=yes |
| 3780 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3781 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3782 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3783 | rm -f core conftest.err conftest.$ac_objext \ |
| 3784 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3785 | LIBS=$ac_check_lib_save_LIBS |
| 3786 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5 |
| 3788 | $as_echo "$ac_cv_lib_rt_puts" >&6; } |
| 3789 | if test "x$ac_cv_lib_rt_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3790 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3791 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3792 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3793 | |
| 3794 | LIBS="-lrt $LIBS" |
| 3795 | |
| 3796 | fi |
| 3797 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5 |
| 3799 | $as_echo_n "checking for puts in -lnsl... " >&6; } |
| 3800 | if test "${ac_cv_lib_nsl_puts+set}" = set; then : |
| 3801 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3802 | else |
| 3803 | ac_check_lib_save_LIBS=$LIBS |
| 3804 | LIBS="-lnsl $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3806 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3807 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3808 | /* Override any GCC internal prototype to avoid an error. |
| 3809 | Use char because int might match the return type of a GCC |
| 3810 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3811 | #ifdef __cplusplus |
| 3812 | extern "C" |
| 3813 | #endif |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3814 | char puts (); |
| 3815 | int |
| 3816 | main () |
| 3817 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3818 | return puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3819 | ; |
| 3820 | return 0; |
| 3821 | } |
| 3822 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3823 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3824 | ac_cv_lib_nsl_puts=yes |
| 3825 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3826 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3827 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3828 | rm -f core conftest.err conftest.$ac_objext \ |
| 3829 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3830 | LIBS=$ac_check_lib_save_LIBS |
| 3831 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5 |
| 3833 | $as_echo "$ac_cv_lib_nsl_puts" >&6; } |
| 3834 | if test "x$ac_cv_lib_nsl_puts" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3835 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3836 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3837 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3838 | |
| 3839 | LIBS="-lnsl $LIBS" |
| 3840 | |
| 3841 | fi |
| 3842 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3844 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 3845 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
| 3846 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3847 | else |
| 3848 | ac_check_lib_save_LIBS=$LIBS |
| 3849 | LIBS="-luuid $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3851 | /* end confdefs.h. */ |
| 3852 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3853 | /* Override any GCC internal prototype to avoid an error. |
| 3854 | Use char because int might match the return type of a GCC |
| 3855 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3856 | #ifdef __cplusplus |
| 3857 | extern "C" |
| 3858 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3859 | char uuid_generate (); |
| 3860 | int |
| 3861 | main () |
| 3862 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3863 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3864 | ; |
| 3865 | return 0; |
| 3866 | } |
| 3867 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3868 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3869 | ac_cv_lib_uuid_uuid_generate=yes |
| 3870 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3871 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3872 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3873 | rm -f core conftest.err conftest.$ac_objext \ |
| 3874 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3875 | LIBS=$ac_check_lib_save_LIBS |
| 3876 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3878 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3879 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3880 | cat >>confdefs.h <<_ACEOF |
| 3881 | #define HAVE_LIBUUID 1 |
| 3882 | _ACEOF |
| 3883 | |
| 3884 | LIBS="-luuid $LIBS" |
| 3885 | |
| 3886 | fi |
| 3887 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
| 3889 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 3890 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
| 3891 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3892 | else |
| 3893 | ac_check_lib_save_LIBS=$LIBS |
| 3894 | LIBS="-luuid $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3896 | /* end confdefs.h. */ |
| 3897 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3898 | /* Override any GCC internal prototype to avoid an error. |
| 3899 | Use char because int might match the return type of a GCC |
| 3900 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3901 | #ifdef __cplusplus |
| 3902 | extern "C" |
| 3903 | #endif |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3904 | char uuid_generate (); |
| 3905 | int |
| 3906 | main () |
| 3907 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3908 | return uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3909 | ; |
| 3910 | return 0; |
| 3911 | } |
| 3912 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3913 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3914 | ac_cv_lib_uuid_uuid_generate=yes |
| 3915 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3916 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3917 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3918 | rm -f core conftest.err conftest.$ac_objext \ |
| 3919 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3920 | LIBS=$ac_check_lib_save_LIBS |
| 3921 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3923 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 3924 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3925 | ac_has_uuid_lib=1 |
| 3926 | fi |
| 3927 | |
| 3928 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3930 | $as_echo "Setting PJ_M_NAME to $target_cpu" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3931 | cat >>confdefs.h <<_ACEOF |
| 3932 | #define PJ_M_NAME "$target_cpu" |
| 3933 | _ACEOF |
| 3934 | |
| 3935 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5 |
| 3937 | $as_echo_n "checking memory alignment... " >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3938 | case $target in |
Benny Prijono | b18e950 | 2010-05-19 05:51:38 +0000 | [diff] [blame] | 3939 | sparc64-* | ia64-* | x86_64-* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3940 | $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3941 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5 |
| 3943 | $as_echo "8 bytes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3944 | ;; |
| 3945 | * ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3946 | $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3947 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5 |
| 3949 | $as_echo "4 bytes (default)" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3950 | ;; |
| 3951 | esac |
| 3952 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3953 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3954 | ac_ext=c |
| 3955 | ac_cpp='$CPP $CPPFLAGS' |
| 3956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3960 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3961 | # On Suns, sometimes $CPP names a directory. |
| 3962 | if test -n "$CPP" && test -d "$CPP"; then |
| 3963 | CPP= |
| 3964 | fi |
| 3965 | if test -z "$CPP"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3966 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3967 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3968 | else |
| 3969 | # Double quotes because CPP needs to be expanded |
| 3970 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3971 | do |
| 3972 | ac_preproc_ok=false |
| 3973 | for ac_c_preproc_warn_flag in '' yes |
| 3974 | do |
| 3975 | # Use a header file that comes with gcc, so configuring glibc |
| 3976 | # with a fresh cross-compiler works. |
| 3977 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3978 | # <limits.h> exists even on freestanding compilers. |
| 3979 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3980 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3982 | /* end confdefs.h. */ |
| 3983 | #ifdef __STDC__ |
| 3984 | # include <limits.h> |
| 3985 | #else |
| 3986 | # include <assert.h> |
| 3987 | #endif |
| 3988 | Syntax error |
| 3989 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3990 | if ac_fn_c_try_cpp "$LINENO"; then : |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 3991 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 3992 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3993 | # Broken: fails on valid input. |
| 3994 | continue |
| 3995 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 3996 | rm -f conftest.err conftest.$ac_ext |
| 3997 | |
| 3998 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3999 | # can be detected and how. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4001 | /* end confdefs.h. */ |
| 4002 | #include <ac_nonexistent.h> |
| 4003 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4004 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4005 | # Broken: success on invalid input. |
| 4006 | continue |
| 4007 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4008 | # Passes both tests. |
| 4009 | ac_preproc_ok=: |
| 4010 | break |
| 4011 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4012 | rm -f conftest.err conftest.$ac_ext |
| 4013 | |
| 4014 | done |
| 4015 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4016 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4017 | if $ac_preproc_ok; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4018 | break |
| 4019 | fi |
| 4020 | |
| 4021 | done |
| 4022 | ac_cv_prog_CPP=$CPP |
| 4023 | |
| 4024 | fi |
| 4025 | CPP=$ac_cv_prog_CPP |
| 4026 | else |
| 4027 | ac_cv_prog_CPP=$CPP |
| 4028 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4030 | $as_echo "$CPP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4031 | ac_preproc_ok=false |
| 4032 | for ac_c_preproc_warn_flag in '' yes |
| 4033 | do |
| 4034 | # Use a header file that comes with gcc, so configuring glibc |
| 4035 | # with a fresh cross-compiler works. |
| 4036 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4037 | # <limits.h> exists even on freestanding compilers. |
| 4038 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4039 | # not just through cpp. "Syntax error" is here to catch this case. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4041 | /* end confdefs.h. */ |
| 4042 | #ifdef __STDC__ |
| 4043 | # include <limits.h> |
| 4044 | #else |
| 4045 | # include <assert.h> |
| 4046 | #endif |
| 4047 | Syntax error |
| 4048 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4049 | if ac_fn_c_try_cpp "$LINENO"; then : |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4050 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4051 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4052 | # Broken: fails on valid input. |
| 4053 | continue |
| 4054 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4055 | rm -f conftest.err conftest.$ac_ext |
| 4056 | |
| 4057 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4058 | # can be detected and how. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4060 | /* end confdefs.h. */ |
| 4061 | #include <ac_nonexistent.h> |
| 4062 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4063 | if ac_fn_c_try_cpp "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4064 | # Broken: success on invalid input. |
| 4065 | continue |
| 4066 | else |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4067 | # Passes both tests. |
| 4068 | ac_preproc_ok=: |
| 4069 | break |
| 4070 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4071 | rm -f conftest.err conftest.$ac_ext |
| 4072 | |
| 4073 | done |
| 4074 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4075 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4076 | if $ac_preproc_ok; then : |
| 4077 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4078 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4079 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4080 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4081 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4082 | See \`config.log' for more details." "$LINENO" 5; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4083 | fi |
| 4084 | |
| 4085 | ac_ext=c |
| 4086 | ac_cpp='$CPP $CPPFLAGS' |
| 4087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4090 | |
| 4091 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4093 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4094 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4095 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4096 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4097 | if test -z "$GREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4098 | ac_path_GREP_found=false |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4099 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4101 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4102 | do |
| 4103 | IFS=$as_save_IFS |
| 4104 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4105 | for ac_prog in grep ggrep; do |
| 4106 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4107 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4108 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4109 | # 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] | 4110 | # Check for GNU $ac_path_GREP |
| 4111 | case `"$ac_path_GREP" --version 2>&1` in |
| 4112 | *GNU*) |
| 4113 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4114 | *) |
| 4115 | ac_count=0 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4116 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4117 | while : |
| 4118 | do |
| 4119 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4120 | mv "conftest.tmp" "conftest.in" |
| 4121 | cp "conftest.in" "conftest.nl" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4122 | $as_echo 'GREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4123 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4124 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4125 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4126 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4127 | # Best one so far, save it but keep looking for a better one |
| 4128 | ac_cv_path_GREP="$ac_path_GREP" |
| 4129 | ac_path_GREP_max=$ac_count |
| 4130 | fi |
| 4131 | # 10*(2^10) chars as input seems more than enough |
| 4132 | test $ac_count -gt 10 && break |
| 4133 | done |
| 4134 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4135 | esac |
| 4136 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4137 | $ac_path_GREP_found && break 3 |
| 4138 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4139 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4140 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4141 | IFS=$as_save_IFS |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4142 | if test -z "$ac_cv_path_GREP"; then |
| 4143 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4144 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4145 | else |
| 4146 | ac_cv_path_GREP=$GREP |
| 4147 | fi |
| 4148 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4149 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4151 | $as_echo "$ac_cv_path_GREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4152 | GREP="$ac_cv_path_GREP" |
| 4153 | |
| 4154 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4156 | $as_echo_n "checking for egrep... " >&6; } |
| 4157 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4158 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4159 | else |
| 4160 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4161 | then ac_cv_path_EGREP="$GREP -E" |
| 4162 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4163 | if test -z "$EGREP"; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4164 | ac_path_EGREP_found=false |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4165 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4167 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4168 | do |
| 4169 | IFS=$as_save_IFS |
| 4170 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4171 | for ac_prog in egrep; do |
| 4172 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4173 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4174 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4175 | # 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] | 4176 | # Check for GNU $ac_path_EGREP |
| 4177 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4178 | *GNU*) |
| 4179 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4180 | *) |
| 4181 | ac_count=0 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4182 | $as_echo_n 0123456789 >"conftest.in" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4183 | while : |
| 4184 | do |
| 4185 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4186 | mv "conftest.tmp" "conftest.in" |
| 4187 | cp "conftest.in" "conftest.nl" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4188 | $as_echo 'EGREP' >> "conftest.nl" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4189 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4190 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4191 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4192 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4193 | # Best one so far, save it but keep looking for a better one |
| 4194 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4195 | ac_path_EGREP_max=$ac_count |
| 4196 | fi |
| 4197 | # 10*(2^10) chars as input seems more than enough |
| 4198 | test $ac_count -gt 10 && break |
| 4199 | done |
| 4200 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4201 | esac |
| 4202 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4203 | $ac_path_EGREP_found && break 3 |
| 4204 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4205 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4206 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4207 | IFS=$as_save_IFS |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4208 | if test -z "$ac_cv_path_EGREP"; then |
| 4209 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4210 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4211 | else |
| 4212 | ac_cv_path_EGREP=$EGREP |
| 4213 | fi |
| 4214 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4215 | fi |
| 4216 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4218 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4219 | EGREP="$ac_cv_path_EGREP" |
| 4220 | |
| 4221 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4223 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4224 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4225 | $as_echo_n "(cached) " >&6 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4226 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4228 | /* end confdefs.h. */ |
| 4229 | #include <stdlib.h> |
| 4230 | #include <stdarg.h> |
| 4231 | #include <string.h> |
| 4232 | #include <float.h> |
| 4233 | |
| 4234 | int |
| 4235 | main () |
| 4236 | { |
| 4237 | |
| 4238 | ; |
| 4239 | return 0; |
| 4240 | } |
| 4241 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4242 | if ac_fn_c_try_compile "$LINENO"; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4243 | ac_cv_header_stdc=yes |
| 4244 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4245 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4246 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4248 | |
| 4249 | if test $ac_cv_header_stdc = yes; then |
| 4250 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4252 | /* end confdefs.h. */ |
| 4253 | #include <string.h> |
| 4254 | |
| 4255 | _ACEOF |
| 4256 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4257 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4258 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4259 | else |
| 4260 | ac_cv_header_stdc=no |
| 4261 | fi |
| 4262 | rm -f conftest* |
| 4263 | |
| 4264 | fi |
| 4265 | |
| 4266 | if test $ac_cv_header_stdc = yes; then |
| 4267 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4269 | /* end confdefs.h. */ |
| 4270 | #include <stdlib.h> |
| 4271 | |
| 4272 | _ACEOF |
| 4273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4274 | $EGREP "free" >/dev/null 2>&1; then : |
| 4275 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4276 | else |
| 4277 | ac_cv_header_stdc=no |
| 4278 | fi |
| 4279 | rm -f conftest* |
| 4280 | |
| 4281 | fi |
| 4282 | |
| 4283 | if test $ac_cv_header_stdc = yes; then |
| 4284 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4285 | if test "$cross_compiling" = yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4286 | : |
| 4287 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4289 | /* end confdefs.h. */ |
| 4290 | #include <ctype.h> |
| 4291 | #include <stdlib.h> |
| 4292 | #if ((' ' & 0x0FF) == 0x020) |
| 4293 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4294 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4295 | #else |
| 4296 | # define ISLOWER(c) \ |
| 4297 | (('a' <= (c) && (c) <= 'i') \ |
| 4298 | || ('j' <= (c) && (c) <= 'r') \ |
| 4299 | || ('s' <= (c) && (c) <= 'z')) |
| 4300 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4301 | #endif |
| 4302 | |
| 4303 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4304 | int |
| 4305 | main () |
| 4306 | { |
| 4307 | int i; |
| 4308 | for (i = 0; i < 256; i++) |
| 4309 | if (XOR (islower (i), ISLOWER (i)) |
| 4310 | || toupper (i) != TOUPPER (i)) |
| 4311 | return 2; |
| 4312 | return 0; |
| 4313 | } |
| 4314 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4315 | if ac_fn_c_try_run "$LINENO"; then : |
| 4316 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4317 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4318 | ac_cv_header_stdc=no |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4319 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4320 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4321 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4322 | fi |
| 4323 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4324 | fi |
| 4325 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4327 | $as_echo "$ac_cv_header_stdc" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4328 | if test $ac_cv_header_stdc = yes; then |
| 4329 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4330 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4331 | |
| 4332 | fi |
| 4333 | |
| 4334 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4335 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4336 | inttypes.h stdint.h unistd.h |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4337 | do : |
| 4338 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4339 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4340 | " |
| 4341 | eval as_val=\$$as_ac_Header |
| 4342 | if test "x$as_val" = x""yes; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4343 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4344 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4345 | _ACEOF |
| 4346 | |
| 4347 | fi |
| 4348 | |
| 4349 | done |
| 4350 | |
| 4351 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 4353 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 4354 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| 4355 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4356 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4357 | ac_cv_c_bigendian=unknown |
| 4358 | # See if we're dealing with a universal compiler. |
| 4359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4360 | /* end confdefs.h. */ |
| 4361 | #ifndef __APPLE_CC__ |
| 4362 | not a universal capable compiler |
| 4363 | #endif |
| 4364 | typedef int dummy; |
| 4365 | |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4366 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4367 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4368 | |
| 4369 | # Check for potential -arch flags. It is not universal unless |
| 4370 | # there are at least two -arch flags with different values. |
| 4371 | ac_arch= |
| 4372 | ac_prev= |
| 4373 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 4374 | if test -n "$ac_prev"; then |
| 4375 | case $ac_word in |
| 4376 | i?86 | x86_64 | ppc | ppc64) |
| 4377 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 4378 | ac_arch=$ac_word |
| 4379 | else |
| 4380 | ac_cv_c_bigendian=universal |
| 4381 | break |
| 4382 | fi |
| 4383 | ;; |
| 4384 | esac |
| 4385 | ac_prev= |
| 4386 | elif test "x$ac_word" = "x-arch"; then |
| 4387 | ac_prev=arch |
| 4388 | fi |
| 4389 | done |
| 4390 | fi |
| 4391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4392 | if test $ac_cv_c_bigendian = unknown; then |
| 4393 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4395 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4396 | #include <sys/types.h> |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4397 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4398 | |
| 4399 | int |
| 4400 | main () |
| 4401 | { |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4402 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 4403 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 4404 | && LITTLE_ENDIAN) |
| 4405 | bogus endian macros |
| 4406 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4407 | |
| 4408 | ; |
| 4409 | return 0; |
| 4410 | } |
| 4411 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4412 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4413 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4415 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4416 | #include <sys/types.h> |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4417 | #include <sys/param.h> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4418 | |
| 4419 | int |
| 4420 | main () |
| 4421 | { |
| 4422 | #if BYTE_ORDER != BIG_ENDIAN |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4423 | not big endian |
| 4424 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4425 | |
| 4426 | ; |
| 4427 | return 0; |
| 4428 | } |
| 4429 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +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 | ac_cv_c_bigendian=yes |
| 4432 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4433 | ac_cv_c_bigendian=no |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4434 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4436 | fi |
| 4437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4438 | fi |
| 4439 | if test $ac_cv_c_bigendian = unknown; then |
| 4440 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 4441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4442 | /* end confdefs.h. */ |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4443 | #include <limits.h> |
| 4444 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4445 | int |
| 4446 | main () |
| 4447 | { |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4448 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 4449 | bogus endian macros |
| 4450 | #endif |
| 4451 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4452 | ; |
| 4453 | return 0; |
| 4454 | } |
| 4455 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4456 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4457 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 4458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4459 | /* end confdefs.h. */ |
| 4460 | #include <limits.h> |
| 4461 | |
| 4462 | int |
| 4463 | main () |
| 4464 | { |
| 4465 | #ifndef _BIG_ENDIAN |
| 4466 | not big endian |
| 4467 | #endif |
| 4468 | |
| 4469 | ; |
| 4470 | return 0; |
| 4471 | } |
| 4472 | _ACEOF |
| 4473 | if ac_fn_c_try_compile "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4474 | ac_cv_c_bigendian=yes |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4475 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4476 | ac_cv_c_bigendian=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4477 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4479 | fi |
| 4480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4481 | fi |
| 4482 | if test $ac_cv_c_bigendian = unknown; then |
| 4483 | # Compile a test program. |
| 4484 | if test "$cross_compiling" = yes; then : |
| 4485 | # Try to guess by grepping values from an object file. |
| 4486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4487 | /* end confdefs.h. */ |
| 4488 | short int ascii_mm[] = |
| 4489 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4490 | short int ascii_ii[] = |
| 4491 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4492 | int use_ascii (int i) { |
| 4493 | return ascii_mm[i] + ascii_ii[i]; |
| 4494 | } |
| 4495 | short int ebcdic_ii[] = |
| 4496 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4497 | short int ebcdic_mm[] = |
| 4498 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4499 | int use_ebcdic (int i) { |
| 4500 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4501 | } |
| 4502 | extern int foo; |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4503 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4504 | int |
| 4505 | main () |
| 4506 | { |
| 4507 | return use_ascii (foo) == use_ebcdic (foo); |
| 4508 | ; |
| 4509 | return 0; |
| 4510 | } |
| 4511 | _ACEOF |
| 4512 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4513 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4514 | ac_cv_c_bigendian=yes |
| 4515 | fi |
| 4516 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4517 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4518 | ac_cv_c_bigendian=no |
| 4519 | else |
| 4520 | # finding both strings is unlikely to happen, but who knows? |
| 4521 | ac_cv_c_bigendian=unknown |
| 4522 | fi |
| 4523 | fi |
| 4524 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4526 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4528 | /* end confdefs.h. */ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4529 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4530 | int |
| 4531 | main () |
| 4532 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4533 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4534 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4535 | union |
| 4536 | { |
| 4537 | long int l; |
| 4538 | char c[sizeof (long int)]; |
| 4539 | } u; |
| 4540 | u.l = 1; |
| 4541 | return u.c[sizeof (long int) - 1] == 1; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4542 | |
| 4543 | ; |
| 4544 | return 0; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4545 | } |
| 4546 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4547 | if ac_fn_c_try_run "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4548 | ac_cv_c_bigendian=no |
| 4549 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4550 | ac_cv_c_bigendian=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4551 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4552 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4553 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4554 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4555 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4556 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4557 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4559 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 4560 | case $ac_cv_c_bigendian in #( |
| 4561 | yes) |
| 4562 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 4563 | ;; #( |
| 4564 | no) |
| 4565 | ;; #( |
| 4566 | universal) |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4567 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4568 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4569 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4570 | ;; #( |
| 4571 | *) |
| 4572 | as_fn_error "unknown endianness |
| 4573 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 4574 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4575 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4576 | |
| 4577 | case $target in |
| 4578 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4579 | $as_echo "#define PJ_WIN32 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4580 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4581 | $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4582 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4583 | $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4584 | |
| 4585 | ;; |
| 4586 | *darwin*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4587 | $as_echo "#define PJ_DARWINOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4588 | |
| 4589 | ;; |
| 4590 | *linux*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4591 | $as_echo "#define PJ_LINUX 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4592 | |
| 4593 | ;; |
| 4594 | *rtems*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4595 | $as_echo "#define PJ_RTEMS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4596 | |
| 4597 | ;; |
| 4598 | *sunos* | *solaris* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4599 | $as_echo "#define PJ_SUNOS 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4600 | |
| 4601 | ;; |
| 4602 | *) |
| 4603 | ;; |
| 4604 | esac |
| 4605 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4606 | |
| 4607 | |
| 4608 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4609 | # Check whether --enable-floating-point was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4610 | if test "${enable_floating_point+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4611 | enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4612 | $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4613 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5 |
| 4615 | $as_echo "Checking if floating point is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4616 | fi |
| 4617 | else |
| 4618 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4619 | $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4620 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5 |
| 4622 | $as_echo "Checking if floating point is disabled... no" >&6; } |
| 4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5 |
| 4624 | $as_echo_n "checking for fmod in -lm... " >&6; } |
| 4625 | if test "${ac_cv_lib_m_fmod+set}" = set; then : |
| 4626 | $as_echo_n "(cached) " >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4627 | else |
| 4628 | ac_check_lib_save_LIBS=$LIBS |
| 4629 | LIBS="-lm $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4631 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4632 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4633 | /* Override any GCC internal prototype to avoid an error. |
| 4634 | Use char because int might match the return type of a GCC |
| 4635 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4636 | #ifdef __cplusplus |
| 4637 | extern "C" |
| 4638 | #endif |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4639 | char fmod (); |
| 4640 | int |
| 4641 | main () |
| 4642 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4643 | return fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4644 | ; |
| 4645 | return 0; |
| 4646 | } |
| 4647 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4648 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4649 | ac_cv_lib_m_fmod=yes |
| 4650 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4651 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4652 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4653 | rm -f core conftest.err conftest.$ac_objext \ |
| 4654 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4655 | LIBS=$ac_check_lib_save_LIBS |
| 4656 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5 |
| 4658 | $as_echo "$ac_cv_lib_m_fmod" >&6; } |
| 4659 | if test "x$ac_cv_lib_m_fmod" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4660 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4661 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4662 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4663 | |
| 4664 | LIBS="-lm $LIBS" |
| 4665 | |
| 4666 | fi |
| 4667 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4668 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4669 | fi |
| 4670 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4671 | |
| 4672 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4673 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
| 4674 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : |
| 4675 | $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4676 | |
| 4677 | fi |
| 4678 | |
| 4679 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4680 | ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
| 4681 | if test "x$ac_cv_header_assert_h" = x""yes; then : |
| 4682 | $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4683 | |
| 4684 | fi |
| 4685 | |
| 4686 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4687 | ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
| 4688 | if test "x$ac_cv_header_ctype_h" = x""yes; then : |
| 4689 | $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4690 | |
| 4691 | fi |
| 4692 | |
| 4693 | |
| 4694 | |
| 4695 | case $target in |
| 4696 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4697 | $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4698 | |
| 4699 | ;; |
| 4700 | *) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4701 | ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
| 4702 | if test "x$ac_cv_header_errno_h" = x""yes; then : |
| 4703 | $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4704 | |
| 4705 | fi |
| 4706 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4707 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4708 | ;; |
| 4709 | esac |
| 4710 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4711 | ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 4712 | if test "x$ac_cv_header_fcntl_h" = x""yes; then : |
| 4713 | $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4714 | |
| 4715 | fi |
| 4716 | |
| 4717 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4718 | ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default" |
| 4719 | if test "x$ac_cv_header_linux_socket_h" = x""yes; then : |
| 4720 | $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4721 | |
| 4722 | fi |
| 4723 | |
| 4724 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4725 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
| 4726 | if test "x$ac_cv_header_malloc_h" = x""yes; then : |
| 4727 | $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4728 | |
| 4729 | fi |
| 4730 | |
| 4731 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4732 | ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" |
| 4733 | if test "x$ac_cv_header_netdb_h" = x""yes; then : |
| 4734 | $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4735 | |
| 4736 | fi |
| 4737 | |
| 4738 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4739 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" |
| 4740 | if test "x$ac_cv_header_netinet_in_systm_h" = x""yes; then : |
| 4741 | $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4742 | |
| 4743 | fi |
| 4744 | |
| 4745 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4746 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
| 4747 | if test "x$ac_cv_header_netinet_in_h" = x""yes; then : |
| 4748 | $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4749 | |
| 4750 | fi |
| 4751 | |
| 4752 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4753 | 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] | 4754 | # include <sys/types.h> |
| 4755 | #endif |
| 4756 | #if PJ_HAS_NETINET_IN_SYSTM_H |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4757 | # include <netinet/in_systm.h> |
| 4758 | #endif |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 4759 | #if PJ_HAS_NETINET_IN_H |
| 4760 | # include <netinet/in.h> |
| 4761 | #endif |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 4762 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4763 | " |
| 4764 | if test "x$ac_cv_header_netinet_ip_h" = x""yes; then : |
| 4765 | $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4766 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4767 | fi |
| 4768 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 4769 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4770 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" |
| 4771 | if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then : |
| 4772 | $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4773 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4774 | fi |
| 4775 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4776 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4777 | ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" |
| 4778 | if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 4779 | ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" |
| 4780 | if test "x$ac_cv_func_getifaddrs" = x""yes; then : |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4781 | $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4782 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4783 | fi |
| 4784 | |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 4785 | fi |
| 4786 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4787 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4788 | ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" |
| 4789 | if test "x$ac_cv_header_semaphore_h" = x""yes; then : |
| 4790 | $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4791 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4792 | fi |
| 4793 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4794 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4795 | ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" |
| 4796 | if test "x$ac_cv_header_setjmp_h" = x""yes; then : |
| 4797 | $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4798 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4799 | fi |
| 4800 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4801 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4802 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
| 4803 | if test "x$ac_cv_header_stdarg_h" = x""yes; then : |
| 4804 | $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4805 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4806 | fi |
| 4807 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4808 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4809 | ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
| 4810 | if test "x$ac_cv_header_stddef_h" = x""yes; then : |
| 4811 | $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4812 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4813 | fi |
| 4814 | |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4815 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4816 | ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" |
| 4817 | if test "x$ac_cv_header_stdio_h" = x""yes; then : |
| 4818 | $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4819 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4820 | fi |
| 4821 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4822 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4823 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 4824 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
| 4825 | $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4826 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4827 | fi |
| 4828 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4829 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4830 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 4831 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
| 4832 | $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h |
Benny Prijono | 1d61ba5 | 2009-10-24 00:00:40 +0000 | [diff] [blame] | 4833 | |
| 4834 | fi |
| 4835 | |
| 4836 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4837 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| 4838 | if test "x$ac_cv_header_string_h" = x""yes; then : |
| 4839 | $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4840 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4841 | fi |
| 4842 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4843 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4844 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 4845 | if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : |
| 4846 | $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4847 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4848 | fi |
| 4849 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4850 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4851 | ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 4852 | if test "x$ac_cv_header_sys_select_h" = x""yes; then : |
| 4853 | $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4854 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4855 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4856 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 4857 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4858 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 4859 | if test "x$ac_cv_header_sys_socket_h" = x""yes; then : |
| 4860 | $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4861 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4862 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4863 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4864 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4865 | ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 4866 | if test "x$ac_cv_header_sys_time_h" = x""yes; then : |
| 4867 | $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4868 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4869 | fi |
| 4870 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4871 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4872 | ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 4873 | if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : |
| 4874 | $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4875 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4876 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4877 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 4878 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4879 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| 4880 | if test "x$ac_cv_header_sys_types_h" = x""yes; then : |
| 4881 | $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4882 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4883 | fi |
| 4884 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4885 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4886 | ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" |
| 4887 | if test "x$ac_cv_header_sys_filio_h" = x""yes; then : |
| 4888 | $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4889 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4890 | fi |
| 4891 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4892 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4893 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
| 4894 | if test "x$ac_cv_header_sys_sockio_h" = x""yes; then : |
| 4895 | $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4896 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4897 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4898 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 4899 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4900 | ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
| 4901 | if test "x$ac_cv_header_time_h" = x""yes; then : |
| 4902 | $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4903 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4904 | fi |
| 4905 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4906 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4907 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 4908 | if test "x$ac_cv_header_unistd_h" = x""yes; then : |
| 4909 | $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4910 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4911 | fi |
| 4912 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4913 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4914 | ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default" |
| 4915 | if test "x$ac_cv_header_winsock_h" = x""yes; then : |
| 4916 | $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4917 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4918 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4919 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 4920 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4921 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 4922 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 4923 | $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 4924 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4925 | fi |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4926 | |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 4927 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4928 | 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] | 4929 | # include <winsock2.h> |
| 4930 | #elif PJ_HAS_WINSOCK_H |
| 4931 | # include <winsock.h> |
| 4932 | #endif |
| 4933 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4934 | " |
| 4935 | if test "x$ac_cv_header_mswsock_h" = x""yes; then : |
| 4936 | $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 4937 | |
| 4938 | fi |
| 4939 | |
| 4940 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4941 | ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" |
| 4942 | if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : |
| 4943 | $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 4944 | |
| 4945 | fi |
| 4946 | |
| 4947 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4948 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" |
| 4949 | if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then : |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 4950 | ac_has_uuid_h=1 |
| 4951 | fi |
| 4952 | |
| 4953 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4954 | 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] | 4955 | # include <sys/types.h> |
| 4956 | #endif |
| 4957 | #if PJ_HAS_SYS_SOCKET_H |
| 4958 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 4959 | # include <sys/socket.h> |
| 4960 | #endif |
| 4961 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4962 | " |
| 4963 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
| 4964 | $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 4965 | |
| 4966 | fi |
| 4967 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 4968 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5 |
| 4970 | $as_echo "Setting PJ_OS_NAME to $target" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4971 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4972 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4973 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4974 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4975 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 4977 | $as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; } |
| 4978 | $as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4979 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4980 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 4982 | $as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; } |
| 4983 | $as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 4984 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4985 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 4987 | $as_echo "Setting PJ_HAS_MALLOC to 1" >&6; } |
| 4988 | $as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4989 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4990 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 4992 | $as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; } |
| 4993 | $as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4994 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4995 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 4997 | $as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; } |
| 4998 | $as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4999 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5000 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5 |
| 5002 | $as_echo_n "checking if inet_aton() is available... " >&6; } |
| 5003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5004 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5005 | #include <sys/types.h> |
| 5006 | #include <sys/socket.h> |
| 5007 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5008 | int |
| 5009 | main () |
| 5010 | { |
| 5011 | inet_aton(0, 0); |
| 5012 | ; |
| 5013 | return 0; |
| 5014 | } |
| 5015 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5016 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5017 | $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5018 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5020 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5021 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5023 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5024 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5026 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5 |
| 5028 | $as_echo_n "checking if inet_pton() is available... " >&6; } |
| 5029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5030 | /* end confdefs.h. */ |
| 5031 | #include <sys/types.h> |
| 5032 | #include <sys/socket.h> |
| 5033 | #include <arpa/inet.h> |
| 5034 | int |
| 5035 | main () |
| 5036 | { |
| 5037 | inet_pton(0, 0, 0); |
| 5038 | ; |
| 5039 | return 0; |
| 5040 | } |
| 5041 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5042 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5043 | $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5044 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5046 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5047 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5049 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5050 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5052 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5 |
| 5054 | $as_echo_n "checking if inet_ntop() is available... " >&6; } |
| 5055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5056 | /* end confdefs.h. */ |
| 5057 | #include <sys/types.h> |
| 5058 | #include <sys/socket.h> |
| 5059 | #include <arpa/inet.h> |
| 5060 | int |
| 5061 | main () |
| 5062 | { |
| 5063 | inet_ntop(0, 0, 0, 0); |
| 5064 | ; |
| 5065 | return 0; |
| 5066 | } |
| 5067 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5068 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5069 | $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5070 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5072 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5073 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5075 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5076 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5078 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5 |
| 5080 | $as_echo_n "checking if getaddrinfo() is available... " >&6; } |
| 5081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5082 | /* end confdefs.h. */ |
| 5083 | #include <sys/types.h> |
| 5084 | #include <sys/socket.h> |
| 5085 | #include <netdb.h> |
| 5086 | int |
| 5087 | main () |
| 5088 | { |
| 5089 | getaddrinfo(0, 0, 0, 0); |
| 5090 | ; |
| 5091 | return 0; |
| 5092 | } |
| 5093 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5094 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5095 | $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5096 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5098 | $as_echo "yes" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5099 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5101 | $as_echo "no" >&6; } |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 5102 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5104 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5 |
| 5106 | $as_echo_n "checking if sockaddr_in has sin_len member... " >&6; } |
| 5107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5108 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5109 | #include <sys/types.h> |
| 5110 | #include <sys/socket.h> |
| 5111 | #include <netinet/in.h> |
| 5112 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5113 | int |
| 5114 | main () |
| 5115 | { |
| 5116 | struct sockaddr_in a; a.sin_len=0; |
| 5117 | ; |
| 5118 | return 0; |
| 5119 | } |
| 5120 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5121 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5122 | $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5123 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5125 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5126 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5128 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5129 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5131 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5 |
| 5133 | $as_echo_n "checking if socklen_t is available... " >&6; } |
| 5134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5135 | /* end confdefs.h. */ |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 5136 | #include <sys/types.h> |
| 5137 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5138 | int |
| 5139 | main () |
| 5140 | { |
| 5141 | socklen_t xxx = 0; |
| 5142 | ; |
| 5143 | return 0; |
| 5144 | } |
| 5145 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5146 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5147 | $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5148 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5150 | $as_echo "yes" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5151 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5153 | $as_echo "no" >&6; } |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 5154 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5156 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5 |
| 5158 | $as_echo_n "checking if SO_ERROR is available... " >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5159 | case $target in |
| 5160 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5161 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5162 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5164 | $as_echo "yes" >&6; } |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5165 | ;; |
| 5166 | *) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5168 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5169 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5170 | #include <sys/socket.h> |
| 5171 | #include <netinet/in.h> |
| 5172 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5173 | int |
| 5174 | main () |
| 5175 | { |
| 5176 | int i=SO_ERROR; |
| 5177 | ; |
| 5178 | return 0; |
| 5179 | } |
| 5180 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5181 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5182 | $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5183 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5185 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5186 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5188 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5189 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5191 | ;; |
| 5192 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5193 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5194 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5 |
| 5196 | $as_echo_n "checking if pthread_rwlock_t is available... " >&6; } |
| 5197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5198 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5199 | #include <pthread.h> |
| 5200 | int |
| 5201 | main () |
| 5202 | { |
| 5203 | pthread_rwlock_t *x; |
| 5204 | ; |
| 5205 | return 0; |
| 5206 | } |
| 5207 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5208 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5209 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5210 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5211 | ac_rwmutex="yes" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5213 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5214 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5215 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5216 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5217 | ac_rwmutex="no" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5219 | $as_echo "no" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5220 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5222 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5223 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 5225 | $as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; } |
| 5226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5227 | /* end confdefs.h. */ |
| 5228 | #define _POSIX_READER_WRITER_LOCKS |
| 5229 | #include <pthread.h> |
| 5230 | int |
| 5231 | main () |
| 5232 | { |
| 5233 | pthread_rwlock_t *x; |
| 5234 | ; |
| 5235 | return 0; |
| 5236 | } |
| 5237 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5238 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5239 | $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5240 | |
| 5241 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5243 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5244 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5245 | $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5246 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5248 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5249 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5251 | fi |
| 5252 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5 |
| 5254 | $as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; } |
| 5255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5256 | /* end confdefs.h. */ |
| 5257 | #include <pthread.h> |
| 5258 | int |
| 5259 | main () |
| 5260 | { |
| 5261 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 5262 | ; |
| 5263 | return 0; |
| 5264 | } |
| 5265 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5266 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5267 | $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5268 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5270 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5271 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5273 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5274 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5276 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5 |
| 5278 | $as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; } |
| 5279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5280 | /* end confdefs.h. */ |
| 5281 | #include <pthread.h> |
| 5282 | int |
| 5283 | main () |
| 5284 | { |
| 5285 | pthread_mutexattr_t attr; |
| 5286 | attr.recursive=1; |
| 5287 | ; |
| 5288 | return 0; |
| 5289 | } |
| 5290 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5291 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5292 | $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5293 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5295 | $as_echo "yes" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5296 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5298 | $as_echo "no" >&6; } |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5299 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5301 | |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5302 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5 |
| 5304 | $as_echo_n "checking ioqueue backend... " >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5305 | # Check whether --enable-epoll was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5306 | if test "${enable_epoll+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5307 | enableval=$enable_epoll; |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5308 | ac_os_objs=ioqueue_epoll.o |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5 |
| 5310 | $as_echo "/dev/epoll" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5311 | |
| 5312 | else |
| 5313 | |
| 5314 | ac_os_objs=ioqueue_select.o |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 |
| 5316 | $as_echo "select()" >&6; } |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5317 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5318 | fi |
| 5319 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 5320 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5321 | |
| 5322 | case $target in |
| 5323 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5324 | 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] | 5325 | ;; |
| 5326 | *) |
Benny Prijono | 99eec38 | 2008-09-18 21:22:16 +0000 | [diff] [blame] | 5327 | 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] | 5328 | # UUID |
| 5329 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 5330 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 5331 | else |
| 5332 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 5333 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5334 | ;; |
| 5335 | esac |
| 5336 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5337 | |
| 5338 | |
| 5339 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5340 | ac_external_speex=0 |
| 5341 | |
| 5342 | |
| 5343 | # Check whether --with-external-speex was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5344 | if test "${with_external_speex+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5345 | withval=$with_external_speex; |
| 5346 | if test "x$with_external_speex" != "xno"; then |
| 5347 | # Test Speex installation |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5 |
| 5349 | $as_echo_n "checking if external Speex devkit is installed... " >&6; } |
| 5350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5351 | /* end confdefs.h. */ |
| 5352 | #include <speex/speex.h> |
| 5353 | #include <speex/speex_echo.h> |
| 5354 | |
| 5355 | int |
| 5356 | main () |
| 5357 | { |
| 5358 | speex_echo_state_init(0, 0); speex_encoder_init(0); |
| 5359 | ; |
| 5360 | return 0; |
| 5361 | } |
| 5362 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5363 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5365 | $as_echo "yes!!" >&6; } |
| 5366 | $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5367 | |
| 5368 | ac_external_speex="1" |
| 5369 | |
| 5370 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5371 | 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] | 5372 | fi |
| 5373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5374 | fi |
| 5375 | |
| 5376 | |
| 5377 | fi |
| 5378 | |
| 5379 | |
| 5380 | ac_external_gsm=0 |
| 5381 | |
| 5382 | |
| 5383 | # Check whether --with-external-gsm was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5384 | if test "${with_external_gsm+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5385 | withval=$with_external_gsm; |
| 5386 | if test "x$with_external_gsm" != "xno"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5387 | # Test GSM library installation |
| 5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5 |
| 5389 | $as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; } |
| 5390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5391 | /* end confdefs.h. */ |
| 5392 | #include <gsm/gsm.h> |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5393 | int |
| 5394 | main () |
| 5395 | { |
| 5396 | gsm_create(); |
| 5397 | ; |
| 5398 | return 0; |
| 5399 | } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5400 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5401 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5403 | $as_echo "yes!!" >&6; } |
| 5404 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5405 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5406 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h |
| 5407 | |
| 5408 | ac_external_gsm="1" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5409 | |
| 5410 | else |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5411 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5413 | $as_echo "no" >&6; } |
| 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5 |
| 5415 | $as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; } |
| 5416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5417 | /* end confdefs.h. */ |
| 5418 | #include <gsm.h> |
| 5419 | int |
| 5420 | main () |
| 5421 | { |
| 5422 | gsm_create(); |
| 5423 | ; |
| 5424 | return 0; |
| 5425 | } |
| 5426 | _ACEOF |
| 5427 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5429 | $as_echo "yes!!" >&6; } |
| 5430 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h |
| 5431 | |
| 5432 | $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h |
| 5433 | |
| 5434 | ac_external_gsm="1" |
| 5435 | |
| 5436 | else |
| 5437 | 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 |
| 5438 | |
| 5439 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5440 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5442 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5443 | |
| 5444 | fi |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5446 | fi |
| 5447 | |
| 5448 | |
| 5449 | fi |
| 5450 | |
| 5451 | |
| 5452 | |
| 5453 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 5454 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5455 | # Check whether --enable-sound was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5456 | if test "${enable_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5457 | enableval=$enable_sound; if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5458 | ac_pjmedia_snd=null |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5 |
| 5460 | $as_echo "Checking if sound is disabled... yes" >&6; } |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5461 | fi |
| 5462 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5463 | fi |
| 5464 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5465 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5466 | ac_external_pa=0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5467 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5468 | |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5469 | # Check whether --with-external-pa was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5470 | if test "${with_external_pa+set}" = set; then : |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5471 | withval=$with_external_pa; |
| 5472 | if test "x$with_external_pa" != "xno"; then |
| 5473 | # Test PortAudio installation |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5 |
| 5475 | $as_echo_n "checking if external PortAudio devkit is installed... " >&6; } |
| 5476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5477 | /* end confdefs.h. */ |
| 5478 | #include <portaudio.h> |
| 5479 | |
| 5480 | int |
| 5481 | main () |
| 5482 | { |
| 5483 | Pa_Initialize(); |
| 5484 | ; |
| 5485 | return 0; |
| 5486 | } |
| 5487 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5488 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 |
| 5490 | $as_echo "yes!!" >&6; } |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 5491 | ac_external_pa="1" |
| 5492 | |
| 5493 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5494 | 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] | 5495 | fi |
| 5496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5497 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5498 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5499 | |
| 5500 | fi |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 5501 | |
| 5502 | |
| 5503 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5504 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" |
| 5505 | if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5506 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 5507 | fi |
| 5508 | |
| 5509 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5510 | ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default" |
| 5511 | if test "x$ac_cv_header_linux_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5512 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 5513 | fi |
| 5514 | |
| 5515 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5516 | ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default" |
| 5517 | if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then : |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5518 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 5519 | fi |
| 5520 | |
| 5521 | |
| 5522 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 5523 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 5524 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 5525 | else |
| 5526 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 5527 | fi |
| 5528 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5529 | if test "$enable_sound" = "no"; then |
| 5530 | true; |
| 5531 | else |
| 5532 | case $target in |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 5533 | arm-apple-darwin*) |
| 5534 | LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox" |
Benny Prijono | 2d1f1b6 | 2010-05-17 16:09:12 +0000 | [diff] [blame] | 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5 |
| 5536 | $as_echo "Checking sound device backend... AudioUnit" >&6; } |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 5537 | ;; |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5538 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5539 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 5540 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 5541 | #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] | 5542 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 5543 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5 |
| 5545 | $as_echo "Checking sound device backend... old coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5546 | else |
| 5547 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5 |
| 5549 | $as_echo "Checking sound device backend... coreaudio" >&6; } |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 5550 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 5551 | ;; |
| 5552 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5553 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5 |
| 5555 | $as_echo "Checking sound device backend... win32 sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5556 | ;; |
| 5557 | *rtems*) |
| 5558 | ac_pjmedia_snd=null |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5 |
| 5560 | $as_echo "Checking sound device backend... null sound" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5561 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5562 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5563 | ac_pjmedia_snd=pa_unix |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5564 | ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" |
| 5565 | if test "x$ac_cv_header_alsa_version_h" = x""yes; then : |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5566 | ac_pa_use_alsa=1 |
| 5567 | |
| 5568 | LIBS="$LIBS -lasound" |
| 5569 | |
| 5570 | else |
| 5571 | ac_pa_use_alsa=0 |
| 5572 | |
| 5573 | fi |
| 5574 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5575 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5 |
| 5577 | $as_echo "Checking sound device backend... unix" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5578 | |
| 5579 | ac_pa_use_oss=1 |
| 5580 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5581 | # Check whether --enable-oss was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5582 | if test "${enable_oss+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5583 | enableval=$enable_oss; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5584 | if test "$enable_oss" = "no"; then |
| 5585 | ac_pa_use_oss=0 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5 |
| 5587 | $as_echo "Checking if OSS audio is disabled... yes" >&6; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5588 | fi |
| 5589 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5590 | fi |
| 5591 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5592 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 5593 | esac |
| 5594 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5595 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5596 | # Check whether --enable-ext_sound was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5597 | if test "${enable_ext_sound+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5598 | enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5599 | ac_pjmedia_snd=external |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5 |
| 5601 | $as_echo "Checking if external sound is set... yes" >&6; } |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5602 | fi |
| 5603 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5604 | fi |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 5605 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5606 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5607 | |
| 5608 | # Check whether --enable-small-filter was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5609 | if test "${enable_small_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5610 | enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5611 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5 |
| 5613 | $as_echo "Checking if small filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5614 | fi |
| 5615 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5 |
| 5617 | $as_echo "Checking if small filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5618 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5619 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5620 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5621 | |
| 5622 | # Check whether --enable-large-filter was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5623 | if test "${enable_large_filter+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5624 | enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5625 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5 |
| 5627 | $as_echo "Checking if large filter is disabled... yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5628 | fi |
| 5629 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5 |
| 5631 | $as_echo "Checking if large filter is disabled... no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5632 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5633 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5634 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5635 | |
| 5636 | # Check whether --enable-speex-aec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5637 | if test "${enable_speex_aec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5638 | enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5639 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5 |
| 5641 | $as_echo "Checking if Speex AEC is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5642 | fi |
| 5643 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5 |
| 5645 | $as_echo "Checking if Speex AEC is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5646 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5647 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5648 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5649 | |
| 5650 | # Check whether --enable-g711-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5651 | if test "${enable_g711_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5652 | enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5653 | ac_no_g711_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5654 | $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5655 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5 |
| 5657 | $as_echo "Checking if G.711 codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5658 | fi |
| 5659 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5 |
| 5661 | $as_echo "Checking if G.711 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5662 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5663 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5664 | |
| 5665 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5666 | |
| 5667 | # Check whether --enable-l16-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5668 | if test "${enable_l16_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5669 | enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5670 | ac_no_l16_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5671 | $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5672 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5 |
| 5674 | $as_echo "Checking if L16 codecs are disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5675 | fi |
| 5676 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5 |
| 5678 | $as_echo "Checking if L16 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5679 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5680 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5681 | |
| 5682 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5683 | |
| 5684 | # Check whether --enable-gsm-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5685 | if test "${enable_gsm_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5686 | enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5687 | ac_no_gsm_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5688 | $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5689 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5 |
| 5691 | $as_echo "Checking if GSM codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5692 | fi |
| 5693 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5 |
| 5695 | $as_echo "Checking if GSM codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5696 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5697 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5698 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5699 | |
| 5700 | # Check whether --enable-g722-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5701 | if test "${enable_g722_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5702 | enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5703 | ac_no_g722_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5704 | $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5705 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5 |
| 5707 | $as_echo "Checking if G.722 codec is disabled...yes" >&6; } |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5708 | fi |
| 5709 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5 |
| 5711 | $as_echo "Checking if G.722 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5712 | fi |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 5713 | |
| 5714 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5715 | |
| 5716 | # Check whether --enable-g7221-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5717 | if test "${enable_g7221_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5718 | enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then |
| 5719 | ac_no_g7221_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5720 | $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5721 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5 |
| 5723 | $as_echo "Checking if G.722.1 codec is disabled...yes" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5724 | fi |
| 5725 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5 |
| 5727 | $as_echo "Checking if G.722.1 codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5728 | fi |
| 5729 | |
| 5730 | |
| 5731 | |
| 5732 | # Check whether --enable-speex-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5733 | if test "${enable_speex_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5734 | enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5735 | ac_no_speex_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5736 | $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5737 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5 |
| 5739 | $as_echo "Checking if Speex codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5740 | fi |
| 5741 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5 |
| 5743 | $as_echo "Checking if Speex codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5744 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5745 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5746 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5747 | |
| 5748 | # Check whether --enable-ilbc-codec was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5749 | if test "${enable_ilbc_codec+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5750 | enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5751 | ac_no_ilbc_codec=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5752 | $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 5753 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5 |
| 5755 | $as_echo "Checking if iLBC codec is disabled...yes" >&6; } |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5756 | fi |
| 5757 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5 |
| 5759 | $as_echo "Checking if iLBC codec is disabled...no" >&6; } |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5760 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 5761 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5762 | |
| 5763 | # Check whether --enable-libsamplerate was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5764 | if test "${enable_libsamplerate+set}" = set; then : |
| 5765 | enableval=$enable_libsamplerate; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5 |
| 5766 | $as_echo_n "checking for src_new in -lsamplerate... " >&6; } |
| 5767 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then : |
| 5768 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5769 | else |
| 5770 | ac_check_lib_save_LIBS=$LIBS |
| 5771 | LIBS="-lsamplerate $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5773 | /* end confdefs.h. */ |
| 5774 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5775 | /* Override any GCC internal prototype to avoid an error. |
| 5776 | Use char because int might match the return type of a GCC |
| 5777 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5778 | #ifdef __cplusplus |
| 5779 | extern "C" |
| 5780 | #endif |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5781 | char src_new (); |
| 5782 | int |
| 5783 | main () |
| 5784 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5785 | return src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5786 | ; |
| 5787 | return 0; |
| 5788 | } |
| 5789 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5790 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5791 | ac_cv_lib_samplerate_src_new=yes |
| 5792 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5793 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5794 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5795 | rm -f core conftest.err conftest.$ac_objext \ |
| 5796 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5797 | LIBS=$ac_check_lib_save_LIBS |
| 5798 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 5800 | $as_echo "$ac_cv_lib_samplerate_src_new" >&6; } |
| 5801 | if test "x$ac_cv_lib_samplerate_src_new" = x""yes; then : |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5802 | cat >>confdefs.h <<_ACEOF |
| 5803 | #define HAVE_LIBSAMPLERATE 1 |
| 5804 | _ACEOF |
| 5805 | |
| 5806 | LIBS="-lsamplerate $LIBS" |
| 5807 | |
| 5808 | fi |
| 5809 | |
| 5810 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5 |
| 5812 | $as_echo "Skipping libsamplerate detection" >&6; } |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 5813 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5814 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5815 | |
| 5816 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5817 | |
| 5818 | # Check whether --enable-ipp was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5819 | if test "${enable_ipp+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5820 | enableval=$enable_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5821 | else |
| 5822 | enable_ipp=no |
| 5823 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5824 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5825 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5826 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5827 | |
| 5828 | # Check whether --with-ipp was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5829 | if test "${with_ipp+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5830 | withval=$with_ipp; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5831 | else |
| 5832 | with_ipp=no |
| 5833 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5834 | fi |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5835 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5836 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5837 | |
| 5838 | # Check whether --with-ipp-samples was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5839 | if test "${with_ipp_samples+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5840 | withval=$with_ipp_samples; |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5841 | else |
| 5842 | with_ipp_samples=no |
| 5843 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 5844 | fi |
| 5845 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5846 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5847 | |
| 5848 | # Check whether --with-ipp-arch was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5849 | if test "${with_ipp_arch+set}" = set; then : |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5850 | withval=$with_ipp_arch; |
| 5851 | else |
| 5852 | with_ipp_arch=no |
| 5853 | |
| 5854 | fi |
| 5855 | |
| 5856 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5857 | if test "x$enable_ipp" != "xno"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5 |
| 5859 | $as_echo_n "checking Intel IPP location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5860 | |
| 5861 | if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5 |
| 5863 | $as_echo "$with_ipp" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5864 | IPPROOT=$with_ipp |
| 5865 | elif test "x$IPPROOT" = "x"; then |
| 5866 | if test -d /opt/intel/ipp; then |
| 5867 | IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1` |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5 |
| 5869 | $as_echo "autodetected in $IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5870 | fi |
| 5871 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5 |
| 5873 | $as_echo "$IPPROOT" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5874 | fi |
| 5875 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5876 | if test "x$with_ipp_arch" != "xno"; then |
Benny Prijono | 896be29 | 2010-08-17 12:16:46 +0000 | [diff] [blame^] | 5877 | IPP_SUFFIX=$with_ipp_arch |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 |
| 5879 | $as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5880 | else |
| 5881 | IPP_SUFFIX="" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5 |
| 5883 | $as_echo "IPP arch suffix is set to empty" >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5884 | fi |
| 5885 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5886 | if test x$IPPROOT = x; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5887 | 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] | 5888 | elif test ! -d $IPPROOT; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5889 | as_fn_error "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5890 | elif test ! -d $IPPROOT/include; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5891 | as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5892 | else |
| 5893 | # IPP directory looks okay. |
| 5894 | # Remove trailing backslash |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5895 | IPPROOT=`echo $IPPROOT | sed 's/\/$//'` |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5896 | |
| 5897 | SAVED_CFLAGS="$CFLAGS" |
| 5898 | SAVED_LDFLAGS="$LDFLAGS" |
| 5899 | SAVED_LIBS="$LIBS" |
| 5900 | |
| 5901 | IPP_CFLAGS="-I$IPPROOT/include" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5902 | IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" |
| 5903 | |
| 5904 | # Some differences between Mac OS X and Linux |
| 5905 | case $target in |
| 5906 | *darwin* ) |
| 5907 | IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib" |
| 5908 | ;; |
| 5909 | *) |
| 5910 | IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
| 5911 | IPP_LIBS="$IPP_LIBS -lguide" |
| 5912 | ;; |
| 5913 | esac |
| 5914 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5915 | #IPP_LDFLAGS="-L$IPPROOT/sharedlib" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5916 | #Static: |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5917 | #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" |
| 5918 | |
| 5919 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 5920 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 5921 | LIBS="$IPP_LIBS $LIBS" |
| 5922 | |
| 5923 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5 |
| 5925 | $as_echo_n "checking Intel IPP usability... " >&6; } |
| 5926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5927 | /* end confdefs.h. */ |
| 5928 | #include <ippcore.h> |
| 5929 | |
| 5930 | int |
| 5931 | main () |
| 5932 | { |
| 5933 | ippStaticInit(); |
| 5934 | ; |
| 5935 | return 0; |
| 5936 | } |
| 5937 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5938 | if ac_fn_c_try_link "$LINENO"; then : |
| 5939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 5940 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5941 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5942 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5943 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5944 | { as_fn_set_status run with --help for more info |
| 5945 | as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly |
| 5946 | See \`config.log' for more details." "$LINENO" 5; }; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5947 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5948 | rm -f core conftest.err conftest.$ac_objext \ |
| 5949 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5950 | |
| 5951 | CFLAGS="$SAVED_CFLAGS" |
| 5952 | LDFLAGS="$SAVED_LDFLAGS" |
| 5953 | LIBS="$SAVED_LIBS" |
| 5954 | fi |
| 5955 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5 |
| 5957 | $as_echo_n "checking Intel IPP samples location... " >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5958 | |
| 5959 | if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5 |
| 5961 | $as_echo "$with_ipp_samples" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5962 | IPPSAMPLES=$with_ipp_samples |
| 5963 | elif test "x$IPPSAMPLES" = "x"; then |
| 5964 | if test -d /opt/intel/ipp-samples; then |
| 5965 | IPPSAMPLES=/opt/intel/ipp-samples |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5 |
| 5967 | $as_echo "autodetected in $IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5968 | fi |
| 5969 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5 |
| 5971 | $as_echo "$IPPSAMPLES" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5972 | fi |
| 5973 | |
| 5974 | if test x$IPPSAMPLES = x; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5975 | 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] | 5976 | elif test ! -d $IPPSAMPLES; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5977 | as_fn_error "not found" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5978 | elif test ! -d $IPPSAMPLES/speech-codecs; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5979 | as_fn_error "directory doesn't seem to be valid" "$LINENO" 5 |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 5980 | else |
| 5981 | # Remove trailing backslash |
| 5982 | IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` |
| 5983 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5984 | # Guess the libusc.a/libspeech.a build location |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5 |
| 5986 | $as_echo_n "checking Intel IPP USC build location... " >&6; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 5987 | if test -d $IPPSAMPLES/speech-codecs/bin; then |
| 5988 | IPPVER=5 |
| 5989 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` |
| 5990 | elif test -d $IPPSAMPLES/speech-codecs/_bin; then |
| 5991 | IPPVER=6 |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 5992 | if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then |
| 5993 | # gcc compiler |
| 5994 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` |
| 5995 | elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then |
| 5996 | # icc compiler |
| 5997 | IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` |
| 5998 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 5999 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6000 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6001 | as_fn_error "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? |
| 6002 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6003 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6004 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6005 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6006 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6007 | 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? |
| 6008 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6009 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6010 | |
| 6011 | # Test the directory |
| 6012 | if test ! -d $IPPSAMP_DIR; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6013 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6014 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6015 | as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist |
| 6016 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6017 | exit 1; |
| 6018 | fi |
| 6019 | |
| 6020 | if test "x$IPPVER" = "x5"; then |
| 6021 | IPPSAMP_LIBS="libusc.a" |
| 6022 | IPPSAMP_LDLIBS="-lusc" |
| 6023 | elif test "x$IPPVER" = "x6"; then |
| 6024 | IPPSAMP_LIBS="libspeech.a" |
| 6025 | IPPSAMP_LDLIBS="-lspeech" |
| 6026 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6027 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6028 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6029 | as_fn_error "bug in this script: unsupported IPP version |
| 6030 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6031 | fi |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6032 | |
| 6033 | if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6034 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6035 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6036 | as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR |
| 6037 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6038 | fi |
| 6039 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5 |
| 6041 | $as_echo "$IPPSAMP_DIR" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6042 | |
| 6043 | SAVED_CFLAGS="$CFLAGS" |
| 6044 | SAVED_LDFLAGS="$LDFLAGS" |
| 6045 | SAVED_LIBS="$LIBS" |
| 6046 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6047 | IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include" |
| 6048 | CFLAGS="$CFLAGS $IPPSAMP_INC" |
| 6049 | LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR" |
| 6050 | LIBS="$IPPSAMP_LDLIBS $LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6051 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5 |
| 6053 | $as_echo_n "checking Intel IPP USC usability... " >&6; } |
| 6054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6055 | /* end confdefs.h. */ |
| 6056 | #include <usc.h> |
| 6057 | |
| 6058 | int |
| 6059 | main () |
| 6060 | { |
| 6061 | extern USC_Fxns USC_G729AFP_Fxns; |
| 6062 | ; |
| 6063 | return 0; |
| 6064 | } |
| 6065 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6066 | if ac_fn_c_try_link "$LINENO"; then : |
| 6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6068 | $as_echo "ok" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6069 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6070 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6071 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6072 | as_fn_error "failed |
| 6073 | See \`config.log' for more details." "$LINENO" 5; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6074 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6075 | rm -f core conftest.err conftest.$ac_objext \ |
| 6076 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6077 | |
| 6078 | CFLAGS="$SAVED_CFLAGS" |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6079 | LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS" |
| 6080 | LIBS="$IPP_LIBS $SAVED_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6081 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6082 | IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC" |
| 6083 | IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR" |
| 6084 | IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS" |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6085 | fi |
| 6086 | |
Benny Prijono | 3965f19 | 2010-02-10 18:46:05 +0000 | [diff] [blame] | 6087 | CFLAGS="$CFLAGS $IPP_CFLAGS" |
| 6088 | LDFLAGS="$LDFLAGS $IPP_LDFLAGS" |
| 6089 | LIBS="$LIBS $IPP_LIBS" |
| 6090 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6091 | ac_build_mak_vars="$ac_build_mak_vars\n\ |
| 6092 | export IPP_CFLAGS=$IPP_CFLAGS\n\ |
| 6093 | export IPP_LDFLAGS=$IPP_LDFLAGS\n\ |
| 6094 | export IPP_LIBS=$IPP_LIBS" |
| 6095 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5 |
| 6097 | $as_echo "Skipping Intel IPP settings (not wanted)" >&6; } |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6098 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6099 | |
| 6100 | |
| 6101 | |
| 6102 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6103 | # Check whether --enable-ssl was given. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6104 | if test "${enable_ssl+set}" = set; then : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6105 | enableval=$enable_ssl; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6106 | if test "$enable_ssl" = "no"; then |
| 6107 | ac_no_ssl=1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5 |
| 6109 | $as_echo "Checking if SSL support is disabled... yes" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6110 | fi |
| 6111 | |
| 6112 | else |
| 6113 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5 |
| 6115 | $as_echo "checking for OpenSSL installations.." >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6116 | |
| 6117 | |
| 6118 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6119 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" |
| 6120 | if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6121 | openssl_h_present=1 |
| 6122 | fi |
| 6123 | |
| 6124 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 6126 | $as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; } |
| 6127 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then : |
| 6128 | $as_echo_n "(cached) " >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6129 | else |
| 6130 | ac_check_lib_save_LIBS=$LIBS |
| 6131 | LIBS="-lcrypto $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6133 | /* end confdefs.h. */ |
| 6134 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6135 | /* Override any GCC internal prototype to avoid an error. |
| 6136 | Use char because int might match the return type of a GCC |
| 6137 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6138 | #ifdef __cplusplus |
| 6139 | extern "C" |
| 6140 | #endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6141 | char ERR_load_BIO_strings (); |
| 6142 | int |
| 6143 | main () |
| 6144 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6145 | return ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6146 | ; |
| 6147 | return 0; |
| 6148 | } |
| 6149 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6150 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6151 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 6152 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6153 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6154 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6155 | rm -f core conftest.err conftest.$ac_objext \ |
| 6156 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6157 | LIBS=$ac_check_lib_save_LIBS |
| 6158 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 6160 | $as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; } |
| 6161 | 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] | 6162 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 6163 | fi |
| 6164 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 |
| 6166 | $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } |
| 6167 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then : |
| 6168 | $as_echo_n "(cached) " >&6 |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6169 | else |
| 6170 | ac_check_lib_save_LIBS=$LIBS |
| 6171 | LIBS="-lssl $LIBS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6173 | /* end confdefs.h. */ |
| 6174 | |
| 6175 | /* Override any GCC internal prototype to avoid an error. |
| 6176 | Use char because int might match the return type of a GCC |
| 6177 | builtin and then its argument prototype would still apply. */ |
| 6178 | #ifdef __cplusplus |
| 6179 | extern "C" |
| 6180 | #endif |
| 6181 | char SSL_library_init (); |
| 6182 | int |
| 6183 | main () |
| 6184 | { |
| 6185 | return SSL_library_init (); |
| 6186 | ; |
| 6187 | return 0; |
| 6188 | } |
| 6189 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6190 | if ac_fn_c_try_link "$LINENO"; then : |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6191 | ac_cv_lib_ssl_SSL_library_init=yes |
| 6192 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6193 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6194 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6195 | rm -f core conftest.err conftest.$ac_objext \ |
| 6196 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6197 | LIBS=$ac_check_lib_save_LIBS |
| 6198 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 6200 | $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } |
| 6201 | 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] | 6202 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 6203 | fi |
| 6204 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6205 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5 |
| 6207 | $as_echo "OpenSSL library found, SSL support enabled" >&6; } |
Nanang Izzuddin | 9c7616f | 2009-10-28 06:09:15 +0000 | [diff] [blame] | 6208 | # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK |
| 6209 | #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6210 | $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h |
Nanang Izzuddin | ea6d3c4 | 2009-10-26 15:47:52 +0000 | [diff] [blame] | 6211 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6212 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 6214 | $as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6215 | fi |
| 6216 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6217 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6218 | |
| 6219 | |
| 6220 | |
| 6221 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6222 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5 |
| 6224 | $as_echo_n "checking if select() needs correct nfds... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6225 | case $target in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6226 | *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6227 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6229 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6230 | ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6231 | *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6232 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6234 | $as_echo "no (default)" >&6; } |
| 6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 6236 | $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] | 6237 | ;; |
| 6238 | esac |
| 6239 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5 |
| 6241 | $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] | 6242 | case $target in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6243 | *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6244 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6246 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6247 | ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6248 | *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6249 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6251 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6252 | ;; |
| 6253 | esac |
| 6254 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5 |
| 6256 | $as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6257 | case $target in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6258 | *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6259 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6261 | $as_echo "yes" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6262 | ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6263 | *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6264 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 6266 | $as_echo "no (default)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6267 | ;; |
| 6268 | esac |
| 6269 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6270 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6271 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6272 | $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6273 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6274 | ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6275 | *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6276 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 6278 | $as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6279 | ;; |
| 6280 | esac |
| 6281 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6282 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6283 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6284 | $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6285 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6286 | ;; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6287 | *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6288 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 6290 | $as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6291 | ;; |
| 6292 | esac |
| 6293 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6294 | |
| 6295 | |
| 6296 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6297 | if test "$build" = "$host"; then |
| 6298 | ac_cross_compile= |
| 6299 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 6300 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6301 | fi |
| 6302 | ac_linux_poll=select |
| 6303 | |
| 6304 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6305 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6306 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6307 | case $target in |
| 6308 | *rtems*) |
| 6309 | ac_main_obj=main_rtems.o |
| 6310 | ;; |
| 6311 | *) |
| 6312 | ac_main_obj=main.o |
| 6313 | ;; |
| 6314 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6315 | |
Benny Prijono | 0822c19 | 2008-08-21 20:59:58 +0000 | [diff] [blame] | 6316 | |
| 6317 | 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] | 6318 | cat >confcache <<\_ACEOF |
| 6319 | # This file is a shell script that caches the results of configure |
| 6320 | # tests run on this system so they can be shared between configure |
| 6321 | # scripts and configure runs, see configure's option --config-cache. |
| 6322 | # It is not useful on other systems. If it contains results you don't |
| 6323 | # want to keep, you may remove or edit it. |
| 6324 | # |
| 6325 | # config.status only pays attention to the cache file if you give it |
| 6326 | # the --recheck option to rerun configure. |
| 6327 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6328 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6329 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 6330 | # following values. |
| 6331 | |
| 6332 | _ACEOF |
| 6333 | |
| 6334 | # The following way of writing the cache mishandles newlines in values, |
| 6335 | # but we know of no workaround that is simple, portable, and efficient. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6336 | # So, we kill variables containing newlines. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6337 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6338 | # 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] | 6339 | ( |
| 6340 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 6341 | eval ac_val=\$$ac_var |
| 6342 | case $ac_val in #( |
| 6343 | *${as_nl}*) |
| 6344 | case $ac_var in #( |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6345 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 6346 | $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] | 6347 | esac |
| 6348 | case $ac_var in #( |
| 6349 | _ | IFS | as_nl) ;; #( |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6350 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 6351 | *) { eval $ac_var=; unset $ac_var;} ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6352 | esac ;; |
| 6353 | esac |
| 6354 | done |
| 6355 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6356 | (set) 2>&1 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6357 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 6358 | *${as_nl}ac_space=\ *) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6359 | # `set' does not quote correctly, so add quotes: double-quote |
| 6360 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6361 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6362 | "s/'/'\\\\''/g; |
| 6363 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6364 | ;; #( |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6365 | *) |
| 6366 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6367 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6368 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6369 | esac | |
| 6370 | sort |
| 6371 | ) | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6372 | sed ' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6373 | /^ac_cv_env_/b end |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6374 | t clear |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6375 | :clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6376 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6377 | t end |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6378 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6379 | :end' >>confcache |
| 6380 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 6381 | if test -w "$cache_file"; then |
| 6382 | test "x$cache_file" != "x/dev/null" && |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6383 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 6384 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6385 | cat confcache >$cache_file |
| 6386 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 6388 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6389 | fi |
| 6390 | fi |
| 6391 | rm -f confcache |
| 6392 | |
| 6393 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6394 | # Let make expand exec_prefix. |
| 6395 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6396 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6397 | DEFS=-DHAVE_CONFIG_H |
| 6398 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6399 | ac_libobjs= |
| 6400 | ac_ltlibobjs= |
| 6401 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 6402 | # 1. Remove the extension, and $U if already installed. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6403 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6404 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6405 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 6406 | # will be set to the directory where LIBOBJS objects are built. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6407 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 6408 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6409 | done |
| 6410 | LIBOBJS=$ac_libobjs |
| 6411 | |
| 6412 | LTLIBOBJS=$ac_ltlibobjs |
| 6413 | |
| 6414 | |
| 6415 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6416 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6417 | : ${CONFIG_STATUS=./config.status} |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6418 | ac_write_fail=0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6419 | ac_clean_files_save=$ac_clean_files |
| 6420 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6421 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 6422 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6423 | as_write_fail=0 |
| 6424 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6425 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6426 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6427 | # Run this file to recreate the current configuration. |
| 6428 | # Compiler output produced by configure, useful for debugging |
| 6429 | # configure, is in config.log if it exists. |
| 6430 | |
| 6431 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6432 | ac_cs_recheck=false |
| 6433 | ac_cs_silent=false |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 6434 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6435 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 6436 | export SHELL |
| 6437 | _ASEOF |
| 6438 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 6439 | ## -------------------- ## |
| 6440 | ## M4sh Initialization. ## |
| 6441 | ## -------------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6442 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6443 | # Be more Bourne compatible |
| 6444 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6445 | 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] | 6446 | emulate sh |
| 6447 | NULLCMD=: |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6448 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6449 | # is contrary to our usage. Disable this feature. |
| 6450 | alias -g '${1+"$@"}'='"$@"' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6451 | setopt NO_GLOB_SUBST |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6452 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6453 | case `(set -o) 2>/dev/null` in #( |
| 6454 | *posix*) : |
| 6455 | set -o posix ;; #( |
| 6456 | *) : |
| 6457 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6458 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6459 | fi |
| 6460 | |
| 6461 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6462 | as_nl=' |
| 6463 | ' |
| 6464 | export as_nl |
| 6465 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 6466 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6467 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6468 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 6469 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 6470 | # but without wasting forks for bash or zsh. |
| 6471 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 6472 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6473 | as_echo='print -r --' |
| 6474 | as_echo_n='print -rn --' |
| 6475 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 6476 | as_echo='printf %s\n' |
| 6477 | as_echo_n='printf %s' |
| 6478 | else |
| 6479 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 6480 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 6481 | as_echo_n='/usr/ucb/echo -n' |
| 6482 | else |
| 6483 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 6484 | as_echo_n_body='eval |
| 6485 | arg=$1; |
| 6486 | case $arg in #( |
| 6487 | *"$as_nl"*) |
| 6488 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 6489 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 6490 | esac; |
| 6491 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 6492 | ' |
| 6493 | export as_echo_n_body |
| 6494 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 6495 | fi |
| 6496 | export as_echo_body |
| 6497 | as_echo='sh -c $as_echo_body as_echo' |
| 6498 | fi |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 6499 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6500 | # The user is always right. |
| 6501 | if test "${PATH_SEPARATOR+set}" != set; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6502 | PATH_SEPARATOR=: |
| 6503 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 6504 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 6505 | PATH_SEPARATOR=';' |
| 6506 | } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6507 | fi |
| 6508 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6509 | |
| 6510 | # IFS |
| 6511 | # We need space, tab and new line, in precisely that order. Quoting is |
| 6512 | # there to prevent editors from complaining about space-tab. |
| 6513 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 6514 | # splitting by setting IFS to empty value.) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6515 | IFS=" "" $as_nl" |
| 6516 | |
| 6517 | # Find who we are. Look in the path if we contain no directory separator. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6518 | case $0 in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6519 | *[\\/]* ) as_myself=$0 ;; |
| 6520 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6521 | for as_dir in $PATH |
| 6522 | do |
| 6523 | IFS=$as_save_IFS |
| 6524 | test -z "$as_dir" && as_dir=. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6525 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 6526 | done |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6527 | IFS=$as_save_IFS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6528 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6529 | ;; |
| 6530 | esac |
| 6531 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 6532 | # in which case we are not to be found in the path. |
| 6533 | if test "x$as_myself" = x; then |
| 6534 | as_myself=$0 |
| 6535 | fi |
| 6536 | if test ! -f "$as_myself"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6537 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 6538 | exit 1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6539 | fi |
| 6540 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6541 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 6542 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 6543 | # suppresses any "Segmentation fault" message there. '((' could |
| 6544 | # trigger a bug in pdksh 5.2.14. |
| 6545 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 6546 | do eval test x\${$as_var+set} = xset \ |
| 6547 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6548 | done |
| 6549 | PS1='$ ' |
| 6550 | PS2='> ' |
| 6551 | PS4='+ ' |
| 6552 | |
| 6553 | # NLS nuisances. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6554 | LC_ALL=C |
| 6555 | export LC_ALL |
| 6556 | LANGUAGE=C |
| 6557 | export LANGUAGE |
Benny Prijono | fe0c127 | 2010-01-13 16:28:15 +0000 | [diff] [blame] | 6558 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6559 | # CDPATH. |
| 6560 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 6561 | |
| 6562 | |
| 6563 | # as_fn_error ERROR [LINENO LOG_FD] |
| 6564 | # --------------------------------- |
| 6565 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 6566 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 6567 | # script with status $?, using 1 if that was 0. |
| 6568 | as_fn_error () |
| 6569 | { |
| 6570 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 6571 | if test "$3"; then |
| 6572 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 6573 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 6574 | fi |
| 6575 | $as_echo "$as_me: error: $1" >&2 |
| 6576 | as_fn_exit $as_status |
| 6577 | } # as_fn_error |
| 6578 | |
| 6579 | |
| 6580 | # as_fn_set_status STATUS |
| 6581 | # ----------------------- |
| 6582 | # Set $? to STATUS, without forking. |
| 6583 | as_fn_set_status () |
| 6584 | { |
| 6585 | return $1 |
| 6586 | } # as_fn_set_status |
| 6587 | |
| 6588 | # as_fn_exit STATUS |
| 6589 | # ----------------- |
| 6590 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 6591 | as_fn_exit () |
| 6592 | { |
| 6593 | set +e |
| 6594 | as_fn_set_status $1 |
| 6595 | exit $1 |
| 6596 | } # as_fn_exit |
| 6597 | |
| 6598 | # as_fn_unset VAR |
| 6599 | # --------------- |
| 6600 | # Portably unset VAR. |
| 6601 | as_fn_unset () |
| 6602 | { |
| 6603 | { eval $1=; unset $1;} |
| 6604 | } |
| 6605 | as_unset=as_fn_unset |
| 6606 | # as_fn_append VAR VALUE |
| 6607 | # ---------------------- |
| 6608 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 6609 | # advantage of any shell optimizations that allow amortized linear growth over |
| 6610 | # repeated appends, instead of the typical quadratic growth present in naive |
| 6611 | # implementations. |
| 6612 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 6613 | eval 'as_fn_append () |
| 6614 | { |
| 6615 | eval $1+=\$2 |
| 6616 | }' |
| 6617 | else |
| 6618 | as_fn_append () |
| 6619 | { |
| 6620 | eval $1=\$$1\$2 |
| 6621 | } |
| 6622 | fi # as_fn_append |
| 6623 | |
| 6624 | # as_fn_arith ARG... |
| 6625 | # ------------------ |
| 6626 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 6627 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 6628 | # must be portable across $(()) and expr. |
| 6629 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 6630 | eval 'as_fn_arith () |
| 6631 | { |
| 6632 | as_val=$(( $* )) |
| 6633 | }' |
| 6634 | else |
| 6635 | as_fn_arith () |
| 6636 | { |
| 6637 | as_val=`expr "$@" || test $? -eq 1` |
| 6638 | } |
| 6639 | fi # as_fn_arith |
| 6640 | |
| 6641 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6642 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 6643 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 6644 | as_expr=expr |
| 6645 | else |
| 6646 | as_expr=false |
| 6647 | fi |
| 6648 | |
| 6649 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 6650 | as_basename=basename |
| 6651 | else |
| 6652 | as_basename=false |
| 6653 | fi |
| 6654 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6655 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 6656 | as_dirname=dirname |
| 6657 | else |
| 6658 | as_dirname=false |
| 6659 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6660 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6661 | as_me=`$as_basename -- "$0" || |
| 6662 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 6663 | X"$0" : 'X\(//\)$' \| \ |
| 6664 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6665 | $as_echo X/"$0" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6666 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 6667 | s//\1/ |
| 6668 | q |
| 6669 | } |
| 6670 | /^X\/\(\/\/\)$/{ |
| 6671 | s//\1/ |
| 6672 | q |
| 6673 | } |
| 6674 | /^X\/\(\/\).*/{ |
| 6675 | s//\1/ |
| 6676 | q |
| 6677 | } |
| 6678 | s/.*/./; q'` |
| 6679 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6680 | # Avoid depending upon Character Ranges. |
| 6681 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 6682 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 6683 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 6684 | as_cr_digits='0123456789' |
| 6685 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6686 | |
| 6687 | ECHO_C= ECHO_N= ECHO_T= |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6688 | case `echo -n x` in #((((( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6689 | -n*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6690 | case `echo 'xy\c'` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6691 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6692 | xy) ECHO_C='\c';; |
| 6693 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 6694 | ECHO_T=' ';; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6695 | esac;; |
| 6696 | *) |
| 6697 | ECHO_N='-n';; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6698 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6699 | |
| 6700 | rm -f conf$$ conf$$.exe conf$$.file |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6701 | if test -d conf$$.dir; then |
| 6702 | rm -f conf$$.dir/conf$$.file |
| 6703 | else |
| 6704 | rm -f conf$$.dir |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6705 | mkdir conf$$.dir 2>/dev/null |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6706 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6707 | if (echo >conf$$.file) 2>/dev/null; then |
| 6708 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 6709 | as_ln_s='ln -s' |
| 6710 | # ... but there are two gotchas: |
| 6711 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 6712 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 6713 | # In both cases, we have to default to `cp -p'. |
| 6714 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 6715 | as_ln_s='cp -p' |
| 6716 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 6717 | as_ln_s=ln |
| 6718 | else |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6719 | as_ln_s='cp -p' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6720 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6721 | else |
| 6722 | as_ln_s='cp -p' |
| 6723 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6724 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 6725 | rmdir conf$$.dir 2>/dev/null |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6726 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6727 | |
| 6728 | # as_fn_mkdir_p |
| 6729 | # ------------- |
| 6730 | # Create "$as_dir" as a directory, including parents if necessary. |
| 6731 | as_fn_mkdir_p () |
| 6732 | { |
| 6733 | |
| 6734 | case $as_dir in #( |
| 6735 | -*) as_dir=./$as_dir;; |
| 6736 | esac |
| 6737 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 6738 | as_dirs= |
| 6739 | while :; do |
| 6740 | case $as_dir in #( |
| 6741 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 6742 | *) as_qdir=$as_dir;; |
| 6743 | esac |
| 6744 | as_dirs="'$as_qdir' $as_dirs" |
| 6745 | as_dir=`$as_dirname -- "$as_dir" || |
| 6746 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6747 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6748 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6749 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 6750 | $as_echo X"$as_dir" | |
| 6751 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6752 | s//\1/ |
| 6753 | q |
| 6754 | } |
| 6755 | /^X\(\/\/\)[^/].*/{ |
| 6756 | s//\1/ |
| 6757 | q |
| 6758 | } |
| 6759 | /^X\(\/\/\)$/{ |
| 6760 | s//\1/ |
| 6761 | q |
| 6762 | } |
| 6763 | /^X\(\/\).*/{ |
| 6764 | s//\1/ |
| 6765 | q |
| 6766 | } |
| 6767 | s/.*/./; q'` |
| 6768 | test -d "$as_dir" && break |
| 6769 | done |
| 6770 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 6771 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 6772 | |
| 6773 | |
| 6774 | } # as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6775 | if mkdir -p . 2>/dev/null; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6776 | as_mkdir_p='mkdir -p "$as_dir"' |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 6777 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6778 | test -d ./-p && rmdir ./-p |
| 6779 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 6780 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6781 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6782 | if test -x / >/dev/null 2>&1; then |
| 6783 | as_test_x='test -x' |
| 6784 | else |
| 6785 | if ls -dL / >/dev/null 2>&1; then |
| 6786 | as_ls_L_option=L |
| 6787 | else |
| 6788 | as_ls_L_option= |
| 6789 | fi |
| 6790 | as_test_x=' |
| 6791 | eval sh -c '\'' |
| 6792 | if test -d "$1"; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6793 | test -d "$1/."; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6794 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6795 | case $1 in #( |
| 6796 | -*)set "./$1";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6797 | esac; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6798 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6799 | ???[sx]*):;;*)false;;esac;fi |
| 6800 | '\'' sh |
| 6801 | ' |
| 6802 | fi |
| 6803 | as_executable_p=$as_test_x |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6804 | |
| 6805 | # Sed expression to map a string onto a valid CPP name. |
| 6806 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 6807 | |
| 6808 | # Sed expression to map a string onto a valid variable name. |
| 6809 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 6810 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6811 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6812 | exec 6>&1 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6813 | ## ----------------------------------- ## |
| 6814 | ## Main body of $CONFIG_STATUS script. ## |
| 6815 | ## ----------------------------------- ## |
| 6816 | _ASEOF |
| 6817 | 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] | 6818 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6819 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6820 | # 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] | 6821 | # report actual input values of CONFIG_FILES etc. instead of their |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6822 | # values after options handling. |
| 6823 | ac_log=" |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 6824 | This file was extended by pjproject $as_me 1.x, which was |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 6825 | generated by GNU Autoconf 2.65. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6826 | |
| 6827 | CONFIG_FILES = $CONFIG_FILES |
| 6828 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 6829 | CONFIG_LINKS = $CONFIG_LINKS |
| 6830 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6831 | $ $0 $@ |
| 6832 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6833 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 6834 | " |
| 6835 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6836 | _ACEOF |
| 6837 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6838 | case $ac_config_files in *" |
| 6839 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 6840 | esac |
| 6841 | |
| 6842 | case $ac_config_headers in *" |
| 6843 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 6844 | esac |
| 6845 | |
| 6846 | |
| 6847 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6848 | # Files that config.status was made for. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6849 | config_files="$ac_config_files" |
| 6850 | config_headers="$ac_config_headers" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6851 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6852 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6853 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6854 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6855 | ac_cs_usage="\ |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6856 | \`$as_me' instantiates files and other configuration actions |
| 6857 | from templates according to the current configuration. Unless the files |
| 6858 | and actions are specified as TAGs, all are instantiated by default. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6859 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6860 | Usage: $0 [OPTION]... [TAG]... |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6861 | |
| 6862 | -h, --help print this help, then exit |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6863 | -V, --version print version number and configuration settings, then exit |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 6864 | --config print configuration, then exit |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6865 | -q, --quiet, --silent |
| 6866 | do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6867 | -d, --debug don't remove temporary files |
| 6868 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6869 | --file=FILE[:TEMPLATE] |
| 6870 | instantiate the configuration file FILE |
| 6871 | --header=FILE[:TEMPLATE] |
| 6872 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6873 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 6874 | Configuration files: |
| 6875 | $config_files |
| 6876 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6877 | Configuration headers: |
| 6878 | $config_headers |
| 6879 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6880 | Report bugs to the package provider." |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 6881 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6882 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6883 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 6884 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6885 | ac_cs_version="\\ |
Benny Prijono | 8a9b3b2 | 2010-01-14 14:46:54 +0000 | [diff] [blame] | 6886 | pjproject config.status 1.x |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 6887 | configured by $0, generated by GNU Autoconf 2.65, |
| 6888 | with options \\"\$ac_cs_config\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6889 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6890 | Copyright (C) 2009 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6891 | This config.status script is free software; the Free Software Foundation |
| 6892 | gives unlimited permission to copy, distribute and modify it." |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6893 | |
| 6894 | ac_pwd='$ac_pwd' |
| 6895 | srcdir='$srcdir' |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6896 | test -n "\$AWK" || AWK=awk |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6897 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6898 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6899 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6900 | # The default lists apply if the user does not specify any file. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6901 | ac_need_defaults=: |
| 6902 | while test $# != 0 |
| 6903 | do |
| 6904 | case $1 in |
| 6905 | --*=*) |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6906 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6907 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6908 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6909 | ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6910 | *) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6911 | ac_option=$1 |
| 6912 | ac_optarg=$2 |
| 6913 | ac_shift=shift |
| 6914 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6915 | esac |
| 6916 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6917 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6918 | # Handling of the options. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6919 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6920 | ac_cs_recheck=: ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6921 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6922 | $as_echo "$ac_cs_version"; exit ;; |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 6923 | --config | --confi | --conf | --con | --co | --c ) |
| 6924 | $as_echo "$ac_cs_config"; exit ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6925 | --debug | --debu | --deb | --de | --d | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6926 | debug=: ;; |
| 6927 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6928 | $ac_shift |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6929 | case $ac_optarg in |
| 6930 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6931 | esac |
| 6932 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6933 | ac_need_defaults=false;; |
| 6934 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6935 | $ac_shift |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6936 | case $ac_optarg in |
| 6937 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6938 | esac |
| 6939 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6940 | ac_need_defaults=false;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6941 | --he | --h) |
| 6942 | # Conflict between --help and --header |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6943 | as_fn_error "ambiguous option: \`$1' |
| 6944 | Try \`$0 --help' for more information.";; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6945 | --help | --hel | -h ) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6946 | $as_echo "$ac_cs_usage"; exit ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6947 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6948 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6949 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6950 | |
| 6951 | # This is an error. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6952 | -*) as_fn_error "unrecognized option: \`$1' |
| 6953 | Try \`$0 --help' for more information." ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6954 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6955 | *) as_fn_append ac_config_targets " $1" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6956 | ac_need_defaults=false ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6957 | |
| 6958 | esac |
| 6959 | shift |
| 6960 | done |
| 6961 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6962 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6963 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6964 | if $ac_cs_silent; then |
| 6965 | exec 6>/dev/null |
| 6966 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6967 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6968 | |
| 6969 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6970 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6971 | if \$ac_cs_recheck; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6972 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 6973 | shift |
| 6974 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 6975 | CONFIG_SHELL='$SHELL' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6976 | export CONFIG_SHELL |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6977 | exec "\$@" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6978 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6979 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6980 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6981 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6982 | exec 5>>config.log |
| 6983 | { |
| 6984 | echo |
| 6985 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6986 | ## Running $as_me. ## |
| 6987 | _ASBOX |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6988 | $as_echo "$ac_log" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6989 | } >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6990 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6991 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6992 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6993 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6994 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 6995 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 6996 | |
| 6997 | # Handling of arguments. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6998 | for ac_config_target in $ac_config_targets |
| 6999 | do |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7000 | case $ac_config_target in |
| 7001 | "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 7002 | "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 7003 | "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 7004 | "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 7005 | "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
| 7006 | "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 7007 | "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
Benny Prijono | 8ec5eae | 2010-05-12 10:59:20 +0000 | [diff] [blame] | 7008 | "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7009 | "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 7010 | "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 7011 | "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 7012 | "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] | 7013 | "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] | 7014 | "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] | 7015 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7016 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7017 | esac |
| 7018 | done |
| 7019 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7020 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7021 | # If the user did not use the arguments to specify the items to instantiate, |
| 7022 | # then the envvar interface is used. Set only those that are not. |
| 7023 | # We use the long form for the default assignment because of an extremely |
| 7024 | # bizarre bug on SunOS 4.1.3. |
| 7025 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7026 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7027 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7028 | fi |
| 7029 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7030 | # Have a temporary directory for convenience. Make it in the build tree |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7031 | # 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] | 7032 | # creating and moving files from /tmp can sometimes cause problems. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7033 | # Hook for its removal unless debugging. |
| 7034 | # Note that there is a small window in which the directory will not be cleaned: |
| 7035 | # after its creation but before its name has been assigned to `$tmp'. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7036 | $debug || |
| 7037 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7038 | tmp= |
| 7039 | trap 'exit_status=$? |
| 7040 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 7041 | ' 0 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7042 | trap 'as_fn_exit 1' 1 2 13 15 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7043 | } |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7044 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7045 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7046 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7047 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7048 | test -n "$tmp" && test -d "$tmp" |
| 7049 | } || |
| 7050 | { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7051 | tmp=./conf$$-$RANDOM |
| 7052 | (umask 077 && mkdir "$tmp") |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7053 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7054 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7055 | # Set up the scripts for CONFIG_FILES section. |
| 7056 | # No need to generate them if there are no CONFIG_FILES. |
| 7057 | # This happens for instance with `./config.status config.h'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7058 | if test -n "$CONFIG_FILES"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7059 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7060 | |
| 7061 | ac_cr=`echo X | tr X '\015'` |
| 7062 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 7063 | # But we know of no other shell where ac_cr would be empty at this |
| 7064 | # point, so we can use a bashism as a fallback. |
| 7065 | if test "x$ac_cr" = x; then |
| 7066 | eval ac_cr=\$\'\\r\' |
| 7067 | fi |
| 7068 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 7069 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 7070 | ac_cs_awk_cr='\r' |
| 7071 | else |
| 7072 | ac_cs_awk_cr=$ac_cr |
| 7073 | fi |
| 7074 | |
| 7075 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7076 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7077 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7078 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7079 | { |
| 7080 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 7081 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 7082 | echo "_ACEOF" |
| 7083 | } >conf$$subs.sh || |
| 7084 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 7085 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7086 | ac_delim='%!_!# ' |
| 7087 | for ac_last_try in false false false false false :; do |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7088 | . ./conf$$subs.sh || |
| 7089 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7090 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7091 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 7092 | if test $ac_delim_n = $ac_delim_num; then |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7093 | break |
| 7094 | elif $ac_last_try; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7095 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7096 | else |
| 7097 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7098 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7099 | done |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7100 | rm -f conf$$subs.sh |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7101 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7102 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7103 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7104 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7105 | sed -n ' |
| 7106 | h |
| 7107 | s/^/S["/; s/!.*/"]=/ |
| 7108 | p |
| 7109 | g |
| 7110 | s/^[^!]*!// |
| 7111 | :repl |
| 7112 | t repl |
| 7113 | s/'"$ac_delim"'$// |
| 7114 | t delim |
| 7115 | :nl |
| 7116 | h |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 7117 | s/\(.\{148\}\)..*/\1/ |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7118 | t more1 |
| 7119 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 7120 | p |
| 7121 | n |
| 7122 | b repl |
| 7123 | :more1 |
| 7124 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7125 | p |
| 7126 | g |
| 7127 | s/.\{148\}// |
| 7128 | t nl |
| 7129 | :delim |
| 7130 | h |
Benny Prijono | 5bbebc0 | 2010-06-15 05:21:43 +0000 | [diff] [blame] | 7131 | s/\(.\{148\}\)..*/\1/ |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7132 | t more2 |
| 7133 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 7134 | p |
| 7135 | b |
| 7136 | :more2 |
| 7137 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 7138 | p |
| 7139 | g |
| 7140 | s/.\{148\}// |
| 7141 | t delim |
| 7142 | ' <conf$$subs.awk | sed ' |
| 7143 | /^[^""]/{ |
| 7144 | N |
| 7145 | s/\n// |
| 7146 | } |
| 7147 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7148 | rm -f conf$$subs.awk |
| 7149 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7150 | _ACAWK |
| 7151 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 7152 | for (key in S) S_is_set[key] = 1 |
| 7153 | FS = "" |
Benny Prijono | 46bd084 | 2010-02-12 14:12:41 +0000 | [diff] [blame] | 7154 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7155 | } |
| 7156 | { |
| 7157 | line = $ 0 |
| 7158 | nfields = split(line, field, "@") |
| 7159 | substed = 0 |
| 7160 | len = length(field[1]) |
| 7161 | for (i = 2; i < nfields; i++) { |
| 7162 | key = field[i] |
| 7163 | keylen = length(key) |
| 7164 | if (S_is_set[key]) { |
| 7165 | value = S[key] |
| 7166 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 7167 | len += length(value) + length(field[++i]) |
| 7168 | substed = 1 |
| 7169 | } else |
| 7170 | len += 1 + keylen |
| 7171 | } |
| 7172 | |
| 7173 | print line |
| 7174 | } |
| 7175 | |
| 7176 | _ACAWK |
| 7177 | _ACEOF |
| 7178 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7179 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 7180 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 7181 | else |
| 7182 | cat |
| 7183 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 7184 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 7185 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7186 | |
| 7187 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7188 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 7189 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7190 | # (actually we leave an empty line to preserve line numbers). |
| 7191 | if test "x$srcdir" = x.; then |
| 7192 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 7193 | s/:*\$(srcdir):*/:/ |
| 7194 | s/:*\${srcdir}:*/:/ |
| 7195 | s/:*@srcdir@:*/:/ |
| 7196 | s/^\([^=]*=[ ]*\):*/\1/ |
| 7197 | s/:*$// |
| 7198 | s/^[^=]*=[ ]*$// |
| 7199 | }' |
| 7200 | fi |
| 7201 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7202 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7203 | fi # test -n "$CONFIG_FILES" |
| 7204 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7205 | # Set up the scripts for CONFIG_HEADERS section. |
| 7206 | # No need to generate them if there are no CONFIG_HEADERS. |
| 7207 | # This happens for instance with `./config.status Makefile'. |
| 7208 | if test -n "$CONFIG_HEADERS"; then |
| 7209 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 7210 | BEGIN { |
| 7211 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7212 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7213 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 7214 | # here-document in config.status, that substitutes the proper values into |
| 7215 | # config.h.in to produce config.h. |
| 7216 | |
| 7217 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 7218 | # handling of long lines. |
| 7219 | ac_delim='%!_!# ' |
| 7220 | for ac_last_try in false false :; do |
| 7221 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 7222 | if test -z "$ac_t"; then |
| 7223 | break |
| 7224 | elif $ac_last_try; then |
| 7225 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 7226 | else |
| 7227 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 7228 | fi |
| 7229 | done |
| 7230 | |
| 7231 | # For the awk script, D is an array of macro values keyed by name, |
| 7232 | # likewise P contains macro parameters if any. Preserve backslash |
| 7233 | # newline sequences. |
| 7234 | |
| 7235 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 7236 | sed -n ' |
| 7237 | s/.\{148\}/&'"$ac_delim"'/g |
| 7238 | t rset |
| 7239 | :rset |
| 7240 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 7241 | t def |
| 7242 | d |
| 7243 | :def |
| 7244 | s/\\$// |
| 7245 | t bsnl |
| 7246 | s/["\\]/\\&/g |
| 7247 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7248 | D["\1"]=" \3"/p |
| 7249 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 7250 | d |
| 7251 | :bsnl |
| 7252 | s/["\\]/\\&/g |
| 7253 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 7254 | D["\1"]=" \3\\\\\\n"\\/p |
| 7255 | t cont |
| 7256 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 7257 | t cont |
| 7258 | d |
| 7259 | :cont |
| 7260 | n |
| 7261 | s/.\{148\}/&'"$ac_delim"'/g |
| 7262 | t clear |
| 7263 | :clear |
| 7264 | s/\\$// |
| 7265 | t bsnlc |
| 7266 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 7267 | d |
| 7268 | :bsnlc |
| 7269 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 7270 | b cont |
| 7271 | ' <confdefs.h | sed ' |
| 7272 | s/'"$ac_delim"'/"\\\ |
| 7273 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 7274 | |
| 7275 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7276 | for (key in D) D_is_set[key] = 1 |
| 7277 | FS = "" |
| 7278 | } |
| 7279 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 7280 | line = \$ 0 |
| 7281 | split(line, arg, " ") |
| 7282 | if (arg[1] == "#") { |
| 7283 | defundef = arg[2] |
| 7284 | mac1 = arg[3] |
| 7285 | } else { |
| 7286 | defundef = substr(arg[1], 2) |
| 7287 | mac1 = arg[2] |
| 7288 | } |
| 7289 | split(mac1, mac2, "(") #) |
| 7290 | macro = mac2[1] |
| 7291 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 7292 | if (D_is_set[macro]) { |
| 7293 | # Preserve the white space surrounding the "#". |
| 7294 | print prefix "define", macro P[macro] D[macro] |
| 7295 | next |
| 7296 | } else { |
| 7297 | # Replace #undef with comments. This is necessary, for example, |
| 7298 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 7299 | # on some systems where configure will not decide to define it. |
| 7300 | if (defundef == "undef") { |
| 7301 | print "/*", prefix defundef, macro, "*/" |
| 7302 | next |
| 7303 | } |
| 7304 | } |
| 7305 | } |
| 7306 | { print } |
| 7307 | _ACAWK |
| 7308 | _ACEOF |
| 7309 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7310 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 7311 | fi # test -n "$CONFIG_HEADERS" |
| 7312 | |
| 7313 | |
| 7314 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 7315 | shift |
| 7316 | for ac_tag |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7317 | do |
| 7318 | case $ac_tag in |
| 7319 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 7320 | esac |
| 7321 | case $ac_mode$ac_tag in |
| 7322 | :[FHL]*:*);; |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7323 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7324 | :[FH]-) ac_tag=-:-;; |
| 7325 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 7326 | esac |
| 7327 | ac_save_IFS=$IFS |
| 7328 | IFS=: |
| 7329 | set x $ac_tag |
| 7330 | IFS=$ac_save_IFS |
| 7331 | shift |
| 7332 | ac_file=$1 |
| 7333 | shift |
| 7334 | |
| 7335 | case $ac_mode in |
| 7336 | :L) ac_source=$1;; |
| 7337 | :[FH]) |
| 7338 | ac_file_inputs= |
| 7339 | for ac_f |
| 7340 | do |
| 7341 | case $ac_f in |
| 7342 | -) ac_f="$tmp/stdin";; |
| 7343 | *) # Look for the file first in the build tree, then in the source tree |
| 7344 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 7345 | # because $ac_f cannot contain `:'. |
| 7346 | test -f "$ac_f" || |
| 7347 | case $ac_f in |
| 7348 | [\\/$]*) false;; |
| 7349 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 7350 | esac || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7351 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7352 | esac |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7353 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 7354 | as_fn_append ac_file_inputs " '$ac_f'" |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7355 | done |
| 7356 | |
| 7357 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7358 | # use $as_me), people would be surprised to read: |
| 7359 | # /* config.h. Generated by config.status. */ |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7360 | configure_input='Generated from '` |
| 7361 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 7362 | `' by configure.' |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7363 | if test x"$ac_file" != x-; then |
| 7364 | configure_input="$ac_file. $configure_input" |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7365 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 7366 | $as_echo "$as_me: creating $ac_file" >&6;} |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7367 | fi |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7368 | # Neutralize special characters interpreted by sed in replacement strings. |
| 7369 | case $configure_input in #( |
| 7370 | *\&* | *\|* | *\\* ) |
| 7371 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 7372 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 7373 | *) ac_sed_conf_input=$configure_input;; |
| 7374 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7375 | |
| 7376 | case $ac_tag in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7377 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 7378 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7379 | esac |
| 7380 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7381 | esac |
| 7382 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7383 | ac_dir=`$as_dirname -- "$ac_file" || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7384 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7385 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7386 | X"$ac_file" : 'X\(//\)$' \| \ |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7387 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7388 | $as_echo X"$ac_file" | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7389 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7390 | s//\1/ |
| 7391 | q |
| 7392 | } |
| 7393 | /^X\(\/\/\)[^/].*/{ |
| 7394 | s//\1/ |
| 7395 | q |
| 7396 | } |
| 7397 | /^X\(\/\/\)$/{ |
| 7398 | s//\1/ |
| 7399 | q |
| 7400 | } |
| 7401 | /^X\(\/\).*/{ |
| 7402 | s//\1/ |
| 7403 | q |
| 7404 | } |
| 7405 | s/.*/./; q'` |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7406 | as_dir="$ac_dir"; as_fn_mkdir_p |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7407 | ac_builddir=. |
| 7408 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7409 | case "$ac_dir" in |
| 7410 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7411 | *) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7412 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7413 | # A ".." for each directory in $ac_dir_suffix. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7414 | 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] | 7415 | case $ac_top_builddir_sub in |
| 7416 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 7417 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 7418 | esac ;; |
| 7419 | esac |
| 7420 | ac_abs_top_builddir=$ac_pwd |
| 7421 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 7422 | # for backward compatibility: |
| 7423 | ac_top_builddir=$ac_top_build_prefix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7424 | |
| 7425 | case $srcdir in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7426 | .) # We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7427 | ac_srcdir=. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7428 | ac_top_srcdir=$ac_top_builddir_sub |
| 7429 | ac_abs_top_srcdir=$ac_pwd ;; |
| 7430 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7431 | ac_srcdir=$srcdir$ac_dir_suffix; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7432 | ac_top_srcdir=$srcdir |
| 7433 | ac_abs_top_srcdir=$srcdir ;; |
| 7434 | *) # Relative name. |
| 7435 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 7436 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 7437 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7438 | esac |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7439 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Benny Prijono | 9489e7a | 2008-09-19 22:18:50 +0000 | [diff] [blame] | 7440 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7441 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7442 | case $ac_mode in |
| 7443 | :F) |
| 7444 | # |
| 7445 | # CONFIG_FILE |
| 7446 | # |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7447 | |
Benny Prijono | e274613 | 2008-09-27 13:16:35 +0000 | [diff] [blame] | 7448 | _ACEOF |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7449 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7450 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7451 | # If the template does not know about datarootdir, expand it. |
| 7452 | # FIXME: This hack should be removed a few years after 2.60. |
| 7453 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7454 | ac_sed_dataroot=' |
| 7455 | /datarootdir/ { |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7456 | p |
| 7457 | q |
| 7458 | } |
| 7459 | /@datadir@/p |
| 7460 | /@docdir@/p |
| 7461 | /@infodir@/p |
| 7462 | /@localedir@/p |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7463 | /@mandir@/p' |
| 7464 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7465 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 7466 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 7468 | $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] | 7469 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7470 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7471 | ac_datarootdir_hack=' |
| 7472 | s&@datadir@&$datadir&g |
| 7473 | s&@docdir@&$docdir&g |
| 7474 | s&@infodir@&$infodir&g |
| 7475 | s&@localedir@&$localedir&g |
| 7476 | s&@mandir@&$mandir&g |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7477 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7478 | esac |
| 7479 | _ACEOF |
| 7480 | |
| 7481 | # Neutralize VPATH when `$srcdir' = `.'. |
| 7482 | # Shell code in configure.ac might set extrasub. |
| 7483 | # FIXME: do we really want to maintain this feature? |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7484 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7485 | ac_sed_extra="$ac_vpsub |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7486 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7487 | _ACEOF |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7489 | :t |
| 7490 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7491 | s|@configure_input@|$ac_sed_conf_input|;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7492 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7493 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7494 | s&@srcdir@&$ac_srcdir&;t t |
| 7495 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 7496 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 7497 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 7498 | s&@builddir@&$ac_builddir&;t t |
| 7499 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 7500 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 7501 | $ac_datarootdir_hack |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7502 | " |
| 7503 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 7504 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 7505 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7506 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 7507 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 7508 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7509 | { $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] | 7510 | which seems to be undefined. Please make sure it is defined." >&5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7511 | $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] | 7512 | which seems to be undefined. Please make sure it is defined." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7513 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7514 | rm -f "$tmp/stdin" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7515 | case $ac_file in |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7516 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 7517 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 7518 | esac \ |
| 7519 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7520 | ;; |
| 7521 | :H) |
| 7522 | # |
| 7523 | # CONFIG_HEADER |
| 7524 | # |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7525 | if test x"$ac_file" != x-; then |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7526 | { |
| 7527 | $as_echo "/* $configure_input */" \ |
| 7528 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 7529 | } >"$tmp/config.h" \ |
| 7530 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 7531 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 7533 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7534 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7535 | rm -f "$ac_file" |
| 7536 | mv "$tmp/config.h" "$ac_file" \ |
| 7537 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7538 | fi |
| 7539 | else |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7540 | $as_echo "/* $configure_input */" \ |
| 7541 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 7542 | || as_fn_error "could not create -" "$LINENO" 5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7543 | fi |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7544 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7545 | |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7546 | |
| 7547 | esac |
| 7548 | |
| 7549 | done # for ac_tag |
| 7550 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7551 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7552 | as_fn_exit 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7553 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7554 | ac_clean_files=$ac_clean_files_save |
| 7555 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7556 | test $ac_write_fail = 0 || |
| 7557 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 7558 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7559 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7560 | # configure is writing to config.log, and then calls config.status. |
| 7561 | # config.status does its own redirection, appending to config.log. |
| 7562 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 7563 | # by configure, so config.status won't be able to write to it; its |
| 7564 | # output is simply discarded. So we exec the FD to /dev/null, |
| 7565 | # effectively closing config.log, so it can be properly (re)opened and |
| 7566 | # appended to by config.status. When coming back to configure, we |
| 7567 | # need to make the FD available again. |
| 7568 | if test "$no_create" != yes; then |
| 7569 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7570 | ac_config_status_args= |
| 7571 | test "$silent" = yes && |
| 7572 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7573 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7574 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7575 | exec 5>>config.log |
| 7576 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 7577 | # would make configure fail if this is the last instruction. |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7578 | $ac_cs_success || as_fn_exit $? |
| 7579 | fi |
| 7580 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 7582 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Benny Prijono | d523370 | 2010-01-13 13:09:45 +0000 | [diff] [blame] | 7583 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7584 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7585 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7586 | |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7588 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 7589 | 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] | 7590 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 7591 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7592 | - 'user.mak' |
| 7593 | - 'pjlib/include/pj/config_site.h' |
| 7594 | |
| 7595 | The next step now is to run 'make dep' and 'make'. |
| 7596 | " >&5 |
Benny Prijono | d430643 | 2010-05-01 22:05:41 +0000 | [diff] [blame] | 7597 | $as_echo " |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7598 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 7599 | 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] | 7600 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 7601 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7602 | - 'user.mak' |
| 7603 | - 'pjlib/include/pj/config_site.h' |
| 7604 | |
| 7605 | The next step now is to run 'make dep' and 'make'. |
Nanang Izzuddin | 56e380a | 2009-04-15 14:45:41 +0000 | [diff] [blame] | 7606 | " >&6; } |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 7607 | |