Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.63 for mod_netconf 1.0. |
| 4 | # |
| 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
| 21 | setopt NO_GLOB_SUBST |
| 22 | else |
| 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
| 25 | esac |
| 26 | |
| 27 | fi |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | # PATH needs CR |
| 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | as_nl=' |
| 41 | ' |
| 42 | export as_nl |
| 43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
| 80 | |
| 81 | # Support unset when possible. |
| 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 83 | as_unset=unset |
| 84 | else |
| 85 | as_unset=false |
| 86 | fi |
| 87 | |
| 88 | |
| 89 | # IFS |
| 90 | # We need space, tab and new line, in precisely that order. Quoting is |
| 91 | # there to prevent editors from complaining about space-tab. |
| 92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 93 | # splitting by setting IFS to empty value.) |
| 94 | IFS=" "" $as_nl" |
| 95 | |
| 96 | # Find who we are. Look in the path if we contain no directory separator. |
| 97 | case $0 in |
| 98 | *[\\/]* ) as_myself=$0 ;; |
| 99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 100 | for as_dir in $PATH |
| 101 | do |
| 102 | IFS=$as_save_IFS |
| 103 | test -z "$as_dir" && as_dir=. |
| 104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 105 | done |
| 106 | IFS=$as_save_IFS |
| 107 | |
| 108 | ;; |
| 109 | esac |
| 110 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 111 | # in which case we are not to be found in the path. |
| 112 | if test "x$as_myself" = x; then |
| 113 | as_myself=$0 |
| 114 | fi |
| 115 | if test ! -f "$as_myself"; then |
| 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 117 | { (exit 1); exit 1; } |
| 118 | fi |
| 119 | |
| 120 | # Work around bugs in pre-3.0 UWIN ksh. |
| 121 | for as_var in ENV MAIL MAILPATH |
| 122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
| 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
| 133 | |
| 134 | # Required to use basename. |
| 135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 137 | as_expr=expr |
| 138 | else |
| 139 | as_expr=false |
| 140 | fi |
| 141 | |
| 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 143 | as_basename=basename |
| 144 | else |
| 145 | as_basename=false |
| 146 | fi |
| 147 | |
| 148 | |
| 149 | # Name of the executable. |
| 150 | as_me=`$as_basename -- "$0" || |
| 151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 152 | X"$0" : 'X\(//\)$' \| \ |
| 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 154 | $as_echo X/"$0" | |
| 155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 156 | s//\1/ |
| 157 | q |
| 158 | } |
| 159 | /^X\/\(\/\/\)$/{ |
| 160 | s//\1/ |
| 161 | q |
| 162 | } |
| 163 | /^X\/\(\/\).*/{ |
| 164 | s//\1/ |
| 165 | q |
| 166 | } |
| 167 | s/.*/./; q'` |
| 168 | |
| 169 | # CDPATH. |
| 170 | $as_unset CDPATH |
| 171 | |
| 172 | |
| 173 | if test "x$CONFIG_SHELL" = x; then |
| 174 | if (eval ":") 2>/dev/null; then |
| 175 | as_have_required=yes |
| 176 | else |
| 177 | as_have_required=no |
| 178 | fi |
| 179 | |
| 180 | if test $as_have_required = yes && (eval ": |
| 181 | (as_func_return () { |
| 182 | (exit \$1) |
| 183 | } |
| 184 | as_func_success () { |
| 185 | as_func_return 0 |
| 186 | } |
| 187 | as_func_failure () { |
| 188 | as_func_return 1 |
| 189 | } |
| 190 | as_func_ret_success () { |
| 191 | return 0 |
| 192 | } |
| 193 | as_func_ret_failure () { |
| 194 | return 1 |
| 195 | } |
| 196 | |
| 197 | exitcode=0 |
| 198 | if as_func_success; then |
| 199 | : |
| 200 | else |
| 201 | exitcode=1 |
| 202 | echo as_func_success failed. |
| 203 | fi |
| 204 | |
| 205 | if as_func_failure; then |
| 206 | exitcode=1 |
| 207 | echo as_func_failure succeeded. |
| 208 | fi |
| 209 | |
| 210 | if as_func_ret_success; then |
| 211 | : |
| 212 | else |
| 213 | exitcode=1 |
| 214 | echo as_func_ret_success failed. |
| 215 | fi |
| 216 | |
| 217 | if as_func_ret_failure; then |
| 218 | exitcode=1 |
| 219 | echo as_func_ret_failure succeeded. |
| 220 | fi |
| 221 | |
| 222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 223 | : |
| 224 | else |
| 225 | exitcode=1 |
| 226 | echo positional parameters were not saved. |
| 227 | fi |
| 228 | |
| 229 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 230 | |
| 231 | ( |
| 232 | as_lineno_1=\$LINENO |
| 233 | as_lineno_2=\$LINENO |
| 234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 236 | ") 2> /dev/null; then |
| 237 | : |
| 238 | else |
| 239 | as_candidate_shells= |
| 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 242 | do |
| 243 | IFS=$as_save_IFS |
| 244 | test -z "$as_dir" && as_dir=. |
| 245 | case $as_dir in |
| 246 | /*) |
| 247 | for as_base in sh bash ksh sh5; do |
| 248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 249 | done;; |
| 250 | esac |
| 251 | done |
| 252 | IFS=$as_save_IFS |
| 253 | |
| 254 | |
| 255 | for as_shell in $as_candidate_shells $SHELL; do |
| 256 | # Try only shells that exist, to save several forks. |
| 257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 258 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
| 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
| 267 | case `(set -o) 2>/dev/null` in |
| 268 | *posix*) set -o posix ;; |
| 269 | esac |
| 270 | |
| 271 | fi |
| 272 | |
| 273 | |
| 274 | : |
| 275 | _ASEOF |
| 276 | }; then |
| 277 | CONFIG_SHELL=$as_shell |
| 278 | as_have_required=yes |
| 279 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 281 | emulate sh |
| 282 | NULLCMD=: |
| 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 284 | # is contrary to our usage. Disable this feature. |
| 285 | alias -g '${1+"$@"}'='"$@"' |
| 286 | setopt NO_GLOB_SUBST |
| 287 | else |
| 288 | case `(set -o) 2>/dev/null` in |
| 289 | *posix*) set -o posix ;; |
| 290 | esac |
| 291 | |
| 292 | fi |
| 293 | |
| 294 | |
| 295 | : |
| 296 | (as_func_return () { |
| 297 | (exit $1) |
| 298 | } |
| 299 | as_func_success () { |
| 300 | as_func_return 0 |
| 301 | } |
| 302 | as_func_failure () { |
| 303 | as_func_return 1 |
| 304 | } |
| 305 | as_func_ret_success () { |
| 306 | return 0 |
| 307 | } |
| 308 | as_func_ret_failure () { |
| 309 | return 1 |
| 310 | } |
| 311 | |
| 312 | exitcode=0 |
| 313 | if as_func_success; then |
| 314 | : |
| 315 | else |
| 316 | exitcode=1 |
| 317 | echo as_func_success failed. |
| 318 | fi |
| 319 | |
| 320 | if as_func_failure; then |
| 321 | exitcode=1 |
| 322 | echo as_func_failure succeeded. |
| 323 | fi |
| 324 | |
| 325 | if as_func_ret_success; then |
| 326 | : |
| 327 | else |
| 328 | exitcode=1 |
| 329 | echo as_func_ret_success failed. |
| 330 | fi |
| 331 | |
| 332 | if as_func_ret_failure; then |
| 333 | exitcode=1 |
| 334 | echo as_func_ret_failure succeeded. |
| 335 | fi |
| 336 | |
| 337 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 338 | : |
| 339 | else |
| 340 | exitcode=1 |
| 341 | echo positional parameters were not saved. |
| 342 | fi |
| 343 | |
| 344 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 345 | |
| 346 | ( |
| 347 | as_lineno_1=$LINENO |
| 348 | as_lineno_2=$LINENO |
| 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 351 | |
| 352 | _ASEOF |
| 353 | }; then |
| 354 | break |
| 355 | fi |
| 356 | |
| 357 | fi |
| 358 | |
| 359 | done |
| 360 | |
| 361 | if test "x$CONFIG_SHELL" != x; then |
| 362 | for as_var in BASH_ENV ENV |
| 363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 364 | done |
| 365 | export CONFIG_SHELL |
| 366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 367 | fi |
| 368 | |
| 369 | |
| 370 | if test $as_have_required = no; then |
| 371 | echo This script requires a shell more modern than all the |
| 372 | echo shells that I found on your system. Please install a |
| 373 | echo modern shell, or manually run the script under such a |
| 374 | echo shell if you do have one. |
| 375 | { (exit 1); exit 1; } |
| 376 | fi |
| 377 | |
| 378 | |
| 379 | fi |
| 380 | |
| 381 | fi |
| 382 | |
| 383 | |
| 384 | |
| 385 | (eval "as_func_return () { |
| 386 | (exit \$1) |
| 387 | } |
| 388 | as_func_success () { |
| 389 | as_func_return 0 |
| 390 | } |
| 391 | as_func_failure () { |
| 392 | as_func_return 1 |
| 393 | } |
| 394 | as_func_ret_success () { |
| 395 | return 0 |
| 396 | } |
| 397 | as_func_ret_failure () { |
| 398 | return 1 |
| 399 | } |
| 400 | |
| 401 | exitcode=0 |
| 402 | if as_func_success; then |
| 403 | : |
| 404 | else |
| 405 | exitcode=1 |
| 406 | echo as_func_success failed. |
| 407 | fi |
| 408 | |
| 409 | if as_func_failure; then |
| 410 | exitcode=1 |
| 411 | echo as_func_failure succeeded. |
| 412 | fi |
| 413 | |
| 414 | if as_func_ret_success; then |
| 415 | : |
| 416 | else |
| 417 | exitcode=1 |
| 418 | echo as_func_ret_success failed. |
| 419 | fi |
| 420 | |
| 421 | if as_func_ret_failure; then |
| 422 | exitcode=1 |
| 423 | echo as_func_ret_failure succeeded. |
| 424 | fi |
| 425 | |
| 426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 427 | : |
| 428 | else |
| 429 | exitcode=1 |
| 430 | echo positional parameters were not saved. |
| 431 | fi |
| 432 | |
| 433 | test \$exitcode = 0") || { |
| 434 | echo No shell found that supports shell functions. |
| 435 | echo Please tell bug-autoconf@gnu.org about your system, |
| 436 | echo including any error possibly output before this message. |
| 437 | echo This can help us improve future autoconf versions. |
| 438 | echo Configuration will now proceed without shell functions. |
| 439 | } |
| 440 | |
| 441 | |
| 442 | |
| 443 | as_lineno_1=$LINENO |
| 444 | as_lineno_2=$LINENO |
| 445 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 447 | |
| 448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 449 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 450 | # line-number line after each line using $LINENO; the second 'sed' |
| 451 | # does the real work. The second script uses 'N' to pair each |
| 452 | # line-number line with the line containing $LINENO, and appends |
| 453 | # trailing '-' during substitution so that $LINENO is not a special |
| 454 | # case at line end. |
| 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 457 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 458 | sed -n ' |
| 459 | p |
| 460 | /[$]LINENO/= |
| 461 | ' <$as_myself | |
| 462 | sed ' |
| 463 | s/[$]LINENO.*/&-/ |
| 464 | t lineno |
| 465 | b |
| 466 | :lineno |
| 467 | N |
| 468 | :loop |
| 469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 470 | t loop |
| 471 | s/-\n.*// |
| 472 | ' >$as_me.lineno && |
| 473 | chmod +x "$as_me.lineno" || |
| 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 475 | { (exit 1); exit 1; }; } |
| 476 | |
| 477 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 478 | # (the dirname of $[0] is not the place where we might find the |
| 479 | # original and so on. Autoconf is especially sensitive to this). |
| 480 | . "./$as_me.lineno" |
| 481 | # Exit status is that of the last command. |
| 482 | exit |
| 483 | } |
| 484 | |
| 485 | |
| 486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 487 | as_dirname=dirname |
| 488 | else |
| 489 | as_dirname=false |
| 490 | fi |
| 491 | |
| 492 | ECHO_C= ECHO_N= ECHO_T= |
| 493 | case `echo -n x` in |
| 494 | -n*) |
| 495 | case `echo 'x\c'` in |
| 496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 497 | *) ECHO_C='\c';; |
| 498 | esac;; |
| 499 | *) |
| 500 | ECHO_N='-n';; |
| 501 | esac |
| 502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 504 | as_expr=expr |
| 505 | else |
| 506 | as_expr=false |
| 507 | fi |
| 508 | |
| 509 | rm -f conf$$ conf$$.exe conf$$.file |
| 510 | if test -d conf$$.dir; then |
| 511 | rm -f conf$$.dir/conf$$.file |
| 512 | else |
| 513 | rm -f conf$$.dir |
| 514 | mkdir conf$$.dir 2>/dev/null |
| 515 | fi |
| 516 | if (echo >conf$$.file) 2>/dev/null; then |
| 517 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 518 | as_ln_s='ln -s' |
| 519 | # ... but there are two gotchas: |
| 520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 522 | # In both cases, we have to default to `cp -p'. |
| 523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 524 | as_ln_s='cp -p' |
| 525 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 526 | as_ln_s=ln |
| 527 | else |
| 528 | as_ln_s='cp -p' |
| 529 | fi |
| 530 | else |
| 531 | as_ln_s='cp -p' |
| 532 | fi |
| 533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 534 | rmdir conf$$.dir 2>/dev/null |
| 535 | |
| 536 | if mkdir -p . 2>/dev/null; then |
| 537 | as_mkdir_p=: |
| 538 | else |
| 539 | test -d ./-p && rmdir ./-p |
| 540 | as_mkdir_p=false |
| 541 | fi |
| 542 | |
| 543 | if test -x / >/dev/null 2>&1; then |
| 544 | as_test_x='test -x' |
| 545 | else |
| 546 | if ls -dL / >/dev/null 2>&1; then |
| 547 | as_ls_L_option=L |
| 548 | else |
| 549 | as_ls_L_option= |
| 550 | fi |
| 551 | as_test_x=' |
| 552 | eval sh -c '\'' |
| 553 | if test -d "$1"; then |
| 554 | test -d "$1/."; |
| 555 | else |
| 556 | case $1 in |
| 557 | -*)set "./$1";; |
| 558 | esac; |
| 559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 560 | ???[sx]*):;;*)false;;esac;fi |
| 561 | '\'' sh |
| 562 | ' |
| 563 | fi |
| 564 | as_executable_p=$as_test_x |
| 565 | |
| 566 | # Sed expression to map a string onto a valid CPP name. |
| 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 568 | |
| 569 | # Sed expression to map a string onto a valid variable name. |
| 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 571 | |
| 572 | |
| 573 | |
| 574 | exec 7<&0 </dev/null 6>&1 |
| 575 | |
| 576 | # Name of the host. |
| 577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 578 | # so uname gets run too. |
| 579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 580 | |
| 581 | # |
| 582 | # Initializations. |
| 583 | # |
| 584 | ac_default_prefix=/usr/local |
| 585 | ac_clean_files= |
| 586 | ac_config_libobj_dir=. |
| 587 | LIBOBJS= |
| 588 | cross_compiling=no |
| 589 | subdirs= |
| 590 | MFLAGS= |
| 591 | MAKEFLAGS= |
| 592 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 593 | |
| 594 | # Identity of this package. |
| 595 | PACKAGE_NAME='mod_netconf' |
| 596 | PACKAGE_TARNAME='mod_netconf' |
| 597 | PACKAGE_VERSION='1.0' |
| 598 | PACKAGE_STRING='mod_netconf 1.0' |
| 599 | PACKAGE_BUGREPORT='' |
| 600 | |
| 601 | ac_unique_file="mod_netconf.c" |
| 602 | # Factoring default headers for most tests. |
| 603 | ac_includes_default="\ |
| 604 | #include <stdio.h> |
| 605 | #ifdef HAVE_SYS_TYPES_H |
| 606 | # include <sys/types.h> |
| 607 | #endif |
| 608 | #ifdef HAVE_SYS_STAT_H |
| 609 | # include <sys/stat.h> |
| 610 | #endif |
| 611 | #ifdef STDC_HEADERS |
| 612 | # include <stdlib.h> |
| 613 | # include <stddef.h> |
| 614 | #else |
| 615 | # ifdef HAVE_STDLIB_H |
| 616 | # include <stdlib.h> |
| 617 | # endif |
| 618 | #endif |
| 619 | #ifdef HAVE_STRING_H |
| 620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 621 | # include <memory.h> |
| 622 | # endif |
| 623 | # include <string.h> |
| 624 | #endif |
| 625 | #ifdef HAVE_STRINGS_H |
| 626 | # include <strings.h> |
| 627 | #endif |
| 628 | #ifdef HAVE_INTTYPES_H |
| 629 | # include <inttypes.h> |
| 630 | #endif |
| 631 | #ifdef HAVE_STDINT_H |
| 632 | # include <stdint.h> |
| 633 | #endif |
| 634 | #ifdef HAVE_UNISTD_H |
| 635 | # include <unistd.h> |
| 636 | #endif" |
| 637 | |
| 638 | ac_subst_vars='LTLIBOBJS |
| 639 | LIBOBJS |
Tomas Cejka | 689a104 | 2013-01-16 15:08:25 +0100 | [diff] [blame] | 640 | ARCSID |
| 641 | RCSID |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 642 | BUILDREQS |
| 643 | REQS |
| 644 | EGREP |
| 645 | GREP |
| 646 | CPP |
| 647 | OBJEXT |
| 648 | EXEEXT |
| 649 | ac_ct_CC |
| 650 | CPPFLAGS |
| 651 | LDFLAGS |
| 652 | CFLAGS |
| 653 | CC |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 654 | LIBNETCONF_WITH |
| 655 | LIBNETCONF_LIBS |
| 656 | LIBNETCONF_CFLAGS |
| 657 | PKG_CONFIG |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 658 | RELEASE |
| 659 | RPMBUILD |
| 660 | INSTALL_DATA |
| 661 | INSTALL_SCRIPT |
| 662 | INSTALL_PROGRAM |
| 663 | target_alias |
| 664 | host_alias |
| 665 | build_alias |
| 666 | LIBS |
| 667 | ECHO_T |
| 668 | ECHO_N |
| 669 | ECHO_C |
| 670 | DEFS |
| 671 | mandir |
| 672 | localedir |
| 673 | libdir |
| 674 | psdir |
| 675 | pdfdir |
| 676 | dvidir |
| 677 | htmldir |
| 678 | infodir |
| 679 | docdir |
| 680 | oldincludedir |
| 681 | includedir |
| 682 | localstatedir |
| 683 | sharedstatedir |
| 684 | sysconfdir |
| 685 | datadir |
| 686 | datarootdir |
| 687 | libexecdir |
| 688 | sbindir |
| 689 | bindir |
| 690 | program_transform_name |
| 691 | prefix |
| 692 | exec_prefix |
| 693 | PACKAGE_BUGREPORT |
| 694 | PACKAGE_STRING |
| 695 | PACKAGE_VERSION |
| 696 | PACKAGE_TARNAME |
| 697 | PACKAGE_NAME |
| 698 | PATH_SEPARATOR |
| 699 | SHELL' |
| 700 | ac_subst_files='' |
| 701 | ac_user_opts=' |
| 702 | enable_option_checking |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 703 | with_libnetconf |
Tomas Cejka | d340dbf | 2013-03-24 20:36:57 +0100 | [diff] [blame] | 704 | with_notifications |
Tomas Cejka | 04a98cb | 2013-07-05 09:59:20 +0200 | [diff] [blame] | 705 | with_notifport |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 706 | ' |
| 707 | ac_precious_vars='build_alias |
| 708 | host_alias |
| 709 | target_alias |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 710 | PKG_CONFIG |
| 711 | LIBNETCONF_CFLAGS |
| 712 | LIBNETCONF_LIBS |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 713 | CC |
| 714 | CFLAGS |
| 715 | LDFLAGS |
| 716 | LIBS |
| 717 | CPPFLAGS |
| 718 | CPP' |
| 719 | |
| 720 | |
| 721 | # Initialize some variables set by options. |
| 722 | ac_init_help= |
| 723 | ac_init_version=false |
| 724 | ac_unrecognized_opts= |
| 725 | ac_unrecognized_sep= |
| 726 | # The variables have the same names as the options, with |
| 727 | # dashes changed to underlines. |
| 728 | cache_file=/dev/null |
| 729 | exec_prefix=NONE |
| 730 | no_create= |
| 731 | no_recursion= |
| 732 | prefix=NONE |
| 733 | program_prefix=NONE |
| 734 | program_suffix=NONE |
| 735 | program_transform_name=s,x,x, |
| 736 | silent= |
| 737 | site= |
| 738 | srcdir= |
| 739 | verbose= |
| 740 | x_includes=NONE |
| 741 | x_libraries=NONE |
| 742 | |
| 743 | # Installation directory options. |
| 744 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 745 | # and all the variables that are supposed to be based on exec_prefix |
| 746 | # by default will actually change. |
| 747 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 748 | # (The list follows the same order as the GNU Coding Standards.) |
| 749 | bindir='${exec_prefix}/bin' |
| 750 | sbindir='${exec_prefix}/sbin' |
| 751 | libexecdir='${exec_prefix}/libexec' |
| 752 | datarootdir='${prefix}/share' |
| 753 | datadir='${datarootdir}' |
| 754 | sysconfdir='${prefix}/etc' |
| 755 | sharedstatedir='${prefix}/com' |
| 756 | localstatedir='${prefix}/var' |
| 757 | includedir='${prefix}/include' |
| 758 | oldincludedir='/usr/include' |
| 759 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 760 | infodir='${datarootdir}/info' |
| 761 | htmldir='${docdir}' |
| 762 | dvidir='${docdir}' |
| 763 | pdfdir='${docdir}' |
| 764 | psdir='${docdir}' |
| 765 | libdir='${exec_prefix}/lib' |
| 766 | localedir='${datarootdir}/locale' |
| 767 | mandir='${datarootdir}/man' |
| 768 | |
| 769 | ac_prev= |
| 770 | ac_dashdash= |
| 771 | for ac_option |
| 772 | do |
| 773 | # If the previous option needs an argument, assign it. |
| 774 | if test -n "$ac_prev"; then |
| 775 | eval $ac_prev=\$ac_option |
| 776 | ac_prev= |
| 777 | continue |
| 778 | fi |
| 779 | |
| 780 | case $ac_option in |
| 781 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 782 | *) ac_optarg=yes ;; |
| 783 | esac |
| 784 | |
| 785 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 786 | |
| 787 | case $ac_dashdash$ac_option in |
| 788 | --) |
| 789 | ac_dashdash=yes ;; |
| 790 | |
| 791 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 792 | ac_prev=bindir ;; |
| 793 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 794 | bindir=$ac_optarg ;; |
| 795 | |
| 796 | -build | --build | --buil | --bui | --bu) |
| 797 | ac_prev=build_alias ;; |
| 798 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 799 | build_alias=$ac_optarg ;; |
| 800 | |
| 801 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 802 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 803 | ac_prev=cache_file ;; |
| 804 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 805 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 806 | cache_file=$ac_optarg ;; |
| 807 | |
| 808 | --config-cache | -C) |
| 809 | cache_file=config.cache ;; |
| 810 | |
| 811 | -datadir | --datadir | --datadi | --datad) |
| 812 | ac_prev=datadir ;; |
| 813 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 814 | datadir=$ac_optarg ;; |
| 815 | |
| 816 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 817 | | --dataroo | --dataro | --datar) |
| 818 | ac_prev=datarootdir ;; |
| 819 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 820 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 821 | datarootdir=$ac_optarg ;; |
| 822 | |
| 823 | -disable-* | --disable-*) |
| 824 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 825 | # Reject names that are not valid shell variable names. |
| 826 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 827 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
| 828 | { (exit 1); exit 1; }; } |
| 829 | ac_useropt_orig=$ac_useropt |
| 830 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 831 | case $ac_user_opts in |
| 832 | *" |
| 833 | "enable_$ac_useropt" |
| 834 | "*) ;; |
| 835 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 836 | ac_unrecognized_sep=', ';; |
| 837 | esac |
| 838 | eval enable_$ac_useropt=no ;; |
| 839 | |
| 840 | -docdir | --docdir | --docdi | --doc | --do) |
| 841 | ac_prev=docdir ;; |
| 842 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 843 | docdir=$ac_optarg ;; |
| 844 | |
| 845 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 846 | ac_prev=dvidir ;; |
| 847 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 848 | dvidir=$ac_optarg ;; |
| 849 | |
| 850 | -enable-* | --enable-*) |
| 851 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 852 | # Reject names that are not valid shell variable names. |
| 853 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 854 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
| 855 | { (exit 1); exit 1; }; } |
| 856 | ac_useropt_orig=$ac_useropt |
| 857 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 858 | case $ac_user_opts in |
| 859 | *" |
| 860 | "enable_$ac_useropt" |
| 861 | "*) ;; |
| 862 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 863 | ac_unrecognized_sep=', ';; |
| 864 | esac |
| 865 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 866 | |
| 867 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 868 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 869 | | --exec | --exe | --ex) |
| 870 | ac_prev=exec_prefix ;; |
| 871 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 872 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 873 | | --exec=* | --exe=* | --ex=*) |
| 874 | exec_prefix=$ac_optarg ;; |
| 875 | |
| 876 | -gas | --gas | --ga | --g) |
| 877 | # Obsolete; use --with-gas. |
| 878 | with_gas=yes ;; |
| 879 | |
| 880 | -help | --help | --hel | --he | -h) |
| 881 | ac_init_help=long ;; |
| 882 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 883 | ac_init_help=recursive ;; |
| 884 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 885 | ac_init_help=short ;; |
| 886 | |
| 887 | -host | --host | --hos | --ho) |
| 888 | ac_prev=host_alias ;; |
| 889 | -host=* | --host=* | --hos=* | --ho=*) |
| 890 | host_alias=$ac_optarg ;; |
| 891 | |
| 892 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 893 | ac_prev=htmldir ;; |
| 894 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 895 | | --ht=*) |
| 896 | htmldir=$ac_optarg ;; |
| 897 | |
| 898 | -includedir | --includedir | --includedi | --included | --include \ |
| 899 | | --includ | --inclu | --incl | --inc) |
| 900 | ac_prev=includedir ;; |
| 901 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 902 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 903 | includedir=$ac_optarg ;; |
| 904 | |
| 905 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 906 | ac_prev=infodir ;; |
| 907 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 908 | infodir=$ac_optarg ;; |
| 909 | |
| 910 | -libdir | --libdir | --libdi | --libd) |
| 911 | ac_prev=libdir ;; |
| 912 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 913 | libdir=$ac_optarg ;; |
| 914 | |
| 915 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 916 | | --libexe | --libex | --libe) |
| 917 | ac_prev=libexecdir ;; |
| 918 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 919 | | --libexe=* | --libex=* | --libe=*) |
| 920 | libexecdir=$ac_optarg ;; |
| 921 | |
| 922 | -localedir | --localedir | --localedi | --localed | --locale) |
| 923 | ac_prev=localedir ;; |
| 924 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 925 | localedir=$ac_optarg ;; |
| 926 | |
| 927 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 928 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 929 | ac_prev=localstatedir ;; |
| 930 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 931 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 932 | localstatedir=$ac_optarg ;; |
| 933 | |
| 934 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 935 | ac_prev=mandir ;; |
| 936 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 937 | mandir=$ac_optarg ;; |
| 938 | |
| 939 | -nfp | --nfp | --nf) |
| 940 | # Obsolete; use --without-fp. |
| 941 | with_fp=no ;; |
| 942 | |
| 943 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 944 | | --no-cr | --no-c | -n) |
| 945 | no_create=yes ;; |
| 946 | |
| 947 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 948 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 949 | no_recursion=yes ;; |
| 950 | |
| 951 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 952 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 953 | | --oldin | --oldi | --old | --ol | --o) |
| 954 | ac_prev=oldincludedir ;; |
| 955 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 956 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 957 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 958 | oldincludedir=$ac_optarg ;; |
| 959 | |
| 960 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 961 | ac_prev=prefix ;; |
| 962 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 963 | prefix=$ac_optarg ;; |
| 964 | |
| 965 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 966 | | --program-pre | --program-pr | --program-p) |
| 967 | ac_prev=program_prefix ;; |
| 968 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 969 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 970 | program_prefix=$ac_optarg ;; |
| 971 | |
| 972 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 973 | | --program-suf | --program-su | --program-s) |
| 974 | ac_prev=program_suffix ;; |
| 975 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 976 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 977 | program_suffix=$ac_optarg ;; |
| 978 | |
| 979 | -program-transform-name | --program-transform-name \ |
| 980 | | --program-transform-nam | --program-transform-na \ |
| 981 | | --program-transform-n | --program-transform- \ |
| 982 | | --program-transform | --program-transfor \ |
| 983 | | --program-transfo | --program-transf \ |
| 984 | | --program-trans | --program-tran \ |
| 985 | | --progr-tra | --program-tr | --program-t) |
| 986 | ac_prev=program_transform_name ;; |
| 987 | -program-transform-name=* | --program-transform-name=* \ |
| 988 | | --program-transform-nam=* | --program-transform-na=* \ |
| 989 | | --program-transform-n=* | --program-transform-=* \ |
| 990 | | --program-transform=* | --program-transfor=* \ |
| 991 | | --program-transfo=* | --program-transf=* \ |
| 992 | | --program-trans=* | --program-tran=* \ |
| 993 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 994 | program_transform_name=$ac_optarg ;; |
| 995 | |
| 996 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 997 | ac_prev=pdfdir ;; |
| 998 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 999 | pdfdir=$ac_optarg ;; |
| 1000 | |
| 1001 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1002 | ac_prev=psdir ;; |
| 1003 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1004 | psdir=$ac_optarg ;; |
| 1005 | |
| 1006 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1007 | | -silent | --silent | --silen | --sile | --sil) |
| 1008 | silent=yes ;; |
| 1009 | |
| 1010 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1011 | ac_prev=sbindir ;; |
| 1012 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1013 | | --sbi=* | --sb=*) |
| 1014 | sbindir=$ac_optarg ;; |
| 1015 | |
| 1016 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1017 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1018 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1019 | | --sha | --sh) |
| 1020 | ac_prev=sharedstatedir ;; |
| 1021 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1022 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1023 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1024 | | --sha=* | --sh=*) |
| 1025 | sharedstatedir=$ac_optarg ;; |
| 1026 | |
| 1027 | -site | --site | --sit) |
| 1028 | ac_prev=site ;; |
| 1029 | -site=* | --site=* | --sit=*) |
| 1030 | site=$ac_optarg ;; |
| 1031 | |
| 1032 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1033 | ac_prev=srcdir ;; |
| 1034 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1035 | srcdir=$ac_optarg ;; |
| 1036 | |
| 1037 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1038 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1039 | ac_prev=sysconfdir ;; |
| 1040 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1041 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1042 | sysconfdir=$ac_optarg ;; |
| 1043 | |
| 1044 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1045 | ac_prev=target_alias ;; |
| 1046 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1047 | target_alias=$ac_optarg ;; |
| 1048 | |
| 1049 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1050 | verbose=yes ;; |
| 1051 | |
| 1052 | -version | --version | --versio | --versi | --vers | -V) |
| 1053 | ac_init_version=: ;; |
| 1054 | |
| 1055 | -with-* | --with-*) |
| 1056 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1057 | # Reject names that are not valid shell variable names. |
| 1058 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1059 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
| 1060 | { (exit 1); exit 1; }; } |
| 1061 | ac_useropt_orig=$ac_useropt |
| 1062 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1063 | case $ac_user_opts in |
| 1064 | *" |
| 1065 | "with_$ac_useropt" |
| 1066 | "*) ;; |
| 1067 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1068 | ac_unrecognized_sep=', ';; |
| 1069 | esac |
| 1070 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1071 | |
| 1072 | -without-* | --without-*) |
| 1073 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1074 | # Reject names that are not valid shell variable names. |
| 1075 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1076 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
| 1077 | { (exit 1); exit 1; }; } |
| 1078 | ac_useropt_orig=$ac_useropt |
| 1079 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1080 | case $ac_user_opts in |
| 1081 | *" |
| 1082 | "with_$ac_useropt" |
| 1083 | "*) ;; |
| 1084 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1085 | ac_unrecognized_sep=', ';; |
| 1086 | esac |
| 1087 | eval with_$ac_useropt=no ;; |
| 1088 | |
| 1089 | --x) |
| 1090 | # Obsolete; use --with-x. |
| 1091 | with_x=yes ;; |
| 1092 | |
| 1093 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1094 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1095 | ac_prev=x_includes ;; |
| 1096 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1097 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1098 | x_includes=$ac_optarg ;; |
| 1099 | |
| 1100 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1101 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1102 | ac_prev=x_libraries ;; |
| 1103 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1104 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1105 | x_libraries=$ac_optarg ;; |
| 1106 | |
| 1107 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
| 1108 | Try \`$0 --help' for more information." >&2 |
| 1109 | { (exit 1); exit 1; }; } |
| 1110 | ;; |
| 1111 | |
| 1112 | *=*) |
| 1113 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1114 | # Reject names that are not valid shell variable names. |
| 1115 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1116 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1117 | { (exit 1); exit 1; }; } |
| 1118 | eval $ac_envvar=\$ac_optarg |
| 1119 | export $ac_envvar ;; |
| 1120 | |
| 1121 | *) |
| 1122 | # FIXME: should be removed in autoconf 3.0. |
| 1123 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1124 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1125 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1126 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1127 | ;; |
| 1128 | |
| 1129 | esac |
| 1130 | done |
| 1131 | |
| 1132 | if test -n "$ac_prev"; then |
| 1133 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1134 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1135 | { (exit 1); exit 1; }; } |
| 1136 | fi |
| 1137 | |
| 1138 | if test -n "$ac_unrecognized_opts"; then |
| 1139 | case $enable_option_checking in |
| 1140 | no) ;; |
| 1141 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
| 1142 | { (exit 1); exit 1; }; } ;; |
| 1143 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1144 | esac |
| 1145 | fi |
| 1146 | |
| 1147 | # Check all directory arguments for consistency. |
| 1148 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1149 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1150 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1151 | libdir localedir mandir |
| 1152 | do |
| 1153 | eval ac_val=\$$ac_var |
| 1154 | # Remove trailing slashes. |
| 1155 | case $ac_val in |
| 1156 | */ ) |
| 1157 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1158 | eval $ac_var=\$ac_val;; |
| 1159 | esac |
| 1160 | # Be sure to have absolute directory names. |
| 1161 | case $ac_val in |
| 1162 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1163 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1164 | esac |
| 1165 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1166 | { (exit 1); exit 1; }; } |
| 1167 | done |
| 1168 | |
| 1169 | # There might be people who depend on the old broken behavior: `$host' |
| 1170 | # used to hold the argument of --host etc. |
| 1171 | # FIXME: To remove some day. |
| 1172 | build=$build_alias |
| 1173 | host=$host_alias |
| 1174 | target=$target_alias |
| 1175 | |
| 1176 | # FIXME: To remove some day. |
| 1177 | if test "x$host_alias" != x; then |
| 1178 | if test "x$build_alias" = x; then |
| 1179 | cross_compiling=maybe |
| 1180 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1181 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1182 | elif test "x$build_alias" != "x$host_alias"; then |
| 1183 | cross_compiling=yes |
| 1184 | fi |
| 1185 | fi |
| 1186 | |
| 1187 | ac_tool_prefix= |
| 1188 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1189 | |
| 1190 | test "$silent" = yes && exec 6>/dev/null |
| 1191 | |
| 1192 | |
| 1193 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1194 | ac_ls_di=`ls -di .` && |
| 1195 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1196 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
| 1197 | { (exit 1); exit 1; }; } |
| 1198 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1199 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1200 | { (exit 1); exit 1; }; } |
| 1201 | |
| 1202 | |
| 1203 | # Find the source files, if location was not specified. |
| 1204 | if test -z "$srcdir"; then |
| 1205 | ac_srcdir_defaulted=yes |
| 1206 | # Try the directory containing this script, then the parent directory. |
| 1207 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1208 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1209 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1210 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1211 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1212 | $as_echo X"$as_myself" | |
| 1213 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1214 | s//\1/ |
| 1215 | q |
| 1216 | } |
| 1217 | /^X\(\/\/\)[^/].*/{ |
| 1218 | s//\1/ |
| 1219 | q |
| 1220 | } |
| 1221 | /^X\(\/\/\)$/{ |
| 1222 | s//\1/ |
| 1223 | q |
| 1224 | } |
| 1225 | /^X\(\/\).*/{ |
| 1226 | s//\1/ |
| 1227 | q |
| 1228 | } |
| 1229 | s/.*/./; q'` |
| 1230 | srcdir=$ac_confdir |
| 1231 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1232 | srcdir=.. |
| 1233 | fi |
| 1234 | else |
| 1235 | ac_srcdir_defaulted=no |
| 1236 | fi |
| 1237 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1238 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1239 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1240 | { (exit 1); exit 1; }; } |
| 1241 | fi |
| 1242 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1243 | ac_abs_confdir=`( |
| 1244 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
| 1245 | { (exit 1); exit 1; }; } |
| 1246 | pwd)` |
| 1247 | # When building in place, set srcdir=. |
| 1248 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1249 | srcdir=. |
| 1250 | fi |
| 1251 | # Remove unnecessary trailing slashes from srcdir. |
| 1252 | # Double slashes in file names in object file debugging info |
| 1253 | # mess up M-x gdb in Emacs. |
| 1254 | case $srcdir in |
| 1255 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1256 | esac |
| 1257 | for ac_var in $ac_precious_vars; do |
| 1258 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1259 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1260 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1261 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1262 | done |
| 1263 | |
| 1264 | # |
| 1265 | # Report the --help message. |
| 1266 | # |
| 1267 | if test "$ac_init_help" = "long"; then |
| 1268 | # Omit some internal or obsolete options to make the list less imposing. |
| 1269 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1270 | cat <<_ACEOF |
| 1271 | \`configure' configures mod_netconf 1.0 to adapt to many kinds of systems. |
| 1272 | |
| 1273 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1274 | |
| 1275 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1276 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1277 | |
| 1278 | Defaults for the options are specified in brackets. |
| 1279 | |
| 1280 | Configuration: |
| 1281 | -h, --help display this help and exit |
| 1282 | --help=short display options specific to this package |
| 1283 | --help=recursive display the short help of all the included packages |
| 1284 | -V, --version display version information and exit |
| 1285 | -q, --quiet, --silent do not print \`checking...' messages |
| 1286 | --cache-file=FILE cache test results in FILE [disabled] |
| 1287 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1288 | -n, --no-create do not create output files |
| 1289 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1290 | |
| 1291 | Installation directories: |
| 1292 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1293 | [$ac_default_prefix] |
| 1294 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1295 | [PREFIX] |
| 1296 | |
| 1297 | By default, \`make install' will install all the files in |
| 1298 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1299 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1300 | for instance \`--prefix=\$HOME'. |
| 1301 | |
| 1302 | For better control, use the options below. |
| 1303 | |
| 1304 | Fine tuning of the installation directories: |
| 1305 | --bindir=DIR user executables [EPREFIX/bin] |
| 1306 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1307 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1308 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1309 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1310 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1311 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1312 | --includedir=DIR C header files [PREFIX/include] |
| 1313 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1314 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1315 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1316 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1317 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1318 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1319 | --docdir=DIR documentation root [DATAROOTDIR/doc/mod_netconf] |
| 1320 | --htmldir=DIR html documentation [DOCDIR] |
| 1321 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1322 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1323 | --psdir=DIR ps documentation [DOCDIR] |
| 1324 | _ACEOF |
| 1325 | |
| 1326 | cat <<\_ACEOF |
| 1327 | _ACEOF |
| 1328 | fi |
| 1329 | |
| 1330 | if test -n "$ac_init_help"; then |
| 1331 | case $ac_init_help in |
| 1332 | short | recursive ) echo "Configuration of mod_netconf 1.0:";; |
| 1333 | esac |
| 1334 | cat <<\_ACEOF |
| 1335 | |
Tomas Cejka | d340dbf | 2013-03-24 20:36:57 +0100 | [diff] [blame] | 1336 | Optional Packages: |
| 1337 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1338 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 1339 | --with-libnetconf=PATH Set the path to libnetconf (usually local GIT |
| 1340 | repository) |
| 1341 | --without-notifications Disable notifications |
Tomas Cejka | 04a98cb | 2013-07-05 09:59:20 +0200 | [diff] [blame] | 1342 | --with-notifport=PORT Set TCP port of websocket notification server. |
Tomas Cejka | d340dbf | 2013-03-24 20:36:57 +0100 | [diff] [blame] | 1343 | |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 1344 | Some influential environment variables: |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 1345 | PKG_CONFIG path to pkg-config utility |
| 1346 | LIBNETCONF_CFLAGS |
| 1347 | C compiler flags for LIBNETCONF, overriding pkg-config |
| 1348 | LIBNETCONF_LIBS |
| 1349 | linker flags for LIBNETCONF, overriding pkg-config |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 1350 | CC C compiler command |
| 1351 | CFLAGS C compiler flags |
| 1352 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1353 | nonstandard directory <lib dir> |
| 1354 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1355 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1356 | you have headers in a nonstandard directory <include dir> |
| 1357 | CPP C preprocessor |
| 1358 | |
| 1359 | Use these variables to override the choices made by `configure' or to help |
| 1360 | it to find libraries and programs with nonstandard names/locations. |
| 1361 | |
| 1362 | _ACEOF |
| 1363 | ac_status=$? |
| 1364 | fi |
| 1365 | |
| 1366 | if test "$ac_init_help" = "recursive"; then |
| 1367 | # If there are subdirs, report their specific --help. |
| 1368 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1369 | test -d "$ac_dir" || |
| 1370 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1371 | continue |
| 1372 | ac_builddir=. |
| 1373 | |
| 1374 | case "$ac_dir" in |
| 1375 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1376 | *) |
| 1377 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1378 | # A ".." for each directory in $ac_dir_suffix. |
| 1379 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1380 | case $ac_top_builddir_sub in |
| 1381 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1382 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1383 | esac ;; |
| 1384 | esac |
| 1385 | ac_abs_top_builddir=$ac_pwd |
| 1386 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1387 | # for backward compatibility: |
| 1388 | ac_top_builddir=$ac_top_build_prefix |
| 1389 | |
| 1390 | case $srcdir in |
| 1391 | .) # We are building in place. |
| 1392 | ac_srcdir=. |
| 1393 | ac_top_srcdir=$ac_top_builddir_sub |
| 1394 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1395 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1396 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1397 | ac_top_srcdir=$srcdir |
| 1398 | ac_abs_top_srcdir=$srcdir ;; |
| 1399 | *) # Relative name. |
| 1400 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1401 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1402 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1403 | esac |
| 1404 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1405 | |
| 1406 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1407 | # Check for guested configure. |
| 1408 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1409 | echo && |
| 1410 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1411 | elif test -f "$ac_srcdir/configure"; then |
| 1412 | echo && |
| 1413 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1414 | else |
| 1415 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1416 | fi || ac_status=$? |
| 1417 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1418 | done |
| 1419 | fi |
| 1420 | |
| 1421 | test -n "$ac_init_help" && exit $ac_status |
| 1422 | if $ac_init_version; then |
| 1423 | cat <<\_ACEOF |
| 1424 | mod_netconf configure 1.0 |
| 1425 | generated by GNU Autoconf 2.63 |
| 1426 | |
| 1427 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1428 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 1429 | This configure script is free software; the Free Software Foundation |
| 1430 | gives unlimited permission to copy, distribute and modify it. |
| 1431 | _ACEOF |
| 1432 | exit |
| 1433 | fi |
| 1434 | cat >config.log <<_ACEOF |
| 1435 | This file contains any messages produced by compilers while |
| 1436 | running configure, to aid debugging if configure makes a mistake. |
| 1437 | |
| 1438 | It was created by mod_netconf $as_me 1.0, which was |
| 1439 | generated by GNU Autoconf 2.63. Invocation command line was |
| 1440 | |
| 1441 | $ $0 $@ |
| 1442 | |
| 1443 | _ACEOF |
| 1444 | exec 5>>config.log |
| 1445 | { |
| 1446 | cat <<_ASUNAME |
| 1447 | ## --------- ## |
| 1448 | ## Platform. ## |
| 1449 | ## --------- ## |
| 1450 | |
| 1451 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1452 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1453 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1454 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1455 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1456 | |
| 1457 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1458 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1459 | |
| 1460 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1461 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1462 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1463 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1464 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1465 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1466 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1467 | |
| 1468 | _ASUNAME |
| 1469 | |
| 1470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1471 | for as_dir in $PATH |
| 1472 | do |
| 1473 | IFS=$as_save_IFS |
| 1474 | test -z "$as_dir" && as_dir=. |
| 1475 | $as_echo "PATH: $as_dir" |
| 1476 | done |
| 1477 | IFS=$as_save_IFS |
| 1478 | |
| 1479 | } >&5 |
| 1480 | |
| 1481 | cat >&5 <<_ACEOF |
| 1482 | |
| 1483 | |
| 1484 | ## ----------- ## |
| 1485 | ## Core tests. ## |
| 1486 | ## ----------- ## |
| 1487 | |
| 1488 | _ACEOF |
| 1489 | |
| 1490 | |
| 1491 | # Keep a trace of the command line. |
| 1492 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1493 | # Strip out --silent because we don't want to record it for future runs. |
| 1494 | # Also quote any args containing shell meta-characters. |
| 1495 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1496 | ac_configure_args= |
| 1497 | ac_configure_args0= |
| 1498 | ac_configure_args1= |
| 1499 | ac_must_keep_next=false |
| 1500 | for ac_pass in 1 2 |
| 1501 | do |
| 1502 | for ac_arg |
| 1503 | do |
| 1504 | case $ac_arg in |
| 1505 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1506 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1507 | | -silent | --silent | --silen | --sile | --sil) |
| 1508 | continue ;; |
| 1509 | *\'*) |
| 1510 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1511 | esac |
| 1512 | case $ac_pass in |
| 1513 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1514 | 2) |
| 1515 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1516 | if test $ac_must_keep_next = true; then |
| 1517 | ac_must_keep_next=false # Got value, back to normal. |
| 1518 | else |
| 1519 | case $ac_arg in |
| 1520 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1521 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1522 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1523 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1524 | case "$ac_configure_args0 " in |
| 1525 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1526 | esac |
| 1527 | ;; |
| 1528 | -* ) ac_must_keep_next=true ;; |
| 1529 | esac |
| 1530 | fi |
| 1531 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 1532 | ;; |
| 1533 | esac |
| 1534 | done |
| 1535 | done |
| 1536 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1537 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1538 | |
| 1539 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1540 | # config.log. We remove comments because anyway the quotes in there |
| 1541 | # would cause problems or look ugly. |
| 1542 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1543 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1544 | trap 'exit_status=$? |
| 1545 | # Save into config.log some information that might help in debugging. |
| 1546 | { |
| 1547 | echo |
| 1548 | |
| 1549 | cat <<\_ASBOX |
| 1550 | ## ---------------- ## |
| 1551 | ## Cache variables. ## |
| 1552 | ## ---------------- ## |
| 1553 | _ASBOX |
| 1554 | echo |
| 1555 | # The following way of writing the cache mishandles newlines in values, |
| 1556 | ( |
| 1557 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1558 | eval ac_val=\$$ac_var |
| 1559 | case $ac_val in #( |
| 1560 | *${as_nl}*) |
| 1561 | case $ac_var in #( |
| 1562 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1563 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1564 | esac |
| 1565 | case $ac_var in #( |
| 1566 | _ | IFS | as_nl) ;; #( |
| 1567 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1568 | *) $as_unset $ac_var ;; |
| 1569 | esac ;; |
| 1570 | esac |
| 1571 | done |
| 1572 | (set) 2>&1 | |
| 1573 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1574 | *${as_nl}ac_space=\ *) |
| 1575 | sed -n \ |
| 1576 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1577 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1578 | ;; #( |
| 1579 | *) |
| 1580 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1581 | ;; |
| 1582 | esac | |
| 1583 | sort |
| 1584 | ) |
| 1585 | echo |
| 1586 | |
| 1587 | cat <<\_ASBOX |
| 1588 | ## ----------------- ## |
| 1589 | ## Output variables. ## |
| 1590 | ## ----------------- ## |
| 1591 | _ASBOX |
| 1592 | echo |
| 1593 | for ac_var in $ac_subst_vars |
| 1594 | do |
| 1595 | eval ac_val=\$$ac_var |
| 1596 | case $ac_val in |
| 1597 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1598 | esac |
| 1599 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1600 | done | sort |
| 1601 | echo |
| 1602 | |
| 1603 | if test -n "$ac_subst_files"; then |
| 1604 | cat <<\_ASBOX |
| 1605 | ## ------------------- ## |
| 1606 | ## File substitutions. ## |
| 1607 | ## ------------------- ## |
| 1608 | _ASBOX |
| 1609 | echo |
| 1610 | for ac_var in $ac_subst_files |
| 1611 | do |
| 1612 | eval ac_val=\$$ac_var |
| 1613 | case $ac_val in |
| 1614 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1615 | esac |
| 1616 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1617 | done | sort |
| 1618 | echo |
| 1619 | fi |
| 1620 | |
| 1621 | if test -s confdefs.h; then |
| 1622 | cat <<\_ASBOX |
| 1623 | ## ----------- ## |
| 1624 | ## confdefs.h. ## |
| 1625 | ## ----------- ## |
| 1626 | _ASBOX |
| 1627 | echo |
| 1628 | cat confdefs.h |
| 1629 | echo |
| 1630 | fi |
| 1631 | test "$ac_signal" != 0 && |
| 1632 | $as_echo "$as_me: caught signal $ac_signal" |
| 1633 | $as_echo "$as_me: exit $exit_status" |
| 1634 | } >&5 |
| 1635 | rm -f core *.core core.conftest.* && |
| 1636 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1637 | exit $exit_status |
| 1638 | ' 0 |
| 1639 | for ac_signal in 1 2 13 15; do |
| 1640 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1641 | done |
| 1642 | ac_signal=0 |
| 1643 | |
| 1644 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1645 | rm -f -r conftest* confdefs.h |
| 1646 | |
| 1647 | # Predefined preprocessor variables. |
| 1648 | |
| 1649 | cat >>confdefs.h <<_ACEOF |
| 1650 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1651 | _ACEOF |
| 1652 | |
| 1653 | |
| 1654 | cat >>confdefs.h <<_ACEOF |
| 1655 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1656 | _ACEOF |
| 1657 | |
| 1658 | |
| 1659 | cat >>confdefs.h <<_ACEOF |
| 1660 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1661 | _ACEOF |
| 1662 | |
| 1663 | |
| 1664 | cat >>confdefs.h <<_ACEOF |
| 1665 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1666 | _ACEOF |
| 1667 | |
| 1668 | |
| 1669 | cat >>confdefs.h <<_ACEOF |
| 1670 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1671 | _ACEOF |
| 1672 | |
| 1673 | |
| 1674 | # Let the site file select an alternate cache file if it wants to. |
| 1675 | # Prefer an explicitly selected file to automatically selected ones. |
| 1676 | ac_site_file1=NONE |
| 1677 | ac_site_file2=NONE |
| 1678 | if test -n "$CONFIG_SITE"; then |
| 1679 | ac_site_file1=$CONFIG_SITE |
| 1680 | elif test "x$prefix" != xNONE; then |
| 1681 | ac_site_file1=$prefix/share/config.site |
| 1682 | ac_site_file2=$prefix/etc/config.site |
| 1683 | else |
| 1684 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1685 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 1686 | fi |
| 1687 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1688 | do |
| 1689 | test "x$ac_site_file" = xNONE && continue |
| 1690 | if test -r "$ac_site_file"; then |
| 1691 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1692 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1693 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1694 | . "$ac_site_file" |
| 1695 | fi |
| 1696 | done |
| 1697 | |
| 1698 | if test -r "$cache_file"; then |
| 1699 | # Some versions of bash will fail to source /dev/null (special |
| 1700 | # files actually), so we avoid doing that. |
| 1701 | if test -f "$cache_file"; then |
| 1702 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1703 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 1704 | case $cache_file in |
| 1705 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1706 | *) . "./$cache_file";; |
| 1707 | esac |
| 1708 | fi |
| 1709 | else |
| 1710 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1711 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 1712 | >$cache_file |
| 1713 | fi |
| 1714 | |
| 1715 | # Check that the precious variables saved in the cache have kept the same |
| 1716 | # value. |
| 1717 | ac_cache_corrupted=false |
| 1718 | for ac_var in $ac_precious_vars; do |
| 1719 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1720 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1721 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1722 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1723 | case $ac_old_set,$ac_new_set in |
| 1724 | set,) |
| 1725 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1726 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1727 | ac_cache_corrupted=: ;; |
| 1728 | ,set) |
| 1729 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1730 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1731 | ac_cache_corrupted=: ;; |
| 1732 | ,);; |
| 1733 | *) |
| 1734 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1735 | # differences in whitespace do not lead to failure. |
| 1736 | ac_old_val_w=`echo x $ac_old_val` |
| 1737 | ac_new_val_w=`echo x $ac_new_val` |
| 1738 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1739 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1740 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1741 | ac_cache_corrupted=: |
| 1742 | else |
| 1743 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1744 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1745 | eval $ac_var=\$ac_old_val |
| 1746 | fi |
| 1747 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1748 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1749 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1750 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 1751 | fi;; |
| 1752 | esac |
| 1753 | # Pass precious variables to config.status. |
| 1754 | if test "$ac_new_set" = set; then |
| 1755 | case $ac_new_val in |
| 1756 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1757 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1758 | esac |
| 1759 | case " $ac_configure_args " in |
| 1760 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1761 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1762 | esac |
| 1763 | fi |
| 1764 | done |
| 1765 | if $ac_cache_corrupted; then |
| 1766 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1768 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1769 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1770 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1771 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1772 | { (exit 1); exit 1; }; } |
| 1773 | fi |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | ac_ext=c |
| 1800 | ac_cpp='$CPP $CPPFLAGS' |
| 1801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | # Checks for programs. |
| 1809 | #AC_PROG_CC |
| 1810 | ac_aux_dir= |
| 1811 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 1812 | if test -f "$ac_dir/install-sh"; then |
| 1813 | ac_aux_dir=$ac_dir |
| 1814 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1815 | break |
| 1816 | elif test -f "$ac_dir/install.sh"; then |
| 1817 | ac_aux_dir=$ac_dir |
| 1818 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1819 | break |
| 1820 | elif test -f "$ac_dir/shtool"; then |
| 1821 | ac_aux_dir=$ac_dir |
| 1822 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1823 | break |
| 1824 | fi |
| 1825 | done |
| 1826 | if test -z "$ac_aux_dir"; then |
| 1827 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 1828 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 1829 | { (exit 1); exit 1; }; } |
| 1830 | fi |
| 1831 | |
| 1832 | # These three variables are undocumented and unsupported, |
| 1833 | # and are intended to be withdrawn in a future Autoconf release. |
| 1834 | # They can cause serious problems if a builder's source tree is in a directory |
| 1835 | # whose full name contains unusual characters. |
| 1836 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1837 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1838 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1839 | |
| 1840 | |
| 1841 | # Find a good install program. We prefer a C program (faster), |
| 1842 | # so one script is as good as another. But avoid the broken or |
| 1843 | # incompatible versions: |
| 1844 | # SysV /etc/install, /usr/sbin/install |
| 1845 | # SunOS /usr/etc/install |
| 1846 | # IRIX /sbin/install |
| 1847 | # AIX /bin/install |
| 1848 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1849 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1850 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1851 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1852 | # OS/2's system install, which has a completely different semantic |
| 1853 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1854 | # Reject install programs that cannot install multiple files. |
| 1855 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1856 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 1857 | if test -z "$INSTALL"; then |
| 1858 | if test "${ac_cv_path_install+set}" = set; then |
| 1859 | $as_echo_n "(cached) " >&6 |
| 1860 | else |
| 1861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1862 | for as_dir in $PATH |
| 1863 | do |
| 1864 | IFS=$as_save_IFS |
| 1865 | test -z "$as_dir" && as_dir=. |
| 1866 | # Account for people who put trailing slashes in PATH elements. |
| 1867 | case $as_dir/ in |
| 1868 | ./ | .// | /cC/* | \ |
| 1869 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1870 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 1871 | /usr/ucb/* ) ;; |
| 1872 | *) |
| 1873 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1874 | # Don't use installbsd from OSF since it installs stuff as root |
| 1875 | # by default. |
| 1876 | for ac_prog in ginstall scoinst install; do |
| 1877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1878 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 1879 | if test $ac_prog = install && |
| 1880 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1881 | # AIX install. It has an incompatible calling convention. |
| 1882 | : |
| 1883 | elif test $ac_prog = install && |
| 1884 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1885 | # program-specific install script used by HP pwplus--don't use. |
| 1886 | : |
| 1887 | else |
| 1888 | rm -rf conftest.one conftest.two conftest.dir |
| 1889 | echo one > conftest.one |
| 1890 | echo two > conftest.two |
| 1891 | mkdir conftest.dir |
| 1892 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 1893 | test -s conftest.one && test -s conftest.two && |
| 1894 | test -s conftest.dir/conftest.one && |
| 1895 | test -s conftest.dir/conftest.two |
| 1896 | then |
| 1897 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1898 | break 3 |
| 1899 | fi |
| 1900 | fi |
| 1901 | fi |
| 1902 | done |
| 1903 | done |
| 1904 | ;; |
| 1905 | esac |
| 1906 | |
| 1907 | done |
| 1908 | IFS=$as_save_IFS |
| 1909 | |
| 1910 | rm -rf conftest.one conftest.two conftest.dir |
| 1911 | |
| 1912 | fi |
| 1913 | if test "${ac_cv_path_install+set}" = set; then |
| 1914 | INSTALL=$ac_cv_path_install |
| 1915 | else |
| 1916 | # As a last resort, use the slow shell script. Don't cache a |
| 1917 | # value for INSTALL within a source directory, because that will |
| 1918 | # break other packages using the cache if that directory is |
| 1919 | # removed, or if the value is a relative name. |
| 1920 | INSTALL=$ac_install_sh |
| 1921 | fi |
| 1922 | fi |
| 1923 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1924 | $as_echo "$INSTALL" >&6; } |
| 1925 | |
| 1926 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1927 | # It thinks the first close brace ends the variable substitution. |
| 1928 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1929 | |
| 1930 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1931 | |
| 1932 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1933 | |
| 1934 | |
| 1935 | # Check for rpmbuil |
| 1936 | # Extract the first word of "rpmbuild", so it can be a program name with args. |
| 1937 | set dummy rpmbuild; ac_word=$2 |
| 1938 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1939 | $as_echo_n "checking for $ac_word... " >&6; } |
| 1940 | if test "${ac_cv_prog_RPMBUILD+set}" = set; then |
| 1941 | $as_echo_n "(cached) " >&6 |
| 1942 | else |
| 1943 | if test -n "$RPMBUILD"; then |
| 1944 | ac_cv_prog_RPMBUILD="$RPMBUILD" # Let the user override the test. |
| 1945 | else |
| 1946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1947 | for as_dir in $PATH |
| 1948 | do |
| 1949 | IFS=$as_save_IFS |
| 1950 | test -z "$as_dir" && as_dir=. |
| 1951 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 1953 | ac_cv_prog_RPMBUILD="rpmbuild" |
| 1954 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1955 | break 2 |
| 1956 | fi |
| 1957 | done |
| 1958 | done |
| 1959 | IFS=$as_save_IFS |
| 1960 | |
| 1961 | fi |
| 1962 | fi |
| 1963 | RPMBUILD=$ac_cv_prog_RPMBUILD |
| 1964 | if test -n "$RPMBUILD"; then |
| 1965 | { $as_echo "$as_me:$LINENO: result: $RPMBUILD" >&5 |
| 1966 | $as_echo "$RPMBUILD" >&6; } |
| 1967 | else |
| 1968 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 1969 | $as_echo "no" >&6; } |
| 1970 | fi |
| 1971 | |
| 1972 | |
| 1973 | |
| 1974 | RELEASE=1 |
| 1975 | |
Tomas Cejka | d340dbf | 2013-03-24 20:36:57 +0100 | [diff] [blame] | 1976 | LIBS="-lnetconf -ljson" |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 1977 | |
Tomas Cejka | 689a104 | 2013-01-16 15:08:25 +0100 | [diff] [blame] | 1978 | if test "`git show > /dev/null 2>&1;echo $?`" = "0"; then |
| 1979 | RCSID="-DRCSID=\\\"\$(IDGIT)\\\"" |
Tomas Cejka | 689a104 | 2013-01-16 15:08:25 +0100 | [diff] [blame] | 1980 | ARCSID="-DARCSID='\\\"\$(IDGIT)\\\"'" |
Tomas Cejka | 689a104 | 2013-01-16 15:08:25 +0100 | [diff] [blame] | 1981 | else |
| 1982 | RCSID="-DRCSID=\\\"\$(IDNOGIT)\\\"" |
Tomas Cejka | 5064c23 | 2013-01-17 09:30:58 +0100 | [diff] [blame] | 1983 | ARCSID="-DARCSID='\\\"\$(IDNOGIT)\\\"'" |
Tomas Cejka | 689a104 | 2013-01-16 15:08:25 +0100 | [diff] [blame] | 1984 | fi |
| 1985 | |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 1986 | REQS="$REQS httpd php json-c" |
| 1987 | BUILDREQS="$BUILDREQS json-c-devel httpd-devel" |
| 1988 | |
| 1989 | # Checks for libraries. |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 1990 | # libnetconf |
| 1991 | |
| 1992 | |
| 1993 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 1994 | if test -n "$ac_tool_prefix"; then |
| 1995 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 1996 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 1997 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1998 | $as_echo_n "checking for $ac_word... " >&6; } |
| 1999 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 2000 | $as_echo_n "(cached) " >&6 |
| 2001 | else |
| 2002 | case $PKG_CONFIG in |
| 2003 | [\\/]* | ?:[\\/]*) |
| 2004 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 2005 | ;; |
| 2006 | *) |
| 2007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2008 | for as_dir in $PATH |
| 2009 | do |
| 2010 | IFS=$as_save_IFS |
| 2011 | test -z "$as_dir" && as_dir=. |
| 2012 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2014 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 2015 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2016 | break 2 |
| 2017 | fi |
| 2018 | done |
| 2019 | done |
| 2020 | IFS=$as_save_IFS |
| 2021 | |
| 2022 | ;; |
| 2023 | esac |
| 2024 | fi |
| 2025 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 2026 | if test -n "$PKG_CONFIG"; then |
| 2027 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 2028 | $as_echo "$PKG_CONFIG" >&6; } |
| 2029 | else |
| 2030 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2031 | $as_echo "no" >&6; } |
| 2032 | fi |
| 2033 | |
| 2034 | |
| 2035 | fi |
| 2036 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 2037 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 2038 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 2039 | set dummy pkg-config; ac_word=$2 |
| 2040 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2041 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2042 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 2043 | $as_echo_n "(cached) " >&6 |
| 2044 | else |
| 2045 | case $ac_pt_PKG_CONFIG in |
| 2046 | [\\/]* | ?:[\\/]*) |
| 2047 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 2048 | ;; |
| 2049 | *) |
| 2050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2051 | for as_dir in $PATH |
| 2052 | do |
| 2053 | IFS=$as_save_IFS |
| 2054 | test -z "$as_dir" && as_dir=. |
| 2055 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2057 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 2058 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2059 | break 2 |
| 2060 | fi |
| 2061 | done |
| 2062 | done |
| 2063 | IFS=$as_save_IFS |
| 2064 | |
| 2065 | ;; |
| 2066 | esac |
| 2067 | fi |
| 2068 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 2069 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 2070 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 2071 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 2072 | else |
| 2073 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2074 | $as_echo "no" >&6; } |
| 2075 | fi |
| 2076 | |
| 2077 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 2078 | PKG_CONFIG="" |
| 2079 | else |
| 2080 | case $cross_compiling:$ac_tool_warned in |
| 2081 | yes:) |
| 2082 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2083 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2084 | ac_tool_warned=yes ;; |
| 2085 | esac |
| 2086 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 2087 | fi |
| 2088 | else |
| 2089 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 2090 | fi |
| 2091 | |
| 2092 | fi |
| 2093 | if test -n "$PKG_CONFIG"; then |
| 2094 | _pkg_min_version=0.9.0 |
| 2095 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 2096 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 2097 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 2098 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2099 | $as_echo "yes" >&6; } |
| 2100 | else |
| 2101 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2102 | $as_echo "no" >&6; } |
| 2103 | PKG_CONFIG="" |
| 2104 | fi |
| 2105 | |
| 2106 | fi |
| 2107 | |
| 2108 | # Check whether --with-libnetconf was given. |
| 2109 | if test "${with_libnetconf+set}" = set; then |
| 2110 | withval=$with_libnetconf; # local copy of libnetconf GIT repo with headers and binaries |
| 2111 | LIBNETCONF_CFLAGS="-I`cd $withval;pwd`" |
| 2112 | LIBNETCONF_LIBS="-L`cd $withval;pwd` -lnetconf" |
| 2113 | LIBNETCONF_WITH=" --with-libnetconf=$withval" |
| 2114 | else |
| 2115 | # get info from pkg-config about installed package |
| 2116 | |
| 2117 | pkg_failed=no |
| 2118 | { $as_echo "$as_me:$LINENO: checking for LIBNETCONF" >&5 |
| 2119 | $as_echo_n "checking for LIBNETCONF... " >&6; } |
| 2120 | |
| 2121 | if test -n "$LIBNETCONF_CFLAGS"; then |
| 2122 | pkg_cv_LIBNETCONF_CFLAGS="$LIBNETCONF_CFLAGS" |
| 2123 | elif test -n "$PKG_CONFIG"; then |
| 2124 | if test -n "$PKG_CONFIG" && \ |
| 2125 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnetconf\"") >&5 |
| 2126 | ($PKG_CONFIG --exists --print-errors "libnetconf") 2>&5 |
| 2127 | ac_status=$? |
| 2128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2129 | (exit $ac_status); }; then |
| 2130 | pkg_cv_LIBNETCONF_CFLAGS=`$PKG_CONFIG --cflags "libnetconf" 2>/dev/null` |
| 2131 | else |
| 2132 | pkg_failed=yes |
| 2133 | fi |
| 2134 | else |
| 2135 | pkg_failed=untried |
| 2136 | fi |
| 2137 | if test -n "$LIBNETCONF_LIBS"; then |
| 2138 | pkg_cv_LIBNETCONF_LIBS="$LIBNETCONF_LIBS" |
| 2139 | elif test -n "$PKG_CONFIG"; then |
| 2140 | if test -n "$PKG_CONFIG" && \ |
| 2141 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnetconf\"") >&5 |
| 2142 | ($PKG_CONFIG --exists --print-errors "libnetconf") 2>&5 |
| 2143 | ac_status=$? |
| 2144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2145 | (exit $ac_status); }; then |
| 2146 | pkg_cv_LIBNETCONF_LIBS=`$PKG_CONFIG --libs "libnetconf" 2>/dev/null` |
| 2147 | else |
| 2148 | pkg_failed=yes |
| 2149 | fi |
| 2150 | else |
| 2151 | pkg_failed=untried |
| 2152 | fi |
| 2153 | |
| 2154 | |
| 2155 | |
| 2156 | if test $pkg_failed = yes; then |
| 2157 | |
| 2158 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 2159 | _pkg_short_errors_supported=yes |
| 2160 | else |
| 2161 | _pkg_short_errors_supported=no |
| 2162 | fi |
| 2163 | if test $_pkg_short_errors_supported = yes; then |
| 2164 | LIBNETCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnetconf" 2>&1` |
| 2165 | else |
| 2166 | LIBNETCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnetconf" 2>&1` |
| 2167 | fi |
| 2168 | # Put the nasty error message in config.log where it belongs |
| 2169 | echo "$LIBNETCONF_PKG_ERRORS" >&5 |
| 2170 | |
| 2171 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libnetconf) were not met: |
| 2172 | |
| 2173 | $LIBNETCONF_PKG_ERRORS |
| 2174 | |
| 2175 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 2176 | installed software in a non-standard prefix. |
| 2177 | |
| 2178 | Alternatively, you may set the environment variables LIBNETCONF_CFLAGS |
| 2179 | and LIBNETCONF_LIBS to avoid the need to call pkg-config. |
| 2180 | See the pkg-config man page for more details. |
| 2181 | " >&5 |
| 2182 | $as_echo "$as_me: error: Package requirements (libnetconf) were not met: |
| 2183 | |
| 2184 | $LIBNETCONF_PKG_ERRORS |
| 2185 | |
| 2186 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| 2187 | installed software in a non-standard prefix. |
| 2188 | |
| 2189 | Alternatively, you may set the environment variables LIBNETCONF_CFLAGS |
| 2190 | and LIBNETCONF_LIBS to avoid the need to call pkg-config. |
| 2191 | See the pkg-config man page for more details. |
| 2192 | " >&2;} |
| 2193 | { (exit 1); exit 1; }; } |
| 2194 | elif test $pkg_failed = untried; then |
| 2195 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2196 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2197 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
| 2198 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 2199 | path to pkg-config. |
| 2200 | |
| 2201 | Alternatively, you may set the environment variables LIBNETCONF_CFLAGS |
| 2202 | and LIBNETCONF_LIBS to avoid the need to call pkg-config. |
| 2203 | See the pkg-config man page for more details. |
| 2204 | |
| 2205 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 2206 | See \`config.log' for more details." >&5 |
| 2207 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
| 2208 | is in your PATH or set the PKG_CONFIG environment variable to the full |
| 2209 | path to pkg-config. |
| 2210 | |
| 2211 | Alternatively, you may set the environment variables LIBNETCONF_CFLAGS |
| 2212 | and LIBNETCONF_LIBS to avoid the need to call pkg-config. |
| 2213 | See the pkg-config man page for more details. |
| 2214 | |
| 2215 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| 2216 | See \`config.log' for more details." >&2;} |
| 2217 | { (exit 1); exit 1; }; }; } |
| 2218 | else |
| 2219 | LIBNETCONF_CFLAGS=$pkg_cv_LIBNETCONF_CFLAGS |
| 2220 | LIBNETCONF_LIBS=$pkg_cv_LIBNETCONF_LIBS |
| 2221 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2222 | $as_echo "yes" >&6; } |
| 2223 | : |
| 2224 | fi |
| 2225 | BUILDREQS="$BUILDREQS ,libnetconf-devel" |
| 2226 | |
| 2227 | fi |
| 2228 | |
Tomas Cejka | 23d4f34 | 2013-07-05 10:01:57 +0200 | [diff] [blame] | 2229 | CFLAGS="$LIBNETCONF_CFLAGS" |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 2230 | LIBS="$LIBS $LIBNETCONF_LIBS" |
| 2231 | |
| 2232 | |
| 2233 | |
| 2234 | REQS="$REQS , libnetconf" |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 2235 | ac_ext=c |
| 2236 | ac_cpp='$CPP $CPPFLAGS' |
| 2237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2240 | if test -n "$ac_tool_prefix"; then |
| 2241 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2242 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2243 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2244 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2245 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2246 | $as_echo_n "(cached) " >&6 |
| 2247 | else |
| 2248 | if test -n "$CC"; then |
| 2249 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2250 | else |
| 2251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2252 | for as_dir in $PATH |
| 2253 | do |
| 2254 | IFS=$as_save_IFS |
| 2255 | test -z "$as_dir" && as_dir=. |
| 2256 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2258 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2259 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2260 | break 2 |
| 2261 | fi |
| 2262 | done |
| 2263 | done |
| 2264 | IFS=$as_save_IFS |
| 2265 | |
| 2266 | fi |
| 2267 | fi |
| 2268 | CC=$ac_cv_prog_CC |
| 2269 | if test -n "$CC"; then |
| 2270 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2271 | $as_echo "$CC" >&6; } |
| 2272 | else |
| 2273 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2274 | $as_echo "no" >&6; } |
| 2275 | fi |
| 2276 | |
| 2277 | |
| 2278 | fi |
| 2279 | if test -z "$ac_cv_prog_CC"; then |
| 2280 | ac_ct_CC=$CC |
| 2281 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2282 | set dummy gcc; ac_word=$2 |
| 2283 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2284 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2285 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2286 | $as_echo_n "(cached) " >&6 |
| 2287 | else |
| 2288 | if test -n "$ac_ct_CC"; then |
| 2289 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2290 | else |
| 2291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2292 | for as_dir in $PATH |
| 2293 | do |
| 2294 | IFS=$as_save_IFS |
| 2295 | test -z "$as_dir" && as_dir=. |
| 2296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2298 | ac_cv_prog_ac_ct_CC="gcc" |
| 2299 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2300 | break 2 |
| 2301 | fi |
| 2302 | done |
| 2303 | done |
| 2304 | IFS=$as_save_IFS |
| 2305 | |
| 2306 | fi |
| 2307 | fi |
| 2308 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2309 | if test -n "$ac_ct_CC"; then |
| 2310 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2311 | $as_echo "$ac_ct_CC" >&6; } |
| 2312 | else |
| 2313 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2314 | $as_echo "no" >&6; } |
| 2315 | fi |
| 2316 | |
| 2317 | if test "x$ac_ct_CC" = x; then |
| 2318 | CC="" |
| 2319 | else |
| 2320 | case $cross_compiling:$ac_tool_warned in |
| 2321 | yes:) |
| 2322 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2323 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2324 | ac_tool_warned=yes ;; |
| 2325 | esac |
| 2326 | CC=$ac_ct_CC |
| 2327 | fi |
| 2328 | else |
| 2329 | CC="$ac_cv_prog_CC" |
| 2330 | fi |
| 2331 | |
| 2332 | if test -z "$CC"; then |
| 2333 | if test -n "$ac_tool_prefix"; then |
| 2334 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2335 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2336 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2337 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2338 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2339 | $as_echo_n "(cached) " >&6 |
| 2340 | else |
| 2341 | if test -n "$CC"; then |
| 2342 | ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc" |
| 2352 | $as_echo "$as_me:$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 | CC=$ac_cv_prog_CC |
| 2362 | if test -n "$CC"; then |
| 2363 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2364 | $as_echo "$CC" >&6; } |
| 2365 | else |
| 2366 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2367 | $as_echo "no" >&6; } |
| 2368 | fi |
| 2369 | |
| 2370 | |
| 2371 | fi |
| 2372 | fi |
| 2373 | if test -z "$CC"; then |
| 2374 | # Extract the first word of "cc", so it can be a program name with args. |
| 2375 | set dummy cc; ac_word=$2 |
| 2376 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2377 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2378 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2379 | $as_echo_n "(cached) " >&6 |
| 2380 | else |
| 2381 | if test -n "$CC"; then |
| 2382 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2383 | else |
| 2384 | ac_prog_rejected=no |
| 2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2386 | for as_dir in $PATH |
| 2387 | do |
| 2388 | IFS=$as_save_IFS |
| 2389 | test -z "$as_dir" && as_dir=. |
| 2390 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2391 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2392 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2393 | ac_prog_rejected=yes |
| 2394 | continue |
| 2395 | fi |
| 2396 | ac_cv_prog_CC="cc" |
| 2397 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2398 | break 2 |
| 2399 | fi |
| 2400 | done |
| 2401 | done |
| 2402 | IFS=$as_save_IFS |
| 2403 | |
| 2404 | if test $ac_prog_rejected = yes; then |
| 2405 | # We found a bogon in the path, so make sure we never use it. |
| 2406 | set dummy $ac_cv_prog_CC |
| 2407 | shift |
| 2408 | if test $# != 0; then |
| 2409 | # We chose a different compiler from the bogus one. |
| 2410 | # However, it has the same basename, so the bogon will be chosen |
| 2411 | # first if we set CC to just the basename; use the full file name. |
| 2412 | shift |
| 2413 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2414 | fi |
| 2415 | fi |
| 2416 | fi |
| 2417 | fi |
| 2418 | CC=$ac_cv_prog_CC |
| 2419 | if test -n "$CC"; then |
| 2420 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2421 | $as_echo "$CC" >&6; } |
| 2422 | else |
| 2423 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2424 | $as_echo "no" >&6; } |
| 2425 | fi |
| 2426 | |
| 2427 | |
| 2428 | fi |
| 2429 | if test -z "$CC"; then |
| 2430 | if test -n "$ac_tool_prefix"; then |
| 2431 | for ac_prog in cl.exe |
| 2432 | do |
| 2433 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2434 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2435 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2436 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2437 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2438 | $as_echo_n "(cached) " >&6 |
| 2439 | else |
| 2440 | if test -n "$CC"; then |
| 2441 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2442 | else |
| 2443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2444 | for as_dir in $PATH |
| 2445 | do |
| 2446 | IFS=$as_save_IFS |
| 2447 | test -z "$as_dir" && as_dir=. |
| 2448 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2450 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2451 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2452 | break 2 |
| 2453 | fi |
| 2454 | done |
| 2455 | done |
| 2456 | IFS=$as_save_IFS |
| 2457 | |
| 2458 | fi |
| 2459 | fi |
| 2460 | CC=$ac_cv_prog_CC |
| 2461 | if test -n "$CC"; then |
| 2462 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2463 | $as_echo "$CC" >&6; } |
| 2464 | else |
| 2465 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2466 | $as_echo "no" >&6; } |
| 2467 | fi |
| 2468 | |
| 2469 | |
| 2470 | test -n "$CC" && break |
| 2471 | done |
| 2472 | fi |
| 2473 | if test -z "$CC"; then |
| 2474 | ac_ct_CC=$CC |
| 2475 | for ac_prog in cl.exe |
| 2476 | do |
| 2477 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2478 | set dummy $ac_prog; ac_word=$2 |
| 2479 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2480 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2481 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2482 | $as_echo_n "(cached) " >&6 |
| 2483 | else |
| 2484 | if test -n "$ac_ct_CC"; then |
| 2485 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2486 | else |
| 2487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2488 | for as_dir in $PATH |
| 2489 | do |
| 2490 | IFS=$as_save_IFS |
| 2491 | test -z "$as_dir" && as_dir=. |
| 2492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2493 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2494 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2495 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2496 | break 2 |
| 2497 | fi |
| 2498 | done |
| 2499 | done |
| 2500 | IFS=$as_save_IFS |
| 2501 | |
| 2502 | fi |
| 2503 | fi |
| 2504 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2505 | if test -n "$ac_ct_CC"; then |
| 2506 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2507 | $as_echo "$ac_ct_CC" >&6; } |
| 2508 | else |
| 2509 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2510 | $as_echo "no" >&6; } |
| 2511 | fi |
| 2512 | |
| 2513 | |
| 2514 | test -n "$ac_ct_CC" && break |
| 2515 | done |
| 2516 | |
| 2517 | if test "x$ac_ct_CC" = x; then |
| 2518 | CC="" |
| 2519 | else |
| 2520 | case $cross_compiling:$ac_tool_warned in |
| 2521 | yes:) |
| 2522 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2523 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2524 | ac_tool_warned=yes ;; |
| 2525 | esac |
| 2526 | CC=$ac_ct_CC |
| 2527 | fi |
| 2528 | fi |
| 2529 | |
| 2530 | fi |
| 2531 | |
| 2532 | |
| 2533 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2534 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2535 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2536 | See \`config.log' for more details." >&5 |
| 2537 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2538 | See \`config.log' for more details." >&2;} |
| 2539 | { (exit 1); exit 1; }; }; } |
| 2540 | |
| 2541 | # Provide some information about the compiler. |
| 2542 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2543 | set X $ac_compile |
| 2544 | ac_compiler=$2 |
| 2545 | { (ac_try="$ac_compiler --version >&5" |
| 2546 | case "(($ac_try" in |
| 2547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2548 | *) ac_try_echo=$ac_try;; |
| 2549 | esac |
| 2550 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2551 | $as_echo "$ac_try_echo") >&5 |
| 2552 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2553 | ac_status=$? |
| 2554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2555 | (exit $ac_status); } |
| 2556 | { (ac_try="$ac_compiler -v >&5" |
| 2557 | case "(($ac_try" in |
| 2558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2559 | *) ac_try_echo=$ac_try;; |
| 2560 | esac |
| 2561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2562 | $as_echo "$ac_try_echo") >&5 |
| 2563 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2564 | ac_status=$? |
| 2565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2566 | (exit $ac_status); } |
| 2567 | { (ac_try="$ac_compiler -V >&5" |
| 2568 | case "(($ac_try" in |
| 2569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2570 | *) ac_try_echo=$ac_try;; |
| 2571 | esac |
| 2572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2573 | $as_echo "$ac_try_echo") >&5 |
| 2574 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2575 | ac_status=$? |
| 2576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2577 | (exit $ac_status); } |
| 2578 | |
| 2579 | cat >conftest.$ac_ext <<_ACEOF |
| 2580 | /* confdefs.h. */ |
| 2581 | _ACEOF |
| 2582 | cat confdefs.h >>conftest.$ac_ext |
| 2583 | cat >>conftest.$ac_ext <<_ACEOF |
| 2584 | /* end confdefs.h. */ |
| 2585 | |
| 2586 | int |
| 2587 | main () |
| 2588 | { |
| 2589 | |
| 2590 | ; |
| 2591 | return 0; |
| 2592 | } |
| 2593 | _ACEOF |
| 2594 | ac_clean_files_save=$ac_clean_files |
| 2595 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 2596 | # Try to create an executable without -o first, disregard a.out. |
| 2597 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2598 | # of exeext. |
| 2599 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2600 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2601 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2602 | |
| 2603 | # The possible output files: |
| 2604 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2605 | |
| 2606 | ac_rmfiles= |
| 2607 | for ac_file in $ac_files |
| 2608 | do |
| 2609 | case $ac_file in |
| 2610 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2611 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2612 | esac |
| 2613 | done |
| 2614 | rm -f $ac_rmfiles |
| 2615 | |
| 2616 | if { (ac_try="$ac_link_default" |
| 2617 | case "(($ac_try" in |
| 2618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2619 | *) ac_try_echo=$ac_try;; |
| 2620 | esac |
| 2621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2622 | $as_echo "$ac_try_echo") >&5 |
| 2623 | (eval "$ac_link_default") 2>&5 |
| 2624 | ac_status=$? |
| 2625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2626 | (exit $ac_status); }; then |
| 2627 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2628 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2629 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2630 | # so that the user can short-circuit this test for compilers unknown to |
| 2631 | # Autoconf. |
| 2632 | for ac_file in $ac_files '' |
| 2633 | do |
| 2634 | test -f "$ac_file" || continue |
| 2635 | case $ac_file in |
| 2636 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2637 | ;; |
| 2638 | [ab].out ) |
| 2639 | # We found the default executable, but exeext='' is most |
| 2640 | # certainly right. |
| 2641 | break;; |
| 2642 | *.* ) |
| 2643 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2644 | then :; else |
| 2645 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2646 | fi |
| 2647 | # We set ac_cv_exeext here because the later test for it is not |
| 2648 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2649 | # argument, so we may need to know it at that point already. |
| 2650 | # Even if this section looks crufty: it has the advantage of |
| 2651 | # actually working. |
| 2652 | break;; |
| 2653 | * ) |
| 2654 | break;; |
| 2655 | esac |
| 2656 | done |
| 2657 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2658 | |
| 2659 | else |
| 2660 | ac_file='' |
| 2661 | fi |
| 2662 | |
| 2663 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2664 | $as_echo "$ac_file" >&6; } |
| 2665 | if test -z "$ac_file"; then |
| 2666 | $as_echo "$as_me: failed program was:" >&5 |
| 2667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2668 | |
| 2669 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2670 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2671 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2672 | See \`config.log' for more details." >&5 |
| 2673 | $as_echo "$as_me: error: C compiler cannot create executables |
| 2674 | See \`config.log' for more details." >&2;} |
| 2675 | { (exit 77); exit 77; }; }; } |
| 2676 | fi |
| 2677 | |
| 2678 | ac_exeext=$ac_cv_exeext |
| 2679 | |
| 2680 | # Check that the compiler produces executables we can run. If not, either |
| 2681 | # the compiler is broken, or we cross compile. |
| 2682 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2683 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2684 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2685 | # If not cross compiling, check that we can run a simple program. |
| 2686 | if test "$cross_compiling" != yes; then |
| 2687 | if { ac_try='./$ac_file' |
| 2688 | { (case "(($ac_try" in |
| 2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2690 | *) ac_try_echo=$ac_try;; |
| 2691 | esac |
| 2692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2693 | $as_echo "$ac_try_echo") >&5 |
| 2694 | (eval "$ac_try") 2>&5 |
| 2695 | ac_status=$? |
| 2696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); }; }; then |
| 2698 | cross_compiling=no |
| 2699 | else |
| 2700 | if test "$cross_compiling" = maybe; then |
| 2701 | cross_compiling=yes |
| 2702 | else |
| 2703 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2704 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2705 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2706 | If you meant to cross compile, use \`--host'. |
| 2707 | See \`config.log' for more details." >&5 |
| 2708 | $as_echo "$as_me: error: cannot run C compiled programs. |
| 2709 | If you meant to cross compile, use \`--host'. |
| 2710 | See \`config.log' for more details." >&2;} |
| 2711 | { (exit 1); exit 1; }; }; } |
| 2712 | fi |
| 2713 | fi |
| 2714 | fi |
| 2715 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2716 | $as_echo "yes" >&6; } |
| 2717 | |
| 2718 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 2719 | ac_clean_files=$ac_clean_files_save |
| 2720 | # Check that the compiler produces executables we can run. If not, either |
| 2721 | # the compiler is broken, or we cross compile. |
| 2722 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2723 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2724 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2725 | $as_echo "$cross_compiling" >&6; } |
| 2726 | |
| 2727 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2728 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2729 | if { (ac_try="$ac_link" |
| 2730 | case "(($ac_try" in |
| 2731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2732 | *) ac_try_echo=$ac_try;; |
| 2733 | esac |
| 2734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2735 | $as_echo "$ac_try_echo") >&5 |
| 2736 | (eval "$ac_link") 2>&5 |
| 2737 | ac_status=$? |
| 2738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2739 | (exit $ac_status); }; then |
| 2740 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2741 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2742 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2743 | # `rm'. |
| 2744 | for ac_file in conftest.exe conftest conftest.*; do |
| 2745 | test -f "$ac_file" || continue |
| 2746 | case $ac_file in |
| 2747 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2748 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2749 | break;; |
| 2750 | * ) break;; |
| 2751 | esac |
| 2752 | done |
| 2753 | else |
| 2754 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2755 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2756 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2757 | See \`config.log' for more details." >&5 |
| 2758 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2759 | See \`config.log' for more details." >&2;} |
| 2760 | { (exit 1); exit 1; }; }; } |
| 2761 | fi |
| 2762 | |
| 2763 | rm -f conftest$ac_cv_exeext |
| 2764 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2765 | $as_echo "$ac_cv_exeext" >&6; } |
| 2766 | |
| 2767 | rm -f conftest.$ac_ext |
| 2768 | EXEEXT=$ac_cv_exeext |
| 2769 | ac_exeext=$EXEEXT |
| 2770 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2771 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2772 | if test "${ac_cv_objext+set}" = set; then |
| 2773 | $as_echo_n "(cached) " >&6 |
| 2774 | else |
| 2775 | cat >conftest.$ac_ext <<_ACEOF |
| 2776 | /* confdefs.h. */ |
| 2777 | _ACEOF |
| 2778 | cat confdefs.h >>conftest.$ac_ext |
| 2779 | cat >>conftest.$ac_ext <<_ACEOF |
| 2780 | /* end confdefs.h. */ |
| 2781 | |
| 2782 | int |
| 2783 | main () |
| 2784 | { |
| 2785 | |
| 2786 | ; |
| 2787 | return 0; |
| 2788 | } |
| 2789 | _ACEOF |
| 2790 | rm -f conftest.o conftest.obj |
| 2791 | if { (ac_try="$ac_compile" |
| 2792 | case "(($ac_try" in |
| 2793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2794 | *) ac_try_echo=$ac_try;; |
| 2795 | esac |
| 2796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2797 | $as_echo "$ac_try_echo") >&5 |
| 2798 | (eval "$ac_compile") 2>&5 |
| 2799 | ac_status=$? |
| 2800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2801 | (exit $ac_status); }; then |
| 2802 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2803 | test -f "$ac_file" || continue; |
| 2804 | case $ac_file in |
| 2805 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 2806 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2807 | break;; |
| 2808 | esac |
| 2809 | done |
| 2810 | else |
| 2811 | $as_echo "$as_me: failed program was:" >&5 |
| 2812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2813 | |
| 2814 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2815 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2816 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2817 | See \`config.log' for more details." >&5 |
| 2818 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2819 | See \`config.log' for more details." >&2;} |
| 2820 | { (exit 1); exit 1; }; }; } |
| 2821 | fi |
| 2822 | |
| 2823 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2824 | fi |
| 2825 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2826 | $as_echo "$ac_cv_objext" >&6; } |
| 2827 | OBJEXT=$ac_cv_objext |
| 2828 | ac_objext=$OBJEXT |
| 2829 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2830 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2831 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2832 | $as_echo_n "(cached) " >&6 |
| 2833 | else |
| 2834 | cat >conftest.$ac_ext <<_ACEOF |
| 2835 | /* confdefs.h. */ |
| 2836 | _ACEOF |
| 2837 | cat confdefs.h >>conftest.$ac_ext |
| 2838 | cat >>conftest.$ac_ext <<_ACEOF |
| 2839 | /* end confdefs.h. */ |
| 2840 | |
| 2841 | int |
| 2842 | main () |
| 2843 | { |
| 2844 | #ifndef __GNUC__ |
| 2845 | choke me |
| 2846 | #endif |
| 2847 | |
| 2848 | ; |
| 2849 | return 0; |
| 2850 | } |
| 2851 | _ACEOF |
| 2852 | rm -f conftest.$ac_objext |
| 2853 | if { (ac_try="$ac_compile" |
| 2854 | case "(($ac_try" in |
| 2855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2856 | *) ac_try_echo=$ac_try;; |
| 2857 | esac |
| 2858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2859 | $as_echo "$ac_try_echo") >&5 |
| 2860 | (eval "$ac_compile") 2>conftest.er1 |
| 2861 | ac_status=$? |
| 2862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2863 | rm -f conftest.er1 |
| 2864 | cat conftest.err >&5 |
| 2865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2866 | (exit $ac_status); } && { |
| 2867 | test -z "$ac_c_werror_flag" || |
| 2868 | test ! -s conftest.err |
| 2869 | } && test -s conftest.$ac_objext; then |
| 2870 | ac_compiler_gnu=yes |
| 2871 | else |
| 2872 | $as_echo "$as_me: failed program was:" >&5 |
| 2873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2874 | |
| 2875 | ac_compiler_gnu=no |
| 2876 | fi |
| 2877 | |
| 2878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2879 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2880 | |
| 2881 | fi |
| 2882 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2883 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2884 | if test $ac_compiler_gnu = yes; then |
| 2885 | GCC=yes |
| 2886 | else |
| 2887 | GCC= |
| 2888 | fi |
| 2889 | ac_test_CFLAGS=${CFLAGS+set} |
| 2890 | ac_save_CFLAGS=$CFLAGS |
| 2891 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2892 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 2893 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2894 | $as_echo_n "(cached) " >&6 |
| 2895 | else |
| 2896 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2897 | ac_c_werror_flag=yes |
| 2898 | ac_cv_prog_cc_g=no |
| 2899 | CFLAGS="-g" |
| 2900 | cat >conftest.$ac_ext <<_ACEOF |
| 2901 | /* confdefs.h. */ |
| 2902 | _ACEOF |
| 2903 | cat confdefs.h >>conftest.$ac_ext |
| 2904 | cat >>conftest.$ac_ext <<_ACEOF |
| 2905 | /* end confdefs.h. */ |
| 2906 | |
| 2907 | int |
| 2908 | main () |
| 2909 | { |
| 2910 | |
| 2911 | ; |
| 2912 | return 0; |
| 2913 | } |
| 2914 | _ACEOF |
| 2915 | rm -f conftest.$ac_objext |
| 2916 | if { (ac_try="$ac_compile" |
| 2917 | case "(($ac_try" in |
| 2918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2919 | *) ac_try_echo=$ac_try;; |
| 2920 | esac |
| 2921 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2922 | $as_echo "$ac_try_echo") >&5 |
| 2923 | (eval "$ac_compile") 2>conftest.er1 |
| 2924 | ac_status=$? |
| 2925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2926 | rm -f conftest.er1 |
| 2927 | cat conftest.err >&5 |
| 2928 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2929 | (exit $ac_status); } && { |
| 2930 | test -z "$ac_c_werror_flag" || |
| 2931 | test ! -s conftest.err |
| 2932 | } && test -s conftest.$ac_objext; then |
| 2933 | ac_cv_prog_cc_g=yes |
| 2934 | else |
| 2935 | $as_echo "$as_me: failed program was:" >&5 |
| 2936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2937 | |
| 2938 | CFLAGS="" |
| 2939 | cat >conftest.$ac_ext <<_ACEOF |
| 2940 | /* confdefs.h. */ |
| 2941 | _ACEOF |
| 2942 | cat confdefs.h >>conftest.$ac_ext |
| 2943 | cat >>conftest.$ac_ext <<_ACEOF |
| 2944 | /* end confdefs.h. */ |
| 2945 | |
| 2946 | int |
| 2947 | main () |
| 2948 | { |
| 2949 | |
| 2950 | ; |
| 2951 | return 0; |
| 2952 | } |
| 2953 | _ACEOF |
| 2954 | rm -f conftest.$ac_objext |
| 2955 | if { (ac_try="$ac_compile" |
| 2956 | case "(($ac_try" in |
| 2957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2958 | *) ac_try_echo=$ac_try;; |
| 2959 | esac |
| 2960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2961 | $as_echo "$ac_try_echo") >&5 |
| 2962 | (eval "$ac_compile") 2>conftest.er1 |
| 2963 | ac_status=$? |
| 2964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2965 | rm -f conftest.er1 |
| 2966 | cat conftest.err >&5 |
| 2967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2968 | (exit $ac_status); } && { |
| 2969 | test -z "$ac_c_werror_flag" || |
| 2970 | test ! -s conftest.err |
| 2971 | } && test -s conftest.$ac_objext; then |
| 2972 | : |
| 2973 | else |
| 2974 | $as_echo "$as_me: failed program was:" >&5 |
| 2975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2976 | |
| 2977 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2978 | CFLAGS="-g" |
| 2979 | cat >conftest.$ac_ext <<_ACEOF |
| 2980 | /* confdefs.h. */ |
| 2981 | _ACEOF |
| 2982 | cat confdefs.h >>conftest.$ac_ext |
| 2983 | cat >>conftest.$ac_ext <<_ACEOF |
| 2984 | /* end confdefs.h. */ |
| 2985 | |
| 2986 | int |
| 2987 | main () |
| 2988 | { |
| 2989 | |
| 2990 | ; |
| 2991 | return 0; |
| 2992 | } |
| 2993 | _ACEOF |
| 2994 | rm -f conftest.$ac_objext |
| 2995 | if { (ac_try="$ac_compile" |
| 2996 | case "(($ac_try" in |
| 2997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2998 | *) ac_try_echo=$ac_try;; |
| 2999 | esac |
| 3000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3001 | $as_echo "$ac_try_echo") >&5 |
| 3002 | (eval "$ac_compile") 2>conftest.er1 |
| 3003 | ac_status=$? |
| 3004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3005 | rm -f conftest.er1 |
| 3006 | cat conftest.err >&5 |
| 3007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3008 | (exit $ac_status); } && { |
| 3009 | test -z "$ac_c_werror_flag" || |
| 3010 | test ! -s conftest.err |
| 3011 | } && test -s conftest.$ac_objext; then |
| 3012 | ac_cv_prog_cc_g=yes |
| 3013 | else |
| 3014 | $as_echo "$as_me: failed program was:" >&5 |
| 3015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3016 | |
| 3017 | |
| 3018 | fi |
| 3019 | |
| 3020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3021 | fi |
| 3022 | |
| 3023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3024 | fi |
| 3025 | |
| 3026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3027 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3028 | fi |
| 3029 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3030 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3031 | if test "$ac_test_CFLAGS" = set; then |
| 3032 | CFLAGS=$ac_save_CFLAGS |
| 3033 | elif test $ac_cv_prog_cc_g = yes; then |
| 3034 | if test "$GCC" = yes; then |
| 3035 | CFLAGS="-g -O2" |
| 3036 | else |
| 3037 | CFLAGS="-g" |
| 3038 | fi |
| 3039 | else |
| 3040 | if test "$GCC" = yes; then |
| 3041 | CFLAGS="-O2" |
| 3042 | else |
| 3043 | CFLAGS= |
| 3044 | fi |
| 3045 | fi |
| 3046 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3047 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3048 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3049 | $as_echo_n "(cached) " >&6 |
| 3050 | else |
| 3051 | ac_cv_prog_cc_c89=no |
| 3052 | ac_save_CC=$CC |
| 3053 | cat >conftest.$ac_ext <<_ACEOF |
| 3054 | /* confdefs.h. */ |
| 3055 | _ACEOF |
| 3056 | cat confdefs.h >>conftest.$ac_ext |
| 3057 | cat >>conftest.$ac_ext <<_ACEOF |
| 3058 | /* end confdefs.h. */ |
| 3059 | #include <stdarg.h> |
| 3060 | #include <stdio.h> |
| 3061 | #include <sys/types.h> |
| 3062 | #include <sys/stat.h> |
| 3063 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3064 | struct buf { int x; }; |
| 3065 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3066 | static char *e (p, i) |
| 3067 | char **p; |
| 3068 | int i; |
| 3069 | { |
| 3070 | return p[i]; |
| 3071 | } |
| 3072 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3073 | { |
| 3074 | char *s; |
| 3075 | va_list v; |
| 3076 | va_start (v,p); |
| 3077 | s = g (p, va_arg (v,int)); |
| 3078 | va_end (v); |
| 3079 | return s; |
| 3080 | } |
| 3081 | |
| 3082 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3083 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3084 | These don't provoke an error unfortunately, instead are silently treated |
| 3085 | as 'x'. The following induces an error, until -std is added to get |
| 3086 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3087 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3088 | that's true only with -std. */ |
| 3089 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3090 | |
| 3091 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3092 | inside strings and character constants. */ |
| 3093 | #define FOO(x) 'x' |
| 3094 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3095 | |
| 3096 | int test (int i, double x); |
| 3097 | struct s1 {int (*f) (int a);}; |
| 3098 | struct s2 {int (*f) (double a);}; |
| 3099 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3100 | int argc; |
| 3101 | char **argv; |
| 3102 | int |
| 3103 | main () |
| 3104 | { |
| 3105 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3106 | ; |
| 3107 | return 0; |
| 3108 | } |
| 3109 | _ACEOF |
| 3110 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3111 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3112 | do |
| 3113 | CC="$ac_save_CC $ac_arg" |
| 3114 | rm -f conftest.$ac_objext |
| 3115 | if { (ac_try="$ac_compile" |
| 3116 | case "(($ac_try" in |
| 3117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3118 | *) ac_try_echo=$ac_try;; |
| 3119 | esac |
| 3120 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3121 | $as_echo "$ac_try_echo") >&5 |
| 3122 | (eval "$ac_compile") 2>conftest.er1 |
| 3123 | ac_status=$? |
| 3124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3125 | rm -f conftest.er1 |
| 3126 | cat conftest.err >&5 |
| 3127 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3128 | (exit $ac_status); } && { |
| 3129 | test -z "$ac_c_werror_flag" || |
| 3130 | test ! -s conftest.err |
| 3131 | } && test -s conftest.$ac_objext; then |
| 3132 | ac_cv_prog_cc_c89=$ac_arg |
| 3133 | else |
| 3134 | $as_echo "$as_me: failed program was:" >&5 |
| 3135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3136 | |
| 3137 | |
| 3138 | fi |
| 3139 | |
| 3140 | rm -f core conftest.err conftest.$ac_objext |
| 3141 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3142 | done |
| 3143 | rm -f conftest.$ac_ext |
| 3144 | CC=$ac_save_CC |
| 3145 | |
| 3146 | fi |
| 3147 | # AC_CACHE_VAL |
| 3148 | case "x$ac_cv_prog_cc_c89" in |
| 3149 | x) |
| 3150 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 3151 | $as_echo "none needed" >&6; } ;; |
| 3152 | xno) |
| 3153 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3154 | $as_echo "unsupported" >&6; } ;; |
| 3155 | *) |
| 3156 | CC="$CC $ac_cv_prog_cc_c89" |
| 3157 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3158 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3159 | esac |
| 3160 | |
| 3161 | |
| 3162 | ac_ext=c |
| 3163 | ac_cpp='$CPP $CPPFLAGS' |
| 3164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3167 | |
| 3168 | |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 3169 | |
| 3170 | { $as_echo "$as_me:$LINENO: checking for ncds_new in -lnetconf" >&5 |
| 3171 | $as_echo_n "checking for ncds_new in -lnetconf... " >&6; } |
| 3172 | if test "${ac_cv_lib_netconf_ncds_new+set}" = set; then |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3173 | $as_echo_n "(cached) " >&6 |
| 3174 | else |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 3175 | ac_check_lib_save_LIBS=$LIBS |
| 3176 | LIBS="-lnetconf $LIBS" |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3177 | cat >conftest.$ac_ext <<_ACEOF |
| 3178 | /* confdefs.h. */ |
| 3179 | _ACEOF |
| 3180 | cat confdefs.h >>conftest.$ac_ext |
| 3181 | cat >>conftest.$ac_ext <<_ACEOF |
| 3182 | /* end confdefs.h. */ |
| 3183 | |
| 3184 | /* Override any GCC internal prototype to avoid an error. |
| 3185 | Use char because int might match the return type of a GCC |
| 3186 | builtin and then its argument prototype would still apply. */ |
| 3187 | #ifdef __cplusplus |
| 3188 | extern "C" |
| 3189 | #endif |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 3190 | char ncds_new (); |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3191 | int |
| 3192 | main () |
| 3193 | { |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 3194 | return ncds_new (); |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3195 | ; |
| 3196 | return 0; |
| 3197 | } |
| 3198 | _ACEOF |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 3199 | rm -f conftest.$ac_objext conftest$ac_exeext |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3200 | if { (ac_try="$ac_link" |
| 3201 | case "(($ac_try" in |
| 3202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3203 | *) ac_try_echo=$ac_try;; |
| 3204 | esac |
| 3205 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3206 | $as_echo "$ac_try_echo") >&5 |
| 3207 | (eval "$ac_link") 2>conftest.er1 |
| 3208 | ac_status=$? |
| 3209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3210 | rm -f conftest.er1 |
| 3211 | cat conftest.err >&5 |
| 3212 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3213 | (exit $ac_status); } && { |
| 3214 | test -z "$ac_c_werror_flag" || |
| 3215 | test ! -s conftest.err |
| 3216 | } && test -s conftest$ac_exeext && { |
| 3217 | test "$cross_compiling" = yes || |
| 3218 | $as_test_x conftest$ac_exeext |
| 3219 | }; then |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 3220 | ac_cv_lib_netconf_ncds_new=yes |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3221 | else |
| 3222 | $as_echo "$as_me: failed program was:" >&5 |
| 3223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3224 | |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 3225 | ac_cv_lib_netconf_ncds_new=no |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3226 | fi |
| 3227 | |
| 3228 | rm -rf conftest.dSYM |
| 3229 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 3230 | conftest$ac_exeext conftest.$ac_ext |
| 3231 | LIBS=$ac_check_lib_save_LIBS |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3232 | fi |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 3233 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_netconf_ncds_new" >&5 |
| 3234 | $as_echo "$ac_cv_lib_netconf_ncds_new" >&6; } |
| 3235 | if test "x$ac_cv_lib_netconf_ncds_new" = x""yes; then |
| 3236 | cat >>confdefs.h <<_ACEOF |
| 3237 | #define HAVE_LIBNETCONF 1 |
| 3238 | _ACEOF |
| 3239 | |
| 3240 | LIBS="-lnetconf $LIBS" |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3241 | |
| 3242 | else |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 3243 | { { $as_echo "$as_me:$LINENO: error: libnetconf not found." >&5 |
| 3244 | $as_echo "$as_me: error: libnetconf not found." >&2;} |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3245 | { (exit 1); exit 1; }; } |
| 3246 | fi |
| 3247 | |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 3248 | |
| 3249 | # Checks for header files. |
| 3250 | ac_ext=c |
| 3251 | ac_cpp='$CPP $CPPFLAGS' |
| 3252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3255 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3256 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 3257 | # On Suns, sometimes $CPP names a directory. |
| 3258 | if test -n "$CPP" && test -d "$CPP"; then |
| 3259 | CPP= |
| 3260 | fi |
| 3261 | if test -z "$CPP"; then |
| 3262 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3263 | $as_echo_n "(cached) " >&6 |
| 3264 | else |
| 3265 | # Double quotes because CPP needs to be expanded |
| 3266 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3267 | do |
| 3268 | ac_preproc_ok=false |
| 3269 | for ac_c_preproc_warn_flag in '' yes |
| 3270 | do |
| 3271 | # Use a header file that comes with gcc, so configuring glibc |
| 3272 | # with a fresh cross-compiler works. |
| 3273 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3274 | # <limits.h> exists even on freestanding compilers. |
| 3275 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3276 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3277 | cat >conftest.$ac_ext <<_ACEOF |
| 3278 | /* confdefs.h. */ |
| 3279 | _ACEOF |
| 3280 | cat confdefs.h >>conftest.$ac_ext |
| 3281 | cat >>conftest.$ac_ext <<_ACEOF |
| 3282 | /* end confdefs.h. */ |
| 3283 | #ifdef __STDC__ |
| 3284 | # include <limits.h> |
| 3285 | #else |
| 3286 | # include <assert.h> |
| 3287 | #endif |
| 3288 | Syntax error |
| 3289 | _ACEOF |
| 3290 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3291 | case "(($ac_try" in |
| 3292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3293 | *) ac_try_echo=$ac_try;; |
| 3294 | esac |
| 3295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3296 | $as_echo "$ac_try_echo") >&5 |
| 3297 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3298 | ac_status=$? |
| 3299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3300 | rm -f conftest.er1 |
| 3301 | cat conftest.err >&5 |
| 3302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3303 | (exit $ac_status); } >/dev/null && { |
| 3304 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3305 | test ! -s conftest.err |
| 3306 | }; then |
| 3307 | : |
| 3308 | else |
| 3309 | $as_echo "$as_me: failed program was:" >&5 |
| 3310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3311 | |
| 3312 | # Broken: fails on valid input. |
| 3313 | continue |
| 3314 | fi |
| 3315 | |
| 3316 | rm -f conftest.err conftest.$ac_ext |
| 3317 | |
| 3318 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3319 | # can be detected and how. |
| 3320 | cat >conftest.$ac_ext <<_ACEOF |
| 3321 | /* confdefs.h. */ |
| 3322 | _ACEOF |
| 3323 | cat confdefs.h >>conftest.$ac_ext |
| 3324 | cat >>conftest.$ac_ext <<_ACEOF |
| 3325 | /* end confdefs.h. */ |
| 3326 | #include <ac_nonexistent.h> |
| 3327 | _ACEOF |
| 3328 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3329 | case "(($ac_try" in |
| 3330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3331 | *) ac_try_echo=$ac_try;; |
| 3332 | esac |
| 3333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3334 | $as_echo "$ac_try_echo") >&5 |
| 3335 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3336 | ac_status=$? |
| 3337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3338 | rm -f conftest.er1 |
| 3339 | cat conftest.err >&5 |
| 3340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3341 | (exit $ac_status); } >/dev/null && { |
| 3342 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3343 | test ! -s conftest.err |
| 3344 | }; then |
| 3345 | # Broken: success on invalid input. |
| 3346 | continue |
| 3347 | else |
| 3348 | $as_echo "$as_me: failed program was:" >&5 |
| 3349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3350 | |
| 3351 | # Passes both tests. |
| 3352 | ac_preproc_ok=: |
| 3353 | break |
| 3354 | fi |
| 3355 | |
| 3356 | rm -f conftest.err conftest.$ac_ext |
| 3357 | |
| 3358 | done |
| 3359 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3360 | rm -f conftest.err conftest.$ac_ext |
| 3361 | if $ac_preproc_ok; then |
| 3362 | break |
| 3363 | fi |
| 3364 | |
| 3365 | done |
| 3366 | ac_cv_prog_CPP=$CPP |
| 3367 | |
| 3368 | fi |
| 3369 | CPP=$ac_cv_prog_CPP |
| 3370 | else |
| 3371 | ac_cv_prog_CPP=$CPP |
| 3372 | fi |
| 3373 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3374 | $as_echo "$CPP" >&6; } |
| 3375 | ac_preproc_ok=false |
| 3376 | for ac_c_preproc_warn_flag in '' yes |
| 3377 | do |
| 3378 | # Use a header file that comes with gcc, so configuring glibc |
| 3379 | # with a fresh cross-compiler works. |
| 3380 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3381 | # <limits.h> exists even on freestanding compilers. |
| 3382 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3383 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3384 | cat >conftest.$ac_ext <<_ACEOF |
| 3385 | /* confdefs.h. */ |
| 3386 | _ACEOF |
| 3387 | cat confdefs.h >>conftest.$ac_ext |
| 3388 | cat >>conftest.$ac_ext <<_ACEOF |
| 3389 | /* end confdefs.h. */ |
| 3390 | #ifdef __STDC__ |
| 3391 | # include <limits.h> |
| 3392 | #else |
| 3393 | # include <assert.h> |
| 3394 | #endif |
| 3395 | Syntax error |
| 3396 | _ACEOF |
| 3397 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3398 | case "(($ac_try" in |
| 3399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3400 | *) ac_try_echo=$ac_try;; |
| 3401 | esac |
| 3402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3403 | $as_echo "$ac_try_echo") >&5 |
| 3404 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3405 | ac_status=$? |
| 3406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3407 | rm -f conftest.er1 |
| 3408 | cat conftest.err >&5 |
| 3409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3410 | (exit $ac_status); } >/dev/null && { |
| 3411 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3412 | test ! -s conftest.err |
| 3413 | }; then |
| 3414 | : |
| 3415 | else |
| 3416 | $as_echo "$as_me: failed program was:" >&5 |
| 3417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3418 | |
| 3419 | # Broken: fails on valid input. |
| 3420 | continue |
| 3421 | fi |
| 3422 | |
| 3423 | rm -f conftest.err conftest.$ac_ext |
| 3424 | |
| 3425 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3426 | # can be detected and how. |
| 3427 | cat >conftest.$ac_ext <<_ACEOF |
| 3428 | /* confdefs.h. */ |
| 3429 | _ACEOF |
| 3430 | cat confdefs.h >>conftest.$ac_ext |
| 3431 | cat >>conftest.$ac_ext <<_ACEOF |
| 3432 | /* end confdefs.h. */ |
| 3433 | #include <ac_nonexistent.h> |
| 3434 | _ACEOF |
| 3435 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3436 | case "(($ac_try" in |
| 3437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3438 | *) ac_try_echo=$ac_try;; |
| 3439 | esac |
| 3440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3441 | $as_echo "$ac_try_echo") >&5 |
| 3442 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3443 | ac_status=$? |
| 3444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3445 | rm -f conftest.er1 |
| 3446 | cat conftest.err >&5 |
| 3447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3448 | (exit $ac_status); } >/dev/null && { |
| 3449 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3450 | test ! -s conftest.err |
| 3451 | }; then |
| 3452 | # Broken: success on invalid input. |
| 3453 | continue |
| 3454 | else |
| 3455 | $as_echo "$as_me: failed program was:" >&5 |
| 3456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3457 | |
| 3458 | # Passes both tests. |
| 3459 | ac_preproc_ok=: |
| 3460 | break |
| 3461 | fi |
| 3462 | |
| 3463 | rm -f conftest.err conftest.$ac_ext |
| 3464 | |
| 3465 | done |
| 3466 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3467 | rm -f conftest.err conftest.$ac_ext |
| 3468 | if $ac_preproc_ok; then |
| 3469 | : |
| 3470 | else |
| 3471 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3472 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3473 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3474 | See \`config.log' for more details." >&5 |
| 3475 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3476 | See \`config.log' for more details." >&2;} |
| 3477 | { (exit 1); exit 1; }; }; } |
| 3478 | fi |
| 3479 | |
| 3480 | ac_ext=c |
| 3481 | ac_cpp='$CPP $CPPFLAGS' |
| 3482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3485 | |
| 3486 | |
| 3487 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3488 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3489 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3490 | $as_echo_n "(cached) " >&6 |
| 3491 | else |
| 3492 | if test -z "$GREP"; then |
| 3493 | ac_path_GREP_found=false |
| 3494 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3496 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3497 | do |
| 3498 | IFS=$as_save_IFS |
| 3499 | test -z "$as_dir" && as_dir=. |
| 3500 | for ac_prog in grep ggrep; do |
| 3501 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3502 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3503 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3504 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3505 | # Check for GNU $ac_path_GREP |
| 3506 | case `"$ac_path_GREP" --version 2>&1` in |
| 3507 | *GNU*) |
| 3508 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3509 | *) |
| 3510 | ac_count=0 |
| 3511 | $as_echo_n 0123456789 >"conftest.in" |
| 3512 | while : |
| 3513 | do |
| 3514 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3515 | mv "conftest.tmp" "conftest.in" |
| 3516 | cp "conftest.in" "conftest.nl" |
| 3517 | $as_echo 'GREP' >> "conftest.nl" |
| 3518 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3519 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3520 | ac_count=`expr $ac_count + 1` |
| 3521 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3522 | # Best one so far, save it but keep looking for a better one |
| 3523 | ac_cv_path_GREP="$ac_path_GREP" |
| 3524 | ac_path_GREP_max=$ac_count |
| 3525 | fi |
| 3526 | # 10*(2^10) chars as input seems more than enough |
| 3527 | test $ac_count -gt 10 && break |
| 3528 | done |
| 3529 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3530 | esac |
| 3531 | |
| 3532 | $ac_path_GREP_found && break 3 |
| 3533 | done |
| 3534 | done |
| 3535 | done |
| 3536 | IFS=$as_save_IFS |
| 3537 | if test -z "$ac_cv_path_GREP"; then |
| 3538 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3539 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3540 | { (exit 1); exit 1; }; } |
| 3541 | fi |
| 3542 | else |
| 3543 | ac_cv_path_GREP=$GREP |
| 3544 | fi |
| 3545 | |
| 3546 | fi |
| 3547 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3548 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3549 | GREP="$ac_cv_path_GREP" |
| 3550 | |
| 3551 | |
| 3552 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3553 | $as_echo_n "checking for egrep... " >&6; } |
| 3554 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3555 | $as_echo_n "(cached) " >&6 |
| 3556 | else |
| 3557 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3558 | then ac_cv_path_EGREP="$GREP -E" |
| 3559 | else |
| 3560 | if test -z "$EGREP"; then |
| 3561 | ac_path_EGREP_found=false |
| 3562 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3564 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3565 | do |
| 3566 | IFS=$as_save_IFS |
| 3567 | test -z "$as_dir" && as_dir=. |
| 3568 | for ac_prog in egrep; do |
| 3569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3570 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3571 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3572 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3573 | # Check for GNU $ac_path_EGREP |
| 3574 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3575 | *GNU*) |
| 3576 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3577 | *) |
| 3578 | ac_count=0 |
| 3579 | $as_echo_n 0123456789 >"conftest.in" |
| 3580 | while : |
| 3581 | do |
| 3582 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3583 | mv "conftest.tmp" "conftest.in" |
| 3584 | cp "conftest.in" "conftest.nl" |
| 3585 | $as_echo 'EGREP' >> "conftest.nl" |
| 3586 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3587 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3588 | ac_count=`expr $ac_count + 1` |
| 3589 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3590 | # Best one so far, save it but keep looking for a better one |
| 3591 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3592 | ac_path_EGREP_max=$ac_count |
| 3593 | fi |
| 3594 | # 10*(2^10) chars as input seems more than enough |
| 3595 | test $ac_count -gt 10 && break |
| 3596 | done |
| 3597 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3598 | esac |
| 3599 | |
| 3600 | $ac_path_EGREP_found && break 3 |
| 3601 | done |
| 3602 | done |
| 3603 | done |
| 3604 | IFS=$as_save_IFS |
| 3605 | if test -z "$ac_cv_path_EGREP"; then |
| 3606 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3607 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3608 | { (exit 1); exit 1; }; } |
| 3609 | fi |
| 3610 | else |
| 3611 | ac_cv_path_EGREP=$EGREP |
| 3612 | fi |
| 3613 | |
| 3614 | fi |
| 3615 | fi |
| 3616 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3617 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3618 | EGREP="$ac_cv_path_EGREP" |
| 3619 | |
| 3620 | |
| 3621 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3622 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3623 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3624 | $as_echo_n "(cached) " >&6 |
| 3625 | else |
| 3626 | cat >conftest.$ac_ext <<_ACEOF |
| 3627 | /* confdefs.h. */ |
| 3628 | _ACEOF |
| 3629 | cat confdefs.h >>conftest.$ac_ext |
| 3630 | cat >>conftest.$ac_ext <<_ACEOF |
| 3631 | /* end confdefs.h. */ |
| 3632 | #include <stdlib.h> |
| 3633 | #include <stdarg.h> |
| 3634 | #include <string.h> |
| 3635 | #include <float.h> |
| 3636 | |
| 3637 | int |
| 3638 | main () |
| 3639 | { |
| 3640 | |
| 3641 | ; |
| 3642 | return 0; |
| 3643 | } |
| 3644 | _ACEOF |
| 3645 | rm -f conftest.$ac_objext |
| 3646 | if { (ac_try="$ac_compile" |
| 3647 | case "(($ac_try" in |
| 3648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3649 | *) ac_try_echo=$ac_try;; |
| 3650 | esac |
| 3651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3652 | $as_echo "$ac_try_echo") >&5 |
| 3653 | (eval "$ac_compile") 2>conftest.er1 |
| 3654 | ac_status=$? |
| 3655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3656 | rm -f conftest.er1 |
| 3657 | cat conftest.err >&5 |
| 3658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3659 | (exit $ac_status); } && { |
| 3660 | test -z "$ac_c_werror_flag" || |
| 3661 | test ! -s conftest.err |
| 3662 | } && test -s conftest.$ac_objext; then |
| 3663 | ac_cv_header_stdc=yes |
| 3664 | else |
| 3665 | $as_echo "$as_me: failed program was:" >&5 |
| 3666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3667 | |
| 3668 | ac_cv_header_stdc=no |
| 3669 | fi |
| 3670 | |
| 3671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3672 | |
| 3673 | if test $ac_cv_header_stdc = yes; then |
| 3674 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3675 | cat >conftest.$ac_ext <<_ACEOF |
| 3676 | /* confdefs.h. */ |
| 3677 | _ACEOF |
| 3678 | cat confdefs.h >>conftest.$ac_ext |
| 3679 | cat >>conftest.$ac_ext <<_ACEOF |
| 3680 | /* end confdefs.h. */ |
| 3681 | #include <string.h> |
| 3682 | |
| 3683 | _ACEOF |
| 3684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3685 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3686 | : |
| 3687 | else |
| 3688 | ac_cv_header_stdc=no |
| 3689 | fi |
| 3690 | rm -f conftest* |
| 3691 | |
| 3692 | fi |
| 3693 | |
| 3694 | if test $ac_cv_header_stdc = yes; then |
| 3695 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3696 | cat >conftest.$ac_ext <<_ACEOF |
| 3697 | /* confdefs.h. */ |
| 3698 | _ACEOF |
| 3699 | cat confdefs.h >>conftest.$ac_ext |
| 3700 | cat >>conftest.$ac_ext <<_ACEOF |
| 3701 | /* end confdefs.h. */ |
| 3702 | #include <stdlib.h> |
| 3703 | |
| 3704 | _ACEOF |
| 3705 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3706 | $EGREP "free" >/dev/null 2>&1; then |
| 3707 | : |
| 3708 | else |
| 3709 | ac_cv_header_stdc=no |
| 3710 | fi |
| 3711 | rm -f conftest* |
| 3712 | |
| 3713 | fi |
| 3714 | |
| 3715 | if test $ac_cv_header_stdc = yes; then |
| 3716 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3717 | if test "$cross_compiling" = yes; then |
| 3718 | : |
| 3719 | else |
| 3720 | cat >conftest.$ac_ext <<_ACEOF |
| 3721 | /* confdefs.h. */ |
| 3722 | _ACEOF |
| 3723 | cat confdefs.h >>conftest.$ac_ext |
| 3724 | cat >>conftest.$ac_ext <<_ACEOF |
| 3725 | /* end confdefs.h. */ |
| 3726 | #include <ctype.h> |
| 3727 | #include <stdlib.h> |
| 3728 | #if ((' ' & 0x0FF) == 0x020) |
| 3729 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3730 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3731 | #else |
| 3732 | # define ISLOWER(c) \ |
| 3733 | (('a' <= (c) && (c) <= 'i') \ |
| 3734 | || ('j' <= (c) && (c) <= 'r') \ |
| 3735 | || ('s' <= (c) && (c) <= 'z')) |
| 3736 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3737 | #endif |
| 3738 | |
| 3739 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3740 | int |
| 3741 | main () |
| 3742 | { |
| 3743 | int i; |
| 3744 | for (i = 0; i < 256; i++) |
| 3745 | if (XOR (islower (i), ISLOWER (i)) |
| 3746 | || toupper (i) != TOUPPER (i)) |
| 3747 | return 2; |
| 3748 | return 0; |
| 3749 | } |
| 3750 | _ACEOF |
| 3751 | rm -f conftest$ac_exeext |
| 3752 | if { (ac_try="$ac_link" |
| 3753 | case "(($ac_try" in |
| 3754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3755 | *) ac_try_echo=$ac_try;; |
| 3756 | esac |
| 3757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3758 | $as_echo "$ac_try_echo") >&5 |
| 3759 | (eval "$ac_link") 2>&5 |
| 3760 | ac_status=$? |
| 3761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3762 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3763 | { (case "(($ac_try" in |
| 3764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3765 | *) ac_try_echo=$ac_try;; |
| 3766 | esac |
| 3767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3768 | $as_echo "$ac_try_echo") >&5 |
| 3769 | (eval "$ac_try") 2>&5 |
| 3770 | ac_status=$? |
| 3771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3772 | (exit $ac_status); }; }; then |
| 3773 | : |
| 3774 | else |
| 3775 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 3776 | $as_echo "$as_me: failed program was:" >&5 |
| 3777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3778 | |
| 3779 | ( exit $ac_status ) |
| 3780 | ac_cv_header_stdc=no |
| 3781 | fi |
| 3782 | rm -rf conftest.dSYM |
| 3783 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3784 | fi |
| 3785 | |
| 3786 | |
| 3787 | fi |
| 3788 | fi |
| 3789 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3790 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 3791 | if test $ac_cv_header_stdc = yes; then |
| 3792 | |
| 3793 | cat >>confdefs.h <<\_ACEOF |
| 3794 | #define STDC_HEADERS 1 |
| 3795 | _ACEOF |
| 3796 | |
| 3797 | fi |
| 3798 | |
| 3799 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3800 | |
| 3801 | |
| 3802 | |
| 3803 | |
| 3804 | |
| 3805 | |
| 3806 | |
| 3807 | |
| 3808 | |
| 3809 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3810 | inttypes.h stdint.h unistd.h |
| 3811 | do |
| 3812 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3813 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3814 | $as_echo_n "checking for $ac_header... " >&6; } |
| 3815 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3816 | $as_echo_n "(cached) " >&6 |
| 3817 | else |
| 3818 | cat >conftest.$ac_ext <<_ACEOF |
| 3819 | /* confdefs.h. */ |
| 3820 | _ACEOF |
| 3821 | cat confdefs.h >>conftest.$ac_ext |
| 3822 | cat >>conftest.$ac_ext <<_ACEOF |
| 3823 | /* end confdefs.h. */ |
| 3824 | $ac_includes_default |
| 3825 | |
| 3826 | #include <$ac_header> |
| 3827 | _ACEOF |
| 3828 | rm -f conftest.$ac_objext |
| 3829 | if { (ac_try="$ac_compile" |
| 3830 | case "(($ac_try" in |
| 3831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3832 | *) ac_try_echo=$ac_try;; |
| 3833 | esac |
| 3834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3835 | $as_echo "$ac_try_echo") >&5 |
| 3836 | (eval "$ac_compile") 2>conftest.er1 |
| 3837 | ac_status=$? |
| 3838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3839 | rm -f conftest.er1 |
| 3840 | cat conftest.err >&5 |
| 3841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3842 | (exit $ac_status); } && { |
| 3843 | test -z "$ac_c_werror_flag" || |
| 3844 | test ! -s conftest.err |
| 3845 | } && test -s conftest.$ac_objext; then |
| 3846 | eval "$as_ac_Header=yes" |
| 3847 | else |
| 3848 | $as_echo "$as_me: failed program was:" >&5 |
| 3849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3850 | |
| 3851 | eval "$as_ac_Header=no" |
| 3852 | fi |
| 3853 | |
| 3854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3855 | fi |
| 3856 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 3857 | $as_echo "$as_val"'` |
| 3858 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3859 | $as_echo "$ac_res" >&6; } |
| 3860 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 3861 | $as_echo "$as_val"'` |
| 3862 | if test "x$as_val" = x""yes; then |
| 3863 | cat >>confdefs.h <<_ACEOF |
| 3864 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3865 | _ACEOF |
| 3866 | |
| 3867 | fi |
| 3868 | |
| 3869 | done |
| 3870 | |
| 3871 | |
| 3872 | if test "${ac_cv_header_libnetconf_h+set}" = set; then |
| 3873 | { $as_echo "$as_me:$LINENO: checking for libnetconf.h" >&5 |
| 3874 | $as_echo_n "checking for libnetconf.h... " >&6; } |
| 3875 | if test "${ac_cv_header_libnetconf_h+set}" = set; then |
| 3876 | $as_echo_n "(cached) " >&6 |
| 3877 | fi |
| 3878 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libnetconf_h" >&5 |
| 3879 | $as_echo "$ac_cv_header_libnetconf_h" >&6; } |
| 3880 | else |
| 3881 | # Is the header compilable? |
| 3882 | { $as_echo "$as_me:$LINENO: checking libnetconf.h usability" >&5 |
| 3883 | $as_echo_n "checking libnetconf.h usability... " >&6; } |
| 3884 | cat >conftest.$ac_ext <<_ACEOF |
| 3885 | /* confdefs.h. */ |
| 3886 | _ACEOF |
| 3887 | cat confdefs.h >>conftest.$ac_ext |
| 3888 | cat >>conftest.$ac_ext <<_ACEOF |
| 3889 | /* end confdefs.h. */ |
| 3890 | $ac_includes_default |
| 3891 | #include <libnetconf.h> |
| 3892 | _ACEOF |
| 3893 | rm -f conftest.$ac_objext |
| 3894 | if { (ac_try="$ac_compile" |
| 3895 | case "(($ac_try" in |
| 3896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3897 | *) ac_try_echo=$ac_try;; |
| 3898 | esac |
| 3899 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3900 | $as_echo "$ac_try_echo") >&5 |
| 3901 | (eval "$ac_compile") 2>conftest.er1 |
| 3902 | ac_status=$? |
| 3903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3904 | rm -f conftest.er1 |
| 3905 | cat conftest.err >&5 |
| 3906 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3907 | (exit $ac_status); } && { |
| 3908 | test -z "$ac_c_werror_flag" || |
| 3909 | test ! -s conftest.err |
| 3910 | } && test -s conftest.$ac_objext; then |
| 3911 | ac_header_compiler=yes |
| 3912 | else |
| 3913 | $as_echo "$as_me: failed program was:" >&5 |
| 3914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3915 | |
| 3916 | ac_header_compiler=no |
| 3917 | fi |
| 3918 | |
| 3919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3920 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3921 | $as_echo "$ac_header_compiler" >&6; } |
| 3922 | |
| 3923 | # Is the header present? |
| 3924 | { $as_echo "$as_me:$LINENO: checking libnetconf.h presence" >&5 |
| 3925 | $as_echo_n "checking libnetconf.h presence... " >&6; } |
| 3926 | cat >conftest.$ac_ext <<_ACEOF |
| 3927 | /* confdefs.h. */ |
| 3928 | _ACEOF |
| 3929 | cat confdefs.h >>conftest.$ac_ext |
| 3930 | cat >>conftest.$ac_ext <<_ACEOF |
| 3931 | /* end confdefs.h. */ |
| 3932 | #include <libnetconf.h> |
| 3933 | _ACEOF |
| 3934 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3935 | case "(($ac_try" in |
| 3936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3937 | *) ac_try_echo=$ac_try;; |
| 3938 | esac |
| 3939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3940 | $as_echo "$ac_try_echo") >&5 |
| 3941 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3942 | ac_status=$? |
| 3943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3944 | rm -f conftest.er1 |
| 3945 | cat conftest.err >&5 |
| 3946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3947 | (exit $ac_status); } >/dev/null && { |
| 3948 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3949 | test ! -s conftest.err |
| 3950 | }; then |
| 3951 | ac_header_preproc=yes |
| 3952 | else |
| 3953 | $as_echo "$as_me: failed program was:" >&5 |
| 3954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3955 | |
| 3956 | ac_header_preproc=no |
| 3957 | fi |
| 3958 | |
| 3959 | rm -f conftest.err conftest.$ac_ext |
| 3960 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3961 | $as_echo "$ac_header_preproc" >&6; } |
| 3962 | |
| 3963 | # So? What about this header? |
| 3964 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3965 | yes:no: ) |
| 3966 | { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3967 | $as_echo "$as_me: WARNING: libnetconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3968 | { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: proceeding with the compiler's result" >&5 |
| 3969 | $as_echo "$as_me: WARNING: libnetconf.h: proceeding with the compiler's result" >&2;} |
| 3970 | ac_header_preproc=yes |
| 3971 | ;; |
| 3972 | no:yes:* ) |
| 3973 | { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: present but cannot be compiled" >&5 |
| 3974 | $as_echo "$as_me: WARNING: libnetconf.h: present but cannot be compiled" >&2;} |
| 3975 | { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: check for missing prerequisite headers?" >&5 |
| 3976 | $as_echo "$as_me: WARNING: libnetconf.h: check for missing prerequisite headers?" >&2;} |
| 3977 | { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: see the Autoconf documentation" >&5 |
| 3978 | $as_echo "$as_me: WARNING: libnetconf.h: see the Autoconf documentation" >&2;} |
| 3979 | { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3980 | $as_echo "$as_me: WARNING: libnetconf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3981 | { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: proceeding with the preprocessor's result" >&5 |
| 3982 | $as_echo "$as_me: WARNING: libnetconf.h: proceeding with the preprocessor's result" >&2;} |
| 3983 | { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: in the future, the compiler will take precedence" >&5 |
| 3984 | $as_echo "$as_me: WARNING: libnetconf.h: in the future, the compiler will take precedence" >&2;} |
| 3985 | |
| 3986 | ;; |
| 3987 | esac |
| 3988 | { $as_echo "$as_me:$LINENO: checking for libnetconf.h" >&5 |
| 3989 | $as_echo_n "checking for libnetconf.h... " >&6; } |
| 3990 | if test "${ac_cv_header_libnetconf_h+set}" = set; then |
| 3991 | $as_echo_n "(cached) " >&6 |
| 3992 | else |
| 3993 | ac_cv_header_libnetconf_h=$ac_header_preproc |
| 3994 | fi |
| 3995 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libnetconf_h" >&5 |
| 3996 | $as_echo "$ac_cv_header_libnetconf_h" >&6; } |
| 3997 | |
| 3998 | fi |
| 3999 | if test "x$ac_cv_header_libnetconf_h" = x""yes; then |
| 4000 | : |
| 4001 | else |
| 4002 | { { $as_echo "$as_me:$LINENO: error: libnetconf.h not found!" >&5 |
| 4003 | $as_echo "$as_me: error: libnetconf.h not found!" >&2;} |
| 4004 | { (exit 1); exit 1; }; } |
| 4005 | fi |
| 4006 | |
| 4007 | |
| 4008 | |
| 4009 | # Checks for typedefs, structures, and compiler characteristics. |
| 4010 | |
| 4011 | # Checks for library functions. |
| 4012 | |
| 4013 | |
| 4014 | if test -z "$RPMBUILD"; then |
| 4015 | { $as_echo "$as_me:$LINENO: WARNING: Due to missing rpmbuild you will not able to generate RPM package." >&5 |
| 4016 | $as_echo "$as_me: WARNING: Due to missing rpmbuild you will not able to generate RPM package." >&2;} |
| 4017 | fi |
| 4018 | |
| 4019 | |
| 4020 | |
Tomas Cejka | d340dbf | 2013-03-24 20:36:57 +0100 | [diff] [blame] | 4021 | # Check whether --with-notifications was given. |
| 4022 | if test "${with_notifications+set}" = set; then |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 4023 | withval=$with_notifications; if test "x$with_notifications" == "xno"; then |
| 4024 | CFLAGS="$CFLAGS" |
| 4025 | else |
| 4026 | CFLAGS="$CFLAGS -DWITH_NOTIFICATIONS " |
Tomas Cejka | d340dbf | 2013-03-24 20:36:57 +0100 | [diff] [blame] | 4027 | LIBS="-lwebsockets $LIBS" |
| 4028 | |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 4029 | fi |
| 4030 | |
Tomas Cejka | d340dbf | 2013-03-24 20:36:57 +0100 | [diff] [blame] | 4031 | else |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 4032 | |
| 4033 | CFLAGS="$CFLAGS -DWITH_NOTIFICATIONS " |
| 4034 | LIBS="-lwebsockets $LIBS" |
| 4035 | |
Tomas Cejka | d340dbf | 2013-03-24 20:36:57 +0100 | [diff] [blame] | 4036 | |
| 4037 | fi |
| 4038 | |
| 4039 | |
Tomas Cejka | 04a98cb | 2013-07-05 09:59:20 +0200 | [diff] [blame] | 4040 | |
| 4041 | # Check whether --with-notifport was given. |
| 4042 | if test "${with_notifport+set}" = set; then |
| 4043 | withval=$with_notifport; CFLAGS="$CFLAGS -DNOTIFICATION_SERVER_PORT=$with_notifport" |
| 4044 | else |
| 4045 | CFLAGS="$CFLAGS" |
| 4046 | |
| 4047 | fi |
| 4048 | |
| 4049 | |
Tomas Cejka | b3cc64f | 2013-05-03 19:44:54 +0200 | [diff] [blame] | 4050 | CFLAGS="$CFLAGS -I/usr/include/json" |
Tomas Cejka | d340dbf | 2013-03-24 20:36:57 +0100 | [diff] [blame] | 4051 | |
| 4052 | |
| 4053 | |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 4054 | |
Tomas Cejka | 689a104 | 2013-01-16 15:08:25 +0100 | [diff] [blame] | 4055 | |
| 4056 | |
| 4057 | |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 4058 | ac_config_files="$ac_config_files Makefile" |
| 4059 | |
| 4060 | ac_config_files="$ac_config_files mod_netconf.spec" |
| 4061 | |
| 4062 | cat >confcache <<\_ACEOF |
| 4063 | # This file is a shell script that caches the results of configure |
| 4064 | # tests run on this system so they can be shared between configure |
| 4065 | # scripts and configure runs, see configure's option --config-cache. |
| 4066 | # It is not useful on other systems. If it contains results you don't |
| 4067 | # want to keep, you may remove or edit it. |
| 4068 | # |
| 4069 | # config.status only pays attention to the cache file if you give it |
| 4070 | # the --recheck option to rerun configure. |
| 4071 | # |
| 4072 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 4073 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 4074 | # following values. |
| 4075 | |
| 4076 | _ACEOF |
| 4077 | |
| 4078 | # The following way of writing the cache mishandles newlines in values, |
| 4079 | # but we know of no workaround that is simple, portable, and efficient. |
| 4080 | # So, we kill variables containing newlines. |
| 4081 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4082 | # and sets the high bit in the cache file unless we assign to the vars. |
| 4083 | ( |
| 4084 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 4085 | eval ac_val=\$$ac_var |
| 4086 | case $ac_val in #( |
| 4087 | *${as_nl}*) |
| 4088 | case $ac_var in #( |
| 4089 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 4090 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 4091 | esac |
| 4092 | case $ac_var in #( |
| 4093 | _ | IFS | as_nl) ;; #( |
| 4094 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 4095 | *) $as_unset $ac_var ;; |
| 4096 | esac ;; |
| 4097 | esac |
| 4098 | done |
| 4099 | |
| 4100 | (set) 2>&1 | |
| 4101 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 4102 | *${as_nl}ac_space=\ *) |
| 4103 | # `set' does not quote correctly, so add quotes (double-quote |
| 4104 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 4105 | sed -n \ |
| 4106 | "s/'/'\\\\''/g; |
| 4107 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 4108 | ;; #( |
| 4109 | *) |
| 4110 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4111 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 4112 | ;; |
| 4113 | esac | |
| 4114 | sort |
| 4115 | ) | |
| 4116 | sed ' |
| 4117 | /^ac_cv_env_/b end |
| 4118 | t clear |
| 4119 | :clear |
| 4120 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 4121 | t end |
| 4122 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 4123 | :end' >>confcache |
| 4124 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 4125 | if test -w "$cache_file"; then |
| 4126 | test "x$cache_file" != "x/dev/null" && |
| 4127 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 4128 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 4129 | cat confcache >$cache_file |
| 4130 | else |
| 4131 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 4132 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 4133 | fi |
| 4134 | fi |
| 4135 | rm -f confcache |
| 4136 | |
| 4137 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4138 | # Let make expand exec_prefix. |
| 4139 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 4140 | |
| 4141 | # Transform confdefs.h into DEFS. |
| 4142 | # Protect against shell expansion while executing Makefile rules. |
| 4143 | # Protect against Makefile macro expansion. |
| 4144 | # |
| 4145 | # If the first sed substitution is executed (which looks for macros that |
| 4146 | # take arguments), then branch to the quote section. Otherwise, |
| 4147 | # look for a macro that doesn't take arguments. |
| 4148 | ac_script=' |
| 4149 | :mline |
| 4150 | /\\$/{ |
| 4151 | N |
| 4152 | s,\\\n,, |
| 4153 | b mline |
| 4154 | } |
| 4155 | t clear |
| 4156 | :clear |
| 4157 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 4158 | t quote |
| 4159 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 4160 | t quote |
| 4161 | b any |
| 4162 | :quote |
| 4163 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 4164 | s/\[/\\&/g |
| 4165 | s/\]/\\&/g |
| 4166 | s/\$/$$/g |
| 4167 | H |
| 4168 | :any |
| 4169 | ${ |
| 4170 | g |
| 4171 | s/^\n// |
| 4172 | s/\n/ /g |
| 4173 | p |
| 4174 | } |
| 4175 | ' |
| 4176 | DEFS=`sed -n "$ac_script" confdefs.h` |
| 4177 | |
| 4178 | |
| 4179 | ac_libobjs= |
| 4180 | ac_ltlibobjs= |
| 4181 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 4182 | # 1. Remove the extension, and $U if already installed. |
| 4183 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 4184 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 4185 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 4186 | # will be set to the directory where LIBOBJS objects are built. |
| 4187 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 4188 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
| 4189 | done |
| 4190 | LIBOBJS=$ac_libobjs |
| 4191 | |
| 4192 | LTLIBOBJS=$ac_ltlibobjs |
| 4193 | |
| 4194 | |
| 4195 | |
| 4196 | : ${CONFIG_STATUS=./config.status} |
| 4197 | ac_write_fail=0 |
| 4198 | ac_clean_files_save=$ac_clean_files |
| 4199 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 4200 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 4201 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 4202 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4203 | #! $SHELL |
| 4204 | # Generated by $as_me. |
| 4205 | # Run this file to recreate the current configuration. |
| 4206 | # Compiler output produced by configure, useful for debugging |
| 4207 | # configure, is in config.log if it exists. |
| 4208 | |
| 4209 | debug=false |
| 4210 | ac_cs_recheck=false |
| 4211 | ac_cs_silent=false |
| 4212 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 4213 | _ACEOF |
| 4214 | |
| 4215 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4216 | ## --------------------- ## |
| 4217 | ## M4sh Initialization. ## |
| 4218 | ## --------------------- ## |
| 4219 | |
| 4220 | # Be more Bourne compatible |
| 4221 | DUALCASE=1; export DUALCASE # for MKS sh |
| 4222 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 4223 | emulate sh |
| 4224 | NULLCMD=: |
| 4225 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 4226 | # is contrary to our usage. Disable this feature. |
| 4227 | alias -g '${1+"$@"}'='"$@"' |
| 4228 | setopt NO_GLOB_SUBST |
| 4229 | else |
| 4230 | case `(set -o) 2>/dev/null` in |
| 4231 | *posix*) set -o posix ;; |
| 4232 | esac |
| 4233 | |
| 4234 | fi |
| 4235 | |
| 4236 | |
| 4237 | |
| 4238 | |
| 4239 | # PATH needs CR |
| 4240 | # Avoid depending upon Character Ranges. |
| 4241 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 4242 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 4243 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 4244 | as_cr_digits='0123456789' |
| 4245 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 4246 | |
| 4247 | as_nl=' |
| 4248 | ' |
| 4249 | export as_nl |
| 4250 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 4251 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 4252 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 4253 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 4254 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 4255 | as_echo='printf %s\n' |
| 4256 | as_echo_n='printf %s' |
| 4257 | else |
| 4258 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 4259 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 4260 | as_echo_n='/usr/ucb/echo -n' |
| 4261 | else |
| 4262 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 4263 | as_echo_n_body='eval |
| 4264 | arg=$1; |
| 4265 | case $arg in |
| 4266 | *"$as_nl"*) |
| 4267 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 4268 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 4269 | esac; |
| 4270 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 4271 | ' |
| 4272 | export as_echo_n_body |
| 4273 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 4274 | fi |
| 4275 | export as_echo_body |
| 4276 | as_echo='sh -c $as_echo_body as_echo' |
| 4277 | fi |
| 4278 | |
| 4279 | # The user is always right. |
| 4280 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4281 | PATH_SEPARATOR=: |
| 4282 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 4283 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 4284 | PATH_SEPARATOR=';' |
| 4285 | } |
| 4286 | fi |
| 4287 | |
| 4288 | # Support unset when possible. |
| 4289 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4290 | as_unset=unset |
| 4291 | else |
| 4292 | as_unset=false |
| 4293 | fi |
| 4294 | |
| 4295 | |
| 4296 | # IFS |
| 4297 | # We need space, tab and new line, in precisely that order. Quoting is |
| 4298 | # there to prevent editors from complaining about space-tab. |
| 4299 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 4300 | # splitting by setting IFS to empty value.) |
| 4301 | IFS=" "" $as_nl" |
| 4302 | |
| 4303 | # Find who we are. Look in the path if we contain no directory separator. |
| 4304 | case $0 in |
| 4305 | *[\\/]* ) as_myself=$0 ;; |
| 4306 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4307 | for as_dir in $PATH |
| 4308 | do |
| 4309 | IFS=$as_save_IFS |
| 4310 | test -z "$as_dir" && as_dir=. |
| 4311 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 4312 | done |
| 4313 | IFS=$as_save_IFS |
| 4314 | |
| 4315 | ;; |
| 4316 | esac |
| 4317 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 4318 | # in which case we are not to be found in the path. |
| 4319 | if test "x$as_myself" = x; then |
| 4320 | as_myself=$0 |
| 4321 | fi |
| 4322 | if test ! -f "$as_myself"; then |
| 4323 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 4324 | { (exit 1); exit 1; } |
| 4325 | fi |
| 4326 | |
| 4327 | # Work around bugs in pre-3.0 UWIN ksh. |
| 4328 | for as_var in ENV MAIL MAILPATH |
| 4329 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 4330 | done |
| 4331 | PS1='$ ' |
| 4332 | PS2='> ' |
| 4333 | PS4='+ ' |
| 4334 | |
| 4335 | # NLS nuisances. |
| 4336 | LC_ALL=C |
| 4337 | export LC_ALL |
| 4338 | LANGUAGE=C |
| 4339 | export LANGUAGE |
| 4340 | |
| 4341 | # Required to use basename. |
| 4342 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 4343 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 4344 | as_expr=expr |
| 4345 | else |
| 4346 | as_expr=false |
| 4347 | fi |
| 4348 | |
| 4349 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 4350 | as_basename=basename |
| 4351 | else |
| 4352 | as_basename=false |
| 4353 | fi |
| 4354 | |
| 4355 | |
| 4356 | # Name of the executable. |
| 4357 | as_me=`$as_basename -- "$0" || |
| 4358 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 4359 | X"$0" : 'X\(//\)$' \| \ |
| 4360 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 4361 | $as_echo X/"$0" | |
| 4362 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 4363 | s//\1/ |
| 4364 | q |
| 4365 | } |
| 4366 | /^X\/\(\/\/\)$/{ |
| 4367 | s//\1/ |
| 4368 | q |
| 4369 | } |
| 4370 | /^X\/\(\/\).*/{ |
| 4371 | s//\1/ |
| 4372 | q |
| 4373 | } |
| 4374 | s/.*/./; q'` |
| 4375 | |
| 4376 | # CDPATH. |
| 4377 | $as_unset CDPATH |
| 4378 | |
| 4379 | |
| 4380 | |
| 4381 | as_lineno_1=$LINENO |
| 4382 | as_lineno_2=$LINENO |
| 4383 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 4384 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 4385 | |
| 4386 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 4387 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 4388 | # line-number line after each line using $LINENO; the second 'sed' |
| 4389 | # does the real work. The second script uses 'N' to pair each |
| 4390 | # line-number line with the line containing $LINENO, and appends |
| 4391 | # trailing '-' during substitution so that $LINENO is not a special |
| 4392 | # case at line end. |
| 4393 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 4394 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 4395 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 4396 | sed -n ' |
| 4397 | p |
| 4398 | /[$]LINENO/= |
| 4399 | ' <$as_myself | |
| 4400 | sed ' |
| 4401 | s/[$]LINENO.*/&-/ |
| 4402 | t lineno |
| 4403 | b |
| 4404 | :lineno |
| 4405 | N |
| 4406 | :loop |
| 4407 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 4408 | t loop |
| 4409 | s/-\n.*// |
| 4410 | ' >$as_me.lineno && |
| 4411 | chmod +x "$as_me.lineno" || |
| 4412 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 4413 | { (exit 1); exit 1; }; } |
| 4414 | |
| 4415 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 4416 | # (the dirname of $[0] is not the place where we might find the |
| 4417 | # original and so on. Autoconf is especially sensitive to this). |
| 4418 | . "./$as_me.lineno" |
| 4419 | # Exit status is that of the last command. |
| 4420 | exit |
| 4421 | } |
| 4422 | |
| 4423 | |
| 4424 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 4425 | as_dirname=dirname |
| 4426 | else |
| 4427 | as_dirname=false |
| 4428 | fi |
| 4429 | |
| 4430 | ECHO_C= ECHO_N= ECHO_T= |
| 4431 | case `echo -n x` in |
| 4432 | -n*) |
| 4433 | case `echo 'x\c'` in |
| 4434 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 4435 | *) ECHO_C='\c';; |
| 4436 | esac;; |
| 4437 | *) |
| 4438 | ECHO_N='-n';; |
| 4439 | esac |
| 4440 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 4441 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 4442 | as_expr=expr |
| 4443 | else |
| 4444 | as_expr=false |
| 4445 | fi |
| 4446 | |
| 4447 | rm -f conf$$ conf$$.exe conf$$.file |
| 4448 | if test -d conf$$.dir; then |
| 4449 | rm -f conf$$.dir/conf$$.file |
| 4450 | else |
| 4451 | rm -f conf$$.dir |
| 4452 | mkdir conf$$.dir 2>/dev/null |
| 4453 | fi |
| 4454 | if (echo >conf$$.file) 2>/dev/null; then |
| 4455 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 4456 | as_ln_s='ln -s' |
| 4457 | # ... but there are two gotchas: |
| 4458 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 4459 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 4460 | # In both cases, we have to default to `cp -p'. |
| 4461 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 4462 | as_ln_s='cp -p' |
| 4463 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 4464 | as_ln_s=ln |
| 4465 | else |
| 4466 | as_ln_s='cp -p' |
| 4467 | fi |
| 4468 | else |
| 4469 | as_ln_s='cp -p' |
| 4470 | fi |
| 4471 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 4472 | rmdir conf$$.dir 2>/dev/null |
| 4473 | |
| 4474 | if mkdir -p . 2>/dev/null; then |
| 4475 | as_mkdir_p=: |
| 4476 | else |
| 4477 | test -d ./-p && rmdir ./-p |
| 4478 | as_mkdir_p=false |
| 4479 | fi |
| 4480 | |
| 4481 | if test -x / >/dev/null 2>&1; then |
| 4482 | as_test_x='test -x' |
| 4483 | else |
| 4484 | if ls -dL / >/dev/null 2>&1; then |
| 4485 | as_ls_L_option=L |
| 4486 | else |
| 4487 | as_ls_L_option= |
| 4488 | fi |
| 4489 | as_test_x=' |
| 4490 | eval sh -c '\'' |
| 4491 | if test -d "$1"; then |
| 4492 | test -d "$1/."; |
| 4493 | else |
| 4494 | case $1 in |
| 4495 | -*)set "./$1";; |
| 4496 | esac; |
| 4497 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 4498 | ???[sx]*):;;*)false;;esac;fi |
| 4499 | '\'' sh |
| 4500 | ' |
| 4501 | fi |
| 4502 | as_executable_p=$as_test_x |
| 4503 | |
| 4504 | # Sed expression to map a string onto a valid CPP name. |
| 4505 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 4506 | |
| 4507 | # Sed expression to map a string onto a valid variable name. |
| 4508 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 4509 | |
| 4510 | |
| 4511 | exec 6>&1 |
| 4512 | |
| 4513 | # Save the log message, to keep $[0] and so on meaningful, and to |
| 4514 | # report actual input values of CONFIG_FILES etc. instead of their |
| 4515 | # values after options handling. |
| 4516 | ac_log=" |
| 4517 | This file was extended by mod_netconf $as_me 1.0, which was |
| 4518 | generated by GNU Autoconf 2.63. Invocation command line was |
| 4519 | |
| 4520 | CONFIG_FILES = $CONFIG_FILES |
| 4521 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 4522 | CONFIG_LINKS = $CONFIG_LINKS |
| 4523 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 4524 | $ $0 $@ |
| 4525 | |
| 4526 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 4527 | " |
| 4528 | |
| 4529 | _ACEOF |
| 4530 | |
| 4531 | case $ac_config_files in *" |
| 4532 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 4533 | esac |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4538 | # Files that config.status was made for. |
| 4539 | config_files="$ac_config_files" |
| 4540 | |
| 4541 | _ACEOF |
| 4542 | |
| 4543 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4544 | ac_cs_usage="\ |
| 4545 | \`$as_me' instantiates files from templates according to the |
| 4546 | current configuration. |
| 4547 | |
| 4548 | Usage: $0 [OPTION]... [FILE]... |
| 4549 | |
| 4550 | -h, --help print this help, then exit |
| 4551 | -V, --version print version number and configuration settings, then exit |
| 4552 | -q, --quiet, --silent |
| 4553 | do not print progress messages |
| 4554 | -d, --debug don't remove temporary files |
| 4555 | --recheck update $as_me by reconfiguring in the same conditions |
| 4556 | --file=FILE[:TEMPLATE] |
| 4557 | instantiate the configuration file FILE |
| 4558 | |
| 4559 | Configuration files: |
| 4560 | $config_files |
| 4561 | |
| 4562 | Report bugs to <bug-autoconf@gnu.org>." |
| 4563 | |
| 4564 | _ACEOF |
| 4565 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4566 | ac_cs_version="\\ |
| 4567 | mod_netconf config.status 1.0 |
| 4568 | configured by $0, generated by GNU Autoconf 2.63, |
| 4569 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 4570 | |
| 4571 | Copyright (C) 2008 Free Software Foundation, Inc. |
| 4572 | This config.status script is free software; the Free Software Foundation |
| 4573 | gives unlimited permission to copy, distribute and modify it." |
| 4574 | |
| 4575 | ac_pwd='$ac_pwd' |
| 4576 | srcdir='$srcdir' |
| 4577 | INSTALL='$INSTALL' |
| 4578 | test -n "\$AWK" || AWK=awk |
| 4579 | _ACEOF |
| 4580 | |
| 4581 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4582 | # The default lists apply if the user does not specify any file. |
| 4583 | ac_need_defaults=: |
| 4584 | while test $# != 0 |
| 4585 | do |
| 4586 | case $1 in |
| 4587 | --*=*) |
| 4588 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 4589 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 4590 | ac_shift=: |
| 4591 | ;; |
| 4592 | *) |
| 4593 | ac_option=$1 |
| 4594 | ac_optarg=$2 |
| 4595 | ac_shift=shift |
| 4596 | ;; |
| 4597 | esac |
| 4598 | |
| 4599 | case $ac_option in |
| 4600 | # Handling of the options. |
| 4601 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 4602 | ac_cs_recheck=: ;; |
| 4603 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 4604 | $as_echo "$ac_cs_version"; exit ;; |
| 4605 | --debug | --debu | --deb | --de | --d | -d ) |
| 4606 | debug=: ;; |
| 4607 | --file | --fil | --fi | --f ) |
| 4608 | $ac_shift |
| 4609 | case $ac_optarg in |
| 4610 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4611 | esac |
| 4612 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
| 4613 | ac_need_defaults=false;; |
| 4614 | --he | --h | --help | --hel | -h ) |
| 4615 | $as_echo "$ac_cs_usage"; exit ;; |
| 4616 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 4617 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 4618 | ac_cs_silent=: ;; |
| 4619 | |
| 4620 | # This is an error. |
| 4621 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 4622 | Try \`$0 --help' for more information." >&2 |
| 4623 | { (exit 1); exit 1; }; } ;; |
| 4624 | |
| 4625 | *) ac_config_targets="$ac_config_targets $1" |
| 4626 | ac_need_defaults=false ;; |
| 4627 | |
| 4628 | esac |
| 4629 | shift |
| 4630 | done |
| 4631 | |
| 4632 | ac_configure_extra_args= |
| 4633 | |
| 4634 | if $ac_cs_silent; then |
| 4635 | exec 6>/dev/null |
| 4636 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 4637 | fi |
| 4638 | |
| 4639 | _ACEOF |
| 4640 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4641 | if \$ac_cs_recheck; then |
| 4642 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 4643 | shift |
| 4644 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 4645 | CONFIG_SHELL='$SHELL' |
| 4646 | export CONFIG_SHELL |
| 4647 | exec "\$@" |
| 4648 | fi |
| 4649 | |
| 4650 | _ACEOF |
| 4651 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4652 | exec 5>>config.log |
| 4653 | { |
| 4654 | echo |
| 4655 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 4656 | ## Running $as_me. ## |
| 4657 | _ASBOX |
| 4658 | $as_echo "$ac_log" |
| 4659 | } >&5 |
| 4660 | |
| 4661 | _ACEOF |
| 4662 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4663 | _ACEOF |
| 4664 | |
| 4665 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4666 | |
| 4667 | # Handling of arguments. |
| 4668 | for ac_config_target in $ac_config_targets |
| 4669 | do |
| 4670 | case $ac_config_target in |
| 4671 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 4672 | "mod_netconf.spec") CONFIG_FILES="$CONFIG_FILES mod_netconf.spec" ;; |
| 4673 | |
| 4674 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 4675 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 4676 | { (exit 1); exit 1; }; };; |
| 4677 | esac |
| 4678 | done |
| 4679 | |
| 4680 | |
| 4681 | # If the user did not use the arguments to specify the items to instantiate, |
| 4682 | # then the envvar interface is used. Set only those that are not. |
| 4683 | # We use the long form for the default assignment because of an extremely |
| 4684 | # bizarre bug on SunOS 4.1.3. |
| 4685 | if $ac_need_defaults; then |
| 4686 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 4687 | fi |
| 4688 | |
| 4689 | # Have a temporary directory for convenience. Make it in the build tree |
| 4690 | # simply because there is no reason against having it here, and in addition, |
| 4691 | # creating and moving files from /tmp can sometimes cause problems. |
| 4692 | # Hook for its removal unless debugging. |
| 4693 | # Note that there is a small window in which the directory will not be cleaned: |
| 4694 | # after its creation but before its name has been assigned to `$tmp'. |
| 4695 | $debug || |
| 4696 | { |
| 4697 | tmp= |
| 4698 | trap 'exit_status=$? |
| 4699 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 4700 | ' 0 |
| 4701 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 4702 | } |
| 4703 | # Create a (secure) tmp directory for tmp files. |
| 4704 | |
| 4705 | { |
| 4706 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 4707 | test -n "$tmp" && test -d "$tmp" |
| 4708 | } || |
| 4709 | { |
| 4710 | tmp=./conf$$-$RANDOM |
| 4711 | (umask 077 && mkdir "$tmp") |
| 4712 | } || |
| 4713 | { |
| 4714 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
| 4715 | { (exit 1); exit 1; } |
| 4716 | } |
| 4717 | |
| 4718 | # Set up the scripts for CONFIG_FILES section. |
| 4719 | # No need to generate them if there are no CONFIG_FILES. |
| 4720 | # This happens for instance with `./config.status config.h'. |
| 4721 | if test -n "$CONFIG_FILES"; then |
| 4722 | |
| 4723 | |
| 4724 | ac_cr='
' |
| 4725 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 4726 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 4727 | ac_cs_awk_cr='\\r' |
| 4728 | else |
| 4729 | ac_cs_awk_cr=$ac_cr |
| 4730 | fi |
| 4731 | |
| 4732 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 4733 | _ACEOF |
| 4734 | |
| 4735 | |
| 4736 | { |
| 4737 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 4738 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 4739 | echo "_ACEOF" |
| 4740 | } >conf$$subs.sh || |
| 4741 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 4742 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 4743 | { (exit 1); exit 1; }; } |
| 4744 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 4745 | ac_delim='%!_!# ' |
| 4746 | for ac_last_try in false false false false false :; do |
| 4747 | . ./conf$$subs.sh || |
| 4748 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 4749 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 4750 | { (exit 1); exit 1; }; } |
| 4751 | |
| 4752 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 4753 | if test $ac_delim_n = $ac_delim_num; then |
| 4754 | break |
| 4755 | elif $ac_last_try; then |
| 4756 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 4757 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 4758 | { (exit 1); exit 1; }; } |
| 4759 | else |
| 4760 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 4761 | fi |
| 4762 | done |
| 4763 | rm -f conf$$subs.sh |
| 4764 | |
| 4765 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4766 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 4767 | _ACEOF |
| 4768 | sed -n ' |
| 4769 | h |
| 4770 | s/^/S["/; s/!.*/"]=/ |
| 4771 | p |
| 4772 | g |
| 4773 | s/^[^!]*!// |
| 4774 | :repl |
| 4775 | t repl |
| 4776 | s/'"$ac_delim"'$// |
| 4777 | t delim |
| 4778 | :nl |
| 4779 | h |
| 4780 | s/\(.\{148\}\).*/\1/ |
| 4781 | t more1 |
| 4782 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 4783 | p |
| 4784 | n |
| 4785 | b repl |
| 4786 | :more1 |
| 4787 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 4788 | p |
| 4789 | g |
| 4790 | s/.\{148\}// |
| 4791 | t nl |
| 4792 | :delim |
| 4793 | h |
| 4794 | s/\(.\{148\}\).*/\1/ |
| 4795 | t more2 |
| 4796 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 4797 | p |
| 4798 | b |
| 4799 | :more2 |
| 4800 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 4801 | p |
| 4802 | g |
| 4803 | s/.\{148\}// |
| 4804 | t delim |
| 4805 | ' <conf$$subs.awk | sed ' |
| 4806 | /^[^""]/{ |
| 4807 | N |
| 4808 | s/\n// |
| 4809 | } |
| 4810 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 4811 | rm -f conf$$subs.awk |
| 4812 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4813 | _ACAWK |
| 4814 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 4815 | for (key in S) S_is_set[key] = 1 |
| 4816 | FS = "" |
| 4817 | |
| 4818 | } |
| 4819 | { |
| 4820 | line = $ 0 |
| 4821 | nfields = split(line, field, "@") |
| 4822 | substed = 0 |
| 4823 | len = length(field[1]) |
| 4824 | for (i = 2; i < nfields; i++) { |
| 4825 | key = field[i] |
| 4826 | keylen = length(key) |
| 4827 | if (S_is_set[key]) { |
| 4828 | value = S[key] |
| 4829 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 4830 | len += length(value) + length(field[++i]) |
| 4831 | substed = 1 |
| 4832 | } else |
| 4833 | len += 1 + keylen |
| 4834 | } |
| 4835 | |
| 4836 | print line |
| 4837 | } |
| 4838 | |
| 4839 | _ACAWK |
| 4840 | _ACEOF |
| 4841 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4842 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 4843 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 4844 | else |
| 4845 | cat |
| 4846 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 4847 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 4848 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 4849 | { (exit 1); exit 1; }; } |
| 4850 | _ACEOF |
| 4851 | |
| 4852 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 4853 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 4854 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 4855 | # (actually we leave an empty line to preserve line numbers). |
| 4856 | if test "x$srcdir" = x.; then |
| 4857 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 4858 | s/:*\$(srcdir):*/:/ |
| 4859 | s/:*\${srcdir}:*/:/ |
| 4860 | s/:*@srcdir@:*/:/ |
| 4861 | s/^\([^=]*=[ ]*\):*/\1/ |
| 4862 | s/:*$// |
| 4863 | s/^[^=]*=[ ]*$// |
| 4864 | }' |
| 4865 | fi |
| 4866 | |
| 4867 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4868 | fi # test -n "$CONFIG_FILES" |
| 4869 | |
| 4870 | |
| 4871 | eval set X " :F $CONFIG_FILES " |
| 4872 | shift |
| 4873 | for ac_tag |
| 4874 | do |
| 4875 | case $ac_tag in |
| 4876 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 4877 | esac |
| 4878 | case $ac_mode$ac_tag in |
| 4879 | :[FHL]*:*);; |
| 4880 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 4881 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
| 4882 | { (exit 1); exit 1; }; };; |
| 4883 | :[FH]-) ac_tag=-:-;; |
| 4884 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 4885 | esac |
| 4886 | ac_save_IFS=$IFS |
| 4887 | IFS=: |
| 4888 | set x $ac_tag |
| 4889 | IFS=$ac_save_IFS |
| 4890 | shift |
| 4891 | ac_file=$1 |
| 4892 | shift |
| 4893 | |
| 4894 | case $ac_mode in |
| 4895 | :L) ac_source=$1;; |
| 4896 | :[FH]) |
| 4897 | ac_file_inputs= |
| 4898 | for ac_f |
| 4899 | do |
| 4900 | case $ac_f in |
| 4901 | -) ac_f="$tmp/stdin";; |
| 4902 | *) # Look for the file first in the build tree, then in the source tree |
| 4903 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 4904 | # because $ac_f cannot contain `:'. |
| 4905 | test -f "$ac_f" || |
| 4906 | case $ac_f in |
| 4907 | [\\/$]*) false;; |
| 4908 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 4909 | esac || |
| 4910 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 4911 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 4912 | { (exit 1); exit 1; }; };; |
| 4913 | esac |
| 4914 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 4915 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
| 4916 | done |
| 4917 | |
| 4918 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 4919 | # use $as_me), people would be surprised to read: |
| 4920 | # /* config.h. Generated by config.status. */ |
| 4921 | configure_input='Generated from '` |
| 4922 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 4923 | `' by configure.' |
| 4924 | if test x"$ac_file" != x-; then |
| 4925 | configure_input="$ac_file. $configure_input" |
| 4926 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 4927 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 4928 | fi |
| 4929 | # Neutralize special characters interpreted by sed in replacement strings. |
| 4930 | case $configure_input in #( |
| 4931 | *\&* | *\|* | *\\* ) |
| 4932 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 4933 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 4934 | *) ac_sed_conf_input=$configure_input;; |
| 4935 | esac |
| 4936 | |
| 4937 | case $ac_tag in |
| 4938 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 4939 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 4940 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 4941 | { (exit 1); exit 1; }; } ;; |
| 4942 | esac |
| 4943 | ;; |
| 4944 | esac |
| 4945 | |
| 4946 | ac_dir=`$as_dirname -- "$ac_file" || |
| 4947 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4948 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 4949 | X"$ac_file" : 'X\(//\)$' \| \ |
| 4950 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 4951 | $as_echo X"$ac_file" | |
| 4952 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 4953 | s//\1/ |
| 4954 | q |
| 4955 | } |
| 4956 | /^X\(\/\/\)[^/].*/{ |
| 4957 | s//\1/ |
| 4958 | q |
| 4959 | } |
| 4960 | /^X\(\/\/\)$/{ |
| 4961 | s//\1/ |
| 4962 | q |
| 4963 | } |
| 4964 | /^X\(\/\).*/{ |
| 4965 | s//\1/ |
| 4966 | q |
| 4967 | } |
| 4968 | s/.*/./; q'` |
| 4969 | { as_dir="$ac_dir" |
| 4970 | case $as_dir in #( |
| 4971 | -*) as_dir=./$as_dir;; |
| 4972 | esac |
| 4973 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 4974 | as_dirs= |
| 4975 | while :; do |
| 4976 | case $as_dir in #( |
| 4977 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 4978 | *) as_qdir=$as_dir;; |
| 4979 | esac |
| 4980 | as_dirs="'$as_qdir' $as_dirs" |
| 4981 | as_dir=`$as_dirname -- "$as_dir" || |
| 4982 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4983 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 4984 | X"$as_dir" : 'X\(//\)$' \| \ |
| 4985 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 4986 | $as_echo X"$as_dir" | |
| 4987 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 4988 | s//\1/ |
| 4989 | q |
| 4990 | } |
| 4991 | /^X\(\/\/\)[^/].*/{ |
| 4992 | s//\1/ |
| 4993 | q |
| 4994 | } |
| 4995 | /^X\(\/\/\)$/{ |
| 4996 | s//\1/ |
| 4997 | q |
| 4998 | } |
| 4999 | /^X\(\/\).*/{ |
| 5000 | s//\1/ |
| 5001 | q |
| 5002 | } |
| 5003 | s/.*/./; q'` |
| 5004 | test -d "$as_dir" && break |
| 5005 | done |
| 5006 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 5007 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 5008 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 5009 | { (exit 1); exit 1; }; }; } |
| 5010 | ac_builddir=. |
| 5011 | |
| 5012 | case "$ac_dir" in |
| 5013 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 5014 | *) |
| 5015 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 5016 | # A ".." for each directory in $ac_dir_suffix. |
| 5017 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 5018 | case $ac_top_builddir_sub in |
| 5019 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 5020 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 5021 | esac ;; |
| 5022 | esac |
| 5023 | ac_abs_top_builddir=$ac_pwd |
| 5024 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 5025 | # for backward compatibility: |
| 5026 | ac_top_builddir=$ac_top_build_prefix |
| 5027 | |
| 5028 | case $srcdir in |
| 5029 | .) # We are building in place. |
| 5030 | ac_srcdir=. |
| 5031 | ac_top_srcdir=$ac_top_builddir_sub |
| 5032 | ac_abs_top_srcdir=$ac_pwd ;; |
| 5033 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 5034 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 5035 | ac_top_srcdir=$srcdir |
| 5036 | ac_abs_top_srcdir=$srcdir ;; |
| 5037 | *) # Relative name. |
| 5038 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 5039 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 5040 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 5041 | esac |
| 5042 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 5043 | |
| 5044 | |
| 5045 | case $ac_mode in |
| 5046 | :F) |
| 5047 | # |
| 5048 | # CONFIG_FILE |
| 5049 | # |
| 5050 | |
| 5051 | case $INSTALL in |
| 5052 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 5053 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 5054 | esac |
| 5055 | _ACEOF |
| 5056 | |
| 5057 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5058 | # If the template does not know about datarootdir, expand it. |
| 5059 | # FIXME: This hack should be removed a few years after 2.60. |
| 5060 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 5061 | |
| 5062 | ac_sed_dataroot=' |
| 5063 | /datarootdir/ { |
| 5064 | p |
| 5065 | q |
| 5066 | } |
| 5067 | /@datadir@/p |
| 5068 | /@docdir@/p |
| 5069 | /@infodir@/p |
| 5070 | /@localedir@/p |
| 5071 | /@mandir@/p |
| 5072 | ' |
| 5073 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 5074 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 5075 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 5076 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 5077 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 5078 | _ACEOF |
| 5079 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5080 | ac_datarootdir_hack=' |
| 5081 | s&@datadir@&$datadir&g |
| 5082 | s&@docdir@&$docdir&g |
| 5083 | s&@infodir@&$infodir&g |
| 5084 | s&@localedir@&$localedir&g |
| 5085 | s&@mandir@&$mandir&g |
| 5086 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 5087 | esac |
| 5088 | _ACEOF |
| 5089 | |
| 5090 | # Neutralize VPATH when `$srcdir' = `.'. |
| 5091 | # Shell code in configure.ac might set extrasub. |
| 5092 | # FIXME: do we really want to maintain this feature? |
| 5093 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5094 | ac_sed_extra="$ac_vpsub |
| 5095 | $extrasub |
| 5096 | _ACEOF |
| 5097 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5098 | :t |
| 5099 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 5100 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 5101 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 5102 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 5103 | s&@srcdir@&$ac_srcdir&;t t |
| 5104 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 5105 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 5106 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 5107 | s&@builddir@&$ac_builddir&;t t |
| 5108 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 5109 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 5110 | s&@INSTALL@&$ac_INSTALL&;t t |
| 5111 | $ac_datarootdir_hack |
| 5112 | " |
| 5113 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 5114 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 5115 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 5116 | { (exit 1); exit 1; }; } |
| 5117 | |
| 5118 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 5119 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 5120 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 5121 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 5122 | which seems to be undefined. Please make sure it is defined." >&5 |
| 5123 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 5124 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 5125 | |
| 5126 | rm -f "$tmp/stdin" |
| 5127 | case $ac_file in |
| 5128 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 5129 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 5130 | esac \ |
| 5131 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 5132 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 5133 | { (exit 1); exit 1; }; } |
| 5134 | ;; |
| 5135 | |
| 5136 | |
| 5137 | |
| 5138 | esac |
| 5139 | |
| 5140 | done # for ac_tag |
| 5141 | |
| 5142 | |
| 5143 | { (exit 0); exit 0; } |
| 5144 | _ACEOF |
| 5145 | chmod +x $CONFIG_STATUS |
| 5146 | ac_clean_files=$ac_clean_files_save |
| 5147 | |
| 5148 | test $ac_write_fail = 0 || |
| 5149 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 5150 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 5151 | { (exit 1); exit 1; }; } |
| 5152 | |
| 5153 | |
| 5154 | # configure is writing to config.log, and then calls config.status. |
| 5155 | # config.status does its own redirection, appending to config.log. |
| 5156 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 5157 | # by configure, so config.status won't be able to write to it; its |
| 5158 | # output is simply discarded. So we exec the FD to /dev/null, |
| 5159 | # effectively closing config.log, so it can be properly (re)opened and |
| 5160 | # appended to by config.status. When coming back to configure, we |
| 5161 | # need to make the FD available again. |
| 5162 | if test "$no_create" != yes; then |
| 5163 | ac_cs_success=: |
| 5164 | ac_config_status_args= |
| 5165 | test "$silent" = yes && |
| 5166 | ac_config_status_args="$ac_config_status_args --quiet" |
| 5167 | exec 5>/dev/null |
| 5168 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 5169 | exec 5>>config.log |
| 5170 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 5171 | # would make configure fail if this is the last instruction. |
| 5172 | $ac_cs_success || { (exit 1); exit 1; } |
| 5173 | fi |
| 5174 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 5175 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 5176 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 5177 | fi |
| 5178 | |