- Timestamp:
- 04/11/08 10:48:46 (15 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Changelog
r119 r120 1 1.X.X 1 2.0.0 2 2 - Fixed a bug in -r/--remove option. Do not display 3 3 pxe filemame menu. … … 40 40 - gb-r1n02 41 41 42 42 Suggested by : Ole Holm Nielsen 43 Implemented by : Bas van der Vlies 44 45 - We do need the check for a C-compiler so remove it from the configure.in 46 and made a new configure 47 Author: Bas van der Vlies 43 48 44 49 1.0.0 -
trunk/configure
r116 r120 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2. 59.3 # Generated by GNU Autoconf 2.61. 4 4 # 5 # Copyright (C) 2003 Free Software Foundation, Inc. 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 6 7 # This configure script is free software; the Free Software Foundation 7 8 # gives unlimited permission to copy, distribute and modify it. … … 10 11 ## --------------------- ## 11 12 12 # Be Bourne compatible 13 # Be more Bourne compatible 14 DUALCASE=1; export DUALCASE # for MKS sh 13 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 16 emulate sh … … 17 19 # is contrary to our usage. Disable this feature. 18 20 alias -g '${1+"$@"}'='"$@"' 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 64 65 # Name of the executable. 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 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 79 33 # Avoid depending upon Character Ranges. 80 34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 97 51 fi 98 52 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53 # Support unset when possible. 54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56 else 57 as_unset=false 58 fi 59 60 61 # IFS 62 # We need space, tab and new line, in precisely that order. Quoting is 63 # there to prevent editors from complaining about space-tab. 64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65 # splitting by setting IFS to empty value.) 66 as_nl=' 67 ' 68 IFS=" "" $as_nl" 69 70 # Find who we are. Look in the path if we contain no directory separator. 71 case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 74 for as_dir in $PATH 111 75 do … … 114 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 79 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 80 IFS=$as_save_IFS 81 82 ;; 83 esac 84 # We did not find ourselves, most probably we were run as `sh COMMAND' 85 # in which case we are not to be found in the path. 86 if test "x$as_myself" = x; then 87 as_myself=$0 88 fi 89 if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 94 # Work around bugs in pre-3.0 UWIN ksh. 95 for as_var in ENV MAIL MAILPATH 96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97 done 98 PS1='$ ' 99 PS2='> ' 100 PS4='+ ' 101 102 # NLS nuisances. 103 for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107 do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123 112 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 113 done 114 115 # Required to use basename. 116 if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119 else 120 as_expr=false 121 fi 122 123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125 else 126 as_basename=false 127 fi 128 129 130 # Name of the executable. 131 as_me=`$as_basename -- "$0" || 132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135 echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150 # CDPATH. 151 $as_unset CDPATH 152 153 154 if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157 else 158 as_have_required=no 159 fi 160 161 if test $as_have_required = yes && (eval ": 162 (as_func_return () { 163 (exit \$1) 164 } 165 as_func_success () { 166 as_func_return 0 167 } 168 as_func_failure () { 169 as_func_return 1 170 } 171 as_func_ret_success () { 172 return 0 173 } 174 as_func_ret_failure () { 175 return 1 176 } 177 178 exitcode=0 179 if as_func_success; then 180 : 181 else 182 exitcode=1 183 echo as_func_success failed. 184 fi 185 186 if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189 fi 190 191 if as_func_ret_success; then 192 : 193 else 194 exitcode=1 195 echo as_func_ret_success failed. 196 fi 197 198 if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201 fi 202 203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205 else 206 exitcode=1 207 echo positional parameters were not saved. 208 fi 209 210 test \$exitcode = 0) || { (exit 1); exit 1; } 211 212 ( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217 ") 2> /dev/null; then 218 : 219 else 220 as_candidate_shells= 130 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH … … 133 224 IFS=$as_save_IFS 134 225 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 226 case $as_dir in 137 227 /*) 138 if ("$as_dir/$as_base" -c ' 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232 done 233 IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247 else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250 esac 251 252 fi 253 254 255 : 256 _ASEOF 257 }; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 (as_func_return () { 278 (exit $1) 279 } 280 as_func_success () { 281 as_func_return 0 282 } 283 as_func_failure () { 284 as_func_return 1 285 } 286 as_func_ret_success () { 287 return 0 288 } 289 as_func_ret_failure () { 290 return 1 291 } 292 293 exitcode=0 294 if as_func_success; then 295 : 296 else 297 exitcode=1 298 echo as_func_success failed. 299 fi 300 301 if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304 fi 305 306 if as_func_ret_success; then 307 : 308 else 309 exitcode=1 310 echo as_func_ret_success failed. 311 fi 312 313 if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316 fi 317 318 if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320 else 321 exitcode=1 322 echo positional parameters were not saved. 323 fi 324 325 test $exitcode = 0) || { (exit 1); exit 1; } 326 327 ( 139 328 as_lineno_1=$LINENO 140 329 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`142 330 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333 _ASEOF 334 }; then 335 break 336 fi 337 338 fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348 fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357 fi 358 359 360 fi 361 362 fi 363 364 365 366 (eval "as_func_return () { 367 (exit \$1) 368 } 369 as_func_success () { 370 as_func_return 0 371 } 372 as_func_failure () { 373 as_func_return 1 374 } 375 as_func_ret_success () { 376 return 0 377 } 378 as_func_ret_failure () { 379 return 1 380 } 381 382 exitcode=0 383 if as_func_success; then 384 : 385 else 386 exitcode=1 387 echo as_func_success failed. 388 fi 389 390 if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393 fi 394 395 if as_func_ret_success; then 396 : 397 else 398 exitcode=1 399 echo as_func_ret_success failed. 400 fi 401 402 if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405 fi 406 407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409 else 410 exitcode=1 411 echo positional parameters were not saved. 412 fi 413 414 test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419 } 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 155 427 156 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 429 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 162 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 165 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 166 447 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 170 450 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 451 s/-\n.*// 173 452 ' >$as_me.lineno && 174 chmod +x $as_me.lineno||453 chmod +x "$as_me.lineno" || 175 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 455 { (exit 1); exit 1; }; } … … 178 457 # Don't try to exec as it changes $[0], causing all sort of problems 179 458 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensi ble to this).181 . ./$as_me.lineno459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 182 461 # Exit status is that of the last command. 183 462 exit … … 185 464 186 465 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468 else 469 as_dirname=false 470 fi 471 472 ECHO_C= ECHO_N= ECHO_T= 473 case `echo -n x` in 474 -n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479 *) 480 ECHO_N='-n';; 192 481 esac 193 482 194 if expr a : '\(a\)' >/dev/null 2>&1; then 483 if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 195 485 as_expr=expr 196 486 else … … 199 489 200 490 rm -f conf$$ conf$$.exe conf$$.file 491 if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493 else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496 fi 201 497 echo >conf$$.file 202 498 if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 207 505 as_ln_s='cp -p' 208 else209 as_ln_s='ln -s'210 fi211 506 elif ln conf$$.file conf$$ 2>/dev/null; then 212 507 as_ln_s=ln … … 214 509 as_ln_s='cp -p' 215 510 fi 216 rm -f conf$$ conf$$.exe conf$$.file 511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512 rmdir conf$$.dir 2>/dev/null 217 513 218 514 if mkdir -p . 2>/dev/null; then … … 223 519 fi 224 520 225 as_executable_p="test -f" 521 if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523 else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541 fi 542 as_executable_p=$as_test_x 226 543 227 544 # Sed expression to map a string onto a valid CPP name. … … 232 549 233 550 234 # IFS 235 # We need space, tab and new line, in precisely that order. 236 as_nl=' 237 ' 238 IFS=" $as_nl" 239 240 # CDPATH. 241 $as_unset CDPATH 242 551 552 exec 7<&0 </dev/null 6>&1 243 553 244 554 # Name of the host. … … 247 557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 558 249 exec 6>&1250 251 559 # 252 560 # Initializations. 253 561 # 254 562 ac_default_prefix=/usr/local 563 ac_clean_files= 255 564 ac_config_libobj_dir=. 565 LIBOBJS= 256 566 cross_compiling=no 257 567 subdirs= … … 259 569 MAKEFLAGS= 260 570 SHELL=${CONFIG_SHELL-/bin/sh} 261 262 # Maximum number of lines to put in a shell here document.263 # This variable seems obsolete. It should probably be removed, and264 # only ac_max_sed_lines should be used.265 : ${ac_max_here_lines=38}266 571 267 572 # Identity of this package. … … 273 578 274 579 ac_unique_file="pxeconfig.in" 275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS pyexecdir PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pkgpyexecdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP DEBUG pxeconfig_conf SYSTEM_PXECONFIG_CONF LIBOBJS LTLIBOBJS' 580 ac_subst_vars='SHELL 581 PATH_SEPARATOR 582 PACKAGE_NAME 583 PACKAGE_TARNAME 584 PACKAGE_VERSION 585 PACKAGE_STRING 586 PACKAGE_BUGREPORT 587 exec_prefix 588 prefix 589 program_transform_name 590 bindir 591 sbindir 592 libexecdir 593 datarootdir 594 datadir 595 sysconfdir 596 sharedstatedir 597 localstatedir 598 includedir 599 oldincludedir 600 docdir 601 infodir 602 htmldir 603 dvidir 604 pdfdir 605 psdir 606 libdir 607 localedir 608 mandir 609 DEFS 610 ECHO_C 611 ECHO_N 612 ECHO_T 613 LIBS 614 build_alias 615 host_alias 616 target_alias 617 pyexecdir 618 PYTHON 619 PYTHON_VERSION 620 PYTHON_PREFIX 621 PYTHON_EXEC_PREFIX 622 PYTHON_PLATFORM 623 pythondir 624 pkgpythondir 625 pkgpyexecdir 626 DEBUG 627 pxeconfig_conf 628 SYSTEM_PXECONFIG_CONF 629 LIBOBJS 630 LTLIBOBJS' 276 631 ac_subst_files='' 632 ac_precious_vars='build_alias 633 host_alias 634 target_alias' 635 277 636 278 637 # Initialize some variables set by options. … … 301 660 # by default will actually change. 302 661 # Use braces instead of parens because sh, perl, etc. also accept them. 662 # (The list follows the same order as the GNU Coding Standards.) 303 663 bindir='${exec_prefix}/bin' 304 664 sbindir='${exec_prefix}/sbin' 305 665 libexecdir='${exec_prefix}/libexec' 306 datadir='${prefix}/share' 666 datarootdir='${prefix}/share' 667 datadir='${datarootdir}' 307 668 sysconfdir='${prefix}/etc' 308 669 sharedstatedir='${prefix}/com' 309 670 localstatedir='${prefix}/var' 310 libdir='${exec_prefix}/lib'311 671 includedir='${prefix}/include' 312 672 oldincludedir='/usr/include' 313 infodir='${prefix}/info' 314 mandir='${prefix}/man' 673 docdir='${datarootdir}/doc/${PACKAGE}' 674 infodir='${datarootdir}/info' 675 htmldir='${docdir}' 676 dvidir='${docdir}' 677 pdfdir='${docdir}' 678 psdir='${docdir}' 679 libdir='${exec_prefix}/lib' 680 localedir='${datarootdir}/locale' 681 mandir='${datarootdir}/man' 315 682 316 683 ac_prev= 684 ac_dashdash= 317 685 for ac_option 318 686 do 319 687 # If the previous option needs an argument, assign it. 320 688 if test -n "$ac_prev"; then 321 eval "$ac_prev=\$ac_option"689 eval $ac_prev=\$ac_option 322 690 ac_prev= 323 691 continue 324 692 fi 325 693 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 694 case $ac_option in 695 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 696 *) ac_optarg=yes ;; 697 esac 327 698 328 699 # Accept the important Cygnus configure options, so we can diagnose typos. 329 700 330 case $ac_option in 701 case $ac_dashdash$ac_option in 702 --) 703 ac_dashdash=yes ;; 331 704 332 705 -bindir | --bindir | --bindi | --bind | --bin | --bi) … … 350 723 cache_file=config.cache ;; 351 724 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)725 -datadir | --datadir | --datadi | --datad) 353 726 ac_prev=datadir ;; 354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 355 | --da=*) 727 -datadir=* | --datadir=* | --datadi=* | --datad=*) 356 728 datadir=$ac_optarg ;; 729 730 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 731 | --dataroo | --dataro | --datar) 732 ac_prev=datarootdir ;; 733 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 734 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 735 datarootdir=$ac_optarg ;; 357 736 358 737 -disable-* | --disable-*) 359 738 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 360 739 # Reject names that are not valid shell variable names. 361 expr "x$ac_feature" : ".*[^- _$as_cr_alnum]" >/dev/null &&740 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 362 741 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 363 742 { (exit 1); exit 1; }; } 364 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 365 eval "enable_$ac_feature=no" ;; 743 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 744 eval enable_$ac_feature=no ;; 745 746 -docdir | --docdir | --docdi | --doc | --do) 747 ac_prev=docdir ;; 748 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 749 docdir=$ac_optarg ;; 750 751 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 752 ac_prev=dvidir ;; 753 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 754 dvidir=$ac_optarg ;; 366 755 367 756 -enable-* | --enable-*) 368 757 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 369 758 # Reject names that are not valid shell variable names. 370 expr "x$ac_feature" : ".*[^- _$as_cr_alnum]" >/dev/null &&759 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 371 760 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 372 761 { (exit 1); exit 1; }; } 373 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 374 case $ac_option in 375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 376 *) ac_optarg=yes ;; 377 esac 378 eval "enable_$ac_feature='$ac_optarg'" ;; 762 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 763 eval enable_$ac_feature=\$ac_optarg ;; 379 764 380 765 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 403 788 host_alias=$ac_optarg ;; 404 789 790 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 791 ac_prev=htmldir ;; 792 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 793 | --ht=*) 794 htmldir=$ac_optarg ;; 795 405 796 -includedir | --includedir | --includedi | --included | --include \ 406 797 | --includ | --inclu | --incl | --inc) … … 427 818 libexecdir=$ac_optarg ;; 428 819 820 -localedir | --localedir | --localedi | --localed | --locale) 821 ac_prev=localedir ;; 822 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 823 localedir=$ac_optarg ;; 824 429 825 -localstatedir | --localstatedir | --localstatedi | --localstated \ 430 | --localstate | --localstat | --localsta | --localst \ 431 | --locals | --local | --loca | --loc | --lo) 826 | --localstate | --localstat | --localsta | --localst | --locals) 432 827 ac_prev=localstatedir ;; 433 828 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 829 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 436 830 localstatedir=$ac_optarg ;; 437 831 … … 498 892 program_transform_name=$ac_optarg ;; 499 893 894 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 895 ac_prev=pdfdir ;; 896 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 897 pdfdir=$ac_optarg ;; 898 899 -psdir | --psdir | --psdi | --psd | --ps) 900 ac_prev=psdir ;; 901 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 902 psdir=$ac_optarg ;; 903 500 904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 501 905 | -silent | --silent | --silen | --sile | --sil) … … 550 954 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 551 955 # Reject names that are not valid shell variable names. 552 expr "x$ac_package" : ".*[^- _$as_cr_alnum]" >/dev/null &&956 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 553 957 { echo "$as_me: error: invalid package name: $ac_package" >&2 554 958 { (exit 1); exit 1; }; } 555 ac_package=`echo $ac_package| sed 's/-/_/g'` 556 case $ac_option in 557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 558 *) ac_optarg=yes ;; 559 esac 560 eval "with_$ac_package='$ac_optarg'" ;; 959 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 960 eval with_$ac_package=\$ac_optarg ;; 561 961 562 962 -without-* | --without-*) 563 963 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 564 964 # Reject names that are not valid shell variable names. 565 expr "x$ac_package" : ".*[^- _$as_cr_alnum]" >/dev/null &&965 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 566 966 { echo "$as_me: error: invalid package name: $ac_package" >&2 567 967 { (exit 1); exit 1; }; } 568 ac_package=`echo $ac_package | sed 's/ -/_/g'`569 eval "with_$ac_package=no";;968 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 969 eval with_$ac_package=no ;; 570 970 571 971 --x) … … 598 998 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 599 999 { (exit 1); exit 1; }; } 600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 601 eval "$ac_envvar='$ac_optarg'" 1000 eval $ac_envvar=\$ac_optarg 602 1001 export $ac_envvar ;; 603 1002 … … 619 1018 fi 620 1019 621 # Be sure to have absolute paths. 622 for ac_var in exec_prefix prefix 1020 # Be sure to have absolute directory names. 1021 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1022 datadir sysconfdir sharedstatedir localstatedir includedir \ 1023 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1024 libdir localedir mandir 623 1025 do 624 eval ac_val= $`echo $ac_var`1026 eval ac_val=\$$ac_var 625 1027 case $ac_val in 626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 628 { (exit 1); exit 1; }; };; 1028 [\\/$]* | ?:[\\/]* ) continue;; 1029 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 629 1030 esac 630 done 631 632 # Be sure to have absolute paths. 633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 634 localstatedir libdir includedir oldincludedir infodir mandir 635 do 636 eval ac_val=$`echo $ac_var` 637 case $ac_val in 638 [\\/$]* | ?:[\\/]* ) ;; 639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 640 { (exit 1); exit 1; }; };; 641 esac 1031 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1032 { (exit 1); exit 1; }; } 642 1033 done 643 1034 … … 666 1057 667 1058 1059 ac_pwd=`pwd` && test -n "$ac_pwd" && 1060 ac_ls_di=`ls -di .` && 1061 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1062 { echo "$as_me: error: Working directory cannot be determined" >&2 1063 { (exit 1); exit 1; }; } 1064 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1065 { echo "$as_me: error: pwd does not report name of working directory" >&2 1066 { (exit 1); exit 1; }; } 1067 1068 668 1069 # Find the source files, if location was not specified. 669 1070 if test -z "$srcdir"; then 670 1071 ac_srcdir_defaulted=yes 671 # Try the directory containing this script, then its parent.672 ac_confdir=` (dirname "$0") 2>/dev/null||1072 # Try the directory containing this script, then the parent directory. 1073 ac_confdir=`$as_dirname -- "$0" || 673 1074 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 674 1075 X"$0" : 'X\(//\)[^/]' \| \ 675 1076 X"$0" : 'X\(//\)$' \| \ 676 X"$0" : 'X\(/\)' \| \ 677 . : '\(.\)' 2>/dev/null || 1077 X"$0" : 'X\(/\)' \| . 2>/dev/null || 678 1078 echo X"$0" | 679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 680 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 681 /^X\(\/\/\)$/{ s//\1/; q; } 682 /^X\(\/\).*/{ s//\1/; q; } 683 s/.*/./; q'` 1079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1080 s//\1/ 1081 q 1082 } 1083 /^X\(\/\/\)[^/].*/{ 1084 s//\1/ 1085 q 1086 } 1087 /^X\(\/\/\)$/{ 1088 s//\1/ 1089 q 1090 } 1091 /^X\(\/\).*/{ 1092 s//\1/ 1093 q 1094 } 1095 s/.*/./; q'` 684 1096 srcdir=$ac_confdir 685 if test ! -r $srcdir/$ac_unique_file; then1097 if test ! -r "$srcdir/$ac_unique_file"; then 686 1098 srcdir=.. 687 1099 fi … … 689 1101 ac_srcdir_defaulted=no 690 1102 fi 691 if test ! -r $srcdir/$ac_unique_file; then692 if test "$ac_srcdir_defaulted" = yes; then693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&21103 if test ! -r "$srcdir/$ac_unique_file"; then 1104 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1105 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 694 1106 { (exit 1); exit 1; }; } 695 else 696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1107 fi 1108 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1109 ac_abs_confdir=`( 1110 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 697 1111 { (exit 1); exit 1; }; } 698 fi 699 fi 700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 702 { (exit 1); exit 1; }; } 703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 704 ac_env_build_alias_set=${build_alias+set} 705 ac_env_build_alias_value=$build_alias 706 ac_cv_env_build_alias_set=${build_alias+set} 707 ac_cv_env_build_alias_value=$build_alias 708 ac_env_host_alias_set=${host_alias+set} 709 ac_env_host_alias_value=$host_alias 710 ac_cv_env_host_alias_set=${host_alias+set} 711 ac_cv_env_host_alias_value=$host_alias 712 ac_env_target_alias_set=${target_alias+set} 713 ac_env_target_alias_value=$target_alias 714 ac_cv_env_target_alias_set=${target_alias+set} 715 ac_cv_env_target_alias_value=$target_alias 716 ac_env_CC_set=${CC+set} 717 ac_env_CC_value=$CC 718 ac_cv_env_CC_set=${CC+set} 719 ac_cv_env_CC_value=$CC 720 ac_env_CFLAGS_set=${CFLAGS+set} 721 ac_env_CFLAGS_value=$CFLAGS 722 ac_cv_env_CFLAGS_set=${CFLAGS+set} 723 ac_cv_env_CFLAGS_value=$CFLAGS 724 ac_env_LDFLAGS_set=${LDFLAGS+set} 725 ac_env_LDFLAGS_value=$LDFLAGS 726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 727 ac_cv_env_LDFLAGS_value=$LDFLAGS 728 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 729 ac_env_CPPFLAGS_value=$CPPFLAGS 730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 732 ac_env_CPP_set=${CPP+set} 733 ac_env_CPP_value=$CPP 734 ac_cv_env_CPP_set=${CPP+set} 735 ac_cv_env_CPP_value=$CPP 1112 pwd)` 1113 # When building in place, set srcdir=. 1114 if test "$ac_abs_confdir" = "$ac_pwd"; then 1115 srcdir=. 1116 fi 1117 # Remove unnecessary trailing slashes from srcdir. 1118 # Double slashes in file names in object file debugging info 1119 # mess up M-x gdb in Emacs. 1120 case $srcdir in 1121 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1122 esac 1123 for ac_var in $ac_precious_vars; do 1124 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1125 eval ac_env_${ac_var}_value=\$${ac_var} 1126 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1127 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1128 done 736 1129 737 1130 # … … 762 1155 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 763 1156 764 _ACEOF765 766 cat <<_ACEOF767 1157 Installation directories: 768 1158 --prefix=PREFIX install architecture-independent files in PREFIX … … 782 1172 --sbindir=DIR system admin executables [EPREFIX/sbin] 783 1173 --libexecdir=DIR program executables [EPREFIX/libexec] 784 --datadir=DIR read-only architecture-independent data [PREFIX/share]785 1174 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 786 1175 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] … … 789 1178 --includedir=DIR C header files [PREFIX/include] 790 1179 --oldincludedir=DIR C header files for non-gcc [/usr/include] 791 --infodir=DIR info documentation [PREFIX/info] 792 --mandir=DIR man documentation [PREFIX/man] 1180 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1181 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1182 --infodir=DIR info documentation [DATAROOTDIR/info] 1183 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1184 --mandir=DIR man documentation [DATAROOTDIR/man] 1185 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1186 --htmldir=DIR html documentation [DOCDIR] 1187 --dvidir=DIR dvi documentation [DOCDIR] 1188 --pdfdir=DIR pdf documentation [DOCDIR] 1189 --psdir=DIR ps documentation [DOCDIR] 793 1190 _ACEOF 794 1191 … … 801 1198 cat <<\_ACEOF 802 1199 803 Some influential environment variables: 804 CC C compiler command 805 CFLAGS C compiler flags 806 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 807 nonstandard directory <lib dir> 808 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 809 headers in a nonstandard directory <include dir> 810 CPP C preprocessor 811 812 Use these variables to override the choices made by `configure' or to help 813 it to find libraries and programs with nonstandard names/locations. 814 815 _ACEOF 1200 _ACEOF 1201 ac_status=$? 816 1202 fi 817 1203 818 1204 if test "$ac_init_help" = "recursive"; then 819 1205 # If there are subdirs, report their specific --help. 820 ac_popdir=`pwd`821 1206 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 822 test -d $ac_dir|| continue1207 test -d "$ac_dir" || continue 823 1208 ac_builddir=. 824 1209 825 if test "$ac_dir" != .; then 1210 case "$ac_dir" in 1211 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1212 *) 826 1213 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 827 # A "../" for each directory in $ac_dir_suffix. 828 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 829 else 830 ac_dir_suffix= ac_top_builddir= 831 fi 1214 # A ".." for each directory in $ac_dir_suffix. 1215 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1216 case $ac_top_builddir_sub in 1217 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1218 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1219 esac ;; 1220 esac 1221 ac_abs_top_builddir=$ac_pwd 1222 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1223 # for backward compatibility: 1224 ac_top_builddir=$ac_top_build_prefix 832 1225 833 1226 case $srcdir in 834 .) # No --srcdir option.We are building in place.1227 .) # We are building in place. 835 1228 ac_srcdir=. 836 if test -z "$ac_top_builddir"; then 837 ac_top_srcdir=. 838 else 839 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 840 fi ;; 841 [\\/]* | ?:[\\/]* ) # Absolute path. 1229 ac_top_srcdir=$ac_top_builddir_sub 1230 ac_abs_top_srcdir=$ac_pwd ;; 1231 [\\/]* | ?:[\\/]* ) # Absolute name. 842 1232 ac_srcdir=$srcdir$ac_dir_suffix; 843 ac_top_srcdir=$srcdir ;; 844 *) # Relative path. 845 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 846 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1233 ac_top_srcdir=$srcdir 1234 ac_abs_top_srcdir=$srcdir ;; 1235 *) # Relative name. 1236 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1237 ac_top_srcdir=$ac_top_build_prefix$srcdir 1238 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 847 1239 esac 848 849 # Do not use `cd foo && pwd` to compute absolute paths, because 850 # the directories may not exist. 851 case `pwd` in 852 .) ac_abs_builddir="$ac_dir";; 853 *) 854 case "$ac_dir" in 855 .) ac_abs_builddir=`pwd`;; 856 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 857 *) ac_abs_builddir=`pwd`/"$ac_dir";; 858 esac;; 859 esac 860 case $ac_abs_builddir in 861 .) ac_abs_top_builddir=${ac_top_builddir}.;; 862 *) 863 case ${ac_top_builddir}. in 864 .) ac_abs_top_builddir=$ac_abs_builddir;; 865 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 866 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 867 esac;; 868 esac 869 case $ac_abs_builddir in 870 .) ac_abs_srcdir=$ac_srcdir;; 871 *) 872 case $ac_srcdir in 873 .) ac_abs_srcdir=$ac_abs_builddir;; 874 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 875 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 876 esac;; 877 esac 878 case $ac_abs_builddir in 879 .) ac_abs_top_srcdir=$ac_top_srcdir;; 880 *) 881 case $ac_top_srcdir in 882 .) ac_abs_top_srcdir=$ac_abs_builddir;; 883 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 884 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 885 esac;; 886 esac 887 888 cd $ac_dir 889 # Check for guested configure; otherwise get Cygnus style configure. 890 if test -f $ac_srcdir/configure.gnu; then 891 echo 892 $SHELL $ac_srcdir/configure.gnu --help=recursive 893 elif test -f $ac_srcdir/configure; then 894 echo 895 $SHELL $ac_srcdir/configure --help=recursive 896 elif test -f $ac_srcdir/configure.ac || 897 test -f $ac_srcdir/configure.in; then 898 echo 899 $ac_configure --help 1240 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1241 1242 cd "$ac_dir" || { ac_status=$?; continue; } 1243 # Check for guested configure. 1244 if test -f "$ac_srcdir/configure.gnu"; then 1245 echo && 1246 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1247 elif test -f "$ac_srcdir/configure"; then 1248 echo && 1249 $SHELL "$ac_srcdir/configure" --help=recursive 900 1250 else 901 1251 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 902 fi 903 cd "$ac_p opdir"1252 fi || ac_status=$? 1253 cd "$ac_pwd" || { ac_status=$?; break; } 904 1254 done 905 1255 fi 906 1256 907 test -n "$ac_init_help" && exit 01257 test -n "$ac_init_help" && exit $ac_status 908 1258 if $ac_init_version; then 909 1259 cat <<\_ACEOF 910 911 Copyright (C) 2003 Free Software Foundation, Inc. 1260 configure 1261 generated by GNU Autoconf 2.61 1262 1263 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1264 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 912 1265 This configure script is free software; the Free Software Foundation 913 1266 gives unlimited permission to copy, distribute and modify it. 914 1267 _ACEOF 915 exit 0 916 fi 917 exec 5>config.log 918 cat >&5 <<_ACEOF 1268 exit 1269 fi 1270 cat >config.log <<_ACEOF 919 1271 This file contains any messages produced by compilers while 920 1272 running configure, to aid debugging if configure makes a mistake. 921 1273 922 1274 It was created by $as_me, which was 923 generated by GNU Autoconf 2. 59. Invocation command line was1275 generated by GNU Autoconf 2.61. Invocation command line was 924 1276 925 1277 $ $0 $@ 926 1278 927 1279 _ACEOF 1280 exec 5>>config.log 928 1281 { 929 1282 cat <<_ASUNAME … … 944 1297 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 945 1298 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 946 hostinfo = `(hostinfo) 2>/dev/null|| echo unknown`1299 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 947 1300 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 948 1301 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` … … 958 1311 echo "PATH: $as_dir" 959 1312 done 1313 IFS=$as_save_IFS 960 1314 961 1315 } >&5 … … 979 1333 ac_configure_args0= 980 1334 ac_configure_args1= 981 ac_sep=982 1335 ac_must_keep_next=false 983 1336 for ac_pass in 1 2 … … 990 1343 | -silent | --silent | --silen | --sile | --sil) 991 1344 continue ;; 992 * " "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)1345 *\'*) 993 1346 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 994 1347 esac … … 1012 1365 esac 1013 1366 fi 1014 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1015 # Get rid of the leading space. 1016 ac_sep=" " 1367 ac_configure_args="$ac_configure_args '$ac_arg'" 1017 1368 ;; 1018 1369 esac … … 1025 1376 # config.log. We remove comments because anyway the quotes in there 1026 1377 # would cause problems or look ugly. 1027 # WARNING: Be sure not to use single quotes in there, as some shells,1028 # such as our DU 5.0 friend, will then `close' the trap.1378 # WARNING: Use '\'' to represent an apostrophe within the trap. 1379 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1029 1380 trap 'exit_status=$? 1030 1381 # Save into config.log some information that might help in debugging. … … 1039 1390 echo 1040 1391 # The following way of writing the cache mishandles newlines in values, 1041 { 1392 ( 1393 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1394 eval ac_val=\$$ac_var 1395 case $ac_val in #( 1396 *${as_nl}*) 1397 case $ac_var in #( 1398 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1399 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1400 esac 1401 case $ac_var in #( 1402 _ | IFS | as_nl) ;; #( 1403 *) $as_unset $ac_var ;; 1404 esac ;; 1405 esac 1406 done 1042 1407 (set) 2>&1 | 1043 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in1044 * ac_space=\ *)1408 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1409 *${as_nl}ac_space=\ *) 1045 1410 sed -n \ 1046 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1411 "s/'\''/'\''\\\\'\'''\''/g; 1412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1413 ;; #( 1414 *) 1415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1048 1416 ;; 1049 *) 1050 sed -n \ 1051 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1052 ;; 1053 esac; 1054 } 1417 esac | 1418 sort 1419 ) 1055 1420 echo 1056 1421 … … 1063 1428 for ac_var in $ac_subst_vars 1064 1429 do 1065 eval ac_val=$`echo $ac_var` 1066 echo "$ac_var='"'"'$ac_val'"'"'" 1430 eval ac_val=\$$ac_var 1431 case $ac_val in 1432 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1433 esac 1434 echo "$ac_var='\''$ac_val'\''" 1067 1435 done | sort 1068 1436 echo … … 1070 1438 if test -n "$ac_subst_files"; then 1071 1439 cat <<\_ASBOX 1072 ## ------------- ##1073 ## Output files. ##1074 ## ------------- ##1440 ## ------------------- ## 1441 ## File substitutions. ## 1442 ## ------------------- ## 1075 1443 _ASBOX 1076 1444 echo 1077 1445 for ac_var in $ac_subst_files 1078 1446 do 1079 eval ac_val=$`echo $ac_var` 1080 echo "$ac_var='"'"'$ac_val'"'"'" 1447 eval ac_val=\$$ac_var 1448 case $ac_val in 1449 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1450 esac 1451 echo "$ac_var='\''$ac_val'\''" 1081 1452 done | sort 1082 1453 echo … … 1090 1461 _ASBOX 1091 1462 echo 1092 sed "/^$/d" confdefs.h | sort1463 cat confdefs.h 1093 1464 echo 1094 1465 fi … … 1097 1468 echo "$as_me: exit $exit_status" 1098 1469 } >&5 1099 rm -f core *.core &&1100 rm -rfconftest* confdefs* conf$$* $ac_clean_files &&1470 rm -f core *.core core.conftest.* && 1471 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1101 1472 exit $exit_status 1102 1473 ' 0 1103 1474 for ac_signal in 1 2 13 15; do 1104 1475 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal … … 1107 1478 1108 1479 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1109 rm -rf conftest* confdefs.h 1110 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1111 echo >confdefs.h 1480 rm -f -r conftest* confdefs.h 1112 1481 1113 1482 # Predefined preprocessor variables. … … 1140 1509 # Let the site file select an alternate cache file if it wants to. 1141 1510 # Prefer explicitly selected file to automatically selected ones. 1142 if test -z "$CONFIG_SITE"; then 1143 if test "x$prefix" != xNONE; then 1144 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1145 else 1146 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1147 fi 1148 fi 1149 for ac_site_file in $CONFIG_SITE; do 1511 if test -n "$CONFIG_SITE"; then 1512 set x "$CONFIG_SITE" 1513 elif test "x$prefix" != xNONE; then 1514 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1515 else 1516 set x "$ac_default_prefix/share/config.site" \ 1517 "$ac_default_prefix/etc/config.site" 1518 fi 1519 shift 1520 for ac_site_file 1521 do 1150 1522 if test -r "$ac_site_file"; then 1151 1523 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 … … 1163 1535 echo "$as_me: loading cache $cache_file" >&6;} 1164 1536 case $cache_file in 1165 [\\/]* | ?:[\\/]* ) . $cache_file;;1166 *) . ./$cache_file;;1537 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1538 *) . "./$cache_file";; 1167 1539 esac 1168 1540 fi … … 1176 1548 # value. 1177 1549 ac_cache_corrupted=false 1178 for ac_var in `(set) 2>&1 | 1179 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1550 for ac_var in $ac_precious_vars; do 1180 1551 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1181 1552 eval ac_new_set=\$ac_env_${ac_var}_set 1182 eval ac_old_val= "\$ac_cv_env_${ac_var}_value"1183 eval ac_new_val= "\$ac_env_${ac_var}_value"1553 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1554 eval ac_new_val=\$ac_env_${ac_var}_value 1184 1555 case $ac_old_set,$ac_new_set in 1185 1556 set,) … … 1206 1577 if test "$ac_new_set" = set; then 1207 1578 case $ac_new_val in 1208 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1209 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1579 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1210 1580 *) ac_arg=$ac_var=$ac_new_val ;; 1211 1581 esac … … 1224 1594 fi 1225 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1226 1612 ac_ext=c 1227 1613 ac_cpp='$CPP $CPPFLAGS' … … 1229 1615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1230 1616 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1617 1248 1618 … … 1265 1635 # Extract the first word of "$ac_prog", so it can be a program name with args. 1266 1636 set dummy $ac_prog; ac_word=$2 1267 echo "$as_me:$LINENO: checking for $ac_word" >&51268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1637 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1269 1639 if test "${ac_cv_path_PYTHON+set}" = set; then 1270 1640 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1281 1651 test -z "$as_dir" && as_dir=. 1282 1652 for ac_exec_ext in '' $ac_executable_extensions; do 1283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1284 1654 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 1285 1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1288 1658 done 1289 1659 done 1660 IFS=$as_save_IFS 1290 1661 1291 1662 ;; … … 1293 1664 fi 1294 1665 PYTHON=$ac_cv_path_PYTHON 1295 1296 1666 if test -n "$PYTHON"; then 1297 echo "$as_me:$LINENO: result: $PYTHON" >&5 1298 echo "${ECHO_T}$PYTHON" >&6 1299 else 1300 echo "$as_me:$LINENO: result: no" >&5 1301 echo "${ECHO_T}no" >&6 1302 fi 1667 { echo "$as_me:$LINENO: result: $PYTHON" >&5 1668 echo "${ECHO_T}$PYTHON" >&6; } 1669 else 1670 { echo "$as_me:$LINENO: result: no" >&5 1671 echo "${ECHO_T}no" >&6; } 1672 fi 1673 1303 1674 1304 1675 test -n "$PYTHON" && break … … 1317 1688 1318 1689 1319 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&51320 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6 1690 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5 1691 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; } 1321 1692 if test "${am_cv_python_version+set}" = set; then 1322 1693 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1324 1695 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"` 1325 1696 fi 1326 echo "$as_me:$LINENO: result: $am_cv_python_version" >&51327 echo "${ECHO_T}$am_cv_python_version" >&6 1697 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5 1698 echo "${ECHO_T}$am_cv_python_version" >&6; } 1328 1699 PYTHON_VERSION=$am_cv_python_version 1329 1700 … … 1336 1707 1337 1708 1338 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&51339 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6 1709 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5 1710 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; } 1340 1711 if test "${am_cv_python_platform+set}" = set; then 1341 1712 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1343 1714 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"` 1344 1715 fi 1345 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&51346 echo "${ECHO_T}$am_cv_python_platform" >&6 1716 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5 1717 echo "${ECHO_T}$am_cv_python_platform" >&6; } 1347 1718 PYTHON_PLATFORM=$am_cv_python_platform 1348 1719 … … 1350 1721 1351 1722 1352 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&51353 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6 1723 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5 1724 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; } 1354 1725 if test "${am_cv_python_pythondir+set}" = set; then 1355 1726 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1358 1729 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` 1359 1730 fi 1360 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&51361 echo "${ECHO_T}$am_cv_python_pythondir" >&6 1731 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5 1732 echo "${ECHO_T}$am_cv_python_pythondir" >&6; } 1362 1733 pythondir=$am_cv_python_pythondir 1363 1734 … … 1367 1738 1368 1739 1369 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&51370 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6 1740 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5 1741 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; } 1371 1742 if test "${am_cv_python_pyexecdir+set}" = set; then 1372 1743 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1375 1746 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"` 1376 1747 fi 1377 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&51378 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6 1748 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5 1749 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; } 1379 1750 pyexecdir=$am_cv_python_pyexecdir 1380 1751 … … 1388 1759 1389 1760 1390 ac_ext=c 1391 ac_cpp='$CPP $CPPFLAGS' 1392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1394 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1395 if test -n "$ac_tool_prefix"; then 1396 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1397 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1398 echo "$as_me:$LINENO: checking for $ac_word" >&5 1399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1400 if test "${ac_cv_prog_CC+set}" = set; then 1401 echo $ECHO_N "(cached) $ECHO_C" >&6 1402 else 1403 if test -n "$CC"; then 1404 ac_cv_prog_CC="$CC" # Let the user override the test. 1405 else 1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1407 for as_dir in $PATH 1408 do 1409 IFS=$as_save_IFS 1410 test -z "$as_dir" && as_dir=. 1411 for ac_exec_ext in '' $ac_executable_extensions; do 1412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1413 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1415 break 2 1416 fi 1417 done 1418 done 1419 1420 fi 1421 fi 1422 CC=$ac_cv_prog_CC 1423 if test -n "$CC"; then 1424 echo "$as_me:$LINENO: result: $CC" >&5 1425 echo "${ECHO_T}$CC" >&6 1426 else 1427 echo "$as_me:$LINENO: result: no" >&5 1428 echo "${ECHO_T}no" >&6 1429 fi 1430 1431 fi 1432 if test -z "$ac_cv_prog_CC"; then 1433 ac_ct_CC=$CC 1434 # Extract the first word of "gcc", so it can be a program name with args. 1435 set dummy gcc; ac_word=$2 1436 echo "$as_me:$LINENO: checking for $ac_word" >&5 1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1439 echo $ECHO_N "(cached) $ECHO_C" >&6 1440 else 1441 if test -n "$ac_ct_CC"; then 1442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1443 else 1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1445 for as_dir in $PATH 1446 do 1447 IFS=$as_save_IFS 1448 test -z "$as_dir" && as_dir=. 1449 for ac_exec_ext in '' $ac_executable_extensions; do 1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1451 ac_cv_prog_ac_ct_CC="gcc" 1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1453 break 2 1454 fi 1455 done 1456 done 1457 1458 fi 1459 fi 1460 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1461 if test -n "$ac_ct_CC"; then 1462 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1463 echo "${ECHO_T}$ac_ct_CC" >&6 1464 else 1465 echo "$as_me:$LINENO: result: no" >&5 1466 echo "${ECHO_T}no" >&6 1467 fi 1468 1469 CC=$ac_ct_CC 1470 else 1471 CC="$ac_cv_prog_CC" 1472 fi 1473 1474 if test -z "$CC"; then 1475 if test -n "$ac_tool_prefix"; then 1476 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1477 set dummy ${ac_tool_prefix}cc; ac_word=$2 1478 echo "$as_me:$LINENO: checking for $ac_word" >&5 1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1480 if test "${ac_cv_prog_CC+set}" = set; then 1481 echo $ECHO_N "(cached) $ECHO_C" >&6 1482 else 1483 if test -n "$CC"; then 1484 ac_cv_prog_CC="$CC" # Let the user override the test. 1485 else 1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1487 for as_dir in $PATH 1488 do 1489 IFS=$as_save_IFS 1490 test -z "$as_dir" && as_dir=. 1491 for ac_exec_ext in '' $ac_executable_extensions; do 1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1493 ac_cv_prog_CC="${ac_tool_prefix}cc" 1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1495 break 2 1496 fi 1497 done 1498 done 1499 1500 fi 1501 fi 1502 CC=$ac_cv_prog_CC 1503 if test -n "$CC"; then 1504 echo "$as_me:$LINENO: result: $CC" >&5 1505 echo "${ECHO_T}$CC" >&6 1506 else 1507 echo "$as_me:$LINENO: result: no" >&5 1508 echo "${ECHO_T}no" >&6 1509 fi 1510 1511 fi 1512 if test -z "$ac_cv_prog_CC"; then 1513 ac_ct_CC=$CC 1514 # Extract the first word of "cc", so it can be a program name with args. 1515 set dummy cc; ac_word=$2 1516 echo "$as_me:$LINENO: checking for $ac_word" >&5 1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1519 echo $ECHO_N "(cached) $ECHO_C" >&6 1520 else 1521 if test -n "$ac_ct_CC"; then 1522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1523 else 1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1525 for as_dir in $PATH 1526 do 1527 IFS=$as_save_IFS 1528 test -z "$as_dir" && as_dir=. 1529 for ac_exec_ext in '' $ac_executable_extensions; do 1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1531 ac_cv_prog_ac_ct_CC="cc" 1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1533 break 2 1534 fi 1535 done 1536 done 1537 1538 fi 1539 fi 1540 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1541 if test -n "$ac_ct_CC"; then 1542 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1543 echo "${ECHO_T}$ac_ct_CC" >&6 1544 else 1545 echo "$as_me:$LINENO: result: no" >&5 1546 echo "${ECHO_T}no" >&6 1547 fi 1548 1549 CC=$ac_ct_CC 1550 else 1551 CC="$ac_cv_prog_CC" 1552 fi 1553 1554 fi 1555 if test -z "$CC"; then 1556 # Extract the first word of "cc", so it can be a program name with args. 1557 set dummy cc; ac_word=$2 1558 echo "$as_me:$LINENO: checking for $ac_word" >&5 1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1560 if test "${ac_cv_prog_CC+set}" = set; then 1561 echo $ECHO_N "(cached) $ECHO_C" >&6 1562 else 1563 if test -n "$CC"; then 1564 ac_cv_prog_CC="$CC" # Let the user override the test. 1565 else 1566 ac_prog_rejected=no 1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1568 for as_dir in $PATH 1569 do 1570 IFS=$as_save_IFS 1571 test -z "$as_dir" && as_dir=. 1572 for ac_exec_ext in '' $ac_executable_extensions; do 1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1575 ac_prog_rejected=yes 1576 continue 1577 fi 1578 ac_cv_prog_CC="cc" 1579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1580 break 2 1581 fi 1582 done 1583 done 1584 1585 if test $ac_prog_rejected = yes; then 1586 # We found a bogon in the path, so make sure we never use it. 1587 set dummy $ac_cv_prog_CC 1588 shift 1589 if test $# != 0; then 1590 # We chose a different compiler from the bogus one. 1591 # However, it has the same basename, so the bogon will be chosen 1592 # first if we set CC to just the basename; use the full file name. 1593 shift 1594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1595 fi 1596 fi 1597 fi 1598 fi 1599 CC=$ac_cv_prog_CC 1600 if test -n "$CC"; then 1601 echo "$as_me:$LINENO: result: $CC" >&5 1602 echo "${ECHO_T}$CC" >&6 1603 else 1604 echo "$as_me:$LINENO: result: no" >&5 1605 echo "${ECHO_T}no" >&6 1606 fi 1607 1608 fi 1609 if test -z "$CC"; then 1610 if test -n "$ac_tool_prefix"; then 1611 for ac_prog in cl 1612 do 1613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1615 echo "$as_me:$LINENO: checking for $ac_word" >&5 1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1617 if test "${ac_cv_prog_CC+set}" = set; then 1618 echo $ECHO_N "(cached) $ECHO_C" >&6 1619 else 1620 if test -n "$CC"; then 1621 ac_cv_prog_CC="$CC" # Let the user override the test. 1622 else 1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1624 for as_dir in $PATH 1625 do 1626 IFS=$as_save_IFS 1627 test -z "$as_dir" && as_dir=. 1628 for ac_exec_ext in '' $ac_executable_extensions; do 1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1632 break 2 1633 fi 1634 done 1635 done 1636 1637 fi 1638 fi 1639 CC=$ac_cv_prog_CC 1640 if test -n "$CC"; then 1641 echo "$as_me:$LINENO: result: $CC" >&5 1642 echo "${ECHO_T}$CC" >&6 1643 else 1644 echo "$as_me:$LINENO: result: no" >&5 1645 echo "${ECHO_T}no" >&6 1646 fi 1647 1648 test -n "$CC" && break 1649 done 1650 fi 1651 if test -z "$CC"; then 1652 ac_ct_CC=$CC 1653 for ac_prog in cl 1654 do 1655 # Extract the first word of "$ac_prog", so it can be a program name with args. 1656 set dummy $ac_prog; ac_word=$2 1657 echo "$as_me:$LINENO: checking for $ac_word" >&5 1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1660 echo $ECHO_N "(cached) $ECHO_C" >&6 1661 else 1662 if test -n "$ac_ct_CC"; then 1663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1664 else 1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1666 for as_dir in $PATH 1667 do 1668 IFS=$as_save_IFS 1669 test -z "$as_dir" && as_dir=. 1670 for ac_exec_ext in '' $ac_executable_extensions; do 1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1672 ac_cv_prog_ac_ct_CC="$ac_prog" 1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1674 break 2 1675 fi 1676 done 1677 done 1678 1679 fi 1680 fi 1681 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1682 if test -n "$ac_ct_CC"; then 1683 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1684 echo "${ECHO_T}$ac_ct_CC" >&6 1685 else 1686 echo "$as_me:$LINENO: result: no" >&5 1687 echo "${ECHO_T}no" >&6 1688 fi 1689 1690 test -n "$ac_ct_CC" && break 1691 done 1692 1693 CC=$ac_ct_CC 1694 fi 1695 1696 fi 1697 1698 1699 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1700 See \`config.log' for more details." >&5 1701 echo "$as_me: error: no acceptable C compiler found in \$PATH 1702 See \`config.log' for more details." >&2;} 1703 { (exit 1); exit 1; }; } 1704 1705 # Provide some information about the compiler. 1706 echo "$as_me:$LINENO:" \ 1707 "checking for C compiler version" >&5 1708 ac_compiler=`set X $ac_compile; echo $2` 1709 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1710 (eval $ac_compiler --version </dev/null >&5) 2>&5 1711 ac_status=$? 1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1713 (exit $ac_status); } 1714 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1715 (eval $ac_compiler -v </dev/null >&5) 2>&5 1716 ac_status=$? 1717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1718 (exit $ac_status); } 1719 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1720 (eval $ac_compiler -V </dev/null >&5) 2>&5 1721 ac_status=$? 1722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1723 (exit $ac_status); } 1724 1725 cat >conftest.$ac_ext <<_ACEOF 1726 /* confdefs.h. */ 1727 _ACEOF 1728 cat confdefs.h >>conftest.$ac_ext 1729 cat >>conftest.$ac_ext <<_ACEOF 1730 /* end confdefs.h. */ 1731 1732 int 1733 main () 1734 { 1735 1736 ; 1737 return 0; 1738 } 1739 _ACEOF 1740 ac_clean_files_save=$ac_clean_files 1741 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1742 # Try to create an executable without -o first, disregard a.out. 1743 # It will help us diagnose broken compilers, and finding out an intuition 1744 # of exeext. 1745 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1746 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1747 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1748 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1749 (eval $ac_link_default) 2>&5 1750 ac_status=$? 1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1752 (exit $ac_status); }; then 1753 # Find the output, starting from the most likely. This scheme is 1754 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1755 # resort. 1756 1757 # Be careful to initialize this variable, since it used to be cached. 1758 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1759 ac_cv_exeext= 1760 # b.out is created by i960 compilers. 1761 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1762 do 1763 test -f "$ac_file" || continue 1764 case $ac_file in 1765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1766 ;; 1767 conftest.$ac_ext ) 1768 # This is the source file. 1769 ;; 1770 [ab].out ) 1771 # We found the default executable, but exeext='' is most 1772 # certainly right. 1773 break;; 1774 *.* ) 1775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1776 # FIXME: I believe we export ac_cv_exeext for Libtool, 1777 # but it would be cool to find out if it's true. Does anybody 1778 # maintain Libtool? --akim. 1779 export ac_cv_exeext 1780 break;; 1781 * ) 1782 break;; 1783 esac 1784 done 1785 else 1786 echo "$as_me: failed program was:" >&5 1787 sed 's/^/| /' conftest.$ac_ext >&5 1788 1789 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1790 See \`config.log' for more details." >&5 1791 echo "$as_me: error: C compiler cannot create executables 1792 See \`config.log' for more details." >&2;} 1793 { (exit 77); exit 77; }; } 1794 fi 1795 1796 ac_exeext=$ac_cv_exeext 1797 echo "$as_me:$LINENO: result: $ac_file" >&5 1798 echo "${ECHO_T}$ac_file" >&6 1799 1800 # Check the compiler produces executables we can run. If not, either 1801 # the compiler is broken, or we cross compile. 1802 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1803 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1804 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1805 # If not cross compiling, check that we can run a simple program. 1806 if test "$cross_compiling" != yes; then 1807 if { ac_try='./$ac_file' 1808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1809 (eval $ac_try) 2>&5 1810 ac_status=$? 1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1812 (exit $ac_status); }; }; then 1813 cross_compiling=no 1814 else 1815 if test "$cross_compiling" = maybe; then 1816 cross_compiling=yes 1817 else 1818 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1819 If you meant to cross compile, use \`--host'. 1820 See \`config.log' for more details." >&5 1821 echo "$as_me: error: cannot run C compiled programs. 1822 If you meant to cross compile, use \`--host'. 1823 See \`config.log' for more details." >&2;} 1824 { (exit 1); exit 1; }; } 1825 fi 1826 fi 1827 fi 1828 echo "$as_me:$LINENO: result: yes" >&5 1829 echo "${ECHO_T}yes" >&6 1830 1831 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1832 ac_clean_files=$ac_clean_files_save 1833 # Check the compiler produces executables we can run. If not, either 1834 # the compiler is broken, or we cross compile. 1835 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1836 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1837 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1838 echo "${ECHO_T}$cross_compiling" >&6 1839 1840 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1841 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1843 (eval $ac_link) 2>&5 1844 ac_status=$? 1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1846 (exit $ac_status); }; then 1847 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1848 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1849 # work properly (i.e., refer to `conftest.exe'), while it won't with 1850 # `rm'. 1851 for ac_file in conftest.exe conftest conftest.*; do 1852 test -f "$ac_file" || continue 1853 case $ac_file in 1854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1855 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1856 export ac_cv_exeext 1857 break;; 1858 * ) break;; 1859 esac 1860 done 1861 else 1862 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1863 See \`config.log' for more details." >&5 1864 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1865 See \`config.log' for more details." >&2;} 1866 { (exit 1); exit 1; }; } 1867 fi 1868 1869 rm -f conftest$ac_cv_exeext 1870 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1871 echo "${ECHO_T}$ac_cv_exeext" >&6 1872 1873 rm -f conftest.$ac_ext 1874 EXEEXT=$ac_cv_exeext 1875 ac_exeext=$EXEEXT 1876 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1877 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1878 if test "${ac_cv_objext+set}" = set; then 1879 echo $ECHO_N "(cached) $ECHO_C" >&6 1880 else 1881 cat >conftest.$ac_ext <<_ACEOF 1882 /* confdefs.h. */ 1883 _ACEOF 1884 cat confdefs.h >>conftest.$ac_ext 1885 cat >>conftest.$ac_ext <<_ACEOF 1886 /* end confdefs.h. */ 1887 1888 int 1889 main () 1890 { 1891 1892 ; 1893 return 0; 1894 } 1895 _ACEOF 1896 rm -f conftest.o conftest.obj 1897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1898 (eval $ac_compile) 2>&5 1899 ac_status=$? 1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1901 (exit $ac_status); }; then 1902 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1903 case $ac_file in 1904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1905 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1906 break;; 1907 esac 1908 done 1909 else 1910 echo "$as_me: failed program was:" >&5 1911 sed 's/^/| /' conftest.$ac_ext >&5 1912 1913 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1914 See \`config.log' for more details." >&5 1915 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1916 See \`config.log' for more details." >&2;} 1917 { (exit 1); exit 1; }; } 1918 fi 1919 1920 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1921 fi 1922 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1923 echo "${ECHO_T}$ac_cv_objext" >&6 1924 OBJEXT=$ac_cv_objext 1925 ac_objext=$OBJEXT 1926 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1927 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1928 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1929 echo $ECHO_N "(cached) $ECHO_C" >&6 1930 else 1931 cat >conftest.$ac_ext <<_ACEOF 1932 /* confdefs.h. */ 1933 _ACEOF 1934 cat confdefs.h >>conftest.$ac_ext 1935 cat >>conftest.$ac_ext <<_ACEOF 1936 /* end confdefs.h. */ 1937 1938 int 1939 main () 1940 { 1941 #ifndef __GNUC__ 1942 choke me 1943 #endif 1944 1945 ; 1946 return 0; 1947 } 1948 _ACEOF 1949 rm -f conftest.$ac_objext 1950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1951 (eval $ac_compile) 2>conftest.er1 1952 ac_status=$? 1953 grep -v '^ *+' conftest.er1 >conftest.err 1954 rm -f conftest.er1 1955 cat conftest.err >&5 1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1957 (exit $ac_status); } && 1958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 1959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1960 (eval $ac_try) 2>&5 1961 ac_status=$? 1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1963 (exit $ac_status); }; } && 1964 { ac_try='test -s conftest.$ac_objext' 1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1966 (eval $ac_try) 2>&5 1967 ac_status=$? 1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1969 (exit $ac_status); }; }; then 1970 ac_compiler_gnu=yes 1971 else 1972 echo "$as_me: failed program was:" >&5 1973 sed 's/^/| /' conftest.$ac_ext >&5 1974 1975 ac_compiler_gnu=no 1976 fi 1977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1978 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1979 1980 fi 1981 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1982 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1983 GCC=`test $ac_compiler_gnu = yes && echo yes` 1984 ac_test_CFLAGS=${CFLAGS+set} 1985 ac_save_CFLAGS=$CFLAGS 1986 CFLAGS="-g" 1987 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1988 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1989 if test "${ac_cv_prog_cc_g+set}" = set; then 1990 echo $ECHO_N "(cached) $ECHO_C" >&6 1991 else 1992 cat >conftest.$ac_ext <<_ACEOF 1993 /* confdefs.h. */ 1994 _ACEOF 1995 cat confdefs.h >>conftest.$ac_ext 1996 cat >>conftest.$ac_ext <<_ACEOF 1997 /* end confdefs.h. */ 1998 1999 int 2000 main () 2001 { 2002 2003 ; 2004 return 0; 2005 } 2006 _ACEOF 2007 rm -f conftest.$ac_objext 2008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2009 (eval $ac_compile) 2>conftest.er1 2010 ac_status=$? 2011 grep -v '^ *+' conftest.er1 >conftest.err 2012 rm -f conftest.er1 2013 cat conftest.err >&5 2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2015 (exit $ac_status); } && 2016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2018 (eval $ac_try) 2>&5 2019 ac_status=$? 2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2021 (exit $ac_status); }; } && 2022 { ac_try='test -s conftest.$ac_objext' 2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2024 (eval $ac_try) 2>&5 2025 ac_status=$? 2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2027 (exit $ac_status); }; }; then 2028 ac_cv_prog_cc_g=yes 2029 else 2030 echo "$as_me: failed program was:" >&5 2031 sed 's/^/| /' conftest.$ac_ext >&5 2032 2033 ac_cv_prog_cc_g=no 2034 fi 2035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2036 fi 2037 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2038 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2039 if test "$ac_test_CFLAGS" = set; then 2040 CFLAGS=$ac_save_CFLAGS 2041 elif test $ac_cv_prog_cc_g = yes; then 2042 if test "$GCC" = yes; then 2043 CFLAGS="-g -O2" 2044 else 2045 CFLAGS="-g" 2046 fi 2047 else 2048 if test "$GCC" = yes; then 2049 CFLAGS="-O2" 2050 else 2051 CFLAGS= 2052 fi 2053 fi 2054 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2055 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2056 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2057 echo $ECHO_N "(cached) $ECHO_C" >&6 2058 else 2059 ac_cv_prog_cc_stdc=no 2060 ac_save_CC=$CC 2061 cat >conftest.$ac_ext <<_ACEOF 2062 /* confdefs.h. */ 2063 _ACEOF 2064 cat confdefs.h >>conftest.$ac_ext 2065 cat >>conftest.$ac_ext <<_ACEOF 2066 /* end confdefs.h. */ 2067 #include <stdarg.h> 2068 #include <stdio.h> 2069 #include <sys/types.h> 2070 #include <sys/stat.h> 2071 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2072 struct buf { int x; }; 2073 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2074 static char *e (p, i) 2075 char **p; 2076 int i; 2077 { 2078 return p[i]; 2079 } 2080 static char *f (char * (*g) (char **, int), char **p, ...) 2081 { 2082 char *s; 2083 va_list v; 2084 va_start (v,p); 2085 s = g (p, va_arg (v,int)); 2086 va_end (v); 2087 return s; 2088 } 2089 2090 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2091 function prototypes and stuff, but not '\xHH' hex character constants. 2092 These don't provoke an error unfortunately, instead are silently treated 2093 as 'x'. The following induces an error, until -std1 is added to get 2094 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2095 array size at least. It's necessary to write '\x00'==0 to get something 2096 that's true only with -std1. */ 2097 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2098 2099 int test (int i, double x); 2100 struct s1 {int (*f) (int a);}; 2101 struct s2 {int (*f) (double a);}; 2102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2103 int argc; 2104 char **argv; 2105 int 2106 main () 2107 { 2108 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2109 ; 2110 return 0; 2111 } 2112 _ACEOF 2113 # Don't try gcc -ansi; that turns off useful extensions and 2114 # breaks some systems' header files. 2115 # AIX -qlanglvl=ansi 2116 # Ultrix and OSF/1 -std1 2117 # HP-UX 10.20 and later -Ae 2118 # HP-UX older versions -Aa -D_HPUX_SOURCE 2119 # SVR4 -Xc -D__EXTENSIONS__ 2120 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2121 do 2122 CC="$ac_save_CC $ac_arg" 2123 rm -f conftest.$ac_objext 2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2125 (eval $ac_compile) 2>conftest.er1 2126 ac_status=$? 2127 grep -v '^ *+' conftest.er1 >conftest.err 2128 rm -f conftest.er1 2129 cat conftest.err >&5 2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2131 (exit $ac_status); } && 2132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2134 (eval $ac_try) 2>&5 2135 ac_status=$? 2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2137 (exit $ac_status); }; } && 2138 { ac_try='test -s conftest.$ac_objext' 2139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2140 (eval $ac_try) 2>&5 2141 ac_status=$? 2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2143 (exit $ac_status); }; }; then 2144 ac_cv_prog_cc_stdc=$ac_arg 2145 break 2146 else 2147 echo "$as_me: failed program was:" >&5 2148 sed 's/^/| /' conftest.$ac_ext >&5 2149 2150 fi 2151 rm -f conftest.err conftest.$ac_objext 2152 done 2153 rm -f conftest.$ac_ext conftest.$ac_objext 2154 CC=$ac_save_CC 2155 2156 fi 2157 2158 case "x$ac_cv_prog_cc_stdc" in 2159 x|xno) 2160 echo "$as_me:$LINENO: result: none needed" >&5 2161 echo "${ECHO_T}none needed" >&6 ;; 2162 *) 2163 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2164 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2165 CC="$CC $ac_cv_prog_cc_stdc" ;; 2166 esac 2167 2168 # Some people use a C++ compiler to compile C. Since we use `exit', 2169 # in C++ we need to declare it. In case someone uses the same compiler 2170 # for both compiling C and C++ we need to have the C++ compiler decide 2171 # the declaration of exit, since it's the most demanding environment. 2172 cat >conftest.$ac_ext <<_ACEOF 2173 #ifndef __cplusplus 2174 choke me 2175 #endif 2176 _ACEOF 2177 rm -f conftest.$ac_objext 2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2179 (eval $ac_compile) 2>conftest.er1 2180 ac_status=$? 2181 grep -v '^ *+' conftest.er1 >conftest.err 2182 rm -f conftest.er1 2183 cat conftest.err >&5 2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2185 (exit $ac_status); } && 2186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2188 (eval $ac_try) 2>&5 2189 ac_status=$? 2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2191 (exit $ac_status); }; } && 2192 { ac_try='test -s conftest.$ac_objext' 2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2194 (eval $ac_try) 2>&5 2195 ac_status=$? 2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2197 (exit $ac_status); }; }; then 2198 for ac_declaration in \ 2199 '' \ 2200 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2201 'extern "C" void std::exit (int); using std::exit;' \ 2202 'extern "C" void exit (int) throw ();' \ 2203 'extern "C" void exit (int);' \ 2204 'void exit (int);' 2205 do 2206 cat >conftest.$ac_ext <<_ACEOF 2207 /* confdefs.h. */ 2208 _ACEOF 2209 cat confdefs.h >>conftest.$ac_ext 2210 cat >>conftest.$ac_ext <<_ACEOF 2211 /* end confdefs.h. */ 2212 $ac_declaration 2213 #include <stdlib.h> 2214 int 2215 main () 2216 { 2217 exit (42); 2218 ; 2219 return 0; 2220 } 2221 _ACEOF 2222 rm -f conftest.$ac_objext 2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2224 (eval $ac_compile) 2>conftest.er1 2225 ac_status=$? 2226 grep -v '^ *+' conftest.er1 >conftest.err 2227 rm -f conftest.er1 2228 cat conftest.err >&5 2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2230 (exit $ac_status); } && 2231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2233 (eval $ac_try) 2>&5 2234 ac_status=$? 2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2236 (exit $ac_status); }; } && 2237 { ac_try='test -s conftest.$ac_objext' 2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2239 (eval $ac_try) 2>&5 2240 ac_status=$? 2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2242 (exit $ac_status); }; }; then 2243 : 2244 else 2245 echo "$as_me: failed program was:" >&5 2246 sed 's/^/| /' conftest.$ac_ext >&5 2247 2248 continue 2249 fi 2250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2251 cat >conftest.$ac_ext <<_ACEOF 2252 /* confdefs.h. */ 2253 _ACEOF 2254 cat confdefs.h >>conftest.$ac_ext 2255 cat >>conftest.$ac_ext <<_ACEOF 2256 /* end confdefs.h. */ 2257 $ac_declaration 2258 int 2259 main () 2260 { 2261 exit (42); 2262 ; 2263 return 0; 2264 } 2265 _ACEOF 2266 rm -f conftest.$ac_objext 2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2268 (eval $ac_compile) 2>conftest.er1 2269 ac_status=$? 2270 grep -v '^ *+' conftest.er1 >conftest.err 2271 rm -f conftest.er1 2272 cat conftest.err >&5 2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 (exit $ac_status); } && 2275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2277 (eval $ac_try) 2>&5 2278 ac_status=$? 2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2280 (exit $ac_status); }; } && 2281 { ac_try='test -s conftest.$ac_objext' 2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2283 (eval $ac_try) 2>&5 2284 ac_status=$? 2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2286 (exit $ac_status); }; }; then 2287 break 2288 else 2289 echo "$as_me: failed program was:" >&5 2290 sed 's/^/| /' conftest.$ac_ext >&5 2291 2292 fi 2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2294 done 2295 rm -f conftest* 2296 if test -n "$ac_declaration"; then 2297 echo '#ifdef __cplusplus' >>confdefs.h 2298 echo $ac_declaration >>confdefs.h 2299 echo '#endif' >>confdefs.h 2300 fi 2301 2302 else 2303 echo "$as_me: failed program was:" >&5 2304 sed 's/^/| /' conftest.$ac_ext >&5 2305 2306 fi 2307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2308 ac_ext=c 2309 ac_cpp='$CPP $CPPFLAGS' 2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2313 2314 2315 ac_ext=c 2316 ac_cpp='$CPP $CPPFLAGS' 2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2320 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2321 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2322 # On Suns, sometimes $CPP names a directory. 2323 if test -n "$CPP" && test -d "$CPP"; then 2324 CPP= 2325 fi 2326 if test -z "$CPP"; then 2327 if test "${ac_cv_prog_CPP+set}" = set; then 2328 echo $ECHO_N "(cached) $ECHO_C" >&6 2329 else 2330 # Double quotes because CPP needs to be expanded 2331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2332 do 2333 ac_preproc_ok=false 2334 for ac_c_preproc_warn_flag in '' yes 2335 do 2336 # Use a header file that comes with gcc, so configuring glibc 2337 # with a fresh cross-compiler works. 2338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2339 # <limits.h> exists even on freestanding compilers. 2340 # On the NeXT, cc -E runs the code through the compiler's parser, 2341 # not just through cpp. "Syntax error" is here to catch this case. 2342 cat >conftest.$ac_ext <<_ACEOF 2343 /* confdefs.h. */ 2344 _ACEOF 2345 cat confdefs.h >>conftest.$ac_ext 2346 cat >>conftest.$ac_ext <<_ACEOF 2347 /* end confdefs.h. */ 2348 #ifdef __STDC__ 2349 # include <limits.h> 2350 #else 2351 # include <assert.h> 2352 #endif 2353 Syntax error 2354 _ACEOF 2355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2357 ac_status=$? 2358 grep -v '^ *+' conftest.er1 >conftest.err 2359 rm -f conftest.er1 2360 cat conftest.err >&5 2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2362 (exit $ac_status); } >/dev/null; then 2363 if test -s conftest.err; then 2364 ac_cpp_err=$ac_c_preproc_warn_flag 2365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2366 else 2367 ac_cpp_err= 2368 fi 2369 else 2370 ac_cpp_err=yes 2371 fi 2372 if test -z "$ac_cpp_err"; then 2373 : 2374 else 2375 echo "$as_me: failed program was:" >&5 2376 sed 's/^/| /' conftest.$ac_ext >&5 2377 2378 # Broken: fails on valid input. 2379 continue 2380 fi 2381 rm -f conftest.err conftest.$ac_ext 2382 2383 # OK, works on sane cases. Now check whether non-existent headers 2384 # can be detected and how. 2385 cat >conftest.$ac_ext <<_ACEOF 2386 /* confdefs.h. */ 2387 _ACEOF 2388 cat confdefs.h >>conftest.$ac_ext 2389 cat >>conftest.$ac_ext <<_ACEOF 2390 /* end confdefs.h. */ 2391 #include <ac_nonexistent.h> 2392 _ACEOF 2393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2395 ac_status=$? 2396 grep -v '^ *+' conftest.er1 >conftest.err 2397 rm -f conftest.er1 2398 cat conftest.err >&5 2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2400 (exit $ac_status); } >/dev/null; then 2401 if test -s conftest.err; then 2402 ac_cpp_err=$ac_c_preproc_warn_flag 2403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2404 else 2405 ac_cpp_err= 2406 fi 2407 else 2408 ac_cpp_err=yes 2409 fi 2410 if test -z "$ac_cpp_err"; then 2411 # Broken: success on invalid input. 2412 continue 2413 else 2414 echo "$as_me: failed program was:" >&5 2415 sed 's/^/| /' conftest.$ac_ext >&5 2416 2417 # Passes both tests. 2418 ac_preproc_ok=: 2419 break 2420 fi 2421 rm -f conftest.err conftest.$ac_ext 2422 2423 done 2424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2425 rm -f conftest.err conftest.$ac_ext 2426 if $ac_preproc_ok; then 2427 break 2428 fi 2429 2430 done 2431 ac_cv_prog_CPP=$CPP 2432 2433 fi 2434 CPP=$ac_cv_prog_CPP 2435 else 2436 ac_cv_prog_CPP=$CPP 2437 fi 2438 echo "$as_me:$LINENO: result: $CPP" >&5 2439 echo "${ECHO_T}$CPP" >&6 2440 ac_preproc_ok=false 2441 for ac_c_preproc_warn_flag in '' yes 2442 do 2443 # Use a header file that comes with gcc, so configuring glibc 2444 # with a fresh cross-compiler works. 2445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2446 # <limits.h> exists even on freestanding compilers. 2447 # On the NeXT, cc -E runs the code through the compiler's parser, 2448 # not just through cpp. "Syntax error" is here to catch this case. 2449 cat >conftest.$ac_ext <<_ACEOF 2450 /* confdefs.h. */ 2451 _ACEOF 2452 cat confdefs.h >>conftest.$ac_ext 2453 cat >>conftest.$ac_ext <<_ACEOF 2454 /* end confdefs.h. */ 2455 #ifdef __STDC__ 2456 # include <limits.h> 2457 #else 2458 # include <assert.h> 2459 #endif 2460 Syntax error 2461 _ACEOF 2462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2464 ac_status=$? 2465 grep -v '^ *+' conftest.er1 >conftest.err 2466 rm -f conftest.er1 2467 cat conftest.err >&5 2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2469 (exit $ac_status); } >/dev/null; then 2470 if test -s conftest.err; then 2471 ac_cpp_err=$ac_c_preproc_warn_flag 2472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2473 else 2474 ac_cpp_err= 2475 fi 2476 else 2477 ac_cpp_err=yes 2478 fi 2479 if test -z "$ac_cpp_err"; then 2480 : 2481 else 2482 echo "$as_me: failed program was:" >&5 2483 sed 's/^/| /' conftest.$ac_ext >&5 2484 2485 # Broken: fails on valid input. 2486 continue 2487 fi 2488 rm -f conftest.err conftest.$ac_ext 2489 2490 # OK, works on sane cases. Now check whether non-existent headers 2491 # can be detected and how. 2492 cat >conftest.$ac_ext <<_ACEOF 2493 /* confdefs.h. */ 2494 _ACEOF 2495 cat confdefs.h >>conftest.$ac_ext 2496 cat >>conftest.$ac_ext <<_ACEOF 2497 /* end confdefs.h. */ 2498 #include <ac_nonexistent.h> 2499 _ACEOF 2500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2502 ac_status=$? 2503 grep -v '^ *+' conftest.er1 >conftest.err 2504 rm -f conftest.er1 2505 cat conftest.err >&5 2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2507 (exit $ac_status); } >/dev/null; then 2508 if test -s conftest.err; then 2509 ac_cpp_err=$ac_c_preproc_warn_flag 2510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2511 else 2512 ac_cpp_err= 2513 fi 2514 else 2515 ac_cpp_err=yes 2516 fi 2517 if test -z "$ac_cpp_err"; then 2518 # Broken: success on invalid input. 2519 continue 2520 else 2521 echo "$as_me: failed program was:" >&5 2522 sed 's/^/| /' conftest.$ac_ext >&5 2523 2524 # Passes both tests. 2525 ac_preproc_ok=: 2526 break 2527 fi 2528 rm -f conftest.err conftest.$ac_ext 2529 2530 done 2531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2532 rm -f conftest.err conftest.$ac_ext 2533 if $ac_preproc_ok; then 2534 : 2535 else 2536 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2537 See \`config.log' for more details." >&5 2538 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2539 See \`config.log' for more details." >&2;} 2540 { (exit 1); exit 1; }; } 2541 fi 2542 2543 ac_ext=c 2544 ac_cpp='$CPP $CPPFLAGS' 2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2548 2549 2550 echo "$as_me:$LINENO: checking for egrep" >&5 2551 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2552 if test "${ac_cv_prog_egrep+set}" = set; then 2553 echo $ECHO_N "(cached) $ECHO_C" >&6 2554 else 2555 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2556 then ac_cv_prog_egrep='grep -E' 2557 else ac_cv_prog_egrep='egrep' 2558 fi 2559 fi 2560 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2561 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2562 EGREP=$ac_cv_prog_egrep 2563 2564 2565 if test $ac_cv_c_compiler_gnu = yes; then 2566 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 2567 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 2568 if test "${ac_cv_prog_gcc_traditional+set}" = set; then 2569 echo $ECHO_N "(cached) $ECHO_C" >&6 2570 else 2571 ac_pattern="Autoconf.*'x'" 2572 cat >conftest.$ac_ext <<_ACEOF 2573 /* confdefs.h. */ 2574 _ACEOF 2575 cat confdefs.h >>conftest.$ac_ext 2576 cat >>conftest.$ac_ext <<_ACEOF 2577 /* end confdefs.h. */ 2578 #include <sgtty.h> 2579 Autoconf TIOCGETP 2580 _ACEOF 2581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2582 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2583 ac_cv_prog_gcc_traditional=yes 2584 else 2585 ac_cv_prog_gcc_traditional=no 2586 fi 2587 rm -f conftest* 2588 2589 2590 if test $ac_cv_prog_gcc_traditional = no; then 2591 cat >conftest.$ac_ext <<_ACEOF 2592 /* confdefs.h. */ 2593 _ACEOF 2594 cat confdefs.h >>conftest.$ac_ext 2595 cat >>conftest.$ac_ext <<_ACEOF 2596 /* end confdefs.h. */ 2597 #include <termio.h> 2598 Autoconf TCGETA 2599 _ACEOF 2600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2601 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2602 ac_cv_prog_gcc_traditional=yes 2603 fi 2604 rm -f conftest* 2605 2606 fi 2607 fi 2608 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 2609 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2610 if test $ac_cv_prog_gcc_traditional = yes; then 2611 CC="$CC -traditional" 2612 fi 2613 fi 2614 1761 #AC_PROG_GCC_TRADITIONAL 2615 1762 2616 1763 if test "x$DEBUG" = "x";then … … 2653 1800 2654 1801 2655 ac_config_files="$ac_config_files Makefile pxeconfig pxeconfigd hexls examples/pxeconfigd.xinetd" 1802 ac_config_files="$ac_config_files Makefile pxeconfig pxeconfigd hexls examples/pxeconfigd.xinetd" 1803 2656 1804 cat >confcache <<\_ACEOF 2657 1805 # This file is a shell script that caches the results of configure … … 2672 1820 # The following way of writing the cache mishandles newlines in values, 2673 1821 # but we know of no workaround that is simple, portable, and efficient. 2674 # So, don't put newlines in cache variables' values.1822 # So, we kill variables containing newlines. 2675 1823 # Ultrix sh set writes to stderr and can't be redirected directly, 2676 1824 # and sets the high bit in the cache file unless we assign to the vars. 2677 { 1825 ( 1826 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 1827 eval ac_val=\$$ac_var 1828 case $ac_val in #( 1829 *${as_nl}*) 1830 case $ac_var in #( 1831 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1832 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1833 esac 1834 case $ac_var in #( 1835 _ | IFS | as_nl) ;; #( 1836 *) $as_unset $ac_var ;; 1837 esac ;; 1838 esac 1839 done 1840 2678 1841 (set) 2>&1 | 2679 case `(ac_space=' '; set | grep ac_space) 2>&1` in2680 * ac_space=\ *)1842 case $as_nl`(ac_space=' '; set) 2>&1` in #( 1843 *${as_nl}ac_space=\ *) 2681 1844 # `set' does not quote correctly, so add quotes (double-quote 2682 1845 # substitution turns \\\\ into \\, and sed turns \\ into \). … … 2684 1847 "s/'/'\\\\''/g; 2685 1848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2686 ;; 1849 ;; #( 2687 1850 *) 2688 1851 # `set' quotes correctly as required by POSIX, so do not add quotes. 2689 sed -n \ 2690 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2691 1853 ;; 2692 esac; 2693 } | 1854 esac | 1855 sort 1856 ) | 2694 1857 sed ' 1858 /^ac_cv_env_/b end 2695 1859 t clear 2696 : 1860 :clear 2697 1861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 2698 1862 t end 2699 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2700 : end' >>confcache 2701 if diff $cache_file confcache >/dev/null 2>&1; then :; else 2702 if test -w $cache_file; then 2703 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 1863 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 1864 :end' >>confcache 1865 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 1866 if test -w "$cache_file"; then 1867 test "x$cache_file" != "x/dev/null" && 1868 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 1869 echo "$as_me: updating cache $cache_file" >&6;} 2704 1870 cat confcache >$cache_file 2705 1871 else 2706 echo "not updating unwritable cache $cache_file" 1872 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 1873 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 2707 1874 fi 2708 1875 fi … … 2712 1879 # Let make expand exec_prefix. 2713 1880 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2714 2715 # VPATH may cause trouble with some makes, so we remove $(srcdir),2716 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and2717 # trailing colons and then remove the whole line if VPATH becomes empty2718 # (actually we leave an empty line to preserve line numbers).2719 if test "x$srcdir" = x.; then2720 ac_vpsub='/^[ ]*VPATH[ ]*=/{2721 s/:*\$(srcdir):*/:/;2722 s/:*\${srcdir}:*/:/;2723 s/:*@srcdir@:*/:/;2724 s/^\([^=]*=[ ]*\):*/\1/;2725 s/:*$//;2726 s/^[^=]*=[ ]*$//;2727 }'2728 fi2729 1881 2730 1882 # Transform confdefs.h into DEFS. … … 2733 1885 # 2734 1886 # If the first sed substitution is executed (which looks for macros that 2735 # take arguments), then webranch to the quote section. Otherwise,1887 # take arguments), then branch to the quote section. Otherwise, 2736 1888 # look for a macro that doesn't take arguments. 2737 cat >confdef2opt.sed <<\_ACEOF 1889 ac_script=' 2738 1890 t clear 2739 : 2740 s ,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g1891 :clear 1892 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 2741 1893 t quote 2742 s ,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g1894 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 2743 1895 t quote 2744 d 2745 : quote 2746 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 2747 s,\[,\\&,g 2748 s,\],\\&,g 2749 s,\$,$$,g 2750 p 2751 _ACEOF 2752 # We use echo to avoid assuming a particular line-breaking character. 2753 # The extra dot is to prevent the shell from consuming trailing 2754 # line-breaks from the sub-command output. A line-break within 2755 # single-quotes doesn't work because, if this script is created in a 2756 # platform that uses two characters for line-breaks (e.g., DOS), tr 2757 # would break. 2758 ac_LF_and_DOT=`echo; echo .` 2759 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 2760 rm -f confdef2opt.sed 1896 b any 1897 :quote 1898 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 1899 s/\[/\\&/g 1900 s/\]/\\&/g 1901 s/\$/$$/g 1902 H 1903 :any 1904 ${ 1905 g 1906 s/^\n// 1907 s/\n/ /g 1908 p 1909 } 1910 ' 1911 DEFS=`sed -n "$ac_script" confdefs.h` 2761 1912 2762 1913 … … 2765 1916 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 2766 1917 # 1. Remove the extension, and $U if already installed. 2767 ac_i=`echo "$ac_i" | 2768 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 2769 # 2. Add them. 2770 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 2771 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 1918 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 1919 ac_i=`echo "$ac_i" | sed "$ac_script"` 1920 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 1921 # will be set to the directory where LIBOBJS objects are built. 1922 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 1923 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 2772 1924 done 2773 1925 LIBOBJS=$ac_libobjs … … 2800 1952 ## --------------------- ## 2801 1953 2802 # Be Bourne compatible 1954 # Be more Bourne compatible 1955 DUALCASE=1; export DUALCASE # for MKS sh 2803 1956 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 2804 1957 emulate sh … … 2807 1960 # is contrary to our usage. Disable this feature. 2808 1961 alias -g '${1+"$@"}'='"$@"' 2809 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 2810 set -o posix 2811 fi 2812 DUALCASE=1; export DUALCASE # for MKS sh 2813 2814 # Support unset when possible. 2815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 2816 as_unset=unset 2817 else 2818 as_unset=false 2819 fi 2820 2821 2822 # Work around bugs in pre-3.0 UWIN ksh. 2823 $as_unset ENV MAIL MAILPATH 2824 PS1='$ ' 2825 PS2='> ' 2826 PS4='+ ' 2827 2828 # NLS nuisances. 2829 for as_var in \ 2830 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 2831 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 2832 LC_TELEPHONE LC_TIME 2833 do 2834 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 2835 eval $as_var=C; export $as_var 2836 else 2837 $as_unset $as_var 2838 fi 2839 done 2840 2841 # Required to use basename. 2842 if expr a : '\(a\)' >/dev/null 2>&1; then 2843 as_expr=expr 2844 else 2845 as_expr=false 2846 fi 2847 2848 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 2849 as_basename=basename 2850 else 2851 as_basename=false 2852 fi 2853 2854 2855 # Name of the executable. 2856 as_me=`$as_basename "$0" || 2857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2858 X"$0" : 'X\(//\)$' \| \ 2859 X"$0" : 'X\(/\)$' \| \ 2860 . : '\(.\)' 2>/dev/null || 2861 echo X/"$0" | 2862 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 2863 /^X\/\(\/\/\)$/{ s//\1/; q; } 2864 /^X\/\(\/\).*/{ s//\1/; q; } 2865 s/.*/./; q'` 2866 2867 2868 # PATH needs CR, and LINENO needs CR and PATH. 1962 setopt NO_GLOB_SUBST 1963 else 1964 case `(set -o) 2>/dev/null` in 1965 *posix*) set -o posix ;; 1966 esac 1967 1968 fi 1969 1970 1971 1972 1973 # PATH needs CR 2869 1974 # Avoid depending upon Character Ranges. 2870 1975 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 2887 1992 fi 2888 1993 2889 2890 as_lineno_1=$LINENO 2891 as_lineno_2=$LINENO 2892 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 2893 test "x$as_lineno_1" != "x$as_lineno_2" && 2894 test "x$as_lineno_3" = "x$as_lineno_2" || { 2895 # Find who we are. Look in the path if we contain no path at all 2896 # relative or not. 2897 case $0 in 2898 *[\\/]* ) as_myself=$0 ;; 2899 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1994 # Support unset when possible. 1995 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 1996 as_unset=unset 1997 else 1998 as_unset=false 1999 fi 2000 2001 2002 # IFS 2003 # We need space, tab and new line, in precisely that order. Quoting is 2004 # there to prevent editors from complaining about space-tab. 2005 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 2006 # splitting by setting IFS to empty value.) 2007 as_nl=' 2008 ' 2009 IFS=" "" $as_nl" 2010 2011 # Find who we are. Look in the path if we contain no directory separator. 2012 case $0 in 2013 *[\\/]* ) as_myself=$0 ;; 2014 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2900 2015 for as_dir in $PATH 2901 2016 do … … 2904 2019 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 2905 2020 done 2906 2907 ;; 2908 esac 2909 # We did not find ourselves, most probably we were run as `sh COMMAND' 2910 # in which case we are not to be found in the path. 2911 if test "x$as_myself" = x; then 2912 as_myself=$0 2021 IFS=$as_save_IFS 2022 2023 ;; 2024 esac 2025 # We did not find ourselves, most probably we were run as `sh COMMAND' 2026 # in which case we are not to be found in the path. 2027 if test "x$as_myself" = x; then 2028 as_myself=$0 2029 fi 2030 if test ! -f "$as_myself"; then 2031 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 2032 { (exit 1); exit 1; } 2033 fi 2034 2035 # Work around bugs in pre-3.0 UWIN ksh. 2036 for as_var in ENV MAIL MAILPATH 2037 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 2038 done 2039 PS1='$ ' 2040 PS2='> ' 2041 PS4='+ ' 2042 2043 # NLS nuisances. 2044 for as_var in \ 2045 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 2046 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 2047 LC_TELEPHONE LC_TIME 2048 do 2049 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 2050 eval $as_var=C; export $as_var 2051 else 2052 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 2913 2053 fi 2914 if test ! -f "$as_myself"; then 2915 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 2916 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 2917 { (exit 1); exit 1; }; } 2918 fi 2919 case $CONFIG_SHELL in 2920 '') 2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2922 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2923 do 2924 IFS=$as_save_IFS 2925 test -z "$as_dir" && as_dir=. 2926 for as_base in sh bash ksh sh5; do 2927 case $as_dir in 2928 /*) 2929 if ("$as_dir/$as_base" -c ' 2054 done 2055 2056 # Required to use basename. 2057 if expr a : '\(a\)' >/dev/null 2>&1 && 2058 test "X`expr 00001 : '.*\(...\)'`" = X001; then 2059 as_expr=expr 2060 else 2061 as_expr=false 2062 fi 2063 2064 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 2065 as_basename=basename 2066 else 2067 as_basename=false 2068 fi 2069 2070 2071 # Name of the executable. 2072 as_me=`$as_basename -- "$0" || 2073 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2074 X"$0" : 'X\(//\)$' \| \ 2075 X"$0" : 'X\(/\)' \| . 2>/dev/null || 2076 echo X/"$0" | 2077 sed '/^.*\/\([^/][^/]*\)\/*$/{ 2078 s//\1/ 2079 q 2080 } 2081 /^X\/\(\/\/\)$/{ 2082 s//\1/ 2083 q 2084 } 2085 /^X\/\(\/\).*/{ 2086 s//\1/ 2087 q 2088 } 2089 s/.*/./; q'` 2090 2091 # CDPATH. 2092 $as_unset CDPATH 2093 2094 2095 2930 2096 as_lineno_1=$LINENO 2931 2097 as_lineno_2=$LINENO 2932 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`2933 2098 test "x$as_lineno_1" != "x$as_lineno_2" && 2934 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 2935 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 2936 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 2937 CONFIG_SHELL=$as_dir/$as_base 2938 export CONFIG_SHELL 2939 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 2940 fi;; 2941 esac 2942 done 2943 done 2944 ;; 2945 esac 2099 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 2946 2100 2947 2101 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 2948 2102 # uniformly replaced by the line number. The first 'sed' inserts a 2949 # line-number line before each line; the second 'sed' does the real 2950 # work. The second script uses 'N' to pair each line-number line 2951 # with the numbered line, and appends trailing '-' during 2952 # substitution so that $LINENO is not a special case at line end. 2103 # line-number line after each line using $LINENO; the second 'sed' 2104 # does the real work. The second script uses 'N' to pair each 2105 # line-number line with the line containing $LINENO, and appends 2106 # trailing '-' during substitution so that $LINENO is not a special 2107 # case at line end. 2953 2108 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 2954 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 2955 sed '=' <$as_myself | 2109 # scripts with optimization help from Paolo Bonzini. Blame Lee 2110 # E. McMahon (1931-1989) for sed's syntax. :-) 2111 sed -n ' 2112 p 2113 /[$]LINENO/= 2114 ' <$as_myself | 2956 2115 sed ' 2116 s/[$]LINENO.*/&-/ 2117 t lineno 2118 b 2119 :lineno 2957 2120 N 2958 s,$,-, 2959 : loop 2960 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 2121 :loop 2122 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 2961 2123 t loop 2962 s,-$,, 2963 s,^['$as_cr_digits']*\n,, 2124 s/-\n.*// 2964 2125 ' >$as_me.lineno && 2965 chmod +x $as_me.lineno || 2966 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 2967 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 2126 chmod +x "$as_me.lineno" || 2127 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 2968 2128 { (exit 1); exit 1; }; } 2969 2129 2970 2130 # Don't try to exec as it changes $[0], causing all sort of problems 2971 2131 # (the dirname of $[0] is not the place where we might find the 2972 # original and so on. Autoconf is especially sensi ble to this).2973 . ./$as_me.lineno2132 # original and so on. Autoconf is especially sensitive to this). 2133 . "./$as_me.lineno" 2974 2134 # Exit status is that of the last command. 2975 2135 exit … … 2977 2137 2978 2138 2979 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 2980 *c*,-n*) ECHO_N= ECHO_C=' 2981 ' ECHO_T=' ' ;; 2982 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 2983 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 2139 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 2140 as_dirname=dirname 2141 else 2142 as_dirname=false 2143 fi 2144 2145 ECHO_C= ECHO_N= ECHO_T= 2146 case `echo -n x` in 2147 -n*) 2148 case `echo 'x\c'` in 2149 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 2150 *) ECHO_C='\c';; 2151 esac;; 2152 *) 2153 ECHO_N='-n';; 2984 2154 esac 2985 2155 2986 if expr a : '\(a\)' >/dev/null 2>&1; then 2156 if expr a : '\(a\)' >/dev/null 2>&1 && 2157 test "X`expr 00001 : '.*\(...\)'`" = X001; then 2987 2158 as_expr=expr 2988 2159 else … … 2991 2162 2992 2163 rm -f conf$$ conf$$.exe conf$$.file 2164 if test -d conf$$.dir; then 2165 rm -f conf$$.dir/conf$$.file 2166 else 2167 rm -f conf$$.dir 2168 mkdir conf$$.dir 2169 fi 2993 2170 echo >conf$$.file 2994 2171 if ln -s conf$$.file conf$$ 2>/dev/null; then 2995 # We could just check for DJGPP; but this test a) works b) is more generic 2996 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 2997 if test -f conf$$.exe; then 2998 # Don't use ln at all; we don't have any links 2172 as_ln_s='ln -s' 2173 # ... but there are two gotchas: 2174 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 2175 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 2176 # In both cases, we have to default to `cp -p'. 2177 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 2999 2178 as_ln_s='cp -p' 3000 else3001 as_ln_s='ln -s'3002 fi3003 2179 elif ln conf$$.file conf$$ 2>/dev/null; then 3004 2180 as_ln_s=ln … … 3006 2182 as_ln_s='cp -p' 3007 2183 fi 3008 rm -f conf$$ conf$$.exe conf$$.file 2184 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 2185 rmdir conf$$.dir 2>/dev/null 3009 2186 3010 2187 if mkdir -p . 2>/dev/null; then … … 3015 2192 fi 3016 2193 3017 as_executable_p="test -f" 2194 if test -x / >/dev/null 2>&1; then 2195 as_test_x='test -x' 2196 else 2197 if ls -dL / >/dev/null 2>&1; then 2198 as_ls_L_option=L 2199 else 2200 as_ls_L_option= 2201 fi 2202 as_test_x=' 2203 eval sh -c '\'' 2204 if test -d "$1"; then 2205 test -d "$1/."; 2206 else 2207 case $1 in 2208 -*)set "./$1";; 2209 esac; 2210 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 2211 ???[sx]*):;;*)false;;esac;fi 2212 '\'' sh 2213 ' 2214 fi 2215 as_executable_p=$as_test_x 3018 2216 3019 2217 # Sed expression to map a string onto a valid CPP name. … … 3024 2222 3025 2223 3026 # IFS3027 # We need space, tab and new line, in precisely that order.3028 as_nl='3029 '3030 IFS=" $as_nl"3031 3032 # CDPATH.3033 $as_unset CDPATH3034 3035 2224 exec 6>&1 3036 2225 3037 # Open the log real soon, to keep \$[0] and so on meaningful, and to2226 # Save the log message, to keep $[0] and so on meaningful, and to 3038 2227 # report actual input values of CONFIG_FILES etc. instead of their 3039 # values after options handling. Logging --version etc. is OK. 3040 exec 5>>config.log 3041 { 3042 echo 3043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3044 ## Running $as_me. ## 3045 _ASBOX 3046 } >&5 3047 cat >&5 <<_CSEOF 3048 2228 # values after options handling. 2229 ac_log=" 3049 2230 This file was extended by $as_me, which was 3050 generated by GNU Autoconf 2. 59. Invocation command line was2231 generated by GNU Autoconf 2.61. Invocation command line was 3051 2232 3052 2233 CONFIG_FILES = $CONFIG_FILES … … 3056 2237 $ $0 $@ 3057 2238 3058 _CSEOF 3059 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 3060 echo >&5 3061 _ACEOF 3062 2239 on `(hostname || uname -n) 2>/dev/null | sed 1q` 2240 " 2241 2242 _ACEOF 2243 2244 cat >>$CONFIG_STATUS <<_ACEOF 3063 2245 # Files that config.status was made for. 3064 if test -n "$ac_config_files"; then 3065 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 3066 fi 3067 3068 if test -n "$ac_config_headers"; then 3069 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 3070 fi 3071 3072 if test -n "$ac_config_links"; then 3073 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 3074 fi 3075 3076 if test -n "$ac_config_commands"; then 3077 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 3078 fi 2246 config_files="$ac_config_files" 2247 2248 _ACEOF 3079 2249 3080 2250 cat >>$CONFIG_STATUS <<\_ACEOF 3081 3082 2251 ac_cs_usage="\ 3083 2252 \`$as_me' instantiates files from templates according to the … … 3087 2256 3088 2257 -h, --help print this help, then exit 3089 -V, --version print version number , then exit2258 -V, --version print version number and configuration settings, then exit 3090 2259 -q, --quiet do not print progress messages 3091 2260 -d, --debug don't remove temporary files … … 3098 2267 3099 2268 Report bugs to <bug-autoconf@gnu.org>." 3100 _ACEOF 3101 2269 2270 _ACEOF 3102 2271 cat >>$CONFIG_STATUS <<_ACEOF 3103 2272 ac_cs_version="\\ 3104 2273 config.status 3105 configured by $0, generated by GNU Autoconf 2. 59,3106 with options \\"`echo "$ac_configure_args" | sed 's/ [\\""\`\$]/\\\\&/g'`\\"3107 3108 Copyright (C) 200 3Free Software Foundation, Inc.2274 configured by $0, generated by GNU Autoconf 2.61, 2275 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 2276 2277 Copyright (C) 2006 Free Software Foundation, Inc. 3109 2278 This config.status script is free software; the Free Software Foundation 3110 2279 gives unlimited permission to copy, distribute and modify it." 3111 srcdir=$srcdir 2280 2281 ac_pwd='$ac_pwd' 2282 srcdir='$srcdir' 3112 2283 _ACEOF 3113 2284 … … 3120 2291 case $1 in 3121 2292 --*=*) 3122 ac_option=`expr " x$1" : 'x\([^=]*\)='`3123 ac_optarg=`expr " x$1" : 'x[^=]*=\(.*\)'`2293 ac_option=`expr "X$1" : 'X\([^=]*\)='` 2294 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 3124 2295 ac_shift=: 3125 2296 ;; 3126 -*)2297 *) 3127 2298 ac_option=$1 3128 2299 ac_optarg=$2 3129 2300 ac_shift=shift 3130 2301 ;; 3131 *) # This is not an option, so the user has probably given explicit3132 # arguments.3133 ac_option=$13134 ac_need_defaults=false;;3135 2302 esac 3136 2303 3137 2304 case $ac_option in 3138 2305 # Handling of the options. 3139 _ACEOF3140 cat >>$CONFIG_STATUS <<\_ACEOF3141 2306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3142 2307 ac_cs_recheck=: ;; 3143 --version | --vers* | -V ) 3144 echo "$ac_cs_version"; exit 0 ;; 3145 --he | --h) 3146 # Conflict between --help and --header 3147 { { echo "$as_me:$LINENO: error: ambiguous option: $1 3148 Try \`$0 --help' for more information." >&5 3149 echo "$as_me: error: ambiguous option: $1 3150 Try \`$0 --help' for more information." >&2;} 3151 { (exit 1); exit 1; }; };; 3152 --help | --hel | -h ) 3153 echo "$ac_cs_usage"; exit 0 ;; 3154 --debug | --d* | -d ) 2308 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 2309 echo "$ac_cs_version"; exit ;; 2310 --debug | --debu | --deb | --de | --d | -d ) 3155 2311 debug=: ;; 3156 2312 --file | --fil | --fi | --f ) … … 3158 2314 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 3159 2315 ac_need_defaults=false;; 3160 --header | --heade | --head | --hea ) 3161 $ac_shift 3162 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 3163 ac_need_defaults=false;; 2316 --he | --h | --help | --hel | -h ) 2317 echo "$ac_cs_usage"; exit ;; 3164 2318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3165 2319 | -silent | --silent | --silen | --sile | --sil | --si | --s) … … 3167 2321 3168 2322 # This is an error. 3169 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 3170 Try \`$0 --help' for more information." >&5 3171 echo "$as_me: error: unrecognized option: $1 3172 Try \`$0 --help' for more information." >&2;} 2323 -*) { echo "$as_me: error: unrecognized option: $1 2324 Try \`$0 --help' for more information." >&2 3173 2325 { (exit 1); exit 1; }; } ;; 3174 2326 3175 *) ac_config_targets="$ac_config_targets $1" ;; 2327 *) ac_config_targets="$ac_config_targets $1" 2328 ac_need_defaults=false ;; 3176 2329 3177 2330 esac … … 3189 2342 cat >>$CONFIG_STATUS <<_ACEOF 3190 2343 if \$ac_cs_recheck; then 3191 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 3192 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3193 fi 3194 3195 _ACEOF 3196 3197 3198 3199 3200 2344 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 2345 CONFIG_SHELL=$SHELL 2346 export CONFIG_SHELL 2347 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 2348 fi 2349 2350 _ACEOF 3201 2351 cat >>$CONFIG_STATUS <<\_ACEOF 2352 exec 5>>config.log 2353 { 2354 echo 2355 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 2356 ## Running $as_me. ## 2357 _ASBOX 2358 echo "$ac_log" 2359 } >&5 2360 2361 _ACEOF 2362 cat >>$CONFIG_STATUS <<_ACEOF 2363 _ACEOF 2364 2365 cat >>$CONFIG_STATUS <<\_ACEOF 2366 2367 # Handling of arguments. 3202 2368 for ac_config_target in $ac_config_targets 3203 2369 do 3204 case "$ac_config_target"in3205 # Handling of arguments.3206 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;3207 "pxeconfig" ) CONFIG_FILES="$CONFIG_FILES pxeconfig" ;;3208 "pxeconfigd" ) CONFIG_FILES="$CONFIG_FILES pxeconfigd" ;;3209 "hexls" ) CONFIG_FILES="$CONFIG_FILES hexls" ;;3210 "examples/pxeconfigd.xinetd" ) CONFIG_FILES="$CONFIG_FILES examples/pxeconfigd.xinetd" ;; 2370 case $ac_config_target in 2371 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 2372 "pxeconfig") CONFIG_FILES="$CONFIG_FILES pxeconfig" ;; 2373 "pxeconfigd") CONFIG_FILES="$CONFIG_FILES pxeconfigd" ;; 2374 "hexls") CONFIG_FILES="$CONFIG_FILES hexls" ;; 2375 "examples/pxeconfigd.xinetd") CONFIG_FILES="$CONFIG_FILES examples/pxeconfigd.xinetd" ;; 2376 3211 2377 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 3212 2378 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} … … 3214 2380 esac 3215 2381 done 2382 3216 2383 3217 2384 # If the user did not use the arguments to specify the items to instantiate, … … 3224 2391 3225 2392 # Have a temporary directory for convenience. Make it in the build tree 3226 # simply because there is no reason to putit here, and in addition,2393 # simply because there is no reason against having it here, and in addition, 3227 2394 # creating and moving files from /tmp can sometimes cause problems. 3228 # Create a temporary directory, and hook for its removal unless debugging. 2395 # Hook for its removal unless debugging. 2396 # Note that there is a small window in which the directory will not be cleaned: 2397 # after its creation but before its name has been assigned to `$tmp'. 3229 2398 $debug || 3230 2399 { 3231 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 2400 tmp= 2401 trap 'exit_status=$? 2402 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 2403 ' 0 3232 2404 trap '{ (exit 1); exit 1; }' 1 2 13 15 3233 2405 } 3234 3235 2406 # Create a (secure) tmp directory for tmp files. 3236 2407 3237 2408 { 3238 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&2409 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 3239 2410 test -n "$tmp" && test -d "$tmp" 3240 2411 } || 3241 2412 { 3242 tmp=./conf stat$$-$RANDOM3243 (umask 077 && mkdir $tmp)2413 tmp=./conf$$-$RANDOM 2414 (umask 077 && mkdir "$tmp") 3244 2415 } || 3245 2416 { … … 3248 2419 } 3249 2420 3250 _ACEOF3251 3252 cat >>$CONFIG_STATUS <<_ACEOF3253 3254 2421 # 3255 # CONFIG_FILES section.2422 # Set up the sed scripts for CONFIG_FILES section. 3256 2423 # 3257 2424 3258 2425 # No need to generate the scripts if there are no CONFIG_FILES. 3259 2426 # This happens for instance when ./config.status config.h 3260 if test -n "\$CONFIG_FILES"; then 3261 # Protect against being on the right side of a sed subst in config.status. 3262 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 3263 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 3264 s,@SHELL@,$SHELL,;t t 3265 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 3266 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 3267 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 3268 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 3269 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 3270 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 3271 s,@exec_prefix@,$exec_prefix,;t t 3272 s,@prefix@,$prefix,;t t 3273 s,@program_transform_name@,$program_transform_name,;t t 3274 s,@bindir@,$bindir,;t t 3275 s,@sbindir@,$sbindir,;t t 3276 s,@libexecdir@,$libexecdir,;t t 3277 s,@datadir@,$datadir,;t t 3278 s,@sysconfdir@,$sysconfdir,;t t 3279 s,@sharedstatedir@,$sharedstatedir,;t t 3280 s,@localstatedir@,$localstatedir,;t t 3281 s,@libdir@,$libdir,;t t 3282 s,@includedir@,$includedir,;t t 3283 s,@oldincludedir@,$oldincludedir,;t t 3284 s,@infodir@,$infodir,;t t 3285 s,@mandir@,$mandir,;t t 3286 s,@build_alias@,$build_alias,;t t 3287 s,@host_alias@,$host_alias,;t t 3288 s,@target_alias@,$target_alias,;t t 3289 s,@DEFS@,$DEFS,;t t 3290 s,@ECHO_C@,$ECHO_C,;t t 3291 s,@ECHO_N@,$ECHO_N,;t t 3292 s,@ECHO_T@,$ECHO_T,;t t 3293 s,@LIBS@,$LIBS,;t t 3294 s,@pyexecdir@,$pyexecdir,;t t 3295 s,@PYTHON@,$PYTHON,;t t 3296 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t 3297 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t 3298 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t 3299 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t 3300 s,@pythondir@,$pythondir,;t t 3301 s,@pkgpythondir@,$pkgpythondir,;t t 3302 s,@pkgpyexecdir@,$pkgpyexecdir,;t t 3303 s,@CC@,$CC,;t t 3304 s,@CFLAGS@,$CFLAGS,;t t 3305 s,@LDFLAGS@,$LDFLAGS,;t t 3306 s,@CPPFLAGS@,$CPPFLAGS,;t t 3307 s,@ac_ct_CC@,$ac_ct_CC,;t t 3308 s,@EXEEXT@,$EXEEXT,;t t 3309 s,@OBJEXT@,$OBJEXT,;t t 3310 s,@CPP@,$CPP,;t t 3311 s,@EGREP@,$EGREP,;t t 3312 s,@DEBUG@,$DEBUG,;t t 3313 s,@pxeconfig_conf@,$pxeconfig_conf,;t t 3314 s,@SYSTEM_PXECONFIG_CONF@,$SYSTEM_PXECONFIG_CONF,;t t 3315 s,@LIBOBJS@,$LIBOBJS,;t t 3316 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 3317 CEOF 3318 3319 _ACEOF 3320 3321 cat >>$CONFIG_STATUS <<\_ACEOF 3322 # Split the substitutions into bite-sized pieces for seds with 3323 # small command number limits, like on Digital OSF/1 and HP-UX. 3324 ac_max_sed_lines=48 3325 ac_sed_frag=1 # Number of current file. 3326 ac_beg=1 # First line for current file. 3327 ac_end=$ac_max_sed_lines # Line after last line for current file. 3328 ac_more_lines=: 3329 ac_sed_cmds= 3330 while $ac_more_lines; do 3331 if test $ac_beg -gt 1; then 3332 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3333 else 3334 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 2427 if test -n "$CONFIG_FILES"; then 2428 2429 _ACEOF 2430 2431 2432 2433 ac_delim='%!_!# ' 2434 for ac_last_try in false false false false false :; do 2435 cat >conf$$subs.sed <<_ACEOF 2436 SHELL!$SHELL$ac_delim 2437 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 2438 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 2439 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 2440 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 2441 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 2442 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 2443 exec_prefix!$exec_prefix$ac_delim 2444 prefix!$prefix$ac_delim 2445 program_transform_name!$program_transform_name$ac_delim 2446 bindir!$bindir$ac_delim 2447 sbindir!$sbindir$ac_delim 2448 libexecdir!$libexecdir$ac_delim 2449 datarootdir!$datarootdir$ac_delim 2450 datadir!$datadir$ac_delim 2451 sysconfdir!$sysconfdir$ac_delim 2452 sharedstatedir!$sharedstatedir$ac_delim 2453 localstatedir!$localstatedir$ac_delim 2454 includedir!$includedir$ac_delim 2455 oldincludedir!$oldincludedir$ac_delim 2456 docdir!$docdir$ac_delim 2457 infodir!$infodir$ac_delim 2458 htmldir!$htmldir$ac_delim 2459 dvidir!$dvidir$ac_delim 2460 pdfdir!$pdfdir$ac_delim 2461 psdir!$psdir$ac_delim 2462 libdir!$libdir$ac_delim 2463 localedir!$localedir$ac_delim 2464 mandir!$mandir$ac_delim 2465 DEFS!$DEFS$ac_delim 2466 ECHO_C!$ECHO_C$ac_delim 2467 ECHO_N!$ECHO_N$ac_delim 2468 ECHO_T!$ECHO_T$ac_delim 2469 LIBS!$LIBS$ac_delim 2470 build_alias!$build_alias$ac_delim 2471 host_alias!$host_alias$ac_delim 2472 target_alias!$target_alias$ac_delim 2473 pyexecdir!$pyexecdir$ac_delim 2474 PYTHON!$PYTHON$ac_delim 2475 PYTHON_VERSION!$PYTHON_VERSION$ac_delim 2476 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim 2477 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim 2478 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim 2479 pythondir!$pythondir$ac_delim 2480 pkgpythondir!$pkgpythondir$ac_delim 2481 pkgpyexecdir!$pkgpyexecdir$ac_delim 2482 DEBUG!$DEBUG$ac_delim 2483 pxeconfig_conf!$pxeconfig_conf$ac_delim 2484 SYSTEM_PXECONFIG_CONF!$SYSTEM_PXECONFIG_CONF$ac_delim 2485 LIBOBJS!$LIBOBJS$ac_delim 2486 LTLIBOBJS!$LTLIBOBJS$ac_delim 2487 _ACEOF 2488 2489 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then 2490 break 2491 elif $ac_last_try; then 2492 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 2493 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 2494 { (exit 1); exit 1; }; } 2495 else 2496 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 2497 fi 2498 done 2499 2500 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 2501 if test -n "$ac_eof"; then 2502 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 2503 ac_eof=`expr $ac_eof + 1` 2504 fi 2505 2506 cat >>$CONFIG_STATUS <<_ACEOF 2507 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 2508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 2509 _ACEOF 2510 sed ' 2511 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 2512 s/^/s,@/; s/!/@,|#_!!_#|/ 2513 :n 2514 t n 2515 s/'"$ac_delim"'$/,g/; t 2516 s/$/\\/; p 2517 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 2518 ' >>$CONFIG_STATUS <conf$$subs.sed 2519 rm -f conf$$subs.sed 2520 cat >>$CONFIG_STATUS <<_ACEOF 2521 :end 2522 s/|#_!!_#|//g 2523 CEOF$ac_eof 2524 _ACEOF 2525 2526 2527 # VPATH may cause trouble with some makes, so we remove $(srcdir), 2528 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 2529 # trailing colons and then remove the whole line if VPATH becomes empty 2530 # (actually we leave an empty line to preserve line numbers). 2531 if test "x$srcdir" = x.; then 2532 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 2533 s/:*\$(srcdir):*/:/ 2534 s/:*\${srcdir}:*/:/ 2535 s/:*@srcdir@:*/:/ 2536 s/^\([^=]*=[ ]*\):*/\1/ 2537 s/:*$// 2538 s/^[^=]*=[ ]*$// 2539 }' 2540 fi 2541 2542 cat >>$CONFIG_STATUS <<\_ACEOF 2543 fi # test -n "$CONFIG_FILES" 2544 2545 2546 for ac_tag in :F $CONFIG_FILES 2547 do 2548 case $ac_tag in 2549 :[FHLC]) ac_mode=$ac_tag; continue;; 2550 esac 2551 case $ac_mode$ac_tag in 2552 :[FHL]*:*);; 2553 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 2554 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 2555 { (exit 1); exit 1; }; };; 2556 :[FH]-) ac_tag=-:-;; 2557 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 2558 esac 2559 ac_save_IFS=$IFS 2560 IFS=: 2561 set x $ac_tag 2562 IFS=$ac_save_IFS 2563 shift 2564 ac_file=$1 2565 shift 2566 2567 case $ac_mode in 2568 :L) ac_source=$1;; 2569 :[FH]) 2570 ac_file_inputs= 2571 for ac_f 2572 do 2573 case $ac_f in 2574 -) ac_f="$tmp/stdin";; 2575 *) # Look for the file first in the build tree, then in the source tree 2576 # (if the path is not absolute). The absolute path cannot be DOS-style, 2577 # because $ac_f cannot contain `:'. 2578 test -f "$ac_f" || 2579 case $ac_f in 2580 [\\/$]*) false;; 2581 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 2582 esac || 2583 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 2584 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 2585 { (exit 1); exit 1; }; };; 2586 esac 2587 ac_file_inputs="$ac_file_inputs $ac_f" 2588 done 2589 2590 # Let's still pretend it is `configure' which instantiates (i.e., don't 2591 # use $as_me), people would be surprised to read: 2592 # /* config.h. Generated by config.status. */ 2593 configure_input="Generated from "`IFS=: 2594 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 2595 if test x"$ac_file" != x-; then 2596 configure_input="$ac_file. $configure_input" 2597 { echo "$as_me:$LINENO: creating $ac_file" >&5 2598 echo "$as_me: creating $ac_file" >&6;} 3335 2599 fi 3336 if test ! -s $tmp/subs.frag; then 3337 ac_more_lines=false 3338 else 3339 # The purpose of the label and of the branching condition is to 3340 # speed up the sed processing (if there are no `@' at all, there 3341 # is no need to browse any of the substitutions). 3342 # These are the two extra sed commands mentioned above. 3343 (echo ':t 3344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 3345 if test -z "$ac_sed_cmds"; then 3346 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 3347 else 3348 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 3349 fi 3350 ac_sed_frag=`expr $ac_sed_frag + 1` 3351 ac_beg=$ac_end 3352 ac_end=`expr $ac_end + $ac_max_sed_lines` 3353 fi 3354 done 3355 if test -z "$ac_sed_cmds"; then 3356 ac_sed_cmds=cat 3357 fi 3358 fi # test -n "$CONFIG_FILES" 3359 3360 _ACEOF 3361 cat >>$CONFIG_STATUS <<\_ACEOF 3362 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 3363 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3364 case $ac_file in 3365 - | *:- | *:-:* ) # input from stdin 3366 cat >$tmp/stdin 3367 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3368 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3369 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3370 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3371 * ) ac_file_in=$ac_file.in ;; 2600 2601 case $ac_tag in 2602 *:-:* | *:-) cat >"$tmp/stdin";; 2603 esac 2604 ;; 3372 2605 esac 3373 2606 3374 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 3375 ac_dir=`(dirname "$ac_file") 2>/dev/null || 2607 ac_dir=`$as_dirname -- "$ac_file" || 3376 2608 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3377 2609 X"$ac_file" : 'X\(//\)[^/]' \| \ 3378 2610 X"$ac_file" : 'X\(//\)$' \| \ 3379 X"$ac_file" : 'X\(/\)' \| \ 3380 . : '\(.\)' 2>/dev/null || 2611 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 3381 2612 echo X"$ac_file" | 3382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3383 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3384 /^X\(\/\/\)$/{ s//\1/; q; } 3385 /^X\(\/\).*/{ s//\1/; q; } 3386 s/.*/./; q'` 3387 { if $as_mkdir_p; then 3388 mkdir -p "$ac_dir" 3389 else 3390 as_dir="$ac_dir" 2613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2614 s//\1/ 2615 q 2616 } 2617 /^X\(\/\/\)[^/].*/{ 2618 s//\1/ 2619 q 2620 } 2621 /^X\(\/\/\)$/{ 2622 s//\1/ 2623 q 2624 } 2625 /^X\(\/\).*/{ 2626 s//\1/ 2627 q 2628 } 2629 s/.*/./; q'` 2630 { as_dir="$ac_dir" 2631 case $as_dir in #( 2632 -*) as_dir=./$as_dir;; 2633 esac 2634 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 3391 2635 as_dirs= 3392 while test ! -d "$as_dir"; do 3393 as_dirs="$as_dir $as_dirs" 3394 as_dir=`(dirname "$as_dir") 2>/dev/null || 2636 while :; do 2637 case $as_dir in #( 2638 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 2639 *) as_qdir=$as_dir;; 2640 esac 2641 as_dirs="'$as_qdir' $as_dirs" 2642 as_dir=`$as_dirname -- "$as_dir" || 3395 2643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3396 2644 X"$as_dir" : 'X\(//\)[^/]' \| \ 3397 2645 X"$as_dir" : 'X\(//\)$' \| \ 3398 X"$as_dir" : 'X\(/\)' \| \ 3399 . : '\(.\)' 2>/dev/null || 2646 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3400 2647 echo X"$as_dir" | 3401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3402 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3403 /^X\(\/\/\)$/{ s//\1/; q; } 3404 /^X\(\/\).*/{ s//\1/; q; } 3405 s/.*/./; q'` 2648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2649 s//\1/ 2650 q 2651 } 2652 /^X\(\/\/\)[^/].*/{ 2653 s//\1/ 2654 q 2655 } 2656 /^X\(\/\/\)$/{ 2657 s//\1/ 2658 q 2659 } 2660 /^X\(\/\).*/{ 2661 s//\1/ 2662 q 2663 } 2664 s/.*/./; q'` 2665 test -d "$as_dir" && break 3406 2666 done 3407 test ! -n "$as_dirs" || mkdir $as_dirs3408 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&53409 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}2667 test -z "$as_dirs" || eval "mkdir $as_dirs" 2668 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 2669 echo "$as_me: error: cannot create directory $as_dir" >&2;} 3410 2670 { (exit 1); exit 1; }; }; } 3411 3412 2671 ac_builddir=. 3413 2672 3414 if test "$ac_dir" != .; then 2673 case "$ac_dir" in 2674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2675 *) 3415 2676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 3416 # A "../" for each directory in $ac_dir_suffix. 3417 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 3418 else 3419 ac_dir_suffix= ac_top_builddir= 3420 fi 2677 # A ".." for each directory in $ac_dir_suffix. 2678 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 2679 case $ac_top_builddir_sub in 2680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2682 esac ;; 2683 esac 2684 ac_abs_top_builddir=$ac_pwd 2685 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2686 # for backward compatibility: 2687 ac_top_builddir=$ac_top_build_prefix 3421 2688 3422 2689 case $srcdir in 3423 .) # No --srcdir option.We are building in place.2690 .) # We are building in place. 3424 2691 ac_srcdir=. 3425 if test -z "$ac_top_builddir"; then 3426 ac_top_srcdir=. 3427 else 3428 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 3429 fi ;; 3430 [\\/]* | ?:[\\/]* ) # Absolute path. 2692 ac_top_srcdir=$ac_top_builddir_sub 2693 ac_abs_top_srcdir=$ac_pwd ;; 2694 [\\/]* | ?:[\\/]* ) # Absolute name. 3431 2695 ac_srcdir=$srcdir$ac_dir_suffix; 3432 ac_top_srcdir=$srcdir ;; 3433 *) # Relative path. 3434 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 3435 ac_top_srcdir=$ac_top_builddir$srcdir ;; 2696 ac_top_srcdir=$srcdir 2697 ac_abs_top_srcdir=$srcdir ;; 2698 *) # Relative name. 2699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2700 ac_top_srcdir=$ac_top_build_prefix$srcdir 2701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 3436 2702 esac 3437 3438 # Do not use `cd foo && pwd` to compute absolute paths, because 3439 # the directories may not exist. 3440 case `pwd` in 3441 .) ac_abs_builddir="$ac_dir";; 3442 *) 3443 case "$ac_dir" in 3444 .) ac_abs_builddir=`pwd`;; 3445 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 3446 *) ac_abs_builddir=`pwd`/"$ac_dir";; 3447 esac;; 2703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2704 2705 2706 case $ac_mode in 2707 :F) 2708 # 2709 # CONFIG_FILE 2710 # 2711 2712 _ACEOF 2713 2714 cat >>$CONFIG_STATUS <<\_ACEOF 2715 # If the template does not know about datarootdir, expand it. 2716 # FIXME: This hack should be removed a few years after 2.60. 2717 ac_datarootdir_hack=; ac_datarootdir_seen= 2718 2719 case `sed -n '/datarootdir/ { 2720 p 2721 q 2722 } 2723 /@datadir@/p 2724 /@docdir@/p 2725 /@infodir@/p 2726 /@localedir@/p 2727 /@mandir@/p 2728 ' $ac_file_inputs` in 2729 *datarootdir*) ac_datarootdir_seen=yes;; 2730 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 2731 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 2732 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 2733 _ACEOF 2734 cat >>$CONFIG_STATUS <<_ACEOF 2735 ac_datarootdir_hack=' 2736 s&@datadir@&$datadir&g 2737 s&@docdir@&$docdir&g 2738 s&@infodir@&$infodir&g 2739 s&@localedir@&$localedir&g 2740 s&@mandir@&$mandir&g 2741 s&\\\${datarootdir}&$datarootdir&g' ;; 3448 2742 esac 3449 case $ac_abs_builddir in 3450 .) ac_abs_top_builddir=${ac_top_builddir}.;; 3451 *) 3452 case ${ac_top_builddir}. in 3453 .) ac_abs_top_builddir=$ac_abs_builddir;; 3454 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 3455 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 3456 esac;; 3457 esac 3458 case $ac_abs_builddir in 3459 .) ac_abs_srcdir=$ac_srcdir;; 3460 *) 3461 case $ac_srcdir in 3462 .) ac_abs_srcdir=$ac_abs_builddir;; 3463 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 3464 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 3465 esac;; 3466 esac 3467 case $ac_abs_builddir in 3468 .) ac_abs_top_srcdir=$ac_top_srcdir;; 3469 *) 3470 case $ac_top_srcdir in 3471 .) ac_abs_top_srcdir=$ac_abs_builddir;; 3472 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 3473 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 3474 esac;; 3475 esac 3476 3477 3478 3479 # Let's still pretend it is `configure' which instantiates (i.e., don't 3480 # use $as_me), people would be surprised to read: 3481 # /* config.h. Generated by config.status. */ 3482 if test x"$ac_file" = x-; then 3483 configure_input= 3484 else 3485 configure_input="$ac_file. " 3486 fi 3487 configure_input=$configure_input"Generated from `echo $ac_file_in | 3488 sed 's,.*/,,'` by configure." 3489 3490 # First look for the input files in the build tree, otherwise in the 3491 # src tree. 3492 ac_file_inputs=`IFS=: 3493 for f in $ac_file_in; do 3494 case $f in 3495 -) echo $tmp/stdin ;; 3496 [\\/$]*) 3497 # Absolute (can't be DOS-style, as IFS=:) 3498 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3499 echo "$as_me: error: cannot find input file: $f" >&2;} 3500 { (exit 1); exit 1; }; } 3501 echo "$f";; 3502 *) # Relative 3503 if test -f "$f"; then 3504 # Build tree 3505 echo "$f" 3506 elif test -f "$srcdir/$f"; then 3507 # Source tree 3508 echo "$srcdir/$f" 3509 else 3510 # /dev/null tree 3511 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3512 echo "$as_me: error: cannot find input file: $f" >&2;} 3513 { (exit 1); exit 1; }; } 3514 fi;; 3515 esac 3516 done` || { (exit 1); exit 1; } 3517 3518 if test x"$ac_file" != x-; then 3519 { echo "$as_me:$LINENO: creating $ac_file" >&5 3520 echo "$as_me: creating $ac_file" >&6;} 3521 rm -f "$ac_file" 3522 fi 3523 _ACEOF 2743 _ACEOF 2744 2745 # Neutralize VPATH when `$srcdir' = `.'. 2746 # Shell code in configure.ac might set extrasub. 2747 # FIXME: do we really want to maintain this feature? 3524 2748 cat >>$CONFIG_STATUS <<_ACEOF 3525 2749 sed "$ac_vpsub … … 3529 2753 :t 3530 2754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3531 s,@configure_input@,$configure_input,;t t 3532 s,@srcdir@,$ac_srcdir,;t t 3533 s,@abs_srcdir@,$ac_abs_srcdir,;t t 3534 s,@top_srcdir@,$ac_top_srcdir,;t t 3535 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 3536 s,@builddir@,$ac_builddir,;t t 3537 s,@abs_builddir@,$ac_abs_builddir,;t t 3538 s,@top_builddir@,$ac_top_builddir,;t t 3539 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 3540 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 3541 rm -f $tmp/stdin 3542 if test x"$ac_file" != x-; then 3543 mv $tmp/out $ac_file 3544 else 3545 cat $tmp/out 3546 rm -f $tmp/out 3547 fi 3548 3549 done 3550 _ACEOF 3551 3552 cat >>$CONFIG_STATUS <<\_ACEOF 2755 s&@configure_input@&$configure_input&;t t 2756 s&@top_builddir@&$ac_top_builddir_sub&;t t 2757 s&@srcdir@&$ac_srcdir&;t t 2758 s&@abs_srcdir@&$ac_abs_srcdir&;t t 2759 s&@top_srcdir@&$ac_top_srcdir&;t t 2760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 2761 s&@builddir@&$ac_builddir&;t t 2762 s&@abs_builddir@&$ac_abs_builddir&;t t 2763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 2764 $ac_datarootdir_hack 2765 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 2766 2767 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 2768 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 2769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 2770 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 2771 which seems to be undefined. Please make sure it is defined." >&5 2772 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 2773 which seems to be undefined. Please make sure it is defined." >&2;} 2774 2775 rm -f "$tmp/stdin" 2776 case $ac_file in 2777 -) cat "$tmp/out"; rm -f "$tmp/out";; 2778 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 2779 esac 2780 ;; 2781 2782 2783 2784 esac 2785 2786 done # for ac_tag 2787 3553 2788 3554 2789 { (exit 0); exit 0; } -
trunk/configure.in
r116 r120 16 16 17 17 AM_PATH_PYTHON 18 AC_PROG_GCC_TRADITIONAL18 #AC_PROG_GCC_TRADITIONAL 19 19 20 20 if test "x$DEBUG" = "x";then -
trunk/debian/changelog
r116 r120 1 pxeconfig (2.0.0-1) stable; urgency=low 2 3 * New version, we a lot of improvements. See Changelog 4 5 -- Bas van der Vlies <basv@sara.nl> Fri, 11 Apr 2008 10:46:43 +0200 6 1 7 pxeconfig (1.0.1-1) stable; urgency=low 2 8 -
trunk/pxeconfig.conf
r117 r120 1 1 [DEFAULT] 2 2 pxe_config_dir : ./pxelinux.cfg 3 debug : 13 debug : 0 -
trunk/pxeconfig.in
r119 r120 88 88 INTERACTIVE='interactive' 89 89 EQUALWIDTH='equalwidth' 90 VERSION=' 1.1.0'90 VERSION='2.0.0' 91 91 92 92 SHORTOPT_LIST='b:e:f:hin:s:rwvH:V' … … 98 98 def verbose(str): 99 99 if VERBOSE: 100 print '%s' 100 print '%s' %str 101 101 102 102 class PxeConfig(Exception): … … 239 239 else it must be a valid number. 240 240 """ 241 242 241 try: 243 242 n = int(number_str) … … 304 303 manage_links(binfo) 305 304 306 def check_ command_line(binfo, hostnames):305 def check_args(binfo, hostnames): 307 306 """ 308 307 Do you we have the right and propper values … … 310 309 ### check_filename 311 310 # 311 str = 'check_args: ' 312 verbose(str) 312 313 try: 313 314 if not os.path.isfile(os.path.join(PXE_CONF_DIR, binfo[FILENAME])): … … 329 330 330 331 if binfo.has_key(BASENAME): 331 network_number = False332 set_padding(binfo) 332 333 create_links = base_2_net 333 334 334 335 elif binfo.has_key(NETWORK): 335 network_number = True 336 binfo[START] = check_number(binfo[START], True) 337 binfo[END] = check_number(binfo[END], True) 336 338 create_links = manage_links 337 339 … … 340 342 raise PxeConfig, error 341 343 342 binfo[START] = check_number(binfo[START], network_number)343 binfo[END] = check_number(binfo[END], network_number)344 345 344 if DEBUG: 346 345 print binfo … … 348 347 create_links(binfo) 349 348 350 def set_padding(binfo, start, end): 351 """ 352 find out th 353 """ 354 if len(start) > 1 and start[0] == '0': 355 binfo[EQUALWIDTH] = True 356 elif end[0] == '0': 357 binfo[EQUALWIDTH] = True 358 359 if len(start) == len(end): 360 a =1 361 362 363 def parse_hostrange(binfo, arg): 349 def set_padding(binfo): 350 """ 351 binfo : boot info 352 network_number : must we check if start,end values are 353 valid network numbers 354 return: 355 - if equal_width is requested then the length will be set to end value 356 - if start value length > 1 and start with a zero (0), width is set to 357 the end value 358 - if end value starts with a zero (0), width will be set to the end 359 value 360 """ 361 start_str = binfo[START] 362 end_str = binfo[END] 363 364 print 'padding ', type(start_str), type(end_str) 365 366 start = check_number(start_str, False) 367 end = check_number(end_str, False) 368 369 370 print type(start_str), type(end_str) 371 372 373 if binfo[EQUALWIDTH][0] == True: 374 binfo[EQUALWIDTH][1] = len(end_str) 375 376 elif len(start_str) > 1 and start_str[0] == '0': 377 binfo[EQUALWIDTH] = [ True, len(end_str) ] 378 379 elif end_str[0] == '0': 380 binfo[EQUALWIDTH] = [ True, len(end_str) ] 381 382 binfo[START] = start 383 binfo[END] = end 384 385 386 def parse_host_range(binfo, arg): 364 387 """ 365 388 Parse if arg is of format <digit-digit>, if it starts … … 374 397 raise PxeConfig, error 375 398 376 start = l[0] 377 end = l[1] 378 379 380 binfo[START] = check_number(start, False) 381 binfo[END] = check_number(end, False) 382 383 def check_args(argv, binfo): 399 binfo[START] = l[0] 400 binfo[END] = l[1] 401 402 403 def parse_args(argv, binfo): 384 404 """ 385 405 This function parses the command line options and returns the rest as … … 439 459 440 460 elif opt in ['-w', '--equal-width']: 441 binfo[EQUALWIDTH] = True461 binfo[EQUALWIDTH] = [True, 0] 442 462 443 463 elif opt in ['-v', '--verbose']: … … 445 465 446 466 elif opt in ['-H', '--host-range']: 447 parse_host range(binfo, value)467 parse_host_range(binfo, value) 448 468 449 469 elif opt in ['-V', '--version']: … … 451 471 sys.exit(0) 452 472 453 check_ command_line(binfo, args)473 check_args(binfo, args) 454 474 455 475 def host_2_net(hosts, binfo): … … 483 503 raise PxeConfig, error 484 504 485 if binfo[EQUALWIDTH]:486 width = len(str(end))487 488 505 hostnames = list() 489 506 for i in xrange(start, end + 1): 490 if binfo[EQUALWIDTH] :491 hostname = '%s%0*d' %(binfo[BASENAME], width, i)507 if binfo[EQUALWIDTH][0] == True: 508 hostname = '%s%0*d' %(binfo[BASENAME], binfo[EQUALWIDTH][1], i) 492 509 else: 493 510 hostname = '%s%d' %(binfo[BASENAME], i) … … 507 524 bootinfo = {} 508 525 bootinfo[REMOVE] = False 509 bootinfo[EQUALWIDTH] = False526 bootinfo[EQUALWIDTH] = [ False, 0 ] 510 527 511 528 configfile = '@pxeconfig_conf@' … … 522 539 PXE_CONF_DIR = os.path.realpath(PXE_CONF_DIR) 523 540 if not os.path.isdir(PXE_CONF_DIR): 524 print 'pxeconfig directory: %s does not exists' %(PXE_CONF_DIR) 525 sys.exit(1) 526 541 error = 'pxeconfig directory: %s does not exists' %(PXE_CONF_DIR) 542 raise PxeConfig, error 543 544 parse_args(sys.argv, bootinfo) 545 546 if __name__ == '__main__': 527 547 try: 528 check_args(sys.argv, bootinfo)548 main() 529 549 except PxeConfig, detail: 530 550 print detail 531 551 sys.exit(1) 532 533 if __name__ == '__main__':534 main() -
trunk/pxeconfigd.in
r108 r120 60 60 61 61 PXE_CONF_DIR = '/tftpboot/pxelinux.cfg' 62 VERSION = ' 1.0.0'62 VERSION = '2.0.0' 63 63 64 64 # Give the current time
Note: See TracChangeset
for help on using the changeset viewer.