jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1 | #! /bin/sh |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
jjako | a24c7ec | 2004-12-30 23:37:18 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.57 for openggsn 0.84. |
jjako | 5f1c397 | 2003-01-29 11:56:06 +0000 | [diff] [blame] | 4 | # |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5 | # Report bugs to <jj@openggsn.org>. |
| 6 | # |
| 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 8 | # Free Software Foundation, Inc. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
| 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23 | set -o posix |
| 24 | fi |
| 25 | |
| 26 | # Support unset when possible. |
| 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
| 46 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
| 223 | as_mkdir_p=false |
| 224 | fi |
| 225 | |
| 226 | as_executable_p="test -f" |
| 227 | |
| 228 | # Sed expression to map a string onto a valid CPP name. |
| 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 230 | |
| 231 | # Sed expression to map a string onto a valid variable name. |
| 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 233 | |
| 234 | |
| 235 | # IFS |
| 236 | # We need space, tab and new line, in precisely that order. |
| 237 | as_nl=' |
| 238 | ' |
| 239 | IFS=" $as_nl" |
| 240 | |
| 241 | # CDPATH. |
| 242 | $as_unset CDPATH |
| 243 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 244 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 245 | # Find the correct PATH separator. Usually this is `:', but |
| 246 | # DJGPP uses `;' like DOS. |
| 247 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 248 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 249 | case X$UNAME in |
| 250 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 251 | *) lt_cv_sys_path_separator=':' ;; |
| 252 | esac |
| 253 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
| 254 | fi |
| 255 | |
| 256 | |
| 257 | # Check that we are running under the correct shell. |
| 258 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 259 | |
| 260 | case X$ECHO in |
| 261 | X*--fallback-echo) |
| 262 | # Remove one level of quotation (which was required for Make). |
| 263 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 264 | ;; |
| 265 | esac |
| 266 | |
| 267 | echo=${ECHO-echo} |
| 268 | if test "X$1" = X--no-reexec; then |
| 269 | # Discard the --no-reexec flag, and continue. |
| 270 | shift |
| 271 | elif test "X$1" = X--fallback-echo; then |
| 272 | # Avoid inline document here, it may be left over |
| 273 | : |
| 274 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 275 | # Yippee, $echo works! |
| 276 | : |
| 277 | else |
| 278 | # Restart under the correct shell. |
| 279 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 280 | fi |
| 281 | |
| 282 | if test "X$1" = X--fallback-echo; then |
| 283 | # used as fallback echo |
| 284 | shift |
| 285 | cat <<EOF |
| 286 | |
| 287 | EOF |
| 288 | exit 0 |
| 289 | fi |
| 290 | |
| 291 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 292 | # if CDPATH is set. |
| 293 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 294 | |
| 295 | if test -z "$ECHO"; then |
| 296 | if test "X${echo_test_string+set}" != Xset; then |
| 297 | # find a string as large as possible, as long as the shell can cope with it |
| 298 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 299 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 300 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 301 | echo_test_string="`eval $cmd`" && |
| 302 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 303 | then |
| 304 | break |
| 305 | fi |
| 306 | done |
| 307 | fi |
| 308 | |
| 309 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 310 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 311 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 312 | : |
| 313 | else |
| 314 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 315 | # backslashes. This makes it impossible to quote backslashes using |
| 316 | # echo "$something" | sed 's/\\/\\\\/g' |
| 317 | # |
| 318 | # So, first we look for a working echo in the user's PATH. |
| 319 | |
| 320 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 321 | for dir in $PATH /usr/ucb; do |
| 322 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 323 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 324 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 325 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 326 | echo="$dir/echo" |
| 327 | break |
| 328 | fi |
| 329 | done |
| 330 | IFS="$save_ifs" |
| 331 | |
| 332 | if test "X$echo" = Xecho; then |
| 333 | # We didn't find a better echo, so look for alternatives. |
| 334 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 335 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 336 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 337 | # This shell has a builtin print -r that does the trick. |
| 338 | echo='print -r' |
| 339 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 340 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 341 | # If we have ksh, try running configure again with it. |
| 342 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 343 | export ORIGINAL_CONFIG_SHELL |
| 344 | CONFIG_SHELL=/bin/ksh |
| 345 | export CONFIG_SHELL |
| 346 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 347 | else |
| 348 | # Try using printf. |
| 349 | echo='printf %s\n' |
| 350 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 351 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 352 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 353 | # Cool, printf works |
| 354 | : |
| 355 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 356 | test "X$echo_testing_string" = 'X\t' && |
| 357 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 359 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 360 | export CONFIG_SHELL |
| 361 | SHELL="$CONFIG_SHELL" |
| 362 | export SHELL |
| 363 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 364 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 365 | test "X$echo_testing_string" = 'X\t' && |
| 366 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 367 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 368 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 369 | else |
| 370 | # maybe with a smaller string... |
| 371 | prev=: |
| 372 | |
| 373 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 374 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 375 | then |
| 376 | break |
| 377 | fi |
| 378 | prev="$cmd" |
| 379 | done |
| 380 | |
| 381 | if test "$prev" != 'sed 50q "$0"'; then |
| 382 | echo_test_string=`eval $prev` |
| 383 | export echo_test_string |
| 384 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 385 | else |
| 386 | # Oops. We lost completely, so just stick with echo. |
| 387 | echo=echo |
| 388 | fi |
| 389 | fi |
| 390 | fi |
| 391 | fi |
| 392 | fi |
| 393 | fi |
| 394 | |
| 395 | # Copy echo and quote the copy suitably for passing to libtool from |
| 396 | # the Makefile, instead of quoting the original, which is used later. |
| 397 | ECHO=$echo |
| 398 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 399 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 400 | fi |
| 401 | |
| 402 | |
| 403 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 404 | # Name of the host. |
| 405 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 406 | # so uname gets run too. |
| 407 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 408 | |
| 409 | exec 6>&1 |
| 410 | |
| 411 | # |
| 412 | # Initializations. |
| 413 | # |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 414 | ac_default_prefix=/usr/local |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 415 | ac_config_libobj_dir=. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 416 | cross_compiling=no |
| 417 | subdirs= |
| 418 | MFLAGS= |
| 419 | MAKEFLAGS= |
| 420 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 421 | |
| 422 | # Maximum number of lines to put in a shell here document. |
| 423 | # This variable seems obsolete. It should probably be removed, and |
| 424 | # only ac_max_sed_lines should be used. |
| 425 | : ${ac_max_here_lines=38} |
| 426 | |
| 427 | # Identity of this package. |
| 428 | PACKAGE_NAME='openggsn' |
| 429 | PACKAGE_TARNAME='openggsn' |
jjako | a24c7ec | 2004-12-30 23:37:18 +0000 | [diff] [blame^] | 430 | PACKAGE_VERSION='0.84' |
| 431 | PACKAGE_STRING='openggsn 0.84' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 432 | PACKAGE_BUGREPORT='jj@openggsn.org' |
| 433 | |
| 434 | ac_unique_file="gtp/gtp.c" |
| 435 | # Factoring default headers for most tests. |
| 436 | ac_includes_default="\ |
| 437 | #include <stdio.h> |
| 438 | #if HAVE_SYS_TYPES_H |
| 439 | # include <sys/types.h> |
| 440 | #endif |
| 441 | #if HAVE_SYS_STAT_H |
| 442 | # include <sys/stat.h> |
| 443 | #endif |
| 444 | #if STDC_HEADERS |
| 445 | # include <stdlib.h> |
| 446 | # include <stddef.h> |
| 447 | #else |
| 448 | # if HAVE_STDLIB_H |
| 449 | # include <stdlib.h> |
| 450 | # endif |
| 451 | #endif |
| 452 | #if HAVE_STRING_H |
| 453 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 454 | # include <memory.h> |
| 455 | # endif |
| 456 | # include <string.h> |
| 457 | #endif |
| 458 | #if HAVE_STRINGS_H |
| 459 | # include <strings.h> |
| 460 | #endif |
| 461 | #if HAVE_INTTYPES_H |
| 462 | # include <inttypes.h> |
| 463 | #else |
| 464 | # if HAVE_STDINT_H |
| 465 | # include <stdint.h> |
| 466 | # endif |
| 467 | #endif |
| 468 | #if HAVE_UNISTD_H |
| 469 | # include <unistd.h> |
| 470 | #endif" |
| 471 | |
jjako | e31b240 | 2004-12-30 23:07:42 +0000 | [diff] [blame] | 472 | 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK CPP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL EXEC_LDFLAGS EXEC_LDADD LIBOBJS PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM SET_MAKE DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXXDEPMODE LTLIBOBJS' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 473 | ac_subst_files='' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 474 | |
| 475 | # Initialize some variables set by options. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 476 | ac_init_help= |
| 477 | ac_init_version=false |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 478 | # The variables have the same names as the options, with |
| 479 | # dashes changed to underlines. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 480 | cache_file=/dev/null |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 481 | exec_prefix=NONE |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 482 | no_create= |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 483 | no_recursion= |
| 484 | prefix=NONE |
| 485 | program_prefix=NONE |
| 486 | program_suffix=NONE |
| 487 | program_transform_name=s,x,x, |
| 488 | silent= |
| 489 | site= |
| 490 | srcdir= |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 491 | verbose= |
| 492 | x_includes=NONE |
| 493 | x_libraries=NONE |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 494 | |
| 495 | # Installation directory options. |
| 496 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 497 | # and all the variables that are supposed to be based on exec_prefix |
| 498 | # by default will actually change. |
| 499 | # Use braces instead of parens because sh, perl, etc. also accept them. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 500 | bindir='${exec_prefix}/bin' |
| 501 | sbindir='${exec_prefix}/sbin' |
| 502 | libexecdir='${exec_prefix}/libexec' |
| 503 | datadir='${prefix}/share' |
| 504 | sysconfdir='${prefix}/etc' |
| 505 | sharedstatedir='${prefix}/com' |
| 506 | localstatedir='${prefix}/var' |
| 507 | libdir='${exec_prefix}/lib' |
| 508 | includedir='${prefix}/include' |
| 509 | oldincludedir='/usr/include' |
| 510 | infodir='${prefix}/info' |
| 511 | mandir='${prefix}/man' |
| 512 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 513 | ac_prev= |
| 514 | for ac_option |
| 515 | do |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 516 | # If the previous option needs an argument, assign it. |
| 517 | if test -n "$ac_prev"; then |
| 518 | eval "$ac_prev=\$ac_option" |
| 519 | ac_prev= |
| 520 | continue |
| 521 | fi |
| 522 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 523 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 524 | |
| 525 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 526 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 527 | case $ac_option in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 528 | |
| 529 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 530 | ac_prev=bindir ;; |
| 531 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 532 | bindir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 533 | |
| 534 | -build | --build | --buil | --bui | --bu) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 535 | ac_prev=build_alias ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 536 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 537 | build_alias=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 538 | |
| 539 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 540 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 541 | ac_prev=cache_file ;; |
| 542 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 543 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 544 | cache_file=$ac_optarg ;; |
| 545 | |
| 546 | --config-cache | -C) |
| 547 | cache_file=config.cache ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 548 | |
| 549 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 550 | ac_prev=datadir ;; |
| 551 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 552 | | --da=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 553 | datadir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 554 | |
| 555 | -disable-* | --disable-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 556 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 557 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 558 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 559 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 560 | { (exit 1); exit 1; }; } |
| 561 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 562 | eval "enable_$ac_feature=no" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 563 | |
| 564 | -enable-* | --enable-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 565 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 566 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 567 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 568 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 569 | { (exit 1); exit 1; }; } |
| 570 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 571 | case $ac_option in |
| 572 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 573 | *) ac_optarg=yes ;; |
| 574 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 575 | eval "enable_$ac_feature='$ac_optarg'" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 576 | |
| 577 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 578 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 579 | | --exec | --exe | --ex) |
| 580 | ac_prev=exec_prefix ;; |
| 581 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 582 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 583 | | --exec=* | --exe=* | --ex=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 584 | exec_prefix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 585 | |
| 586 | -gas | --gas | --ga | --g) |
| 587 | # Obsolete; use --with-gas. |
| 588 | with_gas=yes ;; |
| 589 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 590 | -help | --help | --hel | --he | -h) |
| 591 | ac_init_help=long ;; |
| 592 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 593 | ac_init_help=recursive ;; |
| 594 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 595 | ac_init_help=short ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 596 | |
| 597 | -host | --host | --hos | --ho) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 598 | ac_prev=host_alias ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 599 | -host=* | --host=* | --hos=* | --ho=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 600 | host_alias=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 601 | |
| 602 | -includedir | --includedir | --includedi | --included | --include \ |
| 603 | | --includ | --inclu | --incl | --inc) |
| 604 | ac_prev=includedir ;; |
| 605 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 606 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 607 | includedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 608 | |
| 609 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 610 | ac_prev=infodir ;; |
| 611 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 612 | infodir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 613 | |
| 614 | -libdir | --libdir | --libdi | --libd) |
| 615 | ac_prev=libdir ;; |
| 616 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 617 | libdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 618 | |
| 619 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 620 | | --libexe | --libex | --libe) |
| 621 | ac_prev=libexecdir ;; |
| 622 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 623 | | --libexe=* | --libex=* | --libe=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 624 | libexecdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 625 | |
| 626 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 627 | | --localstate | --localstat | --localsta | --localst \ |
| 628 | | --locals | --local | --loca | --loc | --lo) |
| 629 | ac_prev=localstatedir ;; |
| 630 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 631 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 632 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 633 | localstatedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 634 | |
| 635 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 636 | ac_prev=mandir ;; |
| 637 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 638 | mandir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 639 | |
| 640 | -nfp | --nfp | --nf) |
| 641 | # Obsolete; use --without-fp. |
| 642 | with_fp=no ;; |
| 643 | |
| 644 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 645 | | --no-cr | --no-c | -n) |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 646 | no_create=yes ;; |
| 647 | |
| 648 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 649 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 650 | no_recursion=yes ;; |
| 651 | |
| 652 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 653 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 654 | | --oldin | --oldi | --old | --ol | --o) |
| 655 | ac_prev=oldincludedir ;; |
| 656 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 657 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 658 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 659 | oldincludedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 660 | |
| 661 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 662 | ac_prev=prefix ;; |
| 663 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 664 | prefix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 665 | |
| 666 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 667 | | --program-pre | --program-pr | --program-p) |
| 668 | ac_prev=program_prefix ;; |
| 669 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 670 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 671 | program_prefix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 672 | |
| 673 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 674 | | --program-suf | --program-su | --program-s) |
| 675 | ac_prev=program_suffix ;; |
| 676 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 677 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 678 | program_suffix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 679 | |
| 680 | -program-transform-name | --program-transform-name \ |
| 681 | | --program-transform-nam | --program-transform-na \ |
| 682 | | --program-transform-n | --program-transform- \ |
| 683 | | --program-transform | --program-transfor \ |
| 684 | | --program-transfo | --program-transf \ |
| 685 | | --program-trans | --program-tran \ |
| 686 | | --progr-tra | --program-tr | --program-t) |
| 687 | ac_prev=program_transform_name ;; |
| 688 | -program-transform-name=* | --program-transform-name=* \ |
| 689 | | --program-transform-nam=* | --program-transform-na=* \ |
| 690 | | --program-transform-n=* | --program-transform-=* \ |
| 691 | | --program-transform=* | --program-transfor=* \ |
| 692 | | --program-transfo=* | --program-transf=* \ |
| 693 | | --program-trans=* | --program-tran=* \ |
| 694 | | --progr-tra=* | --program-tr=* | --program-t=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 695 | program_transform_name=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 696 | |
| 697 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 698 | | -silent | --silent | --silen | --sile | --sil) |
| 699 | silent=yes ;; |
| 700 | |
| 701 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 702 | ac_prev=sbindir ;; |
| 703 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 704 | | --sbi=* | --sb=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 705 | sbindir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 706 | |
| 707 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 708 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 709 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 710 | | --sha | --sh) |
| 711 | ac_prev=sharedstatedir ;; |
| 712 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 713 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 714 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 715 | | --sha=* | --sh=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 716 | sharedstatedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 717 | |
| 718 | -site | --site | --sit) |
| 719 | ac_prev=site ;; |
| 720 | -site=* | --site=* | --sit=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 721 | site=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 722 | |
| 723 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 724 | ac_prev=srcdir ;; |
| 725 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 726 | srcdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 727 | |
| 728 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 729 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 730 | ac_prev=sysconfdir ;; |
| 731 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 732 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 733 | sysconfdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 734 | |
| 735 | -target | --target | --targe | --targ | --tar | --ta | --t) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 736 | ac_prev=target_alias ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 737 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 738 | target_alias=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 739 | |
| 740 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 741 | verbose=yes ;; |
| 742 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 743 | -version | --version | --versio | --versi | --vers | -V) |
| 744 | ac_init_version=: ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 745 | |
| 746 | -with-* | --with-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 747 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 748 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 749 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 750 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 751 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 752 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 753 | case $ac_option in |
| 754 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 755 | *) ac_optarg=yes ;; |
| 756 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 757 | eval "with_$ac_package='$ac_optarg'" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 758 | |
| 759 | -without-* | --without-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 760 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 761 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 762 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 763 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 764 | { (exit 1); exit 1; }; } |
| 765 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 766 | eval "with_$ac_package=no" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 767 | |
| 768 | --x) |
| 769 | # Obsolete; use --with-x. |
| 770 | with_x=yes ;; |
| 771 | |
| 772 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 773 | | --x-incl | --x-inc | --x-in | --x-i) |
| 774 | ac_prev=x_includes ;; |
| 775 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 776 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 777 | x_includes=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 778 | |
| 779 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 780 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 781 | ac_prev=x_libraries ;; |
| 782 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 783 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 784 | x_libraries=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 785 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 786 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 787 | Try \`$0 --help' for more information." >&2 |
| 788 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 789 | ;; |
| 790 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 791 | *=*) |
| 792 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 793 | # Reject names that are not valid shell variable names. |
| 794 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 795 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 796 | { (exit 1); exit 1; }; } |
| 797 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 798 | eval "$ac_envvar='$ac_optarg'" |
| 799 | export $ac_envvar ;; |
| 800 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 801 | *) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 802 | # FIXME: should be removed in autoconf 3.0. |
| 803 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 804 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 805 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 806 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 807 | ;; |
| 808 | |
| 809 | esac |
| 810 | done |
| 811 | |
| 812 | if test -n "$ac_prev"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 813 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 814 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 815 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 816 | fi |
| 817 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 818 | # Be sure to have absolute paths. |
| 819 | for ac_var in exec_prefix prefix |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 820 | do |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 821 | eval ac_val=$`echo $ac_var` |
| 822 | case $ac_val in |
| 823 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 824 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 825 | { (exit 1); exit 1; }; };; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 826 | esac |
| 827 | done |
| 828 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 829 | # Be sure to have absolute paths. |
| 830 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 831 | localstatedir libdir includedir oldincludedir infodir mandir |
| 832 | do |
| 833 | eval ac_val=$`echo $ac_var` |
| 834 | case $ac_val in |
| 835 | [\\/$]* | ?:[\\/]* ) ;; |
| 836 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 837 | { (exit 1); exit 1; }; };; |
| 838 | esac |
| 839 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 840 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 841 | # There might be people who depend on the old broken behavior: `$host' |
| 842 | # used to hold the argument of --host etc. |
| 843 | # FIXME: To remove some day. |
| 844 | build=$build_alias |
| 845 | host=$host_alias |
| 846 | target=$target_alias |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 847 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 848 | # FIXME: To remove some day. |
| 849 | if test "x$host_alias" != x; then |
| 850 | if test "x$build_alias" = x; then |
| 851 | cross_compiling=maybe |
| 852 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 853 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 854 | elif test "x$build_alias" != "x$host_alias"; then |
| 855 | cross_compiling=yes |
| 856 | fi |
| 857 | fi |
| 858 | |
| 859 | ac_tool_prefix= |
| 860 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 861 | |
| 862 | test "$silent" = yes && exec 6>/dev/null |
| 863 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 864 | |
| 865 | # Find the source files, if location was not specified. |
| 866 | if test -z "$srcdir"; then |
| 867 | ac_srcdir_defaulted=yes |
| 868 | # Try the directory containing this script, then its parent. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 869 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 870 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 871 | X"$0" : 'X\(//\)[^/]' \| \ |
| 872 | X"$0" : 'X\(//\)$' \| \ |
| 873 | X"$0" : 'X\(/\)' \| \ |
| 874 | . : '\(.\)' 2>/dev/null || |
| 875 | echo X"$0" | |
| 876 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 877 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 878 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 879 | /^X\(\/\).*/{ s//\1/; q; } |
| 880 | s/.*/./; q'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 881 | srcdir=$ac_confdir |
| 882 | if test ! -r $srcdir/$ac_unique_file; then |
| 883 | srcdir=.. |
| 884 | fi |
| 885 | else |
| 886 | ac_srcdir_defaulted=no |
| 887 | fi |
| 888 | if test ! -r $srcdir/$ac_unique_file; then |
| 889 | if test "$ac_srcdir_defaulted" = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 890 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 891 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 892 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 893 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 894 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 895 | fi |
| 896 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 897 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 898 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 899 | { (exit 1); exit 1; }; } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 900 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 901 | ac_env_build_alias_set=${build_alias+set} |
| 902 | ac_env_build_alias_value=$build_alias |
| 903 | ac_cv_env_build_alias_set=${build_alias+set} |
| 904 | ac_cv_env_build_alias_value=$build_alias |
| 905 | ac_env_host_alias_set=${host_alias+set} |
| 906 | ac_env_host_alias_value=$host_alias |
| 907 | ac_cv_env_host_alias_set=${host_alias+set} |
| 908 | ac_cv_env_host_alias_value=$host_alias |
| 909 | ac_env_target_alias_set=${target_alias+set} |
| 910 | ac_env_target_alias_value=$target_alias |
| 911 | ac_cv_env_target_alias_set=${target_alias+set} |
| 912 | ac_cv_env_target_alias_value=$target_alias |
| 913 | ac_env_CC_set=${CC+set} |
| 914 | ac_env_CC_value=$CC |
| 915 | ac_cv_env_CC_set=${CC+set} |
| 916 | ac_cv_env_CC_value=$CC |
| 917 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 918 | ac_env_CFLAGS_value=$CFLAGS |
| 919 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 920 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 921 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 922 | ac_env_LDFLAGS_value=$LDFLAGS |
| 923 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 924 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 925 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 926 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 927 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 928 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 929 | ac_env_CPP_set=${CPP+set} |
| 930 | ac_env_CPP_value=$CPP |
| 931 | ac_cv_env_CPP_set=${CPP+set} |
| 932 | ac_cv_env_CPP_value=$CPP |
| 933 | ac_env_CXX_set=${CXX+set} |
| 934 | ac_env_CXX_value=$CXX |
| 935 | ac_cv_env_CXX_set=${CXX+set} |
| 936 | ac_cv_env_CXX_value=$CXX |
| 937 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 938 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 939 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 940 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 941 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 942 | # |
| 943 | # Report the --help message. |
| 944 | # |
| 945 | if test "$ac_init_help" = "long"; then |
| 946 | # Omit some internal or obsolete options to make the list less imposing. |
| 947 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 948 | cat <<_ACEOF |
jjako | a24c7ec | 2004-12-30 23:37:18 +0000 | [diff] [blame^] | 949 | \`configure' configures openggsn 0.84 to adapt to many kinds of systems. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 950 | |
| 951 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 952 | |
| 953 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 954 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 955 | |
| 956 | Defaults for the options are specified in brackets. |
| 957 | |
| 958 | Configuration: |
| 959 | -h, --help display this help and exit |
| 960 | --help=short display options specific to this package |
| 961 | --help=recursive display the short help of all the included packages |
| 962 | -V, --version display version information and exit |
| 963 | -q, --quiet, --silent do not print \`checking...' messages |
| 964 | --cache-file=FILE cache test results in FILE [disabled] |
| 965 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 966 | -n, --no-create do not create output files |
| 967 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 968 | |
| 969 | _ACEOF |
| 970 | |
| 971 | cat <<_ACEOF |
| 972 | Installation directories: |
| 973 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 974 | [$ac_default_prefix] |
| 975 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 976 | [PREFIX] |
| 977 | |
| 978 | By default, \`make install' will install all the files in |
| 979 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 980 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 981 | for instance \`--prefix=\$HOME'. |
| 982 | |
| 983 | For better control, use the options below. |
| 984 | |
| 985 | Fine tuning of the installation directories: |
| 986 | --bindir=DIR user executables [EPREFIX/bin] |
| 987 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 988 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 989 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 990 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 991 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 992 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 993 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 994 | --includedir=DIR C header files [PREFIX/include] |
| 995 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 996 | --infodir=DIR info documentation [PREFIX/info] |
| 997 | --mandir=DIR man documentation [PREFIX/man] |
| 998 | _ACEOF |
| 999 | |
| 1000 | cat <<\_ACEOF |
| 1001 | |
| 1002 | Program names: |
| 1003 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1004 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1005 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1006 | |
| 1007 | System types: |
| 1008 | --build=BUILD configure for building on BUILD [guessed] |
| 1009 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 1010 | --target=TARGET configure for building compilers for TARGET [HOST] |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1011 | _ACEOF |
| 1012 | fi |
| 1013 | |
| 1014 | if test -n "$ac_init_help"; then |
| 1015 | case $ac_init_help in |
jjako | a24c7ec | 2004-12-30 23:37:18 +0000 | [diff] [blame^] | 1016 | short | recursive ) echo "Configuration of openggsn 0.84:";; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1017 | esac |
| 1018 | cat <<\_ACEOF |
| 1019 | |
| 1020 | Optional Features: |
| 1021 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1022 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1023 | --enable-shared=PKGS build shared libraries default=yes |
| 1024 | --enable-static=PKGS build static libraries default=yes |
| 1025 | --enable-fast-install=PKGS optimize for fast installation default=yes |
| 1026 | --disable-libtool-lock avoid locking (might break parallel builds) |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 1027 | --enable-static-exec Enable static linking of executables |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1028 | --disable-dependency-tracking Speeds up one-time builds |
| 1029 | --enable-dependency-tracking Do not reject slow dependency extractors |
| 1030 | |
| 1031 | Optional Packages: |
| 1032 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1033 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1034 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1035 | --with-pic try to use only PIC/non-PIC objects default=use both |
| 1036 | |
| 1037 | Some influential environment variables: |
| 1038 | CC C compiler command |
| 1039 | CFLAGS C compiler flags |
| 1040 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1041 | nonstandard directory <lib dir> |
| 1042 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1043 | headers in a nonstandard directory <include dir> |
| 1044 | CPP C preprocessor |
| 1045 | CXX C++ compiler command |
| 1046 | CXXFLAGS C++ compiler flags |
| 1047 | |
| 1048 | Use these variables to override the choices made by `configure' or to help |
| 1049 | it to find libraries and programs with nonstandard names/locations. |
| 1050 | |
| 1051 | Report bugs to <jj@openggsn.org>. |
| 1052 | _ACEOF |
| 1053 | fi |
| 1054 | |
| 1055 | if test "$ac_init_help" = "recursive"; then |
| 1056 | # If there are subdirs, report their specific --help. |
| 1057 | ac_popdir=`pwd` |
| 1058 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1059 | test -d $ac_dir || continue |
| 1060 | ac_builddir=. |
| 1061 | |
| 1062 | if test "$ac_dir" != .; then |
| 1063 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1064 | # A "../" for each directory in $ac_dir_suffix. |
| 1065 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1066 | else |
| 1067 | ac_dir_suffix= ac_top_builddir= |
| 1068 | fi |
| 1069 | |
| 1070 | case $srcdir in |
| 1071 | .) # No --srcdir option. We are building in place. |
| 1072 | ac_srcdir=. |
| 1073 | if test -z "$ac_top_builddir"; then |
| 1074 | ac_top_srcdir=. |
| 1075 | else |
| 1076 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1077 | fi ;; |
| 1078 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1079 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1080 | ac_top_srcdir=$srcdir ;; |
| 1081 | *) # Relative path. |
| 1082 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1083 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1084 | esac |
| 1085 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1086 | # absolute. |
| 1087 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1088 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1089 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1090 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1091 | |
| 1092 | cd $ac_dir |
| 1093 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1094 | if test -f $ac_srcdir/configure.gnu; then |
| 1095 | echo |
| 1096 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1097 | elif test -f $ac_srcdir/configure; then |
| 1098 | echo |
| 1099 | $SHELL $ac_srcdir/configure --help=recursive |
| 1100 | elif test -f $ac_srcdir/configure.ac || |
| 1101 | test -f $ac_srcdir/configure.in; then |
| 1102 | echo |
| 1103 | $ac_configure --help |
| 1104 | else |
| 1105 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1106 | fi |
| 1107 | cd $ac_popdir |
| 1108 | done |
| 1109 | fi |
| 1110 | |
| 1111 | test -n "$ac_init_help" && exit 0 |
| 1112 | if $ac_init_version; then |
| 1113 | cat <<\_ACEOF |
jjako | a24c7ec | 2004-12-30 23:37:18 +0000 | [diff] [blame^] | 1114 | openggsn configure 0.84 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1115 | generated by GNU Autoconf 2.57 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1116 | |
| 1117 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 1118 | Free Software Foundation, Inc. |
| 1119 | This configure script is free software; the Free Software Foundation |
| 1120 | gives unlimited permission to copy, distribute and modify it. |
| 1121 | _ACEOF |
| 1122 | exit 0 |
| 1123 | fi |
| 1124 | exec 5>config.log |
| 1125 | cat >&5 <<_ACEOF |
| 1126 | This file contains any messages produced by compilers while |
| 1127 | running configure, to aid debugging if configure makes a mistake. |
| 1128 | |
jjako | a24c7ec | 2004-12-30 23:37:18 +0000 | [diff] [blame^] | 1129 | It was created by openggsn $as_me 0.84, which was |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1130 | generated by GNU Autoconf 2.57. Invocation command line was |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1131 | |
| 1132 | $ $0 $@ |
| 1133 | |
| 1134 | _ACEOF |
| 1135 | { |
| 1136 | cat <<_ASUNAME |
| 1137 | ## --------- ## |
| 1138 | ## Platform. ## |
| 1139 | ## --------- ## |
| 1140 | |
| 1141 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1142 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1143 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1144 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1145 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1146 | |
| 1147 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1148 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1149 | |
| 1150 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1151 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1152 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1153 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1154 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1155 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1156 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1157 | |
| 1158 | _ASUNAME |
| 1159 | |
| 1160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1161 | for as_dir in $PATH |
| 1162 | do |
| 1163 | IFS=$as_save_IFS |
| 1164 | test -z "$as_dir" && as_dir=. |
| 1165 | echo "PATH: $as_dir" |
| 1166 | done |
| 1167 | |
| 1168 | } >&5 |
| 1169 | |
| 1170 | cat >&5 <<_ACEOF |
| 1171 | |
| 1172 | |
| 1173 | ## ----------- ## |
| 1174 | ## Core tests. ## |
| 1175 | ## ----------- ## |
| 1176 | |
| 1177 | _ACEOF |
| 1178 | |
| 1179 | |
| 1180 | # Keep a trace of the command line. |
| 1181 | # Strip out --no-create and --no-recursion so they do not pile up. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1182 | # Strip out --silent because we don't want to record it for future runs. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1183 | # Also quote any args containing shell meta-characters. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1184 | # Make two passes to allow for proper duplicate-argument suppression. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1185 | ac_configure_args= |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1186 | ac_configure_args0= |
| 1187 | ac_configure_args1= |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1188 | ac_sep= |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1189 | ac_must_keep_next=false |
| 1190 | for ac_pass in 1 2 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1191 | do |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1192 | for ac_arg |
| 1193 | do |
| 1194 | case $ac_arg in |
| 1195 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1196 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1197 | | -silent | --silent | --silen | --sile | --sil) |
| 1198 | continue ;; |
| 1199 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1200 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1201 | esac |
| 1202 | case $ac_pass in |
| 1203 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1204 | 2) |
| 1205 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1206 | if test $ac_must_keep_next = true; then |
| 1207 | ac_must_keep_next=false # Got value, back to normal. |
| 1208 | else |
| 1209 | case $ac_arg in |
| 1210 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1211 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1212 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1213 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1214 | case "$ac_configure_args0 " in |
| 1215 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1216 | esac |
| 1217 | ;; |
| 1218 | -* ) ac_must_keep_next=true ;; |
| 1219 | esac |
| 1220 | fi |
| 1221 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1222 | # Get rid of the leading space. |
| 1223 | ac_sep=" " |
| 1224 | ;; |
| 1225 | esac |
| 1226 | done |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1227 | done |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1228 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1229 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1230 | |
| 1231 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1232 | # config.log. We remove comments because anyway the quotes in there |
| 1233 | # would cause problems or look ugly. |
| 1234 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1235 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1236 | trap 'exit_status=$? |
| 1237 | # Save into config.log some information that might help in debugging. |
| 1238 | { |
| 1239 | echo |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1240 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1241 | cat <<\_ASBOX |
| 1242 | ## ---------------- ## |
| 1243 | ## Cache variables. ## |
| 1244 | ## ---------------- ## |
| 1245 | _ASBOX |
| 1246 | echo |
| 1247 | # The following way of writing the cache mishandles newlines in values, |
| 1248 | { |
| 1249 | (set) 2>&1 | |
| 1250 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1251 | *ac_space=\ *) |
| 1252 | sed -n \ |
| 1253 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1254 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1255 | ;; |
| 1256 | *) |
| 1257 | sed -n \ |
| 1258 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1259 | ;; |
| 1260 | esac; |
| 1261 | } |
| 1262 | echo |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1263 | |
| 1264 | cat <<\_ASBOX |
| 1265 | ## ----------------- ## |
| 1266 | ## Output variables. ## |
| 1267 | ## ----------------- ## |
| 1268 | _ASBOX |
| 1269 | echo |
| 1270 | for ac_var in $ac_subst_vars |
| 1271 | do |
| 1272 | eval ac_val=$`echo $ac_var` |
| 1273 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1274 | done | sort |
| 1275 | echo |
| 1276 | |
| 1277 | if test -n "$ac_subst_files"; then |
| 1278 | cat <<\_ASBOX |
| 1279 | ## ------------- ## |
| 1280 | ## Output files. ## |
| 1281 | ## ------------- ## |
| 1282 | _ASBOX |
| 1283 | echo |
| 1284 | for ac_var in $ac_subst_files |
| 1285 | do |
| 1286 | eval ac_val=$`echo $ac_var` |
| 1287 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1288 | done | sort |
| 1289 | echo |
| 1290 | fi |
| 1291 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1292 | if test -s confdefs.h; then |
| 1293 | cat <<\_ASBOX |
| 1294 | ## ----------- ## |
| 1295 | ## confdefs.h. ## |
| 1296 | ## ----------- ## |
| 1297 | _ASBOX |
| 1298 | echo |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1299 | sed "/^$/d" confdefs.h | sort |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1300 | echo |
| 1301 | fi |
| 1302 | test "$ac_signal" != 0 && |
| 1303 | echo "$as_me: caught signal $ac_signal" |
| 1304 | echo "$as_me: exit $exit_status" |
| 1305 | } >&5 |
| 1306 | rm -f core core.* *.core && |
| 1307 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1308 | exit $exit_status |
| 1309 | ' 0 |
| 1310 | for ac_signal in 1 2 13 15; do |
| 1311 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1312 | done |
| 1313 | ac_signal=0 |
| 1314 | |
| 1315 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1316 | rm -rf conftest* confdefs.h |
| 1317 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1318 | echo >confdefs.h |
| 1319 | |
| 1320 | # Predefined preprocessor variables. |
| 1321 | |
| 1322 | cat >>confdefs.h <<_ACEOF |
| 1323 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1324 | _ACEOF |
| 1325 | |
| 1326 | |
| 1327 | cat >>confdefs.h <<_ACEOF |
| 1328 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1329 | _ACEOF |
| 1330 | |
| 1331 | |
| 1332 | cat >>confdefs.h <<_ACEOF |
| 1333 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1334 | _ACEOF |
| 1335 | |
| 1336 | |
| 1337 | cat >>confdefs.h <<_ACEOF |
| 1338 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1339 | _ACEOF |
| 1340 | |
| 1341 | |
| 1342 | cat >>confdefs.h <<_ACEOF |
| 1343 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1344 | _ACEOF |
| 1345 | |
| 1346 | |
| 1347 | # Let the site file select an alternate cache file if it wants to. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1348 | # Prefer explicitly selected file to automatically selected ones. |
| 1349 | if test -z "$CONFIG_SITE"; then |
| 1350 | if test "x$prefix" != xNONE; then |
| 1351 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1352 | else |
| 1353 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1354 | fi |
| 1355 | fi |
| 1356 | for ac_site_file in $CONFIG_SITE; do |
| 1357 | if test -r "$ac_site_file"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1358 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1359 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1360 | sed 's/^/| /' "$ac_site_file" >&5 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1361 | . "$ac_site_file" |
| 1362 | fi |
| 1363 | done |
| 1364 | |
| 1365 | if test -r "$cache_file"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1366 | # Some versions of bash will fail to source /dev/null (special |
| 1367 | # files actually), so we avoid doing that. |
| 1368 | if test -f "$cache_file"; then |
| 1369 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1370 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1371 | case $cache_file in |
| 1372 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1373 | *) . ./$cache_file;; |
| 1374 | esac |
| 1375 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1376 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1377 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1378 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1379 | >$cache_file |
| 1380 | fi |
| 1381 | |
| 1382 | # Check that the precious variables saved in the cache have kept the same |
| 1383 | # value. |
| 1384 | ac_cache_corrupted=false |
| 1385 | for ac_var in `(set) 2>&1 | |
| 1386 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1387 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1388 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1389 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1390 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1391 | case $ac_old_set,$ac_new_set in |
| 1392 | set,) |
| 1393 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1394 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1395 | ac_cache_corrupted=: ;; |
| 1396 | ,set) |
| 1397 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1398 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1399 | ac_cache_corrupted=: ;; |
| 1400 | ,);; |
| 1401 | *) |
| 1402 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1403 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1404 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1405 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1406 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1407 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1408 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1409 | ac_cache_corrupted=: |
| 1410 | fi;; |
| 1411 | esac |
| 1412 | # Pass precious variables to config.status. |
| 1413 | if test "$ac_new_set" = set; then |
| 1414 | case $ac_new_val in |
| 1415 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1416 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1417 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1418 | esac |
| 1419 | case " $ac_configure_args " in |
| 1420 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1421 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1422 | esac |
| 1423 | fi |
| 1424 | done |
| 1425 | if $ac_cache_corrupted; then |
| 1426 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1427 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1428 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1429 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1430 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1431 | fi |
| 1432 | |
| 1433 | ac_ext=c |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1434 | ac_cpp='$CPP $CPPFLAGS' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1435 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1436 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1437 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1438 | |
| 1439 | |
| 1440 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1441 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1442 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1443 | |
| 1444 | |
| 1445 | |
| 1446 | |
| 1447 | |
| 1448 | |
| 1449 | |
| 1450 | |
| 1451 | |
| 1452 | |
| 1453 | |
| 1454 | |
| 1455 | |
| 1456 | |
| 1457 | |
| 1458 | |
| 1459 | |
| 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
| 1464 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1465 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1466 | # Add the stamp file to the list of files AC keeps track of, |
| 1467 | # along with our hook. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1468 | ac_config_headers="$ac_config_headers config.h" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1469 | |
| 1470 | |
| 1471 | |
| 1472 | #AC_CONFIG_HEADER([config.h]) |
| 1473 | |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 1474 | ac_aux_dir= |
| 1475 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1476 | if test -f $ac_dir/install-sh; then |
| 1477 | ac_aux_dir=$ac_dir |
| 1478 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1479 | break |
| 1480 | elif test -f $ac_dir/install.sh; then |
| 1481 | ac_aux_dir=$ac_dir |
| 1482 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1483 | break |
| 1484 | elif test -f $ac_dir/shtool; then |
| 1485 | ac_aux_dir=$ac_dir |
| 1486 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1487 | break |
| 1488 | fi |
| 1489 | done |
| 1490 | if test -z "$ac_aux_dir"; then |
| 1491 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1492 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1493 | { (exit 1); exit 1; }; } |
| 1494 | fi |
| 1495 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1496 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1497 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1498 | |
| 1499 | # Make sure we can run config.sub. |
| 1500 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1501 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1502 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1503 | { (exit 1); exit 1; }; } |
| 1504 | |
| 1505 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1506 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1507 | if test "${ac_cv_build+set}" = set; then |
| 1508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1509 | else |
| 1510 | ac_cv_build_alias=$build_alias |
| 1511 | test -z "$ac_cv_build_alias" && |
| 1512 | ac_cv_build_alias=`$ac_config_guess` |
| 1513 | test -z "$ac_cv_build_alias" && |
| 1514 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1515 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1516 | { (exit 1); exit 1; }; } |
| 1517 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1518 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1519 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1520 | { (exit 1); exit 1; }; } |
| 1521 | |
| 1522 | fi |
| 1523 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1524 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1525 | build=$ac_cv_build |
| 1526 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1527 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1528 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1529 | |
| 1530 | |
| 1531 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1532 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1533 | if test "${ac_cv_host+set}" = set; then |
| 1534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1535 | else |
| 1536 | ac_cv_host_alias=$host_alias |
| 1537 | test -z "$ac_cv_host_alias" && |
| 1538 | ac_cv_host_alias=$ac_cv_build_alias |
| 1539 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1540 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1541 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1542 | { (exit 1); exit 1; }; } |
| 1543 | |
| 1544 | fi |
| 1545 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1546 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1547 | host=$ac_cv_host |
| 1548 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1549 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1550 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1551 | |
| 1552 | |
| 1553 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1554 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1555 | if test "${ac_cv_target+set}" = set; then |
| 1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1557 | else |
| 1558 | ac_cv_target_alias=$target_alias |
| 1559 | test "x$ac_cv_target_alias" = "x" && |
| 1560 | ac_cv_target_alias=$ac_cv_host_alias |
| 1561 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1562 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1563 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1564 | { (exit 1); exit 1; }; } |
| 1565 | |
| 1566 | fi |
| 1567 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1568 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1569 | target=$ac_cv_target |
| 1570 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1571 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1572 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1573 | |
| 1574 | |
| 1575 | # The aliases save the names the user supplied, while $host etc. |
| 1576 | # will get canonicalized. |
| 1577 | test -n "$target_alias" && |
| 1578 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1579 | NONENONEs,x,x, && |
| 1580 | program_prefix=${target_alias}- |
| 1581 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1582 | # Checks for programs. |
| 1583 | ac_ext=c |
| 1584 | ac_cpp='$CPP $CPPFLAGS' |
| 1585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1588 | if test -n "$ac_tool_prefix"; then |
| 1589 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1590 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1593 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1595 | else |
| 1596 | if test -n "$CC"; then |
| 1597 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1598 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1600 | for as_dir in $PATH |
| 1601 | do |
| 1602 | IFS=$as_save_IFS |
| 1603 | test -z "$as_dir" && as_dir=. |
| 1604 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1605 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1606 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1608 | break 2 |
| 1609 | fi |
| 1610 | done |
| 1611 | done |
| 1612 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1613 | fi |
| 1614 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1615 | CC=$ac_cv_prog_CC |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1616 | if test -n "$CC"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1617 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1618 | echo "${ECHO_T}$CC" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1619 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1620 | echo "$as_me:$LINENO: result: no" >&5 |
| 1621 | echo "${ECHO_T}no" >&6 |
| 1622 | fi |
| 1623 | |
| 1624 | fi |
| 1625 | if test -z "$ac_cv_prog_CC"; then |
| 1626 | ac_ct_CC=$CC |
| 1627 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1628 | set dummy gcc; ac_word=$2 |
| 1629 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1631 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1633 | else |
| 1634 | if test -n "$ac_ct_CC"; then |
| 1635 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1636 | else |
| 1637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1638 | for as_dir in $PATH |
| 1639 | do |
| 1640 | IFS=$as_save_IFS |
| 1641 | test -z "$as_dir" && as_dir=. |
| 1642 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1643 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1644 | ac_cv_prog_ac_ct_CC="gcc" |
| 1645 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1646 | break 2 |
| 1647 | fi |
| 1648 | done |
| 1649 | done |
| 1650 | |
| 1651 | fi |
| 1652 | fi |
| 1653 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1654 | if test -n "$ac_ct_CC"; then |
| 1655 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1656 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1657 | else |
| 1658 | echo "$as_me:$LINENO: result: no" >&5 |
| 1659 | echo "${ECHO_T}no" >&6 |
| 1660 | fi |
| 1661 | |
| 1662 | CC=$ac_ct_CC |
| 1663 | else |
| 1664 | CC="$ac_cv_prog_CC" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1665 | fi |
| 1666 | |
| 1667 | if test -z "$CC"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1668 | if test -n "$ac_tool_prefix"; then |
| 1669 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1670 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1671 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1673 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1675 | else |
| 1676 | if test -n "$CC"; then |
| 1677 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1678 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1680 | for as_dir in $PATH |
| 1681 | do |
| 1682 | IFS=$as_save_IFS |
| 1683 | test -z "$as_dir" && as_dir=. |
| 1684 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1686 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1688 | break 2 |
| 1689 | fi |
| 1690 | done |
| 1691 | done |
| 1692 | |
| 1693 | fi |
| 1694 | fi |
| 1695 | CC=$ac_cv_prog_CC |
| 1696 | if test -n "$CC"; then |
| 1697 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1698 | echo "${ECHO_T}$CC" >&6 |
| 1699 | else |
| 1700 | echo "$as_me:$LINENO: result: no" >&5 |
| 1701 | echo "${ECHO_T}no" >&6 |
| 1702 | fi |
| 1703 | |
| 1704 | fi |
| 1705 | if test -z "$ac_cv_prog_CC"; then |
| 1706 | ac_ct_CC=$CC |
| 1707 | # Extract the first word of "cc", so it can be a program name with args. |
| 1708 | set dummy cc; ac_word=$2 |
| 1709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1711 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1713 | else |
| 1714 | if test -n "$ac_ct_CC"; then |
| 1715 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1716 | else |
| 1717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1718 | for as_dir in $PATH |
| 1719 | do |
| 1720 | IFS=$as_save_IFS |
| 1721 | test -z "$as_dir" && as_dir=. |
| 1722 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1723 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1724 | ac_cv_prog_ac_ct_CC="cc" |
| 1725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1726 | break 2 |
| 1727 | fi |
| 1728 | done |
| 1729 | done |
| 1730 | |
| 1731 | fi |
| 1732 | fi |
| 1733 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1734 | if test -n "$ac_ct_CC"; then |
| 1735 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1736 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1737 | else |
| 1738 | echo "$as_me:$LINENO: result: no" >&5 |
| 1739 | echo "${ECHO_T}no" >&6 |
| 1740 | fi |
| 1741 | |
| 1742 | CC=$ac_ct_CC |
| 1743 | else |
| 1744 | CC="$ac_cv_prog_CC" |
| 1745 | fi |
| 1746 | |
| 1747 | fi |
| 1748 | if test -z "$CC"; then |
| 1749 | # Extract the first word of "cc", so it can be a program name with args. |
| 1750 | set dummy cc; ac_word=$2 |
| 1751 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1752 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1753 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1755 | else |
| 1756 | if test -n "$CC"; then |
| 1757 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1758 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1759 | ac_prog_rejected=no |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1761 | for as_dir in $PATH |
| 1762 | do |
| 1763 | IFS=$as_save_IFS |
| 1764 | test -z "$as_dir" && as_dir=. |
| 1765 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1767 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1768 | ac_prog_rejected=yes |
| 1769 | continue |
| 1770 | fi |
| 1771 | ac_cv_prog_CC="cc" |
| 1772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1773 | break 2 |
| 1774 | fi |
| 1775 | done |
| 1776 | done |
| 1777 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1778 | if test $ac_prog_rejected = yes; then |
| 1779 | # We found a bogon in the path, so make sure we never use it. |
| 1780 | set dummy $ac_cv_prog_CC |
| 1781 | shift |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1782 | if test $# != 0; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1783 | # We chose a different compiler from the bogus one. |
| 1784 | # However, it has the same basename, so the bogon will be chosen |
| 1785 | # first if we set CC to just the basename; use the full file name. |
| 1786 | shift |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1787 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1788 | fi |
| 1789 | fi |
| 1790 | fi |
| 1791 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1792 | CC=$ac_cv_prog_CC |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1793 | if test -n "$CC"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1794 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1795 | echo "${ECHO_T}$CC" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1796 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1797 | echo "$as_me:$LINENO: result: no" >&5 |
| 1798 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1799 | fi |
| 1800 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1801 | fi |
| 1802 | if test -z "$CC"; then |
| 1803 | if test -n "$ac_tool_prefix"; then |
| 1804 | for ac_prog in cl |
| 1805 | do |
| 1806 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1807 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1810 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1812 | else |
| 1813 | if test -n "$CC"; then |
| 1814 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1815 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1817 | for as_dir in $PATH |
| 1818 | do |
| 1819 | IFS=$as_save_IFS |
| 1820 | test -z "$as_dir" && as_dir=. |
| 1821 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1823 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1825 | break 2 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1826 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1827 | done |
| 1828 | done |
| 1829 | |
| 1830 | fi |
| 1831 | fi |
| 1832 | CC=$ac_cv_prog_CC |
| 1833 | if test -n "$CC"; then |
| 1834 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1835 | echo "${ECHO_T}$CC" >&6 |
| 1836 | else |
| 1837 | echo "$as_me:$LINENO: result: no" >&5 |
| 1838 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1839 | fi |
| 1840 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1841 | test -n "$CC" && break |
| 1842 | done |
| 1843 | fi |
| 1844 | if test -z "$CC"; then |
| 1845 | ac_ct_CC=$CC |
| 1846 | for ac_prog in cl |
| 1847 | do |
| 1848 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1849 | set dummy $ac_prog; ac_word=$2 |
| 1850 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1852 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1854 | else |
| 1855 | if test -n "$ac_ct_CC"; then |
| 1856 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1857 | else |
| 1858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1859 | for as_dir in $PATH |
| 1860 | do |
| 1861 | IFS=$as_save_IFS |
| 1862 | test -z "$as_dir" && as_dir=. |
| 1863 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1864 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1865 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1867 | break 2 |
| 1868 | fi |
| 1869 | done |
| 1870 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1871 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1872 | fi |
| 1873 | fi |
| 1874 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1875 | if test -n "$ac_ct_CC"; then |
| 1876 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1877 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1878 | else |
| 1879 | echo "$as_me:$LINENO: result: no" >&5 |
| 1880 | echo "${ECHO_T}no" >&6 |
| 1881 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1882 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1883 | test -n "$ac_ct_CC" && break |
| 1884 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1885 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1886 | CC=$ac_ct_CC |
| 1887 | fi |
| 1888 | |
| 1889 | fi |
| 1890 | |
| 1891 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1892 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1893 | See \`config.log' for more details." >&5 |
| 1894 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1895 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1896 | { (exit 1); exit 1; }; } |
| 1897 | |
| 1898 | # Provide some information about the compiler. |
| 1899 | echo "$as_me:$LINENO:" \ |
| 1900 | "checking for C compiler version" >&5 |
| 1901 | ac_compiler=`set X $ac_compile; echo $2` |
| 1902 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1903 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1904 | ac_status=$? |
| 1905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1906 | (exit $ac_status); } |
| 1907 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1908 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1909 | ac_status=$? |
| 1910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1911 | (exit $ac_status); } |
| 1912 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1913 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1914 | ac_status=$? |
| 1915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1916 | (exit $ac_status); } |
| 1917 | |
| 1918 | cat >conftest.$ac_ext <<_ACEOF |
| 1919 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1920 | /* confdefs.h. */ |
| 1921 | _ACEOF |
| 1922 | cat confdefs.h >>conftest.$ac_ext |
| 1923 | cat >>conftest.$ac_ext <<_ACEOF |
| 1924 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1925 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1926 | int |
| 1927 | main () |
| 1928 | { |
| 1929 | |
| 1930 | ; |
| 1931 | return 0; |
| 1932 | } |
| 1933 | _ACEOF |
| 1934 | ac_clean_files_save=$ac_clean_files |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1935 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1936 | # Try to create an executable without -o first, disregard a.out. |
| 1937 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1938 | # of exeext. |
| 1939 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 1940 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1941 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1942 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1943 | (eval $ac_link_default) 2>&5 |
| 1944 | ac_status=$? |
| 1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1946 | (exit $ac_status); }; then |
| 1947 | # Find the output, starting from the most likely. This scheme is |
| 1948 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1949 | # resort. |
| 1950 | |
| 1951 | # Be careful to initialize this variable, since it used to be cached. |
| 1952 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1953 | ac_cv_exeext= |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1954 | # b.out is created by i960 compilers. |
| 1955 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1956 | do |
| 1957 | test -f "$ac_file" || continue |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1958 | case $ac_file in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1959 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1960 | ;; |
| 1961 | conftest.$ac_ext ) |
| 1962 | # This is the source file. |
| 1963 | ;; |
| 1964 | [ab].out ) |
| 1965 | # We found the default executable, but exeext='' is most |
| 1966 | # certainly right. |
| 1967 | break;; |
| 1968 | *.* ) |
| 1969 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1970 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1971 | # but it would be cool to find out if it's true. Does anybody |
| 1972 | # maintain Libtool? --akim. |
| 1973 | export ac_cv_exeext |
| 1974 | break;; |
| 1975 | * ) |
| 1976 | break;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1977 | esac |
| 1978 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1979 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1980 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 1981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1982 | |
| 1983 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1984 | See \`config.log' for more details." >&5 |
| 1985 | echo "$as_me: error: C compiler cannot create executables |
| 1986 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1987 | { (exit 77); exit 77; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1988 | fi |
| 1989 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1990 | ac_exeext=$ac_cv_exeext |
| 1991 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1992 | echo "${ECHO_T}$ac_file" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1993 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1994 | # Check the compiler produces executables we can run. If not, either |
| 1995 | # the compiler is broken, or we cross compile. |
| 1996 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1997 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1998 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1999 | # If not cross compiling, check that we can run a simple program. |
| 2000 | if test "$cross_compiling" != yes; then |
| 2001 | if { ac_try='./$ac_file' |
| 2002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2003 | (eval $ac_try) 2>&5 |
| 2004 | ac_status=$? |
| 2005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2006 | (exit $ac_status); }; }; then |
| 2007 | cross_compiling=no |
| 2008 | else |
| 2009 | if test "$cross_compiling" = maybe; then |
| 2010 | cross_compiling=yes |
| 2011 | else |
| 2012 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2013 | If you meant to cross compile, use \`--host'. |
| 2014 | See \`config.log' for more details." >&5 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2015 | echo "$as_me: error: cannot run C compiled programs. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2016 | If you meant to cross compile, use \`--host'. |
| 2017 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2018 | { (exit 1); exit 1; }; } |
| 2019 | fi |
| 2020 | fi |
| 2021 | fi |
| 2022 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2023 | echo "${ECHO_T}yes" >&6 |
| 2024 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2025 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2026 | ac_clean_files=$ac_clean_files_save |
| 2027 | # Check the compiler produces executables we can run. If not, either |
| 2028 | # the compiler is broken, or we cross compile. |
| 2029 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2030 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2031 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2032 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2033 | |
| 2034 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2035 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2037 | (eval $ac_link) 2>&5 |
| 2038 | ac_status=$? |
| 2039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2040 | (exit $ac_status); }; then |
| 2041 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2042 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2043 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2044 | # `rm'. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2045 | for ac_file in conftest.exe conftest conftest.*; do |
| 2046 | test -f "$ac_file" || continue |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2047 | case $ac_file in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2048 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2049 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2050 | export ac_cv_exeext |
| 2051 | break;; |
| 2052 | * ) break;; |
| 2053 | esac |
| 2054 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2055 | else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2056 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2057 | See \`config.log' for more details." >&5 |
| 2058 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2059 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2060 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2061 | fi |
| 2062 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2063 | rm -f conftest$ac_cv_exeext |
| 2064 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2065 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2066 | |
| 2067 | rm -f conftest.$ac_ext |
| 2068 | EXEEXT=$ac_cv_exeext |
| 2069 | ac_exeext=$EXEEXT |
| 2070 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2071 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2072 | if test "${ac_cv_objext+set}" = set; then |
| 2073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2074 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2075 | cat >conftest.$ac_ext <<_ACEOF |
| 2076 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2077 | /* confdefs.h. */ |
| 2078 | _ACEOF |
| 2079 | cat confdefs.h >>conftest.$ac_ext |
| 2080 | cat >>conftest.$ac_ext <<_ACEOF |
| 2081 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2082 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2083 | int |
| 2084 | main () |
| 2085 | { |
| 2086 | |
| 2087 | ; |
| 2088 | return 0; |
| 2089 | } |
| 2090 | _ACEOF |
| 2091 | rm -f conftest.o conftest.obj |
| 2092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2093 | (eval $ac_compile) 2>&5 |
| 2094 | ac_status=$? |
| 2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2096 | (exit $ac_status); }; then |
| 2097 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2098 | case $ac_file in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2099 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2100 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2101 | break;; |
| 2102 | esac |
| 2103 | done |
| 2104 | else |
| 2105 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2107 | |
| 2108 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2109 | See \`config.log' for more details." >&5 |
| 2110 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2111 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2112 | { (exit 1); exit 1; }; } |
| 2113 | fi |
| 2114 | |
| 2115 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2116 | fi |
| 2117 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2118 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2119 | OBJEXT=$ac_cv_objext |
| 2120 | ac_objext=$OBJEXT |
| 2121 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2122 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2123 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2125 | else |
| 2126 | cat >conftest.$ac_ext <<_ACEOF |
| 2127 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2128 | /* confdefs.h. */ |
| 2129 | _ACEOF |
| 2130 | cat confdefs.h >>conftest.$ac_ext |
| 2131 | cat >>conftest.$ac_ext <<_ACEOF |
| 2132 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2133 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2134 | int |
| 2135 | main () |
| 2136 | { |
| 2137 | #ifndef __GNUC__ |
| 2138 | choke me |
| 2139 | #endif |
| 2140 | |
| 2141 | ; |
| 2142 | return 0; |
| 2143 | } |
| 2144 | _ACEOF |
| 2145 | rm -f conftest.$ac_objext |
| 2146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2147 | (eval $ac_compile) 2>&5 |
| 2148 | ac_status=$? |
| 2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2150 | (exit $ac_status); } && |
| 2151 | { ac_try='test -s conftest.$ac_objext' |
| 2152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2153 | (eval $ac_try) 2>&5 |
| 2154 | ac_status=$? |
| 2155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2156 | (exit $ac_status); }; }; then |
| 2157 | ac_compiler_gnu=yes |
| 2158 | else |
| 2159 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2161 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2162 | ac_compiler_gnu=no |
| 2163 | fi |
| 2164 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2165 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2166 | |
| 2167 | fi |
| 2168 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2169 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2170 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2171 | ac_test_CFLAGS=${CFLAGS+set} |
| 2172 | ac_save_CFLAGS=$CFLAGS |
| 2173 | CFLAGS="-g" |
| 2174 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2175 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2176 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2178 | else |
| 2179 | cat >conftest.$ac_ext <<_ACEOF |
| 2180 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2181 | /* confdefs.h. */ |
| 2182 | _ACEOF |
| 2183 | cat confdefs.h >>conftest.$ac_ext |
| 2184 | cat >>conftest.$ac_ext <<_ACEOF |
| 2185 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2186 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2187 | int |
| 2188 | main () |
| 2189 | { |
| 2190 | |
| 2191 | ; |
| 2192 | return 0; |
| 2193 | } |
| 2194 | _ACEOF |
| 2195 | rm -f conftest.$ac_objext |
| 2196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2197 | (eval $ac_compile) 2>&5 |
| 2198 | ac_status=$? |
| 2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2200 | (exit $ac_status); } && |
| 2201 | { ac_try='test -s conftest.$ac_objext' |
| 2202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2203 | (eval $ac_try) 2>&5 |
| 2204 | ac_status=$? |
| 2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2206 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2207 | ac_cv_prog_cc_g=yes |
| 2208 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2209 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2211 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2212 | ac_cv_prog_cc_g=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2213 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2214 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2215 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2216 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2217 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2218 | if test "$ac_test_CFLAGS" = set; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2219 | CFLAGS=$ac_save_CFLAGS |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2220 | elif test $ac_cv_prog_cc_g = yes; then |
| 2221 | if test "$GCC" = yes; then |
| 2222 | CFLAGS="-g -O2" |
| 2223 | else |
| 2224 | CFLAGS="-g" |
| 2225 | fi |
| 2226 | else |
| 2227 | if test "$GCC" = yes; then |
| 2228 | CFLAGS="-O2" |
| 2229 | else |
| 2230 | CFLAGS= |
| 2231 | fi |
| 2232 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2233 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2234 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2235 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2237 | else |
| 2238 | ac_cv_prog_cc_stdc=no |
| 2239 | ac_save_CC=$CC |
| 2240 | cat >conftest.$ac_ext <<_ACEOF |
| 2241 | #line $LINENO "configure" |
| 2242 | /* confdefs.h. */ |
| 2243 | _ACEOF |
| 2244 | cat confdefs.h >>conftest.$ac_ext |
| 2245 | cat >>conftest.$ac_ext <<_ACEOF |
| 2246 | /* end confdefs.h. */ |
| 2247 | #include <stdarg.h> |
| 2248 | #include <stdio.h> |
| 2249 | #include <sys/types.h> |
| 2250 | #include <sys/stat.h> |
| 2251 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2252 | struct buf { int x; }; |
| 2253 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2254 | static char *e (p, i) |
| 2255 | char **p; |
| 2256 | int i; |
| 2257 | { |
| 2258 | return p[i]; |
| 2259 | } |
| 2260 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2261 | { |
| 2262 | char *s; |
| 2263 | va_list v; |
| 2264 | va_start (v,p); |
| 2265 | s = g (p, va_arg (v,int)); |
| 2266 | va_end (v); |
| 2267 | return s; |
| 2268 | } |
| 2269 | int test (int i, double x); |
| 2270 | struct s1 {int (*f) (int a);}; |
| 2271 | struct s2 {int (*f) (double a);}; |
| 2272 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2273 | int argc; |
| 2274 | char **argv; |
| 2275 | int |
| 2276 | main () |
| 2277 | { |
| 2278 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2279 | ; |
| 2280 | return 0; |
| 2281 | } |
| 2282 | _ACEOF |
| 2283 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2284 | # breaks some systems' header files. |
| 2285 | # AIX -qlanglvl=ansi |
| 2286 | # Ultrix and OSF/1 -std1 |
| 2287 | # HP-UX 10.20 and later -Ae |
| 2288 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2289 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2290 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2291 | do |
| 2292 | CC="$ac_save_CC $ac_arg" |
| 2293 | rm -f conftest.$ac_objext |
| 2294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2295 | (eval $ac_compile) 2>&5 |
| 2296 | ac_status=$? |
| 2297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2298 | (exit $ac_status); } && |
| 2299 | { ac_try='test -s conftest.$ac_objext' |
| 2300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2301 | (eval $ac_try) 2>&5 |
| 2302 | ac_status=$? |
| 2303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2304 | (exit $ac_status); }; }; then |
| 2305 | ac_cv_prog_cc_stdc=$ac_arg |
| 2306 | break |
| 2307 | else |
| 2308 | echo "$as_me: failed program was:" >&5 |
| 2309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2310 | |
| 2311 | fi |
| 2312 | rm -f conftest.$ac_objext |
| 2313 | done |
| 2314 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2315 | CC=$ac_save_CC |
| 2316 | |
| 2317 | fi |
| 2318 | |
| 2319 | case "x$ac_cv_prog_cc_stdc" in |
| 2320 | x|xno) |
| 2321 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2322 | echo "${ECHO_T}none needed" >&6 ;; |
| 2323 | *) |
| 2324 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2325 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2326 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2327 | esac |
| 2328 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2329 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2330 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2331 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2332 | # the declaration of exit, since it's the most demanding environment. |
| 2333 | cat >conftest.$ac_ext <<_ACEOF |
| 2334 | #ifndef __cplusplus |
| 2335 | choke me |
| 2336 | #endif |
| 2337 | _ACEOF |
| 2338 | rm -f conftest.$ac_objext |
| 2339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2340 | (eval $ac_compile) 2>&5 |
| 2341 | ac_status=$? |
| 2342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2343 | (exit $ac_status); } && |
| 2344 | { ac_try='test -s conftest.$ac_objext' |
| 2345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2346 | (eval $ac_try) 2>&5 |
| 2347 | ac_status=$? |
| 2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2349 | (exit $ac_status); }; }; then |
| 2350 | for ac_declaration in \ |
| 2351 | ''\ |
| 2352 | '#include <stdlib.h>' \ |
| 2353 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2354 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2355 | 'extern "C" void exit (int) throw ();' \ |
| 2356 | 'extern "C" void exit (int);' \ |
| 2357 | 'void exit (int);' |
| 2358 | do |
| 2359 | cat >conftest.$ac_ext <<_ACEOF |
| 2360 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2361 | /* confdefs.h. */ |
| 2362 | _ACEOF |
| 2363 | cat confdefs.h >>conftest.$ac_ext |
| 2364 | cat >>conftest.$ac_ext <<_ACEOF |
| 2365 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2366 | #include <stdlib.h> |
| 2367 | $ac_declaration |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2368 | int |
| 2369 | main () |
| 2370 | { |
| 2371 | exit (42); |
| 2372 | ; |
| 2373 | return 0; |
| 2374 | } |
| 2375 | _ACEOF |
| 2376 | rm -f conftest.$ac_objext |
| 2377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2378 | (eval $ac_compile) 2>&5 |
| 2379 | ac_status=$? |
| 2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2381 | (exit $ac_status); } && |
| 2382 | { ac_try='test -s conftest.$ac_objext' |
| 2383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2384 | (eval $ac_try) 2>&5 |
| 2385 | ac_status=$? |
| 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2387 | (exit $ac_status); }; }; then |
| 2388 | : |
| 2389 | else |
| 2390 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2392 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2393 | continue |
| 2394 | fi |
| 2395 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2396 | cat >conftest.$ac_ext <<_ACEOF |
| 2397 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2398 | /* confdefs.h. */ |
| 2399 | _ACEOF |
| 2400 | cat confdefs.h >>conftest.$ac_ext |
| 2401 | cat >>conftest.$ac_ext <<_ACEOF |
| 2402 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2403 | $ac_declaration |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2404 | int |
| 2405 | main () |
| 2406 | { |
| 2407 | exit (42); |
| 2408 | ; |
| 2409 | return 0; |
| 2410 | } |
| 2411 | _ACEOF |
| 2412 | rm -f conftest.$ac_objext |
| 2413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2414 | (eval $ac_compile) 2>&5 |
| 2415 | ac_status=$? |
| 2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2417 | (exit $ac_status); } && |
| 2418 | { ac_try='test -s conftest.$ac_objext' |
| 2419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2420 | (eval $ac_try) 2>&5 |
| 2421 | ac_status=$? |
| 2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2423 | (exit $ac_status); }; }; then |
| 2424 | break |
| 2425 | else |
| 2426 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2428 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2429 | fi |
| 2430 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2431 | done |
| 2432 | rm -f conftest* |
| 2433 | if test -n "$ac_declaration"; then |
| 2434 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2435 | echo $ac_declaration >>confdefs.h |
| 2436 | echo '#endif' >>confdefs.h |
| 2437 | fi |
| 2438 | |
| 2439 | else |
| 2440 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2442 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2443 | fi |
| 2444 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2445 | ac_ext=c |
| 2446 | ac_cpp='$CPP $CPPFLAGS' |
| 2447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2450 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2451 | # Find a good install program. We prefer a C program (faster), |
| 2452 | # so one script is as good as another. But avoid the broken or |
| 2453 | # incompatible versions: |
| 2454 | # SysV /etc/install, /usr/sbin/install |
| 2455 | # SunOS /usr/etc/install |
| 2456 | # IRIX /sbin/install |
| 2457 | # AIX /bin/install |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2458 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2459 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2460 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2461 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2462 | # ./install, which can be erroneously created by make from ./install.sh. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2463 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2464 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2465 | if test -z "$INSTALL"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2466 | if test "${ac_cv_path_install+set}" = set; then |
| 2467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2468 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2470 | for as_dir in $PATH |
| 2471 | do |
| 2472 | IFS=$as_save_IFS |
| 2473 | test -z "$as_dir" && as_dir=. |
| 2474 | # Account for people who put trailing slashes in PATH elements. |
| 2475 | case $as_dir/ in |
| 2476 | ./ | .// | /cC/* | \ |
| 2477 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2478 | /usr/ucb/* ) ;; |
| 2479 | *) |
| 2480 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2481 | # Don't use installbsd from OSF since it installs stuff as root |
| 2482 | # by default. |
| 2483 | for ac_prog in ginstall scoinst install; do |
| 2484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2485 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2486 | if test $ac_prog = install && |
| 2487 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2488 | # AIX install. It has an incompatible calling convention. |
| 2489 | : |
| 2490 | elif test $ac_prog = install && |
| 2491 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2492 | # program-specific install script used by HP pwplus--don't use. |
| 2493 | : |
| 2494 | else |
| 2495 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2496 | break 3 |
| 2497 | fi |
| 2498 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2499 | done |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2500 | done |
| 2501 | ;; |
| 2502 | esac |
| 2503 | done |
| 2504 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2505 | |
| 2506 | fi |
| 2507 | if test "${ac_cv_path_install+set}" = set; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2508 | INSTALL=$ac_cv_path_install |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2509 | else |
| 2510 | # As a last resort, use the slow shell script. We don't cache a |
| 2511 | # path for INSTALL within a source directory, because that will |
| 2512 | # break other packages using the cache if that directory is |
| 2513 | # removed, or if the path is relative. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2514 | INSTALL=$ac_install_sh |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2515 | fi |
| 2516 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2517 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2518 | echo "${ECHO_T}$INSTALL" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2519 | |
| 2520 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2521 | # It thinks the first close brace ends the variable substitution. |
| 2522 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2523 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2524 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2525 | |
| 2526 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2527 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2528 | for ac_prog in gawk mawk nawk awk |
| 2529 | do |
| 2530 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2531 | set dummy $ac_prog; ac_word=$2 |
| 2532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2534 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2536 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2537 | if test -n "$AWK"; then |
| 2538 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2539 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2541 | for as_dir in $PATH |
| 2542 | do |
| 2543 | IFS=$as_save_IFS |
| 2544 | test -z "$as_dir" && as_dir=. |
| 2545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2546 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2547 | ac_cv_prog_AWK="$ac_prog" |
| 2548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2549 | break 2 |
| 2550 | fi |
| 2551 | done |
| 2552 | done |
| 2553 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2554 | fi |
| 2555 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2556 | AWK=$ac_cv_prog_AWK |
| 2557 | if test -n "$AWK"; then |
| 2558 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2559 | echo "${ECHO_T}$AWK" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2560 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2561 | echo "$as_me:$LINENO: result: no" >&5 |
| 2562 | echo "${ECHO_T}no" >&6 |
| 2563 | fi |
| 2564 | |
| 2565 | test -n "$AWK" && break |
| 2566 | done |
| 2567 | |
| 2568 | ac_ext=c |
| 2569 | ac_cpp='$CPP $CPPFLAGS' |
| 2570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2573 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2574 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2575 | # On Suns, sometimes $CPP names a directory. |
| 2576 | if test -n "$CPP" && test -d "$CPP"; then |
| 2577 | CPP= |
| 2578 | fi |
| 2579 | if test -z "$CPP"; then |
| 2580 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2582 | else |
| 2583 | # Double quotes because CPP needs to be expanded |
| 2584 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2585 | do |
| 2586 | ac_preproc_ok=false |
| 2587 | for ac_c_preproc_warn_flag in '' yes |
| 2588 | do |
| 2589 | # Use a header file that comes with gcc, so configuring glibc |
| 2590 | # with a fresh cross-compiler works. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2591 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2592 | # <limits.h> exists even on freestanding compilers. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2593 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2594 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2595 | cat >conftest.$ac_ext <<_ACEOF |
| 2596 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2597 | /* confdefs.h. */ |
| 2598 | _ACEOF |
| 2599 | cat confdefs.h >>conftest.$ac_ext |
| 2600 | cat >>conftest.$ac_ext <<_ACEOF |
| 2601 | /* end confdefs.h. */ |
| 2602 | #ifdef __STDC__ |
| 2603 | # include <limits.h> |
| 2604 | #else |
| 2605 | # include <assert.h> |
| 2606 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2607 | Syntax error |
| 2608 | _ACEOF |
| 2609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2611 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2612 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2613 | rm -f conftest.er1 |
| 2614 | cat conftest.err >&5 |
| 2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2616 | (exit $ac_status); } >/dev/null; then |
| 2617 | if test -s conftest.err; then |
| 2618 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2619 | else |
| 2620 | ac_cpp_err= |
| 2621 | fi |
| 2622 | else |
| 2623 | ac_cpp_err=yes |
| 2624 | fi |
| 2625 | if test -z "$ac_cpp_err"; then |
| 2626 | : |
| 2627 | else |
| 2628 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2630 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2631 | # Broken: fails on valid input. |
| 2632 | continue |
| 2633 | fi |
| 2634 | rm -f conftest.err conftest.$ac_ext |
| 2635 | |
| 2636 | # OK, works on sane cases. Now check whether non-existent headers |
| 2637 | # can be detected and how. |
| 2638 | cat >conftest.$ac_ext <<_ACEOF |
| 2639 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2640 | /* confdefs.h. */ |
| 2641 | _ACEOF |
| 2642 | cat confdefs.h >>conftest.$ac_ext |
| 2643 | cat >>conftest.$ac_ext <<_ACEOF |
| 2644 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2645 | #include <ac_nonexistent.h> |
| 2646 | _ACEOF |
| 2647 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2648 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2649 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2650 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2651 | rm -f conftest.er1 |
| 2652 | cat conftest.err >&5 |
| 2653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2654 | (exit $ac_status); } >/dev/null; then |
| 2655 | if test -s conftest.err; then |
| 2656 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2657 | else |
| 2658 | ac_cpp_err= |
| 2659 | fi |
| 2660 | else |
| 2661 | ac_cpp_err=yes |
| 2662 | fi |
| 2663 | if test -z "$ac_cpp_err"; then |
| 2664 | # Broken: success on invalid input. |
| 2665 | continue |
| 2666 | else |
| 2667 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2669 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2670 | # Passes both tests. |
| 2671 | ac_preproc_ok=: |
| 2672 | break |
| 2673 | fi |
| 2674 | rm -f conftest.err conftest.$ac_ext |
| 2675 | |
| 2676 | done |
| 2677 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2678 | rm -f conftest.err conftest.$ac_ext |
| 2679 | if $ac_preproc_ok; then |
| 2680 | break |
| 2681 | fi |
| 2682 | |
| 2683 | done |
| 2684 | ac_cv_prog_CPP=$CPP |
| 2685 | |
| 2686 | fi |
| 2687 | CPP=$ac_cv_prog_CPP |
| 2688 | else |
| 2689 | ac_cv_prog_CPP=$CPP |
| 2690 | fi |
| 2691 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2692 | echo "${ECHO_T}$CPP" >&6 |
| 2693 | ac_preproc_ok=false |
| 2694 | for ac_c_preproc_warn_flag in '' yes |
| 2695 | do |
| 2696 | # Use a header file that comes with gcc, so configuring glibc |
| 2697 | # with a fresh cross-compiler works. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2698 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2699 | # <limits.h> exists even on freestanding compilers. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2700 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2701 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2702 | cat >conftest.$ac_ext <<_ACEOF |
| 2703 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2704 | /* confdefs.h. */ |
| 2705 | _ACEOF |
| 2706 | cat confdefs.h >>conftest.$ac_ext |
| 2707 | cat >>conftest.$ac_ext <<_ACEOF |
| 2708 | /* end confdefs.h. */ |
| 2709 | #ifdef __STDC__ |
| 2710 | # include <limits.h> |
| 2711 | #else |
| 2712 | # include <assert.h> |
| 2713 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2714 | Syntax error |
| 2715 | _ACEOF |
| 2716 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2717 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2718 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2719 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2720 | rm -f conftest.er1 |
| 2721 | cat conftest.err >&5 |
| 2722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2723 | (exit $ac_status); } >/dev/null; then |
| 2724 | if test -s conftest.err; then |
| 2725 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2726 | else |
| 2727 | ac_cpp_err= |
| 2728 | fi |
| 2729 | else |
| 2730 | ac_cpp_err=yes |
| 2731 | fi |
| 2732 | if test -z "$ac_cpp_err"; then |
| 2733 | : |
| 2734 | else |
| 2735 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2737 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2738 | # Broken: fails on valid input. |
| 2739 | continue |
| 2740 | fi |
| 2741 | rm -f conftest.err conftest.$ac_ext |
| 2742 | |
| 2743 | # OK, works on sane cases. Now check whether non-existent headers |
| 2744 | # can be detected and how. |
| 2745 | cat >conftest.$ac_ext <<_ACEOF |
| 2746 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2747 | /* confdefs.h. */ |
| 2748 | _ACEOF |
| 2749 | cat confdefs.h >>conftest.$ac_ext |
| 2750 | cat >>conftest.$ac_ext <<_ACEOF |
| 2751 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2752 | #include <ac_nonexistent.h> |
| 2753 | _ACEOF |
| 2754 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2755 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2756 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2757 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2758 | rm -f conftest.er1 |
| 2759 | cat conftest.err >&5 |
| 2760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2761 | (exit $ac_status); } >/dev/null; then |
| 2762 | if test -s conftest.err; then |
| 2763 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2764 | else |
| 2765 | ac_cpp_err= |
| 2766 | fi |
| 2767 | else |
| 2768 | ac_cpp_err=yes |
| 2769 | fi |
| 2770 | if test -z "$ac_cpp_err"; then |
| 2771 | # Broken: success on invalid input. |
| 2772 | continue |
| 2773 | else |
| 2774 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2776 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2777 | # Passes both tests. |
| 2778 | ac_preproc_ok=: |
| 2779 | break |
| 2780 | fi |
| 2781 | rm -f conftest.err conftest.$ac_ext |
| 2782 | |
| 2783 | done |
| 2784 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2785 | rm -f conftest.err conftest.$ac_ext |
| 2786 | if $ac_preproc_ok; then |
| 2787 | : |
| 2788 | else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2789 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2790 | See \`config.log' for more details." >&5 |
| 2791 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2792 | See \`config.log' for more details." >&2;} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2793 | { (exit 1); exit 1; }; } |
| 2794 | fi |
| 2795 | |
| 2796 | ac_ext=c |
| 2797 | ac_cpp='$CPP $CPPFLAGS' |
| 2798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2801 | |
| 2802 | ac_ext=cc |
| 2803 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2804 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2805 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2806 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2807 | if test -n "$ac_tool_prefix"; then |
| 2808 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2809 | do |
| 2810 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2811 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2814 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2816 | else |
| 2817 | if test -n "$CXX"; then |
| 2818 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2819 | else |
| 2820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2821 | for as_dir in $PATH |
| 2822 | do |
| 2823 | IFS=$as_save_IFS |
| 2824 | test -z "$as_dir" && as_dir=. |
| 2825 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2826 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2827 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2829 | break 2 |
| 2830 | fi |
| 2831 | done |
| 2832 | done |
| 2833 | |
| 2834 | fi |
| 2835 | fi |
| 2836 | CXX=$ac_cv_prog_CXX |
| 2837 | if test -n "$CXX"; then |
| 2838 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2839 | echo "${ECHO_T}$CXX" >&6 |
| 2840 | else |
| 2841 | echo "$as_me:$LINENO: result: no" >&5 |
| 2842 | echo "${ECHO_T}no" >&6 |
| 2843 | fi |
| 2844 | |
| 2845 | test -n "$CXX" && break |
| 2846 | done |
| 2847 | fi |
| 2848 | if test -z "$CXX"; then |
| 2849 | ac_ct_CXX=$CXX |
| 2850 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2851 | do |
| 2852 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2853 | set dummy $ac_prog; ac_word=$2 |
| 2854 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2856 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2858 | else |
| 2859 | if test -n "$ac_ct_CXX"; then |
| 2860 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2861 | else |
| 2862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2863 | for as_dir in $PATH |
| 2864 | do |
| 2865 | IFS=$as_save_IFS |
| 2866 | test -z "$as_dir" && as_dir=. |
| 2867 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2868 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2869 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2871 | break 2 |
| 2872 | fi |
| 2873 | done |
| 2874 | done |
| 2875 | |
| 2876 | fi |
| 2877 | fi |
| 2878 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2879 | if test -n "$ac_ct_CXX"; then |
| 2880 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2881 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2882 | else |
| 2883 | echo "$as_me:$LINENO: result: no" >&5 |
| 2884 | echo "${ECHO_T}no" >&6 |
| 2885 | fi |
| 2886 | |
| 2887 | test -n "$ac_ct_CXX" && break |
| 2888 | done |
| 2889 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2890 | |
| 2891 | CXX=$ac_ct_CXX |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2892 | fi |
| 2893 | |
| 2894 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2895 | # Provide some information about the compiler. |
| 2896 | echo "$as_me:$LINENO:" \ |
| 2897 | "checking for C++ compiler version" >&5 |
| 2898 | ac_compiler=`set X $ac_compile; echo $2` |
| 2899 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2900 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2901 | ac_status=$? |
| 2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2903 | (exit $ac_status); } |
| 2904 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2905 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2906 | ac_status=$? |
| 2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2908 | (exit $ac_status); } |
| 2909 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2910 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2911 | ac_status=$? |
| 2912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2913 | (exit $ac_status); } |
| 2914 | |
| 2915 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2916 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2917 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2919 | else |
| 2920 | cat >conftest.$ac_ext <<_ACEOF |
| 2921 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2922 | /* confdefs.h. */ |
| 2923 | _ACEOF |
| 2924 | cat confdefs.h >>conftest.$ac_ext |
| 2925 | cat >>conftest.$ac_ext <<_ACEOF |
| 2926 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2927 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2928 | int |
| 2929 | main () |
| 2930 | { |
| 2931 | #ifndef __GNUC__ |
| 2932 | choke me |
| 2933 | #endif |
| 2934 | |
| 2935 | ; |
| 2936 | return 0; |
| 2937 | } |
| 2938 | _ACEOF |
| 2939 | rm -f conftest.$ac_objext |
| 2940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2941 | (eval $ac_compile) 2>&5 |
| 2942 | ac_status=$? |
| 2943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2944 | (exit $ac_status); } && |
| 2945 | { ac_try='test -s conftest.$ac_objext' |
| 2946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2947 | (eval $ac_try) 2>&5 |
| 2948 | ac_status=$? |
| 2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2950 | (exit $ac_status); }; }; then |
| 2951 | ac_compiler_gnu=yes |
| 2952 | else |
| 2953 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2955 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2956 | ac_compiler_gnu=no |
| 2957 | fi |
| 2958 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2959 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2960 | |
| 2961 | fi |
| 2962 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2963 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2964 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2965 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2966 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2967 | CXXFLAGS="-g" |
| 2968 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2969 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2970 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2972 | else |
| 2973 | cat >conftest.$ac_ext <<_ACEOF |
| 2974 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 2975 | /* confdefs.h. */ |
| 2976 | _ACEOF |
| 2977 | cat confdefs.h >>conftest.$ac_ext |
| 2978 | cat >>conftest.$ac_ext <<_ACEOF |
| 2979 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2980 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2981 | int |
| 2982 | main () |
| 2983 | { |
| 2984 | |
| 2985 | ; |
| 2986 | return 0; |
| 2987 | } |
| 2988 | _ACEOF |
| 2989 | rm -f conftest.$ac_objext |
| 2990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2991 | (eval $ac_compile) 2>&5 |
| 2992 | ac_status=$? |
| 2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2994 | (exit $ac_status); } && |
| 2995 | { ac_try='test -s conftest.$ac_objext' |
| 2996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2997 | (eval $ac_try) 2>&5 |
| 2998 | ac_status=$? |
| 2999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3000 | (exit $ac_status); }; }; then |
| 3001 | ac_cv_prog_cxx_g=yes |
| 3002 | else |
| 3003 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3005 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3006 | ac_cv_prog_cxx_g=no |
| 3007 | fi |
| 3008 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3009 | fi |
| 3010 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3011 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 3012 | if test "$ac_test_CXXFLAGS" = set; then |
| 3013 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3014 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3015 | if test "$GXX" = yes; then |
| 3016 | CXXFLAGS="-g -O2" |
| 3017 | else |
| 3018 | CXXFLAGS="-g" |
| 3019 | fi |
| 3020 | else |
| 3021 | if test "$GXX" = yes; then |
| 3022 | CXXFLAGS="-O2" |
| 3023 | else |
| 3024 | CXXFLAGS= |
| 3025 | fi |
| 3026 | fi |
| 3027 | for ac_declaration in \ |
| 3028 | ''\ |
| 3029 | '#include <stdlib.h>' \ |
| 3030 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3031 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3032 | 'extern "C" void exit (int) throw ();' \ |
| 3033 | 'extern "C" void exit (int);' \ |
| 3034 | 'void exit (int);' |
| 3035 | do |
| 3036 | cat >conftest.$ac_ext <<_ACEOF |
| 3037 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3038 | /* confdefs.h. */ |
| 3039 | _ACEOF |
| 3040 | cat confdefs.h >>conftest.$ac_ext |
| 3041 | cat >>conftest.$ac_ext <<_ACEOF |
| 3042 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3043 | #include <stdlib.h> |
| 3044 | $ac_declaration |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3045 | int |
| 3046 | main () |
| 3047 | { |
| 3048 | exit (42); |
| 3049 | ; |
| 3050 | return 0; |
| 3051 | } |
| 3052 | _ACEOF |
| 3053 | rm -f conftest.$ac_objext |
| 3054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3055 | (eval $ac_compile) 2>&5 |
| 3056 | ac_status=$? |
| 3057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3058 | (exit $ac_status); } && |
| 3059 | { ac_try='test -s conftest.$ac_objext' |
| 3060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3061 | (eval $ac_try) 2>&5 |
| 3062 | ac_status=$? |
| 3063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3064 | (exit $ac_status); }; }; then |
| 3065 | : |
| 3066 | else |
| 3067 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3069 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3070 | continue |
| 3071 | fi |
| 3072 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3073 | cat >conftest.$ac_ext <<_ACEOF |
| 3074 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3075 | /* confdefs.h. */ |
| 3076 | _ACEOF |
| 3077 | cat confdefs.h >>conftest.$ac_ext |
| 3078 | cat >>conftest.$ac_ext <<_ACEOF |
| 3079 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3080 | $ac_declaration |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3081 | int |
| 3082 | main () |
| 3083 | { |
| 3084 | exit (42); |
| 3085 | ; |
| 3086 | return 0; |
| 3087 | } |
| 3088 | _ACEOF |
| 3089 | rm -f conftest.$ac_objext |
| 3090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3091 | (eval $ac_compile) 2>&5 |
| 3092 | ac_status=$? |
| 3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3094 | (exit $ac_status); } && |
| 3095 | { ac_try='test -s conftest.$ac_objext' |
| 3096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3097 | (eval $ac_try) 2>&5 |
| 3098 | ac_status=$? |
| 3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3100 | (exit $ac_status); }; }; then |
| 3101 | break |
| 3102 | else |
| 3103 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3105 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3106 | fi |
| 3107 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3108 | done |
| 3109 | rm -f conftest* |
| 3110 | if test -n "$ac_declaration"; then |
| 3111 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3112 | echo $ac_declaration >>confdefs.h |
| 3113 | echo '#endif' >>confdefs.h |
| 3114 | fi |
| 3115 | |
| 3116 | ac_ext=c |
| 3117 | ac_cpp='$CPP $CPPFLAGS' |
| 3118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3121 | |
| 3122 | if test -n "$ac_tool_prefix"; then |
| 3123 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3124 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3127 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3129 | else |
| 3130 | if test -n "$RANLIB"; then |
| 3131 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3132 | else |
| 3133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3134 | for as_dir in $PATH |
| 3135 | do |
| 3136 | IFS=$as_save_IFS |
| 3137 | test -z "$as_dir" && as_dir=. |
| 3138 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3139 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3140 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3142 | break 2 |
| 3143 | fi |
| 3144 | done |
| 3145 | done |
| 3146 | |
| 3147 | fi |
| 3148 | fi |
| 3149 | RANLIB=$ac_cv_prog_RANLIB |
| 3150 | if test -n "$RANLIB"; then |
| 3151 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3152 | echo "${ECHO_T}$RANLIB" >&6 |
| 3153 | else |
| 3154 | echo "$as_me:$LINENO: result: no" >&5 |
| 3155 | echo "${ECHO_T}no" >&6 |
| 3156 | fi |
| 3157 | |
| 3158 | fi |
| 3159 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3160 | ac_ct_RANLIB=$RANLIB |
| 3161 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3162 | set dummy ranlib; ac_word=$2 |
| 3163 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3165 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3167 | else |
| 3168 | if test -n "$ac_ct_RANLIB"; then |
| 3169 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3170 | else |
| 3171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3172 | for as_dir in $PATH |
| 3173 | do |
| 3174 | IFS=$as_save_IFS |
| 3175 | test -z "$as_dir" && as_dir=. |
| 3176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3177 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3178 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3179 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3180 | break 2 |
| 3181 | fi |
| 3182 | done |
| 3183 | done |
| 3184 | |
| 3185 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3186 | fi |
| 3187 | fi |
| 3188 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3189 | if test -n "$ac_ct_RANLIB"; then |
| 3190 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3191 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3192 | else |
| 3193 | echo "$as_me:$LINENO: result: no" >&5 |
| 3194 | echo "${ECHO_T}no" >&6 |
| 3195 | fi |
| 3196 | |
| 3197 | RANLIB=$ac_ct_RANLIB |
| 3198 | else |
| 3199 | RANLIB="$ac_cv_prog_RANLIB" |
| 3200 | fi |
| 3201 | |
| 3202 | |
| 3203 | |
| 3204 | #JJAKO Check for libtool |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3205 | # Check whether --enable-shared or --disable-shared was given. |
| 3206 | if test "${enable_shared+set}" = set; then |
| 3207 | enableval="$enable_shared" |
| 3208 | p=${PACKAGE-default} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3209 | case $enableval in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3210 | yes) enable_shared=yes ;; |
| 3211 | no) enable_shared=no ;; |
| 3212 | *) |
| 3213 | enable_shared=no |
| 3214 | # Look at the argument we got. We use all the common list separators. |
| 3215 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3216 | for pkg in $enableval; do |
| 3217 | if test "X$pkg" = "X$p"; then |
| 3218 | enable_shared=yes |
| 3219 | fi |
| 3220 | done |
| 3221 | IFS="$ac_save_ifs" |
| 3222 | ;; |
| 3223 | esac |
| 3224 | else |
| 3225 | enable_shared=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3226 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3227 | # Check whether --enable-static or --disable-static was given. |
| 3228 | if test "${enable_static+set}" = set; then |
| 3229 | enableval="$enable_static" |
| 3230 | p=${PACKAGE-default} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3231 | case $enableval in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3232 | yes) enable_static=yes ;; |
| 3233 | no) enable_static=no ;; |
| 3234 | *) |
| 3235 | enable_static=no |
| 3236 | # Look at the argument we got. We use all the common list separators. |
| 3237 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3238 | for pkg in $enableval; do |
| 3239 | if test "X$pkg" = "X$p"; then |
| 3240 | enable_static=yes |
| 3241 | fi |
| 3242 | done |
| 3243 | IFS="$ac_save_ifs" |
| 3244 | ;; |
| 3245 | esac |
| 3246 | else |
| 3247 | enable_static=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3248 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3249 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3250 | if test "${enable_fast_install+set}" = set; then |
| 3251 | enableval="$enable_fast_install" |
| 3252 | p=${PACKAGE-default} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3253 | case $enableval in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3254 | yes) enable_fast_install=yes ;; |
| 3255 | no) enable_fast_install=no ;; |
| 3256 | *) |
| 3257 | enable_fast_install=no |
| 3258 | # Look at the argument we got. We use all the common list separators. |
| 3259 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3260 | for pkg in $enableval; do |
| 3261 | if test "X$pkg" = "X$p"; then |
| 3262 | enable_fast_install=yes |
| 3263 | fi |
| 3264 | done |
| 3265 | IFS="$ac_save_ifs" |
| 3266 | ;; |
| 3267 | esac |
| 3268 | else |
| 3269 | enable_fast_install=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3270 | fi; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3271 | # Find the correct PATH separator. Usually this is `:', but |
| 3272 | # DJGPP uses `;' like DOS. |
| 3273 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 3274 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 3275 | case X$UNAME in |
| 3276 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 3277 | *) lt_cv_sys_path_separator=':' ;; |
| 3278 | esac |
| 3279 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3280 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3281 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3282 | |
| 3283 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3284 | if test "${with_gnu_ld+set}" = set; then |
| 3285 | withval="$with_gnu_ld" |
| 3286 | test "$withval" = no || with_gnu_ld=yes |
| 3287 | else |
| 3288 | with_gnu_ld=no |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3289 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3290 | ac_prog=ld |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3291 | if test "$GCC" = yes; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3292 | # Check if gcc -print-prog-name=ld gives a path. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3293 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 3294 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 3295 | case $host in |
| 3296 | *-*-mingw*) |
| 3297 | # gcc leaves a trailing carriage return which upsets mingw |
| 3298 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3299 | *) |
| 3300 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3301 | esac |
| 3302 | case $ac_prog in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3303 | # Accept absolute paths. |
| 3304 | [\\/]* | [A-Za-z]:[\\/]*) |
| 3305 | re_direlt='/[^/][^/]*/\.\./' |
| 3306 | # Canonicalize the path of ld |
| 3307 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 3308 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3309 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 3310 | done |
| 3311 | test -z "$LD" && LD="$ac_prog" |
| 3312 | ;; |
| 3313 | "") |
| 3314 | # If it fails, then pretend we aren't using GCC. |
| 3315 | ac_prog=ld |
| 3316 | ;; |
| 3317 | *) |
| 3318 | # If it is relative, then search for the first ld in PATH. |
| 3319 | with_gnu_ld=unknown |
| 3320 | ;; |
| 3321 | esac |
| 3322 | elif test "$with_gnu_ld" = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3323 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3324 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3325 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3326 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3327 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3328 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3329 | if test "${lt_cv_path_LD+set}" = set; then |
| 3330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3331 | else |
| 3332 | if test -z "$LD"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3333 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3334 | for ac_dir in $PATH; do |
| 3335 | test -z "$ac_dir" && ac_dir=. |
| 3336 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3337 | lt_cv_path_LD="$ac_dir/$ac_prog" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3338 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3339 | # but apparently some GNU ld's only accept -v. |
| 3340 | # Break only if it was the GNU/non-GNU ld that we prefer. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3341 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3342 | test "$with_gnu_ld" != no && break |
| 3343 | else |
| 3344 | test "$with_gnu_ld" != yes && break |
| 3345 | fi |
| 3346 | fi |
| 3347 | done |
| 3348 | IFS="$ac_save_ifs" |
| 3349 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3350 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3351 | fi |
| 3352 | fi |
| 3353 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3354 | LD="$lt_cv_path_LD" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3355 | if test -n "$LD"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3356 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3357 | echo "${ECHO_T}$LD" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3358 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3359 | echo "$as_me:$LINENO: result: no" >&5 |
| 3360 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3361 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3362 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3363 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3364 | { (exit 1); exit 1; }; } |
| 3365 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3366 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 3367 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3369 | else |
| 3370 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3371 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3372 | lt_cv_prog_gnu_ld=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3373 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3374 | lt_cv_prog_gnu_ld=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3375 | fi |
| 3376 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3377 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3378 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3379 | with_gnu_ld=$lt_cv_prog_gnu_ld |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3380 | |
| 3381 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3382 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3383 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3384 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3386 | else |
| 3387 | lt_cv_ld_reload_flag='-r' |
| 3388 | fi |
| 3389 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3390 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3391 | reload_flag=$lt_cv_ld_reload_flag |
| 3392 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 3393 | |
| 3394 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3395 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3396 | if test "${lt_cv_path_NM+set}" = set; then |
| 3397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3398 | else |
| 3399 | if test -n "$NM"; then |
| 3400 | # Let the user override the test. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3401 | lt_cv_path_NM="$NM" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3402 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3403 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3404 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3405 | test -z "$ac_dir" && ac_dir=. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3406 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 3407 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3408 | # Check to see if the nm accepts a BSD-compat flag. |
| 3409 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3410 | # nm: unknown option "B" ignored |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3411 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3412 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 3413 | lt_cv_path_NM="$tmp_nm -B" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3414 | break |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3415 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 3416 | lt_cv_path_NM="$tmp_nm -p" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3417 | break |
| 3418 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3419 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3420 | continue # so that we can try to find one that supports BSD flags |
| 3421 | fi |
| 3422 | fi |
| 3423 | done |
| 3424 | IFS="$ac_save_ifs" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3425 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3426 | fi |
| 3427 | fi |
| 3428 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3429 | NM="$lt_cv_path_NM" |
| 3430 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 3431 | echo "${ECHO_T}$NM" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3432 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3433 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3434 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3435 | if test "${lt_cv_path_SED+set}" = set; then |
| 3436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3437 | else |
| 3438 | # Loop through the user's path and test for sed and gsed. |
| 3439 | # Then use that list of sed's as ones to test for truncation. |
| 3440 | as_executable_p="test -f" |
| 3441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3442 | for as_dir in $PATH |
| 3443 | do |
| 3444 | IFS=$as_save_IFS |
| 3445 | test -z "$as_dir" && as_dir=. |
| 3446 | for ac_prog in sed gsed; do |
| 3447 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3448 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3449 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
| 3450 | fi |
| 3451 | done |
| 3452 | done |
| 3453 | done |
| 3454 | |
| 3455 | # Create a temporary directory, and hook for its removal unless debugging. |
| 3456 | $debug || |
| 3457 | { |
| 3458 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 3459 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 3460 | } |
| 3461 | |
| 3462 | # Create a (secure) tmp directory for tmp files. |
| 3463 | : ${TMPDIR=/tmp} |
| 3464 | { |
| 3465 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
| 3466 | test -n "$tmp" && test -d "$tmp" |
| 3467 | } || |
| 3468 | { |
| 3469 | tmp=$TMPDIR/sed$$-$RANDOM |
| 3470 | (umask 077 && mkdir $tmp) |
| 3471 | } || |
| 3472 | { |
| 3473 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 3474 | { (exit 1); exit 1; } |
| 3475 | } |
| 3476 | _max=0 |
| 3477 | _count=0 |
| 3478 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3479 | # along with /bin/sed that truncates output. |
| 3480 | for _sed in $_sed_list /usr/xpg4/bin/sed; do |
| 3481 | test ! -f ${_sed} && break |
| 3482 | cat /dev/null > "$tmp/sed.in" |
| 3483 | _count=0 |
| 3484 | echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
| 3485 | # Check for GNU sed and select it if it is found. |
| 3486 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
| 3487 | lt_cv_path_SED=${_sed} |
| 3488 | break |
| 3489 | fi |
| 3490 | while true; do |
| 3491 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
| 3492 | mv "$tmp/sed.tmp" "$tmp/sed.in" |
| 3493 | cp "$tmp/sed.in" "$tmp/sed.nl" |
| 3494 | echo >>"$tmp/sed.nl" |
| 3495 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
| 3496 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
| 3497 | # 40000 chars as input seems more than enough |
| 3498 | test $_count -gt 10 && break |
| 3499 | _count=`expr $_count + 1` |
| 3500 | if test $_count -gt $_max; then |
| 3501 | _max=$_count |
| 3502 | lt_cv_path_SED=$_sed |
| 3503 | fi |
| 3504 | done |
| 3505 | done |
| 3506 | rm -rf "$tmp" |
| 3507 | |
| 3508 | fi |
| 3509 | |
| 3510 | if test "X$SED" != "X"; then |
| 3511 | lt_cv_path_SED=$SED |
| 3512 | else |
| 3513 | SED=$lt_cv_path_SED |
| 3514 | fi |
| 3515 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3516 | echo "${ECHO_T}$SED" >&6 |
| 3517 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3518 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3519 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3520 | LN_S=$as_ln_s |
| 3521 | if test "$LN_S" = "ln -s"; then |
| 3522 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3523 | echo "${ECHO_T}yes" >&6 |
| 3524 | else |
| 3525 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3526 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3527 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3528 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3529 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3530 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3531 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3533 | else |
| 3534 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3535 | lt_cv_file_magic_test_file= |
| 3536 | lt_cv_deplibs_check_method='unknown' |
| 3537 | # Need to set the preceding variable on all platforms that support |
| 3538 | # interlibrary dependencies. |
| 3539 | # 'none' -- dependencies not supported. |
| 3540 | # `unknown' -- same as none, but documents that we really don't know. |
| 3541 | # 'pass_all' -- all dependencies passed with no checks. |
| 3542 | # 'test_compile' -- check by making test program. |
| 3543 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 3544 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 3545 | # If you have `file' or equivalent on your system and you're not sure |
| 3546 | # whether `pass_all' will *always* work, you probably want this one. |
| 3547 | |
| 3548 | case $host_os in |
| 3549 | aix4* | aix5*) |
| 3550 | lt_cv_deplibs_check_method=pass_all |
| 3551 | ;; |
| 3552 | |
| 3553 | beos*) |
| 3554 | lt_cv_deplibs_check_method=pass_all |
| 3555 | ;; |
| 3556 | |
| 3557 | bsdi4*) |
| 3558 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3559 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3560 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3561 | ;; |
| 3562 | |
| 3563 | cygwin* | mingw* | pw32*) |
| 3564 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3565 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3566 | ;; |
| 3567 | |
| 3568 | darwin* | rhapsody*) |
| 3569 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3570 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3571 | case "$host_os" in |
| 3572 | rhapsody* | darwin1.[012]) |
| 3573 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
| 3574 | ;; |
| 3575 | *) # Darwin 1.3 on |
| 3576 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3577 | ;; |
| 3578 | esac |
| 3579 | ;; |
| 3580 | |
| 3581 | freebsd*) |
| 3582 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3583 | case $host_cpu in |
| 3584 | i*86 ) |
| 3585 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3586 | # Let's accept both of them until this is cleared up. |
| 3587 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3588 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3589 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3590 | ;; |
| 3591 | esac |
| 3592 | else |
| 3593 | lt_cv_deplibs_check_method=pass_all |
| 3594 | fi |
| 3595 | ;; |
| 3596 | |
| 3597 | gnu*) |
| 3598 | lt_cv_deplibs_check_method=pass_all |
| 3599 | ;; |
| 3600 | |
| 3601 | hpux10.20*|hpux11*) |
| 3602 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3603 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3604 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3605 | ;; |
| 3606 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3607 | irix5* | irix6* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3608 | case $host_os in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3609 | irix5* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3610 | # this will be overridden with pass_all, but let us keep it just in case |
| 3611 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3612 | ;; |
| 3613 | *) |
| 3614 | case $LD in |
| 3615 | *-32|*"-32 ") libmagic=32-bit;; |
| 3616 | *-n32|*"-n32 ") libmagic=N32;; |
| 3617 | *-64|*"-64 ") libmagic=64-bit;; |
| 3618 | *) libmagic=never-match;; |
| 3619 | esac |
| 3620 | # this will be overridden with pass_all, but let us keep it just in case |
| 3621 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 3622 | ;; |
| 3623 | esac |
| 3624 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3625 | lt_cv_deplibs_check_method=pass_all |
| 3626 | ;; |
| 3627 | |
| 3628 | # This must be Linux ELF. |
| 3629 | linux-gnu*) |
| 3630 | case $host_cpu in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3631 | alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3632 | lt_cv_deplibs_check_method=pass_all ;; |
| 3633 | *) |
| 3634 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 3635 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3636 | esac |
| 3637 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3638 | ;; |
| 3639 | |
| 3640 | netbsd*) |
| 3641 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3642 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 3643 | else |
| 3644 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 3645 | fi |
| 3646 | ;; |
| 3647 | |
| 3648 | newos6*) |
| 3649 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3650 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3651 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3652 | ;; |
| 3653 | |
| 3654 | openbsd*) |
| 3655 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3656 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3657 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3658 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3659 | else |
| 3660 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3661 | fi |
| 3662 | ;; |
| 3663 | |
| 3664 | osf3* | osf4* | osf5*) |
| 3665 | # this will be overridden with pass_all, but let us keep it just in case |
| 3666 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3667 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3668 | lt_cv_deplibs_check_method=pass_all |
| 3669 | ;; |
| 3670 | |
| 3671 | sco3.2v5*) |
| 3672 | lt_cv_deplibs_check_method=pass_all |
| 3673 | ;; |
| 3674 | |
| 3675 | solaris*) |
| 3676 | lt_cv_deplibs_check_method=pass_all |
| 3677 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3678 | ;; |
| 3679 | |
| 3680 | sysv5uw[78]* | sysv4*uw2*) |
| 3681 | lt_cv_deplibs_check_method=pass_all |
| 3682 | ;; |
| 3683 | |
| 3684 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3685 | case $host_vendor in |
| 3686 | motorola) |
| 3687 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 3688 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3689 | ;; |
| 3690 | ncr) |
| 3691 | lt_cv_deplibs_check_method=pass_all |
| 3692 | ;; |
| 3693 | sequent) |
| 3694 | lt_cv_file_magic_cmd='/bin/file' |
| 3695 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3696 | ;; |
| 3697 | sni) |
| 3698 | lt_cv_file_magic_cmd='/bin/file' |
| 3699 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3700 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3701 | ;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3702 | siemens) |
| 3703 | lt_cv_deplibs_check_method=pass_all |
| 3704 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3705 | esac |
| 3706 | ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3707 | esac |
| 3708 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3709 | fi |
| 3710 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3711 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3712 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3713 | deplibs_check_method=$lt_cv_deplibs_check_method |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3714 | |
| 3715 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3716 | |
| 3717 | |
| 3718 | |
| 3719 | |
| 3720 | |
| 3721 | |
| 3722 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 3723 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
| 3724 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
| 3725 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 3726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3727 | else |
| 3728 | |
| 3729 | # These are sane defaults that work on at least a few old systems. |
| 3730 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3731 | |
| 3732 | # Character class describing NM global symbol codes. |
| 3733 | symcode='[BCDEGRST]' |
| 3734 | |
| 3735 | # Regexp to match symbols that can be accessed directly from C. |
| 3736 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 3737 | |
| 3738 | # Transform the above into a raw symbol and a C symbol. |
| 3739 | symxfrm='\1 \2\3 \3' |
| 3740 | |
| 3741 | # Transform an extracted symbol line into a proper C declaration |
| 3742 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
| 3743 | |
| 3744 | # Transform an extracted symbol line into symbol name and symbol address |
| 3745 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 3746 | |
| 3747 | # Define system-specific variables. |
| 3748 | case $host_os in |
| 3749 | aix*) |
| 3750 | symcode='[BCDT]' |
| 3751 | ;; |
| 3752 | cygwin* | mingw* | pw32*) |
| 3753 | symcode='[ABCDGISTW]' |
| 3754 | ;; |
| 3755 | hpux*) # Its linker distinguishes data from code symbols |
| 3756 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3757 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 3758 | ;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3759 | irix* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3760 | symcode='[BCDEGRST]' |
| 3761 | ;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3762 | osf*) |
| 3763 | symcode='[BCDEGQRST]' |
| 3764 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3765 | solaris* | sysv5*) |
| 3766 | symcode='[BDT]' |
| 3767 | ;; |
| 3768 | sysv4) |
| 3769 | symcode='[DFNSTU]' |
| 3770 | ;; |
| 3771 | esac |
| 3772 | |
| 3773 | # Handle CRLF in mingw tool chain |
| 3774 | opt_cr= |
| 3775 | case $host_os in |
| 3776 | mingw*) |
| 3777 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3778 | ;; |
| 3779 | esac |
| 3780 | |
| 3781 | # If we're using GNU nm, then use its standard symbol codes. |
| 3782 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 3783 | symcode='[ABCDGISTW]' |
| 3784 | fi |
| 3785 | |
| 3786 | # Try without a prefix undercore, then with it. |
| 3787 | for ac_symprfx in "" "_"; do |
| 3788 | |
| 3789 | # Write the raw and C identifiers. |
| 3790 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 3791 | |
| 3792 | # Check to see that the pipe works correctly. |
| 3793 | pipe_works=no |
| 3794 | rm -f conftest* |
| 3795 | cat > conftest.$ac_ext <<EOF |
| 3796 | #ifdef __cplusplus |
| 3797 | extern "C" { |
| 3798 | #endif |
| 3799 | char nm_test_var; |
| 3800 | void nm_test_func(){} |
| 3801 | #ifdef __cplusplus |
| 3802 | } |
| 3803 | #endif |
| 3804 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3805 | EOF |
| 3806 | |
| 3807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3808 | (eval $ac_compile) 2>&5 |
| 3809 | ac_status=$? |
| 3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3811 | (exit $ac_status); }; then |
| 3812 | # Now try to grab the symbols. |
| 3813 | nlist=conftest.nm |
| 3814 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 3815 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 3816 | ac_status=$? |
| 3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3818 | (exit $ac_status); } && test -s "$nlist"; then |
| 3819 | # Try sorting and uniquifying the output. |
| 3820 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3821 | mv -f "$nlist"T "$nlist" |
| 3822 | else |
| 3823 | rm -f "$nlist"T |
| 3824 | fi |
| 3825 | |
| 3826 | # Make sure that we snagged all the symbols we need. |
| 3827 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 3828 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 3829 | cat <<EOF > conftest.$ac_ext |
| 3830 | #ifdef __cplusplus |
| 3831 | extern "C" { |
| 3832 | #endif |
| 3833 | |
| 3834 | EOF |
| 3835 | # Now generate the symbol file. |
| 3836 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
| 3837 | |
| 3838 | cat <<EOF >> conftest.$ac_ext |
| 3839 | #if defined (__STDC__) && __STDC__ |
| 3840 | # define lt_ptr void * |
| 3841 | #else |
| 3842 | # define lt_ptr char * |
| 3843 | # define const |
| 3844 | #endif |
| 3845 | |
| 3846 | /* The mapping between symbol names and symbols. */ |
| 3847 | const struct { |
| 3848 | const char *name; |
| 3849 | lt_ptr address; |
| 3850 | } |
| 3851 | lt_preloaded_symbols[] = |
| 3852 | { |
| 3853 | EOF |
| 3854 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 3855 | cat <<\EOF >> conftest.$ac_ext |
| 3856 | {0, (lt_ptr) 0} |
| 3857 | }; |
| 3858 | |
| 3859 | #ifdef __cplusplus |
| 3860 | } |
| 3861 | #endif |
| 3862 | EOF |
| 3863 | # Now try linking the two files. |
| 3864 | mv conftest.$ac_objext conftstm.$ac_objext |
| 3865 | save_LIBS="$LIBS" |
| 3866 | save_CFLAGS="$CFLAGS" |
| 3867 | LIBS="conftstm.$ac_objext" |
| 3868 | CFLAGS="$CFLAGS$no_builtin_flag" |
| 3869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3870 | (eval $ac_link) 2>&5 |
| 3871 | ac_status=$? |
| 3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3873 | (exit $ac_status); } && test -s conftest$ac_exeext; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3874 | pipe_works=yes |
| 3875 | fi |
| 3876 | LIBS="$save_LIBS" |
| 3877 | CFLAGS="$save_CFLAGS" |
| 3878 | else |
| 3879 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3880 | fi |
| 3881 | else |
| 3882 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3883 | fi |
| 3884 | else |
| 3885 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3886 | fi |
| 3887 | else |
| 3888 | echo "$progname: failed program was:" >&5 |
| 3889 | cat conftest.$ac_ext >&5 |
| 3890 | fi |
| 3891 | rm -f conftest* conftst* |
| 3892 | |
| 3893 | # Do not use the global_symbol_pipe unless it works. |
| 3894 | if test "$pipe_works" = yes; then |
| 3895 | break |
| 3896 | else |
| 3897 | lt_cv_sys_global_symbol_pipe= |
| 3898 | fi |
| 3899 | done |
| 3900 | |
| 3901 | fi |
| 3902 | |
| 3903 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
| 3904 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3905 | global_symbol_to_cdecl= |
| 3906 | global_symbol_to_c_name_address= |
| 3907 | else |
| 3908 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 3909 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
| 3910 | fi |
| 3911 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
| 3912 | then |
| 3913 | echo "$as_me:$LINENO: result: failed" >&5 |
| 3914 | echo "${ECHO_T}failed" >&6 |
| 3915 | else |
| 3916 | echo "$as_me:$LINENO: result: ok" >&5 |
| 3917 | echo "${ECHO_T}ok" >&6 |
| 3918 | fi |
| 3919 | |
| 3920 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3921 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3922 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3923 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3925 | else |
| 3926 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3927 | then ac_cv_prog_egrep='grep -E' |
| 3928 | else ac_cv_prog_egrep='egrep' |
| 3929 | fi |
| 3930 | fi |
| 3931 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3932 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3933 | EGREP=$ac_cv_prog_egrep |
| 3934 | |
| 3935 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3936 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3937 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3938 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3940 | else |
| 3941 | cat >conftest.$ac_ext <<_ACEOF |
| 3942 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3943 | /* confdefs.h. */ |
| 3944 | _ACEOF |
| 3945 | cat confdefs.h >>conftest.$ac_ext |
| 3946 | cat >>conftest.$ac_ext <<_ACEOF |
| 3947 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3948 | #include <stdlib.h> |
| 3949 | #include <stdarg.h> |
| 3950 | #include <string.h> |
| 3951 | #include <float.h> |
| 3952 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3953 | int |
| 3954 | main () |
| 3955 | { |
| 3956 | |
| 3957 | ; |
| 3958 | return 0; |
| 3959 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3960 | _ACEOF |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3961 | rm -f conftest.$ac_objext |
| 3962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3963 | (eval $ac_compile) 2>&5 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3964 | ac_status=$? |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3966 | (exit $ac_status); } && |
| 3967 | { ac_try='test -s conftest.$ac_objext' |
| 3968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3969 | (eval $ac_try) 2>&5 |
| 3970 | ac_status=$? |
| 3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3972 | (exit $ac_status); }; }; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3973 | ac_cv_header_stdc=yes |
| 3974 | else |
| 3975 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3977 | |
| 3978 | ac_cv_header_stdc=no |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3979 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3980 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3981 | |
| 3982 | if test $ac_cv_header_stdc = yes; then |
| 3983 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3984 | cat >conftest.$ac_ext <<_ACEOF |
| 3985 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3986 | /* confdefs.h. */ |
| 3987 | _ACEOF |
| 3988 | cat confdefs.h >>conftest.$ac_ext |
| 3989 | cat >>conftest.$ac_ext <<_ACEOF |
| 3990 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3991 | #include <string.h> |
| 3992 | |
| 3993 | _ACEOF |
| 3994 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 3995 | $EGREP "memchr" >/dev/null 2>&1; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3996 | : |
| 3997 | else |
| 3998 | ac_cv_header_stdc=no |
| 3999 | fi |
| 4000 | rm -f conftest* |
| 4001 | |
| 4002 | fi |
| 4003 | |
| 4004 | if test $ac_cv_header_stdc = yes; then |
| 4005 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4006 | cat >conftest.$ac_ext <<_ACEOF |
| 4007 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4008 | /* confdefs.h. */ |
| 4009 | _ACEOF |
| 4010 | cat confdefs.h >>conftest.$ac_ext |
| 4011 | cat >>conftest.$ac_ext <<_ACEOF |
| 4012 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4013 | #include <stdlib.h> |
| 4014 | |
| 4015 | _ACEOF |
| 4016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4017 | $EGREP "free" >/dev/null 2>&1; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4018 | : |
| 4019 | else |
| 4020 | ac_cv_header_stdc=no |
| 4021 | fi |
| 4022 | rm -f conftest* |
| 4023 | |
| 4024 | fi |
| 4025 | |
| 4026 | if test $ac_cv_header_stdc = yes; then |
| 4027 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4028 | if test "$cross_compiling" = yes; then |
| 4029 | : |
| 4030 | else |
| 4031 | cat >conftest.$ac_ext <<_ACEOF |
| 4032 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4033 | /* confdefs.h. */ |
| 4034 | _ACEOF |
| 4035 | cat confdefs.h >>conftest.$ac_ext |
| 4036 | cat >>conftest.$ac_ext <<_ACEOF |
| 4037 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4038 | #include <ctype.h> |
| 4039 | #if ((' ' & 0x0FF) == 0x020) |
| 4040 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4041 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4042 | #else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4043 | # define ISLOWER(c) \ |
| 4044 | (('a' <= (c) && (c) <= 'i') \ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4045 | || ('j' <= (c) && (c) <= 'r') \ |
| 4046 | || ('s' <= (c) && (c) <= 'z')) |
| 4047 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4048 | #endif |
| 4049 | |
| 4050 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4051 | int |
| 4052 | main () |
| 4053 | { |
| 4054 | int i; |
| 4055 | for (i = 0; i < 256; i++) |
| 4056 | if (XOR (islower (i), ISLOWER (i)) |
| 4057 | || toupper (i) != TOUPPER (i)) |
| 4058 | exit(2); |
| 4059 | exit (0); |
| 4060 | } |
| 4061 | _ACEOF |
| 4062 | rm -f conftest$ac_exeext |
| 4063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4064 | (eval $ac_link) 2>&5 |
| 4065 | ac_status=$? |
| 4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4067 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4069 | (eval $ac_try) 2>&5 |
| 4070 | ac_status=$? |
| 4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4072 | (exit $ac_status); }; }; then |
| 4073 | : |
| 4074 | else |
| 4075 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4076 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4078 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4079 | ( exit $ac_status ) |
| 4080 | ac_cv_header_stdc=no |
| 4081 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4082 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4083 | fi |
| 4084 | fi |
| 4085 | fi |
| 4086 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4087 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4088 | if test $ac_cv_header_stdc = yes; then |
| 4089 | |
| 4090 | cat >>confdefs.h <<\_ACEOF |
| 4091 | #define STDC_HEADERS 1 |
| 4092 | _ACEOF |
| 4093 | |
| 4094 | fi |
| 4095 | |
| 4096 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4097 | |
| 4098 | |
| 4099 | |
| 4100 | |
| 4101 | |
| 4102 | |
| 4103 | |
| 4104 | |
| 4105 | |
| 4106 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4107 | inttypes.h stdint.h unistd.h |
| 4108 | do |
| 4109 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4110 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4114 | else |
| 4115 | cat >conftest.$ac_ext <<_ACEOF |
| 4116 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4117 | /* confdefs.h. */ |
| 4118 | _ACEOF |
| 4119 | cat confdefs.h >>conftest.$ac_ext |
| 4120 | cat >>conftest.$ac_ext <<_ACEOF |
| 4121 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4122 | $ac_includes_default |
| 4123 | |
| 4124 | #include <$ac_header> |
| 4125 | _ACEOF |
| 4126 | rm -f conftest.$ac_objext |
| 4127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4128 | (eval $ac_compile) 2>&5 |
| 4129 | ac_status=$? |
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4131 | (exit $ac_status); } && |
| 4132 | { ac_try='test -s conftest.$ac_objext' |
| 4133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4134 | (eval $ac_try) 2>&5 |
| 4135 | ac_status=$? |
| 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4137 | (exit $ac_status); }; }; then |
| 4138 | eval "$as_ac_Header=yes" |
| 4139 | else |
| 4140 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4142 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4143 | eval "$as_ac_Header=no" |
| 4144 | fi |
| 4145 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4146 | fi |
| 4147 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4148 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4149 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4150 | cat >>confdefs.h <<_ACEOF |
| 4151 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4152 | _ACEOF |
| 4153 | |
| 4154 | fi |
| 4155 | |
| 4156 | done |
| 4157 | |
| 4158 | |
| 4159 | |
| 4160 | for ac_header in dlfcn.h |
| 4161 | do |
| 4162 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4164 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4166 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4168 | fi |
| 4169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4171 | else |
| 4172 | # Is the header compilable? |
| 4173 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4174 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4175 | cat >conftest.$ac_ext <<_ACEOF |
| 4176 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4177 | /* confdefs.h. */ |
| 4178 | _ACEOF |
| 4179 | cat confdefs.h >>conftest.$ac_ext |
| 4180 | cat >>conftest.$ac_ext <<_ACEOF |
| 4181 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4182 | $ac_includes_default |
| 4183 | #include <$ac_header> |
| 4184 | _ACEOF |
| 4185 | rm -f conftest.$ac_objext |
| 4186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4187 | (eval $ac_compile) 2>&5 |
| 4188 | ac_status=$? |
| 4189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4190 | (exit $ac_status); } && |
| 4191 | { ac_try='test -s conftest.$ac_objext' |
| 4192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4193 | (eval $ac_try) 2>&5 |
| 4194 | ac_status=$? |
| 4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4196 | (exit $ac_status); }; }; then |
| 4197 | ac_header_compiler=yes |
| 4198 | else |
| 4199 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4201 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4202 | ac_header_compiler=no |
| 4203 | fi |
| 4204 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4205 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4206 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4207 | |
| 4208 | # Is the header present? |
| 4209 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4210 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4211 | cat >conftest.$ac_ext <<_ACEOF |
| 4212 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4213 | /* confdefs.h. */ |
| 4214 | _ACEOF |
| 4215 | cat confdefs.h >>conftest.$ac_ext |
| 4216 | cat >>conftest.$ac_ext <<_ACEOF |
| 4217 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4218 | #include <$ac_header> |
| 4219 | _ACEOF |
| 4220 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4221 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4222 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4223 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4224 | rm -f conftest.er1 |
| 4225 | cat conftest.err >&5 |
| 4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4227 | (exit $ac_status); } >/dev/null; then |
| 4228 | if test -s conftest.err; then |
| 4229 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4230 | else |
| 4231 | ac_cpp_err= |
| 4232 | fi |
| 4233 | else |
| 4234 | ac_cpp_err=yes |
| 4235 | fi |
| 4236 | if test -z "$ac_cpp_err"; then |
| 4237 | ac_header_preproc=yes |
| 4238 | else |
| 4239 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4241 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4242 | ac_header_preproc=no |
| 4243 | fi |
| 4244 | rm -f conftest.err conftest.$ac_ext |
| 4245 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4246 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4247 | |
| 4248 | # So? What about this header? |
| 4249 | case $ac_header_compiler:$ac_header_preproc in |
| 4250 | yes:no ) |
| 4251 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4252 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4253 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4254 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4255 | ( |
| 4256 | cat <<\_ASBOX |
| 4257 | ## ------------------------------------ ## |
| 4258 | ## Report this to bug-autoconf@gnu.org. ## |
| 4259 | ## ------------------------------------ ## |
| 4260 | _ASBOX |
| 4261 | ) | |
| 4262 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4263 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4264 | no:yes ) |
| 4265 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4266 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4267 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4268 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4269 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4270 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4271 | ( |
| 4272 | cat <<\_ASBOX |
| 4273 | ## ------------------------------------ ## |
| 4274 | ## Report this to bug-autoconf@gnu.org. ## |
| 4275 | ## ------------------------------------ ## |
| 4276 | _ASBOX |
| 4277 | ) | |
| 4278 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4279 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4280 | esac |
| 4281 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4282 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4283 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4285 | else |
| 4286 | eval "$as_ac_Header=$ac_header_preproc" |
| 4287 | fi |
| 4288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4290 | |
| 4291 | fi |
| 4292 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4293 | cat >>confdefs.h <<_ACEOF |
| 4294 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4295 | _ACEOF |
| 4296 | |
| 4297 | fi |
| 4298 | |
| 4299 | done |
| 4300 | |
| 4301 | |
| 4302 | |
| 4303 | |
| 4304 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4305 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4306 | # Only perform the check for file, if the check method requires it |
| 4307 | case $deplibs_check_method in |
| 4308 | file_magic*) |
| 4309 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 4310 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 4311 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 4312 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4314 | else |
| 4315 | case $MAGIC_CMD in |
| 4316 | /*) |
| 4317 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4318 | ;; |
| 4319 | ?:/*) |
| 4320 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4321 | ;; |
| 4322 | *) |
| 4323 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4324 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4325 | ac_dummy="/usr/bin:$PATH" |
| 4326 | for ac_dir in $ac_dummy; do |
| 4327 | test -z "$ac_dir" && ac_dir=. |
| 4328 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 4329 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 4330 | if test -n "$file_magic_test_file"; then |
| 4331 | case $deplibs_check_method in |
| 4332 | "file_magic "*) |
| 4333 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4334 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4335 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4336 | egrep "$file_magic_regex" > /dev/null; then |
| 4337 | : |
| 4338 | else |
| 4339 | cat <<EOF 1>&2 |
| 4340 | |
| 4341 | *** Warning: the command libtool uses to detect shared libraries, |
| 4342 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4343 | *** The result is that libtool may fail to recognize shared libraries |
| 4344 | *** as such. This will affect the creation of libtool libraries that |
| 4345 | *** depend on shared libraries, but programs linked with such libtool |
| 4346 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4347 | *** may want to report the problem to your system manager and/or to |
| 4348 | *** bug-libtool@gnu.org |
| 4349 | |
| 4350 | EOF |
| 4351 | fi ;; |
| 4352 | esac |
| 4353 | fi |
| 4354 | break |
| 4355 | fi |
| 4356 | done |
| 4357 | IFS="$ac_save_ifs" |
| 4358 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4359 | ;; |
| 4360 | esac |
| 4361 | fi |
| 4362 | |
| 4363 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4364 | if test -n "$MAGIC_CMD"; then |
| 4365 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4366 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4367 | else |
| 4368 | echo "$as_me:$LINENO: result: no" >&5 |
| 4369 | echo "${ECHO_T}no" >&6 |
| 4370 | fi |
| 4371 | |
| 4372 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 4373 | if test -n "$ac_tool_prefix"; then |
| 4374 | echo "$as_me:$LINENO: checking for file" >&5 |
| 4375 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 4376 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4378 | else |
| 4379 | case $MAGIC_CMD in |
| 4380 | /*) |
| 4381 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4382 | ;; |
| 4383 | ?:/*) |
| 4384 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4385 | ;; |
| 4386 | *) |
| 4387 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4388 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4389 | ac_dummy="/usr/bin:$PATH" |
| 4390 | for ac_dir in $ac_dummy; do |
| 4391 | test -z "$ac_dir" && ac_dir=. |
| 4392 | if test -f $ac_dir/file; then |
| 4393 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 4394 | if test -n "$file_magic_test_file"; then |
| 4395 | case $deplibs_check_method in |
| 4396 | "file_magic "*) |
| 4397 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4398 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4399 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4400 | egrep "$file_magic_regex" > /dev/null; then |
| 4401 | : |
| 4402 | else |
| 4403 | cat <<EOF 1>&2 |
| 4404 | |
| 4405 | *** Warning: the command libtool uses to detect shared libraries, |
| 4406 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4407 | *** The result is that libtool may fail to recognize shared libraries |
| 4408 | *** as such. This will affect the creation of libtool libraries that |
| 4409 | *** depend on shared libraries, but programs linked with such libtool |
| 4410 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4411 | *** may want to report the problem to your system manager and/or to |
| 4412 | *** bug-libtool@gnu.org |
| 4413 | |
| 4414 | EOF |
| 4415 | fi ;; |
| 4416 | esac |
| 4417 | fi |
| 4418 | break |
| 4419 | fi |
| 4420 | done |
| 4421 | IFS="$ac_save_ifs" |
| 4422 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4423 | ;; |
| 4424 | esac |
| 4425 | fi |
| 4426 | |
| 4427 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4428 | if test -n "$MAGIC_CMD"; then |
| 4429 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4430 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4431 | else |
| 4432 | echo "$as_me:$LINENO: result: no" >&5 |
| 4433 | echo "${ECHO_T}no" >&6 |
| 4434 | fi |
| 4435 | |
| 4436 | else |
| 4437 | MAGIC_CMD=: |
| 4438 | fi |
| 4439 | fi |
| 4440 | |
| 4441 | fi |
| 4442 | ;; |
| 4443 | esac |
| 4444 | |
| 4445 | if test -n "$ac_tool_prefix"; then |
| 4446 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4447 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4450 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4452 | else |
| 4453 | if test -n "$RANLIB"; then |
| 4454 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4455 | else |
| 4456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4457 | for as_dir in $PATH |
| 4458 | do |
| 4459 | IFS=$as_save_IFS |
| 4460 | test -z "$as_dir" && as_dir=. |
| 4461 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4463 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4465 | break 2 |
| 4466 | fi |
| 4467 | done |
| 4468 | done |
| 4469 | |
| 4470 | fi |
| 4471 | fi |
| 4472 | RANLIB=$ac_cv_prog_RANLIB |
| 4473 | if test -n "$RANLIB"; then |
| 4474 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4475 | echo "${ECHO_T}$RANLIB" >&6 |
| 4476 | else |
| 4477 | echo "$as_me:$LINENO: result: no" >&5 |
| 4478 | echo "${ECHO_T}no" >&6 |
| 4479 | fi |
| 4480 | |
| 4481 | fi |
| 4482 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4483 | ac_ct_RANLIB=$RANLIB |
| 4484 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4485 | set dummy ranlib; ac_word=$2 |
| 4486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4488 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4490 | else |
| 4491 | if test -n "$ac_ct_RANLIB"; then |
| 4492 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4493 | else |
| 4494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4495 | for as_dir in $PATH |
| 4496 | do |
| 4497 | IFS=$as_save_IFS |
| 4498 | test -z "$as_dir" && as_dir=. |
| 4499 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4501 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4503 | break 2 |
| 4504 | fi |
| 4505 | done |
| 4506 | done |
| 4507 | |
| 4508 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4509 | fi |
| 4510 | fi |
| 4511 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4512 | if test -n "$ac_ct_RANLIB"; then |
| 4513 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4514 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4515 | else |
| 4516 | echo "$as_me:$LINENO: result: no" >&5 |
| 4517 | echo "${ECHO_T}no" >&6 |
| 4518 | fi |
| 4519 | |
| 4520 | RANLIB=$ac_ct_RANLIB |
| 4521 | else |
| 4522 | RANLIB="$ac_cv_prog_RANLIB" |
| 4523 | fi |
| 4524 | |
| 4525 | if test -n "$ac_tool_prefix"; then |
| 4526 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4527 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4530 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4532 | else |
| 4533 | if test -n "$STRIP"; then |
| 4534 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4535 | else |
| 4536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4537 | for as_dir in $PATH |
| 4538 | do |
| 4539 | IFS=$as_save_IFS |
| 4540 | test -z "$as_dir" && as_dir=. |
| 4541 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4543 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4545 | break 2 |
| 4546 | fi |
| 4547 | done |
| 4548 | done |
| 4549 | |
| 4550 | fi |
| 4551 | fi |
| 4552 | STRIP=$ac_cv_prog_STRIP |
| 4553 | if test -n "$STRIP"; then |
| 4554 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4555 | echo "${ECHO_T}$STRIP" >&6 |
| 4556 | else |
| 4557 | echo "$as_me:$LINENO: result: no" >&5 |
| 4558 | echo "${ECHO_T}no" >&6 |
| 4559 | fi |
| 4560 | |
| 4561 | fi |
| 4562 | if test -z "$ac_cv_prog_STRIP"; then |
| 4563 | ac_ct_STRIP=$STRIP |
| 4564 | # Extract the first word of "strip", so it can be a program name with args. |
| 4565 | set dummy strip; ac_word=$2 |
| 4566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4568 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4570 | else |
| 4571 | if test -n "$ac_ct_STRIP"; then |
| 4572 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4573 | else |
| 4574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4575 | for as_dir in $PATH |
| 4576 | do |
| 4577 | IFS=$as_save_IFS |
| 4578 | test -z "$as_dir" && as_dir=. |
| 4579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4581 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4583 | break 2 |
| 4584 | fi |
| 4585 | done |
| 4586 | done |
| 4587 | |
| 4588 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 4589 | fi |
| 4590 | fi |
| 4591 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4592 | if test -n "$ac_ct_STRIP"; then |
| 4593 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4594 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4595 | else |
| 4596 | echo "$as_me:$LINENO: result: no" >&5 |
| 4597 | echo "${ECHO_T}no" >&6 |
| 4598 | fi |
| 4599 | |
| 4600 | STRIP=$ac_ct_STRIP |
| 4601 | else |
| 4602 | STRIP="$ac_cv_prog_STRIP" |
| 4603 | fi |
| 4604 | |
| 4605 | |
| 4606 | enable_dlopen=no |
| 4607 | enable_win32_dll=no |
| 4608 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4609 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4610 | if test "${enable_libtool_lock+set}" = set; then |
| 4611 | enableval="$enable_libtool_lock" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4612 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4613 | fi; |
| 4614 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4615 | |
| 4616 | # Some flags need to be propagated to the compiler or linker for good |
| 4617 | # libtool support. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4618 | case $host in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4619 | *-*-irix6*) |
| 4620 | # Find out which ABI we are using. |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 4621 | echo '#line 4621 "configure"' > conftest.$ac_ext |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4623 | (eval $ac_compile) 2>&5 |
| 4624 | ac_status=$? |
| 4625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4626 | (exit $ac_status); }; then |
| 4627 | case `/usr/bin/file conftest.$ac_objext` in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4628 | *32-bit*) |
| 4629 | LD="${LD-ld} -32" |
| 4630 | ;; |
| 4631 | *N32*) |
| 4632 | LD="${LD-ld} -n32" |
| 4633 | ;; |
| 4634 | *64-bit*) |
| 4635 | LD="${LD-ld} -64" |
| 4636 | ;; |
| 4637 | esac |
| 4638 | fi |
| 4639 | rm -rf conftest* |
| 4640 | ;; |
| 4641 | |
| 4642 | *-*-sco3.2v5*) |
| 4643 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4644 | SAVE_CFLAGS="$CFLAGS" |
| 4645 | CFLAGS="$CFLAGS -belf" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4646 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4647 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4648 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4650 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4651 | |
| 4652 | |
| 4653 | ac_ext=c |
| 4654 | ac_cpp='$CPP $CPPFLAGS' |
| 4655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4658 | |
| 4659 | cat >conftest.$ac_ext <<_ACEOF |
| 4660 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4661 | /* confdefs.h. */ |
| 4662 | _ACEOF |
| 4663 | cat confdefs.h >>conftest.$ac_ext |
| 4664 | cat >>conftest.$ac_ext <<_ACEOF |
| 4665 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4666 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4667 | int |
| 4668 | main () |
| 4669 | { |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4670 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4671 | ; |
| 4672 | return 0; |
| 4673 | } |
| 4674 | _ACEOF |
| 4675 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4677 | (eval $ac_link) 2>&5 |
| 4678 | ac_status=$? |
| 4679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4680 | (exit $ac_status); } && |
| 4681 | { ac_try='test -s conftest$ac_exeext' |
| 4682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4683 | (eval $ac_try) 2>&5 |
| 4684 | ac_status=$? |
| 4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4686 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4687 | lt_cv_cc_needs_belf=yes |
| 4688 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4689 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4691 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4692 | lt_cv_cc_needs_belf=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4693 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4694 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4695 | ac_ext=c |
| 4696 | ac_cpp='$CPP $CPPFLAGS' |
| 4697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4700 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4701 | fi |
| 4702 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4703 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4704 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4705 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4706 | CFLAGS="$SAVE_CFLAGS" |
| 4707 | fi |
| 4708 | ;; |
| 4709 | |
| 4710 | |
| 4711 | esac |
| 4712 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4713 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 4714 | # metacharacters that are still active within double-quoted strings. |
| 4715 | Xsed='sed -e s/^X//' |
| 4716 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4717 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4718 | # Same as above, but do not quote variable references. |
| 4719 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4720 | |
| 4721 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4722 | # double_quote_subst'ed string. |
| 4723 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4724 | |
| 4725 | # Constants: |
| 4726 | rm="rm -f" |
| 4727 | |
| 4728 | # Global variables: |
| 4729 | default_ofile=libtool |
| 4730 | can_build_shared=yes |
| 4731 | |
| 4732 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 4733 | # which needs '.lib'). |
| 4734 | libext=a |
| 4735 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4736 | ofile="$default_ofile" |
| 4737 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 4738 | need_locks="$enable_libtool_lock" |
| 4739 | |
| 4740 | old_CC="$CC" |
| 4741 | old_CFLAGS="$CFLAGS" |
| 4742 | |
| 4743 | # Set sane defaults for various variables |
| 4744 | test -z "$AR" && AR=ar |
| 4745 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4746 | test -z "$AS" && AS=as |
| 4747 | test -z "$CC" && CC=cc |
| 4748 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 4749 | test -z "$LD" && LD=ld |
| 4750 | test -z "$LN_S" && LN_S="ln -s" |
| 4751 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 4752 | test -z "$NM" && NM=nm |
| 4753 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4754 | test -z "$RANLIB" && RANLIB=: |
| 4755 | test -z "$STRIP" && STRIP=: |
| 4756 | test -z "$ac_objext" && ac_objext=o |
| 4757 | |
| 4758 | if test x"$host" != x"$build"; then |
| 4759 | ac_tool_prefix=${host_alias}- |
| 4760 | else |
| 4761 | ac_tool_prefix= |
| 4762 | fi |
| 4763 | |
| 4764 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 4765 | case $host_os in |
| 4766 | linux-gnu*) ;; |
| 4767 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 4768 | esac |
| 4769 | |
| 4770 | case $host_os in |
| 4771 | aix3*) |
| 4772 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 4773 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4774 | # vanish in a puff of smoke. |
| 4775 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4776 | COLLECT_NAMES= |
| 4777 | export COLLECT_NAMES |
| 4778 | fi |
| 4779 | ;; |
| 4780 | esac |
| 4781 | |
| 4782 | # Determine commands to create old-style static archives. |
| 4783 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 4784 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4785 | old_postuninstall_cmds= |
| 4786 | |
| 4787 | if test -n "$RANLIB"; then |
| 4788 | case $host_os in |
| 4789 | openbsd*) |
| 4790 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4791 | ;; |
| 4792 | *) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4793 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4794 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4795 | esac |
| 4796 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4797 | fi |
| 4798 | |
| 4799 | # Allow CC to be a program name with arguments. |
| 4800 | set dummy $CC |
| 4801 | compiler="$2" |
| 4802 | |
| 4803 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4804 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4805 | rm -f .libs 2>/dev/null |
| 4806 | mkdir .libs 2>/dev/null |
| 4807 | if test -d .libs; then |
| 4808 | objdir=.libs |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4809 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4810 | # MS-DOS does not allow filenames that begin with a dot. |
| 4811 | objdir=_libs |
| 4812 | fi |
| 4813 | rmdir .libs 2>/dev/null |
| 4814 | echo "$as_me:$LINENO: result: $objdir" >&5 |
| 4815 | echo "${ECHO_T}$objdir" >&6 |
| 4816 | |
| 4817 | |
| 4818 | |
| 4819 | # Check whether --with-pic or --without-pic was given. |
| 4820 | if test "${with_pic+set}" = set; then |
| 4821 | withval="$with_pic" |
| 4822 | pic_mode="$withval" |
| 4823 | else |
| 4824 | pic_mode=default |
| 4825 | fi; |
| 4826 | test -z "$pic_mode" && pic_mode=default |
| 4827 | |
| 4828 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 4829 | # in isolation, and that seeing it set (from the cache) indicates that |
| 4830 | # the associated values are set (in the cache) correctly too. |
| 4831 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 4832 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 4833 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
| 4834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4835 | else |
| 4836 | lt_cv_prog_cc_pic= |
| 4837 | lt_cv_prog_cc_shlib= |
| 4838 | lt_cv_prog_cc_wl= |
| 4839 | lt_cv_prog_cc_static= |
| 4840 | lt_cv_prog_cc_no_builtin= |
| 4841 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 4842 | |
| 4843 | if test "$GCC" = yes; then |
| 4844 | lt_cv_prog_cc_wl='-Wl,' |
| 4845 | lt_cv_prog_cc_static='-static' |
| 4846 | |
| 4847 | case $host_os in |
| 4848 | aix*) |
| 4849 | # Below there is a dirty hack to force normal static linking with -ldl |
| 4850 | # The problem is because libdl dynamically linked with both libc and |
| 4851 | # libC (AIX C++ library), which obviously doesn't included in libraries |
| 4852 | # list by gcc. This cause undefined symbols with -static flags. |
| 4853 | # This hack allows C programs to be linked with "-static -ldl", but |
| 4854 | # not sure about C++ programs. |
| 4855 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
| 4856 | ;; |
| 4857 | amigaos*) |
| 4858 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 4859 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 4860 | # like `-m68040'. |
| 4861 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
| 4862 | ;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4863 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4864 | # PIC is the default for these OSes. |
| 4865 | ;; |
| 4866 | darwin* | rhapsody*) |
| 4867 | # PIC is the default on this platform |
| 4868 | # Common symbols not allowed in MH_DYLIB files |
| 4869 | lt_cv_prog_cc_pic='-fno-common' |
| 4870 | ;; |
| 4871 | cygwin* | mingw* | pw32* | os2*) |
| 4872 | # This hack is so that the source file can tell whether it is being |
| 4873 | # built for inclusion in a dll (and should export symbols for example). |
| 4874 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4875 | ;; |
| 4876 | sysv4*MP*) |
| 4877 | if test -d /usr/nec; then |
| 4878 | lt_cv_prog_cc_pic=-Kconform_pic |
| 4879 | fi |
| 4880 | ;; |
| 4881 | *) |
| 4882 | lt_cv_prog_cc_pic='-fPIC' |
| 4883 | ;; |
| 4884 | esac |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4885 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4886 | # PORTME Check for PIC flags for the system compiler. |
| 4887 | case $host_os in |
| 4888 | aix3* | aix4* | aix5*) |
| 4889 | lt_cv_prog_cc_wl='-Wl,' |
| 4890 | # All AIX code is PIC. |
| 4891 | if test "$host_cpu" = ia64; then |
| 4892 | # AIX 5 now supports IA64 processor |
| 4893 | lt_cv_prog_cc_static='-Bstatic' |
| 4894 | else |
| 4895 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
| 4896 | fi |
| 4897 | ;; |
| 4898 | |
| 4899 | hpux9* | hpux10* | hpux11*) |
| 4900 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 4901 | lt_cv_prog_cc_wl='-Wl,' |
| 4902 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 4903 | lt_cv_prog_cc_pic='+Z' |
| 4904 | ;; |
| 4905 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4906 | irix5* | irix6* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4907 | lt_cv_prog_cc_wl='-Wl,' |
| 4908 | lt_cv_prog_cc_static='-non_shared' |
| 4909 | # PIC (with -KPIC) is the default. |
| 4910 | ;; |
| 4911 | |
| 4912 | cygwin* | mingw* | pw32* | os2*) |
| 4913 | # This hack is so that the source file can tell whether it is being |
| 4914 | # built for inclusion in a dll (and should export symbols for example). |
| 4915 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4916 | ;; |
| 4917 | |
| 4918 | newsos6) |
| 4919 | lt_cv_prog_cc_pic='-KPIC' |
| 4920 | lt_cv_prog_cc_static='-Bstatic' |
| 4921 | ;; |
| 4922 | |
| 4923 | osf3* | osf4* | osf5*) |
| 4924 | # All OSF/1 code is PIC. |
| 4925 | lt_cv_prog_cc_wl='-Wl,' |
| 4926 | lt_cv_prog_cc_static='-non_shared' |
| 4927 | ;; |
| 4928 | |
| 4929 | sco3.2v5*) |
| 4930 | lt_cv_prog_cc_pic='-Kpic' |
| 4931 | lt_cv_prog_cc_static='-dn' |
| 4932 | lt_cv_prog_cc_shlib='-belf' |
| 4933 | ;; |
| 4934 | |
| 4935 | solaris*) |
| 4936 | lt_cv_prog_cc_pic='-KPIC' |
| 4937 | lt_cv_prog_cc_static='-Bstatic' |
| 4938 | lt_cv_prog_cc_wl='-Wl,' |
| 4939 | ;; |
| 4940 | |
| 4941 | sunos4*) |
| 4942 | lt_cv_prog_cc_pic='-PIC' |
| 4943 | lt_cv_prog_cc_static='-Bstatic' |
| 4944 | lt_cv_prog_cc_wl='-Qoption ld ' |
| 4945 | ;; |
| 4946 | |
| 4947 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4948 | lt_cv_prog_cc_pic='-KPIC' |
| 4949 | lt_cv_prog_cc_static='-Bstatic' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4950 | lt_cv_prog_cc_wl='-Wl,' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4951 | ;; |
| 4952 | |
| 4953 | uts4*) |
| 4954 | lt_cv_prog_cc_pic='-pic' |
| 4955 | lt_cv_prog_cc_static='-Bstatic' |
| 4956 | ;; |
| 4957 | |
| 4958 | sysv4*MP*) |
| 4959 | if test -d /usr/nec ;then |
| 4960 | lt_cv_prog_cc_pic='-Kconform_pic' |
| 4961 | lt_cv_prog_cc_static='-Bstatic' |
| 4962 | fi |
| 4963 | ;; |
| 4964 | |
| 4965 | *) |
| 4966 | lt_cv_prog_cc_can_build_shared=no |
| 4967 | ;; |
| 4968 | esac |
| 4969 | fi |
| 4970 | |
| 4971 | fi |
| 4972 | |
| 4973 | if test -z "$lt_cv_prog_cc_pic"; then |
| 4974 | echo "$as_me:$LINENO: result: none" >&5 |
| 4975 | echo "${ECHO_T}none" >&6 |
| 4976 | else |
| 4977 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
| 4978 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
| 4979 | |
| 4980 | # Check to make sure the pic_flag actually works. |
| 4981 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 4982 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
| 4983 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
| 4984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4985 | else |
| 4986 | save_CFLAGS="$CFLAGS" |
| 4987 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 4988 | cat >conftest.$ac_ext <<_ACEOF |
| 4989 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 4990 | /* confdefs.h. */ |
| 4991 | _ACEOF |
| 4992 | cat confdefs.h >>conftest.$ac_ext |
| 4993 | cat >>conftest.$ac_ext <<_ACEOF |
| 4994 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4995 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4996 | int |
| 4997 | main () |
| 4998 | { |
| 4999 | |
| 5000 | ; |
| 5001 | return 0; |
| 5002 | } |
| 5003 | _ACEOF |
| 5004 | rm -f conftest.$ac_objext |
| 5005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5006 | (eval $ac_compile) 2>&5 |
| 5007 | ac_status=$? |
| 5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5009 | (exit $ac_status); } && |
| 5010 | { ac_try='test -s conftest.$ac_objext' |
| 5011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5012 | (eval $ac_try) 2>&5 |
| 5013 | ac_status=$? |
| 5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5015 | (exit $ac_status); }; }; then |
| 5016 | case $host_os in |
| 5017 | hpux9* | hpux10* | hpux11*) |
| 5018 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 5019 | # they create non-PIC objects. So, if there were any warnings, we |
| 5020 | # assume that PIC is not supported. |
| 5021 | if test -s conftest.err; then |
| 5022 | lt_cv_prog_cc_pic_works=no |
| 5023 | else |
| 5024 | lt_cv_prog_cc_pic_works=yes |
| 5025 | fi |
| 5026 | ;; |
| 5027 | *) |
| 5028 | lt_cv_prog_cc_pic_works=yes |
| 5029 | ;; |
| 5030 | esac |
| 5031 | |
| 5032 | else |
| 5033 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5035 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5036 | lt_cv_prog_cc_pic_works=no |
| 5037 | |
| 5038 | fi |
| 5039 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5040 | CFLAGS="$save_CFLAGS" |
| 5041 | |
| 5042 | fi |
| 5043 | |
| 5044 | |
| 5045 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 5046 | lt_cv_prog_cc_pic= |
| 5047 | lt_cv_prog_cc_can_build_shared=no |
| 5048 | else |
| 5049 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 5050 | fi |
| 5051 | |
| 5052 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
| 5053 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
| 5054 | fi |
| 5055 | |
| 5056 | # Check for any special shared library compilation flags. |
| 5057 | if test -n "$lt_cv_prog_cc_shlib"; then |
| 5058 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
| 5059 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
| 5060 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 5061 | else |
| 5062 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 5063 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 5064 | lt_cv_prog_cc_can_build_shared=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 5065 | fi |
| 5066 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 5067 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5068 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 5069 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
| 5070 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
| 5071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 5072 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5073 | lt_cv_prog_cc_static_works=no |
| 5074 | save_LDFLAGS="$LDFLAGS" |
| 5075 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 5076 | cat >conftest.$ac_ext <<_ACEOF |
| 5077 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5078 | /* confdefs.h. */ |
| 5079 | _ACEOF |
| 5080 | cat confdefs.h >>conftest.$ac_ext |
| 5081 | cat >>conftest.$ac_ext <<_ACEOF |
| 5082 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5083 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5084 | int |
| 5085 | main () |
| 5086 | { |
| 5087 | |
| 5088 | ; |
| 5089 | return 0; |
| 5090 | } |
| 5091 | _ACEOF |
| 5092 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5094 | (eval $ac_link) 2>&5 |
| 5095 | ac_status=$? |
| 5096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5097 | (exit $ac_status); } && |
| 5098 | { ac_try='test -s conftest$ac_exeext' |
| 5099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5100 | (eval $ac_try) 2>&5 |
| 5101 | ac_status=$? |
| 5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5103 | (exit $ac_status); }; }; then |
| 5104 | lt_cv_prog_cc_static_works=yes |
| 5105 | else |
| 5106 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5108 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 5109 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5110 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5111 | LDFLAGS="$save_LDFLAGS" |
| 5112 | |
| 5113 | fi |
| 5114 | |
| 5115 | |
| 5116 | # Belt *and* braces to stop my trousers falling down: |
| 5117 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 5118 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
| 5119 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
| 5120 | |
| 5121 | pic_flag="$lt_cv_prog_cc_pic" |
| 5122 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 5123 | wl="$lt_cv_prog_cc_wl" |
| 5124 | link_static_flag="$lt_cv_prog_cc_static" |
| 5125 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 5126 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 5127 | |
| 5128 | |
| 5129 | # Check to see if options -o and -c are simultaneously supported by compiler |
| 5130 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 5131 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 5132 | if test "${lt_cv_compiler_c_o+set}" = set; then |
| 5133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5134 | else |
| 5135 | |
| 5136 | $rm -r conftest 2>/dev/null |
| 5137 | mkdir conftest |
| 5138 | cd conftest |
| 5139 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5140 | mkdir out |
| 5141 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 5142 | # that will create temporary files in the current directory regardless of |
| 5143 | # the output directory. Thus, making CWD read-only will cause this test |
| 5144 | # to fail, enabling locking or at least warning the user not to do parallel |
| 5145 | # builds. |
| 5146 | chmod -w . |
| 5147 | save_CFLAGS="$CFLAGS" |
| 5148 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 5149 | compiler_c_o=no |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 5150 | if { (eval echo configure:5150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5151 | # The compiler can only warn and ignore the option if not recognized |
| 5152 | # So say no if there are warnings |
| 5153 | if test -s out/conftest.err; then |
| 5154 | lt_cv_compiler_c_o=no |
| 5155 | else |
| 5156 | lt_cv_compiler_c_o=yes |
| 5157 | fi |
| 5158 | else |
| 5159 | # Append any errors to the config.log. |
| 5160 | cat out/conftest.err 1>&5 |
| 5161 | lt_cv_compiler_c_o=no |
| 5162 | fi |
| 5163 | CFLAGS="$save_CFLAGS" |
| 5164 | chmod u+w . |
| 5165 | $rm conftest* out/* |
| 5166 | rmdir out |
| 5167 | cd .. |
| 5168 | rmdir conftest |
| 5169 | $rm -r conftest 2>/dev/null |
| 5170 | |
| 5171 | fi |
| 5172 | |
| 5173 | compiler_c_o=$lt_cv_compiler_c_o |
| 5174 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
| 5175 | echo "${ECHO_T}$compiler_c_o" >&6 |
| 5176 | |
| 5177 | if test x"$compiler_c_o" = x"yes"; then |
| 5178 | # Check to see if we can write to a .lo |
| 5179 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
| 5180 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
| 5181 | if test "${lt_cv_compiler_o_lo+set}" = set; then |
| 5182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5183 | else |
| 5184 | |
| 5185 | lt_cv_compiler_o_lo=no |
| 5186 | save_CFLAGS="$CFLAGS" |
| 5187 | CFLAGS="$CFLAGS -c -o conftest.lo" |
| 5188 | save_objext="$ac_objext" |
| 5189 | ac_objext=lo |
| 5190 | cat >conftest.$ac_ext <<_ACEOF |
| 5191 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5192 | /* confdefs.h. */ |
| 5193 | _ACEOF |
| 5194 | cat confdefs.h >>conftest.$ac_ext |
| 5195 | cat >>conftest.$ac_ext <<_ACEOF |
| 5196 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5197 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5198 | int |
| 5199 | main () |
| 5200 | { |
| 5201 | int some_variable = 0; |
| 5202 | ; |
| 5203 | return 0; |
| 5204 | } |
| 5205 | _ACEOF |
| 5206 | rm -f conftest.$ac_objext |
| 5207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5208 | (eval $ac_compile) 2>&5 |
| 5209 | ac_status=$? |
| 5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5211 | (exit $ac_status); } && |
| 5212 | { ac_try='test -s conftest.$ac_objext' |
| 5213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5214 | (eval $ac_try) 2>&5 |
| 5215 | ac_status=$? |
| 5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5217 | (exit $ac_status); }; }; then |
| 5218 | # The compiler can only warn and ignore the option if not recognized |
| 5219 | # So say no if there are warnings |
| 5220 | if test -s conftest.err; then |
| 5221 | lt_cv_compiler_o_lo=no |
| 5222 | else |
| 5223 | lt_cv_compiler_o_lo=yes |
| 5224 | fi |
| 5225 | |
| 5226 | else |
| 5227 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5229 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5230 | fi |
| 5231 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5232 | ac_objext="$save_objext" |
| 5233 | CFLAGS="$save_CFLAGS" |
| 5234 | |
| 5235 | fi |
| 5236 | |
| 5237 | compiler_o_lo=$lt_cv_compiler_o_lo |
| 5238 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
| 5239 | echo "${ECHO_T}$compiler_o_lo" >&6 |
| 5240 | else |
| 5241 | compiler_o_lo=no |
| 5242 | fi |
| 5243 | |
| 5244 | # Check to see if we can do hard links to lock some files if needed |
| 5245 | hard_links="nottested" |
| 5246 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
| 5247 | # do not overwrite the value of need_locks provided by the user |
| 5248 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 5249 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 5250 | hard_links=yes |
| 5251 | $rm conftest* |
| 5252 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5253 | touch conftest.a |
| 5254 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 5255 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5256 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 5257 | echo "${ECHO_T}$hard_links" >&6 |
| 5258 | if test "$hard_links" = no; then |
| 5259 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 5260 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 5261 | need_locks=warn |
| 5262 | fi |
| 5263 | else |
| 5264 | need_locks=no |
| 5265 | fi |
| 5266 | |
| 5267 | if test "$GCC" = yes; then |
| 5268 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 5269 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5270 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5271 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5272 | save_CFLAGS="$CFLAGS" |
| 5273 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 5274 | compiler_rtti_exceptions=no |
| 5275 | cat >conftest.$ac_ext <<_ACEOF |
| 5276 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5277 | /* confdefs.h. */ |
| 5278 | _ACEOF |
| 5279 | cat confdefs.h >>conftest.$ac_ext |
| 5280 | cat >>conftest.$ac_ext <<_ACEOF |
| 5281 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5282 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5283 | int |
| 5284 | main () |
| 5285 | { |
| 5286 | int some_variable = 0; |
| 5287 | ; |
| 5288 | return 0; |
| 5289 | } |
| 5290 | _ACEOF |
| 5291 | rm -f conftest.$ac_objext |
| 5292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5293 | (eval $ac_compile) 2>&5 |
| 5294 | ac_status=$? |
| 5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5296 | (exit $ac_status); } && |
| 5297 | { ac_try='test -s conftest.$ac_objext' |
| 5298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5299 | (eval $ac_try) 2>&5 |
| 5300 | ac_status=$? |
| 5301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5302 | (exit $ac_status); }; }; then |
| 5303 | # The compiler can only warn and ignore the option if not recognized |
| 5304 | # So say no if there are warnings |
| 5305 | if test -s conftest.err; then |
| 5306 | compiler_rtti_exceptions=no |
| 5307 | else |
| 5308 | compiler_rtti_exceptions=yes |
| 5309 | fi |
| 5310 | |
| 5311 | else |
| 5312 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5314 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5315 | fi |
| 5316 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5317 | CFLAGS="$save_CFLAGS" |
| 5318 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
| 5319 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
| 5320 | |
| 5321 | if test "$compiler_rtti_exceptions" = "yes"; then |
| 5322 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 5323 | else |
| 5324 | no_builtin_flag=' -fno-builtin' |
| 5325 | fi |
| 5326 | fi |
| 5327 | |
| 5328 | # See if the linker supports building shared libraries. |
| 5329 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
| 5330 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 5331 | |
| 5332 | allow_undefined_flag= |
| 5333 | no_undefined_flag= |
| 5334 | need_lib_prefix=unknown |
| 5335 | need_version=unknown |
| 5336 | # when you set need_version to no, make sure it does not cause -set_version |
| 5337 | # flags to be left without arguments |
| 5338 | archive_cmds= |
| 5339 | archive_expsym_cmds= |
| 5340 | old_archive_from_new_cmds= |
| 5341 | old_archive_from_expsyms_cmds= |
| 5342 | export_dynamic_flag_spec= |
| 5343 | whole_archive_flag_spec= |
| 5344 | thread_safe_flag_spec= |
| 5345 | hardcode_into_libs=no |
| 5346 | hardcode_libdir_flag_spec= |
| 5347 | hardcode_libdir_separator= |
| 5348 | hardcode_direct=no |
| 5349 | hardcode_minus_L=no |
| 5350 | hardcode_shlibpath_var=unsupported |
| 5351 | runpath_var= |
| 5352 | link_all_deplibs=unknown |
| 5353 | always_export_symbols=no |
| 5354 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 5355 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 5356 | # included in the symbol list |
| 5357 | include_expsyms= |
| 5358 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 5359 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 5360 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 5361 | # as well as any symbol that contains `d'. |
| 5362 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 5363 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 5364 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 5365 | # the symbol is explicitly referenced. Since portable code cannot |
| 5366 | # rely on this symbol name, it's probably fine to never include it in |
| 5367 | # preloaded symbol tables. |
| 5368 | extract_expsyms_cmds= |
| 5369 | |
| 5370 | case $host_os in |
| 5371 | cygwin* | mingw* | pw32*) |
| 5372 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 5373 | # When not using gcc, we currently assume that we are using |
| 5374 | # Microsoft Visual C++. |
| 5375 | if test "$GCC" != yes; then |
| 5376 | with_gnu_ld=no |
| 5377 | fi |
| 5378 | ;; |
| 5379 | openbsd*) |
| 5380 | with_gnu_ld=no |
| 5381 | ;; |
| 5382 | esac |
| 5383 | |
| 5384 | ld_shlibs=yes |
| 5385 | if test "$with_gnu_ld" = yes; then |
| 5386 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 5387 | wlarc='${wl}' |
| 5388 | |
| 5389 | # See if GNU ld supports shared libraries. |
| 5390 | case $host_os in |
| 5391 | aix3* | aix4* | aix5*) |
| 5392 | # On AIX, the GNU linker is very broken |
| 5393 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 5394 | ld_shlibs=no |
| 5395 | cat <<EOF 1>&2 |
| 5396 | |
| 5397 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 5398 | *** to be unable to reliably create shared libraries on AIX. |
| 5399 | *** Therefore, libtool is disabling shared libraries support. If you |
| 5400 | *** really care for shared libraries, you may want to modify your PATH |
| 5401 | *** so that a non-GNU linker is found, and then restart. |
| 5402 | |
| 5403 | EOF |
| 5404 | ;; |
| 5405 | |
| 5406 | amigaos*) |
| 5407 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 5408 | hardcode_libdir_flag_spec='-L$libdir' |
| 5409 | hardcode_minus_L=yes |
| 5410 | |
| 5411 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 5412 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 5413 | # to version 4, is to share data among multiple programs linked |
| 5414 | # with the same dynamic library. Since this doesn't match the |
| 5415 | # behavior of shared libraries on other platforms, we can use |
| 5416 | # them. |
| 5417 | ld_shlibs=no |
| 5418 | ;; |
| 5419 | |
| 5420 | beos*) |
| 5421 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5422 | allow_undefined_flag=unsupported |
| 5423 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5424 | # support --undefined. This deserves some investigation. FIXME |
| 5425 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5426 | else |
| 5427 | ld_shlibs=no |
| 5428 | fi |
| 5429 | ;; |
| 5430 | |
| 5431 | cygwin* | mingw* | pw32*) |
| 5432 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5433 | # no search path for DLLs. |
| 5434 | hardcode_libdir_flag_spec='-L$libdir' |
| 5435 | allow_undefined_flag=unsupported |
| 5436 | always_export_symbols=yes |
| 5437 | |
| 5438 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 5439 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 5440 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 5441 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 5442 | else $CC -o impgen impgen.c ; fi)~ |
| 5443 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 5444 | |
| 5445 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 5446 | |
| 5447 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 5448 | # to exclude. |
| 5449 | # FIXME: what about values for MSVC? |
| 5450 | dll_entry=__cygwin_dll_entry@12 |
| 5451 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 5452 | case $host_os in |
| 5453 | mingw*) |
| 5454 | # mingw values |
| 5455 | dll_entry=_DllMainCRTStartup@12 |
| 5456 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 5457 | ;; |
| 5458 | esac |
| 5459 | |
| 5460 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 5461 | # of the two symbol sets. |
| 5462 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 5463 | |
| 5464 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 5465 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 5466 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 5467 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 5468 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
| 5469 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 5470 | else |
| 5471 | ltdll_obj= |
| 5472 | ltdll_cmds= |
| 5473 | fi |
| 5474 | |
| 5475 | # Extract the symbol export list from an `--export-all' def file, |
| 5476 | # then regenerate the def file from the symbol export list, so that |
| 5477 | # the compiled dll only exports the symbol export list. |
| 5478 | # Be careful not to strip the DATA tag left be newer dlltools. |
| 5479 | export_symbols_cmds="$ltdll_cmds"' |
| 5480 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 5481 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 5482 | |
| 5483 | # If the export-symbols file already is a .def file (1st line |
| 5484 | # is EXPORTS), use it as is. |
| 5485 | # If DATA tags from a recent dlltool are present, honour them! |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5486 | archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5487 | cp $export_symbols $output_objdir/$soname-def; |
| 5488 | else |
| 5489 | echo EXPORTS > $output_objdir/$soname-def; |
| 5490 | _lt_hint=1; |
| 5491 | cat $export_symbols | while read symbol; do |
| 5492 | set dummy \$symbol; |
| 5493 | case \$# in |
| 5494 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5495 | 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5496 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 5497 | esac; |
| 5498 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 5499 | done; |
| 5500 | fi~ |
| 5501 | '"$ltdll_cmds"' |
| 5502 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 5503 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
| 5504 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 5505 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
| 5506 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 5507 | ;; |
| 5508 | |
| 5509 | netbsd*) |
| 5510 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5511 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 5512 | wlarc= |
| 5513 | else |
| 5514 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5515 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5516 | fi |
| 5517 | ;; |
| 5518 | |
| 5519 | solaris* | sysv5*) |
| 5520 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 5521 | ld_shlibs=no |
| 5522 | cat <<EOF 1>&2 |
| 5523 | |
| 5524 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 5525 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 5526 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 5527 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 5528 | *** your PATH or compiler configuration so that the native linker is |
| 5529 | *** used, and then restart. |
| 5530 | |
| 5531 | EOF |
| 5532 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5533 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5534 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5535 | else |
| 5536 | ld_shlibs=no |
| 5537 | fi |
| 5538 | ;; |
| 5539 | |
| 5540 | sunos4*) |
| 5541 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5542 | wlarc= |
| 5543 | hardcode_direct=yes |
| 5544 | hardcode_shlibpath_var=no |
| 5545 | ;; |
| 5546 | |
| 5547 | *) |
| 5548 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5549 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5550 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5551 | else |
| 5552 | ld_shlibs=no |
| 5553 | fi |
| 5554 | ;; |
| 5555 | esac |
| 5556 | |
| 5557 | if test "$ld_shlibs" = yes; then |
| 5558 | runpath_var=LD_RUN_PATH |
| 5559 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 5560 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 5561 | case $host_os in |
| 5562 | cygwin* | mingw* | pw32*) |
| 5563 | # dlltool doesn't understand --whole-archive et. al. |
| 5564 | whole_archive_flag_spec= |
| 5565 | ;; |
| 5566 | *) |
| 5567 | # ancient GNU ld didn't support --whole-archive et. al. |
| 5568 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 5569 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5570 | else |
| 5571 | whole_archive_flag_spec= |
| 5572 | fi |
| 5573 | ;; |
| 5574 | esac |
| 5575 | fi |
| 5576 | else |
| 5577 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 5578 | case $host_os in |
| 5579 | aix3*) |
| 5580 | allow_undefined_flag=unsupported |
| 5581 | always_export_symbols=yes |
| 5582 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 5583 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 5584 | # are no directories specified by -L. |
| 5585 | hardcode_minus_L=yes |
| 5586 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 5587 | # Neither direct hardcoding nor static linking is supported with a |
| 5588 | # broken collect2. |
| 5589 | hardcode_direct=unsupported |
| 5590 | fi |
| 5591 | ;; |
| 5592 | |
| 5593 | aix4* | aix5*) |
| 5594 | if test "$host_cpu" = ia64; then |
| 5595 | # On IA64, the linker does run time linking by default, so we don't |
| 5596 | # have to do anything special. |
| 5597 | aix_use_runtimelinking=no |
| 5598 | exp_sym_flag='-Bexport' |
| 5599 | no_entry_flag="" |
| 5600 | else |
| 5601 | aix_use_runtimelinking=no |
| 5602 | |
| 5603 | # Test if we are trying to use run time linking or normal |
| 5604 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5605 | # need to do runtime linking. |
| 5606 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 5607 | for ld_flag in $LDFLAGS; do |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5608 | case $ld_flag in |
| 5609 | *-brtl*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5610 | aix_use_runtimelinking=yes |
| 5611 | break |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5612 | ;; |
| 5613 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5614 | done |
| 5615 | esac |
| 5616 | |
| 5617 | exp_sym_flag='-bexport' |
| 5618 | no_entry_flag='-bnoentry' |
| 5619 | fi |
| 5620 | |
| 5621 | # When large executables or shared objects are built, AIX ld can |
| 5622 | # have problems creating the table of contents. If linking a library |
| 5623 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 5624 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5625 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5626 | |
| 5627 | hardcode_direct=yes |
| 5628 | archive_cmds='' |
| 5629 | hardcode_libdir_separator=':' |
| 5630 | if test "$GCC" = yes; then |
| 5631 | case $host_os in aix4.[012]|aix4.[012].*) |
| 5632 | collect2name=`${CC} -print-prog-name=collect2` |
| 5633 | if test -f "$collect2name" && \ |
| 5634 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 5635 | then |
| 5636 | # We have reworked collect2 |
| 5637 | hardcode_direct=yes |
| 5638 | else |
| 5639 | # We have old collect2 |
| 5640 | hardcode_direct=unsupported |
| 5641 | # It fails to find uninstalled libraries when the uninstalled |
| 5642 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 5643 | # to unsupported forces relinking |
| 5644 | hardcode_minus_L=yes |
| 5645 | hardcode_libdir_flag_spec='-L$libdir' |
| 5646 | hardcode_libdir_separator= |
| 5647 | fi |
| 5648 | esac |
| 5649 | |
| 5650 | shared_flag='-shared' |
| 5651 | else |
| 5652 | # not using gcc |
| 5653 | if test "$host_cpu" = ia64; then |
| 5654 | shared_flag='${wl}-G' |
| 5655 | else |
| 5656 | if test "$aix_use_runtimelinking" = yes; then |
| 5657 | shared_flag='${wl}-G' |
| 5658 | else |
| 5659 | shared_flag='${wl}-bM:SRE' |
| 5660 | fi |
| 5661 | fi |
| 5662 | fi |
| 5663 | |
| 5664 | # It seems that -bexpall can do strange things, so it is better to |
| 5665 | # generate a list of symbols to export. |
| 5666 | always_export_symbols=yes |
| 5667 | if test "$aix_use_runtimelinking" = yes; then |
| 5668 | # Warning - without using the other runtime loading flags (-brtl), |
| 5669 | # -berok will link without error, but may produce a broken library. |
| 5670 | allow_undefined_flag='-berok' |
| 5671 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5672 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 5673 | else |
| 5674 | if test "$host_cpu" = ia64; then |
| 5675 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 5676 | allow_undefined_flag="-z nodefs" |
| 5677 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 5678 | else |
| 5679 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5680 | # Warning - without using the other run time loading flags, |
| 5681 | # -berok will link without error, but may produce a broken library. |
| 5682 | allow_undefined_flag='${wl}-berok' |
| 5683 | # This is a bit strange, but is similar to how AIX traditionally builds |
| 5684 | # it's shared libraries. |
| 5685 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
| 5686 | fi |
| 5687 | fi |
| 5688 | ;; |
| 5689 | |
| 5690 | amigaos*) |
| 5691 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 5692 | hardcode_libdir_flag_spec='-L$libdir' |
| 5693 | hardcode_minus_L=yes |
| 5694 | # see comment about different semantics on the GNU ld section |
| 5695 | ld_shlibs=no |
| 5696 | ;; |
| 5697 | |
| 5698 | cygwin* | mingw* | pw32*) |
| 5699 | # When not using gcc, we currently assume that we are using |
| 5700 | # Microsoft Visual C++. |
| 5701 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5702 | # no search path for DLLs. |
| 5703 | hardcode_libdir_flag_spec=' ' |
| 5704 | allow_undefined_flag=unsupported |
| 5705 | # Tell ltmain to make .lib files, not .a files. |
| 5706 | libext=lib |
| 5707 | # FIXME: Setting linknames here is a bad hack. |
| 5708 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5709 | # The linker will automatically build a .lib file if we build a DLL. |
| 5710 | old_archive_from_new_cmds='true' |
| 5711 | # FIXME: Should let the user specify the lib program. |
| 5712 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 5713 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 5714 | ;; |
| 5715 | |
| 5716 | darwin* | rhapsody*) |
| 5717 | case "$host_os" in |
| 5718 | rhapsody* | darwin1.[012]) |
| 5719 | allow_undefined_flag='-undefined suppress' |
| 5720 | ;; |
| 5721 | *) # Darwin 1.3 on |
| 5722 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 5723 | ;; |
| 5724 | esac |
| 5725 | # FIXME: Relying on posixy $() will cause problems for |
| 5726 | # cross-compilation, but unfortunately the echo tests do not |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5727 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 5728 | # `"' quotes if we put them in here... so don't! |
| 5729 | archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5730 | # We need to add '_' to the symbols in $export_symbols first |
| 5731 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 5732 | hardcode_direct=yes |
| 5733 | hardcode_shlibpath_var=no |
| 5734 | whole_archive_flag_spec='-all_load $convenience' |
| 5735 | ;; |
| 5736 | |
| 5737 | freebsd1*) |
| 5738 | ld_shlibs=no |
| 5739 | ;; |
| 5740 | |
| 5741 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 5742 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 5743 | # does not break anything, and helps significantly (at the cost of a little |
| 5744 | # extra space). |
| 5745 | freebsd2.2*) |
| 5746 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 5747 | hardcode_libdir_flag_spec='-R$libdir' |
| 5748 | hardcode_direct=yes |
| 5749 | hardcode_shlibpath_var=no |
| 5750 | ;; |
| 5751 | |
| 5752 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 5753 | freebsd2*) |
| 5754 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5755 | hardcode_direct=yes |
| 5756 | hardcode_minus_L=yes |
| 5757 | hardcode_shlibpath_var=no |
| 5758 | ;; |
| 5759 | |
| 5760 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 5761 | freebsd*) |
| 5762 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 5763 | hardcode_libdir_flag_spec='-R$libdir' |
| 5764 | hardcode_direct=yes |
| 5765 | hardcode_shlibpath_var=no |
| 5766 | ;; |
| 5767 | |
| 5768 | hpux9* | hpux10* | hpux11*) |
| 5769 | case $host_os in |
| 5770 | hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
| 5771 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 5772 | esac |
| 5773 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 5774 | hardcode_libdir_separator=: |
| 5775 | hardcode_direct=yes |
| 5776 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 5777 | # location of the library. |
| 5778 | export_dynamic_flag_spec='${wl}-E' |
| 5779 | ;; |
| 5780 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5781 | irix5* | irix6* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5782 | if test "$GCC" = yes; then |
| 5783 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5784 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5785 | else |
| 5786 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5787 | hardcode_libdir_flag_spec='-rpath $libdir' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5788 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5789 | hardcode_libdir_separator=: |
| 5790 | link_all_deplibs=yes |
| 5791 | ;; |
| 5792 | |
| 5793 | netbsd*) |
| 5794 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5795 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 5796 | else |
| 5797 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 5798 | fi |
| 5799 | hardcode_libdir_flag_spec='-R$libdir' |
| 5800 | hardcode_direct=yes |
| 5801 | hardcode_shlibpath_var=no |
| 5802 | ;; |
| 5803 | |
| 5804 | newsos6) |
| 5805 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5806 | hardcode_direct=yes |
| 5807 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5808 | hardcode_libdir_separator=: |
| 5809 | hardcode_shlibpath_var=no |
| 5810 | ;; |
| 5811 | |
| 5812 | openbsd*) |
| 5813 | hardcode_direct=yes |
| 5814 | hardcode_shlibpath_var=no |
| 5815 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5816 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5817 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5818 | export_dynamic_flag_spec='${wl}-E' |
| 5819 | else |
| 5820 | case "$host_os" in |
| 5821 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 5822 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5823 | hardcode_libdir_flag_spec='-R$libdir' |
| 5824 | ;; |
| 5825 | *) |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5826 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5827 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5828 | ;; |
| 5829 | esac |
| 5830 | fi |
| 5831 | ;; |
| 5832 | |
| 5833 | os2*) |
| 5834 | hardcode_libdir_flag_spec='-L$libdir' |
| 5835 | hardcode_minus_L=yes |
| 5836 | allow_undefined_flag=unsupported |
| 5837 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 5838 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 5839 | ;; |
| 5840 | |
| 5841 | osf3*) |
| 5842 | if test "$GCC" = yes; then |
| 5843 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5844 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5845 | else |
| 5846 | allow_undefined_flag=' -expect_unresolved \*' |
| 5847 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5848 | fi |
| 5849 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5850 | hardcode_libdir_separator=: |
| 5851 | ;; |
| 5852 | |
| 5853 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5854 | if test "$GCC" = yes; then |
| 5855 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5856 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5857 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5858 | else |
| 5859 | allow_undefined_flag=' -expect_unresolved \*' |
| 5860 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5861 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 5862 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 5863 | |
| 5864 | #Both c and cxx compiler support -rpath directly |
| 5865 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5866 | fi |
| 5867 | hardcode_libdir_separator=: |
| 5868 | ;; |
| 5869 | |
| 5870 | sco3.2v5*) |
| 5871 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5872 | hardcode_shlibpath_var=no |
| 5873 | runpath_var=LD_RUN_PATH |
| 5874 | hardcode_runpath_var=yes |
| 5875 | export_dynamic_flag_spec='${wl}-Bexport' |
| 5876 | ;; |
| 5877 | |
| 5878 | solaris*) |
| 5879 | # gcc --version < 3.0 without binutils cannot create self contained |
| 5880 | # shared libraries reliably, requiring libgcc.a to resolve some of |
| 5881 | # the object symbols generated in some cases. Libraries that use |
| 5882 | # assert need libgcc.a to resolve __eprintf, for example. Linking |
| 5883 | # a copy of libgcc.a into every shared library to guarantee resolving |
| 5884 | # such symbols causes other problems: According to Tim Van Holder |
| 5885 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
| 5886 | # (to the application) exception stack for one thing. |
| 5887 | no_undefined_flag=' -z defs' |
| 5888 | if test "$GCC" = yes; then |
| 5889 | case `$CC --version 2>/dev/null` in |
| 5890 | [12].*) |
| 5891 | cat <<EOF 1>&2 |
| 5892 | |
| 5893 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
| 5894 | *** create self contained shared libraries on Solaris systems, without |
| 5895 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
| 5896 | *** -no-undefined support, which will at least allow you to build shared |
| 5897 | *** libraries. However, you may find that when you link such libraries |
| 5898 | *** into an application without using GCC, you have to manually add |
| 5899 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
| 5900 | *** upgrade to a newer version of GCC. Another option is to rebuild your |
| 5901 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
| 5902 | |
| 5903 | EOF |
| 5904 | no_undefined_flag= |
| 5905 | ;; |
| 5906 | esac |
| 5907 | fi |
| 5908 | # $CC -shared without GNU ld will not create a library from C++ |
| 5909 | # object files and a static libstdc++, better avoid it by now |
| 5910 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5911 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5912 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5913 | hardcode_libdir_flag_spec='-R$libdir' |
| 5914 | hardcode_shlibpath_var=no |
| 5915 | case $host_os in |
| 5916 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 5917 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 5918 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 5919 | esac |
| 5920 | link_all_deplibs=yes |
| 5921 | ;; |
| 5922 | |
| 5923 | sunos4*) |
| 5924 | if test "x$host_vendor" = xsequent; then |
| 5925 | # Use $CC to link under sequent, because it throws in some extra .o |
| 5926 | # files that make .init and .fini sections work. |
| 5927 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5928 | else |
| 5929 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 5930 | fi |
| 5931 | hardcode_libdir_flag_spec='-L$libdir' |
| 5932 | hardcode_direct=yes |
| 5933 | hardcode_minus_L=yes |
| 5934 | hardcode_shlibpath_var=no |
| 5935 | ;; |
| 5936 | |
| 5937 | sysv4) |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 5938 | case $host_vendor in |
| 5939 | sni) |
| 5940 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5941 | hardcode_direct=yes # is this really true??? |
| 5942 | ;; |
| 5943 | siemens) |
| 5944 | ## LD is ld it makes a PLAMLIB |
| 5945 | ## CC just makes a GrossModule. |
| 5946 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5947 | reload_cmds='$CC -r -o $output$reload_objs' |
| 5948 | hardcode_direct=no |
| 5949 | ;; |
| 5950 | motorola) |
| 5951 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5952 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 5953 | ;; |
| 5954 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 5955 | runpath_var='LD_RUN_PATH' |
| 5956 | hardcode_shlibpath_var=no |
| 5957 | ;; |
| 5958 | |
| 5959 | sysv4.3*) |
| 5960 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5961 | hardcode_shlibpath_var=no |
| 5962 | export_dynamic_flag_spec='-Bexport' |
| 5963 | ;; |
| 5964 | |
| 5965 | sysv5*) |
| 5966 | no_undefined_flag=' -z text' |
| 5967 | # $CC -shared without GNU ld will not create a library from C++ |
| 5968 | # object files and a static libstdc++, better avoid it by now |
| 5969 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5970 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5971 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5972 | hardcode_libdir_flag_spec= |
| 5973 | hardcode_shlibpath_var=no |
| 5974 | runpath_var='LD_RUN_PATH' |
| 5975 | ;; |
| 5976 | |
| 5977 | uts4*) |
| 5978 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5979 | hardcode_libdir_flag_spec='-L$libdir' |
| 5980 | hardcode_shlibpath_var=no |
| 5981 | ;; |
| 5982 | |
| 5983 | dgux*) |
| 5984 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5985 | hardcode_libdir_flag_spec='-L$libdir' |
| 5986 | hardcode_shlibpath_var=no |
| 5987 | ;; |
| 5988 | |
| 5989 | sysv4*MP*) |
| 5990 | if test -d /usr/nec; then |
| 5991 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5992 | hardcode_shlibpath_var=no |
| 5993 | runpath_var=LD_RUN_PATH |
| 5994 | hardcode_runpath_var=yes |
| 5995 | ld_shlibs=yes |
| 5996 | fi |
| 5997 | ;; |
| 5998 | |
| 5999 | sysv4.2uw2*) |
| 6000 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6001 | hardcode_direct=yes |
| 6002 | hardcode_minus_L=no |
| 6003 | hardcode_shlibpath_var=no |
| 6004 | hardcode_runpath_var=yes |
| 6005 | runpath_var=LD_RUN_PATH |
| 6006 | ;; |
| 6007 | |
| 6008 | sysv5uw7* | unixware7*) |
| 6009 | no_undefined_flag='${wl}-z ${wl}text' |
| 6010 | if test "$GCC" = yes; then |
| 6011 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6012 | else |
| 6013 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6014 | fi |
| 6015 | runpath_var='LD_RUN_PATH' |
| 6016 | hardcode_shlibpath_var=no |
| 6017 | ;; |
| 6018 | |
| 6019 | *) |
| 6020 | ld_shlibs=no |
| 6021 | ;; |
| 6022 | esac |
| 6023 | fi |
| 6024 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 6025 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 6026 | test "$ld_shlibs" = no && can_build_shared=no |
| 6027 | |
| 6028 | # Check hardcoding attributes. |
| 6029 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 6030 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 6031 | hardcode_action= |
| 6032 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 6033 | test -n "$runpath_var"; then |
| 6034 | |
| 6035 | # We can hardcode non-existant directories. |
| 6036 | if test "$hardcode_direct" != no && |
| 6037 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 6038 | # have to relink, otherwise we might link with an installed library |
| 6039 | # when we should be linking with a yet-to-be-installed one |
| 6040 | ## test "$hardcode_shlibpath_var" != no && |
| 6041 | test "$hardcode_minus_L" != no; then |
| 6042 | # Linking always hardcodes the temporary library directory. |
| 6043 | hardcode_action=relink |
| 6044 | else |
| 6045 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 6046 | hardcode_action=immediate |
| 6047 | fi |
| 6048 | else |
| 6049 | # We cannot hardcode anything, or else we can only hardcode existing |
| 6050 | # directories. |
| 6051 | hardcode_action=unsupported |
| 6052 | fi |
| 6053 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 6054 | echo "${ECHO_T}$hardcode_action" >&6 |
| 6055 | |
| 6056 | striplib= |
| 6057 | old_striplib= |
| 6058 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 6059 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 6060 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 6061 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 6062 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 6063 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6064 | echo "${ECHO_T}yes" >&6 |
| 6065 | else |
| 6066 | echo "$as_me:$LINENO: result: no" >&5 |
| 6067 | echo "${ECHO_T}no" >&6 |
| 6068 | fi |
| 6069 | |
| 6070 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6071 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6072 | |
| 6073 | # PORTME Fill in your ld.so characteristics |
| 6074 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 6075 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6076 | library_names_spec= |
| 6077 | libname_spec='lib$name' |
| 6078 | soname_spec= |
| 6079 | postinstall_cmds= |
| 6080 | postuninstall_cmds= |
| 6081 | finish_cmds= |
| 6082 | finish_eval= |
| 6083 | shlibpath_var= |
| 6084 | shlibpath_overrides_runpath=unknown |
| 6085 | version_type=none |
| 6086 | dynamic_linker="$host_os ld.so" |
| 6087 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 6088 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 6089 | |
| 6090 | case $host_os in |
| 6091 | aix3*) |
| 6092 | version_type=linux |
| 6093 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 6094 | shlibpath_var=LIBPATH |
| 6095 | |
| 6096 | # AIX has no versioning support, so we append a major version to the name. |
| 6097 | soname_spec='${libname}${release}.so$major' |
| 6098 | ;; |
| 6099 | |
| 6100 | aix4* | aix5*) |
| 6101 | version_type=linux |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6102 | need_lib_prefix=no |
| 6103 | need_version=no |
| 6104 | hardcode_into_libs=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6105 | if test "$host_cpu" = ia64; then |
| 6106 | # AIX 5 supports IA64 |
| 6107 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 6108 | shlibpath_var=LD_LIBRARY_PATH |
| 6109 | else |
| 6110 | # With GCC up to 2.95.x, collect2 would create an import file |
| 6111 | # for dependence libraries. The import file would start with |
| 6112 | # the line `#! .'. This would cause the generated library to |
| 6113 | # depend on `.', always an invalid library. This was fixed in |
| 6114 | # development snapshots of GCC prior to 3.0. |
| 6115 | case $host_os in |
| 6116 | aix4 | aix4.[01] | aix4.[01].*) |
| 6117 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 6118 | echo ' yes ' |
| 6119 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 6120 | : |
| 6121 | else |
| 6122 | can_build_shared=no |
| 6123 | fi |
| 6124 | ;; |
| 6125 | esac |
| 6126 | # AIX (on Power*) has no versioning support, so currently we can |
| 6127 | # not hardcode correct soname into executable. Probably we can |
| 6128 | # add versioning support to collect2, so additional links can |
| 6129 | # be useful in future. |
| 6130 | if test "$aix_use_runtimelinking" = yes; then |
| 6131 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6132 | # instead of lib<name>.a to let people know that these are not |
| 6133 | # typical AIX shared libraries. |
| 6134 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6135 | else |
| 6136 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6137 | # and later when we are not doing run time linking. |
| 6138 | library_names_spec='${libname}${release}.a $libname.a' |
| 6139 | soname_spec='${libname}${release}.so$major' |
| 6140 | fi |
| 6141 | shlibpath_var=LIBPATH |
| 6142 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6143 | hardcode_into_libs=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6144 | ;; |
| 6145 | |
| 6146 | amigaos*) |
| 6147 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6148 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 6149 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
| 6150 | ;; |
| 6151 | |
| 6152 | beos*) |
| 6153 | library_names_spec='${libname}.so' |
| 6154 | dynamic_linker="$host_os ld.so" |
| 6155 | shlibpath_var=LIBRARY_PATH |
| 6156 | ;; |
| 6157 | |
| 6158 | bsdi4*) |
| 6159 | version_type=linux |
| 6160 | need_version=no |
| 6161 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6162 | soname_spec='${libname}${release}.so$major' |
| 6163 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6164 | shlibpath_var=LD_LIBRARY_PATH |
| 6165 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6166 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6167 | export_dynamic_flag_spec=-rdynamic |
| 6168 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6169 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6170 | # libtool to hard-code these into programs |
| 6171 | ;; |
| 6172 | |
| 6173 | cygwin* | mingw* | pw32*) |
| 6174 | version_type=windows |
| 6175 | need_version=no |
| 6176 | need_lib_prefix=no |
| 6177 | case $GCC,$host_os in |
| 6178 | yes,cygwin*) |
| 6179 | library_names_spec='$libname.dll.a' |
| 6180 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 6181 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 6182 | dldir=$destdir/`dirname \$dlpath`~ |
| 6183 | test -d \$dldir || mkdir -p \$dldir~ |
| 6184 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 6185 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 6186 | dlpath=$dir/\$dldll~ |
| 6187 | $rm \$dlpath' |
| 6188 | ;; |
| 6189 | yes,mingw*) |
| 6190 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6191 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6192 | ;; |
| 6193 | yes,pw32*) |
| 6194 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 6195 | ;; |
| 6196 | *) |
| 6197 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 6198 | ;; |
| 6199 | esac |
| 6200 | dynamic_linker='Win32 ld.exe' |
| 6201 | # FIXME: first we should search . and the directory the executable is in |
| 6202 | shlibpath_var=PATH |
| 6203 | ;; |
| 6204 | |
| 6205 | darwin* | rhapsody*) |
| 6206 | dynamic_linker="$host_os dyld" |
| 6207 | version_type=darwin |
| 6208 | need_lib_prefix=no |
| 6209 | need_version=no |
| 6210 | # FIXME: Relying on posixy $() will cause problems for |
| 6211 | # cross-compilation, but unfortunately the echo tests do not |
| 6212 | # yet detect zsh echo's removal of \ escapes. |
| 6213 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
| 6214 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 6215 | shlibpath_overrides_runpath=yes |
| 6216 | shlibpath_var=DYLD_LIBRARY_PATH |
| 6217 | ;; |
| 6218 | |
| 6219 | freebsd1*) |
| 6220 | dynamic_linker=no |
| 6221 | ;; |
| 6222 | |
| 6223 | freebsd*) |
| 6224 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 6225 | version_type=freebsd-$objformat |
| 6226 | case $version_type in |
| 6227 | freebsd-elf*) |
| 6228 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 6229 | need_version=no |
| 6230 | need_lib_prefix=no |
| 6231 | ;; |
| 6232 | freebsd-*) |
| 6233 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 6234 | need_version=yes |
| 6235 | ;; |
| 6236 | esac |
| 6237 | shlibpath_var=LD_LIBRARY_PATH |
| 6238 | case $host_os in |
| 6239 | freebsd2*) |
| 6240 | shlibpath_overrides_runpath=yes |
| 6241 | ;; |
| 6242 | *) |
| 6243 | shlibpath_overrides_runpath=no |
| 6244 | hardcode_into_libs=yes |
| 6245 | ;; |
| 6246 | esac |
| 6247 | ;; |
| 6248 | |
| 6249 | gnu*) |
| 6250 | version_type=linux |
| 6251 | need_lib_prefix=no |
| 6252 | need_version=no |
| 6253 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 6254 | soname_spec='${libname}${release}.so$major' |
| 6255 | shlibpath_var=LD_LIBRARY_PATH |
| 6256 | hardcode_into_libs=yes |
| 6257 | ;; |
| 6258 | |
| 6259 | hpux9* | hpux10* | hpux11*) |
| 6260 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 6261 | # link against other versions. |
| 6262 | dynamic_linker="$host_os dld.sl" |
| 6263 | version_type=sunos |
| 6264 | need_lib_prefix=no |
| 6265 | need_version=no |
| 6266 | shlibpath_var=SHLIB_PATH |
| 6267 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 6268 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 6269 | soname_spec='${libname}${release}.sl$major' |
| 6270 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 6271 | postinstall_cmds='chmod 555 $lib' |
| 6272 | ;; |
| 6273 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6274 | irix5* | irix6* | nonstopux*) |
| 6275 | case $host_os in |
| 6276 | nonstopux*) version_type=nonstopux ;; |
| 6277 | *) version_type=irix ;; |
| 6278 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6279 | need_lib_prefix=no |
| 6280 | need_version=no |
| 6281 | soname_spec='${libname}${release}.so$major' |
| 6282 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 6283 | case $host_os in |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6284 | irix5* | nonstopux*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6285 | libsuff= shlibsuff= |
| 6286 | ;; |
| 6287 | *) |
| 6288 | case $LD in # libtool.m4 will add one of these switches to LD |
| 6289 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 6290 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 6291 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 6292 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 6293 | esac |
| 6294 | ;; |
| 6295 | esac |
| 6296 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 6297 | shlibpath_overrides_runpath=no |
| 6298 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 6299 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 6300 | ;; |
| 6301 | |
| 6302 | # No shared lib support for Linux oldld, aout, or coff. |
| 6303 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
| 6304 | dynamic_linker=no |
| 6305 | ;; |
| 6306 | |
| 6307 | # This must be Linux ELF. |
| 6308 | linux-gnu*) |
| 6309 | version_type=linux |
| 6310 | need_lib_prefix=no |
| 6311 | need_version=no |
| 6312 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6313 | soname_spec='${libname}${release}.so$major' |
| 6314 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 6315 | shlibpath_var=LD_LIBRARY_PATH |
| 6316 | shlibpath_overrides_runpath=no |
| 6317 | # This implies no fast_install, which is unacceptable. |
| 6318 | # Some rework will be needed to allow for fast_install |
| 6319 | # before this can be enabled. |
| 6320 | hardcode_into_libs=yes |
| 6321 | |
| 6322 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 6323 | # powerpc, because MkLinux only supported shared libraries with the |
| 6324 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 6325 | # most powerpc-linux boxes support dynamic linking these days and |
| 6326 | # people can always --disable-shared, the test was removed, and we |
| 6327 | # assume the GNU/Linux dynamic linker is in use. |
| 6328 | dynamic_linker='GNU/Linux ld.so' |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6329 | |
| 6330 | # Find out which ABI we are using (multilib Linux x86_64 hack). |
| 6331 | libsuff= |
| 6332 | case "$host_cpu" in |
| 6333 | x86_64*|s390x*) |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 6334 | echo '#line 6334 "configure"' > conftest.$ac_ext |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6336 | (eval $ac_compile) 2>&5 |
| 6337 | ac_status=$? |
| 6338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6339 | (exit $ac_status); }; then |
| 6340 | case `/usr/bin/file conftest.$ac_objext` in |
| 6341 | *64-bit*) |
| 6342 | libsuff=64 |
| 6343 | ;; |
| 6344 | esac |
| 6345 | fi |
| 6346 | rm -rf conftest* |
| 6347 | ;; |
| 6348 | *) |
| 6349 | ;; |
| 6350 | esac |
| 6351 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" |
| 6352 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6353 | ;; |
| 6354 | |
| 6355 | netbsd*) |
| 6356 | version_type=sunos |
| 6357 | need_lib_prefix=no |
| 6358 | need_version=no |
| 6359 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6360 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6361 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6362 | dynamic_linker='NetBSD (a.out) ld.so' |
| 6363 | else |
| 6364 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 6365 | soname_spec='${libname}${release}.so$major' |
| 6366 | dynamic_linker='NetBSD ld.elf_so' |
| 6367 | fi |
| 6368 | shlibpath_var=LD_LIBRARY_PATH |
| 6369 | shlibpath_overrides_runpath=yes |
| 6370 | hardcode_into_libs=yes |
| 6371 | ;; |
| 6372 | |
| 6373 | newsos6) |
| 6374 | version_type=linux |
| 6375 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6376 | shlibpath_var=LD_LIBRARY_PATH |
| 6377 | shlibpath_overrides_runpath=yes |
| 6378 | ;; |
| 6379 | |
| 6380 | openbsd*) |
| 6381 | version_type=sunos |
| 6382 | need_lib_prefix=no |
| 6383 | need_version=no |
| 6384 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6385 | case "$host_os" in |
| 6386 | openbsd2.[89] | openbsd2.[89].*) |
| 6387 | shlibpath_overrides_runpath=no |
| 6388 | ;; |
| 6389 | *) |
| 6390 | shlibpath_overrides_runpath=yes |
| 6391 | ;; |
| 6392 | esac |
| 6393 | else |
| 6394 | shlibpath_overrides_runpath=yes |
| 6395 | fi |
| 6396 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6397 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6398 | shlibpath_var=LD_LIBRARY_PATH |
| 6399 | ;; |
| 6400 | |
| 6401 | os2*) |
| 6402 | libname_spec='$name' |
| 6403 | need_lib_prefix=no |
| 6404 | library_names_spec='$libname.dll $libname.a' |
| 6405 | dynamic_linker='OS/2 ld.exe' |
| 6406 | shlibpath_var=LIBPATH |
| 6407 | ;; |
| 6408 | |
| 6409 | osf3* | osf4* | osf5*) |
| 6410 | version_type=osf |
| 6411 | need_version=no |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6412 | soname_spec='${libname}${release}.so$major' |
| 6413 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6414 | shlibpath_var=LD_LIBRARY_PATH |
| 6415 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 6416 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6417 | hardcode_into_libs=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6418 | ;; |
| 6419 | |
| 6420 | sco3.2v5*) |
| 6421 | version_type=osf |
| 6422 | soname_spec='${libname}${release}.so$major' |
| 6423 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6424 | shlibpath_var=LD_LIBRARY_PATH |
| 6425 | ;; |
| 6426 | |
| 6427 | solaris*) |
| 6428 | version_type=linux |
| 6429 | need_lib_prefix=no |
| 6430 | need_version=no |
| 6431 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6432 | soname_spec='${libname}${release}.so$major' |
| 6433 | shlibpath_var=LD_LIBRARY_PATH |
| 6434 | shlibpath_overrides_runpath=yes |
| 6435 | hardcode_into_libs=yes |
| 6436 | # ldd complains unless libraries are executable |
| 6437 | postinstall_cmds='chmod +x $lib' |
| 6438 | ;; |
| 6439 | |
| 6440 | sunos4*) |
| 6441 | version_type=sunos |
| 6442 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6443 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 6444 | shlibpath_var=LD_LIBRARY_PATH |
| 6445 | shlibpath_overrides_runpath=yes |
| 6446 | if test "$with_gnu_ld" = yes; then |
| 6447 | need_lib_prefix=no |
| 6448 | fi |
| 6449 | need_version=yes |
| 6450 | ;; |
| 6451 | |
| 6452 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 6453 | version_type=linux |
| 6454 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6455 | soname_spec='${libname}${release}.so$major' |
| 6456 | shlibpath_var=LD_LIBRARY_PATH |
| 6457 | case $host_vendor in |
| 6458 | sni) |
| 6459 | shlibpath_overrides_runpath=no |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6460 | need_lib_prefix=no |
| 6461 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 6462 | runpath_var=LD_RUN_PATH |
| 6463 | ;; |
| 6464 | siemens) |
| 6465 | need_lib_prefix=no |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6466 | ;; |
| 6467 | motorola) |
| 6468 | need_lib_prefix=no |
| 6469 | need_version=no |
| 6470 | shlibpath_overrides_runpath=no |
| 6471 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 6472 | ;; |
| 6473 | esac |
| 6474 | ;; |
| 6475 | |
| 6476 | uts4*) |
| 6477 | version_type=linux |
| 6478 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6479 | soname_spec='${libname}${release}.so$major' |
| 6480 | shlibpath_var=LD_LIBRARY_PATH |
| 6481 | ;; |
| 6482 | |
| 6483 | dgux*) |
| 6484 | version_type=linux |
| 6485 | need_lib_prefix=no |
| 6486 | need_version=no |
| 6487 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6488 | soname_spec='${libname}${release}.so$major' |
| 6489 | shlibpath_var=LD_LIBRARY_PATH |
| 6490 | ;; |
| 6491 | |
| 6492 | sysv4*MP*) |
| 6493 | if test -d /usr/nec ;then |
| 6494 | version_type=linux |
| 6495 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 6496 | soname_spec='$libname.so.$major' |
| 6497 | shlibpath_var=LD_LIBRARY_PATH |
| 6498 | fi |
| 6499 | ;; |
| 6500 | |
| 6501 | *) |
| 6502 | dynamic_linker=no |
| 6503 | ;; |
| 6504 | esac |
| 6505 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 6506 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 6507 | test "$dynamic_linker" = no && can_build_shared=no |
| 6508 | |
| 6509 | # Report the final consequences. |
| 6510 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 6511 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 6512 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 6513 | echo "${ECHO_T}$can_build_shared" >&6 |
| 6514 | |
| 6515 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 6516 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 6517 | test "$can_build_shared" = "no" && enable_shared=no |
| 6518 | |
| 6519 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 6520 | # are all built from PIC. |
| 6521 | case "$host_os" in |
| 6522 | aix3*) |
| 6523 | test "$enable_shared" = yes && enable_static=no |
| 6524 | if test -n "$RANLIB"; then |
| 6525 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6526 | postinstall_cmds='$RANLIB $lib' |
| 6527 | fi |
| 6528 | ;; |
| 6529 | |
| 6530 | aix4*) |
| 6531 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 6532 | test "$enable_shared" = yes && enable_static=no |
| 6533 | fi |
| 6534 | ;; |
| 6535 | esac |
| 6536 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 6537 | echo "${ECHO_T}$enable_shared" >&6 |
| 6538 | |
| 6539 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 6540 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 6541 | # Make sure either enable_shared or enable_static is yes. |
| 6542 | test "$enable_shared" = yes || enable_static=yes |
| 6543 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 6544 | echo "${ECHO_T}$enable_static" >&6 |
| 6545 | |
| 6546 | if test "$hardcode_action" = relink; then |
| 6547 | # Fast installation is not supported |
| 6548 | enable_fast_install=no |
| 6549 | elif test "$shlibpath_overrides_runpath" = yes || |
| 6550 | test "$enable_shared" = no; then |
| 6551 | # Fast installation is not necessary |
| 6552 | enable_fast_install=needless |
| 6553 | fi |
| 6554 | |
| 6555 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 6556 | if test "$GCC" = yes; then |
| 6557 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 6558 | fi |
| 6559 | |
| 6560 | if test "x$enable_dlopen" != xyes; then |
| 6561 | enable_dlopen=unknown |
| 6562 | enable_dlopen_self=unknown |
| 6563 | enable_dlopen_self_static=unknown |
| 6564 | else |
| 6565 | lt_cv_dlopen=no |
| 6566 | lt_cv_dlopen_libs= |
| 6567 | |
| 6568 | case $host_os in |
| 6569 | beos*) |
| 6570 | lt_cv_dlopen="load_add_on" |
| 6571 | lt_cv_dlopen_libs= |
| 6572 | lt_cv_dlopen_self=yes |
| 6573 | ;; |
| 6574 | |
| 6575 | cygwin* | mingw* | pw32*) |
| 6576 | lt_cv_dlopen="LoadLibrary" |
| 6577 | lt_cv_dlopen_libs= |
| 6578 | ;; |
| 6579 | |
| 6580 | *) |
| 6581 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 6582 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 6583 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 6584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6585 | else |
| 6586 | cat >conftest.$ac_ext <<_ACEOF |
| 6587 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6588 | /* confdefs.h. */ |
| 6589 | _ACEOF |
| 6590 | cat confdefs.h >>conftest.$ac_ext |
| 6591 | cat >>conftest.$ac_ext <<_ACEOF |
| 6592 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6593 | /* System header to define __stub macros and hopefully few prototypes, |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6594 | which can conflict with char shl_load (); below. |
| 6595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6596 | <limits.h> exists even on freestanding compilers. */ |
| 6597 | #ifdef __STDC__ |
| 6598 | # include <limits.h> |
| 6599 | #else |
| 6600 | # include <assert.h> |
| 6601 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6602 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6603 | #ifdef __cplusplus |
| 6604 | extern "C" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6605 | { |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6606 | #endif |
| 6607 | /* We use char because int might match the return type of a gcc2 |
| 6608 | builtin and then its argument prototype would still apply. */ |
| 6609 | char shl_load (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6610 | /* The GNU C library defines this for functions which it implements |
| 6611 | to always fail with ENOSYS. Some functions are actually named |
| 6612 | something starting with __ and the normal name is an alias. */ |
| 6613 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 6614 | choke me |
| 6615 | #else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6616 | char (*f) () = shl_load; |
| 6617 | #endif |
| 6618 | #ifdef __cplusplus |
| 6619 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6620 | #endif |
| 6621 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6622 | int |
| 6623 | main () |
| 6624 | { |
| 6625 | return f != shl_load; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6626 | ; |
| 6627 | return 0; |
| 6628 | } |
| 6629 | _ACEOF |
| 6630 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6632 | (eval $ac_link) 2>&5 |
| 6633 | ac_status=$? |
| 6634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6635 | (exit $ac_status); } && |
| 6636 | { ac_try='test -s conftest$ac_exeext' |
| 6637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6638 | (eval $ac_try) 2>&5 |
| 6639 | ac_status=$? |
| 6640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6641 | (exit $ac_status); }; }; then |
| 6642 | ac_cv_func_shl_load=yes |
| 6643 | else |
| 6644 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6646 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6647 | ac_cv_func_shl_load=no |
| 6648 | fi |
| 6649 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6650 | fi |
| 6651 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 6652 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 6653 | if test $ac_cv_func_shl_load = yes; then |
| 6654 | lt_cv_dlopen="shl_load" |
| 6655 | else |
| 6656 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 6657 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 6658 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 6659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6660 | else |
| 6661 | ac_check_lib_save_LIBS=$LIBS |
| 6662 | LIBS="-ldld $LIBS" |
| 6663 | cat >conftest.$ac_ext <<_ACEOF |
| 6664 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6665 | /* confdefs.h. */ |
| 6666 | _ACEOF |
| 6667 | cat confdefs.h >>conftest.$ac_ext |
| 6668 | cat >>conftest.$ac_ext <<_ACEOF |
| 6669 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6670 | |
| 6671 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6672 | #ifdef __cplusplus |
| 6673 | extern "C" |
| 6674 | #endif |
| 6675 | /* We use char because int might match the return type of a gcc2 |
| 6676 | builtin and then its argument prototype would still apply. */ |
| 6677 | char shl_load (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6678 | int |
| 6679 | main () |
| 6680 | { |
| 6681 | shl_load (); |
| 6682 | ; |
| 6683 | return 0; |
| 6684 | } |
| 6685 | _ACEOF |
| 6686 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6688 | (eval $ac_link) 2>&5 |
| 6689 | ac_status=$? |
| 6690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6691 | (exit $ac_status); } && |
| 6692 | { ac_try='test -s conftest$ac_exeext' |
| 6693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6694 | (eval $ac_try) 2>&5 |
| 6695 | ac_status=$? |
| 6696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6697 | (exit $ac_status); }; }; then |
| 6698 | ac_cv_lib_dld_shl_load=yes |
| 6699 | else |
| 6700 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6702 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6703 | ac_cv_lib_dld_shl_load=no |
| 6704 | fi |
| 6705 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6706 | LIBS=$ac_check_lib_save_LIBS |
| 6707 | fi |
| 6708 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 6709 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 6710 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 6711 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 6712 | else |
| 6713 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 6714 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 6715 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 6716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6717 | else |
| 6718 | cat >conftest.$ac_ext <<_ACEOF |
| 6719 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6720 | /* confdefs.h. */ |
| 6721 | _ACEOF |
| 6722 | cat confdefs.h >>conftest.$ac_ext |
| 6723 | cat >>conftest.$ac_ext <<_ACEOF |
| 6724 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6725 | /* System header to define __stub macros and hopefully few prototypes, |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6726 | which can conflict with char dlopen (); below. |
| 6727 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6728 | <limits.h> exists even on freestanding compilers. */ |
| 6729 | #ifdef __STDC__ |
| 6730 | # include <limits.h> |
| 6731 | #else |
| 6732 | # include <assert.h> |
| 6733 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6734 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6735 | #ifdef __cplusplus |
| 6736 | extern "C" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6737 | { |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6738 | #endif |
| 6739 | /* We use char because int might match the return type of a gcc2 |
| 6740 | builtin and then its argument prototype would still apply. */ |
| 6741 | char dlopen (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6742 | /* The GNU C library defines this for functions which it implements |
| 6743 | to always fail with ENOSYS. Some functions are actually named |
| 6744 | something starting with __ and the normal name is an alias. */ |
| 6745 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 6746 | choke me |
| 6747 | #else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6748 | char (*f) () = dlopen; |
| 6749 | #endif |
| 6750 | #ifdef __cplusplus |
| 6751 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6752 | #endif |
| 6753 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6754 | int |
| 6755 | main () |
| 6756 | { |
| 6757 | return f != dlopen; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6758 | ; |
| 6759 | return 0; |
| 6760 | } |
| 6761 | _ACEOF |
| 6762 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6764 | (eval $ac_link) 2>&5 |
| 6765 | ac_status=$? |
| 6766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6767 | (exit $ac_status); } && |
| 6768 | { ac_try='test -s conftest$ac_exeext' |
| 6769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6770 | (eval $ac_try) 2>&5 |
| 6771 | ac_status=$? |
| 6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6773 | (exit $ac_status); }; }; then |
| 6774 | ac_cv_func_dlopen=yes |
| 6775 | else |
| 6776 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6778 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6779 | ac_cv_func_dlopen=no |
| 6780 | fi |
| 6781 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6782 | fi |
| 6783 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 6784 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 6785 | if test $ac_cv_func_dlopen = yes; then |
| 6786 | lt_cv_dlopen="dlopen" |
| 6787 | else |
| 6788 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 6789 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 6790 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 6791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6792 | else |
| 6793 | ac_check_lib_save_LIBS=$LIBS |
| 6794 | LIBS="-ldl $LIBS" |
| 6795 | cat >conftest.$ac_ext <<_ACEOF |
| 6796 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6797 | /* confdefs.h. */ |
| 6798 | _ACEOF |
| 6799 | cat confdefs.h >>conftest.$ac_ext |
| 6800 | cat >>conftest.$ac_ext <<_ACEOF |
| 6801 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6802 | |
| 6803 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6804 | #ifdef __cplusplus |
| 6805 | extern "C" |
| 6806 | #endif |
| 6807 | /* We use char because int might match the return type of a gcc2 |
| 6808 | builtin and then its argument prototype would still apply. */ |
| 6809 | char dlopen (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6810 | int |
| 6811 | main () |
| 6812 | { |
| 6813 | dlopen (); |
| 6814 | ; |
| 6815 | return 0; |
| 6816 | } |
| 6817 | _ACEOF |
| 6818 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6820 | (eval $ac_link) 2>&5 |
| 6821 | ac_status=$? |
| 6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6823 | (exit $ac_status); } && |
| 6824 | { ac_try='test -s conftest$ac_exeext' |
| 6825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6826 | (eval $ac_try) 2>&5 |
| 6827 | ac_status=$? |
| 6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6829 | (exit $ac_status); }; }; then |
| 6830 | ac_cv_lib_dl_dlopen=yes |
| 6831 | else |
| 6832 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6834 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6835 | ac_cv_lib_dl_dlopen=no |
| 6836 | fi |
| 6837 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6838 | LIBS=$ac_check_lib_save_LIBS |
| 6839 | fi |
| 6840 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 6841 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 6842 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 6843 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 6844 | else |
| 6845 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 6846 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 6847 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 6848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6849 | else |
| 6850 | ac_check_lib_save_LIBS=$LIBS |
| 6851 | LIBS="-lsvld $LIBS" |
| 6852 | cat >conftest.$ac_ext <<_ACEOF |
| 6853 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6854 | /* confdefs.h. */ |
| 6855 | _ACEOF |
| 6856 | cat confdefs.h >>conftest.$ac_ext |
| 6857 | cat >>conftest.$ac_ext <<_ACEOF |
| 6858 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6859 | |
| 6860 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6861 | #ifdef __cplusplus |
| 6862 | extern "C" |
| 6863 | #endif |
| 6864 | /* We use char because int might match the return type of a gcc2 |
| 6865 | builtin and then its argument prototype would still apply. */ |
| 6866 | char dlopen (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6867 | int |
| 6868 | main () |
| 6869 | { |
| 6870 | dlopen (); |
| 6871 | ; |
| 6872 | return 0; |
| 6873 | } |
| 6874 | _ACEOF |
| 6875 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6877 | (eval $ac_link) 2>&5 |
| 6878 | ac_status=$? |
| 6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6880 | (exit $ac_status); } && |
| 6881 | { ac_try='test -s conftest$ac_exeext' |
| 6882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6883 | (eval $ac_try) 2>&5 |
| 6884 | ac_status=$? |
| 6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6886 | (exit $ac_status); }; }; then |
| 6887 | ac_cv_lib_svld_dlopen=yes |
| 6888 | else |
| 6889 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6891 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6892 | ac_cv_lib_svld_dlopen=no |
| 6893 | fi |
| 6894 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6895 | LIBS=$ac_check_lib_save_LIBS |
| 6896 | fi |
| 6897 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 6898 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 6899 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 6900 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 6901 | else |
| 6902 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 6903 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 6904 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 6905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6906 | else |
| 6907 | ac_check_lib_save_LIBS=$LIBS |
| 6908 | LIBS="-ldld $LIBS" |
| 6909 | cat >conftest.$ac_ext <<_ACEOF |
| 6910 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6911 | /* confdefs.h. */ |
| 6912 | _ACEOF |
| 6913 | cat confdefs.h >>conftest.$ac_ext |
| 6914 | cat >>conftest.$ac_ext <<_ACEOF |
| 6915 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6916 | |
| 6917 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6918 | #ifdef __cplusplus |
| 6919 | extern "C" |
| 6920 | #endif |
| 6921 | /* We use char because int might match the return type of a gcc2 |
| 6922 | builtin and then its argument prototype would still apply. */ |
| 6923 | char dld_link (); |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6924 | int |
| 6925 | main () |
| 6926 | { |
| 6927 | dld_link (); |
| 6928 | ; |
| 6929 | return 0; |
| 6930 | } |
| 6931 | _ACEOF |
| 6932 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6934 | (eval $ac_link) 2>&5 |
| 6935 | ac_status=$? |
| 6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6937 | (exit $ac_status); } && |
| 6938 | { ac_try='test -s conftest$ac_exeext' |
| 6939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6940 | (eval $ac_try) 2>&5 |
| 6941 | ac_status=$? |
| 6942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6943 | (exit $ac_status); }; }; then |
| 6944 | ac_cv_lib_dld_dld_link=yes |
| 6945 | else |
| 6946 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 6947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6948 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 6949 | ac_cv_lib_dld_dld_link=no |
| 6950 | fi |
| 6951 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6952 | LIBS=$ac_check_lib_save_LIBS |
| 6953 | fi |
| 6954 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 6955 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 6956 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 6957 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 6958 | fi |
| 6959 | |
| 6960 | |
| 6961 | fi |
| 6962 | |
| 6963 | |
| 6964 | fi |
| 6965 | |
| 6966 | |
| 6967 | fi |
| 6968 | |
| 6969 | |
| 6970 | fi |
| 6971 | |
| 6972 | |
| 6973 | fi |
| 6974 | |
| 6975 | ;; |
| 6976 | esac |
| 6977 | |
| 6978 | if test "x$lt_cv_dlopen" != xno; then |
| 6979 | enable_dlopen=yes |
| 6980 | else |
| 6981 | enable_dlopen=no |
| 6982 | fi |
| 6983 | |
| 6984 | case $lt_cv_dlopen in |
| 6985 | dlopen) |
| 6986 | save_CPPFLAGS="$CPPFLAGS" |
| 6987 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 6988 | |
| 6989 | save_LDFLAGS="$LDFLAGS" |
| 6990 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 6991 | |
| 6992 | save_LIBS="$LIBS" |
| 6993 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 6994 | |
| 6995 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 6996 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 6997 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 6998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6999 | else |
| 7000 | if test "$cross_compiling" = yes; then : |
| 7001 | lt_cv_dlopen_self=cross |
| 7002 | else |
| 7003 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 7004 | lt_status=$lt_dlunknown |
| 7005 | cat > conftest.$ac_ext <<EOF |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 7006 | #line 7006 "configure" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7007 | #include "confdefs.h" |
| 7008 | |
| 7009 | #if HAVE_DLFCN_H |
| 7010 | #include <dlfcn.h> |
| 7011 | #endif |
| 7012 | |
| 7013 | #include <stdio.h> |
| 7014 | |
| 7015 | #ifdef RTLD_GLOBAL |
| 7016 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 7017 | #else |
| 7018 | # ifdef DL_GLOBAL |
| 7019 | # define LT_DLGLOBAL DL_GLOBAL |
| 7020 | # else |
| 7021 | # define LT_DLGLOBAL 0 |
| 7022 | # endif |
| 7023 | #endif |
| 7024 | |
| 7025 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 7026 | find out it does not work in some platform. */ |
| 7027 | #ifndef LT_DLLAZY_OR_NOW |
| 7028 | # ifdef RTLD_LAZY |
| 7029 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 7030 | # else |
| 7031 | # ifdef DL_LAZY |
| 7032 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 7033 | # else |
| 7034 | # ifdef RTLD_NOW |
| 7035 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 7036 | # else |
| 7037 | # ifdef DL_NOW |
| 7038 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 7039 | # else |
| 7040 | # define LT_DLLAZY_OR_NOW 0 |
| 7041 | # endif |
| 7042 | # endif |
| 7043 | # endif |
| 7044 | # endif |
| 7045 | #endif |
| 7046 | |
| 7047 | #ifdef __cplusplus |
| 7048 | extern "C" void exit (int); |
| 7049 | #endif |
| 7050 | |
| 7051 | void fnord() { int i=42;} |
| 7052 | int main () |
| 7053 | { |
| 7054 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 7055 | int status = $lt_dlunknown; |
| 7056 | |
| 7057 | if (self) |
| 7058 | { |
| 7059 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 7060 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 7061 | /* dlclose (self); */ |
| 7062 | } |
| 7063 | |
| 7064 | exit (status); |
| 7065 | } |
| 7066 | EOF |
| 7067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7068 | (eval $ac_link) 2>&5 |
| 7069 | ac_status=$? |
| 7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7071 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 7072 | (./conftest; exit; ) 2>/dev/null |
| 7073 | lt_status=$? |
| 7074 | case x$lt_status in |
| 7075 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 7076 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 7077 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 7078 | esac |
| 7079 | else : |
| 7080 | # compilation failed |
| 7081 | lt_cv_dlopen_self=no |
| 7082 | fi |
| 7083 | fi |
| 7084 | rm -fr conftest* |
| 7085 | |
| 7086 | |
| 7087 | fi |
| 7088 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 7089 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 7090 | |
| 7091 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 7092 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 7093 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 7094 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 7095 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 7096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7097 | else |
| 7098 | if test "$cross_compiling" = yes; then : |
| 7099 | lt_cv_dlopen_self_static=cross |
| 7100 | else |
| 7101 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 7102 | lt_status=$lt_dlunknown |
| 7103 | cat > conftest.$ac_ext <<EOF |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 7104 | #line 7104 "configure" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7105 | #include "confdefs.h" |
| 7106 | |
| 7107 | #if HAVE_DLFCN_H |
| 7108 | #include <dlfcn.h> |
| 7109 | #endif |
| 7110 | |
| 7111 | #include <stdio.h> |
| 7112 | |
| 7113 | #ifdef RTLD_GLOBAL |
| 7114 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 7115 | #else |
| 7116 | # ifdef DL_GLOBAL |
| 7117 | # define LT_DLGLOBAL DL_GLOBAL |
| 7118 | # else |
| 7119 | # define LT_DLGLOBAL 0 |
| 7120 | # endif |
| 7121 | #endif |
| 7122 | |
| 7123 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 7124 | find out it does not work in some platform. */ |
| 7125 | #ifndef LT_DLLAZY_OR_NOW |
| 7126 | # ifdef RTLD_LAZY |
| 7127 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 7128 | # else |
| 7129 | # ifdef DL_LAZY |
| 7130 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 7131 | # else |
| 7132 | # ifdef RTLD_NOW |
| 7133 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 7134 | # else |
| 7135 | # ifdef DL_NOW |
| 7136 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 7137 | # else |
| 7138 | # define LT_DLLAZY_OR_NOW 0 |
| 7139 | # endif |
| 7140 | # endif |
| 7141 | # endif |
| 7142 | # endif |
| 7143 | #endif |
| 7144 | |
| 7145 | #ifdef __cplusplus |
| 7146 | extern "C" void exit (int); |
| 7147 | #endif |
| 7148 | |
| 7149 | void fnord() { int i=42;} |
| 7150 | int main () |
| 7151 | { |
| 7152 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 7153 | int status = $lt_dlunknown; |
| 7154 | |
| 7155 | if (self) |
| 7156 | { |
| 7157 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 7158 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 7159 | /* dlclose (self); */ |
| 7160 | } |
| 7161 | |
| 7162 | exit (status); |
| 7163 | } |
| 7164 | EOF |
| 7165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7166 | (eval $ac_link) 2>&5 |
| 7167 | ac_status=$? |
| 7168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7169 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 7170 | (./conftest; exit; ) 2>/dev/null |
| 7171 | lt_status=$? |
| 7172 | case x$lt_status in |
| 7173 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 7174 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 7175 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 7176 | esac |
| 7177 | else : |
| 7178 | # compilation failed |
| 7179 | lt_cv_dlopen_self_static=no |
| 7180 | fi |
| 7181 | fi |
| 7182 | rm -fr conftest* |
| 7183 | |
| 7184 | |
| 7185 | fi |
| 7186 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 7187 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 7188 | fi |
| 7189 | |
| 7190 | CPPFLAGS="$save_CPPFLAGS" |
| 7191 | LDFLAGS="$save_LDFLAGS" |
| 7192 | LIBS="$save_LIBS" |
| 7193 | ;; |
| 7194 | esac |
| 7195 | |
| 7196 | case $lt_cv_dlopen_self in |
| 7197 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 7198 | *) enable_dlopen_self=unknown ;; |
| 7199 | esac |
| 7200 | |
| 7201 | case $lt_cv_dlopen_self_static in |
| 7202 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 7203 | *) enable_dlopen_self_static=unknown ;; |
| 7204 | esac |
| 7205 | fi |
| 7206 | |
| 7207 | |
| 7208 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7209 | case $archive_cmds in |
| 7210 | *'~'*) |
| 7211 | # FIXME: we may have to deal with multi-command sequences. |
| 7212 | ;; |
| 7213 | '$CC '*) |
| 7214 | # Test whether the compiler implicitly links with -lc since on some |
| 7215 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7216 | # to ld, don't add -lc before -lgcc. |
| 7217 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7218 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7219 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
| 7220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7221 | else |
| 7222 | $rm conftest* |
| 7223 | echo 'static int dummy;' > conftest.$ac_ext |
| 7224 | |
| 7225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7226 | (eval $ac_compile) 2>&5 |
| 7227 | ac_status=$? |
| 7228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7229 | (exit $ac_status); }; then |
| 7230 | soname=conftest |
| 7231 | lib=conftest |
| 7232 | libobjs=conftest.$ac_objext |
| 7233 | deplibs= |
| 7234 | wl=$lt_cv_prog_cc_wl |
| 7235 | compiler_flags=-v |
| 7236 | linker_flags=-v |
| 7237 | verstring= |
| 7238 | output_objdir=. |
| 7239 | libname=conftest |
| 7240 | save_allow_undefined_flag=$allow_undefined_flag |
| 7241 | allow_undefined_flag= |
| 7242 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7243 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7244 | ac_status=$? |
| 7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7246 | (exit $ac_status); } |
| 7247 | then |
| 7248 | lt_cv_archive_cmds_need_lc=no |
| 7249 | else |
| 7250 | lt_cv_archive_cmds_need_lc=yes |
| 7251 | fi |
| 7252 | allow_undefined_flag=$save_allow_undefined_flag |
| 7253 | else |
| 7254 | cat conftest.err 1>&5 |
| 7255 | fi |
| 7256 | fi |
| 7257 | |
| 7258 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 7259 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
| 7260 | ;; |
| 7261 | esac |
| 7262 | fi |
| 7263 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
| 7264 | |
| 7265 | # The second clause should only fire when bootstrapping the |
| 7266 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 7267 | # with your package, and you will get complaints that there are |
| 7268 | # no rules to generate ltmain.sh. |
| 7269 | if test -f "$ltmain"; then |
| 7270 | : |
| 7271 | else |
| 7272 | # If there is no Makefile yet, we rely on a make rule to execute |
| 7273 | # `config.status --recheck' to rerun these tests and create the |
| 7274 | # libtool script then. |
| 7275 | test -f Makefile && make "$ltmain" |
| 7276 | fi |
| 7277 | |
| 7278 | if test -f "$ltmain"; then |
| 7279 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
| 7280 | $rm -f "${ofile}T" |
| 7281 | |
| 7282 | echo creating $ofile |
| 7283 | |
| 7284 | # Now quote all the things that may contain metacharacters while being |
| 7285 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 7286 | # variables and quote the copies for generation of the libtool script. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7287 | for var in echo old_CC old_CFLAGS SED \ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7288 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
| 7289 | reload_flag reload_cmds wl \ |
| 7290 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
| 7291 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
| 7292 | library_names_spec soname_spec \ |
| 7293 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
| 7294 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
| 7295 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
| 7296 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
| 7297 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
| 7298 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
| 7299 | global_symbol_to_c_name_address \ |
| 7300 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
| 7301 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 7302 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
| 7303 | |
| 7304 | case $var in |
| 7305 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
| 7306 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 7307 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
| 7308 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
| 7309 | postinstall_cmds | postuninstall_cmds | \ |
| 7310 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 7311 | # Double-quote double-evaled strings. |
| 7312 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 7313 | ;; |
| 7314 | *) |
| 7315 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 7316 | ;; |
| 7317 | esac |
| 7318 | done |
| 7319 | |
| 7320 | cat <<__EOF__ > "${ofile}T" |
| 7321 | #! $SHELL |
| 7322 | |
| 7323 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 7324 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 7325 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 7326 | # |
| 7327 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
| 7328 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 7329 | # |
| 7330 | # This program is free software; you can redistribute it and/or modify |
| 7331 | # it under the terms of the GNU General Public License as published by |
| 7332 | # the Free Software Foundation; either version 2 of the License, or |
| 7333 | # (at your option) any later version. |
| 7334 | # |
| 7335 | # This program is distributed in the hope that it will be useful, but |
| 7336 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7337 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 7338 | # General Public License for more details. |
| 7339 | # |
| 7340 | # You should have received a copy of the GNU General Public License |
| 7341 | # along with this program; if not, write to the Free Software |
| 7342 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7343 | # |
| 7344 | # As a special exception to the GNU General Public License, if you |
| 7345 | # distribute this file as part of a program that contains a |
| 7346 | # configuration script generated by Autoconf, you may include it under |
| 7347 | # the same distribution terms that you use for the rest of that program. |
| 7348 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7349 | # A sed that does not truncate output. |
| 7350 | SED=$lt_SED |
| 7351 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7352 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7353 | Xsed="${SED} -e s/^X//" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7354 | |
| 7355 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 7356 | # if CDPATH is set. |
| 7357 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 7358 | |
| 7359 | # ### BEGIN LIBTOOL CONFIG |
| 7360 | |
| 7361 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7362 | |
| 7363 | # Shell to use when invoking shell scripts. |
| 7364 | SHELL=$lt_SHELL |
| 7365 | |
| 7366 | # Whether or not to build shared libraries. |
| 7367 | build_libtool_libs=$enable_shared |
| 7368 | |
| 7369 | # Whether or not to build static libraries. |
| 7370 | build_old_libs=$enable_static |
| 7371 | |
| 7372 | # Whether or not to add -lc for building shared libraries. |
| 7373 | build_libtool_need_lc=$need_lc |
| 7374 | |
| 7375 | # Whether or not to optimize for fast installation. |
| 7376 | fast_install=$enable_fast_install |
| 7377 | |
| 7378 | # The host system. |
| 7379 | host_alias=$host_alias |
| 7380 | host=$host |
| 7381 | |
| 7382 | # An echo program that does not interpret backslashes. |
| 7383 | echo=$lt_echo |
| 7384 | |
| 7385 | # The archiver. |
| 7386 | AR=$lt_AR |
| 7387 | AR_FLAGS=$lt_AR_FLAGS |
| 7388 | |
| 7389 | # The default C compiler. |
| 7390 | CC=$lt_CC |
| 7391 | |
| 7392 | # Is the compiler the GNU C compiler? |
| 7393 | with_gcc=$GCC |
| 7394 | |
| 7395 | # The linker used to build libraries. |
| 7396 | LD=$lt_LD |
| 7397 | |
| 7398 | # Whether we need hard or soft links. |
| 7399 | LN_S=$lt_LN_S |
| 7400 | |
| 7401 | # A BSD-compatible nm program. |
| 7402 | NM=$lt_NM |
| 7403 | |
| 7404 | # A symbol stripping program |
| 7405 | STRIP=$STRIP |
| 7406 | |
| 7407 | # Used to examine libraries when file_magic_cmd begins "file" |
| 7408 | MAGIC_CMD=$MAGIC_CMD |
| 7409 | |
| 7410 | # Used on cygwin: DLL creation program. |
| 7411 | DLLTOOL="$DLLTOOL" |
| 7412 | |
| 7413 | # Used on cygwin: object dumper. |
| 7414 | OBJDUMP="$OBJDUMP" |
| 7415 | |
| 7416 | # Used on cygwin: assembler. |
| 7417 | AS="$AS" |
| 7418 | |
| 7419 | # The name of the directory that contains temporary libtool files. |
| 7420 | objdir=$objdir |
| 7421 | |
| 7422 | # How to create reloadable object files. |
| 7423 | reload_flag=$lt_reload_flag |
| 7424 | reload_cmds=$lt_reload_cmds |
| 7425 | |
| 7426 | # How to pass a linker flag through the compiler. |
| 7427 | wl=$lt_wl |
| 7428 | |
| 7429 | # Object file suffix (normally "o"). |
| 7430 | objext="$ac_objext" |
| 7431 | |
| 7432 | # Old archive suffix (normally "a"). |
| 7433 | libext="$libext" |
| 7434 | |
| 7435 | # Executable file suffix (normally ""). |
| 7436 | exeext="$exeext" |
| 7437 | |
| 7438 | # Additional compiler flags for building library objects. |
| 7439 | pic_flag=$lt_pic_flag |
| 7440 | pic_mode=$pic_mode |
| 7441 | |
| 7442 | # Does compiler simultaneously support -c and -o options? |
| 7443 | compiler_c_o=$lt_compiler_c_o |
| 7444 | |
| 7445 | # Can we write directly to a .lo ? |
| 7446 | compiler_o_lo=$lt_compiler_o_lo |
| 7447 | |
| 7448 | # Must we lock files when doing compilation ? |
| 7449 | need_locks=$lt_need_locks |
| 7450 | |
| 7451 | # Do we need the lib prefix for modules? |
| 7452 | need_lib_prefix=$need_lib_prefix |
| 7453 | |
| 7454 | # Do we need a version for libraries? |
| 7455 | need_version=$need_version |
| 7456 | |
| 7457 | # Whether dlopen is supported. |
| 7458 | dlopen_support=$enable_dlopen |
| 7459 | |
| 7460 | # Whether dlopen of programs is supported. |
| 7461 | dlopen_self=$enable_dlopen_self |
| 7462 | |
| 7463 | # Whether dlopen of statically linked programs is supported. |
| 7464 | dlopen_self_static=$enable_dlopen_self_static |
| 7465 | |
| 7466 | # Compiler flag to prevent dynamic linking. |
| 7467 | link_static_flag=$lt_link_static_flag |
| 7468 | |
| 7469 | # Compiler flag to turn off builtin functions. |
| 7470 | no_builtin_flag=$lt_no_builtin_flag |
| 7471 | |
| 7472 | # Compiler flag to allow reflexive dlopens. |
| 7473 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 7474 | |
| 7475 | # Compiler flag to generate shared objects directly from archives. |
| 7476 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 7477 | |
| 7478 | # Compiler flag to generate thread-safe objects. |
| 7479 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 7480 | |
| 7481 | # Library versioning type. |
| 7482 | version_type=$version_type |
| 7483 | |
| 7484 | # Format of library name prefix. |
| 7485 | libname_spec=$lt_libname_spec |
| 7486 | |
| 7487 | # List of archive names. First name is the real one, the rest are links. |
| 7488 | # The last name is the one that the linker finds with -lNAME. |
| 7489 | library_names_spec=$lt_library_names_spec |
| 7490 | |
| 7491 | # The coded name of the library, if different from the real name. |
| 7492 | soname_spec=$lt_soname_spec |
| 7493 | |
| 7494 | # Commands used to build and install an old-style archive. |
| 7495 | RANLIB=$lt_RANLIB |
| 7496 | old_archive_cmds=$lt_old_archive_cmds |
| 7497 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 7498 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 7499 | |
| 7500 | # Create an old-style archive from a shared archive. |
| 7501 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 7502 | |
| 7503 | # Create a temporary old-style archive to link instead of a shared archive. |
| 7504 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 7505 | |
| 7506 | # Commands used to build and install a shared archive. |
| 7507 | archive_cmds=$lt_archive_cmds |
| 7508 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 7509 | postinstall_cmds=$lt_postinstall_cmds |
| 7510 | postuninstall_cmds=$lt_postuninstall_cmds |
| 7511 | |
| 7512 | # Commands to strip libraries. |
| 7513 | old_striplib=$lt_old_striplib |
| 7514 | striplib=$lt_striplib |
| 7515 | |
| 7516 | # Method to check whether dependent libraries are shared objects. |
| 7517 | deplibs_check_method=$lt_deplibs_check_method |
| 7518 | |
| 7519 | # Command to use when deplibs_check_method == file_magic. |
| 7520 | file_magic_cmd=$lt_file_magic_cmd |
| 7521 | |
| 7522 | # Flag that allows shared libraries with undefined symbols to be built. |
| 7523 | allow_undefined_flag=$lt_allow_undefined_flag |
| 7524 | |
| 7525 | # Flag that forces no undefined symbols. |
| 7526 | no_undefined_flag=$lt_no_undefined_flag |
| 7527 | |
| 7528 | # Commands used to finish a libtool library installation in a directory. |
| 7529 | finish_cmds=$lt_finish_cmds |
| 7530 | |
| 7531 | # Same as above, but a single script fragment to be evaled but not shown. |
| 7532 | finish_eval=$lt_finish_eval |
| 7533 | |
| 7534 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 7535 | global_symbol_pipe=$lt_global_symbol_pipe |
| 7536 | |
| 7537 | # Transform the output of nm in a proper C declaration |
| 7538 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
| 7539 | |
| 7540 | # Transform the output of nm in a C name address pair |
| 7541 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
| 7542 | |
| 7543 | # This is the shared library runtime path variable. |
| 7544 | runpath_var=$runpath_var |
| 7545 | |
| 7546 | # This is the shared library path variable. |
| 7547 | shlibpath_var=$shlibpath_var |
| 7548 | |
| 7549 | # Is shlibpath searched before the hard-coded library search path? |
| 7550 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 7551 | |
| 7552 | # How to hardcode a shared library path into an executable. |
| 7553 | hardcode_action=$hardcode_action |
| 7554 | |
| 7555 | # Whether we should hardcode library paths into libraries. |
| 7556 | hardcode_into_libs=$hardcode_into_libs |
| 7557 | |
| 7558 | # Flag to hardcode \$libdir into a binary during linking. |
| 7559 | # This must work even if \$libdir does not exist. |
| 7560 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 7561 | |
| 7562 | # Whether we need a single -rpath flag with a separated argument. |
| 7563 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 7564 | |
| 7565 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 7566 | # resulting binary. |
| 7567 | hardcode_direct=$hardcode_direct |
| 7568 | |
| 7569 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 7570 | # resulting binary. |
| 7571 | hardcode_minus_L=$hardcode_minus_L |
| 7572 | |
| 7573 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 7574 | # the resulting binary. |
| 7575 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 7576 | |
| 7577 | # Variables whose values should be saved in libtool wrapper scripts and |
| 7578 | # restored at relink time. |
| 7579 | variables_saved_for_relink="$variables_saved_for_relink" |
| 7580 | |
| 7581 | # Whether libtool must link a program against all its dependency libraries. |
| 7582 | link_all_deplibs=$link_all_deplibs |
| 7583 | |
| 7584 | # Compile-time system search path for libraries |
| 7585 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 7586 | |
| 7587 | # Run-time system search path for libraries |
| 7588 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 7589 | |
| 7590 | # Fix the shell variable \$srcfile for the compiler. |
| 7591 | fix_srcfile_path="$fix_srcfile_path" |
| 7592 | |
| 7593 | # Set to yes if exported symbols are required. |
| 7594 | always_export_symbols=$always_export_symbols |
| 7595 | |
| 7596 | # The commands to list exported symbols. |
| 7597 | export_symbols_cmds=$lt_export_symbols_cmds |
| 7598 | |
| 7599 | # The commands to extract the exported symbol list from a shared archive. |
| 7600 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 7601 | |
| 7602 | # Symbols that should not be listed in the preloaded symbols. |
| 7603 | exclude_expsyms=$lt_exclude_expsyms |
| 7604 | |
| 7605 | # Symbols that must always be exported. |
| 7606 | include_expsyms=$lt_include_expsyms |
| 7607 | |
| 7608 | # ### END LIBTOOL CONFIG |
| 7609 | |
| 7610 | __EOF__ |
| 7611 | |
| 7612 | case $host_os in |
| 7613 | aix3*) |
| 7614 | cat <<\EOF >> "${ofile}T" |
| 7615 | |
| 7616 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7617 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7618 | # vanish in a puff of smoke. |
| 7619 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7620 | COLLECT_NAMES= |
| 7621 | export COLLECT_NAMES |
| 7622 | fi |
| 7623 | EOF |
| 7624 | ;; |
| 7625 | esac |
| 7626 | |
| 7627 | case $host_os in |
| 7628 | cygwin* | mingw* | pw32* | os2*) |
| 7629 | cat <<'EOF' >> "${ofile}T" |
| 7630 | # This is a source program that is used to create dlls on Windows |
| 7631 | # Don't remove nor modify the starting and closing comments |
| 7632 | # /* ltdll.c starts here */ |
| 7633 | # #define WIN32_LEAN_AND_MEAN |
| 7634 | # #include <windows.h> |
| 7635 | # #undef WIN32_LEAN_AND_MEAN |
| 7636 | # #include <stdio.h> |
| 7637 | # |
| 7638 | # #ifndef __CYGWIN__ |
| 7639 | # # ifdef __CYGWIN32__ |
| 7640 | # # define __CYGWIN__ __CYGWIN32__ |
| 7641 | # # endif |
| 7642 | # #endif |
| 7643 | # |
| 7644 | # #ifdef __cplusplus |
| 7645 | # extern "C" { |
| 7646 | # #endif |
| 7647 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 7648 | # #ifdef __cplusplus |
| 7649 | # } |
| 7650 | # #endif |
| 7651 | # |
| 7652 | # #ifdef __CYGWIN__ |
| 7653 | # #include <cygwin/cygwin_dll.h> |
| 7654 | # DECLARE_CYGWIN_DLL( DllMain ); |
| 7655 | # #endif |
| 7656 | # HINSTANCE __hDllInstance_base; |
| 7657 | # |
| 7658 | # BOOL APIENTRY |
| 7659 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 7660 | # { |
| 7661 | # __hDllInstance_base = hInst; |
| 7662 | # return TRUE; |
| 7663 | # } |
| 7664 | # /* ltdll.c ends here */ |
| 7665 | # This is a source program that is used to create import libraries |
| 7666 | # on Windows for dlls which lack them. Don't remove nor modify the |
| 7667 | # starting and closing comments |
| 7668 | # /* impgen.c starts here */ |
| 7669 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
| 7670 | # |
| 7671 | # This file is part of GNU libtool. |
| 7672 | # |
| 7673 | # This program is free software; you can redistribute it and/or modify |
| 7674 | # it under the terms of the GNU General Public License as published by |
| 7675 | # the Free Software Foundation; either version 2 of the License, or |
| 7676 | # (at your option) any later version. |
| 7677 | # |
| 7678 | # This program is distributed in the hope that it will be useful, |
| 7679 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7680 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 7681 | # GNU General Public License for more details. |
| 7682 | # |
| 7683 | # You should have received a copy of the GNU General Public License |
| 7684 | # along with this program; if not, write to the Free Software |
| 7685 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7686 | # */ |
| 7687 | # |
| 7688 | # #include <stdio.h> /* for printf() */ |
| 7689 | # #include <unistd.h> /* for open(), lseek(), read() */ |
| 7690 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 7691 | # #include <string.h> /* for strdup() */ |
| 7692 | # |
| 7693 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 7694 | # #ifndef O_BINARY |
| 7695 | # #define O_BINARY 0 |
| 7696 | # #endif |
| 7697 | # |
| 7698 | # static unsigned int |
| 7699 | # pe_get16 (fd, offset) |
| 7700 | # int fd; |
| 7701 | # int offset; |
| 7702 | # { |
| 7703 | # unsigned char b[2]; |
| 7704 | # lseek (fd, offset, SEEK_SET); |
| 7705 | # read (fd, b, 2); |
| 7706 | # return b[0] + (b[1]<<8); |
| 7707 | # } |
| 7708 | # |
| 7709 | # static unsigned int |
| 7710 | # pe_get32 (fd, offset) |
| 7711 | # int fd; |
| 7712 | # int offset; |
| 7713 | # { |
| 7714 | # unsigned char b[4]; |
| 7715 | # lseek (fd, offset, SEEK_SET); |
| 7716 | # read (fd, b, 4); |
| 7717 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7718 | # } |
| 7719 | # |
| 7720 | # static unsigned int |
| 7721 | # pe_as32 (ptr) |
| 7722 | # void *ptr; |
| 7723 | # { |
| 7724 | # unsigned char *b = ptr; |
| 7725 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7726 | # } |
| 7727 | # |
| 7728 | # int |
| 7729 | # main (argc, argv) |
| 7730 | # int argc; |
| 7731 | # char *argv[]; |
| 7732 | # { |
| 7733 | # int dll; |
| 7734 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 7735 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 7736 | # unsigned long name_rvas, nexp; |
| 7737 | # unsigned char *expdata, *erva; |
| 7738 | # char *filename, *dll_name; |
| 7739 | # |
| 7740 | # filename = argv[1]; |
| 7741 | # |
| 7742 | # dll = open(filename, O_RDONLY|O_BINARY); |
| 7743 | # if (dll < 1) |
| 7744 | # return 1; |
| 7745 | # |
| 7746 | # dll_name = filename; |
| 7747 | # |
| 7748 | # for (i=0; filename[i]; i++) |
| 7749 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 7750 | # dll_name = filename + i +1; |
| 7751 | # |
| 7752 | # pe_header_offset = pe_get32 (dll, 0x3c); |
| 7753 | # opthdr_ofs = pe_header_offset + 4 + 20; |
| 7754 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 7755 | # |
| 7756 | # if (num_entries < 1) /* no exports */ |
| 7757 | # return 1; |
| 7758 | # |
| 7759 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 7760 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 7761 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 7762 | # secptr = (pe_header_offset + 4 + 20 + |
| 7763 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 7764 | # |
| 7765 | # expptr = 0; |
| 7766 | # for (i = 0; i < nsections; i++) |
| 7767 | # { |
| 7768 | # char sname[8]; |
| 7769 | # unsigned long secptr1 = secptr + 40 * i; |
| 7770 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 7771 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 7772 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 7773 | # lseek(dll, secptr1, SEEK_SET); |
| 7774 | # read(dll, sname, 8); |
| 7775 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 7776 | # { |
| 7777 | # expptr = fptr + (export_rva - vaddr); |
| 7778 | # if (export_rva + export_size > vaddr + vsize) |
| 7779 | # export_size = vsize - (export_rva - vaddr); |
| 7780 | # break; |
| 7781 | # } |
| 7782 | # } |
| 7783 | # |
| 7784 | # expdata = (unsigned char*)malloc(export_size); |
| 7785 | # lseek (dll, expptr, SEEK_SET); |
| 7786 | # read (dll, expdata, export_size); |
| 7787 | # erva = expdata - export_rva; |
| 7788 | # |
| 7789 | # nexp = pe_as32 (expdata+24); |
| 7790 | # name_rvas = pe_as32 (expdata+32); |
| 7791 | # |
| 7792 | # printf ("EXPORTS\n"); |
| 7793 | # for (i = 0; i<nexp; i++) |
| 7794 | # { |
| 7795 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 7796 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 7797 | # } |
| 7798 | # |
| 7799 | # return 0; |
| 7800 | # } |
| 7801 | # /* impgen.c ends here */ |
| 7802 | |
| 7803 | EOF |
| 7804 | ;; |
| 7805 | esac |
| 7806 | |
| 7807 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 7808 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 7809 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 7810 | # is reportedly fixed, but why not run on old versions too? |
| 7811 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
| 7812 | |
| 7813 | mv -f "${ofile}T" "$ofile" || \ |
| 7814 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
| 7815 | chmod +x "$ofile" |
| 7816 | fi |
| 7817 | |
| 7818 | |
| 7819 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7820 | |
| 7821 | |
| 7822 | # This can be used to rebuild libtool when needed |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7823 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7824 | |
| 7825 | # Always use our own libtool. |
| 7826 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7827 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7828 | # Prevent multiple expansion |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7829 | |
| 7830 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7831 | |
| 7832 | |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 7833 | # Check whether --enable-static-exec or --disable-static-exec was given. |
| 7834 | if test "${enable_static_exec+set}" = set; then |
| 7835 | enableval="$enable_static_exec" |
| 7836 | EXEC_LDFLAGS="-all-static" |
| 7837 | fi; |
| 7838 | |
| 7839 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7840 | |
jjako | e31b240 | 2004-12-30 23:07:42 +0000 | [diff] [blame] | 7841 | |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 7842 | case "${host}" in |
jjako | e31b240 | 2004-12-30 23:07:42 +0000 | [diff] [blame] | 7843 | i*86-*-linux-gnu*) |
| 7844 | EXEC_LDADD="-Wl,--rpath -Wl,/usr/local/lib" ;; |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 7845 | *solaris*) |
jjako | e31b240 | 2004-12-30 23:07:42 +0000 | [diff] [blame] | 7846 | EXEC_LDADD="-lresolv -lsocket -lnsl" ;; |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 7847 | esac |
| 7848 | |
| 7849 | |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 7850 | |
| 7851 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7852 | # Checks for libraries. |
| 7853 | # FIXME: Replace `main' with a function in `-le': |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 7854 | #AC_CHECK_LIB([e], [main]) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7855 | # FIXME: Replace `main' with a function in `-lgtp': |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 7856 | #AC_CHECK_LIB([gtp], [main]) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7857 | # FIXME: Replace `main' with a function in `-links': |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 7858 | #AC_CHECK_LIB([inks], [main]) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7859 | |
| 7860 | # Checks for header files. |
| 7861 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7862 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 7863 | if test "${ac_cv_header_stdc+set}" = set; then |
| 7864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7865 | else |
| 7866 | cat >conftest.$ac_ext <<_ACEOF |
| 7867 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7868 | /* confdefs.h. */ |
| 7869 | _ACEOF |
| 7870 | cat confdefs.h >>conftest.$ac_ext |
| 7871 | cat >>conftest.$ac_ext <<_ACEOF |
| 7872 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7873 | #include <stdlib.h> |
| 7874 | #include <stdarg.h> |
| 7875 | #include <string.h> |
| 7876 | #include <float.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7877 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7878 | int |
| 7879 | main () |
| 7880 | { |
| 7881 | |
| 7882 | ; |
| 7883 | return 0; |
| 7884 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7885 | _ACEOF |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7886 | rm -f conftest.$ac_objext |
| 7887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7888 | (eval $ac_compile) 2>&5 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7889 | ac_status=$? |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7891 | (exit $ac_status); } && |
| 7892 | { ac_try='test -s conftest.$ac_objext' |
| 7893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7894 | (eval $ac_try) 2>&5 |
| 7895 | ac_status=$? |
| 7896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7897 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7898 | ac_cv_header_stdc=yes |
| 7899 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7900 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7902 | |
| 7903 | ac_cv_header_stdc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7904 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7905 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7906 | |
| 7907 | if test $ac_cv_header_stdc = yes; then |
| 7908 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7909 | cat >conftest.$ac_ext <<_ACEOF |
| 7910 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7911 | /* confdefs.h. */ |
| 7912 | _ACEOF |
| 7913 | cat confdefs.h >>conftest.$ac_ext |
| 7914 | cat >>conftest.$ac_ext <<_ACEOF |
| 7915 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7916 | #include <string.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7917 | |
| 7918 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7919 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7920 | $EGREP "memchr" >/dev/null 2>&1; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7921 | : |
| 7922 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7923 | ac_cv_header_stdc=no |
| 7924 | fi |
| 7925 | rm -f conftest* |
| 7926 | |
| 7927 | fi |
| 7928 | |
| 7929 | if test $ac_cv_header_stdc = yes; then |
| 7930 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7931 | cat >conftest.$ac_ext <<_ACEOF |
| 7932 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7933 | /* confdefs.h. */ |
| 7934 | _ACEOF |
| 7935 | cat confdefs.h >>conftest.$ac_ext |
| 7936 | cat >>conftest.$ac_ext <<_ACEOF |
| 7937 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7938 | #include <stdlib.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7939 | |
| 7940 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7941 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7942 | $EGREP "free" >/dev/null 2>&1; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7943 | : |
| 7944 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7945 | ac_cv_header_stdc=no |
| 7946 | fi |
| 7947 | rm -f conftest* |
| 7948 | |
| 7949 | fi |
| 7950 | |
| 7951 | if test $ac_cv_header_stdc = yes; then |
| 7952 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7953 | if test "$cross_compiling" = yes; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7954 | : |
| 7955 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7956 | cat >conftest.$ac_ext <<_ACEOF |
| 7957 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7958 | /* confdefs.h. */ |
| 7959 | _ACEOF |
| 7960 | cat confdefs.h >>conftest.$ac_ext |
| 7961 | cat >>conftest.$ac_ext <<_ACEOF |
| 7962 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7963 | #include <ctype.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7964 | #if ((' ' & 0x0FF) == 0x020) |
| 7965 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7966 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7967 | #else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 7968 | # define ISLOWER(c) \ |
| 7969 | (('a' <= (c) && (c) <= 'i') \ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7970 | || ('j' <= (c) && (c) <= 'r') \ |
| 7971 | || ('s' <= (c) && (c) <= 'z')) |
| 7972 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7973 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7974 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7975 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7976 | int |
| 7977 | main () |
| 7978 | { |
| 7979 | int i; |
| 7980 | for (i = 0; i < 256; i++) |
| 7981 | if (XOR (islower (i), ISLOWER (i)) |
| 7982 | || toupper (i) != TOUPPER (i)) |
| 7983 | exit(2); |
| 7984 | exit (0); |
| 7985 | } |
| 7986 | _ACEOF |
| 7987 | rm -f conftest$ac_exeext |
| 7988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7989 | (eval $ac_link) 2>&5 |
| 7990 | ac_status=$? |
| 7991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7992 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7994 | (eval $ac_try) 2>&5 |
| 7995 | ac_status=$? |
| 7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7997 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7998 | : |
| 7999 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8000 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8001 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8003 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8004 | ( exit $ac_status ) |
| 8005 | ac_cv_header_stdc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8006 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8007 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8008 | fi |
| 8009 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8010 | fi |
| 8011 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 8012 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8013 | if test $ac_cv_header_stdc = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8014 | |
| 8015 | cat >>confdefs.h <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8016 | #define STDC_HEADERS 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8017 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8018 | |
| 8019 | fi |
| 8020 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8021 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 8022 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 8023 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 8024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8025 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8026 | cat >conftest.$ac_ext <<_ACEOF |
| 8027 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8028 | /* confdefs.h. */ |
| 8029 | _ACEOF |
| 8030 | cat confdefs.h >>conftest.$ac_ext |
| 8031 | cat >>conftest.$ac_ext <<_ACEOF |
| 8032 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8033 | #include <sys/types.h> |
| 8034 | #include <sys/wait.h> |
| 8035 | #ifndef WEXITSTATUS |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8036 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8037 | #endif |
| 8038 | #ifndef WIFEXITED |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8039 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8040 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8041 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8042 | int |
| 8043 | main () |
| 8044 | { |
| 8045 | int s; |
| 8046 | wait (&s); |
| 8047 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 8048 | ; |
| 8049 | return 0; |
| 8050 | } |
| 8051 | _ACEOF |
| 8052 | rm -f conftest.$ac_objext |
| 8053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8054 | (eval $ac_compile) 2>&5 |
| 8055 | ac_status=$? |
| 8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8057 | (exit $ac_status); } && |
| 8058 | { ac_try='test -s conftest.$ac_objext' |
| 8059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8060 | (eval $ac_try) 2>&5 |
| 8061 | ac_status=$? |
| 8062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8063 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8064 | ac_cv_header_sys_wait_h=yes |
| 8065 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8066 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8068 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8069 | ac_cv_header_sys_wait_h=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8070 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8071 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8072 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8073 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 8074 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8075 | if test $ac_cv_header_sys_wait_h = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8076 | |
| 8077 | cat >>confdefs.h <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8078 | #define HAVE_SYS_WAIT_H 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8079 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8080 | |
| 8081 | fi |
| 8082 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8083 | |
| 8084 | |
| 8085 | |
| 8086 | |
| 8087 | |
| 8088 | |
| 8089 | |
| 8090 | |
| 8091 | |
| 8092 | |
| 8093 | |
| 8094 | |
| 8095 | for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8096 | do |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8097 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8099 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8103 | fi |
| 8104 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8105 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8106 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8107 | # Is the header compilable? |
| 8108 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8109 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8110 | cat >conftest.$ac_ext <<_ACEOF |
| 8111 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8112 | /* confdefs.h. */ |
| 8113 | _ACEOF |
| 8114 | cat confdefs.h >>conftest.$ac_ext |
| 8115 | cat >>conftest.$ac_ext <<_ACEOF |
| 8116 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8117 | $ac_includes_default |
| 8118 | #include <$ac_header> |
| 8119 | _ACEOF |
| 8120 | rm -f conftest.$ac_objext |
| 8121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8122 | (eval $ac_compile) 2>&5 |
| 8123 | ac_status=$? |
| 8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8125 | (exit $ac_status); } && |
| 8126 | { ac_try='test -s conftest.$ac_objext' |
| 8127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8128 | (eval $ac_try) 2>&5 |
| 8129 | ac_status=$? |
| 8130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8131 | (exit $ac_status); }; }; then |
| 8132 | ac_header_compiler=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8133 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8134 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8136 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8137 | ac_header_compiler=no |
| 8138 | fi |
| 8139 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8140 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8141 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8142 | |
| 8143 | # Is the header present? |
| 8144 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8145 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8146 | cat >conftest.$ac_ext <<_ACEOF |
| 8147 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8148 | /* confdefs.h. */ |
| 8149 | _ACEOF |
| 8150 | cat confdefs.h >>conftest.$ac_ext |
| 8151 | cat >>conftest.$ac_ext <<_ACEOF |
| 8152 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8153 | #include <$ac_header> |
| 8154 | _ACEOF |
| 8155 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8156 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8157 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8158 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8159 | rm -f conftest.er1 |
| 8160 | cat conftest.err >&5 |
| 8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8162 | (exit $ac_status); } >/dev/null; then |
| 8163 | if test -s conftest.err; then |
| 8164 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8165 | else |
| 8166 | ac_cpp_err= |
| 8167 | fi |
| 8168 | else |
| 8169 | ac_cpp_err=yes |
| 8170 | fi |
| 8171 | if test -z "$ac_cpp_err"; then |
| 8172 | ac_header_preproc=yes |
| 8173 | else |
| 8174 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8176 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8177 | ac_header_preproc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8178 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8179 | rm -f conftest.err conftest.$ac_ext |
| 8180 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8181 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8182 | |
| 8183 | # So? What about this header? |
| 8184 | case $ac_header_compiler:$ac_header_preproc in |
| 8185 | yes:no ) |
| 8186 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8187 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8188 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8189 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8190 | ( |
| 8191 | cat <<\_ASBOX |
| 8192 | ## ------------------------------------ ## |
| 8193 | ## Report this to bug-autoconf@gnu.org. ## |
| 8194 | ## ------------------------------------ ## |
| 8195 | _ASBOX |
| 8196 | ) | |
| 8197 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8198 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8199 | no:yes ) |
| 8200 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8201 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8202 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8203 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8204 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8205 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8206 | ( |
| 8207 | cat <<\_ASBOX |
| 8208 | ## ------------------------------------ ## |
| 8209 | ## Report this to bug-autoconf@gnu.org. ## |
| 8210 | ## ------------------------------------ ## |
| 8211 | _ASBOX |
| 8212 | ) | |
| 8213 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8214 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8215 | esac |
| 8216 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8217 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8220 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8221 | eval "$as_ac_Header=$ac_header_preproc" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8222 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8224 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8225 | |
| 8226 | fi |
| 8227 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8228 | cat >>confdefs.h <<_ACEOF |
| 8229 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8230 | _ACEOF |
| 8231 | |
| 8232 | fi |
| 8233 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8234 | done |
| 8235 | |
| 8236 | |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 8237 | # Check for if header |
| 8238 | |
| 8239 | |
| 8240 | for ac_header in linux/if.h net/if.h |
| 8241 | do |
| 8242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8248 | fi |
| 8249 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8250 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8251 | else |
| 8252 | # Is the header compilable? |
| 8253 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8254 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8255 | cat >conftest.$ac_ext <<_ACEOF |
| 8256 | #line $LINENO "configure" |
| 8257 | /* confdefs.h. */ |
| 8258 | _ACEOF |
| 8259 | cat confdefs.h >>conftest.$ac_ext |
| 8260 | cat >>conftest.$ac_ext <<_ACEOF |
| 8261 | /* end confdefs.h. */ |
| 8262 | $ac_includes_default |
| 8263 | #include <$ac_header> |
| 8264 | _ACEOF |
| 8265 | rm -f conftest.$ac_objext |
| 8266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8267 | (eval $ac_compile) 2>&5 |
| 8268 | ac_status=$? |
| 8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8270 | (exit $ac_status); } && |
| 8271 | { ac_try='test -s conftest.$ac_objext' |
| 8272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8273 | (eval $ac_try) 2>&5 |
| 8274 | ac_status=$? |
| 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8276 | (exit $ac_status); }; }; then |
| 8277 | ac_header_compiler=yes |
| 8278 | else |
| 8279 | echo "$as_me: failed program was:" >&5 |
| 8280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8281 | |
| 8282 | ac_header_compiler=no |
| 8283 | fi |
| 8284 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8285 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8286 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8287 | |
| 8288 | # Is the header present? |
| 8289 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8290 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8291 | cat >conftest.$ac_ext <<_ACEOF |
| 8292 | #line $LINENO "configure" |
| 8293 | /* confdefs.h. */ |
| 8294 | _ACEOF |
| 8295 | cat confdefs.h >>conftest.$ac_ext |
| 8296 | cat >>conftest.$ac_ext <<_ACEOF |
| 8297 | /* end confdefs.h. */ |
| 8298 | #include <$ac_header> |
| 8299 | _ACEOF |
| 8300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8302 | ac_status=$? |
| 8303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8304 | rm -f conftest.er1 |
| 8305 | cat conftest.err >&5 |
| 8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8307 | (exit $ac_status); } >/dev/null; then |
| 8308 | if test -s conftest.err; then |
| 8309 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8310 | else |
| 8311 | ac_cpp_err= |
| 8312 | fi |
| 8313 | else |
| 8314 | ac_cpp_err=yes |
| 8315 | fi |
| 8316 | if test -z "$ac_cpp_err"; then |
| 8317 | ac_header_preproc=yes |
| 8318 | else |
| 8319 | echo "$as_me: failed program was:" >&5 |
| 8320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8321 | |
| 8322 | ac_header_preproc=no |
| 8323 | fi |
| 8324 | rm -f conftest.err conftest.$ac_ext |
| 8325 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8326 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8327 | |
| 8328 | # So? What about this header? |
| 8329 | case $ac_header_compiler:$ac_header_preproc in |
| 8330 | yes:no ) |
| 8331 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8332 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8334 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8335 | ( |
| 8336 | cat <<\_ASBOX |
| 8337 | ## ------------------------------------ ## |
| 8338 | ## Report this to bug-autoconf@gnu.org. ## |
| 8339 | ## ------------------------------------ ## |
| 8340 | _ASBOX |
| 8341 | ) | |
| 8342 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8343 | ;; |
| 8344 | no:yes ) |
| 8345 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8346 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8347 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8348 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8350 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8351 | ( |
| 8352 | cat <<\_ASBOX |
| 8353 | ## ------------------------------------ ## |
| 8354 | ## Report this to bug-autoconf@gnu.org. ## |
| 8355 | ## ------------------------------------ ## |
| 8356 | _ASBOX |
| 8357 | ) | |
| 8358 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8359 | ;; |
| 8360 | esac |
| 8361 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8365 | else |
| 8366 | eval "$as_ac_Header=$ac_header_preproc" |
| 8367 | fi |
| 8368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8369 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8370 | |
| 8371 | fi |
| 8372 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8373 | cat >>confdefs.h <<_ACEOF |
| 8374 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8375 | _ACEOF |
| 8376 | |
| 8377 | fi |
| 8378 | |
| 8379 | done |
| 8380 | |
| 8381 | |
| 8382 | # Check for tun header |
| 8383 | |
| 8384 | |
| 8385 | for ac_header in linux/if_tun.h net/if_tun.h |
| 8386 | do |
| 8387 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8388 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8389 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8390 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8391 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8393 | fi |
| 8394 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8395 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8396 | else |
| 8397 | # Is the header compilable? |
| 8398 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8399 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8400 | cat >conftest.$ac_ext <<_ACEOF |
| 8401 | #line $LINENO "configure" |
| 8402 | /* confdefs.h. */ |
| 8403 | _ACEOF |
| 8404 | cat confdefs.h >>conftest.$ac_ext |
| 8405 | cat >>conftest.$ac_ext <<_ACEOF |
| 8406 | /* end confdefs.h. */ |
| 8407 | $ac_includes_default |
| 8408 | #include <$ac_header> |
| 8409 | _ACEOF |
| 8410 | rm -f conftest.$ac_objext |
| 8411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8412 | (eval $ac_compile) 2>&5 |
| 8413 | ac_status=$? |
| 8414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8415 | (exit $ac_status); } && |
| 8416 | { ac_try='test -s conftest.$ac_objext' |
| 8417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8418 | (eval $ac_try) 2>&5 |
| 8419 | ac_status=$? |
| 8420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8421 | (exit $ac_status); }; }; then |
| 8422 | ac_header_compiler=yes |
| 8423 | else |
| 8424 | echo "$as_me: failed program was:" >&5 |
| 8425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8426 | |
| 8427 | ac_header_compiler=no |
| 8428 | fi |
| 8429 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8431 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8432 | |
| 8433 | # Is the header present? |
| 8434 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8435 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8436 | cat >conftest.$ac_ext <<_ACEOF |
| 8437 | #line $LINENO "configure" |
| 8438 | /* confdefs.h. */ |
| 8439 | _ACEOF |
| 8440 | cat confdefs.h >>conftest.$ac_ext |
| 8441 | cat >>conftest.$ac_ext <<_ACEOF |
| 8442 | /* end confdefs.h. */ |
| 8443 | #include <$ac_header> |
| 8444 | _ACEOF |
| 8445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8447 | ac_status=$? |
| 8448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8449 | rm -f conftest.er1 |
| 8450 | cat conftest.err >&5 |
| 8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8452 | (exit $ac_status); } >/dev/null; then |
| 8453 | if test -s conftest.err; then |
| 8454 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8455 | else |
| 8456 | ac_cpp_err= |
| 8457 | fi |
| 8458 | else |
| 8459 | ac_cpp_err=yes |
| 8460 | fi |
| 8461 | if test -z "$ac_cpp_err"; then |
| 8462 | ac_header_preproc=yes |
| 8463 | else |
| 8464 | echo "$as_me: failed program was:" >&5 |
| 8465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8466 | |
| 8467 | ac_header_preproc=no |
| 8468 | fi |
| 8469 | rm -f conftest.err conftest.$ac_ext |
| 8470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8471 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8472 | |
| 8473 | # So? What about this header? |
| 8474 | case $ac_header_compiler:$ac_header_preproc in |
| 8475 | yes:no ) |
| 8476 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8477 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8479 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8480 | ( |
| 8481 | cat <<\_ASBOX |
| 8482 | ## ------------------------------------ ## |
| 8483 | ## Report this to bug-autoconf@gnu.org. ## |
| 8484 | ## ------------------------------------ ## |
| 8485 | _ASBOX |
| 8486 | ) | |
| 8487 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8488 | ;; |
| 8489 | no:yes ) |
| 8490 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8491 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8492 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8493 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8494 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8495 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8496 | ( |
| 8497 | cat <<\_ASBOX |
| 8498 | ## ------------------------------------ ## |
| 8499 | ## Report this to bug-autoconf@gnu.org. ## |
| 8500 | ## ------------------------------------ ## |
| 8501 | _ASBOX |
| 8502 | ) | |
| 8503 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8504 | ;; |
| 8505 | esac |
| 8506 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8510 | else |
| 8511 | eval "$as_ac_Header=$ac_header_preproc" |
| 8512 | fi |
| 8513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8515 | |
| 8516 | fi |
| 8517 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8518 | cat >>confdefs.h <<_ACEOF |
| 8519 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8520 | _ACEOF |
| 8521 | |
| 8522 | fi |
| 8523 | |
| 8524 | done |
| 8525 | |
| 8526 | |
| 8527 | # Check for netlink and rtnetlink headers |
| 8528 | |
| 8529 | |
| 8530 | for ac_header in linux/netlink.h linux/rtnetlink.h |
| 8531 | do |
| 8532 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8534 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8535 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8538 | fi |
| 8539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8540 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8541 | else |
| 8542 | # Is the header compilable? |
| 8543 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8544 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8545 | cat >conftest.$ac_ext <<_ACEOF |
| 8546 | #line $LINENO "configure" |
| 8547 | /* confdefs.h. */ |
| 8548 | _ACEOF |
| 8549 | cat confdefs.h >>conftest.$ac_ext |
| 8550 | cat >>conftest.$ac_ext <<_ACEOF |
| 8551 | /* end confdefs.h. */ |
| 8552 | $ac_includes_default |
| 8553 | #include <$ac_header> |
| 8554 | _ACEOF |
| 8555 | rm -f conftest.$ac_objext |
| 8556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8557 | (eval $ac_compile) 2>&5 |
| 8558 | ac_status=$? |
| 8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8560 | (exit $ac_status); } && |
| 8561 | { ac_try='test -s conftest.$ac_objext' |
| 8562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8563 | (eval $ac_try) 2>&5 |
| 8564 | ac_status=$? |
| 8565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8566 | (exit $ac_status); }; }; then |
| 8567 | ac_header_compiler=yes |
| 8568 | else |
| 8569 | echo "$as_me: failed program was:" >&5 |
| 8570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8571 | |
| 8572 | ac_header_compiler=no |
| 8573 | fi |
| 8574 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8575 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8576 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8577 | |
| 8578 | # Is the header present? |
| 8579 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8580 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8581 | cat >conftest.$ac_ext <<_ACEOF |
| 8582 | #line $LINENO "configure" |
| 8583 | /* confdefs.h. */ |
| 8584 | _ACEOF |
| 8585 | cat confdefs.h >>conftest.$ac_ext |
| 8586 | cat >>conftest.$ac_ext <<_ACEOF |
| 8587 | /* end confdefs.h. */ |
| 8588 | #include <$ac_header> |
| 8589 | _ACEOF |
| 8590 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8591 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8592 | ac_status=$? |
| 8593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8594 | rm -f conftest.er1 |
| 8595 | cat conftest.err >&5 |
| 8596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8597 | (exit $ac_status); } >/dev/null; then |
| 8598 | if test -s conftest.err; then |
| 8599 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8600 | else |
| 8601 | ac_cpp_err= |
| 8602 | fi |
| 8603 | else |
| 8604 | ac_cpp_err=yes |
| 8605 | fi |
| 8606 | if test -z "$ac_cpp_err"; then |
| 8607 | ac_header_preproc=yes |
| 8608 | else |
| 8609 | echo "$as_me: failed program was:" >&5 |
| 8610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8611 | |
| 8612 | ac_header_preproc=no |
| 8613 | fi |
| 8614 | rm -f conftest.err conftest.$ac_ext |
| 8615 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8616 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8617 | |
| 8618 | # So? What about this header? |
| 8619 | case $ac_header_compiler:$ac_header_preproc in |
| 8620 | yes:no ) |
| 8621 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8622 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8623 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8624 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8625 | ( |
| 8626 | cat <<\_ASBOX |
| 8627 | ## ------------------------------------ ## |
| 8628 | ## Report this to bug-autoconf@gnu.org. ## |
| 8629 | ## ------------------------------------ ## |
| 8630 | _ASBOX |
| 8631 | ) | |
| 8632 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8633 | ;; |
| 8634 | no:yes ) |
| 8635 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8636 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8637 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8638 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8640 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8641 | ( |
| 8642 | cat <<\_ASBOX |
| 8643 | ## ------------------------------------ ## |
| 8644 | ## Report this to bug-autoconf@gnu.org. ## |
| 8645 | ## ------------------------------------ ## |
| 8646 | _ASBOX |
| 8647 | ) | |
| 8648 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8649 | ;; |
| 8650 | esac |
| 8651 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8653 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8655 | else |
| 8656 | eval "$as_ac_Header=$ac_header_preproc" |
| 8657 | fi |
| 8658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8659 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8660 | |
| 8661 | fi |
| 8662 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8663 | cat >>confdefs.h <<_ACEOF |
| 8664 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8665 | _ACEOF |
| 8666 | |
| 8667 | fi |
| 8668 | |
| 8669 | done |
| 8670 | |
| 8671 | |
| 8672 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8673 | # Checks for typedefs, structures, and compiler characteristics. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8674 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8675 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 8676 | if test "${ac_cv_c_const+set}" = set; then |
| 8677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8678 | else |
| 8679 | cat >conftest.$ac_ext <<_ACEOF |
| 8680 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8681 | /* confdefs.h. */ |
| 8682 | _ACEOF |
| 8683 | cat confdefs.h >>conftest.$ac_ext |
| 8684 | cat >>conftest.$ac_ext <<_ACEOF |
| 8685 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8686 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8687 | int |
| 8688 | main () |
| 8689 | { |
| 8690 | /* FIXME: Include the comments suggested by Paul. */ |
| 8691 | #ifndef __cplusplus |
| 8692 | /* Ultrix mips cc rejects this. */ |
| 8693 | typedef int charset[2]; |
| 8694 | const charset x; |
| 8695 | /* SunOS 4.1.1 cc rejects this. */ |
| 8696 | char const *const *ccp; |
| 8697 | char **p; |
| 8698 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8699 | struct point {int x, y;}; |
| 8700 | static struct point const zero = {0,0}; |
| 8701 | /* AIX XL C 1.02.0.0 rejects this. |
| 8702 | It does not let you subtract one const X* pointer from another in |
| 8703 | an arm of an if-expression whose if-part is not a constant |
| 8704 | expression */ |
| 8705 | const char *g = "string"; |
| 8706 | ccp = &g + (g ? g-g : 0); |
| 8707 | /* HPUX 7.0 cc rejects these. */ |
| 8708 | ++ccp; |
| 8709 | p = (char**) ccp; |
| 8710 | ccp = (char const *const *) p; |
| 8711 | { /* SCO 3.2v4 cc rejects this. */ |
| 8712 | char *t; |
| 8713 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8714 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8715 | *t++ = 0; |
| 8716 | } |
| 8717 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8718 | int x[] = {25, 17}; |
| 8719 | const int *foo = &x[0]; |
| 8720 | ++foo; |
| 8721 | } |
| 8722 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8723 | typedef const int *iptr; |
| 8724 | iptr p = 0; |
| 8725 | ++p; |
| 8726 | } |
| 8727 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8728 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8729 | struct s { int j; const int *ap[3]; }; |
| 8730 | struct s *b; b->j = 5; |
| 8731 | } |
| 8732 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8733 | const int foo = 10; |
| 8734 | } |
| 8735 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8736 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8737 | ; |
| 8738 | return 0; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8739 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8740 | _ACEOF |
| 8741 | rm -f conftest.$ac_objext |
| 8742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8743 | (eval $ac_compile) 2>&5 |
| 8744 | ac_status=$? |
| 8745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8746 | (exit $ac_status); } && |
| 8747 | { ac_try='test -s conftest.$ac_objext' |
| 8748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8749 | (eval $ac_try) 2>&5 |
| 8750 | ac_status=$? |
| 8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8752 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8753 | ac_cv_c_const=yes |
| 8754 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8755 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8757 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8758 | ac_cv_c_const=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8759 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8760 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8761 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8762 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8763 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8764 | if test $ac_cv_c_const = no; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8765 | |
| 8766 | cat >>confdefs.h <<\_ACEOF |
| 8767 | #define const |
| 8768 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8769 | |
| 8770 | fi |
| 8771 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8772 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 8773 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 8774 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 8775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8776 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8777 | cat >conftest.$ac_ext <<_ACEOF |
| 8778 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8779 | /* confdefs.h. */ |
| 8780 | _ACEOF |
| 8781 | cat confdefs.h >>conftest.$ac_ext |
| 8782 | cat >>conftest.$ac_ext <<_ACEOF |
| 8783 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8784 | $ac_includes_default |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8785 | int |
| 8786 | main () |
| 8787 | { |
| 8788 | if ((mode_t *) 0) |
| 8789 | return 0; |
| 8790 | if (sizeof (mode_t)) |
| 8791 | return 0; |
| 8792 | ; |
| 8793 | return 0; |
| 8794 | } |
| 8795 | _ACEOF |
| 8796 | rm -f conftest.$ac_objext |
| 8797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8798 | (eval $ac_compile) 2>&5 |
| 8799 | ac_status=$? |
| 8800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8801 | (exit $ac_status); } && |
| 8802 | { ac_try='test -s conftest.$ac_objext' |
| 8803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8804 | (eval $ac_try) 2>&5 |
| 8805 | ac_status=$? |
| 8806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8807 | (exit $ac_status); }; }; then |
| 8808 | ac_cv_type_mode_t=yes |
| 8809 | else |
| 8810 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8812 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8813 | ac_cv_type_mode_t=no |
| 8814 | fi |
| 8815 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8816 | fi |
| 8817 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 8818 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 8819 | if test $ac_cv_type_mode_t = yes; then |
| 8820 | : |
| 8821 | else |
| 8822 | |
| 8823 | cat >>confdefs.h <<_ACEOF |
| 8824 | #define mode_t int |
| 8825 | _ACEOF |
| 8826 | |
| 8827 | fi |
| 8828 | |
| 8829 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 8830 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 8831 | if test "${ac_cv_type_size_t+set}" = set; then |
| 8832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8833 | else |
| 8834 | cat >conftest.$ac_ext <<_ACEOF |
| 8835 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8836 | /* confdefs.h. */ |
| 8837 | _ACEOF |
| 8838 | cat confdefs.h >>conftest.$ac_ext |
| 8839 | cat >>conftest.$ac_ext <<_ACEOF |
| 8840 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8841 | $ac_includes_default |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8842 | int |
| 8843 | main () |
| 8844 | { |
| 8845 | if ((size_t *) 0) |
| 8846 | return 0; |
| 8847 | if (sizeof (size_t)) |
| 8848 | return 0; |
| 8849 | ; |
| 8850 | return 0; |
| 8851 | } |
| 8852 | _ACEOF |
| 8853 | rm -f conftest.$ac_objext |
| 8854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8855 | (eval $ac_compile) 2>&5 |
| 8856 | ac_status=$? |
| 8857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8858 | (exit $ac_status); } && |
| 8859 | { ac_try='test -s conftest.$ac_objext' |
| 8860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8861 | (eval $ac_try) 2>&5 |
| 8862 | ac_status=$? |
| 8863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8864 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8865 | ac_cv_type_size_t=yes |
| 8866 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8867 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8869 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8870 | ac_cv_type_size_t=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8871 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8872 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8873 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8874 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 8875 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 8876 | if test $ac_cv_type_size_t = yes; then |
| 8877 | : |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8878 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8879 | |
| 8880 | cat >>confdefs.h <<_ACEOF |
| 8881 | #define size_t unsigned |
| 8882 | _ACEOF |
| 8883 | |
| 8884 | fi |
| 8885 | |
| 8886 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 8887 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 8888 | if test "${ac_cv_header_time+set}" = set; then |
| 8889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8890 | else |
| 8891 | cat >conftest.$ac_ext <<_ACEOF |
| 8892 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8893 | /* confdefs.h. */ |
| 8894 | _ACEOF |
| 8895 | cat confdefs.h >>conftest.$ac_ext |
| 8896 | cat >>conftest.$ac_ext <<_ACEOF |
| 8897 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8898 | #include <sys/types.h> |
| 8899 | #include <sys/time.h> |
| 8900 | #include <time.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8901 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8902 | int |
| 8903 | main () |
| 8904 | { |
| 8905 | if ((struct tm *) 0) |
| 8906 | return 0; |
| 8907 | ; |
| 8908 | return 0; |
| 8909 | } |
| 8910 | _ACEOF |
| 8911 | rm -f conftest.$ac_objext |
| 8912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8913 | (eval $ac_compile) 2>&5 |
| 8914 | ac_status=$? |
| 8915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8916 | (exit $ac_status); } && |
| 8917 | { ac_try='test -s conftest.$ac_objext' |
| 8918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8919 | (eval $ac_try) 2>&5 |
| 8920 | ac_status=$? |
| 8921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8922 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8923 | ac_cv_header_time=yes |
| 8924 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8925 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 8926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8927 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8928 | ac_cv_header_time=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8929 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8930 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8931 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8932 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 8933 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8934 | if test $ac_cv_header_time = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8935 | |
| 8936 | cat >>confdefs.h <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8937 | #define TIME_WITH_SYS_TIME 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8938 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8939 | |
| 8940 | fi |
| 8941 | |
| 8942 | |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 8943 | # check for ifaliasreq |
| 8944 | echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5 |
| 8945 | echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6 |
| 8946 | |
| 8947 | |
| 8948 | cat >conftest.$ac_ext <<_ACEOF |
| 8949 | #line $LINENO "configure" |
| 8950 | /* confdefs.h. */ |
| 8951 | _ACEOF |
| 8952 | cat confdefs.h >>conftest.$ac_ext |
| 8953 | cat >>conftest.$ac_ext <<_ACEOF |
| 8954 | /* end confdefs.h. */ |
| 8955 | #include <net/if.h> |
| 8956 | |
| 8957 | _ACEOF |
| 8958 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8959 | $EGREP "ifaliasreq" >/dev/null 2>&1; then |
| 8960 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8961 | echo "${ECHO_T}yes" >&6 |
| 8962 | cat >>confdefs.h <<\_ACEOF |
| 8963 | #define HAVE_IFALIASREQ 1 |
| 8964 | _ACEOF |
| 8965 | |
| 8966 | else |
| 8967 | echo "$as_me:$LINENO: result: no" >&5 |
| 8968 | echo "${ECHO_T}no" >&6 |
| 8969 | fi |
| 8970 | rm -f conftest* |
| 8971 | |
| 8972 | |
| 8973 | # check for ifreq.ifru_netmask |
| 8974 | echo "$as_me:$LINENO: checking whether struct ifreq.ifru_netmask exist" >&5 |
| 8975 | echo $ECHO_N "checking whether struct ifreq.ifru_netmask exist... $ECHO_C" >&6 |
| 8976 | |
| 8977 | |
| 8978 | cat >conftest.$ac_ext <<_ACEOF |
| 8979 | #line $LINENO "configure" |
| 8980 | /* confdefs.h. */ |
| 8981 | _ACEOF |
| 8982 | cat confdefs.h >>conftest.$ac_ext |
| 8983 | cat >>conftest.$ac_ext <<_ACEOF |
| 8984 | /* end confdefs.h. */ |
| 8985 | #include <linux/if.h> |
| 8986 | |
| 8987 | _ACEOF |
| 8988 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8989 | $EGREP "ifru_netmask" >/dev/null 2>&1; then |
| 8990 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8991 | echo "${ECHO_T}yes" >&6 |
| 8992 | cat >>confdefs.h <<\_ACEOF |
| 8993 | #define HAVE_IFREQ_IFRU_NETMASK 1 |
| 8994 | _ACEOF |
| 8995 | |
| 8996 | else |
| 8997 | echo "$as_me:$LINENO: result: no" >&5 |
| 8998 | echo "${ECHO_T}no" >&6 |
| 8999 | fi |
| 9000 | rm -f conftest* |
| 9001 | |
| 9002 | |
| 9003 | |
| 9004 | # check for rt_msghdr |
| 9005 | echo "$as_me:$LINENO: checking whether struct rt_msghdr exist" >&5 |
| 9006 | echo $ECHO_N "checking whether struct rt_msghdr exist... $ECHO_C" >&6 |
| 9007 | |
| 9008 | |
| 9009 | cat >conftest.$ac_ext <<_ACEOF |
| 9010 | #line $LINENO "configure" |
| 9011 | /* confdefs.h. */ |
| 9012 | _ACEOF |
| 9013 | cat confdefs.h >>conftest.$ac_ext |
| 9014 | cat >>conftest.$ac_ext <<_ACEOF |
| 9015 | /* end confdefs.h. */ |
| 9016 | #include <net/route.h> |
| 9017 | |
| 9018 | _ACEOF |
| 9019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9020 | $EGREP "rt_msghdr" >/dev/null 2>&1; then |
| 9021 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9022 | echo "${ECHO_T}yes" >&6 |
| 9023 | cat >>confdefs.h <<\_ACEOF |
| 9024 | #define HAVE_RT_MSGHDR 1 |
| 9025 | _ACEOF |
| 9026 | |
| 9027 | else |
| 9028 | echo "$as_me:$LINENO: result: no" >&5 |
| 9029 | echo "${ECHO_T}no" >&6 |
| 9030 | fi |
| 9031 | rm -f conftest* |
| 9032 | |
| 9033 | |
| 9034 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9035 | # Checks for library functions. |
| 9036 | if test $ac_cv_c_compiler_gnu = yes; then |
| 9037 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 9038 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 9039 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 9040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9041 | else |
| 9042 | ac_pattern="Autoconf.*'x'" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9043 | cat >conftest.$ac_ext <<_ACEOF |
| 9044 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9045 | /* confdefs.h. */ |
| 9046 | _ACEOF |
| 9047 | cat confdefs.h >>conftest.$ac_ext |
| 9048 | cat >>conftest.$ac_ext <<_ACEOF |
| 9049 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9050 | #include <sgtty.h> |
| 9051 | Autoconf TIOCGETP |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9052 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9054 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9055 | ac_cv_prog_gcc_traditional=yes |
| 9056 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9057 | ac_cv_prog_gcc_traditional=no |
| 9058 | fi |
| 9059 | rm -f conftest* |
| 9060 | |
| 9061 | |
| 9062 | if test $ac_cv_prog_gcc_traditional = no; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9063 | cat >conftest.$ac_ext <<_ACEOF |
| 9064 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9065 | /* confdefs.h. */ |
| 9066 | _ACEOF |
| 9067 | cat confdefs.h >>conftest.$ac_ext |
| 9068 | cat >>conftest.$ac_ext <<_ACEOF |
| 9069 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9070 | #include <termio.h> |
| 9071 | Autoconf TCGETA |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9072 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9073 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9074 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9075 | ac_cv_prog_gcc_traditional=yes |
| 9076 | fi |
| 9077 | rm -f conftest* |
| 9078 | |
| 9079 | fi |
| 9080 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9081 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 9082 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9083 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 9084 | CC="$CC -traditional" |
| 9085 | fi |
| 9086 | fi |
| 9087 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9088 | |
| 9089 | for ac_header in stdlib.h |
| 9090 | do |
| 9091 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9092 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9093 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9094 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9095 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9097 | fi |
| 9098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9099 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9100 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9101 | # Is the header compilable? |
| 9102 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9103 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9104 | cat >conftest.$ac_ext <<_ACEOF |
| 9105 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9106 | /* confdefs.h. */ |
| 9107 | _ACEOF |
| 9108 | cat confdefs.h >>conftest.$ac_ext |
| 9109 | cat >>conftest.$ac_ext <<_ACEOF |
| 9110 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9111 | $ac_includes_default |
| 9112 | #include <$ac_header> |
| 9113 | _ACEOF |
| 9114 | rm -f conftest.$ac_objext |
| 9115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9116 | (eval $ac_compile) 2>&5 |
| 9117 | ac_status=$? |
| 9118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9119 | (exit $ac_status); } && |
| 9120 | { ac_try='test -s conftest.$ac_objext' |
| 9121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9122 | (eval $ac_try) 2>&5 |
| 9123 | ac_status=$? |
| 9124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9125 | (exit $ac_status); }; }; then |
| 9126 | ac_header_compiler=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9127 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9128 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9130 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9131 | ac_header_compiler=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9132 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9133 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9134 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9135 | echo "${ECHO_T}$ac_header_compiler" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9136 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9137 | # Is the header present? |
| 9138 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9139 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9140 | cat >conftest.$ac_ext <<_ACEOF |
| 9141 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9142 | /* confdefs.h. */ |
| 9143 | _ACEOF |
| 9144 | cat confdefs.h >>conftest.$ac_ext |
| 9145 | cat >>conftest.$ac_ext <<_ACEOF |
| 9146 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9147 | #include <$ac_header> |
| 9148 | _ACEOF |
| 9149 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9150 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9151 | ac_status=$? |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9152 | grep -v '^ *+' conftest.er1 >conftest.err |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9153 | rm -f conftest.er1 |
| 9154 | cat conftest.err >&5 |
| 9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9156 | (exit $ac_status); } >/dev/null; then |
| 9157 | if test -s conftest.err; then |
| 9158 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9159 | else |
| 9160 | ac_cpp_err= |
| 9161 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9162 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9163 | ac_cpp_err=yes |
| 9164 | fi |
| 9165 | if test -z "$ac_cpp_err"; then |
| 9166 | ac_header_preproc=yes |
| 9167 | else |
| 9168 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9170 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9171 | ac_header_preproc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9172 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9173 | rm -f conftest.err conftest.$ac_ext |
| 9174 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9175 | echo "${ECHO_T}$ac_header_preproc" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9176 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9177 | # So? What about this header? |
| 9178 | case $ac_header_compiler:$ac_header_preproc in |
| 9179 | yes:no ) |
| 9180 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9181 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9184 | ( |
| 9185 | cat <<\_ASBOX |
| 9186 | ## ------------------------------------ ## |
| 9187 | ## Report this to bug-autoconf@gnu.org. ## |
| 9188 | ## ------------------------------------ ## |
| 9189 | _ASBOX |
| 9190 | ) | |
| 9191 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9192 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9193 | no:yes ) |
| 9194 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9195 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9196 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9197 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9198 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9199 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9200 | ( |
| 9201 | cat <<\_ASBOX |
| 9202 | ## ------------------------------------ ## |
| 9203 | ## Report this to bug-autoconf@gnu.org. ## |
| 9204 | ## ------------------------------------ ## |
| 9205 | _ASBOX |
| 9206 | ) | |
| 9207 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9208 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9209 | esac |
| 9210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9214 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9215 | eval "$as_ac_Header=$ac_header_preproc" |
| 9216 | fi |
| 9217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9219 | |
| 9220 | fi |
| 9221 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9222 | cat >>confdefs.h <<_ACEOF |
| 9223 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9224 | _ACEOF |
| 9225 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9226 | fi |
| 9227 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9228 | done |
| 9229 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9230 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
| 9231 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
| 9232 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9234 | else |
| 9235 | if test "$cross_compiling" = yes; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9236 | ac_cv_func_malloc_0_nonnull=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9237 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9238 | cat >conftest.$ac_ext <<_ACEOF |
| 9239 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9240 | /* confdefs.h. */ |
| 9241 | _ACEOF |
| 9242 | cat confdefs.h >>conftest.$ac_ext |
| 9243 | cat >>conftest.$ac_ext <<_ACEOF |
| 9244 | /* end confdefs.h. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9245 | #if STDC_HEADERS || HAVE_STDLIB_H |
| 9246 | # include <stdlib.h> |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9247 | #else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9248 | char *malloc (); |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9249 | #endif |
| 9250 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9251 | int |
| 9252 | main () |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9253 | { |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9254 | exit (malloc (0) ? 0 : 1); |
| 9255 | ; |
| 9256 | return 0; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9257 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9258 | _ACEOF |
| 9259 | rm -f conftest$ac_exeext |
| 9260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9261 | (eval $ac_link) 2>&5 |
| 9262 | ac_status=$? |
| 9263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9264 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9266 | (eval $ac_try) 2>&5 |
| 9267 | ac_status=$? |
| 9268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9269 | (exit $ac_status); }; }; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9270 | ac_cv_func_malloc_0_nonnull=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9271 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9272 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9273 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9275 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9276 | ( exit $ac_status ) |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9277 | ac_cv_func_malloc_0_nonnull=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9278 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9279 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9280 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9281 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9282 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
| 9283 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
| 9284 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9285 | |
| 9286 | cat >>confdefs.h <<\_ACEOF |
| 9287 | #define HAVE_MALLOC 1 |
| 9288 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9289 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9290 | else |
| 9291 | cat >>confdefs.h <<\_ACEOF |
| 9292 | #define HAVE_MALLOC 0 |
| 9293 | _ACEOF |
| 9294 | |
| 9295 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
| 9296 | |
| 9297 | cat >>confdefs.h <<\_ACEOF |
| 9298 | #define malloc rpl_malloc |
| 9299 | _ACEOF |
| 9300 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9301 | fi |
| 9302 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9303 | |
| 9304 | |
jjako | 1d3db97 | 2004-01-16 09:56:56 +0000 | [diff] [blame] | 9305 | # AC_FUNC_MEMCMP |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9306 | |
| 9307 | |
| 9308 | |
| 9309 | |
| 9310 | |
| 9311 | |
| 9312 | |
| 9313 | |
| 9314 | for ac_func in gethostbyname inet_ntoa memset select socket strdup strerror strtol |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9315 | do |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9316 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9317 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9318 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9319 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9321 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9322 | cat >conftest.$ac_ext <<_ACEOF |
| 9323 | #line $LINENO "configure" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9324 | /* confdefs.h. */ |
| 9325 | _ACEOF |
| 9326 | cat confdefs.h >>conftest.$ac_ext |
| 9327 | cat >>conftest.$ac_ext <<_ACEOF |
| 9328 | /* end confdefs.h. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9329 | /* System header to define __stub macros and hopefully few prototypes, |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9330 | which can conflict with char $ac_func (); below. |
| 9331 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9332 | <limits.h> exists even on freestanding compilers. */ |
| 9333 | #ifdef __STDC__ |
| 9334 | # include <limits.h> |
| 9335 | #else |
| 9336 | # include <assert.h> |
| 9337 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9338 | /* Override any gcc2 internal prototype to avoid an error. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9339 | #ifdef __cplusplus |
| 9340 | extern "C" |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9341 | { |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9342 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9343 | /* We use char because int might match the return type of a gcc2 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9344 | builtin and then its argument prototype would still apply. */ |
| 9345 | char $ac_func (); |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9346 | /* The GNU C library defines this for functions which it implements |
| 9347 | to always fail with ENOSYS. Some functions are actually named |
| 9348 | something starting with __ and the normal name is an alias. */ |
| 9349 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9350 | choke me |
| 9351 | #else |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9352 | char (*f) () = $ac_func; |
| 9353 | #endif |
| 9354 | #ifdef __cplusplus |
| 9355 | } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9356 | #endif |
| 9357 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9358 | int |
| 9359 | main () |
| 9360 | { |
| 9361 | return f != $ac_func; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9362 | ; |
| 9363 | return 0; |
| 9364 | } |
| 9365 | _ACEOF |
| 9366 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9368 | (eval $ac_link) 2>&5 |
| 9369 | ac_status=$? |
| 9370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9371 | (exit $ac_status); } && |
| 9372 | { ac_try='test -s conftest$ac_exeext' |
| 9373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9374 | (eval $ac_try) 2>&5 |
| 9375 | ac_status=$? |
| 9376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9377 | (exit $ac_status); }; }; then |
| 9378 | eval "$as_ac_var=yes" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9379 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9380 | echo "$as_me: failed program was:" >&5 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9382 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9383 | eval "$as_ac_var=no" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9384 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9385 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9386 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9388 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9389 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9390 | cat >>confdefs.h <<_ACEOF |
| 9391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9392 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9393 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9394 | fi |
| 9395 | done |
| 9396 | |
| 9397 | |
jjako | 1d3db97 | 2004-01-16 09:56:56 +0000 | [diff] [blame] | 9398 | |
| 9399 | for ac_func in inet_aton inet_addr |
| 9400 | do |
| 9401 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9402 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9403 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9404 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9406 | else |
| 9407 | cat >conftest.$ac_ext <<_ACEOF |
| 9408 | #line $LINENO "configure" |
| 9409 | /* confdefs.h. */ |
| 9410 | _ACEOF |
| 9411 | cat confdefs.h >>conftest.$ac_ext |
| 9412 | cat >>conftest.$ac_ext <<_ACEOF |
| 9413 | /* end confdefs.h. */ |
| 9414 | /* System header to define __stub macros and hopefully few prototypes, |
| 9415 | which can conflict with char $ac_func (); below. |
| 9416 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9417 | <limits.h> exists even on freestanding compilers. */ |
| 9418 | #ifdef __STDC__ |
| 9419 | # include <limits.h> |
| 9420 | #else |
| 9421 | # include <assert.h> |
| 9422 | #endif |
| 9423 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9424 | #ifdef __cplusplus |
| 9425 | extern "C" |
| 9426 | { |
| 9427 | #endif |
| 9428 | /* We use char because int might match the return type of a gcc2 |
| 9429 | builtin and then its argument prototype would still apply. */ |
| 9430 | char $ac_func (); |
| 9431 | /* The GNU C library defines this for functions which it implements |
| 9432 | to always fail with ENOSYS. Some functions are actually named |
| 9433 | something starting with __ and the normal name is an alias. */ |
| 9434 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9435 | choke me |
| 9436 | #else |
| 9437 | char (*f) () = $ac_func; |
| 9438 | #endif |
| 9439 | #ifdef __cplusplus |
| 9440 | } |
| 9441 | #endif |
| 9442 | |
| 9443 | int |
| 9444 | main () |
| 9445 | { |
| 9446 | return f != $ac_func; |
| 9447 | ; |
| 9448 | return 0; |
| 9449 | } |
| 9450 | _ACEOF |
| 9451 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9453 | (eval $ac_link) 2>&5 |
| 9454 | ac_status=$? |
| 9455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9456 | (exit $ac_status); } && |
| 9457 | { ac_try='test -s conftest$ac_exeext' |
| 9458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9459 | (eval $ac_try) 2>&5 |
| 9460 | ac_status=$? |
| 9461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9462 | (exit $ac_status); }; }; then |
| 9463 | eval "$as_ac_var=yes" |
| 9464 | else |
| 9465 | echo "$as_me: failed program was:" >&5 |
| 9466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9467 | |
| 9468 | eval "$as_ac_var=no" |
| 9469 | fi |
| 9470 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9471 | fi |
| 9472 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9473 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9474 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9475 | cat >>confdefs.h <<_ACEOF |
| 9476 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9477 | _ACEOF |
| 9478 | break |
| 9479 | fi |
| 9480 | done |
| 9481 | |
| 9482 | |
| 9483 | # check for getopt in standard library |
| 9484 | # clean out junk possibly left behind by a previous configuration |
| 9485 | rm -f lib/getopt.h |
| 9486 | # Check for getopt_long support |
| 9487 | |
| 9488 | for ac_header in getopt.h |
| 9489 | do |
| 9490 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9492 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9496 | fi |
| 9497 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9498 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9499 | else |
| 9500 | # Is the header compilable? |
| 9501 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9502 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9503 | cat >conftest.$ac_ext <<_ACEOF |
| 9504 | #line $LINENO "configure" |
| 9505 | /* confdefs.h. */ |
| 9506 | _ACEOF |
| 9507 | cat confdefs.h >>conftest.$ac_ext |
| 9508 | cat >>conftest.$ac_ext <<_ACEOF |
| 9509 | /* end confdefs.h. */ |
| 9510 | $ac_includes_default |
| 9511 | #include <$ac_header> |
| 9512 | _ACEOF |
| 9513 | rm -f conftest.$ac_objext |
| 9514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9515 | (eval $ac_compile) 2>&5 |
| 9516 | ac_status=$? |
| 9517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9518 | (exit $ac_status); } && |
| 9519 | { ac_try='test -s conftest.$ac_objext' |
| 9520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9521 | (eval $ac_try) 2>&5 |
| 9522 | ac_status=$? |
| 9523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9524 | (exit $ac_status); }; }; then |
| 9525 | ac_header_compiler=yes |
| 9526 | else |
| 9527 | echo "$as_me: failed program was:" >&5 |
| 9528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9529 | |
| 9530 | ac_header_compiler=no |
| 9531 | fi |
| 9532 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9533 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9534 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9535 | |
| 9536 | # Is the header present? |
| 9537 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9538 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9539 | cat >conftest.$ac_ext <<_ACEOF |
| 9540 | #line $LINENO "configure" |
| 9541 | /* confdefs.h. */ |
| 9542 | _ACEOF |
| 9543 | cat confdefs.h >>conftest.$ac_ext |
| 9544 | cat >>conftest.$ac_ext <<_ACEOF |
| 9545 | /* end confdefs.h. */ |
| 9546 | #include <$ac_header> |
| 9547 | _ACEOF |
| 9548 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9549 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9550 | ac_status=$? |
| 9551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9552 | rm -f conftest.er1 |
| 9553 | cat conftest.err >&5 |
| 9554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9555 | (exit $ac_status); } >/dev/null; then |
| 9556 | if test -s conftest.err; then |
| 9557 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9558 | else |
| 9559 | ac_cpp_err= |
| 9560 | fi |
| 9561 | else |
| 9562 | ac_cpp_err=yes |
| 9563 | fi |
| 9564 | if test -z "$ac_cpp_err"; then |
| 9565 | ac_header_preproc=yes |
| 9566 | else |
| 9567 | echo "$as_me: failed program was:" >&5 |
| 9568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9569 | |
| 9570 | ac_header_preproc=no |
| 9571 | fi |
| 9572 | rm -f conftest.err conftest.$ac_ext |
| 9573 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9574 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9575 | |
| 9576 | # So? What about this header? |
| 9577 | case $ac_header_compiler:$ac_header_preproc in |
| 9578 | yes:no ) |
| 9579 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9580 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9582 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9583 | ( |
| 9584 | cat <<\_ASBOX |
| 9585 | ## ------------------------------------ ## |
| 9586 | ## Report this to bug-autoconf@gnu.org. ## |
| 9587 | ## ------------------------------------ ## |
| 9588 | _ASBOX |
| 9589 | ) | |
| 9590 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9591 | ;; |
| 9592 | no:yes ) |
| 9593 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9594 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9595 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9596 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9597 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9598 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9599 | ( |
| 9600 | cat <<\_ASBOX |
| 9601 | ## ------------------------------------ ## |
| 9602 | ## Report this to bug-autoconf@gnu.org. ## |
| 9603 | ## ------------------------------------ ## |
| 9604 | _ASBOX |
| 9605 | ) | |
| 9606 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9607 | ;; |
| 9608 | esac |
| 9609 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9610 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9611 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9613 | else |
| 9614 | eval "$as_ac_Header=$ac_header_preproc" |
| 9615 | fi |
| 9616 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9617 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9618 | |
| 9619 | fi |
| 9620 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9621 | cat >>confdefs.h <<_ACEOF |
| 9622 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9623 | _ACEOF |
| 9624 | |
| 9625 | fi |
| 9626 | |
| 9627 | done |
| 9628 | |
| 9629 | |
| 9630 | for ac_func in getopt_long |
| 9631 | do |
| 9632 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9633 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9634 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9635 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9637 | else |
| 9638 | cat >conftest.$ac_ext <<_ACEOF |
| 9639 | #line $LINENO "configure" |
| 9640 | /* confdefs.h. */ |
| 9641 | _ACEOF |
| 9642 | cat confdefs.h >>conftest.$ac_ext |
| 9643 | cat >>conftest.$ac_ext <<_ACEOF |
| 9644 | /* end confdefs.h. */ |
| 9645 | /* System header to define __stub macros and hopefully few prototypes, |
| 9646 | which can conflict with char $ac_func (); below. |
| 9647 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9648 | <limits.h> exists even on freestanding compilers. */ |
| 9649 | #ifdef __STDC__ |
| 9650 | # include <limits.h> |
| 9651 | #else |
| 9652 | # include <assert.h> |
| 9653 | #endif |
| 9654 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9655 | #ifdef __cplusplus |
| 9656 | extern "C" |
| 9657 | { |
| 9658 | #endif |
| 9659 | /* We use char because int might match the return type of a gcc2 |
| 9660 | builtin and then its argument prototype would still apply. */ |
| 9661 | char $ac_func (); |
| 9662 | /* The GNU C library defines this for functions which it implements |
| 9663 | to always fail with ENOSYS. Some functions are actually named |
| 9664 | something starting with __ and the normal name is an alias. */ |
| 9665 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9666 | choke me |
| 9667 | #else |
| 9668 | char (*f) () = $ac_func; |
| 9669 | #endif |
| 9670 | #ifdef __cplusplus |
| 9671 | } |
| 9672 | #endif |
| 9673 | |
| 9674 | int |
| 9675 | main () |
| 9676 | { |
| 9677 | return f != $ac_func; |
| 9678 | ; |
| 9679 | return 0; |
| 9680 | } |
| 9681 | _ACEOF |
| 9682 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9684 | (eval $ac_link) 2>&5 |
| 9685 | ac_status=$? |
| 9686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9687 | (exit $ac_status); } && |
| 9688 | { ac_try='test -s conftest$ac_exeext' |
| 9689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9690 | (eval $ac_try) 2>&5 |
| 9691 | ac_status=$? |
| 9692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9693 | (exit $ac_status); }; }; then |
| 9694 | eval "$as_ac_var=yes" |
| 9695 | else |
| 9696 | echo "$as_me: failed program was:" >&5 |
| 9697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9698 | |
| 9699 | eval "$as_ac_var=no" |
| 9700 | fi |
| 9701 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9702 | fi |
| 9703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9704 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9705 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9706 | cat >>confdefs.h <<_ACEOF |
| 9707 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9708 | _ACEOF |
| 9709 | |
| 9710 | else |
| 9711 | # FreeBSD has a gnugetopt library for this |
| 9712 | echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
| 9713 | echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6 |
| 9714 | if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
| 9715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9716 | else |
| 9717 | ac_check_lib_save_LIBS=$LIBS |
| 9718 | LIBS="-lgnugetopt $LIBS" |
| 9719 | cat >conftest.$ac_ext <<_ACEOF |
| 9720 | #line $LINENO "configure" |
| 9721 | /* confdefs.h. */ |
| 9722 | _ACEOF |
| 9723 | cat confdefs.h >>conftest.$ac_ext |
| 9724 | cat >>conftest.$ac_ext <<_ACEOF |
| 9725 | /* end confdefs.h. */ |
| 9726 | |
| 9727 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9728 | #ifdef __cplusplus |
| 9729 | extern "C" |
| 9730 | #endif |
| 9731 | /* We use char because int might match the return type of a gcc2 |
| 9732 | builtin and then its argument prototype would still apply. */ |
| 9733 | char getopt_long (); |
| 9734 | int |
| 9735 | main () |
| 9736 | { |
| 9737 | getopt_long (); |
| 9738 | ; |
| 9739 | return 0; |
| 9740 | } |
| 9741 | _ACEOF |
| 9742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9744 | (eval $ac_link) 2>&5 |
| 9745 | ac_status=$? |
| 9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9747 | (exit $ac_status); } && |
| 9748 | { ac_try='test -s conftest$ac_exeext' |
| 9749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9750 | (eval $ac_try) 2>&5 |
| 9751 | ac_status=$? |
| 9752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9753 | (exit $ac_status); }; }; then |
| 9754 | ac_cv_lib_gnugetopt_getopt_long=yes |
| 9755 | else |
| 9756 | echo "$as_me: failed program was:" >&5 |
| 9757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9758 | |
| 9759 | ac_cv_lib_gnugetopt_getopt_long=no |
| 9760 | fi |
| 9761 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9762 | LIBS=$ac_check_lib_save_LIBS |
| 9763 | fi |
| 9764 | echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
| 9765 | echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6 |
| 9766 | if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
| 9767 | cat >>confdefs.h <<\_ACEOF |
| 9768 | #define HAVE_GETOPT_LONG 1 |
| 9769 | _ACEOF |
| 9770 | |
| 9771 | else |
| 9772 | # use the GNU replacement |
| 9773 | LIBOBJS="$LIBOBJS getopt.$ac_objext" |
| 9774 | LIBOBJS="$LIBOBJS getopt1.$ac_objext" |
| 9775 | ac_config_links="$ac_config_links ggsn/getopt.h:ggsn/gnugetopt.h" |
| 9776 | |
| 9777 | ac_config_links="$ac_config_links sgsnemu/getopt.h:sgsnemu/gnugetopt.h" |
| 9778 | |
| 9779 | fi |
| 9780 | |
| 9781 | fi |
| 9782 | done |
| 9783 | |
| 9784 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9785 | am__api_version="1.6" |
| 9786 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 9787 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9788 | # Just in case |
| 9789 | sleep 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9790 | echo timestamp > conftest.file |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9791 | # Do `set' in a subshell so we don't clobber the current shell's |
| 9792 | # arguments. Must try -L first in case configure is actually a |
| 9793 | # symlink; some systems play weird games with the mod time of symlinks |
| 9794 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 9795 | # directory). |
| 9796 | if ( |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9797 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9798 | if test "$*" = "X"; then |
| 9799 | # -L didn't work. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9800 | set X `ls -t $srcdir/configure conftest.file` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9801 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9802 | rm -f conftest.file |
| 9803 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 9804 | && test "$*" != "X conftest.file $srcdir/configure"; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9805 | |
| 9806 | # If neither matched, then we have a broken ls. This can happen |
| 9807 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 9808 | # broken ls alias from the environment. This has actually |
| 9809 | # happened. Such a system could not be considered "sane". |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9810 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 9811 | alias in your environment" >&5 |
| 9812 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 9813 | alias in your environment" >&2;} |
| 9814 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9815 | fi |
| 9816 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9817 | test "$2" = conftest.file |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9818 | ) |
| 9819 | then |
| 9820 | # Ok. |
| 9821 | : |
| 9822 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9823 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 9824 | Check your system clock" >&5 |
| 9825 | echo "$as_me: error: newly created file is older than distributed files! |
| 9826 | Check your system clock" >&2;} |
| 9827 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9828 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9829 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9830 | echo "${ECHO_T}yes" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9831 | test "$program_prefix" != NONE && |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9832 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9833 | # Use a double $ so make ignores it. |
| 9834 | test "$program_suffix" != NONE && |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9835 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 9836 | # Double any \ or $. echo might interpret backslashes. |
| 9837 | # By default was `s,x,x', remove it if useless. |
| 9838 | cat <<\_ACEOF >conftest.sed |
| 9839 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 9840 | _ACEOF |
| 9841 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 9842 | rm conftest.sed |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9843 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9844 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9845 | # expand $ac_aux_dir to an absolute path |
| 9846 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 9847 | |
| 9848 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 9849 | # Use eval to expand $SHELL |
| 9850 | if eval "$MISSING --run true"; then |
| 9851 | am_missing_run="$MISSING --run " |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9852 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9853 | am_missing_run= |
| 9854 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 9855 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 9856 | fi |
| 9857 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9858 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 9859 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9860 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 9861 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 9862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9863 | else |
| 9864 | cat >conftest.make <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9865 | all: |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9866 | @echo 'ac_maketemp="$(MAKE)"' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9867 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9868 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9869 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9870 | if test -n "$ac_maketemp"; then |
| 9871 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 9872 | else |
| 9873 | eval ac_cv_prog_make_${ac_make}_set=no |
| 9874 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9875 | rm -f conftest.make |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9876 | fi |
| 9877 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9878 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9879 | echo "${ECHO_T}yes" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9880 | SET_MAKE= |
| 9881 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9882 | echo "$as_me:$LINENO: result: no" >&5 |
| 9883 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9884 | SET_MAKE="MAKE=${MAKE-make}" |
| 9885 | fi |
| 9886 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9887 | rm -f .deps 2>/dev/null |
| 9888 | mkdir .deps 2>/dev/null |
| 9889 | if test -d .deps; then |
| 9890 | DEPDIR=.deps |
| 9891 | else |
| 9892 | # MS-DOS does not allow filenames that begin with a dot. |
| 9893 | DEPDIR=_deps |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9894 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9895 | rmdir .deps 2>/dev/null |
| 9896 | |
| 9897 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 9898 | ac_config_commands="$ac_config_commands depfiles" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9899 | |
| 9900 | |
| 9901 | am_make=${MAKE-make} |
| 9902 | cat > confinc << 'END' |
| 9903 | doit: |
| 9904 | @echo done |
| 9905 | END |
| 9906 | # If we don't find an include directive, just comment out the code. |
| 9907 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 9908 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 9909 | am__include="#" |
| 9910 | am__quote= |
| 9911 | _am_result=none |
| 9912 | # First try GNU make style include. |
| 9913 | echo "include confinc" > confmf |
| 9914 | # We grep out `Entering directory' and `Leaving directory' |
| 9915 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 9916 | # In particular we don't look at `^make:' because GNU make might |
| 9917 | # be invoked under some other name (usually "gmake"), in which |
| 9918 | # case it prints its new name instead of `make'. |
| 9919 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| 9920 | am__include=include |
| 9921 | am__quote= |
| 9922 | _am_result=GNU |
| 9923 | fi |
| 9924 | # Now try BSD make style include. |
| 9925 | if test "$am__include" = "#"; then |
| 9926 | echo '.include "confinc"' > confmf |
| 9927 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 9928 | am__include=.include |
| 9929 | am__quote="\"" |
| 9930 | _am_result=BSD |
| 9931 | fi |
| 9932 | fi |
| 9933 | |
| 9934 | |
| 9935 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 9936 | echo "${ECHO_T}$_am_result" >&6 |
| 9937 | rm -f confinc confmf |
| 9938 | |
| 9939 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 9940 | if test "${enable_dependency_tracking+set}" = set; then |
| 9941 | enableval="$enable_dependency_tracking" |
| 9942 | |
| 9943 | fi; |
| 9944 | if test "x$enable_dependency_tracking" != xno; then |
| 9945 | am_depcomp="$ac_aux_dir/depcomp" |
| 9946 | AMDEPBACKSLASH='\' |
| 9947 | fi |
| 9948 | |
| 9949 | |
| 9950 | if test "x$enable_dependency_tracking" != xno; then |
| 9951 | AMDEP_TRUE= |
| 9952 | AMDEP_FALSE='#' |
| 9953 | else |
| 9954 | AMDEP_TRUE='#' |
| 9955 | AMDEP_FALSE= |
| 9956 | fi |
| 9957 | |
| 9958 | |
| 9959 | |
| 9960 | # test to see if srcdir already configured |
| 9961 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 9962 | test -f $srcdir/config.status; then |
| 9963 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 9964 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 9965 | { (exit 1); exit 1; }; } |
| 9966 | fi |
| 9967 | |
| 9968 | # Define the identity of the package. |
| 9969 | PACKAGE=openggsn |
jjako | a24c7ec | 2004-12-30 23:37:18 +0000 | [diff] [blame^] | 9970 | VERSION=0.84 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9971 | |
| 9972 | |
| 9973 | cat >>confdefs.h <<_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9974 | #define PACKAGE "$PACKAGE" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9975 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9976 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9977 | |
| 9978 | cat >>confdefs.h <<_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9979 | #define VERSION "$VERSION" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9980 | _ACEOF |
| 9981 | |
| 9982 | # Some tools Automake needs. |
| 9983 | |
| 9984 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9985 | |
| 9986 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9987 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9988 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9989 | |
| 9990 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 9991 | |
| 9992 | |
| 9993 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 9994 | |
| 9995 | |
| 9996 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 9997 | |
| 9998 | |
| 9999 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 10000 | |
| 10001 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 10002 | |
| 10003 | # Installed binaries are usually stripped using `strip' when the user |
| 10004 | # run `make install-strip'. However `strip' might not be the right |
| 10005 | # tool to use in cross-compilation environments, therefore Automake |
| 10006 | # will honor the `STRIP' environment variable to overrule this program. |
| 10007 | if test "$cross_compiling" != no; then |
| 10008 | if test -n "$ac_tool_prefix"; then |
| 10009 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 10010 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 10011 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10013 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 10014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10015 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10016 | if test -n "$STRIP"; then |
| 10017 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10018 | else |
| 10019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10020 | for as_dir in $PATH |
| 10021 | do |
| 10022 | IFS=$as_save_IFS |
| 10023 | test -z "$as_dir" && as_dir=. |
| 10024 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10025 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10026 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 10027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10028 | break 2 |
| 10029 | fi |
| 10030 | done |
| 10031 | done |
| 10032 | |
| 10033 | fi |
| 10034 | fi |
| 10035 | STRIP=$ac_cv_prog_STRIP |
| 10036 | if test -n "$STRIP"; then |
| 10037 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 10038 | echo "${ECHO_T}$STRIP" >&6 |
| 10039 | else |
| 10040 | echo "$as_me:$LINENO: result: no" >&5 |
| 10041 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10042 | fi |
| 10043 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10044 | fi |
| 10045 | if test -z "$ac_cv_prog_STRIP"; then |
| 10046 | ac_ct_STRIP=$STRIP |
| 10047 | # Extract the first word of "strip", so it can be a program name with args. |
| 10048 | set dummy strip; ac_word=$2 |
| 10049 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10051 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 10052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10053 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10054 | if test -n "$ac_ct_STRIP"; then |
| 10055 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 10056 | else |
| 10057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10058 | for as_dir in $PATH |
| 10059 | do |
| 10060 | IFS=$as_save_IFS |
| 10061 | test -z "$as_dir" && as_dir=. |
| 10062 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10063 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10064 | ac_cv_prog_ac_ct_STRIP="strip" |
| 10065 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10066 | break 2 |
| 10067 | fi |
| 10068 | done |
| 10069 | done |
| 10070 | |
| 10071 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 10072 | fi |
| 10073 | fi |
| 10074 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 10075 | if test -n "$ac_ct_STRIP"; then |
| 10076 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 10077 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 10078 | else |
| 10079 | echo "$as_me:$LINENO: result: no" >&5 |
| 10080 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10081 | fi |
| 10082 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10083 | STRIP=$ac_ct_STRIP |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10084 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10085 | STRIP="$ac_cv_prog_STRIP" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10086 | fi |
| 10087 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10088 | fi |
| 10089 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 10090 | |
| 10091 | # We need awk for the "check" target. The system "awk" is bad on |
| 10092 | # some platforms. |
| 10093 | |
| 10094 | |
| 10095 | depcc="$CC" am_compiler_list= |
| 10096 | |
| 10097 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 10098 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 10099 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 10100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10101 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10102 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 10103 | # We make a subdir and do the tests there. Otherwise we can end up |
| 10104 | # making bogus files that we don't know about and never remove. For |
| 10105 | # instance it was reported that on HP-UX the gcc test will end up |
| 10106 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 10107 | # in D'. |
| 10108 | mkdir conftest.dir |
| 10109 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 10110 | # using a relative directory. |
| 10111 | cp "$am_depcomp" conftest.dir |
| 10112 | cd conftest.dir |
| 10113 | |
| 10114 | am_cv_CC_dependencies_compiler_type=none |
| 10115 | if test "$am_compiler_list" = ""; then |
| 10116 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 10117 | fi |
| 10118 | for depmode in $am_compiler_list; do |
| 10119 | # We need to recreate these files for each test, as the compiler may |
| 10120 | # overwrite some of them when testing with obscure command lines. |
| 10121 | # This happens at least with the AIX C compiler. |
| 10122 | echo '#include "conftest.h"' > conftest.c |
| 10123 | echo 'int i;' > conftest.h |
| 10124 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 10125 | |
| 10126 | case $depmode in |
| 10127 | nosideeffect) |
| 10128 | # after this tag, mechanisms are not by side-effect, so they'll |
| 10129 | # only be used when explicitly requested |
| 10130 | if test "x$enable_dependency_tracking" = xyes; then |
| 10131 | continue |
| 10132 | else |
| 10133 | break |
| 10134 | fi |
| 10135 | ;; |
| 10136 | none) break ;; |
| 10137 | esac |
| 10138 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 10139 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 10140 | # handle `-M -o', and we need to detect this. |
| 10141 | if depmode=$depmode \ |
| 10142 | source=conftest.c object=conftest.o \ |
| 10143 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 10144 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 10145 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 10146 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 10147 | am_cv_CC_dependencies_compiler_type=$depmode |
| 10148 | break |
| 10149 | fi |
| 10150 | done |
| 10151 | |
| 10152 | cd .. |
| 10153 | rm -rf conftest.dir |
| 10154 | else |
| 10155 | am_cv_CC_dependencies_compiler_type=none |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10156 | fi |
| 10157 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10158 | fi |
| 10159 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 10160 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 10161 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 10162 | |
| 10163 | |
| 10164 | depcc="$CXX" am_compiler_list= |
| 10165 | |
| 10166 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 10167 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 10168 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 10169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10170 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10171 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 10172 | # We make a subdir and do the tests there. Otherwise we can end up |
| 10173 | # making bogus files that we don't know about and never remove. For |
| 10174 | # instance it was reported that on HP-UX the gcc test will end up |
| 10175 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 10176 | # in D'. |
| 10177 | mkdir conftest.dir |
| 10178 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 10179 | # using a relative directory. |
| 10180 | cp "$am_depcomp" conftest.dir |
| 10181 | cd conftest.dir |
| 10182 | |
| 10183 | am_cv_CXX_dependencies_compiler_type=none |
| 10184 | if test "$am_compiler_list" = ""; then |
| 10185 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 10186 | fi |
| 10187 | for depmode in $am_compiler_list; do |
| 10188 | # We need to recreate these files for each test, as the compiler may |
| 10189 | # overwrite some of them when testing with obscure command lines. |
| 10190 | # This happens at least with the AIX C compiler. |
| 10191 | echo '#include "conftest.h"' > conftest.c |
| 10192 | echo 'int i;' > conftest.h |
| 10193 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 10194 | |
| 10195 | case $depmode in |
| 10196 | nosideeffect) |
| 10197 | # after this tag, mechanisms are not by side-effect, so they'll |
| 10198 | # only be used when explicitly requested |
| 10199 | if test "x$enable_dependency_tracking" = xyes; then |
| 10200 | continue |
| 10201 | else |
| 10202 | break |
| 10203 | fi |
| 10204 | ;; |
| 10205 | none) break ;; |
| 10206 | esac |
| 10207 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 10208 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 10209 | # handle `-M -o', and we need to detect this. |
| 10210 | if depmode=$depmode \ |
| 10211 | source=conftest.c object=conftest.o \ |
| 10212 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 10213 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 10214 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 10215 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 10216 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 10217 | break |
| 10218 | fi |
| 10219 | done |
| 10220 | |
| 10221 | cd .. |
| 10222 | rm -rf conftest.dir |
| 10223 | else |
| 10224 | am_cv_CXX_dependencies_compiler_type=none |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10225 | fi |
| 10226 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10227 | fi |
| 10228 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 10229 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 10230 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10231 | |
| 10232 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10233 | |
| 10234 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10235 | ac_config_files="$ac_config_files Makefile doc/Makefile ggsn/Makefile gtp/Makefile intl/Makefile po/Makefile sgsnemu/Makefile src/Makefile tests/Makefile openggsn.spec" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10236 | |
| 10237 | cat >confcache <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10238 | # This file is a shell script that caches the results of configure |
| 10239 | # tests run on this system so they can be shared between configure |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10240 | # scripts and configure runs, see configure's option --config-cache. |
| 10241 | # It is not useful on other systems. If it contains results you don't |
| 10242 | # want to keep, you may remove or edit it. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10243 | # |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10244 | # config.status only pays attention to the cache file if you give it |
| 10245 | # the --recheck option to rerun configure. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10246 | # |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10247 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10248 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 10249 | # following values. |
| 10250 | |
| 10251 | _ACEOF |
| 10252 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10253 | # The following way of writing the cache mishandles newlines in values, |
| 10254 | # but we know of no workaround that is simple, portable, and efficient. |
| 10255 | # So, don't put newlines in cache variables' values. |
| 10256 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 10257 | # and sets the high bit in the cache file unless we assign to the vars. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10258 | { |
| 10259 | (set) 2>&1 | |
| 10260 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 10261 | *ac_space=\ *) |
| 10262 | # `set' does not quote correctly, so add quotes (double-quote |
| 10263 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 10264 | sed -n \ |
| 10265 | "s/'/'\\\\''/g; |
| 10266 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 10267 | ;; |
| 10268 | *) |
| 10269 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 10270 | sed -n \ |
| 10271 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 10272 | ;; |
| 10273 | esac; |
| 10274 | } | |
| 10275 | sed ' |
| 10276 | t clear |
| 10277 | : clear |
| 10278 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 10279 | t end |
| 10280 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 10281 | : end' >>confcache |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10282 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10283 | if test -w $cache_file; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10284 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 10285 | cat confcache >$cache_file |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10286 | else |
| 10287 | echo "not updating unwritable cache $cache_file" |
| 10288 | fi |
| 10289 | fi |
| 10290 | rm -f confcache |
| 10291 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10292 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 10293 | # Let make expand exec_prefix. |
| 10294 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 10295 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10296 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 10297 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 10298 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 10299 | # (actually we leave an empty line to preserve line numbers). |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10300 | if test "x$srcdir" = x.; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10301 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 10302 | s/:*\$(srcdir):*/:/; |
| 10303 | s/:*\${srcdir}:*/:/; |
| 10304 | s/:*@srcdir@:*/:/; |
| 10305 | s/^\([^=]*=[ ]*\):*/\1/; |
| 10306 | s/:*$//; |
| 10307 | s/^[^=]*=[ ]*$//; |
| 10308 | }' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10309 | fi |
| 10310 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10311 | DEFS=-DHAVE_CONFIG_H |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10312 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10313 | ac_libobjs= |
| 10314 | ac_ltlibobjs= |
| 10315 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 10316 | # 1. Remove the extension, and $U if already installed. |
| 10317 | ac_i=`echo "$ac_i" | |
| 10318 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 10319 | # 2. Add them. |
| 10320 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 10321 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 10322 | done |
| 10323 | LIBOBJS=$ac_libobjs |
| 10324 | |
| 10325 | LTLIBOBJS=$ac_ltlibobjs |
| 10326 | |
| 10327 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10328 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 10329 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 10330 | Usually this means the macro was only invoked conditionally." >&5 |
| 10331 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 10332 | Usually this means the macro was only invoked conditionally." >&2;} |
| 10333 | { (exit 1); exit 1; }; } |
| 10334 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10335 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10336 | : ${CONFIG_STATUS=./config.status} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10337 | ac_clean_files_save=$ac_clean_files |
| 10338 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 10339 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 10340 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 10341 | cat >$CONFIG_STATUS <<_ACEOF |
| 10342 | #! $SHELL |
| 10343 | # Generated by $as_me. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10344 | # Run this file to recreate the current configuration. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10345 | # Compiler output produced by configure, useful for debugging |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10346 | # configure, is in config.log if it exists. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10347 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10348 | debug=false |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10349 | ac_cs_recheck=false |
| 10350 | ac_cs_silent=false |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10351 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 10352 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10353 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10354 | cat >>$CONFIG_STATUS <<\_ACEOF |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10355 | ## --------------------- ## |
| 10356 | ## M4sh Initialization. ## |
| 10357 | ## --------------------- ## |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10358 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10359 | # Be Bourne compatible |
| 10360 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 10361 | emulate sh |
| 10362 | NULLCMD=: |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10363 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 10364 | # is contrary to our usage. Disable this feature. |
| 10365 | alias -g '${1+"$@"}'='"$@"' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10366 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 10367 | set -o posix |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10368 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10369 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10370 | # Support unset when possible. |
| 10371 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 10372 | as_unset=unset |
| 10373 | else |
| 10374 | as_unset=false |
| 10375 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10376 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10377 | |
| 10378 | # Work around bugs in pre-3.0 UWIN ksh. |
| 10379 | $as_unset ENV MAIL MAILPATH |
| 10380 | PS1='$ ' |
| 10381 | PS2='> ' |
| 10382 | PS4='+ ' |
| 10383 | |
| 10384 | # NLS nuisances. |
| 10385 | for as_var in \ |
| 10386 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 10387 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 10388 | LC_TELEPHONE LC_TIME |
| 10389 | do |
| 10390 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 10391 | eval $as_var=C; export $as_var |
| 10392 | else |
| 10393 | $as_unset $as_var |
| 10394 | fi |
| 10395 | done |
| 10396 | |
| 10397 | # Required to use basename. |
| 10398 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 10399 | as_expr=expr |
| 10400 | else |
| 10401 | as_expr=false |
| 10402 | fi |
| 10403 | |
| 10404 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 10405 | as_basename=basename |
| 10406 | else |
| 10407 | as_basename=false |
| 10408 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10409 | |
| 10410 | |
| 10411 | # Name of the executable. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10412 | as_me=`$as_basename "$0" || |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10413 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 10414 | X"$0" : 'X\(//\)$' \| \ |
| 10415 | X"$0" : 'X\(/\)$' \| \ |
| 10416 | . : '\(.\)' 2>/dev/null || |
| 10417 | echo X/"$0" | |
| 10418 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 10419 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 10420 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 10421 | s/.*/./; q'` |
| 10422 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10423 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10424 | # PATH needs CR, and LINENO needs CR and PATH. |
| 10425 | # Avoid depending upon Character Ranges. |
| 10426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 10427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 10428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 10429 | as_cr_digits='0123456789' |
| 10430 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 10431 | |
| 10432 | # The user is always right. |
| 10433 | if test "${PATH_SEPARATOR+set}" != set; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10434 | echo "#! /bin/sh" >conf$$.sh |
| 10435 | echo "exit 0" >>conf$$.sh |
| 10436 | chmod +x conf$$.sh |
| 10437 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10438 | PATH_SEPARATOR=';' |
| 10439 | else |
| 10440 | PATH_SEPARATOR=: |
| 10441 | fi |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10442 | rm -f conf$$.sh |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10443 | fi |
| 10444 | |
| 10445 | |
| 10446 | as_lineno_1=$LINENO |
| 10447 | as_lineno_2=$LINENO |
| 10448 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 10449 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 10450 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 10451 | # Find who we are. Look in the path if we contain no path at all |
| 10452 | # relative or not. |
| 10453 | case $0 in |
| 10454 | *[\\/]* ) as_myself=$0 ;; |
| 10455 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10456 | for as_dir in $PATH |
| 10457 | do |
| 10458 | IFS=$as_save_IFS |
| 10459 | test -z "$as_dir" && as_dir=. |
| 10460 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 10461 | done |
| 10462 | |
| 10463 | ;; |
| 10464 | esac |
| 10465 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 10466 | # in which case we are not to be found in the path. |
| 10467 | if test "x$as_myself" = x; then |
| 10468 | as_myself=$0 |
| 10469 | fi |
| 10470 | if test ! -f "$as_myself"; then |
| 10471 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 10472 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 10473 | { (exit 1); exit 1; }; } |
| 10474 | fi |
| 10475 | case $CONFIG_SHELL in |
| 10476 | '') |
| 10477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10478 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 10479 | do |
| 10480 | IFS=$as_save_IFS |
| 10481 | test -z "$as_dir" && as_dir=. |
| 10482 | for as_base in sh bash ksh sh5; do |
| 10483 | case $as_dir in |
| 10484 | /*) |
| 10485 | if ("$as_dir/$as_base" -c ' |
| 10486 | as_lineno_1=$LINENO |
| 10487 | as_lineno_2=$LINENO |
| 10488 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 10489 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 10490 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10491 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 10492 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10493 | CONFIG_SHELL=$as_dir/$as_base |
| 10494 | export CONFIG_SHELL |
| 10495 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 10496 | fi;; |
| 10497 | esac |
| 10498 | done |
| 10499 | done |
| 10500 | ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10501 | esac |
| 10502 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10503 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 10504 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 10505 | # line-number line before each line; the second 'sed' does the real |
| 10506 | # work. The second script uses 'N' to pair each line-number line |
| 10507 | # with the numbered line, and appends trailing '-' during |
| 10508 | # substitution so that $LINENO is not a special case at line end. |
| 10509 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 10510 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 10511 | sed '=' <$as_myself | |
| 10512 | sed ' |
| 10513 | N |
| 10514 | s,$,-, |
| 10515 | : loop |
| 10516 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 10517 | t loop |
| 10518 | s,-$,, |
| 10519 | s,^['$as_cr_digits']*\n,, |
| 10520 | ' >$as_me.lineno && |
| 10521 | chmod +x $as_me.lineno || |
| 10522 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 10523 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 10524 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10525 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10526 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 10527 | # (the dirname of $[0] is not the place where we might find the |
| 10528 | # original and so on. Autoconf is especially sensible to this). |
| 10529 | . ./$as_me.lineno |
| 10530 | # Exit status is that of the last command. |
| 10531 | exit |
| 10532 | } |
| 10533 | |
| 10534 | |
| 10535 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 10536 | *c*,-n*) ECHO_N= ECHO_C=' |
| 10537 | ' ECHO_T=' ' ;; |
| 10538 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 10539 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 10540 | esac |
| 10541 | |
| 10542 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 10543 | as_expr=expr |
| 10544 | else |
| 10545 | as_expr=false |
| 10546 | fi |
| 10547 | |
| 10548 | rm -f conf$$ conf$$.exe conf$$.file |
| 10549 | echo >conf$$.file |
| 10550 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 10551 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 10552 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 10553 | if test -f conf$$.exe; then |
| 10554 | # Don't use ln at all; we don't have any links |
| 10555 | as_ln_s='cp -p' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10556 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10557 | as_ln_s='ln -s' |
| 10558 | fi |
| 10559 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 10560 | as_ln_s=ln |
| 10561 | else |
| 10562 | as_ln_s='cp -p' |
| 10563 | fi |
| 10564 | rm -f conf$$ conf$$.exe conf$$.file |
| 10565 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10566 | if mkdir -p . 2>/dev/null; then |
| 10567 | as_mkdir_p=: |
| 10568 | else |
| 10569 | as_mkdir_p=false |
| 10570 | fi |
| 10571 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10572 | as_executable_p="test -f" |
| 10573 | |
| 10574 | # Sed expression to map a string onto a valid CPP name. |
| 10575 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 10576 | |
| 10577 | # Sed expression to map a string onto a valid variable name. |
| 10578 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 10579 | |
| 10580 | |
| 10581 | # IFS |
| 10582 | # We need space, tab and new line, in precisely that order. |
| 10583 | as_nl=' |
| 10584 | ' |
| 10585 | IFS=" $as_nl" |
| 10586 | |
| 10587 | # CDPATH. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10588 | $as_unset CDPATH |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10589 | |
| 10590 | exec 6>&1 |
| 10591 | |
| 10592 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 10593 | # report actual input values of CONFIG_FILES etc. instead of their |
| 10594 | # values after options handling. Logging --version etc. is OK. |
| 10595 | exec 5>>config.log |
| 10596 | { |
| 10597 | echo |
| 10598 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 10599 | ## Running $as_me. ## |
| 10600 | _ASBOX |
| 10601 | } >&5 |
| 10602 | cat >&5 <<_CSEOF |
| 10603 | |
jjako | a24c7ec | 2004-12-30 23:37:18 +0000 | [diff] [blame^] | 10604 | This file was extended by openggsn $as_me 0.84, which was |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10605 | generated by GNU Autoconf 2.57. Invocation command line was |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10606 | |
| 10607 | CONFIG_FILES = $CONFIG_FILES |
| 10608 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 10609 | CONFIG_LINKS = $CONFIG_LINKS |
| 10610 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 10611 | $ $0 $@ |
| 10612 | |
| 10613 | _CSEOF |
| 10614 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 10615 | echo >&5 |
| 10616 | _ACEOF |
| 10617 | |
| 10618 | # Files that config.status was made for. |
| 10619 | if test -n "$ac_config_files"; then |
| 10620 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 10621 | fi |
| 10622 | |
| 10623 | if test -n "$ac_config_headers"; then |
| 10624 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 10625 | fi |
| 10626 | |
| 10627 | if test -n "$ac_config_links"; then |
| 10628 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 10629 | fi |
| 10630 | |
| 10631 | if test -n "$ac_config_commands"; then |
| 10632 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 10633 | fi |
| 10634 | |
| 10635 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10636 | |
| 10637 | ac_cs_usage="\ |
| 10638 | \`$as_me' instantiates files from templates according to the |
| 10639 | current configuration. |
| 10640 | |
| 10641 | Usage: $0 [OPTIONS] [FILE]... |
| 10642 | |
| 10643 | -h, --help print this help, then exit |
| 10644 | -V, --version print version number, then exit |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10645 | -q, --quiet do not print progress messages |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10646 | -d, --debug don't remove temporary files |
| 10647 | --recheck update $as_me by reconfiguring in the same conditions |
| 10648 | --file=FILE[:TEMPLATE] |
| 10649 | instantiate the configuration file FILE |
| 10650 | --header=FILE[:TEMPLATE] |
| 10651 | instantiate the configuration header FILE |
| 10652 | |
| 10653 | Configuration files: |
| 10654 | $config_files |
| 10655 | |
| 10656 | Configuration headers: |
| 10657 | $config_headers |
| 10658 | |
jjako | 1d3db97 | 2004-01-16 09:56:56 +0000 | [diff] [blame] | 10659 | Configuration links: |
| 10660 | $config_links |
| 10661 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10662 | Configuration commands: |
| 10663 | $config_commands |
| 10664 | |
| 10665 | Report bugs to <bug-autoconf@gnu.org>." |
| 10666 | _ACEOF |
| 10667 | |
| 10668 | cat >>$CONFIG_STATUS <<_ACEOF |
| 10669 | ac_cs_version="\\ |
jjako | a24c7ec | 2004-12-30 23:37:18 +0000 | [diff] [blame^] | 10670 | openggsn config.status 0.84 |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10671 | configured by $0, generated by GNU Autoconf 2.57, |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10672 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 10673 | |
| 10674 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 10675 | Free Software Foundation, Inc. |
| 10676 | This config.status script is free software; the Free Software Foundation |
| 10677 | gives unlimited permission to copy, distribute and modify it." |
| 10678 | srcdir=$srcdir |
| 10679 | INSTALL="$INSTALL" |
| 10680 | _ACEOF |
| 10681 | |
| 10682 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10683 | # If no file are specified by the user, then we need to provide default |
| 10684 | # value. By we need to know if files were specified by the user. |
| 10685 | ac_need_defaults=: |
| 10686 | while test $# != 0 |
| 10687 | do |
| 10688 | case $1 in |
| 10689 | --*=*) |
| 10690 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 10691 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10692 | ac_shift=: |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10693 | ;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10694 | -*) |
| 10695 | ac_option=$1 |
| 10696 | ac_optarg=$2 |
| 10697 | ac_shift=shift |
| 10698 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10699 | *) # This is not an option, so the user has probably given explicit |
| 10700 | # arguments. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10701 | ac_option=$1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10702 | ac_need_defaults=false;; |
| 10703 | esac |
| 10704 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10705 | case $ac_option in |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10706 | # Handling of the options. |
| 10707 | _ACEOF |
jjako | 0a120b2 | 2003-07-10 18:35:50 +0000 | [diff] [blame] | 10708 | cat >>$CONFIG_STATUS <<\_ACEOF |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10709 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 10710 | ac_cs_recheck=: ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10711 | --version | --vers* | -V ) |
| 10712 | echo "$ac_cs_version"; exit 0 ;; |
| 10713 | --he | --h) |
| 10714 | # Conflict between --help and --header |
| 10715 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 10716 | Try \`$0 --help' for more information." >&5 |
| 10717 | echo "$as_me: error: ambiguous option: $1 |
| 10718 | Try \`$0 --help' for more information." >&2;} |
| 10719 | { (exit 1); exit 1; }; };; |
| 10720 | --help | --hel | -h ) |
| 10721 | echo "$ac_cs_usage"; exit 0 ;; |
| 10722 | --debug | --d* | -d ) |
| 10723 | debug=: ;; |
| 10724 | --file | --fil | --fi | --f ) |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10725 | $ac_shift |
| 10726 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10727 | ac_need_defaults=false;; |
| 10728 | --header | --heade | --head | --hea ) |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10729 | $ac_shift |
| 10730 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10731 | ac_need_defaults=false;; |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10732 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 10733 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 10734 | ac_cs_silent=: ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10735 | |
| 10736 | # This is an error. |
| 10737 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 10738 | Try \`$0 --help' for more information." >&5 |
| 10739 | echo "$as_me: error: unrecognized option: $1 |
| 10740 | Try \`$0 --help' for more information." >&2;} |
| 10741 | { (exit 1); exit 1; }; } ;; |
| 10742 | |
| 10743 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 10744 | |
| 10745 | esac |
| 10746 | shift |
| 10747 | done |
| 10748 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10749 | ac_configure_extra_args= |
| 10750 | |
| 10751 | if $ac_cs_silent; then |
| 10752 | exec 6>/dev/null |
| 10753 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 10754 | fi |
| 10755 | |
| 10756 | _ACEOF |
| 10757 | cat >>$CONFIG_STATUS <<_ACEOF |
| 10758 | if \$ac_cs_recheck; then |
| 10759 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 10760 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 10761 | fi |
| 10762 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10763 | _ACEOF |
| 10764 | |
| 10765 | cat >>$CONFIG_STATUS <<_ACEOF |
| 10766 | # |
| 10767 | # INIT-COMMANDS section. |
| 10768 | # |
| 10769 | |
| 10770 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 10771 | |
| 10772 | _ACEOF |
| 10773 | |
| 10774 | |
| 10775 | |
| 10776 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10777 | for ac_config_target in $ac_config_targets |
| 10778 | do |
| 10779 | case "$ac_config_target" in |
| 10780 | # Handling of arguments. |
| 10781 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 10782 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 10783 | "ggsn/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggsn/Makefile" ;; |
| 10784 | "gtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtp/Makefile" ;; |
| 10785 | "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; |
| 10786 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; |
| 10787 | "sgsnemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgsnemu/Makefile" ;; |
| 10788 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 10789 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 10790 | "openggsn.spec" ) CONFIG_FILES="$CONFIG_FILES openggsn.spec" ;; |
jjako | 1d3db97 | 2004-01-16 09:56:56 +0000 | [diff] [blame] | 10791 | "ggsn/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS ggsn/getopt.h:ggsn/gnugetopt.h" ;; |
| 10792 | "sgsnemu/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS sgsnemu/getopt.h:sgsnemu/gnugetopt.h" ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10793 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 10794 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 10795 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 10796 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 10797 | { (exit 1); exit 1; }; };; |
| 10798 | esac |
| 10799 | done |
| 10800 | |
| 10801 | # If the user did not use the arguments to specify the items to instantiate, |
| 10802 | # then the envvar interface is used. Set only those that are not. |
| 10803 | # We use the long form for the default assignment because of an extremely |
| 10804 | # bizarre bug on SunOS 4.1.3. |
| 10805 | if $ac_need_defaults; then |
| 10806 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 10807 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
jjako | 1d3db97 | 2004-01-16 09:56:56 +0000 | [diff] [blame] | 10808 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10809 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 10810 | fi |
| 10811 | |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10812 | # Have a temporary directory for convenience. Make it in the build tree |
| 10813 | # simply because there is no reason to put it here, and in addition, |
| 10814 | # creating and moving files from /tmp can sometimes cause problems. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10815 | # Create a temporary directory, and hook for its removal unless debugging. |
| 10816 | $debug || |
| 10817 | { |
| 10818 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 10819 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 10820 | } |
| 10821 | |
| 10822 | # Create a (secure) tmp directory for tmp files. |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10823 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10824 | { |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10825 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10826 | test -n "$tmp" && test -d "$tmp" |
| 10827 | } || |
| 10828 | { |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10829 | tmp=./confstat$$-$RANDOM |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10830 | (umask 077 && mkdir $tmp) |
| 10831 | } || |
| 10832 | { |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10833 | echo "$me: cannot create a temporary directory in ." >&2 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10834 | { (exit 1); exit 1; } |
| 10835 | } |
| 10836 | |
| 10837 | _ACEOF |
| 10838 | |
| 10839 | cat >>$CONFIG_STATUS <<_ACEOF |
| 10840 | |
| 10841 | # |
| 10842 | # CONFIG_FILES section. |
| 10843 | # |
| 10844 | |
| 10845 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 10846 | # This happens for instance when ./config.status config.h |
| 10847 | if test -n "\$CONFIG_FILES"; then |
| 10848 | # Protect against being on the right side of a sed subst in config.status. |
| 10849 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 10850 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 10851 | s,@SHELL@,$SHELL,;t t |
| 10852 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 10853 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 10854 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 10855 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 10856 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 10857 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 10858 | s,@exec_prefix@,$exec_prefix,;t t |
| 10859 | s,@prefix@,$prefix,;t t |
| 10860 | s,@program_transform_name@,$program_transform_name,;t t |
| 10861 | s,@bindir@,$bindir,;t t |
| 10862 | s,@sbindir@,$sbindir,;t t |
| 10863 | s,@libexecdir@,$libexecdir,;t t |
| 10864 | s,@datadir@,$datadir,;t t |
| 10865 | s,@sysconfdir@,$sysconfdir,;t t |
| 10866 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 10867 | s,@localstatedir@,$localstatedir,;t t |
| 10868 | s,@libdir@,$libdir,;t t |
| 10869 | s,@includedir@,$includedir,;t t |
| 10870 | s,@oldincludedir@,$oldincludedir,;t t |
| 10871 | s,@infodir@,$infodir,;t t |
| 10872 | s,@mandir@,$mandir,;t t |
| 10873 | s,@build_alias@,$build_alias,;t t |
| 10874 | s,@host_alias@,$host_alias,;t t |
| 10875 | s,@target_alias@,$target_alias,;t t |
| 10876 | s,@DEFS@,$DEFS,;t t |
| 10877 | s,@ECHO_C@,$ECHO_C,;t t |
| 10878 | s,@ECHO_N@,$ECHO_N,;t t |
| 10879 | s,@ECHO_T@,$ECHO_T,;t t |
| 10880 | s,@LIBS@,$LIBS,;t t |
jjako | 77edc82 | 2004-09-10 17:19:31 +0000 | [diff] [blame] | 10881 | s,@build@,$build,;t t |
| 10882 | s,@build_cpu@,$build_cpu,;t t |
| 10883 | s,@build_vendor@,$build_vendor,;t t |
| 10884 | s,@build_os@,$build_os,;t t |
| 10885 | s,@host@,$host,;t t |
| 10886 | s,@host_cpu@,$host_cpu,;t t |
| 10887 | s,@host_vendor@,$host_vendor,;t t |
| 10888 | s,@host_os@,$host_os,;t t |
| 10889 | s,@target@,$target,;t t |
| 10890 | s,@target_cpu@,$target_cpu,;t t |
| 10891 | s,@target_vendor@,$target_vendor,;t t |
| 10892 | s,@target_os@,$target_os,;t t |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10893 | s,@CC@,$CC,;t t |
| 10894 | s,@CFLAGS@,$CFLAGS,;t t |
| 10895 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 10896 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 10897 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 10898 | s,@EXEEXT@,$EXEEXT,;t t |
| 10899 | s,@OBJEXT@,$OBJEXT,;t t |
| 10900 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 10901 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 10902 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 10903 | s,@AWK@,$AWK,;t t |
| 10904 | s,@CPP@,$CPP,;t t |
| 10905 | s,@CXX@,$CXX,;t t |
| 10906 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 10907 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 10908 | s,@RANLIB@,$RANLIB,;t t |
| 10909 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10910 | s,@LN_S@,$LN_S,;t t |
| 10911 | s,@ECHO@,$ECHO,;t t |
| 10912 | s,@STRIP@,$STRIP,;t t |
| 10913 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10914 | s,@EGREP@,$EGREP,;t t |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10915 | s,@LIBTOOL@,$LIBTOOL,;t t |
jjako | a9639f3 | 2003-07-07 15:30:11 +0000 | [diff] [blame] | 10916 | s,@EXEC_LDFLAGS@,$EXEC_LDFLAGS,;t t |
jjako | e31b240 | 2004-12-30 23:07:42 +0000 | [diff] [blame] | 10917 | s,@EXEC_LDADD@,$EXEC_LDADD,;t t |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10918 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 10919 | s,@PACKAGE@,$PACKAGE,;t t |
| 10920 | s,@VERSION@,$VERSION,;t t |
| 10921 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 10922 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 10923 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 10924 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 10925 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 10926 | s,@AMTAR@,$AMTAR,;t t |
| 10927 | s,@install_sh@,$install_sh,;t t |
| 10928 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 10929 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 10930 | s,@DEPDIR@,$DEPDIR,;t t |
| 10931 | s,@am__include@,$am__include,;t t |
| 10932 | s,@am__quote@,$am__quote,;t t |
| 10933 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 10934 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 10935 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 10936 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 10937 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 10938 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10939 | CEOF |
| 10940 | |
| 10941 | _ACEOF |
| 10942 | |
| 10943 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10944 | # Split the substitutions into bite-sized pieces for seds with |
| 10945 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 10946 | ac_max_sed_lines=48 |
| 10947 | ac_sed_frag=1 # Number of current file. |
| 10948 | ac_beg=1 # First line for current file. |
| 10949 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 10950 | ac_more_lines=: |
| 10951 | ac_sed_cmds= |
| 10952 | while $ac_more_lines; do |
| 10953 | if test $ac_beg -gt 1; then |
| 10954 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10955 | else |
| 10956 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10957 | fi |
| 10958 | if test ! -s $tmp/subs.frag; then |
| 10959 | ac_more_lines=false |
| 10960 | else |
| 10961 | # The purpose of the label and of the branching condition is to |
| 10962 | # speed up the sed processing (if there are no `@' at all, there |
| 10963 | # is no need to browse any of the substitutions). |
| 10964 | # These are the two extra sed commands mentioned above. |
| 10965 | (echo ':t |
| 10966 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 10967 | if test -z "$ac_sed_cmds"; then |
| 10968 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10969 | else |
| 10970 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10971 | fi |
| 10972 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 10973 | ac_beg=$ac_end |
| 10974 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 10975 | fi |
| 10976 | done |
| 10977 | if test -z "$ac_sed_cmds"; then |
| 10978 | ac_sed_cmds=cat |
| 10979 | fi |
| 10980 | fi # test -n "$CONFIG_FILES" |
| 10981 | |
| 10982 | _ACEOF |
| 10983 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10984 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 10985 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10986 | case $ac_file in |
| 10987 | - | *:- | *:-:* ) # input from stdin |
| 10988 | cat >$tmp/stdin |
| 10989 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10990 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10991 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10992 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10993 | * ) ac_file_in=$ac_file.in ;; |
| 10994 | esac |
| 10995 | |
| 10996 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 10997 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10998 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10999 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 11000 | X"$ac_file" : 'X\(//\)$' \| \ |
| 11001 | X"$ac_file" : 'X\(/\)' \| \ |
| 11002 | . : '\(.\)' 2>/dev/null || |
| 11003 | echo X"$ac_file" | |
| 11004 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11005 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11006 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11007 | /^X\(\/\).*/{ s//\1/; q; } |
| 11008 | s/.*/./; q'` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11009 | { if $as_mkdir_p; then |
| 11010 | mkdir -p "$ac_dir" |
| 11011 | else |
| 11012 | as_dir="$ac_dir" |
| 11013 | as_dirs= |
| 11014 | while test ! -d "$as_dir"; do |
| 11015 | as_dirs="$as_dir $as_dirs" |
| 11016 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 11017 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11018 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11019 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11020 | X"$as_dir" : 'X\(/\)' \| \ |
| 11021 | . : '\(.\)' 2>/dev/null || |
| 11022 | echo X"$as_dir" | |
| 11023 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11024 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11025 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11026 | /^X\(\/\).*/{ s//\1/; q; } |
| 11027 | s/.*/./; q'` |
| 11028 | done |
| 11029 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 11030 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 11031 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 11032 | { (exit 1); exit 1; }; }; } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11033 | |
| 11034 | ac_builddir=. |
| 11035 | |
| 11036 | if test "$ac_dir" != .; then |
| 11037 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 11038 | # A "../" for each directory in $ac_dir_suffix. |
| 11039 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 11040 | else |
| 11041 | ac_dir_suffix= ac_top_builddir= |
| 11042 | fi |
| 11043 | |
| 11044 | case $srcdir in |
| 11045 | .) # No --srcdir option. We are building in place. |
| 11046 | ac_srcdir=. |
| 11047 | if test -z "$ac_top_builddir"; then |
| 11048 | ac_top_srcdir=. |
| 11049 | else |
| 11050 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 11051 | fi ;; |
| 11052 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 11053 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 11054 | ac_top_srcdir=$srcdir ;; |
| 11055 | *) # Relative path. |
| 11056 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 11057 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 11058 | esac |
| 11059 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 11060 | # absolute. |
| 11061 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11062 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11063 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 11064 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 11065 | |
| 11066 | |
| 11067 | case $INSTALL in |
| 11068 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 11069 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 11070 | esac |
| 11071 | |
| 11072 | if test x"$ac_file" != x-; then |
| 11073 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 11074 | echo "$as_me: creating $ac_file" >&6;} |
| 11075 | rm -f "$ac_file" |
| 11076 | fi |
| 11077 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 11078 | # use $as_me), people would be surprised to read: |
| 11079 | # /* config.h. Generated by config.status. */ |
| 11080 | if test x"$ac_file" = x-; then |
| 11081 | configure_input= |
| 11082 | else |
| 11083 | configure_input="$ac_file. " |
| 11084 | fi |
| 11085 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 11086 | sed 's,.*/,,'` by configure." |
| 11087 | |
| 11088 | # First look for the input files in the build tree, otherwise in the |
| 11089 | # src tree. |
| 11090 | ac_file_inputs=`IFS=: |
| 11091 | for f in $ac_file_in; do |
| 11092 | case $f in |
| 11093 | -) echo $tmp/stdin ;; |
| 11094 | [\\/$]*) |
| 11095 | # Absolute (can't be DOS-style, as IFS=:) |
| 11096 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11097 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11098 | { (exit 1); exit 1; }; } |
| 11099 | echo $f;; |
| 11100 | *) # Relative |
| 11101 | if test -f "$f"; then |
| 11102 | # Build tree |
| 11103 | echo $f |
| 11104 | elif test -f "$srcdir/$f"; then |
| 11105 | # Source tree |
| 11106 | echo $srcdir/$f |
| 11107 | else |
| 11108 | # /dev/null tree |
| 11109 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11110 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11111 | { (exit 1); exit 1; }; } |
| 11112 | fi;; |
| 11113 | esac |
| 11114 | done` || { (exit 1); exit 1; } |
| 11115 | _ACEOF |
| 11116 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11117 | sed "$ac_vpsub |
| 11118 | $extrasub |
| 11119 | _ACEOF |
| 11120 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11121 | :t |
| 11122 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 11123 | s,@configure_input@,$configure_input,;t t |
| 11124 | s,@srcdir@,$ac_srcdir,;t t |
| 11125 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 11126 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 11127 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 11128 | s,@builddir@,$ac_builddir,;t t |
| 11129 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 11130 | s,@top_builddir@,$ac_top_builddir,;t t |
| 11131 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 11132 | s,@INSTALL@,$ac_INSTALL,;t t |
| 11133 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 11134 | rm -f $tmp/stdin |
| 11135 | if test x"$ac_file" != x-; then |
| 11136 | mv $tmp/out $ac_file |
| 11137 | else |
| 11138 | cat $tmp/out |
| 11139 | rm -f $tmp/out |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 11140 | fi |
| 11141 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11142 | done |
| 11143 | _ACEOF |
| 11144 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11145 | |
| 11146 | # |
| 11147 | # CONFIG_HEADER section. |
| 11148 | # |
| 11149 | |
| 11150 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 11151 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 11152 | # |
| 11153 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 11154 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 11155 | ac_dB='[ ].*$,\1#\2' |
| 11156 | ac_dC=' ' |
| 11157 | ac_dD=',;t' |
| 11158 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 11159 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 11160 | ac_uB='$,\1#\2define\3' |
| 11161 | ac_uC=' ' |
| 11162 | ac_uD=',;t' |
| 11163 | |
| 11164 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 11165 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 11166 | case $ac_file in |
| 11167 | - | *:- | *:-:* ) # input from stdin |
| 11168 | cat >$tmp/stdin |
| 11169 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11170 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11171 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11172 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11173 | * ) ac_file_in=$ac_file.in ;; |
| 11174 | esac |
| 11175 | |
| 11176 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 11177 | echo "$as_me: creating $ac_file" >&6;} |
| 11178 | |
| 11179 | # First look for the input files in the build tree, otherwise in the |
| 11180 | # src tree. |
| 11181 | ac_file_inputs=`IFS=: |
| 11182 | for f in $ac_file_in; do |
| 11183 | case $f in |
| 11184 | -) echo $tmp/stdin ;; |
| 11185 | [\\/$]*) |
| 11186 | # Absolute (can't be DOS-style, as IFS=:) |
| 11187 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11188 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11189 | { (exit 1); exit 1; }; } |
| 11190 | echo $f;; |
| 11191 | *) # Relative |
| 11192 | if test -f "$f"; then |
| 11193 | # Build tree |
| 11194 | echo $f |
| 11195 | elif test -f "$srcdir/$f"; then |
| 11196 | # Source tree |
| 11197 | echo $srcdir/$f |
| 11198 | else |
| 11199 | # /dev/null tree |
| 11200 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11201 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11202 | { (exit 1); exit 1; }; } |
| 11203 | fi;; |
| 11204 | esac |
| 11205 | done` || { (exit 1); exit 1; } |
| 11206 | # Remove the trailing spaces. |
| 11207 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 11208 | |
| 11209 | _ACEOF |
| 11210 | |
| 11211 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 11212 | # `conftest.undefs', that substitutes the proper values into |
| 11213 | # config.h.in to produce config.h. The first handles `#define' |
| 11214 | # templates, and the second `#undef' templates. |
| 11215 | # And first: Protect against being on the right side of a sed subst in |
| 11216 | # config.status. Protect against being in an unquoted here document |
| 11217 | # in config.status. |
| 11218 | rm -f conftest.defines conftest.undefs |
| 11219 | # Using a here document instead of a string reduces the quoting nightmare. |
| 11220 | # Putting comments in sed scripts is not portable. |
| 11221 | # |
| 11222 | # `end' is used to avoid that the second main sed command (meant for |
| 11223 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 11224 | # See the Autoconf documentation for `clear'. |
| 11225 | cat >confdef2sed.sed <<\_ACEOF |
| 11226 | s/[\\&,]/\\&/g |
| 11227 | s,[\\$`],\\&,g |
| 11228 | t clear |
| 11229 | : clear |
| 11230 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 11231 | t end |
| 11232 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 11233 | : end |
| 11234 | _ACEOF |
| 11235 | # If some macros were called several times there might be several times |
| 11236 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 11237 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 11238 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 11239 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 11240 | rm -f confdef2sed.sed |
| 11241 | |
| 11242 | # This sed command replaces #undef with comments. This is necessary, for |
| 11243 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 11244 | # on some systems where configure will not decide to define it. |
| 11245 | cat >>conftest.undefs <<\_ACEOF |
| 11246 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 11247 | _ACEOF |
| 11248 | |
| 11249 | # Break up conftest.defines because some shells have a limit on the size |
| 11250 | # of here documents, and old seds have small limits too (100 cmds). |
| 11251 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11252 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11253 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 11254 | echo ' :' >>$CONFIG_STATUS |
| 11255 | rm -f conftest.tail |
| 11256 | while grep . conftest.defines >/dev/null |
| 11257 | do |
| 11258 | # Write a limited-size here document to $tmp/defines.sed. |
| 11259 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 11260 | # Speed up: don't consider the non `#define' lines. |
| 11261 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 11262 | # Work around the forget-to-reset-the-flag bug. |
| 11263 | echo 't clr' >>$CONFIG_STATUS |
| 11264 | echo ': clr' >>$CONFIG_STATUS |
| 11265 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 11266 | echo 'CEOF |
| 11267 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 11268 | rm -f $tmp/in |
| 11269 | mv $tmp/out $tmp/in |
| 11270 | ' >>$CONFIG_STATUS |
| 11271 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 11272 | rm -f conftest.defines |
| 11273 | mv conftest.tail conftest.defines |
| 11274 | done |
| 11275 | rm -f conftest.defines |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11276 | echo ' fi # grep' >>$CONFIG_STATUS |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11277 | echo >>$CONFIG_STATUS |
| 11278 | |
| 11279 | # Break up conftest.undefs because some shells have a limit on the size |
| 11280 | # of here documents, and old seds have small limits too (100 cmds). |
| 11281 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 11282 | rm -f conftest.tail |
| 11283 | while grep . conftest.undefs >/dev/null |
| 11284 | do |
| 11285 | # Write a limited-size here document to $tmp/undefs.sed. |
| 11286 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 11287 | # Speed up: don't consider the non `#undef' |
| 11288 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 11289 | # Work around the forget-to-reset-the-flag bug. |
| 11290 | echo 't clr' >>$CONFIG_STATUS |
| 11291 | echo ': clr' >>$CONFIG_STATUS |
| 11292 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 11293 | echo 'CEOF |
| 11294 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 11295 | rm -f $tmp/in |
| 11296 | mv $tmp/out $tmp/in |
| 11297 | ' >>$CONFIG_STATUS |
| 11298 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 11299 | rm -f conftest.undefs |
| 11300 | mv conftest.tail conftest.undefs |
| 11301 | done |
| 11302 | rm -f conftest.undefs |
| 11303 | |
| 11304 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11305 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 11306 | # use $as_me), people would be surprised to read: |
| 11307 | # /* config.h. Generated by config.status. */ |
| 11308 | if test x"$ac_file" = x-; then |
| 11309 | echo "/* Generated by configure. */" >$tmp/config.h |
| 11310 | else |
| 11311 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 11312 | fi |
| 11313 | cat $tmp/in >>$tmp/config.h |
| 11314 | rm -f $tmp/in |
| 11315 | if test x"$ac_file" != x-; then |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11316 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11317 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 11318 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 11319 | else |
| 11320 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 11321 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11322 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 11323 | X"$ac_file" : 'X\(//\)$' \| \ |
| 11324 | X"$ac_file" : 'X\(/\)' \| \ |
| 11325 | . : '\(.\)' 2>/dev/null || |
| 11326 | echo X"$ac_file" | |
| 11327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11328 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11329 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11330 | /^X\(\/\).*/{ s//\1/; q; } |
| 11331 | s/.*/./; q'` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11332 | { if $as_mkdir_p; then |
| 11333 | mkdir -p "$ac_dir" |
| 11334 | else |
| 11335 | as_dir="$ac_dir" |
| 11336 | as_dirs= |
| 11337 | while test ! -d "$as_dir"; do |
| 11338 | as_dirs="$as_dir $as_dirs" |
| 11339 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 11340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11341 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11342 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11343 | X"$as_dir" : 'X\(/\)' \| \ |
| 11344 | . : '\(.\)' 2>/dev/null || |
| 11345 | echo X"$as_dir" | |
| 11346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11347 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11348 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11349 | /^X\(\/\).*/{ s//\1/; q; } |
| 11350 | s/.*/./; q'` |
| 11351 | done |
| 11352 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 11353 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 11354 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 11355 | { (exit 1); exit 1; }; }; } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11356 | |
| 11357 | rm -f $ac_file |
| 11358 | mv $tmp/config.h $ac_file |
| 11359 | fi |
| 11360 | else |
| 11361 | cat $tmp/config.h |
| 11362 | rm -f $tmp/config.h |
| 11363 | fi |
| 11364 | # Run the commands associated with the file. |
| 11365 | case $ac_file in |
| 11366 | config.h ) # update the timestamp |
| 11367 | echo 'timestamp for config.h' >"./stamp-h1" |
| 11368 | ;; |
| 11369 | esac |
| 11370 | done |
| 11371 | _ACEOF |
| 11372 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11373 | |
| 11374 | # |
jjako | 1d3db97 | 2004-01-16 09:56:56 +0000 | [diff] [blame] | 11375 | # CONFIG_LINKS section. |
| 11376 | # |
| 11377 | |
| 11378 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| 11379 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 11380 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11381 | |
| 11382 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
| 11383 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| 11384 | |
| 11385 | if test ! -r $srcdir/$ac_source; then |
| 11386 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
| 11387 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
| 11388 | { (exit 1); exit 1; }; } |
| 11389 | fi |
| 11390 | rm -f $ac_dest |
| 11391 | |
| 11392 | # Make relative symlinks. |
| 11393 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 11394 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11395 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 11396 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 11397 | X"$ac_dest" : 'X\(/\)' \| \ |
| 11398 | . : '\(.\)' 2>/dev/null || |
| 11399 | echo X"$ac_dest" | |
| 11400 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11401 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11402 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11403 | /^X\(\/\).*/{ s//\1/; q; } |
| 11404 | s/.*/./; q'` |
| 11405 | { if $as_mkdir_p; then |
| 11406 | mkdir -p "$ac_dest_dir" |
| 11407 | else |
| 11408 | as_dir="$ac_dest_dir" |
| 11409 | as_dirs= |
| 11410 | while test ! -d "$as_dir"; do |
| 11411 | as_dirs="$as_dir $as_dirs" |
| 11412 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 11413 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11414 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11415 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11416 | X"$as_dir" : 'X\(/\)' \| \ |
| 11417 | . : '\(.\)' 2>/dev/null || |
| 11418 | echo X"$as_dir" | |
| 11419 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11420 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11421 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11422 | /^X\(\/\).*/{ s//\1/; q; } |
| 11423 | s/.*/./; q'` |
| 11424 | done |
| 11425 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 11426 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
| 11427 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
| 11428 | { (exit 1); exit 1; }; }; } |
| 11429 | |
| 11430 | ac_builddir=. |
| 11431 | |
| 11432 | if test "$ac_dest_dir" != .; then |
| 11433 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
| 11434 | # A "../" for each directory in $ac_dir_suffix. |
| 11435 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 11436 | else |
| 11437 | ac_dir_suffix= ac_top_builddir= |
| 11438 | fi |
| 11439 | |
| 11440 | case $srcdir in |
| 11441 | .) # No --srcdir option. We are building in place. |
| 11442 | ac_srcdir=. |
| 11443 | if test -z "$ac_top_builddir"; then |
| 11444 | ac_top_srcdir=. |
| 11445 | else |
| 11446 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 11447 | fi ;; |
| 11448 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 11449 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 11450 | ac_top_srcdir=$srcdir ;; |
| 11451 | *) # Relative path. |
| 11452 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 11453 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 11454 | esac |
| 11455 | # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be |
| 11456 | # absolute. |
| 11457 | ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd` |
| 11458 | ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd` |
| 11459 | ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd` |
| 11460 | ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd` |
| 11461 | |
| 11462 | |
| 11463 | case $srcdir in |
| 11464 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| 11465 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
| 11466 | esac |
| 11467 | |
| 11468 | # Try a symlink, then a hard link, then a copy. |
| 11469 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 11470 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
| 11471 | cp -p $srcdir/$ac_source $ac_dest || |
| 11472 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
| 11473 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
| 11474 | { (exit 1); exit 1; }; } |
| 11475 | done |
| 11476 | _ACEOF |
| 11477 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11478 | |
| 11479 | # |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11480 | # CONFIG_COMMANDS section. |
| 11481 | # |
| 11482 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 11483 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 11484 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11485 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 11486 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11487 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 11488 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 11489 | X"$ac_dest" : 'X\(/\)' \| \ |
| 11490 | . : '\(.\)' 2>/dev/null || |
| 11491 | echo X"$ac_dest" | |
| 11492 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11493 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11494 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11495 | /^X\(\/\).*/{ s//\1/; q; } |
| 11496 | s/.*/./; q'` |
| 11497 | ac_builddir=. |
| 11498 | |
| 11499 | if test "$ac_dir" != .; then |
| 11500 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 11501 | # A "../" for each directory in $ac_dir_suffix. |
| 11502 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 11503 | else |
| 11504 | ac_dir_suffix= ac_top_builddir= |
| 11505 | fi |
| 11506 | |
| 11507 | case $srcdir in |
| 11508 | .) # No --srcdir option. We are building in place. |
| 11509 | ac_srcdir=. |
| 11510 | if test -z "$ac_top_builddir"; then |
| 11511 | ac_top_srcdir=. |
| 11512 | else |
| 11513 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 11514 | fi ;; |
| 11515 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 11516 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 11517 | ac_top_srcdir=$srcdir ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 11518 | *) # Relative path. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11519 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 11520 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 11521 | esac |
| 11522 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 11523 | # absolute. |
| 11524 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11525 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11526 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 11527 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 11528 | |
| 11529 | |
| 11530 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 11531 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 11532 | case $ac_dest in |
| 11533 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 11534 | # Strip MF so we end up with the name of the file. |
| 11535 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 11536 | # Check whether this is an Automake generated Makefile or not. |
| 11537 | # We used to match only the files named `Makefile.in', but |
| 11538 | # some people rename them; so instead we look at the file content. |
| 11539 | # Grep'ing the first line is not enough: some people post-process |
| 11540 | # each Makefile.in and add a new line on top of each file to say so. |
| 11541 | # So let's grep whole file. |
| 11542 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 11543 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 11544 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11545 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 11546 | X"$mf" : 'X\(//\)$' \| \ |
| 11547 | X"$mf" : 'X\(/\)' \| \ |
| 11548 | . : '\(.\)' 2>/dev/null || |
| 11549 | echo X"$mf" | |
| 11550 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11551 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11552 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11553 | /^X\(\/\).*/{ s//\1/; q; } |
| 11554 | s/.*/./; q'` |
| 11555 | else |
| 11556 | continue |
| 11557 | fi |
| 11558 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 11559 | # Extract the definition of DEP_FILES from the Makefile without |
| 11560 | # running `make'. |
| 11561 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 11562 | test -z "$DEPDIR" && continue |
| 11563 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 11564 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 11565 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 11566 | # We invoke sed twice because it is the simplest approach to |
| 11567 | # changing $(DEPDIR) to its actual value in the expansion. |
| 11568 | for file in `sed -n -e ' |
| 11569 | /^DEP_FILES = .*\\\\$/ { |
| 11570 | s/^DEP_FILES = // |
| 11571 | :loop |
| 11572 | s/\\\\$// |
| 11573 | p |
| 11574 | n |
| 11575 | /\\\\$/ b loop |
| 11576 | p |
| 11577 | } |
| 11578 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 11579 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 11580 | # Make sure the directory exists. |
| 11581 | test -f "$dirpart/$file" && continue |
| 11582 | fdir=`(dirname "$file") 2>/dev/null || |
| 11583 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11584 | X"$file" : 'X\(//\)[^/]' \| \ |
| 11585 | X"$file" : 'X\(//\)$' \| \ |
| 11586 | X"$file" : 'X\(/\)' \| \ |
| 11587 | . : '\(.\)' 2>/dev/null || |
| 11588 | echo X"$file" | |
| 11589 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11590 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11591 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11592 | /^X\(\/\).*/{ s//\1/; q; } |
| 11593 | s/.*/./; q'` |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11594 | { if $as_mkdir_p; then |
| 11595 | mkdir -p $dirpart/$fdir |
| 11596 | else |
| 11597 | as_dir=$dirpart/$fdir |
| 11598 | as_dirs= |
| 11599 | while test ! -d "$as_dir"; do |
| 11600 | as_dirs="$as_dir $as_dirs" |
| 11601 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 11602 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11603 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11604 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11605 | X"$as_dir" : 'X\(/\)' \| \ |
| 11606 | . : '\(.\)' 2>/dev/null || |
| 11607 | echo X"$as_dir" | |
| 11608 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11609 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11610 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11611 | /^X\(\/\).*/{ s//\1/; q; } |
| 11612 | s/.*/./; q'` |
| 11613 | done |
| 11614 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 11615 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 11616 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 11617 | { (exit 1); exit 1; }; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 11618 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11619 | # echo "creating $dirpart/$file" |
| 11620 | echo '# dummy' > "$dirpart/$file" |
| 11621 | done |
| 11622 | done |
| 11623 | ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 11624 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11625 | done |
| 11626 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 11627 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11628 | cat >>$CONFIG_STATUS <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 11629 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11630 | { (exit 0); exit 0; } |
| 11631 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 11632 | chmod +x $CONFIG_STATUS |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11633 | ac_clean_files=$ac_clean_files_save |
| 11634 | |
| 11635 | |
| 11636 | # configure is writing to config.log, and then calls config.status. |
| 11637 | # config.status does its own redirection, appending to config.log. |
| 11638 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 11639 | # by configure, so config.status won't be able to write to it; its |
| 11640 | # output is simply discarded. So we exec the FD to /dev/null, |
| 11641 | # effectively closing config.log, so it can be properly (re)opened and |
| 11642 | # appended to by config.status. When coming back to configure, we |
| 11643 | # need to make the FD available again. |
| 11644 | if test "$no_create" != yes; then |
| 11645 | ac_cs_success=: |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11646 | ac_config_status_args= |
| 11647 | test "$silent" = yes && |
| 11648 | ac_config_status_args="$ac_config_status_args --quiet" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11649 | exec 5>/dev/null |
jjako | 08d331d | 2003-10-13 20:33:30 +0000 | [diff] [blame] | 11650 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 11651 | exec 5>>config.log |
| 11652 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 11653 | # would make configure fail if this is the last instruction. |
| 11654 | $ac_cs_success || { (exit 1); exit 1; } |
| 11655 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 11656 | |