Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.68 for openbsc 0.9.14. |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <openbsc-devel@lists.openbsc.org>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 10 | # Foundation, Inc. |
| 11 | # |
| 12 | # |
| 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
| 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
| 18 | |
| 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
| 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 22 | emulate sh |
| 23 | NULLCMD=: |
| 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
| 27 | setopt NO_GLOB_SUBST |
| 28 | else |
| 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
| 34 | esac |
| 35 | fi |
| 36 | |
| 37 | |
| 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
| 62 | case $arg in #( |
| 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
| 75 | |
| 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
| 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
| 83 | fi |
| 84 | |
| 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
| 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 94 | as_myself= |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 95 | case $0 in #(( |
| 96 | *[\\/]* ) as_myself=$0 ;; |
| 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 98 | for as_dir in $PATH |
| 99 | do |
| 100 | IFS=$as_save_IFS |
| 101 | test -z "$as_dir" && as_dir=. |
| 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 103 | done |
| 104 | IFS=$as_save_IFS |
| 105 | |
| 106 | ;; |
| 107 | esac |
| 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 109 | # in which case we are not to be found in the path. |
| 110 | if test "x$as_myself" = x; then |
| 111 | as_myself=$0 |
| 112 | fi |
| 113 | if test ! -f "$as_myself"; then |
| 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 115 | exit 1 |
| 116 | fi |
| 117 | |
| 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 120 | # suppresses any "Segmentation fault" message there. '((' could |
| 121 | # trigger a bug in pdksh 5.2.14. |
| 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 123 | do eval test x\${$as_var+set} = xset \ |
| 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
| 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
| 135 | |
| 136 | # CDPATH. |
| 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 138 | |
| 139 | if test "x$CONFIG_SHELL" = x; then |
| 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 141 | emulate sh |
| 142 | NULLCMD=: |
| 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 144 | # is contrary to our usage. Disable this feature. |
| 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 146 | setopt NO_GLOB_SUBST |
| 147 | else |
| 148 | case \`(set -o) 2>/dev/null\` in #( |
| 149 | *posix*) : |
| 150 | set -o posix ;; #( |
| 151 | *) : |
| 152 | ;; |
| 153 | esac |
| 154 | fi |
| 155 | " |
| 156 | as_required="as_fn_return () { (exit \$1); } |
| 157 | as_fn_success () { as_fn_return 0; } |
| 158 | as_fn_failure () { as_fn_return 1; } |
| 159 | as_fn_ret_success () { return 0; } |
| 160 | as_fn_ret_failure () { return 1; } |
| 161 | |
| 162 | exitcode=0 |
| 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 168 | |
| 169 | else |
| 170 | exitcode=1; echo positional parameters were not saved. |
| 171 | fi |
| 172 | test x\$exitcode = x0 || exit 1" |
| 173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 177 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 178 | if (eval "$as_required") 2>/dev/null; then : |
| 179 | as_have_required=yes |
| 180 | else |
| 181 | as_have_required=no |
| 182 | fi |
| 183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 184 | |
| 185 | else |
| 186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 187 | as_found=false |
| 188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 189 | do |
| 190 | IFS=$as_save_IFS |
| 191 | test -z "$as_dir" && as_dir=. |
| 192 | as_found=: |
| 193 | case $as_dir in #( |
| 194 | /*) |
| 195 | for as_base in sh bash ksh sh5; do |
| 196 | # Try only shells that exist, to save several forks. |
| 197 | as_shell=$as_dir/$as_base |
| 198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 200 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 202 | break 2 |
| 203 | fi |
| 204 | fi |
| 205 | done;; |
| 206 | esac |
| 207 | as_found=false |
| 208 | done |
| 209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 211 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 212 | fi; } |
| 213 | IFS=$as_save_IFS |
| 214 | |
| 215 | |
| 216 | if test "x$CONFIG_SHELL" != x; then : |
| 217 | # We cannot yet assume a decent shell, so we have to provide a |
| 218 | # neutralization value for shells without unset; and this also |
| 219 | # works around shells that cannot unset nonexistent variables. |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 220 | # Preserve -v and -x to the replacement shell. |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 221 | BASH_ENV=/dev/null |
| 222 | ENV=/dev/null |
| 223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 224 | export CONFIG_SHELL |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 225 | case $- in # (((( |
| 226 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 227 | *v* ) as_opts=-v ;; |
| 228 | *x* ) as_opts=-x ;; |
| 229 | * ) as_opts= ;; |
| 230 | esac |
| 231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 232 | fi |
| 233 | |
| 234 | if test x$as_have_required = xno; then : |
| 235 | $as_echo "$0: This script requires a shell more modern than all" |
| 236 | $as_echo "$0: the shells that I found on your system." |
| 237 | if test x${ZSH_VERSION+set} = xset ; then |
| 238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 240 | else |
| 241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 242 | $0: openbsc-devel@lists.openbsc.org about your system, |
| 243 | $0: including any error possibly output before this |
| 244 | $0: message. Then install a modern shell, or manually run |
| 245 | $0: the script under such a shell if you do have one." |
| 246 | fi |
| 247 | exit 1 |
| 248 | fi |
| 249 | fi |
| 250 | fi |
| 251 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 252 | export SHELL |
| 253 | # Unset more variables known to interfere with behavior of common tools. |
| 254 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 255 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 256 | |
| 257 | ## --------------------- ## |
| 258 | ## M4sh Shell Functions. ## |
| 259 | ## --------------------- ## |
| 260 | # as_fn_unset VAR |
| 261 | # --------------- |
| 262 | # Portably unset VAR. |
| 263 | as_fn_unset () |
| 264 | { |
| 265 | { eval $1=; unset $1;} |
| 266 | } |
| 267 | as_unset=as_fn_unset |
| 268 | |
| 269 | # as_fn_set_status STATUS |
| 270 | # ----------------------- |
| 271 | # Set $? to STATUS, without forking. |
| 272 | as_fn_set_status () |
| 273 | { |
| 274 | return $1 |
| 275 | } # as_fn_set_status |
| 276 | |
| 277 | # as_fn_exit STATUS |
| 278 | # ----------------- |
| 279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 280 | as_fn_exit () |
| 281 | { |
| 282 | set +e |
| 283 | as_fn_set_status $1 |
| 284 | exit $1 |
| 285 | } # as_fn_exit |
| 286 | |
| 287 | # as_fn_mkdir_p |
| 288 | # ------------- |
| 289 | # Create "$as_dir" as a directory, including parents if necessary. |
| 290 | as_fn_mkdir_p () |
| 291 | { |
| 292 | |
| 293 | case $as_dir in #( |
| 294 | -*) as_dir=./$as_dir;; |
| 295 | esac |
| 296 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 297 | as_dirs= |
| 298 | while :; do |
| 299 | case $as_dir in #( |
| 300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 301 | *) as_qdir=$as_dir;; |
| 302 | esac |
| 303 | as_dirs="'$as_qdir' $as_dirs" |
| 304 | as_dir=`$as_dirname -- "$as_dir" || |
| 305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 306 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 307 | X"$as_dir" : 'X\(//\)$' \| \ |
| 308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 309 | $as_echo X"$as_dir" | |
| 310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 311 | s//\1/ |
| 312 | q |
| 313 | } |
| 314 | /^X\(\/\/\)[^/].*/{ |
| 315 | s//\1/ |
| 316 | q |
| 317 | } |
| 318 | /^X\(\/\/\)$/{ |
| 319 | s//\1/ |
| 320 | q |
| 321 | } |
| 322 | /^X\(\/\).*/{ |
| 323 | s//\1/ |
| 324 | q |
| 325 | } |
| 326 | s/.*/./; q'` |
| 327 | test -d "$as_dir" && break |
| 328 | done |
| 329 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 331 | |
| 332 | |
| 333 | } # as_fn_mkdir_p |
| 334 | # as_fn_append VAR VALUE |
| 335 | # ---------------------- |
| 336 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 337 | # advantage of any shell optimizations that allow amortized linear growth over |
| 338 | # repeated appends, instead of the typical quadratic growth present in naive |
| 339 | # implementations. |
| 340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 341 | eval 'as_fn_append () |
| 342 | { |
| 343 | eval $1+=\$2 |
| 344 | }' |
| 345 | else |
| 346 | as_fn_append () |
| 347 | { |
| 348 | eval $1=\$$1\$2 |
| 349 | } |
| 350 | fi # as_fn_append |
| 351 | |
| 352 | # as_fn_arith ARG... |
| 353 | # ------------------ |
| 354 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 356 | # must be portable across $(()) and expr. |
| 357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 358 | eval 'as_fn_arith () |
| 359 | { |
| 360 | as_val=$(( $* )) |
| 361 | }' |
| 362 | else |
| 363 | as_fn_arith () |
| 364 | { |
| 365 | as_val=`expr "$@" || test $? -eq 1` |
| 366 | } |
| 367 | fi # as_fn_arith |
| 368 | |
| 369 | |
| 370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 371 | # ---------------------------------------- |
| 372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 374 | # script with STATUS, using 1 if that was 0. |
| 375 | as_fn_error () |
| 376 | { |
| 377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 378 | if test "$4"; then |
| 379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 381 | fi |
| 382 | $as_echo "$as_me: error: $2" >&2 |
| 383 | as_fn_exit $as_status |
| 384 | } # as_fn_error |
| 385 | |
| 386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 388 | as_expr=expr |
| 389 | else |
| 390 | as_expr=false |
| 391 | fi |
| 392 | |
| 393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 394 | as_basename=basename |
| 395 | else |
| 396 | as_basename=false |
| 397 | fi |
| 398 | |
| 399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 400 | as_dirname=dirname |
| 401 | else |
| 402 | as_dirname=false |
| 403 | fi |
| 404 | |
| 405 | as_me=`$as_basename -- "$0" || |
| 406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 407 | X"$0" : 'X\(//\)$' \| \ |
| 408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 409 | $as_echo X/"$0" | |
| 410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 411 | s//\1/ |
| 412 | q |
| 413 | } |
| 414 | /^X\/\(\/\/\)$/{ |
| 415 | s//\1/ |
| 416 | q |
| 417 | } |
| 418 | /^X\/\(\/\).*/{ |
| 419 | s//\1/ |
| 420 | q |
| 421 | } |
| 422 | s/.*/./; q'` |
| 423 | |
| 424 | # Avoid depending upon Character Ranges. |
| 425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 428 | as_cr_digits='0123456789' |
| 429 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 430 | |
| 431 | |
| 432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 437 | sed -n ' |
| 438 | p |
| 439 | /[$]LINENO/= |
| 440 | ' <$as_myself | |
| 441 | sed ' |
| 442 | s/[$]LINENO.*/&-/ |
| 443 | t lineno |
| 444 | b |
| 445 | :lineno |
| 446 | N |
| 447 | :loop |
| 448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 449 | t loop |
| 450 | s/-\n.*// |
| 451 | ' >$as_me.lineno && |
| 452 | chmod +x "$as_me.lineno" || |
| 453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 454 | |
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 456 | # (the dirname of $[0] is not the place where we might find the |
| 457 | # original and so on. Autoconf is especially sensitive to this). |
| 458 | . "./$as_me.lineno" |
| 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
| 463 | ECHO_C= ECHO_N= ECHO_T= |
| 464 | case `echo -n x` in #((((( |
| 465 | -n*) |
| 466 | case `echo 'xy\c'` in |
| 467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 468 | xy) ECHO_C='\c';; |
| 469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 470 | ECHO_T=' ';; |
| 471 | esac;; |
| 472 | *) |
| 473 | ECHO_N='-n';; |
| 474 | esac |
| 475 | |
| 476 | rm -f conf$$ conf$$.exe conf$$.file |
| 477 | if test -d conf$$.dir; then |
| 478 | rm -f conf$$.dir/conf$$.file |
| 479 | else |
| 480 | rm -f conf$$.dir |
| 481 | mkdir conf$$.dir 2>/dev/null |
| 482 | fi |
| 483 | if (echo >conf$$.file) 2>/dev/null; then |
| 484 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 485 | as_ln_s='ln -s' |
| 486 | # ... but there are two gotchas: |
| 487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 489 | # In both cases, we have to default to `cp -p'. |
| 490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 491 | as_ln_s='cp -p' |
| 492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 493 | as_ln_s=ln |
| 494 | else |
| 495 | as_ln_s='cp -p' |
| 496 | fi |
| 497 | else |
| 498 | as_ln_s='cp -p' |
| 499 | fi |
| 500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 501 | rmdir conf$$.dir 2>/dev/null |
| 502 | |
| 503 | if mkdir -p . 2>/dev/null; then |
| 504 | as_mkdir_p='mkdir -p "$as_dir"' |
| 505 | else |
| 506 | test -d ./-p && rmdir ./-p |
| 507 | as_mkdir_p=false |
| 508 | fi |
| 509 | |
| 510 | if test -x / >/dev/null 2>&1; then |
| 511 | as_test_x='test -x' |
| 512 | else |
| 513 | if ls -dL / >/dev/null 2>&1; then |
| 514 | as_ls_L_option=L |
| 515 | else |
| 516 | as_ls_L_option= |
| 517 | fi |
| 518 | as_test_x=' |
| 519 | eval sh -c '\'' |
| 520 | if test -d "$1"; then |
| 521 | test -d "$1/."; |
| 522 | else |
| 523 | case $1 in #( |
| 524 | -*)set "./$1";; |
| 525 | esac; |
| 526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 527 | ???[sx]*):;;*)false;;esac;fi |
| 528 | '\'' sh |
| 529 | ' |
| 530 | fi |
| 531 | as_executable_p=$as_test_x |
| 532 | |
| 533 | # Sed expression to map a string onto a valid CPP name. |
| 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 535 | |
| 536 | # Sed expression to map a string onto a valid variable name. |
| 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 538 | |
| 539 | |
| 540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 541 | exec 6>&1 |
| 542 | |
| 543 | # Name of the host. |
| 544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 545 | # so uname gets run too. |
| 546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 547 | |
| 548 | # |
| 549 | # Initializations. |
| 550 | # |
| 551 | ac_default_prefix=/usr/local |
| 552 | ac_clean_files= |
| 553 | ac_config_libobj_dir=. |
| 554 | LIBOBJS= |
| 555 | cross_compiling=no |
| 556 | subdirs= |
| 557 | MFLAGS= |
| 558 | MAKEFLAGS= |
| 559 | |
| 560 | # Identity of this package. |
| 561 | PACKAGE_NAME='openbsc' |
| 562 | PACKAGE_TARNAME='openbsc' |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 563 | PACKAGE_VERSION='0.9.14' |
| 564 | PACKAGE_STRING='openbsc 0.9.14' |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 565 | PACKAGE_BUGREPORT='openbsc-devel@lists.openbsc.org' |
| 566 | PACKAGE_URL='' |
| 567 | |
| 568 | # Factoring default headers for most tests. |
| 569 | ac_includes_default="\ |
| 570 | #include <stdio.h> |
| 571 | #ifdef HAVE_SYS_TYPES_H |
| 572 | # include <sys/types.h> |
| 573 | #endif |
| 574 | #ifdef HAVE_SYS_STAT_H |
| 575 | # include <sys/stat.h> |
| 576 | #endif |
| 577 | #ifdef STDC_HEADERS |
| 578 | # include <stdlib.h> |
| 579 | # include <stddef.h> |
| 580 | #else |
| 581 | # ifdef HAVE_STDLIB_H |
| 582 | # include <stdlib.h> |
| 583 | # endif |
| 584 | #endif |
| 585 | #ifdef HAVE_STRING_H |
| 586 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 587 | # include <memory.h> |
| 588 | # endif |
| 589 | # include <string.h> |
| 590 | #endif |
| 591 | #ifdef HAVE_STRINGS_H |
| 592 | # include <strings.h> |
| 593 | #endif |
| 594 | #ifdef HAVE_INTTYPES_H |
| 595 | # include <inttypes.h> |
| 596 | #endif |
| 597 | #ifdef HAVE_STDINT_H |
| 598 | # include <stdint.h> |
| 599 | #endif |
| 600 | #ifdef HAVE_UNISTD_H |
| 601 | # include <unistd.h> |
| 602 | #endif" |
| 603 | |
| 604 | ac_subst_vars='am__EXEEXT_FALSE |
| 605 | am__EXEEXT_TRUE |
| 606 | LTLIBOBJS |
| 607 | LIBOBJS |
| 608 | COVERAGE_LDFLAGS |
| 609 | COVERAGE_CFLAGS |
| 610 | SYMBOL_VISIBILITY |
| 611 | EGREP |
| 612 | GREP |
| 613 | CPP |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 614 | LIBOSMOGSM_LIBS |
| 615 | LIBOSMOGSM_CFLAGS |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 616 | LIBOSMOVTY_LIBS |
| 617 | LIBOSMOVTY_CFLAGS |
| 618 | LIBOSMOCORE_LIBS |
| 619 | LIBOSMOCORE_CFLAGS |
| 620 | BUILD_BSC_FALSE |
| 621 | BUILD_BSC_TRUE |
| 622 | BUILD_NAT_FALSE |
| 623 | BUILD_NAT_TRUE |
| 624 | LIBOSMOSCCP_LIBS |
| 625 | LIBOSMOSCCP_CFLAGS |
| 626 | PKG_CONFIG_LIBDIR |
| 627 | PKG_CONFIG_PATH |
| 628 | PKG_CONFIG |
| 629 | HAVE_LIBGTP_FALSE |
| 630 | HAVE_LIBGTP_TRUE |
| 631 | GPRS_LIBGTP |
| 632 | RANLIB |
| 633 | am__fastdepCC_FALSE |
| 634 | am__fastdepCC_TRUE |
| 635 | CCDEPMODE |
| 636 | AMDEPBACKSLASH |
| 637 | AMDEP_FALSE |
| 638 | AMDEP_TRUE |
| 639 | am__quote |
| 640 | am__include |
| 641 | DEPDIR |
| 642 | OBJEXT |
| 643 | EXEEXT |
| 644 | ac_ct_CC |
| 645 | CPPFLAGS |
| 646 | LDFLAGS |
| 647 | CFLAGS |
| 648 | CC |
| 649 | AM_BACKSLASH |
| 650 | AM_DEFAULT_VERBOSITY |
| 651 | am__untar |
| 652 | am__tar |
| 653 | AMTAR |
| 654 | am__leading_dot |
| 655 | SET_MAKE |
| 656 | AWK |
| 657 | mkdir_p |
| 658 | MKDIR_P |
| 659 | INSTALL_STRIP_PROGRAM |
| 660 | STRIP |
| 661 | install_sh |
| 662 | MAKEINFO |
| 663 | AUTOHEADER |
| 664 | AUTOMAKE |
| 665 | AUTOCONF |
| 666 | ACLOCAL |
| 667 | VERSION |
| 668 | PACKAGE |
| 669 | CYGPATH_W |
| 670 | am__isrc |
| 671 | INSTALL_DATA |
| 672 | INSTALL_SCRIPT |
| 673 | INSTALL_PROGRAM |
| 674 | target_alias |
| 675 | host_alias |
| 676 | build_alias |
| 677 | LIBS |
| 678 | ECHO_T |
| 679 | ECHO_N |
| 680 | ECHO_C |
| 681 | DEFS |
| 682 | mandir |
| 683 | localedir |
| 684 | libdir |
| 685 | psdir |
| 686 | pdfdir |
| 687 | dvidir |
| 688 | htmldir |
| 689 | infodir |
| 690 | docdir |
| 691 | oldincludedir |
| 692 | includedir |
| 693 | localstatedir |
| 694 | sharedstatedir |
| 695 | sysconfdir |
| 696 | datadir |
| 697 | datarootdir |
| 698 | libexecdir |
| 699 | sbindir |
| 700 | bindir |
| 701 | program_transform_name |
| 702 | prefix |
| 703 | exec_prefix |
| 704 | PACKAGE_URL |
| 705 | PACKAGE_BUGREPORT |
| 706 | PACKAGE_STRING |
| 707 | PACKAGE_VERSION |
| 708 | PACKAGE_TARNAME |
| 709 | PACKAGE_NAME |
| 710 | PATH_SEPARATOR |
| 711 | SHELL' |
| 712 | ac_subst_files='' |
| 713 | ac_user_opts=' |
| 714 | enable_option_checking |
| 715 | enable_silent_rules |
| 716 | enable_dependency_tracking |
| 717 | enable_nat |
| 718 | enable_osmo_bsc |
| 719 | enable_coverage |
| 720 | ' |
| 721 | ac_precious_vars='build_alias |
| 722 | host_alias |
| 723 | target_alias |
| 724 | CC |
| 725 | CFLAGS |
| 726 | LDFLAGS |
| 727 | LIBS |
| 728 | CPPFLAGS |
| 729 | PKG_CONFIG |
| 730 | PKG_CONFIG_PATH |
| 731 | PKG_CONFIG_LIBDIR |
| 732 | LIBOSMOSCCP_CFLAGS |
| 733 | LIBOSMOSCCP_LIBS |
| 734 | LIBOSMOCORE_CFLAGS |
| 735 | LIBOSMOCORE_LIBS |
| 736 | LIBOSMOVTY_CFLAGS |
| 737 | LIBOSMOVTY_LIBS |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 738 | LIBOSMOGSM_CFLAGS |
| 739 | LIBOSMOGSM_LIBS |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 740 | CPP' |
| 741 | |
| 742 | |
| 743 | # Initialize some variables set by options. |
| 744 | ac_init_help= |
| 745 | ac_init_version=false |
| 746 | ac_unrecognized_opts= |
| 747 | ac_unrecognized_sep= |
| 748 | # The variables have the same names as the options, with |
| 749 | # dashes changed to underlines. |
| 750 | cache_file=/dev/null |
| 751 | exec_prefix=NONE |
| 752 | no_create= |
| 753 | no_recursion= |
| 754 | prefix=NONE |
| 755 | program_prefix=NONE |
| 756 | program_suffix=NONE |
| 757 | program_transform_name=s,x,x, |
| 758 | silent= |
| 759 | site= |
| 760 | srcdir= |
| 761 | verbose= |
| 762 | x_includes=NONE |
| 763 | x_libraries=NONE |
| 764 | |
| 765 | # Installation directory options. |
| 766 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 767 | # and all the variables that are supposed to be based on exec_prefix |
| 768 | # by default will actually change. |
| 769 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 770 | # (The list follows the same order as the GNU Coding Standards.) |
| 771 | bindir='${exec_prefix}/bin' |
| 772 | sbindir='${exec_prefix}/sbin' |
| 773 | libexecdir='${exec_prefix}/libexec' |
| 774 | datarootdir='${prefix}/share' |
| 775 | datadir='${datarootdir}' |
| 776 | sysconfdir='${prefix}/etc' |
| 777 | sharedstatedir='${prefix}/com' |
| 778 | localstatedir='${prefix}/var' |
| 779 | includedir='${prefix}/include' |
| 780 | oldincludedir='/usr/include' |
| 781 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 782 | infodir='${datarootdir}/info' |
| 783 | htmldir='${docdir}' |
| 784 | dvidir='${docdir}' |
| 785 | pdfdir='${docdir}' |
| 786 | psdir='${docdir}' |
| 787 | libdir='${exec_prefix}/lib' |
| 788 | localedir='${datarootdir}/locale' |
| 789 | mandir='${datarootdir}/man' |
| 790 | |
| 791 | ac_prev= |
| 792 | ac_dashdash= |
| 793 | for ac_option |
| 794 | do |
| 795 | # If the previous option needs an argument, assign it. |
| 796 | if test -n "$ac_prev"; then |
| 797 | eval $ac_prev=\$ac_option |
| 798 | ac_prev= |
| 799 | continue |
| 800 | fi |
| 801 | |
| 802 | case $ac_option in |
| 803 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 804 | *=) ac_optarg= ;; |
| 805 | *) ac_optarg=yes ;; |
| 806 | esac |
| 807 | |
| 808 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 809 | |
| 810 | case $ac_dashdash$ac_option in |
| 811 | --) |
| 812 | ac_dashdash=yes ;; |
| 813 | |
| 814 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 815 | ac_prev=bindir ;; |
| 816 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 817 | bindir=$ac_optarg ;; |
| 818 | |
| 819 | -build | --build | --buil | --bui | --bu) |
| 820 | ac_prev=build_alias ;; |
| 821 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 822 | build_alias=$ac_optarg ;; |
| 823 | |
| 824 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 825 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 826 | ac_prev=cache_file ;; |
| 827 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 828 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 829 | cache_file=$ac_optarg ;; |
| 830 | |
| 831 | --config-cache | -C) |
| 832 | cache_file=config.cache ;; |
| 833 | |
| 834 | -datadir | --datadir | --datadi | --datad) |
| 835 | ac_prev=datadir ;; |
| 836 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 837 | datadir=$ac_optarg ;; |
| 838 | |
| 839 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 840 | | --dataroo | --dataro | --datar) |
| 841 | ac_prev=datarootdir ;; |
| 842 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 843 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 844 | datarootdir=$ac_optarg ;; |
| 845 | |
| 846 | -disable-* | --disable-*) |
| 847 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 848 | # Reject names that are not valid shell variable names. |
| 849 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 850 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 851 | ac_useropt_orig=$ac_useropt |
| 852 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 853 | case $ac_user_opts in |
| 854 | *" |
| 855 | "enable_$ac_useropt" |
| 856 | "*) ;; |
| 857 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 858 | ac_unrecognized_sep=', ';; |
| 859 | esac |
| 860 | eval enable_$ac_useropt=no ;; |
| 861 | |
| 862 | -docdir | --docdir | --docdi | --doc | --do) |
| 863 | ac_prev=docdir ;; |
| 864 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 865 | docdir=$ac_optarg ;; |
| 866 | |
| 867 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 868 | ac_prev=dvidir ;; |
| 869 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 870 | dvidir=$ac_optarg ;; |
| 871 | |
| 872 | -enable-* | --enable-*) |
| 873 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 874 | # Reject names that are not valid shell variable names. |
| 875 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 876 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 877 | ac_useropt_orig=$ac_useropt |
| 878 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 879 | case $ac_user_opts in |
| 880 | *" |
| 881 | "enable_$ac_useropt" |
| 882 | "*) ;; |
| 883 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 884 | ac_unrecognized_sep=', ';; |
| 885 | esac |
| 886 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 887 | |
| 888 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 889 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 890 | | --exec | --exe | --ex) |
| 891 | ac_prev=exec_prefix ;; |
| 892 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 893 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 894 | | --exec=* | --exe=* | --ex=*) |
| 895 | exec_prefix=$ac_optarg ;; |
| 896 | |
| 897 | -gas | --gas | --ga | --g) |
| 898 | # Obsolete; use --with-gas. |
| 899 | with_gas=yes ;; |
| 900 | |
| 901 | -help | --help | --hel | --he | -h) |
| 902 | ac_init_help=long ;; |
| 903 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 904 | ac_init_help=recursive ;; |
| 905 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 906 | ac_init_help=short ;; |
| 907 | |
| 908 | -host | --host | --hos | --ho) |
| 909 | ac_prev=host_alias ;; |
| 910 | -host=* | --host=* | --hos=* | --ho=*) |
| 911 | host_alias=$ac_optarg ;; |
| 912 | |
| 913 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 914 | ac_prev=htmldir ;; |
| 915 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 916 | | --ht=*) |
| 917 | htmldir=$ac_optarg ;; |
| 918 | |
| 919 | -includedir | --includedir | --includedi | --included | --include \ |
| 920 | | --includ | --inclu | --incl | --inc) |
| 921 | ac_prev=includedir ;; |
| 922 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 923 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 924 | includedir=$ac_optarg ;; |
| 925 | |
| 926 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 927 | ac_prev=infodir ;; |
| 928 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 929 | infodir=$ac_optarg ;; |
| 930 | |
| 931 | -libdir | --libdir | --libdi | --libd) |
| 932 | ac_prev=libdir ;; |
| 933 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 934 | libdir=$ac_optarg ;; |
| 935 | |
| 936 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 937 | | --libexe | --libex | --libe) |
| 938 | ac_prev=libexecdir ;; |
| 939 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 940 | | --libexe=* | --libex=* | --libe=*) |
| 941 | libexecdir=$ac_optarg ;; |
| 942 | |
| 943 | -localedir | --localedir | --localedi | --localed | --locale) |
| 944 | ac_prev=localedir ;; |
| 945 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 946 | localedir=$ac_optarg ;; |
| 947 | |
| 948 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 949 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 950 | ac_prev=localstatedir ;; |
| 951 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 952 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 953 | localstatedir=$ac_optarg ;; |
| 954 | |
| 955 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 956 | ac_prev=mandir ;; |
| 957 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 958 | mandir=$ac_optarg ;; |
| 959 | |
| 960 | -nfp | --nfp | --nf) |
| 961 | # Obsolete; use --without-fp. |
| 962 | with_fp=no ;; |
| 963 | |
| 964 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 965 | | --no-cr | --no-c | -n) |
| 966 | no_create=yes ;; |
| 967 | |
| 968 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 969 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 970 | no_recursion=yes ;; |
| 971 | |
| 972 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 973 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 974 | | --oldin | --oldi | --old | --ol | --o) |
| 975 | ac_prev=oldincludedir ;; |
| 976 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 977 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 978 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 979 | oldincludedir=$ac_optarg ;; |
| 980 | |
| 981 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 982 | ac_prev=prefix ;; |
| 983 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 984 | prefix=$ac_optarg ;; |
| 985 | |
| 986 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 987 | | --program-pre | --program-pr | --program-p) |
| 988 | ac_prev=program_prefix ;; |
| 989 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 990 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 991 | program_prefix=$ac_optarg ;; |
| 992 | |
| 993 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 994 | | --program-suf | --program-su | --program-s) |
| 995 | ac_prev=program_suffix ;; |
| 996 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 997 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 998 | program_suffix=$ac_optarg ;; |
| 999 | |
| 1000 | -program-transform-name | --program-transform-name \ |
| 1001 | | --program-transform-nam | --program-transform-na \ |
| 1002 | | --program-transform-n | --program-transform- \ |
| 1003 | | --program-transform | --program-transfor \ |
| 1004 | | --program-transfo | --program-transf \ |
| 1005 | | --program-trans | --program-tran \ |
| 1006 | | --progr-tra | --program-tr | --program-t) |
| 1007 | ac_prev=program_transform_name ;; |
| 1008 | -program-transform-name=* | --program-transform-name=* \ |
| 1009 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1010 | | --program-transform-n=* | --program-transform-=* \ |
| 1011 | | --program-transform=* | --program-transfor=* \ |
| 1012 | | --program-transfo=* | --program-transf=* \ |
| 1013 | | --program-trans=* | --program-tran=* \ |
| 1014 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1015 | program_transform_name=$ac_optarg ;; |
| 1016 | |
| 1017 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1018 | ac_prev=pdfdir ;; |
| 1019 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1020 | pdfdir=$ac_optarg ;; |
| 1021 | |
| 1022 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1023 | ac_prev=psdir ;; |
| 1024 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1025 | psdir=$ac_optarg ;; |
| 1026 | |
| 1027 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1028 | | -silent | --silent | --silen | --sile | --sil) |
| 1029 | silent=yes ;; |
| 1030 | |
| 1031 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1032 | ac_prev=sbindir ;; |
| 1033 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1034 | | --sbi=* | --sb=*) |
| 1035 | sbindir=$ac_optarg ;; |
| 1036 | |
| 1037 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1038 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1039 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1040 | | --sha | --sh) |
| 1041 | ac_prev=sharedstatedir ;; |
| 1042 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1043 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1044 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1045 | | --sha=* | --sh=*) |
| 1046 | sharedstatedir=$ac_optarg ;; |
| 1047 | |
| 1048 | -site | --site | --sit) |
| 1049 | ac_prev=site ;; |
| 1050 | -site=* | --site=* | --sit=*) |
| 1051 | site=$ac_optarg ;; |
| 1052 | |
| 1053 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1054 | ac_prev=srcdir ;; |
| 1055 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1056 | srcdir=$ac_optarg ;; |
| 1057 | |
| 1058 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1059 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1060 | ac_prev=sysconfdir ;; |
| 1061 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1062 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1063 | sysconfdir=$ac_optarg ;; |
| 1064 | |
| 1065 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1066 | ac_prev=target_alias ;; |
| 1067 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1068 | target_alias=$ac_optarg ;; |
| 1069 | |
| 1070 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1071 | verbose=yes ;; |
| 1072 | |
| 1073 | -version | --version | --versio | --versi | --vers | -V) |
| 1074 | ac_init_version=: ;; |
| 1075 | |
| 1076 | -with-* | --with-*) |
| 1077 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1078 | # Reject names that are not valid shell variable names. |
| 1079 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1080 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1081 | ac_useropt_orig=$ac_useropt |
| 1082 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1083 | case $ac_user_opts in |
| 1084 | *" |
| 1085 | "with_$ac_useropt" |
| 1086 | "*) ;; |
| 1087 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1088 | ac_unrecognized_sep=', ';; |
| 1089 | esac |
| 1090 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1091 | |
| 1092 | -without-* | --without-*) |
| 1093 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1094 | # Reject names that are not valid shell variable names. |
| 1095 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1096 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1097 | ac_useropt_orig=$ac_useropt |
| 1098 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1099 | case $ac_user_opts in |
| 1100 | *" |
| 1101 | "with_$ac_useropt" |
| 1102 | "*) ;; |
| 1103 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1104 | ac_unrecognized_sep=', ';; |
| 1105 | esac |
| 1106 | eval with_$ac_useropt=no ;; |
| 1107 | |
| 1108 | --x) |
| 1109 | # Obsolete; use --with-x. |
| 1110 | with_x=yes ;; |
| 1111 | |
| 1112 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1113 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1114 | ac_prev=x_includes ;; |
| 1115 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1116 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1117 | x_includes=$ac_optarg ;; |
| 1118 | |
| 1119 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1120 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1121 | ac_prev=x_libraries ;; |
| 1122 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1123 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1124 | x_libraries=$ac_optarg ;; |
| 1125 | |
| 1126 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1127 | Try \`$0 --help' for more information" |
| 1128 | ;; |
| 1129 | |
| 1130 | *=*) |
| 1131 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1132 | # Reject names that are not valid shell variable names. |
| 1133 | case $ac_envvar in #( |
| 1134 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1135 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1136 | esac |
| 1137 | eval $ac_envvar=\$ac_optarg |
| 1138 | export $ac_envvar ;; |
| 1139 | |
| 1140 | *) |
| 1141 | # FIXME: should be removed in autoconf 3.0. |
| 1142 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1143 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1144 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1145 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1146 | ;; |
| 1147 | |
| 1148 | esac |
| 1149 | done |
| 1150 | |
| 1151 | if test -n "$ac_prev"; then |
| 1152 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1153 | as_fn_error $? "missing argument to $ac_option" |
| 1154 | fi |
| 1155 | |
| 1156 | if test -n "$ac_unrecognized_opts"; then |
| 1157 | case $enable_option_checking in |
| 1158 | no) ;; |
| 1159 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1160 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1161 | esac |
| 1162 | fi |
| 1163 | |
| 1164 | # Check all directory arguments for consistency. |
| 1165 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1166 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1167 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1168 | libdir localedir mandir |
| 1169 | do |
| 1170 | eval ac_val=\$$ac_var |
| 1171 | # Remove trailing slashes. |
| 1172 | case $ac_val in |
| 1173 | */ ) |
| 1174 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1175 | eval $ac_var=\$ac_val;; |
| 1176 | esac |
| 1177 | # Be sure to have absolute directory names. |
| 1178 | case $ac_val in |
| 1179 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1180 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1181 | esac |
| 1182 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1183 | done |
| 1184 | |
| 1185 | # There might be people who depend on the old broken behavior: `$host' |
| 1186 | # used to hold the argument of --host etc. |
| 1187 | # FIXME: To remove some day. |
| 1188 | build=$build_alias |
| 1189 | host=$host_alias |
| 1190 | target=$target_alias |
| 1191 | |
| 1192 | # FIXME: To remove some day. |
| 1193 | if test "x$host_alias" != x; then |
| 1194 | if test "x$build_alias" = x; then |
| 1195 | cross_compiling=maybe |
| 1196 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1197 | If a cross compiler is detected then cross compile mode will be used" >&2 |
| 1198 | elif test "x$build_alias" != "x$host_alias"; then |
| 1199 | cross_compiling=yes |
| 1200 | fi |
| 1201 | fi |
| 1202 | |
| 1203 | ac_tool_prefix= |
| 1204 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1205 | |
| 1206 | test "$silent" = yes && exec 6>/dev/null |
| 1207 | |
| 1208 | |
| 1209 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1210 | ac_ls_di=`ls -di .` && |
| 1211 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1212 | as_fn_error $? "working directory cannot be determined" |
| 1213 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1214 | as_fn_error $? "pwd does not report name of working directory" |
| 1215 | |
| 1216 | |
| 1217 | # Find the source files, if location was not specified. |
| 1218 | if test -z "$srcdir"; then |
| 1219 | ac_srcdir_defaulted=yes |
| 1220 | # Try the directory containing this script, then the parent directory. |
| 1221 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1222 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1223 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1224 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1225 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1226 | $as_echo X"$as_myself" | |
| 1227 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1228 | s//\1/ |
| 1229 | q |
| 1230 | } |
| 1231 | /^X\(\/\/\)[^/].*/{ |
| 1232 | s//\1/ |
| 1233 | q |
| 1234 | } |
| 1235 | /^X\(\/\/\)$/{ |
| 1236 | s//\1/ |
| 1237 | q |
| 1238 | } |
| 1239 | /^X\(\/\).*/{ |
| 1240 | s//\1/ |
| 1241 | q |
| 1242 | } |
| 1243 | s/.*/./; q'` |
| 1244 | srcdir=$ac_confdir |
| 1245 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1246 | srcdir=.. |
| 1247 | fi |
| 1248 | else |
| 1249 | ac_srcdir_defaulted=no |
| 1250 | fi |
| 1251 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1252 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1253 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1254 | fi |
| 1255 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1256 | ac_abs_confdir=`( |
| 1257 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1258 | pwd)` |
| 1259 | # When building in place, set srcdir=. |
| 1260 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1261 | srcdir=. |
| 1262 | fi |
| 1263 | # Remove unnecessary trailing slashes from srcdir. |
| 1264 | # Double slashes in file names in object file debugging info |
| 1265 | # mess up M-x gdb in Emacs. |
| 1266 | case $srcdir in |
| 1267 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1268 | esac |
| 1269 | for ac_var in $ac_precious_vars; do |
| 1270 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1271 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1272 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1273 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1274 | done |
| 1275 | |
| 1276 | # |
| 1277 | # Report the --help message. |
| 1278 | # |
| 1279 | if test "$ac_init_help" = "long"; then |
| 1280 | # Omit some internal or obsolete options to make the list less imposing. |
| 1281 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1282 | cat <<_ACEOF |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1283 | \`configure' configures openbsc 0.9.14 to adapt to many kinds of systems. |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1284 | |
| 1285 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1286 | |
| 1287 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1288 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1289 | |
| 1290 | Defaults for the options are specified in brackets. |
| 1291 | |
| 1292 | Configuration: |
| 1293 | -h, --help display this help and exit |
| 1294 | --help=short display options specific to this package |
| 1295 | --help=recursive display the short help of all the included packages |
| 1296 | -V, --version display version information and exit |
| 1297 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1298 | --cache-file=FILE cache test results in FILE [disabled] |
| 1299 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1300 | -n, --no-create do not create output files |
| 1301 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1302 | |
| 1303 | Installation directories: |
| 1304 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1305 | [$ac_default_prefix] |
| 1306 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1307 | [PREFIX] |
| 1308 | |
| 1309 | By default, \`make install' will install all the files in |
| 1310 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1311 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1312 | for instance \`--prefix=\$HOME'. |
| 1313 | |
| 1314 | For better control, use the options below. |
| 1315 | |
| 1316 | Fine tuning of the installation directories: |
| 1317 | --bindir=DIR user executables [EPREFIX/bin] |
| 1318 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1319 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1320 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1321 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1322 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1323 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1324 | --includedir=DIR C header files [PREFIX/include] |
| 1325 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1326 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1327 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1328 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1329 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1330 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1331 | --docdir=DIR documentation root [DATAROOTDIR/doc/openbsc] |
| 1332 | --htmldir=DIR html documentation [DOCDIR] |
| 1333 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1334 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1335 | --psdir=DIR ps documentation [DOCDIR] |
| 1336 | _ACEOF |
| 1337 | |
| 1338 | cat <<\_ACEOF |
| 1339 | |
| 1340 | Program names: |
| 1341 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1342 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1343 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1344 | _ACEOF |
| 1345 | fi |
| 1346 | |
| 1347 | if test -n "$ac_init_help"; then |
| 1348 | case $ac_init_help in |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1349 | short | recursive ) echo "Configuration of openbsc 0.9.14:";; |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1350 | esac |
| 1351 | cat <<\_ACEOF |
| 1352 | |
| 1353 | Optional Features: |
| 1354 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1355 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1356 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1357 | --enable-silent-rules less verbose build output (undo: `make V=1') |
| 1358 | --disable-silent-rules verbose build output (undo: `make V=0') |
| 1359 | --disable-dependency-tracking speeds up one-time build |
| 1360 | --enable-dependency-tracking do not reject slow dependency extractors |
| 1361 | --enable-nat Build the BSC NAT. Requires SCCP |
| 1362 | --enable-osmo-bsc Build the Osmo BSC |
| 1363 | --enable-coverage enable code coverage support [default=no] |
| 1364 | |
| 1365 | Some influential environment variables: |
| 1366 | CC C compiler command |
| 1367 | CFLAGS C compiler flags |
| 1368 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1369 | nonstandard directory <lib dir> |
| 1370 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1371 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1372 | you have headers in a nonstandard directory <include dir> |
| 1373 | PKG_CONFIG path to pkg-config utility |
| 1374 | PKG_CONFIG_PATH |
| 1375 | directories to add to pkg-config's search path |
| 1376 | PKG_CONFIG_LIBDIR |
| 1377 | path overriding pkg-config's built-in search path |
| 1378 | LIBOSMOSCCP_CFLAGS |
| 1379 | C compiler flags for LIBOSMOSCCP, overriding pkg-config |
| 1380 | LIBOSMOSCCP_LIBS |
| 1381 | linker flags for LIBOSMOSCCP, overriding pkg-config |
| 1382 | LIBOSMOCORE_CFLAGS |
| 1383 | C compiler flags for LIBOSMOCORE, overriding pkg-config |
| 1384 | LIBOSMOCORE_LIBS |
| 1385 | linker flags for LIBOSMOCORE, overriding pkg-config |
| 1386 | LIBOSMOVTY_CFLAGS |
| 1387 | C compiler flags for LIBOSMOVTY, overriding pkg-config |
| 1388 | LIBOSMOVTY_LIBS |
| 1389 | linker flags for LIBOSMOVTY, overriding pkg-config |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1390 | LIBOSMOGSM_CFLAGS |
| 1391 | C compiler flags for LIBOSMOGSM, overriding pkg-config |
| 1392 | LIBOSMOGSM_LIBS |
| 1393 | linker flags for LIBOSMOGSM, overriding pkg-config |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1394 | CPP C preprocessor |
| 1395 | |
| 1396 | Use these variables to override the choices made by `configure' or to help |
| 1397 | it to find libraries and programs with nonstandard names/locations. |
| 1398 | |
| 1399 | Report bugs to <openbsc-devel@lists.openbsc.org>. |
| 1400 | _ACEOF |
| 1401 | ac_status=$? |
| 1402 | fi |
| 1403 | |
| 1404 | if test "$ac_init_help" = "recursive"; then |
| 1405 | # If there are subdirs, report their specific --help. |
| 1406 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1407 | test -d "$ac_dir" || |
| 1408 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1409 | continue |
| 1410 | ac_builddir=. |
| 1411 | |
| 1412 | case "$ac_dir" in |
| 1413 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1414 | *) |
| 1415 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1416 | # A ".." for each directory in $ac_dir_suffix. |
| 1417 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1418 | case $ac_top_builddir_sub in |
| 1419 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1420 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1421 | esac ;; |
| 1422 | esac |
| 1423 | ac_abs_top_builddir=$ac_pwd |
| 1424 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1425 | # for backward compatibility: |
| 1426 | ac_top_builddir=$ac_top_build_prefix |
| 1427 | |
| 1428 | case $srcdir in |
| 1429 | .) # We are building in place. |
| 1430 | ac_srcdir=. |
| 1431 | ac_top_srcdir=$ac_top_builddir_sub |
| 1432 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1433 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1434 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1435 | ac_top_srcdir=$srcdir |
| 1436 | ac_abs_top_srcdir=$srcdir ;; |
| 1437 | *) # Relative name. |
| 1438 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1439 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1440 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1441 | esac |
| 1442 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1443 | |
| 1444 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1445 | # Check for guested configure. |
| 1446 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1447 | echo && |
| 1448 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1449 | elif test -f "$ac_srcdir/configure"; then |
| 1450 | echo && |
| 1451 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1452 | else |
| 1453 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1454 | fi || ac_status=$? |
| 1455 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1456 | done |
| 1457 | fi |
| 1458 | |
| 1459 | test -n "$ac_init_help" && exit $ac_status |
| 1460 | if $ac_init_version; then |
| 1461 | cat <<\_ACEOF |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1462 | openbsc configure 0.9.14 |
| 1463 | generated by GNU Autoconf 2.68 |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1464 | |
| 1465 | Copyright (C) 2010 Free Software Foundation, Inc. |
| 1466 | This configure script is free software; the Free Software Foundation |
| 1467 | gives unlimited permission to copy, distribute and modify it. |
| 1468 | _ACEOF |
| 1469 | exit |
| 1470 | fi |
| 1471 | |
| 1472 | ## ------------------------ ## |
| 1473 | ## Autoconf initialization. ## |
| 1474 | ## ------------------------ ## |
| 1475 | |
| 1476 | # ac_fn_c_try_compile LINENO |
| 1477 | # -------------------------- |
| 1478 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1479 | ac_fn_c_try_compile () |
| 1480 | { |
| 1481 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1482 | rm -f conftest.$ac_objext |
| 1483 | if { { ac_try="$ac_compile" |
| 1484 | case "(($ac_try" in |
| 1485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1486 | *) ac_try_echo=$ac_try;; |
| 1487 | esac |
| 1488 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1489 | $as_echo "$ac_try_echo"; } >&5 |
| 1490 | (eval "$ac_compile") 2>conftest.err |
| 1491 | ac_status=$? |
| 1492 | if test -s conftest.err; then |
| 1493 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1494 | cat conftest.er1 >&5 |
| 1495 | mv -f conftest.er1 conftest.err |
| 1496 | fi |
| 1497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1498 | test $ac_status = 0; } && { |
| 1499 | test -z "$ac_c_werror_flag" || |
| 1500 | test ! -s conftest.err |
| 1501 | } && test -s conftest.$ac_objext; then : |
| 1502 | ac_retval=0 |
| 1503 | else |
| 1504 | $as_echo "$as_me: failed program was:" >&5 |
| 1505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1506 | |
| 1507 | ac_retval=1 |
| 1508 | fi |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1509 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1510 | as_fn_set_status $ac_retval |
| 1511 | |
| 1512 | } # ac_fn_c_try_compile |
| 1513 | |
| 1514 | # ac_fn_c_try_link LINENO |
| 1515 | # ----------------------- |
| 1516 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1517 | ac_fn_c_try_link () |
| 1518 | { |
| 1519 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1520 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1521 | if { { ac_try="$ac_link" |
| 1522 | case "(($ac_try" in |
| 1523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1524 | *) ac_try_echo=$ac_try;; |
| 1525 | esac |
| 1526 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1527 | $as_echo "$ac_try_echo"; } >&5 |
| 1528 | (eval "$ac_link") 2>conftest.err |
| 1529 | ac_status=$? |
| 1530 | if test -s conftest.err; then |
| 1531 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1532 | cat conftest.er1 >&5 |
| 1533 | mv -f conftest.er1 conftest.err |
| 1534 | fi |
| 1535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1536 | test $ac_status = 0; } && { |
| 1537 | test -z "$ac_c_werror_flag" || |
| 1538 | test ! -s conftest.err |
| 1539 | } && test -s conftest$ac_exeext && { |
| 1540 | test "$cross_compiling" = yes || |
| 1541 | $as_test_x conftest$ac_exeext |
| 1542 | }; then : |
| 1543 | ac_retval=0 |
| 1544 | else |
| 1545 | $as_echo "$as_me: failed program was:" >&5 |
| 1546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1547 | |
| 1548 | ac_retval=1 |
| 1549 | fi |
| 1550 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1551 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1552 | # interfere with the next link command; also delete a directory that is |
| 1553 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1554 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1555 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1556 | as_fn_set_status $ac_retval |
| 1557 | |
| 1558 | } # ac_fn_c_try_link |
| 1559 | |
| 1560 | # ac_fn_c_try_cpp LINENO |
| 1561 | # ---------------------- |
| 1562 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1563 | ac_fn_c_try_cpp () |
| 1564 | { |
| 1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1566 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1567 | case "(($ac_try" in |
| 1568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1569 | *) ac_try_echo=$ac_try;; |
| 1570 | esac |
| 1571 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1572 | $as_echo "$ac_try_echo"; } >&5 |
| 1573 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1574 | ac_status=$? |
| 1575 | if test -s conftest.err; then |
| 1576 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1577 | cat conftest.er1 >&5 |
| 1578 | mv -f conftest.er1 conftest.err |
| 1579 | fi |
| 1580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1581 | test $ac_status = 0; } > conftest.i && { |
| 1582 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1583 | test ! -s conftest.err |
| 1584 | }; then : |
| 1585 | ac_retval=0 |
| 1586 | else |
| 1587 | $as_echo "$as_me: failed program was:" >&5 |
| 1588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1589 | |
| 1590 | ac_retval=1 |
| 1591 | fi |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1592 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1593 | as_fn_set_status $ac_retval |
| 1594 | |
| 1595 | } # ac_fn_c_try_cpp |
| 1596 | |
| 1597 | # ac_fn_c_try_run LINENO |
| 1598 | # ---------------------- |
| 1599 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1600 | # that executables *can* be run. |
| 1601 | ac_fn_c_try_run () |
| 1602 | { |
| 1603 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1604 | if { { ac_try="$ac_link" |
| 1605 | case "(($ac_try" in |
| 1606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1607 | *) ac_try_echo=$ac_try;; |
| 1608 | esac |
| 1609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1610 | $as_echo "$ac_try_echo"; } >&5 |
| 1611 | (eval "$ac_link") 2>&5 |
| 1612 | ac_status=$? |
| 1613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1614 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1615 | { { case "(($ac_try" in |
| 1616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1617 | *) ac_try_echo=$ac_try;; |
| 1618 | esac |
| 1619 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1620 | $as_echo "$ac_try_echo"; } >&5 |
| 1621 | (eval "$ac_try") 2>&5 |
| 1622 | ac_status=$? |
| 1623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1624 | test $ac_status = 0; }; }; then : |
| 1625 | ac_retval=0 |
| 1626 | else |
| 1627 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1628 | $as_echo "$as_me: failed program was:" >&5 |
| 1629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1630 | |
| 1631 | ac_retval=$ac_status |
| 1632 | fi |
| 1633 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1634 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1635 | as_fn_set_status $ac_retval |
| 1636 | |
| 1637 | } # ac_fn_c_try_run |
| 1638 | |
| 1639 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1640 | # ------------------------------------------------------- |
| 1641 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1642 | # the include files in INCLUDES and setting the cache variable VAR |
| 1643 | # accordingly. |
| 1644 | ac_fn_c_check_header_mongrel () |
| 1645 | { |
| 1646 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1647 | if eval \${$3+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1649 | $as_echo_n "checking for $2... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1650 | if eval \${$3+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1651 | $as_echo_n "(cached) " >&6 |
| 1652 | fi |
| 1653 | eval ac_res=\$$3 |
| 1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1655 | $as_echo "$ac_res" >&6; } |
| 1656 | else |
| 1657 | # Is the header compilable? |
| 1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1659 | $as_echo_n "checking $2 usability... " >&6; } |
| 1660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1661 | /* end confdefs.h. */ |
| 1662 | $4 |
| 1663 | #include <$2> |
| 1664 | _ACEOF |
| 1665 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1666 | ac_header_compiler=yes |
| 1667 | else |
| 1668 | ac_header_compiler=no |
| 1669 | fi |
| 1670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1672 | $as_echo "$ac_header_compiler" >&6; } |
| 1673 | |
| 1674 | # Is the header present? |
| 1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1676 | $as_echo_n "checking $2 presence... " >&6; } |
| 1677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1678 | /* end confdefs.h. */ |
| 1679 | #include <$2> |
| 1680 | _ACEOF |
| 1681 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1682 | ac_header_preproc=yes |
| 1683 | else |
| 1684 | ac_header_preproc=no |
| 1685 | fi |
| 1686 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1688 | $as_echo "$ac_header_preproc" >&6; } |
| 1689 | |
| 1690 | # So? What about this header? |
| 1691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1692 | yes:no: ) |
| 1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1694 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1696 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1697 | ;; |
| 1698 | no:yes:* ) |
| 1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1700 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1702 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1704 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1706 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1708 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1709 | ( $as_echo "## ---------------------------------------------- ## |
| 1710 | ## Report this to openbsc-devel@lists.openbsc.org ## |
| 1711 | ## ---------------------------------------------- ##" |
| 1712 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1713 | ;; |
| 1714 | esac |
| 1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1716 | $as_echo_n "checking for $2... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1717 | if eval \${$3+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1718 | $as_echo_n "(cached) " >&6 |
| 1719 | else |
| 1720 | eval "$3=\$ac_header_compiler" |
| 1721 | fi |
| 1722 | eval ac_res=\$$3 |
| 1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1724 | $as_echo "$ac_res" >&6; } |
| 1725 | fi |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1726 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1727 | |
| 1728 | } # ac_fn_c_check_header_mongrel |
| 1729 | |
| 1730 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1731 | # ------------------------------------------------------- |
| 1732 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1733 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1734 | ac_fn_c_check_header_compile () |
| 1735 | { |
| 1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1738 | $as_echo_n "checking for $2... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1739 | if eval \${$3+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1740 | $as_echo_n "(cached) " >&6 |
| 1741 | else |
| 1742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1743 | /* end confdefs.h. */ |
| 1744 | $4 |
| 1745 | #include <$2> |
| 1746 | _ACEOF |
| 1747 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1748 | eval "$3=yes" |
| 1749 | else |
| 1750 | eval "$3=no" |
| 1751 | fi |
| 1752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1753 | fi |
| 1754 | eval ac_res=\$$3 |
| 1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1756 | $as_echo "$ac_res" >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1757 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1758 | |
| 1759 | } # ac_fn_c_check_header_compile |
| 1760 | cat >config.log <<_ACEOF |
| 1761 | This file contains any messages produced by compilers while |
| 1762 | running configure, to aid debugging if configure makes a mistake. |
| 1763 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 1764 | It was created by openbsc $as_me 0.9.14, which was |
| 1765 | generated by GNU Autoconf 2.68. Invocation command line was |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1766 | |
| 1767 | $ $0 $@ |
| 1768 | |
| 1769 | _ACEOF |
| 1770 | exec 5>>config.log |
| 1771 | { |
| 1772 | cat <<_ASUNAME |
| 1773 | ## --------- ## |
| 1774 | ## Platform. ## |
| 1775 | ## --------- ## |
| 1776 | |
| 1777 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1778 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1779 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1780 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1781 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1782 | |
| 1783 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1784 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1785 | |
| 1786 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1787 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1788 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1789 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1790 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1791 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1792 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1793 | |
| 1794 | _ASUNAME |
| 1795 | |
| 1796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1797 | for as_dir in $PATH |
| 1798 | do |
| 1799 | IFS=$as_save_IFS |
| 1800 | test -z "$as_dir" && as_dir=. |
| 1801 | $as_echo "PATH: $as_dir" |
| 1802 | done |
| 1803 | IFS=$as_save_IFS |
| 1804 | |
| 1805 | } >&5 |
| 1806 | |
| 1807 | cat >&5 <<_ACEOF |
| 1808 | |
| 1809 | |
| 1810 | ## ----------- ## |
| 1811 | ## Core tests. ## |
| 1812 | ## ----------- ## |
| 1813 | |
| 1814 | _ACEOF |
| 1815 | |
| 1816 | |
| 1817 | # Keep a trace of the command line. |
| 1818 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1819 | # Strip out --silent because we don't want to record it for future runs. |
| 1820 | # Also quote any args containing shell meta-characters. |
| 1821 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1822 | ac_configure_args= |
| 1823 | ac_configure_args0= |
| 1824 | ac_configure_args1= |
| 1825 | ac_must_keep_next=false |
| 1826 | for ac_pass in 1 2 |
| 1827 | do |
| 1828 | for ac_arg |
| 1829 | do |
| 1830 | case $ac_arg in |
| 1831 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1832 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1833 | | -silent | --silent | --silen | --sile | --sil) |
| 1834 | continue ;; |
| 1835 | *\'*) |
| 1836 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1837 | esac |
| 1838 | case $ac_pass in |
| 1839 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1840 | 2) |
| 1841 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1842 | if test $ac_must_keep_next = true; then |
| 1843 | ac_must_keep_next=false # Got value, back to normal. |
| 1844 | else |
| 1845 | case $ac_arg in |
| 1846 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1847 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1848 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1849 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1850 | case "$ac_configure_args0 " in |
| 1851 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1852 | esac |
| 1853 | ;; |
| 1854 | -* ) ac_must_keep_next=true ;; |
| 1855 | esac |
| 1856 | fi |
| 1857 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1858 | ;; |
| 1859 | esac |
| 1860 | done |
| 1861 | done |
| 1862 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1863 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1864 | |
| 1865 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1866 | # config.log. We remove comments because anyway the quotes in there |
| 1867 | # would cause problems or look ugly. |
| 1868 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1869 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1870 | trap 'exit_status=$? |
| 1871 | # Save into config.log some information that might help in debugging. |
| 1872 | { |
| 1873 | echo |
| 1874 | |
| 1875 | $as_echo "## ---------------- ## |
| 1876 | ## Cache variables. ## |
| 1877 | ## ---------------- ##" |
| 1878 | echo |
| 1879 | # The following way of writing the cache mishandles newlines in values, |
| 1880 | ( |
| 1881 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1882 | eval ac_val=\$$ac_var |
| 1883 | case $ac_val in #( |
| 1884 | *${as_nl}*) |
| 1885 | case $ac_var in #( |
| 1886 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1887 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1888 | esac |
| 1889 | case $ac_var in #( |
| 1890 | _ | IFS | as_nl) ;; #( |
| 1891 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1892 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1893 | esac ;; |
| 1894 | esac |
| 1895 | done |
| 1896 | (set) 2>&1 | |
| 1897 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1898 | *${as_nl}ac_space=\ *) |
| 1899 | sed -n \ |
| 1900 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1901 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1902 | ;; #( |
| 1903 | *) |
| 1904 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1905 | ;; |
| 1906 | esac | |
| 1907 | sort |
| 1908 | ) |
| 1909 | echo |
| 1910 | |
| 1911 | $as_echo "## ----------------- ## |
| 1912 | ## Output variables. ## |
| 1913 | ## ----------------- ##" |
| 1914 | echo |
| 1915 | for ac_var in $ac_subst_vars |
| 1916 | do |
| 1917 | eval ac_val=\$$ac_var |
| 1918 | case $ac_val in |
| 1919 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1920 | esac |
| 1921 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1922 | done | sort |
| 1923 | echo |
| 1924 | |
| 1925 | if test -n "$ac_subst_files"; then |
| 1926 | $as_echo "## ------------------- ## |
| 1927 | ## File substitutions. ## |
| 1928 | ## ------------------- ##" |
| 1929 | echo |
| 1930 | for ac_var in $ac_subst_files |
| 1931 | do |
| 1932 | eval ac_val=\$$ac_var |
| 1933 | case $ac_val in |
| 1934 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1935 | esac |
| 1936 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1937 | done | sort |
| 1938 | echo |
| 1939 | fi |
| 1940 | |
| 1941 | if test -s confdefs.h; then |
| 1942 | $as_echo "## ----------- ## |
| 1943 | ## confdefs.h. ## |
| 1944 | ## ----------- ##" |
| 1945 | echo |
| 1946 | cat confdefs.h |
| 1947 | echo |
| 1948 | fi |
| 1949 | test "$ac_signal" != 0 && |
| 1950 | $as_echo "$as_me: caught signal $ac_signal" |
| 1951 | $as_echo "$as_me: exit $exit_status" |
| 1952 | } >&5 |
| 1953 | rm -f core *.core core.conftest.* && |
| 1954 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1955 | exit $exit_status |
| 1956 | ' 0 |
| 1957 | for ac_signal in 1 2 13 15; do |
| 1958 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1959 | done |
| 1960 | ac_signal=0 |
| 1961 | |
| 1962 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1963 | rm -f -r conftest* confdefs.h |
| 1964 | |
| 1965 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1966 | |
| 1967 | # Predefined preprocessor variables. |
| 1968 | |
| 1969 | cat >>confdefs.h <<_ACEOF |
| 1970 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1971 | _ACEOF |
| 1972 | |
| 1973 | cat >>confdefs.h <<_ACEOF |
| 1974 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1975 | _ACEOF |
| 1976 | |
| 1977 | cat >>confdefs.h <<_ACEOF |
| 1978 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1979 | _ACEOF |
| 1980 | |
| 1981 | cat >>confdefs.h <<_ACEOF |
| 1982 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1983 | _ACEOF |
| 1984 | |
| 1985 | cat >>confdefs.h <<_ACEOF |
| 1986 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1987 | _ACEOF |
| 1988 | |
| 1989 | cat >>confdefs.h <<_ACEOF |
| 1990 | #define PACKAGE_URL "$PACKAGE_URL" |
| 1991 | _ACEOF |
| 1992 | |
| 1993 | |
| 1994 | # Let the site file select an alternate cache file if it wants to. |
| 1995 | # Prefer an explicitly selected file to automatically selected ones. |
| 1996 | ac_site_file1=NONE |
| 1997 | ac_site_file2=NONE |
| 1998 | if test -n "$CONFIG_SITE"; then |
| 1999 | # We do not want a PATH search for config.site. |
| 2000 | case $CONFIG_SITE in #(( |
| 2001 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2002 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2003 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2004 | esac |
| 2005 | elif test "x$prefix" != xNONE; then |
| 2006 | ac_site_file1=$prefix/share/config.site |
| 2007 | ac_site_file2=$prefix/etc/config.site |
| 2008 | else |
| 2009 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2010 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2011 | fi |
| 2012 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2013 | do |
| 2014 | test "x$ac_site_file" = xNONE && continue |
| 2015 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2016 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2017 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2018 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2019 | . "$ac_site_file" \ |
| 2020 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2021 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2022 | as_fn_error $? "failed to load site script $ac_site_file |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2023 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2024 | fi |
| 2025 | done |
| 2026 | |
| 2027 | if test -r "$cache_file"; then |
| 2028 | # Some versions of bash will fail to source /dev/null (special files |
| 2029 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2030 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2032 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2033 | case $cache_file in |
| 2034 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2035 | *) . "./$cache_file";; |
| 2036 | esac |
| 2037 | fi |
| 2038 | else |
| 2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2040 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2041 | >$cache_file |
| 2042 | fi |
| 2043 | |
| 2044 | # Check that the precious variables saved in the cache have kept the same |
| 2045 | # value. |
| 2046 | ac_cache_corrupted=false |
| 2047 | for ac_var in $ac_precious_vars; do |
| 2048 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2049 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2050 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2051 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2052 | case $ac_old_set,$ac_new_set in |
| 2053 | set,) |
| 2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2055 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2056 | ac_cache_corrupted=: ;; |
| 2057 | ,set) |
| 2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2059 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2060 | ac_cache_corrupted=: ;; |
| 2061 | ,);; |
| 2062 | *) |
| 2063 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2064 | # differences in whitespace do not lead to failure. |
| 2065 | ac_old_val_w=`echo x $ac_old_val` |
| 2066 | ac_new_val_w=`echo x $ac_new_val` |
| 2067 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2068 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2069 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2070 | ac_cache_corrupted=: |
| 2071 | else |
| 2072 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2073 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2074 | eval $ac_var=\$ac_old_val |
| 2075 | fi |
| 2076 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2077 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2079 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2080 | fi;; |
| 2081 | esac |
| 2082 | # Pass precious variables to config.status. |
| 2083 | if test "$ac_new_set" = set; then |
| 2084 | case $ac_new_val in |
| 2085 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2086 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2087 | esac |
| 2088 | case " $ac_configure_args " in |
| 2089 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2090 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2091 | esac |
| 2092 | fi |
| 2093 | done |
| 2094 | if $ac_cache_corrupted; then |
| 2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2096 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2097 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2098 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2099 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2100 | fi |
| 2101 | ## -------------------- ## |
| 2102 | ## Main body of script. ## |
| 2103 | ## -------------------- ## |
| 2104 | |
| 2105 | ac_ext=c |
| 2106 | ac_cpp='$CPP $CPPFLAGS' |
| 2107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2110 | |
| 2111 | |
| 2112 | |
| 2113 | am__api_version='1.11' |
| 2114 | |
| 2115 | ac_aux_dir= |
| 2116 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2117 | if test -f "$ac_dir/install-sh"; then |
| 2118 | ac_aux_dir=$ac_dir |
| 2119 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2120 | break |
| 2121 | elif test -f "$ac_dir/install.sh"; then |
| 2122 | ac_aux_dir=$ac_dir |
| 2123 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2124 | break |
| 2125 | elif test -f "$ac_dir/shtool"; then |
| 2126 | ac_aux_dir=$ac_dir |
| 2127 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2128 | break |
| 2129 | fi |
| 2130 | done |
| 2131 | if test -z "$ac_aux_dir"; then |
| 2132 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2133 | fi |
| 2134 | |
| 2135 | # These three variables are undocumented and unsupported, |
| 2136 | # and are intended to be withdrawn in a future Autoconf release. |
| 2137 | # They can cause serious problems if a builder's source tree is in a directory |
| 2138 | # whose full name contains unusual characters. |
| 2139 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2140 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2141 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2142 | |
| 2143 | |
| 2144 | # Find a good install program. We prefer a C program (faster), |
| 2145 | # so one script is as good as another. But avoid the broken or |
| 2146 | # incompatible versions: |
| 2147 | # SysV /etc/install, /usr/sbin/install |
| 2148 | # SunOS /usr/etc/install |
| 2149 | # IRIX /sbin/install |
| 2150 | # AIX /bin/install |
| 2151 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2152 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2153 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2154 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2155 | # OS/2's system install, which has a completely different semantic |
| 2156 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2157 | # Reject install programs that cannot install multiple files. |
| 2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2159 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2160 | if test -z "$INSTALL"; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2161 | if ${ac_cv_path_install+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2162 | $as_echo_n "(cached) " >&6 |
| 2163 | else |
| 2164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2165 | for as_dir in $PATH |
| 2166 | do |
| 2167 | IFS=$as_save_IFS |
| 2168 | test -z "$as_dir" && as_dir=. |
| 2169 | # Account for people who put trailing slashes in PATH elements. |
| 2170 | case $as_dir/ in #(( |
| 2171 | ./ | .// | /[cC]/* | \ |
| 2172 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2173 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2174 | /usr/ucb/* ) ;; |
| 2175 | *) |
| 2176 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2177 | # Don't use installbsd from OSF since it installs stuff as root |
| 2178 | # by default. |
| 2179 | for ac_prog in ginstall scoinst install; do |
| 2180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2181 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 2182 | if test $ac_prog = install && |
| 2183 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2184 | # AIX install. It has an incompatible calling convention. |
| 2185 | : |
| 2186 | elif test $ac_prog = install && |
| 2187 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2188 | # program-specific install script used by HP pwplus--don't use. |
| 2189 | : |
| 2190 | else |
| 2191 | rm -rf conftest.one conftest.two conftest.dir |
| 2192 | echo one > conftest.one |
| 2193 | echo two > conftest.two |
| 2194 | mkdir conftest.dir |
| 2195 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2196 | test -s conftest.one && test -s conftest.two && |
| 2197 | test -s conftest.dir/conftest.one && |
| 2198 | test -s conftest.dir/conftest.two |
| 2199 | then |
| 2200 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2201 | break 3 |
| 2202 | fi |
| 2203 | fi |
| 2204 | fi |
| 2205 | done |
| 2206 | done |
| 2207 | ;; |
| 2208 | esac |
| 2209 | |
| 2210 | done |
| 2211 | IFS=$as_save_IFS |
| 2212 | |
| 2213 | rm -rf conftest.one conftest.two conftest.dir |
| 2214 | |
| 2215 | fi |
| 2216 | if test "${ac_cv_path_install+set}" = set; then |
| 2217 | INSTALL=$ac_cv_path_install |
| 2218 | else |
| 2219 | # As a last resort, use the slow shell script. Don't cache a |
| 2220 | # value for INSTALL within a source directory, because that will |
| 2221 | # break other packages using the cache if that directory is |
| 2222 | # removed, or if the value is a relative name. |
| 2223 | INSTALL=$ac_install_sh |
| 2224 | fi |
| 2225 | fi |
| 2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2227 | $as_echo "$INSTALL" >&6; } |
| 2228 | |
| 2229 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2230 | # It thinks the first close brace ends the variable substitution. |
| 2231 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2232 | |
| 2233 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2234 | |
| 2235 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2236 | |
| 2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2238 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2239 | # Just in case |
| 2240 | sleep 1 |
| 2241 | echo timestamp > conftest.file |
| 2242 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2243 | # name. Accept space and tab only in the latter. |
| 2244 | am_lf=' |
| 2245 | ' |
| 2246 | case `pwd` in |
| 2247 | *[\\\"\#\$\&\'\`$am_lf]*) |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2248 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2249 | esac |
| 2250 | case $srcdir in |
| 2251 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2252 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2253 | esac |
| 2254 | |
| 2255 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2256 | # arguments. Must try -L first in case configure is actually a |
| 2257 | # symlink; some systems play weird games with the mod time of symlinks |
| 2258 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2259 | # directory). |
| 2260 | if ( |
| 2261 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2262 | if test "$*" = "X"; then |
| 2263 | # -L didn't work. |
| 2264 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2265 | fi |
| 2266 | rm -f conftest.file |
| 2267 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2268 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2269 | |
| 2270 | # If neither matched, then we have a broken ls. This can happen |
| 2271 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2272 | # broken ls alias from the environment. This has actually |
| 2273 | # happened. Such a system could not be considered "sane". |
| 2274 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2275 | alias in your environment" "$LINENO" 5 |
| 2276 | fi |
| 2277 | |
| 2278 | test "$2" = conftest.file |
| 2279 | ) |
| 2280 | then |
| 2281 | # Ok. |
| 2282 | : |
| 2283 | else |
| 2284 | as_fn_error $? "newly created file is older than distributed files! |
| 2285 | Check your system clock" "$LINENO" 5 |
| 2286 | fi |
| 2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2288 | $as_echo "yes" >&6; } |
| 2289 | test "$program_prefix" != NONE && |
| 2290 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2291 | # Use a double $ so make ignores it. |
| 2292 | test "$program_suffix" != NONE && |
| 2293 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2294 | # Double any \ or $. |
| 2295 | # By default was `s,x,x', remove it if useless. |
| 2296 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2297 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2298 | |
| 2299 | # expand $ac_aux_dir to an absolute path |
| 2300 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2301 | |
| 2302 | if test x"${MISSING+set}" != xset; then |
| 2303 | case $am_aux_dir in |
| 2304 | *\ * | *\ *) |
| 2305 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2306 | *) |
| 2307 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2308 | esac |
| 2309 | fi |
| 2310 | # Use eval to expand $SHELL |
| 2311 | if eval "$MISSING --run true"; then |
| 2312 | am_missing_run="$MISSING --run " |
| 2313 | else |
| 2314 | am_missing_run= |
| 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2316 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2317 | fi |
| 2318 | |
| 2319 | if test x"${install_sh}" != xset; then |
| 2320 | case $am_aux_dir in |
| 2321 | *\ * | *\ *) |
| 2322 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2323 | *) |
| 2324 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2325 | esac |
| 2326 | fi |
| 2327 | |
| 2328 | # Installed binaries are usually stripped using `strip' when the user |
| 2329 | # run `make install-strip'. However `strip' might not be the right |
| 2330 | # tool to use in cross-compilation environments, therefore Automake |
| 2331 | # will honor the `STRIP' environment variable to overrule this program. |
| 2332 | if test "$cross_compiling" != no; then |
| 2333 | if test -n "$ac_tool_prefix"; then |
| 2334 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2335 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2337 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2338 | if ${ac_cv_prog_STRIP+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2339 | $as_echo_n "(cached) " >&6 |
| 2340 | else |
| 2341 | if test -n "$STRIP"; then |
| 2342 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2343 | else |
| 2344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2345 | for as_dir in $PATH |
| 2346 | do |
| 2347 | IFS=$as_save_IFS |
| 2348 | test -z "$as_dir" && as_dir=. |
| 2349 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2351 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2353 | break 2 |
| 2354 | fi |
| 2355 | done |
| 2356 | done |
| 2357 | IFS=$as_save_IFS |
| 2358 | |
| 2359 | fi |
| 2360 | fi |
| 2361 | STRIP=$ac_cv_prog_STRIP |
| 2362 | if test -n "$STRIP"; then |
| 2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2364 | $as_echo "$STRIP" >&6; } |
| 2365 | else |
| 2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2367 | $as_echo "no" >&6; } |
| 2368 | fi |
| 2369 | |
| 2370 | |
| 2371 | fi |
| 2372 | if test -z "$ac_cv_prog_STRIP"; then |
| 2373 | ac_ct_STRIP=$STRIP |
| 2374 | # Extract the first word of "strip", so it can be a program name with args. |
| 2375 | set dummy strip; ac_word=$2 |
| 2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2377 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2378 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2379 | $as_echo_n "(cached) " >&6 |
| 2380 | else |
| 2381 | if test -n "$ac_ct_STRIP"; then |
| 2382 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2383 | else |
| 2384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2385 | for as_dir in $PATH |
| 2386 | do |
| 2387 | IFS=$as_save_IFS |
| 2388 | test -z "$as_dir" && as_dir=. |
| 2389 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2391 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2393 | break 2 |
| 2394 | fi |
| 2395 | done |
| 2396 | done |
| 2397 | IFS=$as_save_IFS |
| 2398 | |
| 2399 | fi |
| 2400 | fi |
| 2401 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2402 | if test -n "$ac_ct_STRIP"; then |
| 2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2404 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2405 | else |
| 2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2407 | $as_echo "no" >&6; } |
| 2408 | fi |
| 2409 | |
| 2410 | if test "x$ac_ct_STRIP" = x; then |
| 2411 | STRIP=":" |
| 2412 | else |
| 2413 | case $cross_compiling:$ac_tool_warned in |
| 2414 | yes:) |
| 2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2416 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2417 | ac_tool_warned=yes ;; |
| 2418 | esac |
| 2419 | STRIP=$ac_ct_STRIP |
| 2420 | fi |
| 2421 | else |
| 2422 | STRIP="$ac_cv_prog_STRIP" |
| 2423 | fi |
| 2424 | |
| 2425 | fi |
| 2426 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2427 | |
| 2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2429 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2430 | if test -z "$MKDIR_P"; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2431 | if ${ac_cv_path_mkdir+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2432 | $as_echo_n "(cached) " >&6 |
| 2433 | else |
| 2434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2435 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2436 | do |
| 2437 | IFS=$as_save_IFS |
| 2438 | test -z "$as_dir" && as_dir=. |
| 2439 | for ac_prog in mkdir gmkdir; do |
| 2440 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2441 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2442 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2443 | 'mkdir (GNU coreutils) '* | \ |
| 2444 | 'mkdir (coreutils) '* | \ |
| 2445 | 'mkdir (fileutils) '4.1*) |
| 2446 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2447 | break 3;; |
| 2448 | esac |
| 2449 | done |
| 2450 | done |
| 2451 | done |
| 2452 | IFS=$as_save_IFS |
| 2453 | |
| 2454 | fi |
| 2455 | |
| 2456 | test -d ./--version && rmdir ./--version |
| 2457 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2458 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2459 | else |
| 2460 | # As a last resort, use the slow shell script. Don't cache a |
| 2461 | # value for MKDIR_P within a source directory, because that will |
| 2462 | # break other packages using the cache if that directory is |
| 2463 | # removed, or if the value is a relative name. |
| 2464 | MKDIR_P="$ac_install_sh -d" |
| 2465 | fi |
| 2466 | fi |
| 2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2468 | $as_echo "$MKDIR_P" >&6; } |
| 2469 | |
| 2470 | mkdir_p="$MKDIR_P" |
| 2471 | case $mkdir_p in |
| 2472 | [\\/$]* | ?:[\\/]*) ;; |
| 2473 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2474 | esac |
| 2475 | |
| 2476 | for ac_prog in gawk mawk nawk awk |
| 2477 | do |
| 2478 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2479 | set dummy $ac_prog; ac_word=$2 |
| 2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2481 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2482 | if ${ac_cv_prog_AWK+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2483 | $as_echo_n "(cached) " >&6 |
| 2484 | else |
| 2485 | if test -n "$AWK"; then |
| 2486 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2487 | else |
| 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=. |
| 2493 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2495 | ac_cv_prog_AWK="$ac_prog" |
| 2496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2497 | break 2 |
| 2498 | fi |
| 2499 | done |
| 2500 | done |
| 2501 | IFS=$as_save_IFS |
| 2502 | |
| 2503 | fi |
| 2504 | fi |
| 2505 | AWK=$ac_cv_prog_AWK |
| 2506 | if test -n "$AWK"; then |
| 2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2508 | $as_echo "$AWK" >&6; } |
| 2509 | else |
| 2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2511 | $as_echo "no" >&6; } |
| 2512 | fi |
| 2513 | |
| 2514 | |
| 2515 | test -n "$AWK" && break |
| 2516 | done |
| 2517 | |
| 2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2519 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2520 | set x ${MAKE-make} |
| 2521 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2522 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2523 | $as_echo_n "(cached) " >&6 |
| 2524 | else |
| 2525 | cat >conftest.make <<\_ACEOF |
| 2526 | SHELL = /bin/sh |
| 2527 | all: |
| 2528 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2529 | _ACEOF |
| 2530 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 2531 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2532 | *@@@%%%=?*=@@@%%%*) |
| 2533 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2534 | *) |
| 2535 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2536 | esac |
| 2537 | rm -f conftest.make |
| 2538 | fi |
| 2539 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2541 | $as_echo "yes" >&6; } |
| 2542 | SET_MAKE= |
| 2543 | else |
| 2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2545 | $as_echo "no" >&6; } |
| 2546 | SET_MAKE="MAKE=${MAKE-make}" |
| 2547 | fi |
| 2548 | |
| 2549 | rm -rf .tst 2>/dev/null |
| 2550 | mkdir .tst 2>/dev/null |
| 2551 | if test -d .tst; then |
| 2552 | am__leading_dot=. |
| 2553 | else |
| 2554 | am__leading_dot=_ |
| 2555 | fi |
| 2556 | rmdir .tst 2>/dev/null |
| 2557 | |
| 2558 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2559 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2560 | # is not polluted with repeated "-I." |
| 2561 | am__isrc=' -I$(srcdir)' |
| 2562 | # test to see if srcdir already configured |
| 2563 | if test -f $srcdir/config.status; then |
| 2564 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 2565 | fi |
| 2566 | fi |
| 2567 | |
| 2568 | # test whether we have cygpath |
| 2569 | if test -z "$CYGPATH_W"; then |
| 2570 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2571 | CYGPATH_W='cygpath -w' |
| 2572 | else |
| 2573 | CYGPATH_W=echo |
| 2574 | fi |
| 2575 | fi |
| 2576 | |
| 2577 | |
| 2578 | # Define the identity of the package. |
| 2579 | PACKAGE='openbsc' |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2580 | VERSION='0.9.14' |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2581 | |
| 2582 | |
| 2583 | cat >>confdefs.h <<_ACEOF |
| 2584 | #define PACKAGE "$PACKAGE" |
| 2585 | _ACEOF |
| 2586 | |
| 2587 | |
| 2588 | cat >>confdefs.h <<_ACEOF |
| 2589 | #define VERSION "$VERSION" |
| 2590 | _ACEOF |
| 2591 | |
| 2592 | # Some tools Automake needs. |
| 2593 | |
| 2594 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2595 | |
| 2596 | |
| 2597 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2598 | |
| 2599 | |
| 2600 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2601 | |
| 2602 | |
| 2603 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2604 | |
| 2605 | |
| 2606 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2607 | |
| 2608 | # We need awk for the "check" target. The system "awk" is bad on |
| 2609 | # some platforms. |
| 2610 | # Always define AMTAR for backward compatibility. |
| 2611 | |
| 2612 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2613 | |
| 2614 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2615 | |
| 2616 | |
| 2617 | |
| 2618 | |
| 2619 | |
| 2620 | |
| 2621 | # Check whether --enable-silent-rules was given. |
| 2622 | if test "${enable_silent_rules+set}" = set; then : |
| 2623 | enableval=$enable_silent_rules; |
| 2624 | fi |
| 2625 | |
| 2626 | case $enable_silent_rules in |
| 2627 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2628 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2629 | *) AM_DEFAULT_VERBOSITY=0;; |
| 2630 | esac |
| 2631 | AM_BACKSLASH='\' |
| 2632 | |
| 2633 | |
| 2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2635 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2636 | set x ${MAKE-make} |
| 2637 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2638 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2639 | $as_echo_n "(cached) " >&6 |
| 2640 | else |
| 2641 | cat >conftest.make <<\_ACEOF |
| 2642 | SHELL = /bin/sh |
| 2643 | all: |
| 2644 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2645 | _ACEOF |
| 2646 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 2647 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2648 | *@@@%%%=?*=@@@%%%*) |
| 2649 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2650 | *) |
| 2651 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2652 | esac |
| 2653 | rm -f conftest.make |
| 2654 | fi |
| 2655 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2657 | $as_echo "yes" >&6; } |
| 2658 | SET_MAKE= |
| 2659 | else |
| 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2661 | $as_echo "no" >&6; } |
| 2662 | SET_MAKE="MAKE=${MAKE-make}" |
| 2663 | fi |
| 2664 | |
| 2665 | ac_ext=c |
| 2666 | ac_cpp='$CPP $CPPFLAGS' |
| 2667 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2668 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2669 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2670 | if test -n "$ac_tool_prefix"; then |
| 2671 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2672 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2674 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2675 | if ${ac_cv_prog_CC+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2676 | $as_echo_n "(cached) " >&6 |
| 2677 | else |
| 2678 | if test -n "$CC"; then |
| 2679 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2680 | else |
| 2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2682 | for as_dir in $PATH |
| 2683 | do |
| 2684 | IFS=$as_save_IFS |
| 2685 | test -z "$as_dir" && as_dir=. |
| 2686 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2688 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2690 | break 2 |
| 2691 | fi |
| 2692 | done |
| 2693 | done |
| 2694 | IFS=$as_save_IFS |
| 2695 | |
| 2696 | fi |
| 2697 | fi |
| 2698 | CC=$ac_cv_prog_CC |
| 2699 | if test -n "$CC"; then |
| 2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2701 | $as_echo "$CC" >&6; } |
| 2702 | else |
| 2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2704 | $as_echo "no" >&6; } |
| 2705 | fi |
| 2706 | |
| 2707 | |
| 2708 | fi |
| 2709 | if test -z "$ac_cv_prog_CC"; then |
| 2710 | ac_ct_CC=$CC |
| 2711 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2712 | set dummy gcc; ac_word=$2 |
| 2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2714 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2715 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2716 | $as_echo_n "(cached) " >&6 |
| 2717 | else |
| 2718 | if test -n "$ac_ct_CC"; then |
| 2719 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2720 | else |
| 2721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2722 | for as_dir in $PATH |
| 2723 | do |
| 2724 | IFS=$as_save_IFS |
| 2725 | test -z "$as_dir" && as_dir=. |
| 2726 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2727 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2728 | ac_cv_prog_ac_ct_CC="gcc" |
| 2729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2730 | break 2 |
| 2731 | fi |
| 2732 | done |
| 2733 | done |
| 2734 | IFS=$as_save_IFS |
| 2735 | |
| 2736 | fi |
| 2737 | fi |
| 2738 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2739 | if test -n "$ac_ct_CC"; then |
| 2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2741 | $as_echo "$ac_ct_CC" >&6; } |
| 2742 | else |
| 2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2744 | $as_echo "no" >&6; } |
| 2745 | fi |
| 2746 | |
| 2747 | if test "x$ac_ct_CC" = x; then |
| 2748 | CC="" |
| 2749 | else |
| 2750 | case $cross_compiling:$ac_tool_warned in |
| 2751 | yes:) |
| 2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2753 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2754 | ac_tool_warned=yes ;; |
| 2755 | esac |
| 2756 | CC=$ac_ct_CC |
| 2757 | fi |
| 2758 | else |
| 2759 | CC="$ac_cv_prog_CC" |
| 2760 | fi |
| 2761 | |
| 2762 | if test -z "$CC"; then |
| 2763 | if test -n "$ac_tool_prefix"; then |
| 2764 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2765 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2767 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2768 | if ${ac_cv_prog_CC+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2769 | $as_echo_n "(cached) " >&6 |
| 2770 | else |
| 2771 | if test -n "$CC"; then |
| 2772 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2773 | else |
| 2774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2775 | for as_dir in $PATH |
| 2776 | do |
| 2777 | IFS=$as_save_IFS |
| 2778 | test -z "$as_dir" && as_dir=. |
| 2779 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2781 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2783 | break 2 |
| 2784 | fi |
| 2785 | done |
| 2786 | done |
| 2787 | IFS=$as_save_IFS |
| 2788 | |
| 2789 | fi |
| 2790 | fi |
| 2791 | CC=$ac_cv_prog_CC |
| 2792 | if test -n "$CC"; then |
| 2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2794 | $as_echo "$CC" >&6; } |
| 2795 | else |
| 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2797 | $as_echo "no" >&6; } |
| 2798 | fi |
| 2799 | |
| 2800 | |
| 2801 | fi |
| 2802 | fi |
| 2803 | if test -z "$CC"; then |
| 2804 | # Extract the first word of "cc", so it can be a program name with args. |
| 2805 | set dummy cc; ac_word=$2 |
| 2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2807 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2808 | if ${ac_cv_prog_CC+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2809 | $as_echo_n "(cached) " >&6 |
| 2810 | else |
| 2811 | if test -n "$CC"; then |
| 2812 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2813 | else |
| 2814 | ac_prog_rejected=no |
| 2815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2816 | for as_dir in $PATH |
| 2817 | do |
| 2818 | IFS=$as_save_IFS |
| 2819 | test -z "$as_dir" && as_dir=. |
| 2820 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2822 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2823 | ac_prog_rejected=yes |
| 2824 | continue |
| 2825 | fi |
| 2826 | ac_cv_prog_CC="cc" |
| 2827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2828 | break 2 |
| 2829 | fi |
| 2830 | done |
| 2831 | done |
| 2832 | IFS=$as_save_IFS |
| 2833 | |
| 2834 | if test $ac_prog_rejected = yes; then |
| 2835 | # We found a bogon in the path, so make sure we never use it. |
| 2836 | set dummy $ac_cv_prog_CC |
| 2837 | shift |
| 2838 | if test $# != 0; then |
| 2839 | # We chose a different compiler from the bogus one. |
| 2840 | # However, it has the same basename, so the bogon will be chosen |
| 2841 | # first if we set CC to just the basename; use the full file name. |
| 2842 | shift |
| 2843 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2844 | fi |
| 2845 | fi |
| 2846 | fi |
| 2847 | fi |
| 2848 | CC=$ac_cv_prog_CC |
| 2849 | if test -n "$CC"; then |
| 2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2851 | $as_echo "$CC" >&6; } |
| 2852 | else |
| 2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2854 | $as_echo "no" >&6; } |
| 2855 | fi |
| 2856 | |
| 2857 | |
| 2858 | fi |
| 2859 | if test -z "$CC"; then |
| 2860 | if test -n "$ac_tool_prefix"; then |
| 2861 | for ac_prog in cl.exe |
| 2862 | do |
| 2863 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2864 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2866 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2867 | if ${ac_cv_prog_CC+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2868 | $as_echo_n "(cached) " >&6 |
| 2869 | else |
| 2870 | if test -n "$CC"; then |
| 2871 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2872 | else |
| 2873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2874 | for as_dir in $PATH |
| 2875 | do |
| 2876 | IFS=$as_save_IFS |
| 2877 | test -z "$as_dir" && as_dir=. |
| 2878 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2880 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2882 | break 2 |
| 2883 | fi |
| 2884 | done |
| 2885 | done |
| 2886 | IFS=$as_save_IFS |
| 2887 | |
| 2888 | fi |
| 2889 | fi |
| 2890 | CC=$ac_cv_prog_CC |
| 2891 | if test -n "$CC"; then |
| 2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2893 | $as_echo "$CC" >&6; } |
| 2894 | else |
| 2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2896 | $as_echo "no" >&6; } |
| 2897 | fi |
| 2898 | |
| 2899 | |
| 2900 | test -n "$CC" && break |
| 2901 | done |
| 2902 | fi |
| 2903 | if test -z "$CC"; then |
| 2904 | ac_ct_CC=$CC |
| 2905 | for ac_prog in cl.exe |
| 2906 | do |
| 2907 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2908 | set dummy $ac_prog; ac_word=$2 |
| 2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2910 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2911 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2912 | $as_echo_n "(cached) " >&6 |
| 2913 | else |
| 2914 | if test -n "$ac_ct_CC"; then |
| 2915 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2916 | else |
| 2917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2918 | for as_dir in $PATH |
| 2919 | do |
| 2920 | IFS=$as_save_IFS |
| 2921 | test -z "$as_dir" && as_dir=. |
| 2922 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2924 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2926 | break 2 |
| 2927 | fi |
| 2928 | done |
| 2929 | done |
| 2930 | IFS=$as_save_IFS |
| 2931 | |
| 2932 | fi |
| 2933 | fi |
| 2934 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2935 | if test -n "$ac_ct_CC"; then |
| 2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2937 | $as_echo "$ac_ct_CC" >&6; } |
| 2938 | else |
| 2939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2940 | $as_echo "no" >&6; } |
| 2941 | fi |
| 2942 | |
| 2943 | |
| 2944 | test -n "$ac_ct_CC" && break |
| 2945 | done |
| 2946 | |
| 2947 | if test "x$ac_ct_CC" = x; then |
| 2948 | CC="" |
| 2949 | else |
| 2950 | case $cross_compiling:$ac_tool_warned in |
| 2951 | yes:) |
| 2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2953 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2954 | ac_tool_warned=yes ;; |
| 2955 | esac |
| 2956 | CC=$ac_ct_CC |
| 2957 | fi |
| 2958 | fi |
| 2959 | |
| 2960 | fi |
| 2961 | |
| 2962 | |
| 2963 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2964 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2965 | as_fn_error $? "no acceptable C compiler found in \$PATH |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 2966 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 2967 | |
| 2968 | # Provide some information about the compiler. |
| 2969 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2970 | set X $ac_compile |
| 2971 | ac_compiler=$2 |
| 2972 | for ac_option in --version -v -V -qversion; do |
| 2973 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2974 | case "(($ac_try" in |
| 2975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2976 | *) ac_try_echo=$ac_try;; |
| 2977 | esac |
| 2978 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2979 | $as_echo "$ac_try_echo"; } >&5 |
| 2980 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2981 | ac_status=$? |
| 2982 | if test -s conftest.err; then |
| 2983 | sed '10a\ |
| 2984 | ... rest of stderr output deleted ... |
| 2985 | 10q' conftest.err >conftest.er1 |
| 2986 | cat conftest.er1 >&5 |
| 2987 | fi |
| 2988 | rm -f conftest.er1 conftest.err |
| 2989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2990 | test $ac_status = 0; } |
| 2991 | done |
| 2992 | |
| 2993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2994 | /* end confdefs.h. */ |
| 2995 | |
| 2996 | int |
| 2997 | main () |
| 2998 | { |
| 2999 | |
| 3000 | ; |
| 3001 | return 0; |
| 3002 | } |
| 3003 | _ACEOF |
| 3004 | ac_clean_files_save=$ac_clean_files |
| 3005 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3006 | # Try to create an executable without -o first, disregard a.out. |
| 3007 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3008 | # of exeext. |
| 3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3010 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3011 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3012 | |
| 3013 | # The possible output files: |
| 3014 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3015 | |
| 3016 | ac_rmfiles= |
| 3017 | for ac_file in $ac_files |
| 3018 | do |
| 3019 | case $ac_file in |
| 3020 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3021 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3022 | esac |
| 3023 | done |
| 3024 | rm -f $ac_rmfiles |
| 3025 | |
| 3026 | if { { ac_try="$ac_link_default" |
| 3027 | case "(($ac_try" in |
| 3028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3029 | *) ac_try_echo=$ac_try;; |
| 3030 | esac |
| 3031 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3032 | $as_echo "$ac_try_echo"; } >&5 |
| 3033 | (eval "$ac_link_default") 2>&5 |
| 3034 | ac_status=$? |
| 3035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3036 | test $ac_status = 0; }; then : |
| 3037 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3038 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3039 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3040 | # so that the user can short-circuit this test for compilers unknown to |
| 3041 | # Autoconf. |
| 3042 | for ac_file in $ac_files '' |
| 3043 | do |
| 3044 | test -f "$ac_file" || continue |
| 3045 | case $ac_file in |
| 3046 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3047 | ;; |
| 3048 | [ab].out ) |
| 3049 | # We found the default executable, but exeext='' is most |
| 3050 | # certainly right. |
| 3051 | break;; |
| 3052 | *.* ) |
| 3053 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3054 | then :; else |
| 3055 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3056 | fi |
| 3057 | # We set ac_cv_exeext here because the later test for it is not |
| 3058 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3059 | # argument, so we may need to know it at that point already. |
| 3060 | # Even if this section looks crufty: it has the advantage of |
| 3061 | # actually working. |
| 3062 | break;; |
| 3063 | * ) |
| 3064 | break;; |
| 3065 | esac |
| 3066 | done |
| 3067 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3068 | |
| 3069 | else |
| 3070 | ac_file='' |
| 3071 | fi |
| 3072 | if test -z "$ac_file"; then : |
| 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3074 | $as_echo "no" >&6; } |
| 3075 | $as_echo "$as_me: failed program was:" >&5 |
| 3076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3077 | |
| 3078 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3079 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3080 | as_fn_error 77 "C compiler cannot create executables |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3081 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3082 | else |
| 3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3084 | $as_echo "yes" >&6; } |
| 3085 | fi |
| 3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3087 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3089 | $as_echo "$ac_file" >&6; } |
| 3090 | ac_exeext=$ac_cv_exeext |
| 3091 | |
| 3092 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3093 | ac_clean_files=$ac_clean_files_save |
| 3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3095 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3096 | if { { ac_try="$ac_link" |
| 3097 | case "(($ac_try" in |
| 3098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3099 | *) ac_try_echo=$ac_try;; |
| 3100 | esac |
| 3101 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3102 | $as_echo "$ac_try_echo"; } >&5 |
| 3103 | (eval "$ac_link") 2>&5 |
| 3104 | ac_status=$? |
| 3105 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3106 | test $ac_status = 0; }; then : |
| 3107 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3108 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3109 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3110 | # `rm'. |
| 3111 | for ac_file in conftest.exe conftest conftest.*; do |
| 3112 | test -f "$ac_file" || continue |
| 3113 | case $ac_file in |
| 3114 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3115 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3116 | break;; |
| 3117 | * ) break;; |
| 3118 | esac |
| 3119 | done |
| 3120 | else |
| 3121 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3122 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3123 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3124 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3125 | fi |
| 3126 | rm -f conftest conftest$ac_cv_exeext |
| 3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3128 | $as_echo "$ac_cv_exeext" >&6; } |
| 3129 | |
| 3130 | rm -f conftest.$ac_ext |
| 3131 | EXEEXT=$ac_cv_exeext |
| 3132 | ac_exeext=$EXEEXT |
| 3133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3134 | /* end confdefs.h. */ |
| 3135 | #include <stdio.h> |
| 3136 | int |
| 3137 | main () |
| 3138 | { |
| 3139 | FILE *f = fopen ("conftest.out", "w"); |
| 3140 | return ferror (f) || fclose (f) != 0; |
| 3141 | |
| 3142 | ; |
| 3143 | return 0; |
| 3144 | } |
| 3145 | _ACEOF |
| 3146 | ac_clean_files="$ac_clean_files conftest.out" |
| 3147 | # Check that the compiler produces executables we can run. If not, either |
| 3148 | # the compiler is broken, or we cross compile. |
| 3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3150 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3151 | if test "$cross_compiling" != yes; then |
| 3152 | { { ac_try="$ac_link" |
| 3153 | case "(($ac_try" in |
| 3154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3155 | *) ac_try_echo=$ac_try;; |
| 3156 | esac |
| 3157 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3158 | $as_echo "$ac_try_echo"; } >&5 |
| 3159 | (eval "$ac_link") 2>&5 |
| 3160 | ac_status=$? |
| 3161 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3162 | test $ac_status = 0; } |
| 3163 | if { ac_try='./conftest$ac_cv_exeext' |
| 3164 | { { case "(($ac_try" in |
| 3165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3166 | *) ac_try_echo=$ac_try;; |
| 3167 | esac |
| 3168 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3169 | $as_echo "$ac_try_echo"; } >&5 |
| 3170 | (eval "$ac_try") 2>&5 |
| 3171 | ac_status=$? |
| 3172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3173 | test $ac_status = 0; }; }; then |
| 3174 | cross_compiling=no |
| 3175 | else |
| 3176 | if test "$cross_compiling" = maybe; then |
| 3177 | cross_compiling=yes |
| 3178 | else |
| 3179 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3180 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3181 | as_fn_error $? "cannot run C compiled programs. |
| 3182 | If you meant to cross compile, use \`--host'. |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3183 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3184 | fi |
| 3185 | fi |
| 3186 | fi |
| 3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3188 | $as_echo "$cross_compiling" >&6; } |
| 3189 | |
| 3190 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3191 | ac_clean_files=$ac_clean_files_save |
| 3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3193 | $as_echo_n "checking for suffix of object files... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3194 | if ${ac_cv_objext+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3195 | $as_echo_n "(cached) " >&6 |
| 3196 | else |
| 3197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3198 | /* end confdefs.h. */ |
| 3199 | |
| 3200 | int |
| 3201 | main () |
| 3202 | { |
| 3203 | |
| 3204 | ; |
| 3205 | return 0; |
| 3206 | } |
| 3207 | _ACEOF |
| 3208 | rm -f conftest.o conftest.obj |
| 3209 | if { { ac_try="$ac_compile" |
| 3210 | case "(($ac_try" in |
| 3211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3212 | *) ac_try_echo=$ac_try;; |
| 3213 | esac |
| 3214 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3215 | $as_echo "$ac_try_echo"; } >&5 |
| 3216 | (eval "$ac_compile") 2>&5 |
| 3217 | ac_status=$? |
| 3218 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3219 | test $ac_status = 0; }; then : |
| 3220 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3221 | test -f "$ac_file" || continue; |
| 3222 | case $ac_file in |
| 3223 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3224 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3225 | break;; |
| 3226 | esac |
| 3227 | done |
| 3228 | else |
| 3229 | $as_echo "$as_me: failed program was:" >&5 |
| 3230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3231 | |
| 3232 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3233 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3234 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3235 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3236 | fi |
| 3237 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3238 | fi |
| 3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3240 | $as_echo "$ac_cv_objext" >&6; } |
| 3241 | OBJEXT=$ac_cv_objext |
| 3242 | ac_objext=$OBJEXT |
| 3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3244 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3245 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3246 | $as_echo_n "(cached) " >&6 |
| 3247 | else |
| 3248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3249 | /* end confdefs.h. */ |
| 3250 | |
| 3251 | int |
| 3252 | main () |
| 3253 | { |
| 3254 | #ifndef __GNUC__ |
| 3255 | choke me |
| 3256 | #endif |
| 3257 | |
| 3258 | ; |
| 3259 | return 0; |
| 3260 | } |
| 3261 | _ACEOF |
| 3262 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3263 | ac_compiler_gnu=yes |
| 3264 | else |
| 3265 | ac_compiler_gnu=no |
| 3266 | fi |
| 3267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3268 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3269 | |
| 3270 | fi |
| 3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3272 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3273 | if test $ac_compiler_gnu = yes; then |
| 3274 | GCC=yes |
| 3275 | else |
| 3276 | GCC= |
| 3277 | fi |
| 3278 | ac_test_CFLAGS=${CFLAGS+set} |
| 3279 | ac_save_CFLAGS=$CFLAGS |
| 3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3281 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3282 | if ${ac_cv_prog_cc_g+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3283 | $as_echo_n "(cached) " >&6 |
| 3284 | else |
| 3285 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3286 | ac_c_werror_flag=yes |
| 3287 | ac_cv_prog_cc_g=no |
| 3288 | CFLAGS="-g" |
| 3289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3290 | /* end confdefs.h. */ |
| 3291 | |
| 3292 | int |
| 3293 | main () |
| 3294 | { |
| 3295 | |
| 3296 | ; |
| 3297 | return 0; |
| 3298 | } |
| 3299 | _ACEOF |
| 3300 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3301 | ac_cv_prog_cc_g=yes |
| 3302 | else |
| 3303 | CFLAGS="" |
| 3304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3305 | /* end confdefs.h. */ |
| 3306 | |
| 3307 | int |
| 3308 | main () |
| 3309 | { |
| 3310 | |
| 3311 | ; |
| 3312 | return 0; |
| 3313 | } |
| 3314 | _ACEOF |
| 3315 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3316 | |
| 3317 | else |
| 3318 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3319 | CFLAGS="-g" |
| 3320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3321 | /* end confdefs.h. */ |
| 3322 | |
| 3323 | int |
| 3324 | main () |
| 3325 | { |
| 3326 | |
| 3327 | ; |
| 3328 | return 0; |
| 3329 | } |
| 3330 | _ACEOF |
| 3331 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3332 | ac_cv_prog_cc_g=yes |
| 3333 | fi |
| 3334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3335 | fi |
| 3336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3337 | fi |
| 3338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3339 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3340 | fi |
| 3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3342 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3343 | if test "$ac_test_CFLAGS" = set; then |
| 3344 | CFLAGS=$ac_save_CFLAGS |
| 3345 | elif test $ac_cv_prog_cc_g = yes; then |
| 3346 | if test "$GCC" = yes; then |
| 3347 | CFLAGS="-g -O2" |
| 3348 | else |
| 3349 | CFLAGS="-g" |
| 3350 | fi |
| 3351 | else |
| 3352 | if test "$GCC" = yes; then |
| 3353 | CFLAGS="-O2" |
| 3354 | else |
| 3355 | CFLAGS= |
| 3356 | fi |
| 3357 | fi |
| 3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3359 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3360 | if ${ac_cv_prog_cc_c89+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3361 | $as_echo_n "(cached) " >&6 |
| 3362 | else |
| 3363 | ac_cv_prog_cc_c89=no |
| 3364 | ac_save_CC=$CC |
| 3365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3366 | /* end confdefs.h. */ |
| 3367 | #include <stdarg.h> |
| 3368 | #include <stdio.h> |
| 3369 | #include <sys/types.h> |
| 3370 | #include <sys/stat.h> |
| 3371 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3372 | struct buf { int x; }; |
| 3373 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3374 | static char *e (p, i) |
| 3375 | char **p; |
| 3376 | int i; |
| 3377 | { |
| 3378 | return p[i]; |
| 3379 | } |
| 3380 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3381 | { |
| 3382 | char *s; |
| 3383 | va_list v; |
| 3384 | va_start (v,p); |
| 3385 | s = g (p, va_arg (v,int)); |
| 3386 | va_end (v); |
| 3387 | return s; |
| 3388 | } |
| 3389 | |
| 3390 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3391 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3392 | These don't provoke an error unfortunately, instead are silently treated |
| 3393 | as 'x'. The following induces an error, until -std is added to get |
| 3394 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3395 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3396 | that's true only with -std. */ |
| 3397 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3398 | |
| 3399 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3400 | inside strings and character constants. */ |
| 3401 | #define FOO(x) 'x' |
| 3402 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3403 | |
| 3404 | int test (int i, double x); |
| 3405 | struct s1 {int (*f) (int a);}; |
| 3406 | struct s2 {int (*f) (double a);}; |
| 3407 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3408 | int argc; |
| 3409 | char **argv; |
| 3410 | int |
| 3411 | main () |
| 3412 | { |
| 3413 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3414 | ; |
| 3415 | return 0; |
| 3416 | } |
| 3417 | _ACEOF |
| 3418 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3419 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3420 | do |
| 3421 | CC="$ac_save_CC $ac_arg" |
| 3422 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3423 | ac_cv_prog_cc_c89=$ac_arg |
| 3424 | fi |
| 3425 | rm -f core conftest.err conftest.$ac_objext |
| 3426 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3427 | done |
| 3428 | rm -f conftest.$ac_ext |
| 3429 | CC=$ac_save_CC |
| 3430 | |
| 3431 | fi |
| 3432 | # AC_CACHE_VAL |
| 3433 | case "x$ac_cv_prog_cc_c89" in |
| 3434 | x) |
| 3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3436 | $as_echo "none needed" >&6; } ;; |
| 3437 | xno) |
| 3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3439 | $as_echo "unsupported" >&6; } ;; |
| 3440 | *) |
| 3441 | CC="$CC $ac_cv_prog_cc_c89" |
| 3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3443 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3444 | esac |
| 3445 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3446 | |
| 3447 | fi |
| 3448 | |
| 3449 | ac_ext=c |
| 3450 | ac_cpp='$CPP $CPPFLAGS' |
| 3451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3454 | DEPDIR="${am__leading_dot}deps" |
| 3455 | |
| 3456 | ac_config_commands="$ac_config_commands depfiles" |
| 3457 | |
| 3458 | |
| 3459 | am_make=${MAKE-make} |
| 3460 | cat > confinc << 'END' |
| 3461 | am__doit: |
| 3462 | @echo this is the am__doit target |
| 3463 | .PHONY: am__doit |
| 3464 | END |
| 3465 | # If we don't find an include directive, just comment out the code. |
| 3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3467 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3468 | am__include="#" |
| 3469 | am__quote= |
| 3470 | _am_result=none |
| 3471 | # First try GNU make style include. |
| 3472 | echo "include confinc" > confmf |
| 3473 | # Ignore all kinds of additional output from `make'. |
| 3474 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3475 | *the\ am__doit\ target*) |
| 3476 | am__include=include |
| 3477 | am__quote= |
| 3478 | _am_result=GNU |
| 3479 | ;; |
| 3480 | esac |
| 3481 | # Now try BSD make style include. |
| 3482 | if test "$am__include" = "#"; then |
| 3483 | echo '.include "confinc"' > confmf |
| 3484 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3485 | *the\ am__doit\ target*) |
| 3486 | am__include=.include |
| 3487 | am__quote="\"" |
| 3488 | _am_result=BSD |
| 3489 | ;; |
| 3490 | esac |
| 3491 | fi |
| 3492 | |
| 3493 | |
| 3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3495 | $as_echo "$_am_result" >&6; } |
| 3496 | rm -f confinc confmf |
| 3497 | |
| 3498 | # Check whether --enable-dependency-tracking was given. |
| 3499 | if test "${enable_dependency_tracking+set}" = set; then : |
| 3500 | enableval=$enable_dependency_tracking; |
| 3501 | fi |
| 3502 | |
| 3503 | if test "x$enable_dependency_tracking" != xno; then |
| 3504 | am_depcomp="$ac_aux_dir/depcomp" |
| 3505 | AMDEPBACKSLASH='\' |
| 3506 | fi |
| 3507 | if test "x$enable_dependency_tracking" != xno; then |
| 3508 | AMDEP_TRUE= |
| 3509 | AMDEP_FALSE='#' |
| 3510 | else |
| 3511 | AMDEP_TRUE='#' |
| 3512 | AMDEP_FALSE= |
| 3513 | fi |
| 3514 | |
| 3515 | |
| 3516 | |
| 3517 | depcc="$CC" am_compiler_list= |
| 3518 | |
| 3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3520 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3521 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3522 | $as_echo_n "(cached) " >&6 |
| 3523 | else |
| 3524 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3525 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3526 | # making bogus files that we don't know about and never remove. For |
| 3527 | # instance it was reported that on HP-UX the gcc test will end up |
| 3528 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3529 | # in D'. |
| 3530 | mkdir conftest.dir |
| 3531 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3532 | # using a relative directory. |
| 3533 | cp "$am_depcomp" conftest.dir |
| 3534 | cd conftest.dir |
| 3535 | # We will build objects and dependencies in a subdirectory because |
| 3536 | # it helps to detect inapplicable dependency modes. For instance |
| 3537 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3538 | # side effect of compilation, but ICC will put the dependencies in |
| 3539 | # the current directory while Tru64 will put them in the object |
| 3540 | # directory. |
| 3541 | mkdir sub |
| 3542 | |
| 3543 | am_cv_CC_dependencies_compiler_type=none |
| 3544 | if test "$am_compiler_list" = ""; then |
| 3545 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3546 | fi |
| 3547 | am__universal=false |
| 3548 | case " $depcc " in #( |
| 3549 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3550 | esac |
| 3551 | |
| 3552 | for depmode in $am_compiler_list; do |
| 3553 | # Setup a source with many dependencies, because some compilers |
| 3554 | # like to wrap large dependency lists on column 80 (with \), and |
| 3555 | # we should not choose a depcomp mode which is confused by this. |
| 3556 | # |
| 3557 | # We need to recreate these files for each test, as the compiler may |
| 3558 | # overwrite some of them when testing with obscure command lines. |
| 3559 | # This happens at least with the AIX C compiler. |
| 3560 | : > sub/conftest.c |
| 3561 | for i in 1 2 3 4 5 6; do |
| 3562 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3563 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3564 | # Solaris 8's {/usr,}/bin/sh. |
| 3565 | touch sub/conftst$i.h |
| 3566 | done |
| 3567 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3568 | |
| 3569 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3570 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3571 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3572 | # versions had trouble with output in subdirs |
| 3573 | am__obj=sub/conftest.${OBJEXT-o} |
| 3574 | am__minus_obj="-o $am__obj" |
| 3575 | case $depmode in |
| 3576 | gcc) |
| 3577 | # This depmode causes a compiler race in universal mode. |
| 3578 | test "$am__universal" = false || continue |
| 3579 | ;; |
| 3580 | nosideeffect) |
| 3581 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3582 | # only be used when explicitly requested |
| 3583 | if test "x$enable_dependency_tracking" = xyes; then |
| 3584 | continue |
| 3585 | else |
| 3586 | break |
| 3587 | fi |
| 3588 | ;; |
| 3589 | msvisualcpp | msvcmsys) |
| 3590 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3591 | # not run yet. These depmodes are late enough in the game, and |
| 3592 | # so weak that their functioning should not be impacted. |
| 3593 | am__obj=conftest.${OBJEXT-o} |
| 3594 | am__minus_obj= |
| 3595 | ;; |
| 3596 | none) break ;; |
| 3597 | esac |
| 3598 | if depmode=$depmode \ |
| 3599 | source=sub/conftest.c object=$am__obj \ |
| 3600 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3601 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 3602 | >/dev/null 2>conftest.err && |
| 3603 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3604 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3605 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 3606 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3607 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3608 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3609 | # that says an option was ignored or not supported. |
| 3610 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3611 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3612 | # The diagnosis changed in icc 8.0: |
| 3613 | # icc: Command line remark: option '-MP' not supported |
| 3614 | if (grep 'ignoring option' conftest.err || |
| 3615 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3616 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3617 | break |
| 3618 | fi |
| 3619 | fi |
| 3620 | done |
| 3621 | |
| 3622 | cd .. |
| 3623 | rm -rf conftest.dir |
| 3624 | else |
| 3625 | am_cv_CC_dependencies_compiler_type=none |
| 3626 | fi |
| 3627 | |
| 3628 | fi |
| 3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3630 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 3631 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3632 | |
| 3633 | if |
| 3634 | test "x$enable_dependency_tracking" != xno \ |
| 3635 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3636 | am__fastdepCC_TRUE= |
| 3637 | am__fastdepCC_FALSE='#' |
| 3638 | else |
| 3639 | am__fastdepCC_TRUE='#' |
| 3640 | am__fastdepCC_FALSE= |
| 3641 | fi |
| 3642 | |
| 3643 | |
| 3644 | |
| 3645 | if test -n "$ac_tool_prefix"; then |
| 3646 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3647 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3649 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3650 | if ${ac_cv_prog_RANLIB+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3651 | $as_echo_n "(cached) " >&6 |
| 3652 | else |
| 3653 | if test -n "$RANLIB"; then |
| 3654 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3655 | else |
| 3656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3657 | for as_dir in $PATH |
| 3658 | do |
| 3659 | IFS=$as_save_IFS |
| 3660 | test -z "$as_dir" && as_dir=. |
| 3661 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3663 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3665 | break 2 |
| 3666 | fi |
| 3667 | done |
| 3668 | done |
| 3669 | IFS=$as_save_IFS |
| 3670 | |
| 3671 | fi |
| 3672 | fi |
| 3673 | RANLIB=$ac_cv_prog_RANLIB |
| 3674 | if test -n "$RANLIB"; then |
| 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 3676 | $as_echo "$RANLIB" >&6; } |
| 3677 | else |
| 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3679 | $as_echo "no" >&6; } |
| 3680 | fi |
| 3681 | |
| 3682 | |
| 3683 | fi |
| 3684 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3685 | ac_ct_RANLIB=$RANLIB |
| 3686 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3687 | set dummy ranlib; ac_word=$2 |
| 3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3689 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3690 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3691 | $as_echo_n "(cached) " >&6 |
| 3692 | else |
| 3693 | if test -n "$ac_ct_RANLIB"; then |
| 3694 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3695 | else |
| 3696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3697 | for as_dir in $PATH |
| 3698 | do |
| 3699 | IFS=$as_save_IFS |
| 3700 | test -z "$as_dir" && as_dir=. |
| 3701 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3703 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3705 | break 2 |
| 3706 | fi |
| 3707 | done |
| 3708 | done |
| 3709 | IFS=$as_save_IFS |
| 3710 | |
| 3711 | fi |
| 3712 | fi |
| 3713 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3714 | if test -n "$ac_ct_RANLIB"; then |
| 3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 3716 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 3717 | else |
| 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3719 | $as_echo "no" >&6; } |
| 3720 | fi |
| 3721 | |
| 3722 | if test "x$ac_ct_RANLIB" = x; then |
| 3723 | RANLIB=":" |
| 3724 | else |
| 3725 | case $cross_compiling:$ac_tool_warned in |
| 3726 | yes:) |
| 3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3728 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3729 | ac_tool_warned=yes ;; |
| 3730 | esac |
| 3731 | RANLIB=$ac_ct_RANLIB |
| 3732 | fi |
| 3733 | else |
| 3734 | RANLIB="$ac_cv_prog_RANLIB" |
| 3735 | fi |
| 3736 | |
| 3737 | |
| 3738 | |
| 3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
| 3740 | $as_echo_n "checking for library containing crypt... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3741 | if ${ac_cv_search_crypt+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3742 | $as_echo_n "(cached) " >&6 |
| 3743 | else |
| 3744 | ac_func_search_save_LIBS=$LIBS |
| 3745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3746 | /* end confdefs.h. */ |
| 3747 | |
| 3748 | /* Override any GCC internal prototype to avoid an error. |
| 3749 | Use char because int might match the return type of a GCC |
| 3750 | builtin and then its argument prototype would still apply. */ |
| 3751 | #ifdef __cplusplus |
| 3752 | extern "C" |
| 3753 | #endif |
| 3754 | char crypt (); |
| 3755 | int |
| 3756 | main () |
| 3757 | { |
| 3758 | return crypt (); |
| 3759 | ; |
| 3760 | return 0; |
| 3761 | } |
| 3762 | _ACEOF |
| 3763 | for ac_lib in '' crypt; do |
| 3764 | if test -z "$ac_lib"; then |
| 3765 | ac_res="none required" |
| 3766 | else |
| 3767 | ac_res=-l$ac_lib |
| 3768 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 3769 | fi |
| 3770 | if ac_fn_c_try_link "$LINENO"; then : |
| 3771 | ac_cv_search_crypt=$ac_res |
| 3772 | fi |
| 3773 | rm -f core conftest.err conftest.$ac_objext \ |
| 3774 | conftest$ac_exeext |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3775 | if ${ac_cv_search_crypt+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3776 | break |
| 3777 | fi |
| 3778 | done |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3779 | if ${ac_cv_search_crypt+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3780 | |
| 3781 | else |
| 3782 | ac_cv_search_crypt=no |
| 3783 | fi |
| 3784 | rm conftest.$ac_ext |
| 3785 | LIBS=$ac_func_search_save_LIBS |
| 3786 | fi |
| 3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 |
| 3788 | $as_echo "$ac_cv_search_crypt" >&6; } |
| 3789 | ac_res=$ac_cv_search_crypt |
| 3790 | if test "$ac_res" != no; then : |
| 3791 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 3792 | LIBCRYPT="-lcrypt"; |
| 3793 | $as_echo "#define VTY_CRYPT_PW /**/" >>confdefs.h |
| 3794 | |
| 3795 | fi |
| 3796 | |
| 3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gtp_new" >&5 |
| 3798 | $as_echo_n "checking for library containing gtp_new... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3799 | if ${ac_cv_search_gtp_new+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3800 | $as_echo_n "(cached) " >&6 |
| 3801 | else |
| 3802 | ac_func_search_save_LIBS=$LIBS |
| 3803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3804 | /* end confdefs.h. */ |
| 3805 | |
| 3806 | /* Override any GCC internal prototype to avoid an error. |
| 3807 | Use char because int might match the return type of a GCC |
| 3808 | builtin and then its argument prototype would still apply. */ |
| 3809 | #ifdef __cplusplus |
| 3810 | extern "C" |
| 3811 | #endif |
| 3812 | char gtp_new (); |
| 3813 | int |
| 3814 | main () |
| 3815 | { |
| 3816 | return gtp_new (); |
| 3817 | ; |
| 3818 | return 0; |
| 3819 | } |
| 3820 | _ACEOF |
| 3821 | for ac_lib in '' gtp; do |
| 3822 | if test -z "$ac_lib"; then |
| 3823 | ac_res="none required" |
| 3824 | else |
| 3825 | ac_res=-l$ac_lib |
| 3826 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 3827 | fi |
| 3828 | if ac_fn_c_try_link "$LINENO"; then : |
| 3829 | ac_cv_search_gtp_new=$ac_res |
| 3830 | fi |
| 3831 | rm -f core conftest.err conftest.$ac_objext \ |
| 3832 | conftest$ac_exeext |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3833 | if ${ac_cv_search_gtp_new+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3834 | break |
| 3835 | fi |
| 3836 | done |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3837 | if ${ac_cv_search_gtp_new+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3838 | |
| 3839 | else |
| 3840 | ac_cv_search_gtp_new=no |
| 3841 | fi |
| 3842 | rm conftest.$ac_ext |
| 3843 | LIBS=$ac_func_search_save_LIBS |
| 3844 | fi |
| 3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gtp_new" >&5 |
| 3846 | $as_echo "$ac_cv_search_gtp_new" >&6; } |
| 3847 | ac_res=$ac_cv_search_gtp_new |
| 3848 | if test "$ac_res" != no; then : |
| 3849 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 3850 | LIBCRYPT="-lgtp"; GPRS_LIBGTP=1 |
| 3851 | |
| 3852 | fi |
| 3853 | |
| 3854 | |
| 3855 | if test "x$GPRS_LIBGTP" != "x"; then |
| 3856 | HAVE_LIBGTP_TRUE= |
| 3857 | HAVE_LIBGTP_FALSE='#' |
| 3858 | else |
| 3859 | HAVE_LIBGTP_TRUE='#' |
| 3860 | HAVE_LIBGTP_FALSE= |
| 3861 | fi |
| 3862 | |
| 3863 | |
| 3864 | |
| 3865 | |
| 3866 | |
| 3867 | |
| 3868 | |
| 3869 | |
| 3870 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3871 | |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3872 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 3873 | if test -n "$ac_tool_prefix"; then |
| 3874 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 3875 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 3876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3877 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3878 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3879 | $as_echo_n "(cached) " >&6 |
| 3880 | else |
| 3881 | case $PKG_CONFIG in |
| 3882 | [\\/]* | ?:[\\/]*) |
| 3883 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 3884 | ;; |
| 3885 | *) |
| 3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3887 | for as_dir in $PATH |
| 3888 | do |
| 3889 | IFS=$as_save_IFS |
| 3890 | test -z "$as_dir" && as_dir=. |
| 3891 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3893 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 3894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3895 | break 2 |
| 3896 | fi |
| 3897 | done |
| 3898 | done |
| 3899 | IFS=$as_save_IFS |
| 3900 | |
| 3901 | ;; |
| 3902 | esac |
| 3903 | fi |
| 3904 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 3905 | if test -n "$PKG_CONFIG"; then |
| 3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 3907 | $as_echo "$PKG_CONFIG" >&6; } |
| 3908 | else |
| 3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3910 | $as_echo "no" >&6; } |
| 3911 | fi |
| 3912 | |
| 3913 | |
| 3914 | fi |
| 3915 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 3916 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 3917 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 3918 | set dummy pkg-config; ac_word=$2 |
| 3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3920 | $as_echo_n "checking for $ac_word... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 3921 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 3922 | $as_echo_n "(cached) " >&6 |
| 3923 | else |
| 3924 | case $ac_pt_PKG_CONFIG in |
| 3925 | [\\/]* | ?:[\\/]*) |
| 3926 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 3927 | ;; |
| 3928 | *) |
| 3929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3930 | for as_dir in $PATH |
| 3931 | do |
| 3932 | IFS=$as_save_IFS |
| 3933 | test -z "$as_dir" && as_dir=. |
| 3934 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3936 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 3937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3938 | break 2 |
| 3939 | fi |
| 3940 | done |
| 3941 | done |
| 3942 | IFS=$as_save_IFS |
| 3943 | |
| 3944 | ;; |
| 3945 | esac |
| 3946 | fi |
| 3947 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 3948 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 3950 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 3951 | else |
| 3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3953 | $as_echo "no" >&6; } |
| 3954 | fi |
| 3955 | |
| 3956 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 3957 | PKG_CONFIG="" |
| 3958 | else |
| 3959 | case $cross_compiling:$ac_tool_warned in |
| 3960 | yes:) |
| 3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3962 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3963 | ac_tool_warned=yes ;; |
| 3964 | esac |
| 3965 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 3966 | fi |
| 3967 | else |
| 3968 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 3969 | fi |
| 3970 | |
| 3971 | fi |
| 3972 | if test -n "$PKG_CONFIG"; then |
| 3973 | _pkg_min_version=0.9.0 |
| 3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 3975 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 3976 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3978 | $as_echo "yes" >&6; } |
| 3979 | else |
| 3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3981 | $as_echo "no" >&6; } |
| 3982 | PKG_CONFIG="" |
| 3983 | fi |
| 3984 | fi |
| 3985 | # Check whether --enable-nat was given. |
| 3986 | if test "${enable_nat+set}" = set; then : |
| 3987 | enableval=$enable_nat; |
| 3988 | |
| 3989 | pkg_failed=no |
| 3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSMOSCCP" >&5 |
| 3991 | $as_echo_n "checking for LIBOSMOSCCP... " >&6; } |
| 3992 | |
| 3993 | if test -n "$LIBOSMOSCCP_CFLAGS"; then |
| 3994 | pkg_cv_LIBOSMOSCCP_CFLAGS="$LIBOSMOSCCP_CFLAGS" |
| 3995 | elif test -n "$PKG_CONFIG"; then |
| 3996 | if test -n "$PKG_CONFIG" && \ |
| 3997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmo-sccp >= 0.0.2\""; } >&5 |
| 3998 | ($PKG_CONFIG --exists --print-errors "libosmo-sccp >= 0.0.2") 2>&5 |
| 3999 | ac_status=$? |
| 4000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4001 | test $ac_status = 0; }; then |
| 4002 | pkg_cv_LIBOSMOSCCP_CFLAGS=`$PKG_CONFIG --cflags "libosmo-sccp >= 0.0.2" 2>/dev/null` |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4003 | test "x$?" != "x0" && pkg_failed=yes |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4004 | else |
| 4005 | pkg_failed=yes |
| 4006 | fi |
| 4007 | else |
| 4008 | pkg_failed=untried |
| 4009 | fi |
| 4010 | if test -n "$LIBOSMOSCCP_LIBS"; then |
| 4011 | pkg_cv_LIBOSMOSCCP_LIBS="$LIBOSMOSCCP_LIBS" |
| 4012 | elif test -n "$PKG_CONFIG"; then |
| 4013 | if test -n "$PKG_CONFIG" && \ |
| 4014 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmo-sccp >= 0.0.2\""; } >&5 |
| 4015 | ($PKG_CONFIG --exists --print-errors "libosmo-sccp >= 0.0.2") 2>&5 |
| 4016 | ac_status=$? |
| 4017 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4018 | test $ac_status = 0; }; then |
| 4019 | pkg_cv_LIBOSMOSCCP_LIBS=`$PKG_CONFIG --libs "libosmo-sccp >= 0.0.2" 2>/dev/null` |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4020 | test "x$?" != "x0" && pkg_failed=yes |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4021 | else |
| 4022 | pkg_failed=yes |
| 4023 | fi |
| 4024 | else |
| 4025 | pkg_failed=untried |
| 4026 | fi |
| 4027 | |
| 4028 | |
| 4029 | |
| 4030 | if test $pkg_failed = yes; then |
| 4031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4032 | $as_echo "no" >&6; } |
| 4033 | |
| 4034 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 4035 | _pkg_short_errors_supported=yes |
| 4036 | else |
| 4037 | _pkg_short_errors_supported=no |
| 4038 | fi |
| 4039 | if test $_pkg_short_errors_supported = yes; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4040 | LIBOSMOSCCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmo-sccp >= 0.0.2" 2>&1` |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4041 | else |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4042 | LIBOSMOSCCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmo-sccp >= 0.0.2" 2>&1` |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4043 | fi |
| 4044 | # Put the nasty error message in config.log where it belongs |
| 4045 | echo "$LIBOSMOSCCP_PKG_ERRORS" >&5 |
| 4046 | |
| 4047 | as_fn_error $? "Package requirements (libosmo-sccp >= 0.0.2) were not met: |
| 4048 | |
| 4049 | $LIBOSMOSCCP_PKG_ERRORS |
| 4050 | |
| 4051 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 4052 | installed software in a non-standard prefix. |
| 4053 | |
| 4054 | Alternatively, you may set the environment variables LIBOSMOSCCP_CFLAGS |
| 4055 | and LIBOSMOSCCP_LIBS to avoid the need to call pkg-config. |
| 4056 | See the pkg-config man page for more details." "$LINENO" 5 |
| 4057 | elif test $pkg_failed = untried; then |
| 4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4059 | $as_echo "no" >&6; } |
| 4060 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4061 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4062 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
| 4063 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 4064 | path to pkg-config. |
| 4065 | |
| 4066 | Alternatively, you may set the environment variables LIBOSMOSCCP_CFLAGS |
| 4067 | and LIBOSMOSCCP_LIBS to avoid the need to call pkg-config. |
| 4068 | See the pkg-config man page for more details. |
| 4069 | |
| 4070 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4071 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4072 | else |
| 4073 | LIBOSMOSCCP_CFLAGS=$pkg_cv_LIBOSMOSCCP_CFLAGS |
| 4074 | LIBOSMOSCCP_LIBS=$pkg_cv_LIBOSMOSCCP_LIBS |
| 4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4076 | $as_echo "yes" >&6; } |
| 4077 | |
| 4078 | fi |
| 4079 | osmo_ac_build_nat="yes" |
| 4080 | |
| 4081 | else |
| 4082 | |
| 4083 | osmo_ac_build_nat="no" |
| 4084 | |
| 4085 | fi |
| 4086 | |
| 4087 | if test "x$osmo_ac_build_nat" = "xyes"; then |
| 4088 | BUILD_NAT_TRUE= |
| 4089 | BUILD_NAT_FALSE='#' |
| 4090 | else |
| 4091 | BUILD_NAT_TRUE='#' |
| 4092 | BUILD_NAT_FALSE= |
| 4093 | fi |
| 4094 | |
| 4095 | |
| 4096 | # Check whether --enable-osmo-bsc was given. |
| 4097 | if test "${enable_osmo_bsc+set}" = set; then : |
| 4098 | enableval=$enable_osmo_bsc; |
| 4099 | |
| 4100 | pkg_failed=no |
| 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSMOSCCP" >&5 |
| 4102 | $as_echo_n "checking for LIBOSMOSCCP... " >&6; } |
| 4103 | |
| 4104 | if test -n "$LIBOSMOSCCP_CFLAGS"; then |
| 4105 | pkg_cv_LIBOSMOSCCP_CFLAGS="$LIBOSMOSCCP_CFLAGS" |
| 4106 | elif test -n "$PKG_CONFIG"; then |
| 4107 | if test -n "$PKG_CONFIG" && \ |
| 4108 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmo-sccp >= 0.0.2\""; } >&5 |
| 4109 | ($PKG_CONFIG --exists --print-errors "libosmo-sccp >= 0.0.2") 2>&5 |
| 4110 | ac_status=$? |
| 4111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4112 | test $ac_status = 0; }; then |
| 4113 | pkg_cv_LIBOSMOSCCP_CFLAGS=`$PKG_CONFIG --cflags "libosmo-sccp >= 0.0.2" 2>/dev/null` |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4114 | test "x$?" != "x0" && pkg_failed=yes |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4115 | else |
| 4116 | pkg_failed=yes |
| 4117 | fi |
| 4118 | else |
| 4119 | pkg_failed=untried |
| 4120 | fi |
| 4121 | if test -n "$LIBOSMOSCCP_LIBS"; then |
| 4122 | pkg_cv_LIBOSMOSCCP_LIBS="$LIBOSMOSCCP_LIBS" |
| 4123 | elif test -n "$PKG_CONFIG"; then |
| 4124 | if test -n "$PKG_CONFIG" && \ |
| 4125 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmo-sccp >= 0.0.2\""; } >&5 |
| 4126 | ($PKG_CONFIG --exists --print-errors "libosmo-sccp >= 0.0.2") 2>&5 |
| 4127 | ac_status=$? |
| 4128 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4129 | test $ac_status = 0; }; then |
| 4130 | pkg_cv_LIBOSMOSCCP_LIBS=`$PKG_CONFIG --libs "libosmo-sccp >= 0.0.2" 2>/dev/null` |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4131 | test "x$?" != "x0" && pkg_failed=yes |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4132 | else |
| 4133 | pkg_failed=yes |
| 4134 | fi |
| 4135 | else |
| 4136 | pkg_failed=untried |
| 4137 | fi |
| 4138 | |
| 4139 | |
| 4140 | |
| 4141 | if test $pkg_failed = yes; then |
| 4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4143 | $as_echo "no" >&6; } |
| 4144 | |
| 4145 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 4146 | _pkg_short_errors_supported=yes |
| 4147 | else |
| 4148 | _pkg_short_errors_supported=no |
| 4149 | fi |
| 4150 | if test $_pkg_short_errors_supported = yes; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4151 | LIBOSMOSCCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmo-sccp >= 0.0.2" 2>&1` |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4152 | else |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4153 | LIBOSMOSCCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmo-sccp >= 0.0.2" 2>&1` |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4154 | fi |
| 4155 | # Put the nasty error message in config.log where it belongs |
| 4156 | echo "$LIBOSMOSCCP_PKG_ERRORS" >&5 |
| 4157 | |
| 4158 | as_fn_error $? "Package requirements (libosmo-sccp >= 0.0.2) were not met: |
| 4159 | |
| 4160 | $LIBOSMOSCCP_PKG_ERRORS |
| 4161 | |
| 4162 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 4163 | installed software in a non-standard prefix. |
| 4164 | |
| 4165 | Alternatively, you may set the environment variables LIBOSMOSCCP_CFLAGS |
| 4166 | and LIBOSMOSCCP_LIBS to avoid the need to call pkg-config. |
| 4167 | See the pkg-config man page for more details." "$LINENO" 5 |
| 4168 | elif test $pkg_failed = untried; then |
| 4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4170 | $as_echo "no" >&6; } |
| 4171 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4172 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4173 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
| 4174 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 4175 | path to pkg-config. |
| 4176 | |
| 4177 | Alternatively, you may set the environment variables LIBOSMOSCCP_CFLAGS |
| 4178 | and LIBOSMOSCCP_LIBS to avoid the need to call pkg-config. |
| 4179 | See the pkg-config man page for more details. |
| 4180 | |
| 4181 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4182 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4183 | else |
| 4184 | LIBOSMOSCCP_CFLAGS=$pkg_cv_LIBOSMOSCCP_CFLAGS |
| 4185 | LIBOSMOSCCP_LIBS=$pkg_cv_LIBOSMOSCCP_LIBS |
| 4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4187 | $as_echo "yes" >&6; } |
| 4188 | |
| 4189 | fi |
| 4190 | osmo_ac_build_bsc="yes" |
| 4191 | |
| 4192 | else |
| 4193 | |
| 4194 | osmo_ac_build_bsc="no" |
| 4195 | |
| 4196 | fi |
| 4197 | |
| 4198 | if test "x$osmo_ac_build_bsc" = "xyes"; then |
| 4199 | BUILD_BSC_TRUE= |
| 4200 | BUILD_BSC_FALSE='#' |
| 4201 | else |
| 4202 | BUILD_BSC_TRUE='#' |
| 4203 | BUILD_BSC_FALSE= |
| 4204 | fi |
| 4205 | |
| 4206 | |
| 4207 | |
| 4208 | pkg_failed=no |
| 4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSMOCORE" >&5 |
| 4210 | $as_echo_n "checking for LIBOSMOCORE... " >&6; } |
| 4211 | |
| 4212 | if test -n "$LIBOSMOCORE_CFLAGS"; then |
| 4213 | pkg_cv_LIBOSMOCORE_CFLAGS="$LIBOSMOCORE_CFLAGS" |
| 4214 | elif test -n "$PKG_CONFIG"; then |
| 4215 | if test -n "$PKG_CONFIG" && \ |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4216 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmocore >= 0.3.2\""; } >&5 |
| 4217 | ($PKG_CONFIG --exists --print-errors "libosmocore >= 0.3.2") 2>&5 |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4218 | ac_status=$? |
| 4219 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4220 | test $ac_status = 0; }; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4221 | pkg_cv_LIBOSMOCORE_CFLAGS=`$PKG_CONFIG --cflags "libosmocore >= 0.3.2" 2>/dev/null` |
| 4222 | test "x$?" != "x0" && pkg_failed=yes |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4223 | else |
| 4224 | pkg_failed=yes |
| 4225 | fi |
| 4226 | else |
| 4227 | pkg_failed=untried |
| 4228 | fi |
| 4229 | if test -n "$LIBOSMOCORE_LIBS"; then |
| 4230 | pkg_cv_LIBOSMOCORE_LIBS="$LIBOSMOCORE_LIBS" |
| 4231 | elif test -n "$PKG_CONFIG"; then |
| 4232 | if test -n "$PKG_CONFIG" && \ |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4233 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmocore >= 0.3.2\""; } >&5 |
| 4234 | ($PKG_CONFIG --exists --print-errors "libosmocore >= 0.3.2") 2>&5 |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4235 | ac_status=$? |
| 4236 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4237 | test $ac_status = 0; }; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4238 | pkg_cv_LIBOSMOCORE_LIBS=`$PKG_CONFIG --libs "libosmocore >= 0.3.2" 2>/dev/null` |
| 4239 | test "x$?" != "x0" && pkg_failed=yes |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4240 | else |
| 4241 | pkg_failed=yes |
| 4242 | fi |
| 4243 | else |
| 4244 | pkg_failed=untried |
| 4245 | fi |
| 4246 | |
| 4247 | |
| 4248 | |
| 4249 | if test $pkg_failed = yes; then |
| 4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4251 | $as_echo "no" >&6; } |
| 4252 | |
| 4253 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 4254 | _pkg_short_errors_supported=yes |
| 4255 | else |
| 4256 | _pkg_short_errors_supported=no |
| 4257 | fi |
| 4258 | if test $_pkg_short_errors_supported = yes; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4259 | LIBOSMOCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmocore >= 0.3.2" 2>&1` |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4260 | else |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4261 | LIBOSMOCORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmocore >= 0.3.2" 2>&1` |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4262 | fi |
| 4263 | # Put the nasty error message in config.log where it belongs |
| 4264 | echo "$LIBOSMOCORE_PKG_ERRORS" >&5 |
| 4265 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4266 | as_fn_error $? "Package requirements (libosmocore >= 0.3.2) were not met: |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4267 | |
| 4268 | $LIBOSMOCORE_PKG_ERRORS |
| 4269 | |
| 4270 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 4271 | installed software in a non-standard prefix. |
| 4272 | |
| 4273 | Alternatively, you may set the environment variables LIBOSMOCORE_CFLAGS |
| 4274 | and LIBOSMOCORE_LIBS to avoid the need to call pkg-config. |
| 4275 | See the pkg-config man page for more details." "$LINENO" 5 |
| 4276 | elif test $pkg_failed = untried; then |
| 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4278 | $as_echo "no" >&6; } |
| 4279 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4281 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
| 4282 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 4283 | path to pkg-config. |
| 4284 | |
| 4285 | Alternatively, you may set the environment variables LIBOSMOCORE_CFLAGS |
| 4286 | and LIBOSMOCORE_LIBS to avoid the need to call pkg-config. |
| 4287 | See the pkg-config man page for more details. |
| 4288 | |
| 4289 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4290 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4291 | else |
| 4292 | LIBOSMOCORE_CFLAGS=$pkg_cv_LIBOSMOCORE_CFLAGS |
| 4293 | LIBOSMOCORE_LIBS=$pkg_cv_LIBOSMOCORE_LIBS |
| 4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4295 | $as_echo "yes" >&6; } |
| 4296 | |
| 4297 | fi |
| 4298 | |
| 4299 | pkg_failed=no |
| 4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSMOVTY" >&5 |
| 4301 | $as_echo_n "checking for LIBOSMOVTY... " >&6; } |
| 4302 | |
| 4303 | if test -n "$LIBOSMOVTY_CFLAGS"; then |
| 4304 | pkg_cv_LIBOSMOVTY_CFLAGS="$LIBOSMOVTY_CFLAGS" |
| 4305 | elif test -n "$PKG_CONFIG"; then |
| 4306 | if test -n "$PKG_CONFIG" && \ |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4307 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmovty >= 0.3.0\""; } >&5 |
| 4308 | ($PKG_CONFIG --exists --print-errors "libosmovty >= 0.3.0") 2>&5 |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4309 | ac_status=$? |
| 4310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4311 | test $ac_status = 0; }; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4312 | pkg_cv_LIBOSMOVTY_CFLAGS=`$PKG_CONFIG --cflags "libosmovty >= 0.3.0" 2>/dev/null` |
| 4313 | test "x$?" != "x0" && pkg_failed=yes |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4314 | else |
| 4315 | pkg_failed=yes |
| 4316 | fi |
| 4317 | else |
| 4318 | pkg_failed=untried |
| 4319 | fi |
| 4320 | if test -n "$LIBOSMOVTY_LIBS"; then |
| 4321 | pkg_cv_LIBOSMOVTY_LIBS="$LIBOSMOVTY_LIBS" |
| 4322 | elif test -n "$PKG_CONFIG"; then |
| 4323 | if test -n "$PKG_CONFIG" && \ |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4324 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmovty >= 0.3.0\""; } >&5 |
| 4325 | ($PKG_CONFIG --exists --print-errors "libosmovty >= 0.3.0") 2>&5 |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4326 | ac_status=$? |
| 4327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4328 | test $ac_status = 0; }; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4329 | pkg_cv_LIBOSMOVTY_LIBS=`$PKG_CONFIG --libs "libosmovty >= 0.3.0" 2>/dev/null` |
| 4330 | test "x$?" != "x0" && pkg_failed=yes |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4331 | else |
| 4332 | pkg_failed=yes |
| 4333 | fi |
| 4334 | else |
| 4335 | pkg_failed=untried |
| 4336 | fi |
| 4337 | |
| 4338 | |
| 4339 | |
| 4340 | if test $pkg_failed = yes; then |
| 4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4342 | $as_echo "no" >&6; } |
| 4343 | |
| 4344 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 4345 | _pkg_short_errors_supported=yes |
| 4346 | else |
| 4347 | _pkg_short_errors_supported=no |
| 4348 | fi |
| 4349 | if test $_pkg_short_errors_supported = yes; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4350 | LIBOSMOVTY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmovty >= 0.3.0" 2>&1` |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4351 | else |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4352 | LIBOSMOVTY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmovty >= 0.3.0" 2>&1` |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4353 | fi |
| 4354 | # Put the nasty error message in config.log where it belongs |
| 4355 | echo "$LIBOSMOVTY_PKG_ERRORS" >&5 |
| 4356 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4357 | as_fn_error $? "Package requirements (libosmovty >= 0.3.0) were not met: |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4358 | |
| 4359 | $LIBOSMOVTY_PKG_ERRORS |
| 4360 | |
| 4361 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 4362 | installed software in a non-standard prefix. |
| 4363 | |
| 4364 | Alternatively, you may set the environment variables LIBOSMOVTY_CFLAGS |
| 4365 | and LIBOSMOVTY_LIBS to avoid the need to call pkg-config. |
| 4366 | See the pkg-config man page for more details." "$LINENO" 5 |
| 4367 | elif test $pkg_failed = untried; then |
| 4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4369 | $as_echo "no" >&6; } |
| 4370 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4371 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4372 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
| 4373 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 4374 | path to pkg-config. |
| 4375 | |
| 4376 | Alternatively, you may set the environment variables LIBOSMOVTY_CFLAGS |
| 4377 | and LIBOSMOVTY_LIBS to avoid the need to call pkg-config. |
| 4378 | See the pkg-config man page for more details. |
| 4379 | |
| 4380 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4381 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4382 | else |
| 4383 | LIBOSMOVTY_CFLAGS=$pkg_cv_LIBOSMOVTY_CFLAGS |
| 4384 | LIBOSMOVTY_LIBS=$pkg_cv_LIBOSMOVTY_LIBS |
| 4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4386 | $as_echo "yes" >&6; } |
| 4387 | |
| 4388 | fi |
| 4389 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4390 | pkg_failed=no |
| 4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOSMOGSM" >&5 |
| 4392 | $as_echo_n "checking for LIBOSMOGSM... " >&6; } |
| 4393 | |
| 4394 | if test -n "$LIBOSMOGSM_CFLAGS"; then |
| 4395 | pkg_cv_LIBOSMOGSM_CFLAGS="$LIBOSMOGSM_CFLAGS" |
| 4396 | elif test -n "$PKG_CONFIG"; then |
| 4397 | if test -n "$PKG_CONFIG" && \ |
| 4398 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmogsm >= 0.3.0\""; } >&5 |
| 4399 | ($PKG_CONFIG --exists --print-errors "libosmogsm >= 0.3.0") 2>&5 |
| 4400 | ac_status=$? |
| 4401 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4402 | test $ac_status = 0; }; then |
| 4403 | pkg_cv_LIBOSMOGSM_CFLAGS=`$PKG_CONFIG --cflags "libosmogsm >= 0.3.0" 2>/dev/null` |
| 4404 | test "x$?" != "x0" && pkg_failed=yes |
| 4405 | else |
| 4406 | pkg_failed=yes |
| 4407 | fi |
| 4408 | else |
| 4409 | pkg_failed=untried |
| 4410 | fi |
| 4411 | if test -n "$LIBOSMOGSM_LIBS"; then |
| 4412 | pkg_cv_LIBOSMOGSM_LIBS="$LIBOSMOGSM_LIBS" |
| 4413 | elif test -n "$PKG_CONFIG"; then |
| 4414 | if test -n "$PKG_CONFIG" && \ |
| 4415 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmogsm >= 0.3.0\""; } >&5 |
| 4416 | ($PKG_CONFIG --exists --print-errors "libosmogsm >= 0.3.0") 2>&5 |
| 4417 | ac_status=$? |
| 4418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4419 | test $ac_status = 0; }; then |
| 4420 | pkg_cv_LIBOSMOGSM_LIBS=`$PKG_CONFIG --libs "libosmogsm >= 0.3.0" 2>/dev/null` |
| 4421 | test "x$?" != "x0" && pkg_failed=yes |
| 4422 | else |
| 4423 | pkg_failed=yes |
| 4424 | fi |
| 4425 | else |
| 4426 | pkg_failed=untried |
| 4427 | fi |
| 4428 | |
| 4429 | |
| 4430 | |
| 4431 | if test $pkg_failed = yes; then |
| 4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4433 | $as_echo "no" >&6; } |
| 4434 | |
| 4435 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 4436 | _pkg_short_errors_supported=yes |
| 4437 | else |
| 4438 | _pkg_short_errors_supported=no |
| 4439 | fi |
| 4440 | if test $_pkg_short_errors_supported = yes; then |
| 4441 | LIBOSMOGSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmogsm >= 0.3.0" 2>&1` |
| 4442 | else |
| 4443 | LIBOSMOGSM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmogsm >= 0.3.0" 2>&1` |
| 4444 | fi |
| 4445 | # Put the nasty error message in config.log where it belongs |
| 4446 | echo "$LIBOSMOGSM_PKG_ERRORS" >&5 |
| 4447 | |
| 4448 | as_fn_error $? "Package requirements (libosmogsm >= 0.3.0) were not met: |
| 4449 | |
| 4450 | $LIBOSMOGSM_PKG_ERRORS |
| 4451 | |
| 4452 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 4453 | installed software in a non-standard prefix. |
| 4454 | |
| 4455 | Alternatively, you may set the environment variables LIBOSMOGSM_CFLAGS |
| 4456 | and LIBOSMOGSM_LIBS to avoid the need to call pkg-config. |
| 4457 | See the pkg-config man page for more details." "$LINENO" 5 |
| 4458 | elif test $pkg_failed = untried; then |
| 4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4460 | $as_echo "no" >&6; } |
| 4461 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4463 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
| 4464 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 4465 | path to pkg-config. |
| 4466 | |
| 4467 | Alternatively, you may set the environment variables LIBOSMOGSM_CFLAGS |
| 4468 | and LIBOSMOGSM_LIBS to avoid the need to call pkg-config. |
| 4469 | See the pkg-config man page for more details. |
| 4470 | |
| 4471 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 4472 | See \`config.log' for more details" "$LINENO" 5; } |
| 4473 | else |
| 4474 | LIBOSMOGSM_CFLAGS=$pkg_cv_LIBOSMOGSM_CFLAGS |
| 4475 | LIBOSMOGSM_LIBS=$pkg_cv_LIBOSMOGSM_LIBS |
| 4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4477 | $as_echo "yes" >&6; } |
| 4478 | |
| 4479 | fi |
| 4480 | |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4481 | ac_ext=c |
| 4482 | ac_cpp='$CPP $CPPFLAGS' |
| 4483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4487 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4488 | # On Suns, sometimes $CPP names a directory. |
| 4489 | if test -n "$CPP" && test -d "$CPP"; then |
| 4490 | CPP= |
| 4491 | fi |
| 4492 | if test -z "$CPP"; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4493 | if ${ac_cv_prog_CPP+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4494 | $as_echo_n "(cached) " >&6 |
| 4495 | else |
| 4496 | # Double quotes because CPP needs to be expanded |
| 4497 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4498 | do |
| 4499 | ac_preproc_ok=false |
| 4500 | for ac_c_preproc_warn_flag in '' yes |
| 4501 | do |
| 4502 | # Use a header file that comes with gcc, so configuring glibc |
| 4503 | # with a fresh cross-compiler works. |
| 4504 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4505 | # <limits.h> exists even on freestanding compilers. |
| 4506 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4507 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4509 | /* end confdefs.h. */ |
| 4510 | #ifdef __STDC__ |
| 4511 | # include <limits.h> |
| 4512 | #else |
| 4513 | # include <assert.h> |
| 4514 | #endif |
| 4515 | Syntax error |
| 4516 | _ACEOF |
| 4517 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4518 | |
| 4519 | else |
| 4520 | # Broken: fails on valid input. |
| 4521 | continue |
| 4522 | fi |
| 4523 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4524 | |
| 4525 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4526 | # can be detected and how. |
| 4527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4528 | /* end confdefs.h. */ |
| 4529 | #include <ac_nonexistent.h> |
| 4530 | _ACEOF |
| 4531 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4532 | # Broken: success on invalid input. |
| 4533 | continue |
| 4534 | else |
| 4535 | # Passes both tests. |
| 4536 | ac_preproc_ok=: |
| 4537 | break |
| 4538 | fi |
| 4539 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4540 | |
| 4541 | done |
| 4542 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4543 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4544 | if $ac_preproc_ok; then : |
| 4545 | break |
| 4546 | fi |
| 4547 | |
| 4548 | done |
| 4549 | ac_cv_prog_CPP=$CPP |
| 4550 | |
| 4551 | fi |
| 4552 | CPP=$ac_cv_prog_CPP |
| 4553 | else |
| 4554 | ac_cv_prog_CPP=$CPP |
| 4555 | fi |
| 4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4557 | $as_echo "$CPP" >&6; } |
| 4558 | ac_preproc_ok=false |
| 4559 | for ac_c_preproc_warn_flag in '' yes |
| 4560 | do |
| 4561 | # Use a header file that comes with gcc, so configuring glibc |
| 4562 | # with a fresh cross-compiler works. |
| 4563 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4564 | # <limits.h> exists even on freestanding compilers. |
| 4565 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4566 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4568 | /* end confdefs.h. */ |
| 4569 | #ifdef __STDC__ |
| 4570 | # include <limits.h> |
| 4571 | #else |
| 4572 | # include <assert.h> |
| 4573 | #endif |
| 4574 | Syntax error |
| 4575 | _ACEOF |
| 4576 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4577 | |
| 4578 | else |
| 4579 | # Broken: fails on valid input. |
| 4580 | continue |
| 4581 | fi |
| 4582 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4583 | |
| 4584 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4585 | # can be detected and how. |
| 4586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4587 | /* end confdefs.h. */ |
| 4588 | #include <ac_nonexistent.h> |
| 4589 | _ACEOF |
| 4590 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4591 | # Broken: success on invalid input. |
| 4592 | continue |
| 4593 | else |
| 4594 | # Passes both tests. |
| 4595 | ac_preproc_ok=: |
| 4596 | break |
| 4597 | fi |
| 4598 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4599 | |
| 4600 | done |
| 4601 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4602 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4603 | if $ac_preproc_ok; then : |
| 4604 | |
| 4605 | else |
| 4606 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4607 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4608 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4609 | See \`config.log' for more details" "$LINENO" 5; } |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4610 | fi |
| 4611 | |
| 4612 | ac_ext=c |
| 4613 | ac_cpp='$CPP $CPPFLAGS' |
| 4614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4617 | |
| 4618 | |
| 4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4620 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4621 | if ${ac_cv_path_GREP+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4622 | $as_echo_n "(cached) " >&6 |
| 4623 | else |
| 4624 | if test -z "$GREP"; then |
| 4625 | ac_path_GREP_found=false |
| 4626 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4628 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4629 | do |
| 4630 | IFS=$as_save_IFS |
| 4631 | test -z "$as_dir" && as_dir=. |
| 4632 | for ac_prog in grep ggrep; do |
| 4633 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4634 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4635 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4636 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4637 | # Check for GNU $ac_path_GREP |
| 4638 | case `"$ac_path_GREP" --version 2>&1` in |
| 4639 | *GNU*) |
| 4640 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4641 | *) |
| 4642 | ac_count=0 |
| 4643 | $as_echo_n 0123456789 >"conftest.in" |
| 4644 | while : |
| 4645 | do |
| 4646 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4647 | mv "conftest.tmp" "conftest.in" |
| 4648 | cp "conftest.in" "conftest.nl" |
| 4649 | $as_echo 'GREP' >> "conftest.nl" |
| 4650 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4651 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4652 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4653 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4654 | # Best one so far, save it but keep looking for a better one |
| 4655 | ac_cv_path_GREP="$ac_path_GREP" |
| 4656 | ac_path_GREP_max=$ac_count |
| 4657 | fi |
| 4658 | # 10*(2^10) chars as input seems more than enough |
| 4659 | test $ac_count -gt 10 && break |
| 4660 | done |
| 4661 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4662 | esac |
| 4663 | |
| 4664 | $ac_path_GREP_found && break 3 |
| 4665 | done |
| 4666 | done |
| 4667 | done |
| 4668 | IFS=$as_save_IFS |
| 4669 | if test -z "$ac_cv_path_GREP"; then |
| 4670 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4671 | fi |
| 4672 | else |
| 4673 | ac_cv_path_GREP=$GREP |
| 4674 | fi |
| 4675 | |
| 4676 | fi |
| 4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4678 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4679 | GREP="$ac_cv_path_GREP" |
| 4680 | |
| 4681 | |
| 4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4683 | $as_echo_n "checking for egrep... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4684 | if ${ac_cv_path_EGREP+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4685 | $as_echo_n "(cached) " >&6 |
| 4686 | else |
| 4687 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4688 | then ac_cv_path_EGREP="$GREP -E" |
| 4689 | else |
| 4690 | if test -z "$EGREP"; then |
| 4691 | ac_path_EGREP_found=false |
| 4692 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4694 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4695 | do |
| 4696 | IFS=$as_save_IFS |
| 4697 | test -z "$as_dir" && as_dir=. |
| 4698 | for ac_prog in egrep; do |
| 4699 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4700 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4701 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4702 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4703 | # Check for GNU $ac_path_EGREP |
| 4704 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4705 | *GNU*) |
| 4706 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4707 | *) |
| 4708 | ac_count=0 |
| 4709 | $as_echo_n 0123456789 >"conftest.in" |
| 4710 | while : |
| 4711 | do |
| 4712 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4713 | mv "conftest.tmp" "conftest.in" |
| 4714 | cp "conftest.in" "conftest.nl" |
| 4715 | $as_echo 'EGREP' >> "conftest.nl" |
| 4716 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4717 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4718 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4719 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4720 | # Best one so far, save it but keep looking for a better one |
| 4721 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4722 | ac_path_EGREP_max=$ac_count |
| 4723 | fi |
| 4724 | # 10*(2^10) chars as input seems more than enough |
| 4725 | test $ac_count -gt 10 && break |
| 4726 | done |
| 4727 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4728 | esac |
| 4729 | |
| 4730 | $ac_path_EGREP_found && break 3 |
| 4731 | done |
| 4732 | done |
| 4733 | done |
| 4734 | IFS=$as_save_IFS |
| 4735 | if test -z "$ac_cv_path_EGREP"; then |
| 4736 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4737 | fi |
| 4738 | else |
| 4739 | ac_cv_path_EGREP=$EGREP |
| 4740 | fi |
| 4741 | |
| 4742 | fi |
| 4743 | fi |
| 4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4745 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4746 | EGREP="$ac_cv_path_EGREP" |
| 4747 | |
| 4748 | |
| 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4750 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4751 | if ${ac_cv_header_stdc+:} false; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4752 | $as_echo_n "(cached) " >&6 |
| 4753 | else |
| 4754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4755 | /* end confdefs.h. */ |
| 4756 | #include <stdlib.h> |
| 4757 | #include <stdarg.h> |
| 4758 | #include <string.h> |
| 4759 | #include <float.h> |
| 4760 | |
| 4761 | int |
| 4762 | main () |
| 4763 | { |
| 4764 | |
| 4765 | ; |
| 4766 | return 0; |
| 4767 | } |
| 4768 | _ACEOF |
| 4769 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4770 | ac_cv_header_stdc=yes |
| 4771 | else |
| 4772 | ac_cv_header_stdc=no |
| 4773 | fi |
| 4774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4775 | |
| 4776 | if test $ac_cv_header_stdc = yes; then |
| 4777 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4779 | /* end confdefs.h. */ |
| 4780 | #include <string.h> |
| 4781 | |
| 4782 | _ACEOF |
| 4783 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4784 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4785 | |
| 4786 | else |
| 4787 | ac_cv_header_stdc=no |
| 4788 | fi |
| 4789 | rm -f conftest* |
| 4790 | |
| 4791 | fi |
| 4792 | |
| 4793 | if test $ac_cv_header_stdc = yes; then |
| 4794 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4796 | /* end confdefs.h. */ |
| 4797 | #include <stdlib.h> |
| 4798 | |
| 4799 | _ACEOF |
| 4800 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4801 | $EGREP "free" >/dev/null 2>&1; then : |
| 4802 | |
| 4803 | else |
| 4804 | ac_cv_header_stdc=no |
| 4805 | fi |
| 4806 | rm -f conftest* |
| 4807 | |
| 4808 | fi |
| 4809 | |
| 4810 | if test $ac_cv_header_stdc = yes; then |
| 4811 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4812 | if test "$cross_compiling" = yes; then : |
| 4813 | : |
| 4814 | else |
| 4815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4816 | /* end confdefs.h. */ |
| 4817 | #include <ctype.h> |
| 4818 | #include <stdlib.h> |
| 4819 | #if ((' ' & 0x0FF) == 0x020) |
| 4820 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4821 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4822 | #else |
| 4823 | # define ISLOWER(c) \ |
| 4824 | (('a' <= (c) && (c) <= 'i') \ |
| 4825 | || ('j' <= (c) && (c) <= 'r') \ |
| 4826 | || ('s' <= (c) && (c) <= 'z')) |
| 4827 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4828 | #endif |
| 4829 | |
| 4830 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4831 | int |
| 4832 | main () |
| 4833 | { |
| 4834 | int i; |
| 4835 | for (i = 0; i < 256; i++) |
| 4836 | if (XOR (islower (i), ISLOWER (i)) |
| 4837 | || toupper (i) != TOUPPER (i)) |
| 4838 | return 2; |
| 4839 | return 0; |
| 4840 | } |
| 4841 | _ACEOF |
| 4842 | if ac_fn_c_try_run "$LINENO"; then : |
| 4843 | |
| 4844 | else |
| 4845 | ac_cv_header_stdc=no |
| 4846 | fi |
| 4847 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4848 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4849 | fi |
| 4850 | |
| 4851 | fi |
| 4852 | fi |
| 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4854 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4855 | if test $ac_cv_header_stdc = yes; then |
| 4856 | |
| 4857 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4858 | |
| 4859 | fi |
| 4860 | |
| 4861 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4862 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4863 | inttypes.h stdint.h unistd.h |
| 4864 | do : |
| 4865 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4866 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4867 | " |
| 4868 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4869 | cat >>confdefs.h <<_ACEOF |
| 4870 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4871 | _ACEOF |
| 4872 | |
| 4873 | fi |
| 4874 | |
| 4875 | done |
| 4876 | |
| 4877 | |
| 4878 | for ac_header in dahdi/user.h |
| 4879 | do : |
| 4880 | ac_fn_c_check_header_mongrel "$LINENO" "dahdi/user.h" "ac_cv_header_dahdi_user_h" "$ac_includes_default" |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4881 | if test "x$ac_cv_header_dahdi_user_h" = xyes; then : |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4882 | cat >>confdefs.h <<_ACEOF |
| 4883 | #define HAVE_DAHDI_USER_H 1 |
| 4884 | _ACEOF |
| 4885 | |
| 4886 | else |
| 4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DAHDI input driver will not be built" >&5 |
| 4888 | $as_echo "$as_me: WARNING: DAHDI input driver will not be built" >&2;} |
| 4889 | fi |
| 4890 | |
| 4891 | done |
| 4892 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4893 | for ac_header in dbi/dbd.h |
| 4894 | do : |
| 4895 | ac_fn_c_check_header_mongrel "$LINENO" "dbi/dbd.h" "ac_cv_header_dbi_dbd_h" "$ac_includes_default" |
| 4896 | if test "x$ac_cv_header_dbi_dbd_h" = xyes; then : |
| 4897 | cat >>confdefs.h <<_ACEOF |
| 4898 | #define HAVE_DBI_DBD_H 1 |
| 4899 | _ACEOF |
| 4900 | |
| 4901 | else |
| 4902 | as_fn_error $? "DBI library is not installed" "$LINENO" 5 |
| 4903 | fi |
| 4904 | |
| 4905 | done |
| 4906 | |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4907 | |
| 4908 | |
| 4909 | |
| 4910 | # The following test is taken from WebKit's webkit.m4 |
| 4911 | saved_CFLAGS="$CFLAGS" |
| 4912 | CFLAGS="$CFLAGS -fvisibility=hidden " |
| 4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5 |
| 4914 | $as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; } |
| 4915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4916 | /* end confdefs.h. */ |
| 4917 | char foo; |
| 4918 | _ACEOF |
| 4919 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4921 | $as_echo "yes" >&6; } |
| 4922 | SYMBOL_VISIBILITY="-fvisibility=hidden" |
| 4923 | else |
| 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4925 | $as_echo "no" >&6; } |
| 4926 | fi |
| 4927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4928 | CFLAGS="$saved_CFLAGS" |
| 4929 | |
| 4930 | |
| 4931 | # Coverage build taken from WebKit's configure.in |
| 4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable code coverage support" >&5 |
| 4933 | $as_echo_n "checking whether to enable code coverage support... " >&6; } |
| 4934 | # Check whether --enable-coverage was given. |
| 4935 | if test "${enable_coverage+set}" = set; then : |
| 4936 | enableval=$enable_coverage; |
| 4937 | else |
| 4938 | enable_coverage="no" |
| 4939 | fi |
| 4940 | |
| 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5 |
| 4942 | $as_echo "$enable_coverage" >&6; } |
| 4943 | if test "$enable_coverage" = "yes"; then |
| 4944 | COVERAGE_CFLAGS="-ftest-coverage -fprofile-arcs" |
| 4945 | COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs" |
| 4946 | |
| 4947 | |
| 4948 | fi |
| 4949 | |
| 4950 | |
| 4951 | ac_config_headers="$ac_config_headers bscconfig.h" |
| 4952 | |
| 4953 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 4954 | ac_config_files="$ac_config_files openbsc.pc include/openbsc/Makefile include/Makefile src/Makefile src/libtrau/Makefile src/libabis/Makefile src/libbsc/Makefile src/libmsc/Makefile src/libmgcp/Makefile src/libcommon/Makefile src/osmo-nitb/Makefile src/osmo-bsc/Makefile src/osmo-bsc_nat/Makefile src/osmo-bsc_mgcp/Makefile src/ipaccess/Makefile src/utils/Makefile src/libgb/Makefile src/gprs/Makefile tests/Makefile tests/debug/Makefile tests/gsm0408/Makefile tests/db/Makefile tests/channel/Makefile tests/bsc-nat/Makefile tests/mgcp/Makefile doc/Makefile doc/examples/Makefile Makefile" |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 4955 | |
| 4956 | cat >confcache <<\_ACEOF |
| 4957 | # This file is a shell script that caches the results of configure |
| 4958 | # tests run on this system so they can be shared between configure |
| 4959 | # scripts and configure runs, see configure's option --config-cache. |
| 4960 | # It is not useful on other systems. If it contains results you don't |
| 4961 | # want to keep, you may remove or edit it. |
| 4962 | # |
| 4963 | # config.status only pays attention to the cache file if you give it |
| 4964 | # the --recheck option to rerun configure. |
| 4965 | # |
| 4966 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 4967 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 4968 | # following values. |
| 4969 | |
| 4970 | _ACEOF |
| 4971 | |
| 4972 | # The following way of writing the cache mishandles newlines in values, |
| 4973 | # but we know of no workaround that is simple, portable, and efficient. |
| 4974 | # So, we kill variables containing newlines. |
| 4975 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4976 | # and sets the high bit in the cache file unless we assign to the vars. |
| 4977 | ( |
| 4978 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 4979 | eval ac_val=\$$ac_var |
| 4980 | case $ac_val in #( |
| 4981 | *${as_nl}*) |
| 4982 | case $ac_var in #( |
| 4983 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 4984 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 4985 | esac |
| 4986 | case $ac_var in #( |
| 4987 | _ | IFS | as_nl) ;; #( |
| 4988 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 4989 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 4990 | esac ;; |
| 4991 | esac |
| 4992 | done |
| 4993 | |
| 4994 | (set) 2>&1 | |
| 4995 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 4996 | *${as_nl}ac_space=\ *) |
| 4997 | # `set' does not quote correctly, so add quotes: double-quote |
| 4998 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 4999 | sed -n \ |
| 5000 | "s/'/'\\\\''/g; |
| 5001 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 5002 | ;; #( |
| 5003 | *) |
| 5004 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5005 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 5006 | ;; |
| 5007 | esac | |
| 5008 | sort |
| 5009 | ) | |
| 5010 | sed ' |
| 5011 | /^ac_cv_env_/b end |
| 5012 | t clear |
| 5013 | :clear |
| 5014 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 5015 | t end |
| 5016 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5017 | :end' >>confcache |
| 5018 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 5019 | if test -w "$cache_file"; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5020 | if test "x$cache_file" != "x/dev/null"; then |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 5022 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5023 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 5024 | cat confcache >"$cache_file" |
| 5025 | else |
| 5026 | case $cache_file in #( |
| 5027 | */* | ?:*) |
| 5028 | mv -f confcache "$cache_file"$$ && |
| 5029 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 5030 | *) |
| 5031 | mv -f confcache "$cache_file" ;; |
| 5032 | esac |
| 5033 | fi |
| 5034 | fi |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5035 | else |
| 5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 5037 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 5038 | fi |
| 5039 | fi |
| 5040 | rm -f confcache |
| 5041 | |
| 5042 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5043 | # Let make expand exec_prefix. |
| 5044 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5045 | |
| 5046 | DEFS=-DHAVE_CONFIG_H |
| 5047 | |
| 5048 | ac_libobjs= |
| 5049 | ac_ltlibobjs= |
| 5050 | U= |
| 5051 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5052 | # 1. Remove the extension, and $U if already installed. |
| 5053 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 5054 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 5055 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 5056 | # will be set to the directory where LIBOBJS objects are built. |
| 5057 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 5058 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 5059 | done |
| 5060 | LIBOBJS=$ac_libobjs |
| 5061 | |
| 5062 | LTLIBOBJS=$ac_ltlibobjs |
| 5063 | |
| 5064 | |
| 5065 | if test -n "$EXEEXT"; then |
| 5066 | am__EXEEXT_TRUE= |
| 5067 | am__EXEEXT_FALSE='#' |
| 5068 | else |
| 5069 | am__EXEEXT_TRUE='#' |
| 5070 | am__EXEEXT_FALSE= |
| 5071 | fi |
| 5072 | |
| 5073 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 5074 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 5075 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5076 | fi |
| 5077 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 5078 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 5079 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5080 | fi |
| 5081 | if test -z "${HAVE_LIBGTP_TRUE}" && test -z "${HAVE_LIBGTP_FALSE}"; then |
| 5082 | as_fn_error $? "conditional \"HAVE_LIBGTP\" was never defined. |
| 5083 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5084 | fi |
| 5085 | if test -z "${BUILD_NAT_TRUE}" && test -z "${BUILD_NAT_FALSE}"; then |
| 5086 | as_fn_error $? "conditional \"BUILD_NAT\" was never defined. |
| 5087 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5088 | fi |
| 5089 | if test -z "${BUILD_BSC_TRUE}" && test -z "${BUILD_BSC_FALSE}"; then |
| 5090 | as_fn_error $? "conditional \"BUILD_BSC\" was never defined. |
| 5091 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 5092 | fi |
| 5093 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5094 | : "${CONFIG_STATUS=./config.status}" |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5095 | ac_write_fail=0 |
| 5096 | ac_clean_files_save=$ac_clean_files |
| 5097 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 5099 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5100 | as_write_fail=0 |
| 5101 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 5102 | #! $SHELL |
| 5103 | # Generated by $as_me. |
| 5104 | # Run this file to recreate the current configuration. |
| 5105 | # Compiler output produced by configure, useful for debugging |
| 5106 | # configure, is in config.log if it exists. |
| 5107 | |
| 5108 | debug=false |
| 5109 | ac_cs_recheck=false |
| 5110 | ac_cs_silent=false |
| 5111 | |
| 5112 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 5113 | export SHELL |
| 5114 | _ASEOF |
| 5115 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 5116 | ## -------------------- ## |
| 5117 | ## M4sh Initialization. ## |
| 5118 | ## -------------------- ## |
| 5119 | |
| 5120 | # Be more Bourne compatible |
| 5121 | DUALCASE=1; export DUALCASE # for MKS sh |
| 5122 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 5123 | emulate sh |
| 5124 | NULLCMD=: |
| 5125 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 5126 | # is contrary to our usage. Disable this feature. |
| 5127 | alias -g '${1+"$@"}'='"$@"' |
| 5128 | setopt NO_GLOB_SUBST |
| 5129 | else |
| 5130 | case `(set -o) 2>/dev/null` in #( |
| 5131 | *posix*) : |
| 5132 | set -o posix ;; #( |
| 5133 | *) : |
| 5134 | ;; |
| 5135 | esac |
| 5136 | fi |
| 5137 | |
| 5138 | |
| 5139 | as_nl=' |
| 5140 | ' |
| 5141 | export as_nl |
| 5142 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 5143 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5144 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5145 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5146 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 5147 | # but without wasting forks for bash or zsh. |
| 5148 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 5149 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5150 | as_echo='print -r --' |
| 5151 | as_echo_n='print -rn --' |
| 5152 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5153 | as_echo='printf %s\n' |
| 5154 | as_echo_n='printf %s' |
| 5155 | else |
| 5156 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 5157 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 5158 | as_echo_n='/usr/ucb/echo -n' |
| 5159 | else |
| 5160 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 5161 | as_echo_n_body='eval |
| 5162 | arg=$1; |
| 5163 | case $arg in #( |
| 5164 | *"$as_nl"*) |
| 5165 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 5166 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 5167 | esac; |
| 5168 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 5169 | ' |
| 5170 | export as_echo_n_body |
| 5171 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 5172 | fi |
| 5173 | export as_echo_body |
| 5174 | as_echo='sh -c $as_echo_body as_echo' |
| 5175 | fi |
| 5176 | |
| 5177 | # The user is always right. |
| 5178 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5179 | PATH_SEPARATOR=: |
| 5180 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5181 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5182 | PATH_SEPARATOR=';' |
| 5183 | } |
| 5184 | fi |
| 5185 | |
| 5186 | |
| 5187 | # IFS |
| 5188 | # We need space, tab and new line, in precisely that order. Quoting is |
| 5189 | # there to prevent editors from complaining about space-tab. |
| 5190 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 5191 | # splitting by setting IFS to empty value.) |
| 5192 | IFS=" "" $as_nl" |
| 5193 | |
| 5194 | # Find who we are. Look in the path if we contain no directory separator. |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5195 | as_myself= |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5196 | case $0 in #(( |
| 5197 | *[\\/]* ) as_myself=$0 ;; |
| 5198 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5199 | for as_dir in $PATH |
| 5200 | do |
| 5201 | IFS=$as_save_IFS |
| 5202 | test -z "$as_dir" && as_dir=. |
| 5203 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5204 | done |
| 5205 | IFS=$as_save_IFS |
| 5206 | |
| 5207 | ;; |
| 5208 | esac |
| 5209 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5210 | # in which case we are not to be found in the path. |
| 5211 | if test "x$as_myself" = x; then |
| 5212 | as_myself=$0 |
| 5213 | fi |
| 5214 | if test ! -f "$as_myself"; then |
| 5215 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5216 | exit 1 |
| 5217 | fi |
| 5218 | |
| 5219 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 5220 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 5221 | # suppresses any "Segmentation fault" message there. '((' could |
| 5222 | # trigger a bug in pdksh 5.2.14. |
| 5223 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 5224 | do eval test x\${$as_var+set} = xset \ |
| 5225 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 5226 | done |
| 5227 | PS1='$ ' |
| 5228 | PS2='> ' |
| 5229 | PS4='+ ' |
| 5230 | |
| 5231 | # NLS nuisances. |
| 5232 | LC_ALL=C |
| 5233 | export LC_ALL |
| 5234 | LANGUAGE=C |
| 5235 | export LANGUAGE |
| 5236 | |
| 5237 | # CDPATH. |
| 5238 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 5239 | |
| 5240 | |
| 5241 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 5242 | # ---------------------------------------- |
| 5243 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 5244 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 5245 | # script with STATUS, using 1 if that was 0. |
| 5246 | as_fn_error () |
| 5247 | { |
| 5248 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 5249 | if test "$4"; then |
| 5250 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5251 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 5252 | fi |
| 5253 | $as_echo "$as_me: error: $2" >&2 |
| 5254 | as_fn_exit $as_status |
| 5255 | } # as_fn_error |
| 5256 | |
| 5257 | |
| 5258 | # as_fn_set_status STATUS |
| 5259 | # ----------------------- |
| 5260 | # Set $? to STATUS, without forking. |
| 5261 | as_fn_set_status () |
| 5262 | { |
| 5263 | return $1 |
| 5264 | } # as_fn_set_status |
| 5265 | |
| 5266 | # as_fn_exit STATUS |
| 5267 | # ----------------- |
| 5268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 5269 | as_fn_exit () |
| 5270 | { |
| 5271 | set +e |
| 5272 | as_fn_set_status $1 |
| 5273 | exit $1 |
| 5274 | } # as_fn_exit |
| 5275 | |
| 5276 | # as_fn_unset VAR |
| 5277 | # --------------- |
| 5278 | # Portably unset VAR. |
| 5279 | as_fn_unset () |
| 5280 | { |
| 5281 | { eval $1=; unset $1;} |
| 5282 | } |
| 5283 | as_unset=as_fn_unset |
| 5284 | # as_fn_append VAR VALUE |
| 5285 | # ---------------------- |
| 5286 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 5287 | # advantage of any shell optimizations that allow amortized linear growth over |
| 5288 | # repeated appends, instead of the typical quadratic growth present in naive |
| 5289 | # implementations. |
| 5290 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 5291 | eval 'as_fn_append () |
| 5292 | { |
| 5293 | eval $1+=\$2 |
| 5294 | }' |
| 5295 | else |
| 5296 | as_fn_append () |
| 5297 | { |
| 5298 | eval $1=\$$1\$2 |
| 5299 | } |
| 5300 | fi # as_fn_append |
| 5301 | |
| 5302 | # as_fn_arith ARG... |
| 5303 | # ------------------ |
| 5304 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 5305 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 5306 | # must be portable across $(()) and expr. |
| 5307 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 5308 | eval 'as_fn_arith () |
| 5309 | { |
| 5310 | as_val=$(( $* )) |
| 5311 | }' |
| 5312 | else |
| 5313 | as_fn_arith () |
| 5314 | { |
| 5315 | as_val=`expr "$@" || test $? -eq 1` |
| 5316 | } |
| 5317 | fi # as_fn_arith |
| 5318 | |
| 5319 | |
| 5320 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5321 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 5322 | as_expr=expr |
| 5323 | else |
| 5324 | as_expr=false |
| 5325 | fi |
| 5326 | |
| 5327 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 5328 | as_basename=basename |
| 5329 | else |
| 5330 | as_basename=false |
| 5331 | fi |
| 5332 | |
| 5333 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5334 | as_dirname=dirname |
| 5335 | else |
| 5336 | as_dirname=false |
| 5337 | fi |
| 5338 | |
| 5339 | as_me=`$as_basename -- "$0" || |
| 5340 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5341 | X"$0" : 'X\(//\)$' \| \ |
| 5342 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 5343 | $as_echo X/"$0" | |
| 5344 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5345 | s//\1/ |
| 5346 | q |
| 5347 | } |
| 5348 | /^X\/\(\/\/\)$/{ |
| 5349 | s//\1/ |
| 5350 | q |
| 5351 | } |
| 5352 | /^X\/\(\/\).*/{ |
| 5353 | s//\1/ |
| 5354 | q |
| 5355 | } |
| 5356 | s/.*/./; q'` |
| 5357 | |
| 5358 | # Avoid depending upon Character Ranges. |
| 5359 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5360 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5361 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5362 | as_cr_digits='0123456789' |
| 5363 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5364 | |
| 5365 | ECHO_C= ECHO_N= ECHO_T= |
| 5366 | case `echo -n x` in #((((( |
| 5367 | -n*) |
| 5368 | case `echo 'xy\c'` in |
| 5369 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 5370 | xy) ECHO_C='\c';; |
| 5371 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 5372 | ECHO_T=' ';; |
| 5373 | esac;; |
| 5374 | *) |
| 5375 | ECHO_N='-n';; |
| 5376 | esac |
| 5377 | |
| 5378 | rm -f conf$$ conf$$.exe conf$$.file |
| 5379 | if test -d conf$$.dir; then |
| 5380 | rm -f conf$$.dir/conf$$.file |
| 5381 | else |
| 5382 | rm -f conf$$.dir |
| 5383 | mkdir conf$$.dir 2>/dev/null |
| 5384 | fi |
| 5385 | if (echo >conf$$.file) 2>/dev/null; then |
| 5386 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 5387 | as_ln_s='ln -s' |
| 5388 | # ... but there are two gotchas: |
| 5389 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 5390 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 5391 | # In both cases, we have to default to `cp -p'. |
| 5392 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 5393 | as_ln_s='cp -p' |
| 5394 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5395 | as_ln_s=ln |
| 5396 | else |
| 5397 | as_ln_s='cp -p' |
| 5398 | fi |
| 5399 | else |
| 5400 | as_ln_s='cp -p' |
| 5401 | fi |
| 5402 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 5403 | rmdir conf$$.dir 2>/dev/null |
| 5404 | |
| 5405 | |
| 5406 | # as_fn_mkdir_p |
| 5407 | # ------------- |
| 5408 | # Create "$as_dir" as a directory, including parents if necessary. |
| 5409 | as_fn_mkdir_p () |
| 5410 | { |
| 5411 | |
| 5412 | case $as_dir in #( |
| 5413 | -*) as_dir=./$as_dir;; |
| 5414 | esac |
| 5415 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 5416 | as_dirs= |
| 5417 | while :; do |
| 5418 | case $as_dir in #( |
| 5419 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 5420 | *) as_qdir=$as_dir;; |
| 5421 | esac |
| 5422 | as_dirs="'$as_qdir' $as_dirs" |
| 5423 | as_dir=`$as_dirname -- "$as_dir" || |
| 5424 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5425 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5426 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5427 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 5428 | $as_echo X"$as_dir" | |
| 5429 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5430 | s//\1/ |
| 5431 | q |
| 5432 | } |
| 5433 | /^X\(\/\/\)[^/].*/{ |
| 5434 | s//\1/ |
| 5435 | q |
| 5436 | } |
| 5437 | /^X\(\/\/\)$/{ |
| 5438 | s//\1/ |
| 5439 | q |
| 5440 | } |
| 5441 | /^X\(\/\).*/{ |
| 5442 | s//\1/ |
| 5443 | q |
| 5444 | } |
| 5445 | s/.*/./; q'` |
| 5446 | test -d "$as_dir" && break |
| 5447 | done |
| 5448 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 5449 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 5450 | |
| 5451 | |
| 5452 | } # as_fn_mkdir_p |
| 5453 | if mkdir -p . 2>/dev/null; then |
| 5454 | as_mkdir_p='mkdir -p "$as_dir"' |
| 5455 | else |
| 5456 | test -d ./-p && rmdir ./-p |
| 5457 | as_mkdir_p=false |
| 5458 | fi |
| 5459 | |
| 5460 | if test -x / >/dev/null 2>&1; then |
| 5461 | as_test_x='test -x' |
| 5462 | else |
| 5463 | if ls -dL / >/dev/null 2>&1; then |
| 5464 | as_ls_L_option=L |
| 5465 | else |
| 5466 | as_ls_L_option= |
| 5467 | fi |
| 5468 | as_test_x=' |
| 5469 | eval sh -c '\'' |
| 5470 | if test -d "$1"; then |
| 5471 | test -d "$1/."; |
| 5472 | else |
| 5473 | case $1 in #( |
| 5474 | -*)set "./$1";; |
| 5475 | esac; |
| 5476 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 5477 | ???[sx]*):;;*)false;;esac;fi |
| 5478 | '\'' sh |
| 5479 | ' |
| 5480 | fi |
| 5481 | as_executable_p=$as_test_x |
| 5482 | |
| 5483 | # Sed expression to map a string onto a valid CPP name. |
| 5484 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 5485 | |
| 5486 | # Sed expression to map a string onto a valid variable name. |
| 5487 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 5488 | |
| 5489 | |
| 5490 | exec 6>&1 |
| 5491 | ## ----------------------------------- ## |
| 5492 | ## Main body of $CONFIG_STATUS script. ## |
| 5493 | ## ----------------------------------- ## |
| 5494 | _ASEOF |
| 5495 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 5496 | |
| 5497 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5498 | # Save the log message, to keep $0 and so on meaningful, and to |
| 5499 | # report actual input values of CONFIG_FILES etc. instead of their |
| 5500 | # values after options handling. |
| 5501 | ac_log=" |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5502 | This file was extended by openbsc $as_me 0.9.14, which was |
| 5503 | generated by GNU Autoconf 2.68. Invocation command line was |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5504 | |
| 5505 | CONFIG_FILES = $CONFIG_FILES |
| 5506 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5507 | CONFIG_LINKS = $CONFIG_LINKS |
| 5508 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5509 | $ $0 $@ |
| 5510 | |
| 5511 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 5512 | " |
| 5513 | |
| 5514 | _ACEOF |
| 5515 | |
| 5516 | case $ac_config_files in *" |
| 5517 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 5518 | esac |
| 5519 | |
| 5520 | case $ac_config_headers in *" |
| 5521 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 5522 | esac |
| 5523 | |
| 5524 | |
| 5525 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5526 | # Files that config.status was made for. |
| 5527 | config_files="$ac_config_files" |
| 5528 | config_headers="$ac_config_headers" |
| 5529 | config_commands="$ac_config_commands" |
| 5530 | |
| 5531 | _ACEOF |
| 5532 | |
| 5533 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5534 | ac_cs_usage="\ |
| 5535 | \`$as_me' instantiates files and other configuration actions |
| 5536 | from templates according to the current configuration. Unless the files |
| 5537 | and actions are specified as TAGs, all are instantiated by default. |
| 5538 | |
| 5539 | Usage: $0 [OPTION]... [TAG]... |
| 5540 | |
| 5541 | -h, --help print this help, then exit |
| 5542 | -V, --version print version number and configuration settings, then exit |
| 5543 | --config print configuration, then exit |
| 5544 | -q, --quiet, --silent |
| 5545 | do not print progress messages |
| 5546 | -d, --debug don't remove temporary files |
| 5547 | --recheck update $as_me by reconfiguring in the same conditions |
| 5548 | --file=FILE[:TEMPLATE] |
| 5549 | instantiate the configuration file FILE |
| 5550 | --header=FILE[:TEMPLATE] |
| 5551 | instantiate the configuration header FILE |
| 5552 | |
| 5553 | Configuration files: |
| 5554 | $config_files |
| 5555 | |
| 5556 | Configuration headers: |
| 5557 | $config_headers |
| 5558 | |
| 5559 | Configuration commands: |
| 5560 | $config_commands |
| 5561 | |
| 5562 | Report bugs to <openbsc-devel@lists.openbsc.org>." |
| 5563 | |
| 5564 | _ACEOF |
| 5565 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5566 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 5567 | ac_cs_version="\\ |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5568 | openbsc config.status 0.9.14 |
| 5569 | configured by $0, generated by GNU Autoconf 2.68, |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5570 | with options \\"\$ac_cs_config\\" |
| 5571 | |
| 5572 | Copyright (C) 2010 Free Software Foundation, Inc. |
| 5573 | This config.status script is free software; the Free Software Foundation |
| 5574 | gives unlimited permission to copy, distribute and modify it." |
| 5575 | |
| 5576 | ac_pwd='$ac_pwd' |
| 5577 | srcdir='$srcdir' |
| 5578 | INSTALL='$INSTALL' |
| 5579 | MKDIR_P='$MKDIR_P' |
| 5580 | AWK='$AWK' |
| 5581 | test -n "\$AWK" || AWK=awk |
| 5582 | _ACEOF |
| 5583 | |
| 5584 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5585 | # The default lists apply if the user does not specify any file. |
| 5586 | ac_need_defaults=: |
| 5587 | while test $# != 0 |
| 5588 | do |
| 5589 | case $1 in |
| 5590 | --*=?*) |
| 5591 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5592 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 5593 | ac_shift=: |
| 5594 | ;; |
| 5595 | --*=) |
| 5596 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5597 | ac_optarg= |
| 5598 | ac_shift=: |
| 5599 | ;; |
| 5600 | *) |
| 5601 | ac_option=$1 |
| 5602 | ac_optarg=$2 |
| 5603 | ac_shift=shift |
| 5604 | ;; |
| 5605 | esac |
| 5606 | |
| 5607 | case $ac_option in |
| 5608 | # Handling of the options. |
| 5609 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5610 | ac_cs_recheck=: ;; |
| 5611 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 5612 | $as_echo "$ac_cs_version"; exit ;; |
| 5613 | --config | --confi | --conf | --con | --co | --c ) |
| 5614 | $as_echo "$ac_cs_config"; exit ;; |
| 5615 | --debug | --debu | --deb | --de | --d | -d ) |
| 5616 | debug=: ;; |
| 5617 | --file | --fil | --fi | --f ) |
| 5618 | $ac_shift |
| 5619 | case $ac_optarg in |
| 5620 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5621 | '') as_fn_error $? "missing file argument" ;; |
| 5622 | esac |
| 5623 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 5624 | ac_need_defaults=false;; |
| 5625 | --header | --heade | --head | --hea ) |
| 5626 | $ac_shift |
| 5627 | case $ac_optarg in |
| 5628 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5629 | esac |
| 5630 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 5631 | ac_need_defaults=false;; |
| 5632 | --he | --h) |
| 5633 | # Conflict between --help and --header |
| 5634 | as_fn_error $? "ambiguous option: \`$1' |
| 5635 | Try \`$0 --help' for more information.";; |
| 5636 | --help | --hel | -h ) |
| 5637 | $as_echo "$ac_cs_usage"; exit ;; |
| 5638 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5639 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5640 | ac_cs_silent=: ;; |
| 5641 | |
| 5642 | # This is an error. |
| 5643 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 5644 | Try \`$0 --help' for more information." ;; |
| 5645 | |
| 5646 | *) as_fn_append ac_config_targets " $1" |
| 5647 | ac_need_defaults=false ;; |
| 5648 | |
| 5649 | esac |
| 5650 | shift |
| 5651 | done |
| 5652 | |
| 5653 | ac_configure_extra_args= |
| 5654 | |
| 5655 | if $ac_cs_silent; then |
| 5656 | exec 6>/dev/null |
| 5657 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5658 | fi |
| 5659 | |
| 5660 | _ACEOF |
| 5661 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5662 | if \$ac_cs_recheck; then |
| 5663 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5664 | shift |
| 5665 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 5666 | CONFIG_SHELL='$SHELL' |
| 5667 | export CONFIG_SHELL |
| 5668 | exec "\$@" |
| 5669 | fi |
| 5670 | |
| 5671 | _ACEOF |
| 5672 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5673 | exec 5>>config.log |
| 5674 | { |
| 5675 | echo |
| 5676 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 5677 | ## Running $as_me. ## |
| 5678 | _ASBOX |
| 5679 | $as_echo "$ac_log" |
| 5680 | } >&5 |
| 5681 | |
| 5682 | _ACEOF |
| 5683 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5684 | # |
| 5685 | # INIT-COMMANDS |
| 5686 | # |
| 5687 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 5688 | |
| 5689 | _ACEOF |
| 5690 | |
| 5691 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5692 | |
| 5693 | # Handling of arguments. |
| 5694 | for ac_config_target in $ac_config_targets |
| 5695 | do |
| 5696 | case $ac_config_target in |
| 5697 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 5698 | "bscconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS bscconfig.h" ;; |
| 5699 | "openbsc.pc") CONFIG_FILES="$CONFIG_FILES openbsc.pc" ;; |
| 5700 | "include/openbsc/Makefile") CONFIG_FILES="$CONFIG_FILES include/openbsc/Makefile" ;; |
| 5701 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 5702 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 5703 | "src/libtrau/Makefile") CONFIG_FILES="$CONFIG_FILES src/libtrau/Makefile" ;; |
| 5704 | "src/libabis/Makefile") CONFIG_FILES="$CONFIG_FILES src/libabis/Makefile" ;; |
| 5705 | "src/libbsc/Makefile") CONFIG_FILES="$CONFIG_FILES src/libbsc/Makefile" ;; |
| 5706 | "src/libmsc/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmsc/Makefile" ;; |
| 5707 | "src/libmgcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmgcp/Makefile" ;; |
| 5708 | "src/libcommon/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcommon/Makefile" ;; |
| 5709 | "src/osmo-nitb/Makefile") CONFIG_FILES="$CONFIG_FILES src/osmo-nitb/Makefile" ;; |
| 5710 | "src/osmo-bsc/Makefile") CONFIG_FILES="$CONFIG_FILES src/osmo-bsc/Makefile" ;; |
| 5711 | "src/osmo-bsc_nat/Makefile") CONFIG_FILES="$CONFIG_FILES src/osmo-bsc_nat/Makefile" ;; |
| 5712 | "src/osmo-bsc_mgcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/osmo-bsc_mgcp/Makefile" ;; |
| 5713 | "src/ipaccess/Makefile") CONFIG_FILES="$CONFIG_FILES src/ipaccess/Makefile" ;; |
| 5714 | "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; |
| 5715 | "src/libgb/Makefile") CONFIG_FILES="$CONFIG_FILES src/libgb/Makefile" ;; |
| 5716 | "src/gprs/Makefile") CONFIG_FILES="$CONFIG_FILES src/gprs/Makefile" ;; |
| 5717 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 5718 | "tests/debug/Makefile") CONFIG_FILES="$CONFIG_FILES tests/debug/Makefile" ;; |
| 5719 | "tests/gsm0408/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gsm0408/Makefile" ;; |
| 5720 | "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;; |
| 5721 | "tests/channel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/channel/Makefile" ;; |
| 5722 | "tests/bsc-nat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bsc-nat/Makefile" ;; |
| 5723 | "tests/mgcp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mgcp/Makefile" ;; |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5724 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 5725 | "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;; |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5726 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 5727 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5728 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5729 | esac |
| 5730 | done |
| 5731 | |
| 5732 | |
| 5733 | # If the user did not use the arguments to specify the items to instantiate, |
| 5734 | # then the envvar interface is used. Set only those that are not. |
| 5735 | # We use the long form for the default assignment because of an extremely |
| 5736 | # bizarre bug on SunOS 4.1.3. |
| 5737 | if $ac_need_defaults; then |
| 5738 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 5739 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 5740 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 5741 | fi |
| 5742 | |
| 5743 | # Have a temporary directory for convenience. Make it in the build tree |
| 5744 | # simply because there is no reason against having it here, and in addition, |
| 5745 | # creating and moving files from /tmp can sometimes cause problems. |
| 5746 | # Hook for its removal unless debugging. |
| 5747 | # Note that there is a small window in which the directory will not be cleaned: |
| 5748 | # after its creation but before its name has been assigned to `$tmp'. |
| 5749 | $debug || |
| 5750 | { |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5751 | tmp= ac_tmp= |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5752 | trap 'exit_status=$? |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5753 | : "${ac_tmp:=$tmp}" |
| 5754 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5755 | ' 0 |
| 5756 | trap 'as_fn_exit 1' 1 2 13 15 |
| 5757 | } |
| 5758 | # Create a (secure) tmp directory for tmp files. |
| 5759 | |
| 5760 | { |
| 5761 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5762 | test -d "$tmp" |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5763 | } || |
| 5764 | { |
| 5765 | tmp=./conf$$-$RANDOM |
| 5766 | (umask 077 && mkdir "$tmp") |
| 5767 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5768 | ac_tmp=$tmp |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5769 | |
| 5770 | # Set up the scripts for CONFIG_FILES section. |
| 5771 | # No need to generate them if there are no CONFIG_FILES. |
| 5772 | # This happens for instance with `./config.status config.h'. |
| 5773 | if test -n "$CONFIG_FILES"; then |
| 5774 | |
| 5775 | |
| 5776 | ac_cr=`echo X | tr X '\015'` |
| 5777 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 5778 | # But we know of no other shell where ac_cr would be empty at this |
| 5779 | # point, so we can use a bashism as a fallback. |
| 5780 | if test "x$ac_cr" = x; then |
| 5781 | eval ac_cr=\$\'\\r\' |
| 5782 | fi |
| 5783 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 5784 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 5785 | ac_cs_awk_cr='\\r' |
| 5786 | else |
| 5787 | ac_cs_awk_cr=$ac_cr |
| 5788 | fi |
| 5789 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5790 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5791 | _ACEOF |
| 5792 | |
| 5793 | |
| 5794 | { |
| 5795 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 5796 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 5797 | echo "_ACEOF" |
| 5798 | } >conf$$subs.sh || |
| 5799 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5800 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 5801 | ac_delim='%!_!# ' |
| 5802 | for ac_last_try in false false false false false :; do |
| 5803 | . ./conf$$subs.sh || |
| 5804 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5805 | |
| 5806 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 5807 | if test $ac_delim_n = $ac_delim_num; then |
| 5808 | break |
| 5809 | elif $ac_last_try; then |
| 5810 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 5811 | else |
| 5812 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 5813 | fi |
| 5814 | done |
| 5815 | rm -f conf$$subs.sh |
| 5816 | |
| 5817 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5818 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5819 | _ACEOF |
| 5820 | sed -n ' |
| 5821 | h |
| 5822 | s/^/S["/; s/!.*/"]=/ |
| 5823 | p |
| 5824 | g |
| 5825 | s/^[^!]*!// |
| 5826 | :repl |
| 5827 | t repl |
| 5828 | s/'"$ac_delim"'$// |
| 5829 | t delim |
| 5830 | :nl |
| 5831 | h |
| 5832 | s/\(.\{148\}\)..*/\1/ |
| 5833 | t more1 |
| 5834 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 5835 | p |
| 5836 | n |
| 5837 | b repl |
| 5838 | :more1 |
| 5839 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5840 | p |
| 5841 | g |
| 5842 | s/.\{148\}// |
| 5843 | t nl |
| 5844 | :delim |
| 5845 | h |
| 5846 | s/\(.\{148\}\)..*/\1/ |
| 5847 | t more2 |
| 5848 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 5849 | p |
| 5850 | b |
| 5851 | :more2 |
| 5852 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5853 | p |
| 5854 | g |
| 5855 | s/.\{148\}// |
| 5856 | t delim |
| 5857 | ' <conf$$subs.awk | sed ' |
| 5858 | /^[^""]/{ |
| 5859 | N |
| 5860 | s/\n// |
| 5861 | } |
| 5862 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 5863 | rm -f conf$$subs.awk |
| 5864 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5865 | _ACAWK |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5866 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5867 | for (key in S) S_is_set[key] = 1 |
| 5868 | FS = "" |
| 5869 | |
| 5870 | } |
| 5871 | { |
| 5872 | line = $ 0 |
| 5873 | nfields = split(line, field, "@") |
| 5874 | substed = 0 |
| 5875 | len = length(field[1]) |
| 5876 | for (i = 2; i < nfields; i++) { |
| 5877 | key = field[i] |
| 5878 | keylen = length(key) |
| 5879 | if (S_is_set[key]) { |
| 5880 | value = S[key] |
| 5881 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 5882 | len += length(value) + length(field[++i]) |
| 5883 | substed = 1 |
| 5884 | } else |
| 5885 | len += 1 + keylen |
| 5886 | } |
| 5887 | |
| 5888 | print line |
| 5889 | } |
| 5890 | |
| 5891 | _ACAWK |
| 5892 | _ACEOF |
| 5893 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5894 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 5895 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 5896 | else |
| 5897 | cat |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5898 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5899 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 5900 | _ACEOF |
| 5901 | |
| 5902 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 5903 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 5904 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 5905 | # (actually we leave an empty line to preserve line numbers). |
| 5906 | if test "x$srcdir" = x.; then |
| 5907 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 5908 | h |
| 5909 | s/// |
| 5910 | s/^/:/ |
| 5911 | s/[ ]*$/:/ |
| 5912 | s/:\$(srcdir):/:/g |
| 5913 | s/:\${srcdir}:/:/g |
| 5914 | s/:@srcdir@:/:/g |
| 5915 | s/^:*// |
| 5916 | s/:*$// |
| 5917 | x |
| 5918 | s/\(=[ ]*\).*/\1/ |
| 5919 | G |
| 5920 | s/\n// |
| 5921 | s/^[^=]*=[ ]*$// |
| 5922 | }' |
| 5923 | fi |
| 5924 | |
| 5925 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5926 | fi # test -n "$CONFIG_FILES" |
| 5927 | |
| 5928 | # Set up the scripts for CONFIG_HEADERS section. |
| 5929 | # No need to generate them if there are no CONFIG_HEADERS. |
| 5930 | # This happens for instance with `./config.status Makefile'. |
| 5931 | if test -n "$CONFIG_HEADERS"; then |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5932 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5933 | BEGIN { |
| 5934 | _ACEOF |
| 5935 | |
| 5936 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 5937 | # here-document in config.status, that substitutes the proper values into |
| 5938 | # config.h.in to produce config.h. |
| 5939 | |
| 5940 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 5941 | # handling of long lines. |
| 5942 | ac_delim='%!_!# ' |
| 5943 | for ac_last_try in false false :; do |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 5944 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 5945 | if test -z "$ac_tt"; then |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 5946 | break |
| 5947 | elif $ac_last_try; then |
| 5948 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 5949 | else |
| 5950 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 5951 | fi |
| 5952 | done |
| 5953 | |
| 5954 | # For the awk script, D is an array of macro values keyed by name, |
| 5955 | # likewise P contains macro parameters if any. Preserve backslash |
| 5956 | # newline sequences. |
| 5957 | |
| 5958 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 5959 | sed -n ' |
| 5960 | s/.\{148\}/&'"$ac_delim"'/g |
| 5961 | t rset |
| 5962 | :rset |
| 5963 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 5964 | t def |
| 5965 | d |
| 5966 | :def |
| 5967 | s/\\$// |
| 5968 | t bsnl |
| 5969 | s/["\\]/\\&/g |
| 5970 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 5971 | D["\1"]=" \3"/p |
| 5972 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 5973 | d |
| 5974 | :bsnl |
| 5975 | s/["\\]/\\&/g |
| 5976 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 5977 | D["\1"]=" \3\\\\\\n"\\/p |
| 5978 | t cont |
| 5979 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 5980 | t cont |
| 5981 | d |
| 5982 | :cont |
| 5983 | n |
| 5984 | s/.\{148\}/&'"$ac_delim"'/g |
| 5985 | t clear |
| 5986 | :clear |
| 5987 | s/\\$// |
| 5988 | t bsnlc |
| 5989 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 5990 | d |
| 5991 | :bsnlc |
| 5992 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 5993 | b cont |
| 5994 | ' <confdefs.h | sed ' |
| 5995 | s/'"$ac_delim"'/"\\\ |
| 5996 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 5997 | |
| 5998 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5999 | for (key in D) D_is_set[key] = 1 |
| 6000 | FS = "" |
| 6001 | } |
| 6002 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 6003 | line = \$ 0 |
| 6004 | split(line, arg, " ") |
| 6005 | if (arg[1] == "#") { |
| 6006 | defundef = arg[2] |
| 6007 | mac1 = arg[3] |
| 6008 | } else { |
| 6009 | defundef = substr(arg[1], 2) |
| 6010 | mac1 = arg[2] |
| 6011 | } |
| 6012 | split(mac1, mac2, "(") #) |
| 6013 | macro = mac2[1] |
| 6014 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 6015 | if (D_is_set[macro]) { |
| 6016 | # Preserve the white space surrounding the "#". |
| 6017 | print prefix "define", macro P[macro] D[macro] |
| 6018 | next |
| 6019 | } else { |
| 6020 | # Replace #undef with comments. This is necessary, for example, |
| 6021 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 6022 | # on some systems where configure will not decide to define it. |
| 6023 | if (defundef == "undef") { |
| 6024 | print "/*", prefix defundef, macro, "*/" |
| 6025 | next |
| 6026 | } |
| 6027 | } |
| 6028 | } |
| 6029 | { print } |
| 6030 | _ACAWK |
| 6031 | _ACEOF |
| 6032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6033 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 6034 | fi # test -n "$CONFIG_HEADERS" |
| 6035 | |
| 6036 | |
| 6037 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 6038 | shift |
| 6039 | for ac_tag |
| 6040 | do |
| 6041 | case $ac_tag in |
| 6042 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 6043 | esac |
| 6044 | case $ac_mode$ac_tag in |
| 6045 | :[FHL]*:*);; |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6046 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6047 | :[FH]-) ac_tag=-:-;; |
| 6048 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6049 | esac |
| 6050 | ac_save_IFS=$IFS |
| 6051 | IFS=: |
| 6052 | set x $ac_tag |
| 6053 | IFS=$ac_save_IFS |
| 6054 | shift |
| 6055 | ac_file=$1 |
| 6056 | shift |
| 6057 | |
| 6058 | case $ac_mode in |
| 6059 | :L) ac_source=$1;; |
| 6060 | :[FH]) |
| 6061 | ac_file_inputs= |
| 6062 | for ac_f |
| 6063 | do |
| 6064 | case $ac_f in |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6065 | -) ac_f="$ac_tmp/stdin";; |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6066 | *) # Look for the file first in the build tree, then in the source tree |
| 6067 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6068 | # because $ac_f cannot contain `:'. |
| 6069 | test -f "$ac_f" || |
| 6070 | case $ac_f in |
| 6071 | [\\/$]*) false;; |
| 6072 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6073 | esac || |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6074 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6075 | esac |
| 6076 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6077 | as_fn_append ac_file_inputs " '$ac_f'" |
| 6078 | done |
| 6079 | |
| 6080 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6081 | # use $as_me), people would be surprised to read: |
| 6082 | # /* config.h. Generated by config.status. */ |
| 6083 | configure_input='Generated from '` |
| 6084 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 6085 | `' by configure.' |
| 6086 | if test x"$ac_file" != x-; then |
| 6087 | configure_input="$ac_file. $configure_input" |
| 6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 6089 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 6090 | fi |
| 6091 | # Neutralize special characters interpreted by sed in replacement strings. |
| 6092 | case $configure_input in #( |
| 6093 | *\&* | *\|* | *\\* ) |
| 6094 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 6095 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 6096 | *) ac_sed_conf_input=$configure_input;; |
| 6097 | esac |
| 6098 | |
| 6099 | case $ac_tag in |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6100 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 6101 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6102 | esac |
| 6103 | ;; |
| 6104 | esac |
| 6105 | |
| 6106 | ac_dir=`$as_dirname -- "$ac_file" || |
| 6107 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6108 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6109 | X"$ac_file" : 'X\(//\)$' \| \ |
| 6110 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 6111 | $as_echo X"$ac_file" | |
| 6112 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6113 | s//\1/ |
| 6114 | q |
| 6115 | } |
| 6116 | /^X\(\/\/\)[^/].*/{ |
| 6117 | s//\1/ |
| 6118 | q |
| 6119 | } |
| 6120 | /^X\(\/\/\)$/{ |
| 6121 | s//\1/ |
| 6122 | q |
| 6123 | } |
| 6124 | /^X\(\/\).*/{ |
| 6125 | s//\1/ |
| 6126 | q |
| 6127 | } |
| 6128 | s/.*/./; q'` |
| 6129 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 6130 | ac_builddir=. |
| 6131 | |
| 6132 | case "$ac_dir" in |
| 6133 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6134 | *) |
| 6135 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 6136 | # A ".." for each directory in $ac_dir_suffix. |
| 6137 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 6138 | case $ac_top_builddir_sub in |
| 6139 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6140 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 6141 | esac ;; |
| 6142 | esac |
| 6143 | ac_abs_top_builddir=$ac_pwd |
| 6144 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6145 | # for backward compatibility: |
| 6146 | ac_top_builddir=$ac_top_build_prefix |
| 6147 | |
| 6148 | case $srcdir in |
| 6149 | .) # We are building in place. |
| 6150 | ac_srcdir=. |
| 6151 | ac_top_srcdir=$ac_top_builddir_sub |
| 6152 | ac_abs_top_srcdir=$ac_pwd ;; |
| 6153 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 6154 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 6155 | ac_top_srcdir=$srcdir |
| 6156 | ac_abs_top_srcdir=$srcdir ;; |
| 6157 | *) # Relative name. |
| 6158 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6159 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6160 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 6161 | esac |
| 6162 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 6163 | |
| 6164 | |
| 6165 | case $ac_mode in |
| 6166 | :F) |
| 6167 | # |
| 6168 | # CONFIG_FILE |
| 6169 | # |
| 6170 | |
| 6171 | case $INSTALL in |
| 6172 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 6173 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 6174 | esac |
| 6175 | ac_MKDIR_P=$MKDIR_P |
| 6176 | case $MKDIR_P in |
| 6177 | [\\/$]* | ?:[\\/]* ) ;; |
| 6178 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 6179 | esac |
| 6180 | _ACEOF |
| 6181 | |
| 6182 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6183 | # If the template does not know about datarootdir, expand it. |
| 6184 | # FIXME: This hack should be removed a few years after 2.60. |
| 6185 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 6186 | ac_sed_dataroot=' |
| 6187 | /datarootdir/ { |
| 6188 | p |
| 6189 | q |
| 6190 | } |
| 6191 | /@datadir@/p |
| 6192 | /@docdir@/p |
| 6193 | /@infodir@/p |
| 6194 | /@localedir@/p |
| 6195 | /@mandir@/p' |
| 6196 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 6197 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 6198 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6200 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 6201 | _ACEOF |
| 6202 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6203 | ac_datarootdir_hack=' |
| 6204 | s&@datadir@&$datadir&g |
| 6205 | s&@docdir@&$docdir&g |
| 6206 | s&@infodir@&$infodir&g |
| 6207 | s&@localedir@&$localedir&g |
| 6208 | s&@mandir@&$mandir&g |
| 6209 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 6210 | esac |
| 6211 | _ACEOF |
| 6212 | |
| 6213 | # Neutralize VPATH when `$srcdir' = `.'. |
| 6214 | # Shell code in configure.ac might set extrasub. |
| 6215 | # FIXME: do we really want to maintain this feature? |
| 6216 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6217 | ac_sed_extra="$ac_vpsub |
| 6218 | $extrasub |
| 6219 | _ACEOF |
| 6220 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6221 | :t |
| 6222 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 6223 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 6224 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 6225 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 6226 | s&@srcdir@&$ac_srcdir&;t t |
| 6227 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6228 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6229 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6230 | s&@builddir@&$ac_builddir&;t t |
| 6231 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6232 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6233 | s&@INSTALL@&$ac_INSTALL&;t t |
| 6234 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 6235 | $ac_datarootdir_hack |
| 6236 | " |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6237 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 6238 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6239 | |
| 6240 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6241 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 6242 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 6243 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6244 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6245 | which seems to be undefined. Please make sure it is defined" >&5 |
| 6246 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6247 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 6248 | |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6249 | rm -f "$ac_tmp/stdin" |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6250 | case $ac_file in |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6251 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 6252 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6253 | esac \ |
| 6254 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6255 | ;; |
| 6256 | :H) |
| 6257 | # |
| 6258 | # CONFIG_HEADER |
| 6259 | # |
| 6260 | if test x"$ac_file" != x-; then |
| 6261 | { |
| 6262 | $as_echo "/* $configure_input */" \ |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6263 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 6264 | } >"$ac_tmp/config.h" \ |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6265 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6266 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 6268 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 6269 | else |
| 6270 | rm -f "$ac_file" |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6271 | mv "$ac_tmp/config.h" "$ac_file" \ |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6272 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6273 | fi |
| 6274 | else |
| 6275 | $as_echo "/* $configure_input */" \ |
Jonathan Santos | 5a45b15 | 2011-08-17 15:33:57 -0400 | [diff] [blame^] | 6276 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 6277 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 6278 | fi |
| 6279 | # Compute "$ac_file"'s index in $config_headers. |
| 6280 | _am_arg="$ac_file" |
| 6281 | _am_stamp_count=1 |
| 6282 | for _am_header in $config_headers :; do |
| 6283 | case $_am_header in |
| 6284 | $_am_arg | $_am_arg:* ) |
| 6285 | break ;; |
| 6286 | * ) |
| 6287 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 6288 | esac |
| 6289 | done |
| 6290 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 6291 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6292 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 6293 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 6294 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 6295 | $as_echo X"$_am_arg" | |
| 6296 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6297 | s//\1/ |
| 6298 | q |
| 6299 | } |
| 6300 | /^X\(\/\/\)[^/].*/{ |
| 6301 | s//\1/ |
| 6302 | q |
| 6303 | } |
| 6304 | /^X\(\/\/\)$/{ |
| 6305 | s//\1/ |
| 6306 | q |
| 6307 | } |
| 6308 | /^X\(\/\).*/{ |
| 6309 | s//\1/ |
| 6310 | q |
| 6311 | } |
| 6312 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 6313 | ;; |
| 6314 | |
| 6315 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 6316 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 6317 | ;; |
| 6318 | esac |
| 6319 | |
| 6320 | |
| 6321 | case $ac_file$ac_mode in |
| 6322 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 6323 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 6324 | # are listed without --file. Let's play safe and only enable the eval |
| 6325 | # if we detect the quoting. |
| 6326 | case $CONFIG_FILES in |
| 6327 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 6328 | *) set x $CONFIG_FILES ;; |
| 6329 | esac |
| 6330 | shift |
| 6331 | for mf |
| 6332 | do |
| 6333 | # Strip MF so we end up with the name of the file. |
| 6334 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 6335 | # Check whether this is an Automake generated Makefile or not. |
| 6336 | # We used to match only the files named `Makefile.in', but |
| 6337 | # some people rename them; so instead we look at the file content. |
| 6338 | # Grep'ing the first line is not enough: some people post-process |
| 6339 | # each Makefile.in and add a new line on top of each file to say so. |
| 6340 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 6341 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 6342 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 6343 | dirpart=`$as_dirname -- "$mf" || |
| 6344 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6345 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 6346 | X"$mf" : 'X\(//\)$' \| \ |
| 6347 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 6348 | $as_echo X"$mf" | |
| 6349 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6350 | s//\1/ |
| 6351 | q |
| 6352 | } |
| 6353 | /^X\(\/\/\)[^/].*/{ |
| 6354 | s//\1/ |
| 6355 | q |
| 6356 | } |
| 6357 | /^X\(\/\/\)$/{ |
| 6358 | s//\1/ |
| 6359 | q |
| 6360 | } |
| 6361 | /^X\(\/\).*/{ |
| 6362 | s//\1/ |
| 6363 | q |
| 6364 | } |
| 6365 | s/.*/./; q'` |
| 6366 | else |
| 6367 | continue |
| 6368 | fi |
| 6369 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 6370 | # from the Makefile without running `make'. |
| 6371 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 6372 | test -z "$DEPDIR" && continue |
| 6373 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 6374 | test -z "am__include" && continue |
| 6375 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 6376 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 6377 | U=`sed -n 's/^U = //p' < "$mf"` |
| 6378 | # Find all dependency output files, they are included files with |
| 6379 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 6380 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 6381 | # expansion. |
| 6382 | for file in `sed -n " |
| 6383 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 6384 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 6385 | # Make sure the directory exists. |
| 6386 | test -f "$dirpart/$file" && continue |
| 6387 | fdir=`$as_dirname -- "$file" || |
| 6388 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6389 | X"$file" : 'X\(//\)[^/]' \| \ |
| 6390 | X"$file" : 'X\(//\)$' \| \ |
| 6391 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 6392 | $as_echo X"$file" | |
| 6393 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6394 | s//\1/ |
| 6395 | q |
| 6396 | } |
| 6397 | /^X\(\/\/\)[^/].*/{ |
| 6398 | s//\1/ |
| 6399 | q |
| 6400 | } |
| 6401 | /^X\(\/\/\)$/{ |
| 6402 | s//\1/ |
| 6403 | q |
| 6404 | } |
| 6405 | /^X\(\/\).*/{ |
| 6406 | s//\1/ |
| 6407 | q |
| 6408 | } |
| 6409 | s/.*/./; q'` |
| 6410 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 6411 | # echo "creating $dirpart/$file" |
| 6412 | echo '# dummy' > "$dirpart/$file" |
| 6413 | done |
| 6414 | done |
| 6415 | } |
| 6416 | ;; |
| 6417 | |
| 6418 | esac |
| 6419 | done # for ac_tag |
| 6420 | |
| 6421 | |
| 6422 | as_fn_exit 0 |
| 6423 | _ACEOF |
| 6424 | ac_clean_files=$ac_clean_files_save |
| 6425 | |
| 6426 | test $ac_write_fail = 0 || |
| 6427 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 6428 | |
| 6429 | |
| 6430 | # configure is writing to config.log, and then calls config.status. |
| 6431 | # config.status does its own redirection, appending to config.log. |
| 6432 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6433 | # by configure, so config.status won't be able to write to it; its |
| 6434 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6435 | # effectively closing config.log, so it can be properly (re)opened and |
| 6436 | # appended to by config.status. When coming back to configure, we |
| 6437 | # need to make the FD available again. |
| 6438 | if test "$no_create" != yes; then |
| 6439 | ac_cs_success=: |
| 6440 | ac_config_status_args= |
| 6441 | test "$silent" = yes && |
| 6442 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6443 | exec 5>/dev/null |
| 6444 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6445 | exec 5>>config.log |
| 6446 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6447 | # would make configure fail if this is the last instruction. |
| 6448 | $ac_cs_success || as_fn_exit 1 |
| 6449 | fi |
| 6450 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6452 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 6453 | fi |
| 6454 | |