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 | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.53 for openggsn 0.52. |
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. |
| 11 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 12 | # Find the correct PATH separator. Usually this is `:', but |
| 13 | # DJGPP uses `;' like DOS. |
| 14 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 15 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 16 | case X$UNAME in |
| 17 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 18 | *) lt_cv_sys_path_separator=':' ;; |
| 19 | esac |
| 20 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
| 21 | fi |
| 22 | |
| 23 | |
| 24 | # Check that we are running under the correct shell. |
| 25 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 26 | |
| 27 | case X$ECHO in |
| 28 | X*--fallback-echo) |
| 29 | # Remove one level of quotation (which was required for Make). |
| 30 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 31 | ;; |
| 32 | esac |
| 33 | |
| 34 | echo=${ECHO-echo} |
| 35 | if test "X$1" = X--no-reexec; then |
| 36 | # Discard the --no-reexec flag, and continue. |
| 37 | shift |
| 38 | elif test "X$1" = X--fallback-echo; then |
| 39 | # Avoid inline document here, it may be left over |
| 40 | : |
| 41 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 42 | # Yippee, $echo works! |
| 43 | : |
| 44 | else |
| 45 | # Restart under the correct shell. |
| 46 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 47 | fi |
| 48 | |
| 49 | if test "X$1" = X--fallback-echo; then |
| 50 | # used as fallback echo |
| 51 | shift |
| 52 | cat <<EOF |
| 53 | |
| 54 | EOF |
| 55 | exit 0 |
| 56 | fi |
| 57 | |
| 58 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 59 | # if CDPATH is set. |
| 60 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 61 | |
| 62 | if test -z "$ECHO"; then |
| 63 | if test "X${echo_test_string+set}" != Xset; then |
| 64 | # find a string as large as possible, as long as the shell can cope with it |
| 65 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 66 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 67 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 68 | echo_test_string="`eval $cmd`" && |
| 69 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 70 | then |
| 71 | break |
| 72 | fi |
| 73 | done |
| 74 | fi |
| 75 | |
| 76 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 77 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 78 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 79 | : |
| 80 | else |
| 81 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 82 | # backslashes. This makes it impossible to quote backslashes using |
| 83 | # echo "$something" | sed 's/\\/\\\\/g' |
| 84 | # |
| 85 | # So, first we look for a working echo in the user's PATH. |
| 86 | |
| 87 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 88 | for dir in $PATH /usr/ucb; do |
| 89 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 90 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 91 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 92 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 93 | echo="$dir/echo" |
| 94 | break |
| 95 | fi |
| 96 | done |
| 97 | IFS="$save_ifs" |
| 98 | |
| 99 | if test "X$echo" = Xecho; then |
| 100 | # We didn't find a better echo, so look for alternatives. |
| 101 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 102 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 103 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 104 | # This shell has a builtin print -r that does the trick. |
| 105 | echo='print -r' |
| 106 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 107 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 108 | # If we have ksh, try running configure again with it. |
| 109 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 110 | export ORIGINAL_CONFIG_SHELL |
| 111 | CONFIG_SHELL=/bin/ksh |
| 112 | export CONFIG_SHELL |
| 113 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 114 | else |
| 115 | # Try using printf. |
| 116 | echo='printf %s\n' |
| 117 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 118 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 119 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 120 | # Cool, printf works |
| 121 | : |
| 122 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 123 | test "X$echo_testing_string" = 'X\t' && |
| 124 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 125 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 126 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 127 | export CONFIG_SHELL |
| 128 | SHELL="$CONFIG_SHELL" |
| 129 | export SHELL |
| 130 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 131 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 132 | test "X$echo_testing_string" = 'X\t' && |
| 133 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 134 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 135 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 136 | else |
| 137 | # maybe with a smaller string... |
| 138 | prev=: |
| 139 | |
| 140 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 141 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 142 | then |
| 143 | break |
| 144 | fi |
| 145 | prev="$cmd" |
| 146 | done |
| 147 | |
| 148 | if test "$prev" != 'sed 50q "$0"'; then |
| 149 | echo_test_string=`eval $prev` |
| 150 | export echo_test_string |
| 151 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 152 | else |
| 153 | # Oops. We lost completely, so just stick with echo. |
| 154 | echo=echo |
| 155 | fi |
| 156 | fi |
| 157 | fi |
| 158 | fi |
| 159 | fi |
| 160 | fi |
| 161 | |
| 162 | # Copy echo and quote the copy suitably for passing to libtool from |
| 163 | # the Makefile, instead of quoting the original, which is used later. |
| 164 | ECHO=$echo |
| 165 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 166 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 167 | fi |
| 168 | |
| 169 | |
| 170 | |
| 171 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 172 | as_expr=expr |
| 173 | else |
| 174 | as_expr=false |
| 175 | fi |
| 176 | |
| 177 | |
| 178 | ## --------------------- ## |
| 179 | ## M4sh Initialization. ## |
| 180 | ## --------------------- ## |
| 181 | |
| 182 | # Be Bourne compatible |
| 183 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 184 | emulate sh |
| 185 | NULLCMD=: |
| 186 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 187 | set -o posix |
| 188 | fi |
| 189 | |
| 190 | # NLS nuisances. |
| 191 | # Support unset when possible. |
| 192 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 193 | as_unset=unset |
| 194 | else |
| 195 | as_unset=false |
| 196 | fi |
| 197 | |
| 198 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 199 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 200 | { LANG=C; export LANG; } |
| 201 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 202 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 203 | { LC_ALL=C; export LC_ALL; } |
| 204 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 205 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 206 | { LC_TIME=C; export LC_TIME; } |
| 207 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 208 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 209 | { LC_CTYPE=C; export LC_CTYPE; } |
| 210 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 211 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 212 | { LANGUAGE=C; export LANGUAGE; } |
| 213 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 214 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 215 | { LC_COLLATE=C; export LC_COLLATE; } |
| 216 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 217 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 218 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 219 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 220 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 221 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 222 | |
| 223 | |
| 224 | # Name of the executable. |
| 225 | as_me=`(basename "$0") 2>/dev/null || |
| 226 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 227 | X"$0" : 'X\(//\)$' \| \ |
| 228 | X"$0" : 'X\(/\)$' \| \ |
| 229 | . : '\(.\)' 2>/dev/null || |
| 230 | echo X/"$0" | |
| 231 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 232 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 233 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 234 | s/.*/./; q'` |
| 235 | |
| 236 | # PATH needs CR, and LINENO needs CR and PATH. |
| 237 | # Avoid depending upon Character Ranges. |
| 238 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 239 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 240 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 241 | as_cr_digits='0123456789' |
| 242 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 243 | |
| 244 | # The user is always right. |
| 245 | if test "${PATH_SEPARATOR+set}" != set; then |
| 246 | echo "#! /bin/sh" >conftest.sh |
| 247 | echo "exit 0" >>conftest.sh |
| 248 | chmod +x conftest.sh |
| 249 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 250 | PATH_SEPARATOR=';' |
| 251 | else |
| 252 | PATH_SEPARATOR=: |
| 253 | fi |
| 254 | rm -f conftest.sh |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | as_lineno_1=$LINENO |
| 259 | as_lineno_2=$LINENO |
| 260 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 261 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 262 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 263 | # Find who we are. Look in the path if we contain no path at all |
| 264 | # relative or not. |
| 265 | case $0 in |
| 266 | *[\\/]* ) as_myself=$0 ;; |
| 267 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 268 | for as_dir in $PATH |
| 269 | do |
| 270 | IFS=$as_save_IFS |
| 271 | test -z "$as_dir" && as_dir=. |
| 272 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 273 | done |
| 274 | |
| 275 | ;; |
| 276 | esac |
| 277 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 278 | # in which case we are not to be found in the path. |
| 279 | if test "x$as_myself" = x; then |
| 280 | as_myself=$0 |
| 281 | fi |
| 282 | if test ! -f "$as_myself"; then |
| 283 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 284 | { (exit 1); exit 1; }; } |
| 285 | fi |
| 286 | case $CONFIG_SHELL in |
| 287 | '') |
| 288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 289 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 290 | do |
| 291 | IFS=$as_save_IFS |
| 292 | test -z "$as_dir" && as_dir=. |
| 293 | for as_base in sh bash ksh sh5; do |
| 294 | case $as_dir in |
| 295 | /*) |
| 296 | if ("$as_dir/$as_base" -c ' |
| 297 | as_lineno_1=$LINENO |
| 298 | as_lineno_2=$LINENO |
| 299 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 300 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 301 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 302 | CONFIG_SHELL=$as_dir/$as_base |
| 303 | export CONFIG_SHELL |
| 304 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 305 | fi;; |
| 306 | esac |
| 307 | done |
| 308 | done |
| 309 | ;; |
| 310 | esac |
| 311 | |
| 312 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 313 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 314 | # line-number line before each line; the second 'sed' does the real |
| 315 | # work. The second script uses 'N' to pair each line-number line |
| 316 | # with the numbered line, and appends trailing '-' during |
| 317 | # substitution so that $LINENO is not a special case at line end. |
| 318 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 319 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 320 | sed '=' <$as_myself | |
| 321 | sed ' |
| 322 | N |
| 323 | s,$,-, |
| 324 | : loop |
| 325 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 326 | t loop |
| 327 | s,-$,, |
| 328 | s,^['$as_cr_digits']*\n,, |
| 329 | ' >$as_me.lineno && |
| 330 | chmod +x $as_me.lineno || |
| 331 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 332 | { (exit 1); exit 1; }; } |
| 333 | |
| 334 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 335 | # (the dirname of $[0] is not the place where we might find the |
| 336 | # original and so on. Autoconf is especially sensible to this). |
| 337 | . ./$as_me.lineno |
| 338 | # Exit status is that of the last command. |
| 339 | exit |
| 340 | } |
| 341 | |
| 342 | |
| 343 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 344 | *c*,-n*) ECHO_N= ECHO_C=' |
| 345 | ' ECHO_T=' ' ;; |
| 346 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 347 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 348 | esac |
| 349 | |
| 350 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 351 | as_expr=expr |
| 352 | else |
| 353 | as_expr=false |
| 354 | fi |
| 355 | |
| 356 | rm -f conf$$ conf$$.exe conf$$.file |
| 357 | echo >conf$$.file |
| 358 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 359 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 360 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 361 | if test -f conf$$.exe; then |
| 362 | # Don't use ln at all; we don't have any links |
| 363 | as_ln_s='cp -p' |
| 364 | else |
| 365 | as_ln_s='ln -s' |
| 366 | fi |
| 367 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 368 | as_ln_s=ln |
| 369 | else |
| 370 | as_ln_s='cp -p' |
| 371 | fi |
| 372 | rm -f conf$$ conf$$.exe conf$$.file |
| 373 | |
| 374 | as_executable_p="test -f" |
| 375 | |
| 376 | # Sed expression to map a string onto a valid CPP name. |
| 377 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 378 | |
| 379 | # Sed expression to map a string onto a valid variable name. |
| 380 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 381 | |
| 382 | |
| 383 | # IFS |
| 384 | # We need space, tab and new line, in precisely that order. |
| 385 | as_nl=' |
| 386 | ' |
| 387 | IFS=" $as_nl" |
| 388 | |
| 389 | # CDPATH. |
| 390 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 391 | |
| 392 | |
| 393 | # Name of the host. |
| 394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 395 | # so uname gets run too. |
| 396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 397 | |
| 398 | exec 6>&1 |
| 399 | |
| 400 | # |
| 401 | # Initializations. |
| 402 | # |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 403 | ac_default_prefix=/usr/local |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 404 | cross_compiling=no |
| 405 | subdirs= |
| 406 | MFLAGS= |
| 407 | MAKEFLAGS= |
| 408 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 409 | |
| 410 | # Maximum number of lines to put in a shell here document. |
| 411 | # This variable seems obsolete. It should probably be removed, and |
| 412 | # only ac_max_sed_lines should be used. |
| 413 | : ${ac_max_here_lines=38} |
| 414 | |
| 415 | # Identity of this package. |
| 416 | PACKAGE_NAME='openggsn' |
| 417 | PACKAGE_TARNAME='openggsn' |
| 418 | PACKAGE_VERSION='0.52' |
| 419 | PACKAGE_STRING='openggsn 0.52' |
| 420 | PACKAGE_BUGREPORT='jj@openggsn.org' |
| 421 | |
| 422 | ac_unique_file="gtp/gtp.c" |
| 423 | # Factoring default headers for most tests. |
| 424 | ac_includes_default="\ |
| 425 | #include <stdio.h> |
| 426 | #if HAVE_SYS_TYPES_H |
| 427 | # include <sys/types.h> |
| 428 | #endif |
| 429 | #if HAVE_SYS_STAT_H |
| 430 | # include <sys/stat.h> |
| 431 | #endif |
| 432 | #if STDC_HEADERS |
| 433 | # include <stdlib.h> |
| 434 | # include <stddef.h> |
| 435 | #else |
| 436 | # if HAVE_STDLIB_H |
| 437 | # include <stdlib.h> |
| 438 | # endif |
| 439 | #endif |
| 440 | #if HAVE_STRING_H |
| 441 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 442 | # include <memory.h> |
| 443 | # endif |
| 444 | # include <string.h> |
| 445 | #endif |
| 446 | #if HAVE_STRINGS_H |
| 447 | # include <strings.h> |
| 448 | #endif |
| 449 | #if HAVE_INTTYPES_H |
| 450 | # include <inttypes.h> |
| 451 | #else |
| 452 | # if HAVE_STDINT_H |
| 453 | # include <stdint.h> |
| 454 | # endif |
| 455 | #endif |
| 456 | #if HAVE_UNISTD_H |
| 457 | # include <unistd.h> |
| 458 | #endif" |
| 459 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 460 | |
| 461 | # Initialize some variables set by options. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 462 | ac_init_help= |
| 463 | ac_init_version=false |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 464 | # The variables have the same names as the options, with |
| 465 | # dashes changed to underlines. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 466 | cache_file=/dev/null |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 467 | exec_prefix=NONE |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 468 | no_create= |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 469 | no_recursion= |
| 470 | prefix=NONE |
| 471 | program_prefix=NONE |
| 472 | program_suffix=NONE |
| 473 | program_transform_name=s,x,x, |
| 474 | silent= |
| 475 | site= |
| 476 | srcdir= |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 477 | verbose= |
| 478 | x_includes=NONE |
| 479 | x_libraries=NONE |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 480 | |
| 481 | # Installation directory options. |
| 482 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 483 | # and all the variables that are supposed to be based on exec_prefix |
| 484 | # by default will actually change. |
| 485 | # Use braces instead of parens because sh, perl, etc. also accept them. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 486 | bindir='${exec_prefix}/bin' |
| 487 | sbindir='${exec_prefix}/sbin' |
| 488 | libexecdir='${exec_prefix}/libexec' |
| 489 | datadir='${prefix}/share' |
| 490 | sysconfdir='${prefix}/etc' |
| 491 | sharedstatedir='${prefix}/com' |
| 492 | localstatedir='${prefix}/var' |
| 493 | libdir='${exec_prefix}/lib' |
| 494 | includedir='${prefix}/include' |
| 495 | oldincludedir='/usr/include' |
| 496 | infodir='${prefix}/info' |
| 497 | mandir='${prefix}/man' |
| 498 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 499 | ac_prev= |
| 500 | for ac_option |
| 501 | do |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 502 | # If the previous option needs an argument, assign it. |
| 503 | if test -n "$ac_prev"; then |
| 504 | eval "$ac_prev=\$ac_option" |
| 505 | ac_prev= |
| 506 | continue |
| 507 | fi |
| 508 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 509 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 510 | |
| 511 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 512 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 513 | case $ac_option in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 514 | |
| 515 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 516 | ac_prev=bindir ;; |
| 517 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 518 | bindir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 519 | |
| 520 | -build | --build | --buil | --bui | --bu) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 521 | ac_prev=build_alias ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 522 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 523 | build_alias=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 524 | |
| 525 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 526 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 527 | ac_prev=cache_file ;; |
| 528 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 529 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 530 | cache_file=$ac_optarg ;; |
| 531 | |
| 532 | --config-cache | -C) |
| 533 | cache_file=config.cache ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 534 | |
| 535 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 536 | ac_prev=datadir ;; |
| 537 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 538 | | --da=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 539 | datadir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 540 | |
| 541 | -disable-* | --disable-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 542 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 543 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 544 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 545 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 546 | { (exit 1); exit 1; }; } |
| 547 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 548 | eval "enable_$ac_feature=no" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 549 | |
| 550 | -enable-* | --enable-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 551 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 552 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 553 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 554 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 555 | { (exit 1); exit 1; }; } |
| 556 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 557 | case $ac_option in |
| 558 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 559 | *) ac_optarg=yes ;; |
| 560 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 561 | eval "enable_$ac_feature='$ac_optarg'" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 562 | |
| 563 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 564 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 565 | | --exec | --exe | --ex) |
| 566 | ac_prev=exec_prefix ;; |
| 567 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 568 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 569 | | --exec=* | --exe=* | --ex=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 570 | exec_prefix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 571 | |
| 572 | -gas | --gas | --ga | --g) |
| 573 | # Obsolete; use --with-gas. |
| 574 | with_gas=yes ;; |
| 575 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 576 | -help | --help | --hel | --he | -h) |
| 577 | ac_init_help=long ;; |
| 578 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 579 | ac_init_help=recursive ;; |
| 580 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 581 | ac_init_help=short ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 582 | |
| 583 | -host | --host | --hos | --ho) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 584 | ac_prev=host_alias ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 585 | -host=* | --host=* | --hos=* | --ho=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 586 | host_alias=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 587 | |
| 588 | -includedir | --includedir | --includedi | --included | --include \ |
| 589 | | --includ | --inclu | --incl | --inc) |
| 590 | ac_prev=includedir ;; |
| 591 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 592 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 593 | includedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 594 | |
| 595 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 596 | ac_prev=infodir ;; |
| 597 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 598 | infodir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 599 | |
| 600 | -libdir | --libdir | --libdi | --libd) |
| 601 | ac_prev=libdir ;; |
| 602 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 603 | libdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 604 | |
| 605 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 606 | | --libexe | --libex | --libe) |
| 607 | ac_prev=libexecdir ;; |
| 608 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 609 | | --libexe=* | --libex=* | --libe=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 610 | libexecdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 611 | |
| 612 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 613 | | --localstate | --localstat | --localsta | --localst \ |
| 614 | | --locals | --local | --loca | --loc | --lo) |
| 615 | ac_prev=localstatedir ;; |
| 616 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 617 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 618 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 619 | localstatedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 620 | |
| 621 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 622 | ac_prev=mandir ;; |
| 623 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 624 | mandir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 625 | |
| 626 | -nfp | --nfp | --nf) |
| 627 | # Obsolete; use --without-fp. |
| 628 | with_fp=no ;; |
| 629 | |
| 630 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 631 | | --no-cr | --no-c | -n) |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 632 | no_create=yes ;; |
| 633 | |
| 634 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 635 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 636 | no_recursion=yes ;; |
| 637 | |
| 638 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 639 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 640 | | --oldin | --oldi | --old | --ol | --o) |
| 641 | ac_prev=oldincludedir ;; |
| 642 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 643 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 644 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 645 | oldincludedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 646 | |
| 647 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 648 | ac_prev=prefix ;; |
| 649 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 650 | prefix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 651 | |
| 652 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 653 | | --program-pre | --program-pr | --program-p) |
| 654 | ac_prev=program_prefix ;; |
| 655 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 656 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 657 | program_prefix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 658 | |
| 659 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 660 | | --program-suf | --program-su | --program-s) |
| 661 | ac_prev=program_suffix ;; |
| 662 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 663 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 664 | program_suffix=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 665 | |
| 666 | -program-transform-name | --program-transform-name \ |
| 667 | | --program-transform-nam | --program-transform-na \ |
| 668 | | --program-transform-n | --program-transform- \ |
| 669 | | --program-transform | --program-transfor \ |
| 670 | | --program-transfo | --program-transf \ |
| 671 | | --program-trans | --program-tran \ |
| 672 | | --progr-tra | --program-tr | --program-t) |
| 673 | ac_prev=program_transform_name ;; |
| 674 | -program-transform-name=* | --program-transform-name=* \ |
| 675 | | --program-transform-nam=* | --program-transform-na=* \ |
| 676 | | --program-transform-n=* | --program-transform-=* \ |
| 677 | | --program-transform=* | --program-transfor=* \ |
| 678 | | --program-transfo=* | --program-transf=* \ |
| 679 | | --program-trans=* | --program-tran=* \ |
| 680 | | --progr-tra=* | --program-tr=* | --program-t=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 681 | program_transform_name=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 682 | |
| 683 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 684 | | -silent | --silent | --silen | --sile | --sil) |
| 685 | silent=yes ;; |
| 686 | |
| 687 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 688 | ac_prev=sbindir ;; |
| 689 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 690 | | --sbi=* | --sb=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 691 | sbindir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 692 | |
| 693 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 694 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 695 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 696 | | --sha | --sh) |
| 697 | ac_prev=sharedstatedir ;; |
| 698 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 699 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 700 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 701 | | --sha=* | --sh=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 702 | sharedstatedir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 703 | |
| 704 | -site | --site | --sit) |
| 705 | ac_prev=site ;; |
| 706 | -site=* | --site=* | --sit=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 707 | site=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 708 | |
| 709 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 710 | ac_prev=srcdir ;; |
| 711 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 712 | srcdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 713 | |
| 714 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 715 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 716 | ac_prev=sysconfdir ;; |
| 717 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 718 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 719 | sysconfdir=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 720 | |
| 721 | -target | --target | --targe | --targ | --tar | --ta | --t) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 722 | ac_prev=target_alias ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 723 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 724 | target_alias=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 725 | |
| 726 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 727 | verbose=yes ;; |
| 728 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 729 | -version | --version | --versio | --versi | --vers | -V) |
| 730 | ac_init_version=: ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 731 | |
| 732 | -with-* | --with-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 733 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 734 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 735 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 736 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 737 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 738 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 739 | case $ac_option in |
| 740 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 741 | *) ac_optarg=yes ;; |
| 742 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 743 | eval "with_$ac_package='$ac_optarg'" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 744 | |
| 745 | -without-* | --without-*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 746 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 747 | # Reject names that are not valid shell variable names. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 748 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 749 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 750 | { (exit 1); exit 1; }; } |
| 751 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 752 | eval "with_$ac_package=no" ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 753 | |
| 754 | --x) |
| 755 | # Obsolete; use --with-x. |
| 756 | with_x=yes ;; |
| 757 | |
| 758 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 759 | | --x-incl | --x-inc | --x-in | --x-i) |
| 760 | ac_prev=x_includes ;; |
| 761 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 762 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 763 | x_includes=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 764 | |
| 765 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 766 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 767 | ac_prev=x_libraries ;; |
| 768 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 769 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 770 | x_libraries=$ac_optarg ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 771 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 772 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 773 | Try \`$0 --help' for more information." >&2 |
| 774 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 775 | ;; |
| 776 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 777 | *=*) |
| 778 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 779 | # Reject names that are not valid shell variable names. |
| 780 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 781 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 782 | { (exit 1); exit 1; }; } |
| 783 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 784 | eval "$ac_envvar='$ac_optarg'" |
| 785 | export $ac_envvar ;; |
| 786 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 787 | *) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 788 | # FIXME: should be removed in autoconf 3.0. |
| 789 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 790 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 791 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 792 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 793 | ;; |
| 794 | |
| 795 | esac |
| 796 | done |
| 797 | |
| 798 | if test -n "$ac_prev"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 799 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 800 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 801 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 802 | fi |
| 803 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 804 | # Be sure to have absolute paths. |
| 805 | for ac_var in exec_prefix prefix |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 806 | do |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 807 | eval ac_val=$`echo $ac_var` |
| 808 | case $ac_val in |
| 809 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 810 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 811 | { (exit 1); exit 1; }; };; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 812 | esac |
| 813 | done |
| 814 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 815 | # Be sure to have absolute paths. |
| 816 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 817 | localstatedir libdir includedir oldincludedir infodir mandir |
| 818 | do |
| 819 | eval ac_val=$`echo $ac_var` |
| 820 | case $ac_val in |
| 821 | [\\/$]* | ?:[\\/]* ) ;; |
| 822 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 823 | { (exit 1); exit 1; }; };; |
| 824 | esac |
| 825 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 826 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 827 | # There might be people who depend on the old broken behavior: `$host' |
| 828 | # used to hold the argument of --host etc. |
| 829 | # FIXME: To remove some day. |
| 830 | build=$build_alias |
| 831 | host=$host_alias |
| 832 | target=$target_alias |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 833 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 834 | # FIXME: To remove some day. |
| 835 | if test "x$host_alias" != x; then |
| 836 | if test "x$build_alias" = x; then |
| 837 | cross_compiling=maybe |
| 838 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 839 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 840 | elif test "x$build_alias" != "x$host_alias"; then |
| 841 | cross_compiling=yes |
| 842 | fi |
| 843 | fi |
| 844 | |
| 845 | ac_tool_prefix= |
| 846 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 847 | |
| 848 | test "$silent" = yes && exec 6>/dev/null |
| 849 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 850 | |
| 851 | # Find the source files, if location was not specified. |
| 852 | if test -z "$srcdir"; then |
| 853 | ac_srcdir_defaulted=yes |
| 854 | # Try the directory containing this script, then its parent. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 855 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 856 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 857 | X"$0" : 'X\(//\)[^/]' \| \ |
| 858 | X"$0" : 'X\(//\)$' \| \ |
| 859 | X"$0" : 'X\(/\)' \| \ |
| 860 | . : '\(.\)' 2>/dev/null || |
| 861 | echo X"$0" | |
| 862 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 863 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 864 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 865 | /^X\(\/\).*/{ s//\1/; q; } |
| 866 | s/.*/./; q'` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 867 | srcdir=$ac_confdir |
| 868 | if test ! -r $srcdir/$ac_unique_file; then |
| 869 | srcdir=.. |
| 870 | fi |
| 871 | else |
| 872 | ac_srcdir_defaulted=no |
| 873 | fi |
| 874 | if test ! -r $srcdir/$ac_unique_file; then |
| 875 | if test "$ac_srcdir_defaulted" = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 876 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 877 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 878 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 879 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 880 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 881 | fi |
| 882 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 883 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 884 | ac_env_build_alias_set=${build_alias+set} |
| 885 | ac_env_build_alias_value=$build_alias |
| 886 | ac_cv_env_build_alias_set=${build_alias+set} |
| 887 | ac_cv_env_build_alias_value=$build_alias |
| 888 | ac_env_host_alias_set=${host_alias+set} |
| 889 | ac_env_host_alias_value=$host_alias |
| 890 | ac_cv_env_host_alias_set=${host_alias+set} |
| 891 | ac_cv_env_host_alias_value=$host_alias |
| 892 | ac_env_target_alias_set=${target_alias+set} |
| 893 | ac_env_target_alias_value=$target_alias |
| 894 | ac_cv_env_target_alias_set=${target_alias+set} |
| 895 | ac_cv_env_target_alias_value=$target_alias |
| 896 | ac_env_CC_set=${CC+set} |
| 897 | ac_env_CC_value=$CC |
| 898 | ac_cv_env_CC_set=${CC+set} |
| 899 | ac_cv_env_CC_value=$CC |
| 900 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 901 | ac_env_CFLAGS_value=$CFLAGS |
| 902 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 903 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 904 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 905 | ac_env_LDFLAGS_value=$LDFLAGS |
| 906 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 907 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 908 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 909 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 910 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 911 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 912 | ac_env_CPP_set=${CPP+set} |
| 913 | ac_env_CPP_value=$CPP |
| 914 | ac_cv_env_CPP_set=${CPP+set} |
| 915 | ac_cv_env_CPP_value=$CPP |
| 916 | ac_env_CXX_set=${CXX+set} |
| 917 | ac_env_CXX_value=$CXX |
| 918 | ac_cv_env_CXX_set=${CXX+set} |
| 919 | ac_cv_env_CXX_value=$CXX |
| 920 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 921 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 922 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 923 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 924 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 925 | # |
| 926 | # Report the --help message. |
| 927 | # |
| 928 | if test "$ac_init_help" = "long"; then |
| 929 | # Omit some internal or obsolete options to make the list less imposing. |
| 930 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 931 | cat <<_ACEOF |
| 932 | \`configure' configures openggsn 0.52 to adapt to many kinds of systems. |
| 933 | |
| 934 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 935 | |
| 936 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 937 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 938 | |
| 939 | Defaults for the options are specified in brackets. |
| 940 | |
| 941 | Configuration: |
| 942 | -h, --help display this help and exit |
| 943 | --help=short display options specific to this package |
| 944 | --help=recursive display the short help of all the included packages |
| 945 | -V, --version display version information and exit |
| 946 | -q, --quiet, --silent do not print \`checking...' messages |
| 947 | --cache-file=FILE cache test results in FILE [disabled] |
| 948 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 949 | -n, --no-create do not create output files |
| 950 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 951 | |
| 952 | _ACEOF |
| 953 | |
| 954 | cat <<_ACEOF |
| 955 | Installation directories: |
| 956 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 957 | [$ac_default_prefix] |
| 958 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 959 | [PREFIX] |
| 960 | |
| 961 | By default, \`make install' will install all the files in |
| 962 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 963 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 964 | for instance \`--prefix=\$HOME'. |
| 965 | |
| 966 | For better control, use the options below. |
| 967 | |
| 968 | Fine tuning of the installation directories: |
| 969 | --bindir=DIR user executables [EPREFIX/bin] |
| 970 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 971 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 972 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 973 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 974 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 975 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 976 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 977 | --includedir=DIR C header files [PREFIX/include] |
| 978 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 979 | --infodir=DIR info documentation [PREFIX/info] |
| 980 | --mandir=DIR man documentation [PREFIX/man] |
| 981 | _ACEOF |
| 982 | |
| 983 | cat <<\_ACEOF |
| 984 | |
| 985 | Program names: |
| 986 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 987 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 988 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 989 | |
| 990 | System types: |
| 991 | --build=BUILD configure for building on BUILD [guessed] |
| 992 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 993 | _ACEOF |
| 994 | fi |
| 995 | |
| 996 | if test -n "$ac_init_help"; then |
| 997 | case $ac_init_help in |
| 998 | short | recursive ) echo "Configuration of openggsn 0.52:";; |
| 999 | esac |
| 1000 | cat <<\_ACEOF |
| 1001 | |
| 1002 | Optional Features: |
| 1003 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1004 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1005 | --enable-shared=PKGS build shared libraries default=yes |
| 1006 | --enable-static=PKGS build static libraries default=yes |
| 1007 | --enable-fast-install=PKGS optimize for fast installation default=yes |
| 1008 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1009 | --disable-dependency-tracking Speeds up one-time builds |
| 1010 | --enable-dependency-tracking Do not reject slow dependency extractors |
| 1011 | |
| 1012 | Optional Packages: |
| 1013 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1014 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1015 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1016 | --with-pic try to use only PIC/non-PIC objects default=use both |
| 1017 | |
| 1018 | Some influential environment variables: |
| 1019 | CC C compiler command |
| 1020 | CFLAGS C compiler flags |
| 1021 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1022 | nonstandard directory <lib dir> |
| 1023 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1024 | headers in a nonstandard directory <include dir> |
| 1025 | CPP C preprocessor |
| 1026 | CXX C++ compiler command |
| 1027 | CXXFLAGS C++ compiler flags |
| 1028 | |
| 1029 | Use these variables to override the choices made by `configure' or to help |
| 1030 | it to find libraries and programs with nonstandard names/locations. |
| 1031 | |
| 1032 | Report bugs to <jj@openggsn.org>. |
| 1033 | _ACEOF |
| 1034 | fi |
| 1035 | |
| 1036 | if test "$ac_init_help" = "recursive"; then |
| 1037 | # If there are subdirs, report their specific --help. |
| 1038 | ac_popdir=`pwd` |
| 1039 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1040 | test -d $ac_dir || continue |
| 1041 | ac_builddir=. |
| 1042 | |
| 1043 | if test "$ac_dir" != .; then |
| 1044 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1045 | # A "../" for each directory in $ac_dir_suffix. |
| 1046 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1047 | else |
| 1048 | ac_dir_suffix= ac_top_builddir= |
| 1049 | fi |
| 1050 | |
| 1051 | case $srcdir in |
| 1052 | .) # No --srcdir option. We are building in place. |
| 1053 | ac_srcdir=. |
| 1054 | if test -z "$ac_top_builddir"; then |
| 1055 | ac_top_srcdir=. |
| 1056 | else |
| 1057 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1058 | fi ;; |
| 1059 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1060 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1061 | ac_top_srcdir=$srcdir ;; |
| 1062 | *) # Relative path. |
| 1063 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1064 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1065 | esac |
| 1066 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1067 | # absolute. |
| 1068 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 1069 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 1070 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1071 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1072 | |
| 1073 | cd $ac_dir |
| 1074 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1075 | if test -f $ac_srcdir/configure.gnu; then |
| 1076 | echo |
| 1077 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1078 | elif test -f $ac_srcdir/configure; then |
| 1079 | echo |
| 1080 | $SHELL $ac_srcdir/configure --help=recursive |
| 1081 | elif test -f $ac_srcdir/configure.ac || |
| 1082 | test -f $ac_srcdir/configure.in; then |
| 1083 | echo |
| 1084 | $ac_configure --help |
| 1085 | else |
| 1086 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1087 | fi |
| 1088 | cd $ac_popdir |
| 1089 | done |
| 1090 | fi |
| 1091 | |
| 1092 | test -n "$ac_init_help" && exit 0 |
| 1093 | if $ac_init_version; then |
| 1094 | cat <<\_ACEOF |
| 1095 | openggsn configure 0.52 |
| 1096 | generated by GNU Autoconf 2.53 |
| 1097 | |
| 1098 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 1099 | Free Software Foundation, Inc. |
| 1100 | This configure script is free software; the Free Software Foundation |
| 1101 | gives unlimited permission to copy, distribute and modify it. |
| 1102 | _ACEOF |
| 1103 | exit 0 |
| 1104 | fi |
| 1105 | exec 5>config.log |
| 1106 | cat >&5 <<_ACEOF |
| 1107 | This file contains any messages produced by compilers while |
| 1108 | running configure, to aid debugging if configure makes a mistake. |
| 1109 | |
| 1110 | It was created by openggsn $as_me 0.52, which was |
| 1111 | generated by GNU Autoconf 2.53. Invocation command line was |
| 1112 | |
| 1113 | $ $0 $@ |
| 1114 | |
| 1115 | _ACEOF |
| 1116 | { |
| 1117 | cat <<_ASUNAME |
| 1118 | ## --------- ## |
| 1119 | ## Platform. ## |
| 1120 | ## --------- ## |
| 1121 | |
| 1122 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1123 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1124 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1125 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1126 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1127 | |
| 1128 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1129 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1130 | |
| 1131 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1132 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1133 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1134 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1135 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1136 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1137 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1138 | |
| 1139 | _ASUNAME |
| 1140 | |
| 1141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1142 | for as_dir in $PATH |
| 1143 | do |
| 1144 | IFS=$as_save_IFS |
| 1145 | test -z "$as_dir" && as_dir=. |
| 1146 | echo "PATH: $as_dir" |
| 1147 | done |
| 1148 | |
| 1149 | } >&5 |
| 1150 | |
| 1151 | cat >&5 <<_ACEOF |
| 1152 | |
| 1153 | |
| 1154 | ## ----------- ## |
| 1155 | ## Core tests. ## |
| 1156 | ## ----------- ## |
| 1157 | |
| 1158 | _ACEOF |
| 1159 | |
| 1160 | |
| 1161 | # Keep a trace of the command line. |
| 1162 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1163 | # Also quote any args containing shell meta-characters. |
| 1164 | ac_configure_args= |
| 1165 | ac_sep= |
| 1166 | for ac_arg |
| 1167 | do |
| 1168 | case $ac_arg in |
| 1169 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1170 | | --no-cr | --no-c | -n ) continue ;; |
| 1171 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1172 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1173 | continue ;; |
| 1174 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1175 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1176 | esac |
| 1177 | case " $ac_configure_args " in |
| 1178 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1179 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1180 | ac_sep=" " ;; |
| 1181 | esac |
| 1182 | # Get rid of the leading space. |
| 1183 | done |
| 1184 | |
| 1185 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1186 | # config.log. We remove comments because anyway the quotes in there |
| 1187 | # would cause problems or look ugly. |
| 1188 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1189 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1190 | trap 'exit_status=$? |
| 1191 | # Save into config.log some information that might help in debugging. |
| 1192 | { |
| 1193 | echo |
| 1194 | cat <<\_ASBOX |
| 1195 | ## ---------------- ## |
| 1196 | ## Cache variables. ## |
| 1197 | ## ---------------- ## |
| 1198 | _ASBOX |
| 1199 | echo |
| 1200 | # The following way of writing the cache mishandles newlines in values, |
| 1201 | { |
| 1202 | (set) 2>&1 | |
| 1203 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1204 | *ac_space=\ *) |
| 1205 | sed -n \ |
| 1206 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1207 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1208 | ;; |
| 1209 | *) |
| 1210 | sed -n \ |
| 1211 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1212 | ;; |
| 1213 | esac; |
| 1214 | } |
| 1215 | echo |
| 1216 | if test -s confdefs.h; then |
| 1217 | cat <<\_ASBOX |
| 1218 | ## ----------- ## |
| 1219 | ## confdefs.h. ## |
| 1220 | ## ----------- ## |
| 1221 | _ASBOX |
| 1222 | echo |
| 1223 | sed "/^$/d" confdefs.h |
| 1224 | echo |
| 1225 | fi |
| 1226 | test "$ac_signal" != 0 && |
| 1227 | echo "$as_me: caught signal $ac_signal" |
| 1228 | echo "$as_me: exit $exit_status" |
| 1229 | } >&5 |
| 1230 | rm -f core core.* *.core && |
| 1231 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1232 | exit $exit_status |
| 1233 | ' 0 |
| 1234 | for ac_signal in 1 2 13 15; do |
| 1235 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1236 | done |
| 1237 | ac_signal=0 |
| 1238 | |
| 1239 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1240 | rm -rf conftest* confdefs.h |
| 1241 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1242 | echo >confdefs.h |
| 1243 | |
| 1244 | # Predefined preprocessor variables. |
| 1245 | |
| 1246 | cat >>confdefs.h <<_ACEOF |
| 1247 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1248 | _ACEOF |
| 1249 | |
| 1250 | |
| 1251 | cat >>confdefs.h <<_ACEOF |
| 1252 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1253 | _ACEOF |
| 1254 | |
| 1255 | |
| 1256 | cat >>confdefs.h <<_ACEOF |
| 1257 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1258 | _ACEOF |
| 1259 | |
| 1260 | |
| 1261 | cat >>confdefs.h <<_ACEOF |
| 1262 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1263 | _ACEOF |
| 1264 | |
| 1265 | |
| 1266 | cat >>confdefs.h <<_ACEOF |
| 1267 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1268 | _ACEOF |
| 1269 | |
| 1270 | |
| 1271 | # Let the site file select an alternate cache file if it wants to. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1272 | # Prefer explicitly selected file to automatically selected ones. |
| 1273 | if test -z "$CONFIG_SITE"; then |
| 1274 | if test "x$prefix" != xNONE; then |
| 1275 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1276 | else |
| 1277 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1278 | fi |
| 1279 | fi |
| 1280 | for ac_site_file in $CONFIG_SITE; do |
| 1281 | if test -r "$ac_site_file"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1282 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1283 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1284 | sed 's/^/| /' "$ac_site_file" >&5 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1285 | . "$ac_site_file" |
| 1286 | fi |
| 1287 | done |
| 1288 | |
| 1289 | if test -r "$cache_file"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1290 | # Some versions of bash will fail to source /dev/null (special |
| 1291 | # files actually), so we avoid doing that. |
| 1292 | if test -f "$cache_file"; then |
| 1293 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1294 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1295 | case $cache_file in |
| 1296 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1297 | *) . ./$cache_file;; |
| 1298 | esac |
| 1299 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1300 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1301 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1302 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1303 | >$cache_file |
| 1304 | fi |
| 1305 | |
| 1306 | # Check that the precious variables saved in the cache have kept the same |
| 1307 | # value. |
| 1308 | ac_cache_corrupted=false |
| 1309 | for ac_var in `(set) 2>&1 | |
| 1310 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1311 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1312 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1313 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1314 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1315 | case $ac_old_set,$ac_new_set in |
| 1316 | set,) |
| 1317 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1318 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1319 | ac_cache_corrupted=: ;; |
| 1320 | ,set) |
| 1321 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1322 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1323 | ac_cache_corrupted=: ;; |
| 1324 | ,);; |
| 1325 | *) |
| 1326 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1327 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1328 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1329 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1330 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1331 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1332 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1333 | ac_cache_corrupted=: |
| 1334 | fi;; |
| 1335 | esac |
| 1336 | # Pass precious variables to config.status. |
| 1337 | if test "$ac_new_set" = set; then |
| 1338 | case $ac_new_val in |
| 1339 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1340 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1341 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1342 | esac |
| 1343 | case " $ac_configure_args " in |
| 1344 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1345 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1346 | esac |
| 1347 | fi |
| 1348 | done |
| 1349 | if $ac_cache_corrupted; then |
| 1350 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1351 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1352 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1353 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1354 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1355 | fi |
| 1356 | |
| 1357 | ac_ext=c |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1358 | ac_cpp='$CPP $CPPFLAGS' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1362 | |
| 1363 | |
| 1364 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1365 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1366 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1367 | |
| 1368 | |
| 1369 | |
| 1370 | |
| 1371 | |
| 1372 | |
| 1373 | |
| 1374 | |
| 1375 | |
| 1376 | |
| 1377 | |
| 1378 | |
| 1379 | |
| 1380 | |
| 1381 | |
| 1382 | |
| 1383 | |
| 1384 | |
| 1385 | |
| 1386 | |
| 1387 | |
| 1388 | |
| 1389 | # Add the stamp file to the list of files AC keeps track of, |
| 1390 | # along with our hook. |
| 1391 | ac_config_headers="$ac_config_headers config.h" |
| 1392 | |
| 1393 | |
| 1394 | |
| 1395 | #AC_CONFIG_HEADER([config.h]) |
| 1396 | |
| 1397 | # Checks for programs. |
| 1398 | ac_ext=c |
| 1399 | ac_cpp='$CPP $CPPFLAGS' |
| 1400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1403 | if test -n "$ac_tool_prefix"; then |
| 1404 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1405 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1408 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1410 | else |
| 1411 | if test -n "$CC"; then |
| 1412 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1413 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1415 | for as_dir in $PATH |
| 1416 | do |
| 1417 | IFS=$as_save_IFS |
| 1418 | test -z "$as_dir" && as_dir=. |
| 1419 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1421 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1423 | break 2 |
| 1424 | fi |
| 1425 | done |
| 1426 | done |
| 1427 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1428 | fi |
| 1429 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1430 | CC=$ac_cv_prog_CC |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1431 | if test -n "$CC"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1432 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1433 | echo "${ECHO_T}$CC" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1434 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1435 | echo "$as_me:$LINENO: result: no" >&5 |
| 1436 | echo "${ECHO_T}no" >&6 |
| 1437 | fi |
| 1438 | |
| 1439 | fi |
| 1440 | if test -z "$ac_cv_prog_CC"; then |
| 1441 | ac_ct_CC=$CC |
| 1442 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1443 | set dummy gcc; ac_word=$2 |
| 1444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1446 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1448 | else |
| 1449 | if test -n "$ac_ct_CC"; then |
| 1450 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1451 | else |
| 1452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1453 | for as_dir in $PATH |
| 1454 | do |
| 1455 | IFS=$as_save_IFS |
| 1456 | test -z "$as_dir" && as_dir=. |
| 1457 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1459 | ac_cv_prog_ac_ct_CC="gcc" |
| 1460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1461 | break 2 |
| 1462 | fi |
| 1463 | done |
| 1464 | done |
| 1465 | |
| 1466 | fi |
| 1467 | fi |
| 1468 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1469 | if test -n "$ac_ct_CC"; then |
| 1470 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1471 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1472 | else |
| 1473 | echo "$as_me:$LINENO: result: no" >&5 |
| 1474 | echo "${ECHO_T}no" >&6 |
| 1475 | fi |
| 1476 | |
| 1477 | CC=$ac_ct_CC |
| 1478 | else |
| 1479 | CC="$ac_cv_prog_CC" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1480 | fi |
| 1481 | |
| 1482 | if test -z "$CC"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1483 | if test -n "$ac_tool_prefix"; then |
| 1484 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1485 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1488 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1490 | else |
| 1491 | if test -n "$CC"; then |
| 1492 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1493 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1495 | for as_dir in $PATH |
| 1496 | do |
| 1497 | IFS=$as_save_IFS |
| 1498 | test -z "$as_dir" && as_dir=. |
| 1499 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1501 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1503 | break 2 |
| 1504 | fi |
| 1505 | done |
| 1506 | done |
| 1507 | |
| 1508 | fi |
| 1509 | fi |
| 1510 | CC=$ac_cv_prog_CC |
| 1511 | if test -n "$CC"; then |
| 1512 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1513 | echo "${ECHO_T}$CC" >&6 |
| 1514 | else |
| 1515 | echo "$as_me:$LINENO: result: no" >&5 |
| 1516 | echo "${ECHO_T}no" >&6 |
| 1517 | fi |
| 1518 | |
| 1519 | fi |
| 1520 | if test -z "$ac_cv_prog_CC"; then |
| 1521 | ac_ct_CC=$CC |
| 1522 | # Extract the first word of "cc", so it can be a program name with args. |
| 1523 | set dummy cc; ac_word=$2 |
| 1524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1526 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1528 | else |
| 1529 | if test -n "$ac_ct_CC"; then |
| 1530 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1531 | else |
| 1532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1533 | for as_dir in $PATH |
| 1534 | do |
| 1535 | IFS=$as_save_IFS |
| 1536 | test -z "$as_dir" && as_dir=. |
| 1537 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1539 | ac_cv_prog_ac_ct_CC="cc" |
| 1540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1541 | break 2 |
| 1542 | fi |
| 1543 | done |
| 1544 | done |
| 1545 | |
| 1546 | fi |
| 1547 | fi |
| 1548 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1549 | if test -n "$ac_ct_CC"; then |
| 1550 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1551 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1552 | else |
| 1553 | echo "$as_me:$LINENO: result: no" >&5 |
| 1554 | echo "${ECHO_T}no" >&6 |
| 1555 | fi |
| 1556 | |
| 1557 | CC=$ac_ct_CC |
| 1558 | else |
| 1559 | CC="$ac_cv_prog_CC" |
| 1560 | fi |
| 1561 | |
| 1562 | fi |
| 1563 | if test -z "$CC"; then |
| 1564 | # Extract the first word of "cc", so it can be a program name with args. |
| 1565 | set dummy cc; ac_word=$2 |
| 1566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1568 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1570 | else |
| 1571 | if test -n "$CC"; then |
| 1572 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1573 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1574 | ac_prog_rejected=no |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1576 | for as_dir in $PATH |
| 1577 | do |
| 1578 | IFS=$as_save_IFS |
| 1579 | test -z "$as_dir" && as_dir=. |
| 1580 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1581 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1582 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1583 | ac_prog_rejected=yes |
| 1584 | continue |
| 1585 | fi |
| 1586 | ac_cv_prog_CC="cc" |
| 1587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1588 | break 2 |
| 1589 | fi |
| 1590 | done |
| 1591 | done |
| 1592 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1593 | if test $ac_prog_rejected = yes; then |
| 1594 | # We found a bogon in the path, so make sure we never use it. |
| 1595 | set dummy $ac_cv_prog_CC |
| 1596 | shift |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1597 | if test $# != 0; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1598 | # We chose a different compiler from the bogus one. |
| 1599 | # However, it has the same basename, so the bogon will be chosen |
| 1600 | # first if we set CC to just the basename; use the full file name. |
| 1601 | shift |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1602 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1603 | shift |
| 1604 | ac_cv_prog_CC="$@" |
| 1605 | fi |
| 1606 | fi |
| 1607 | fi |
| 1608 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1609 | CC=$ac_cv_prog_CC |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1610 | if test -n "$CC"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1611 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1612 | echo "${ECHO_T}$CC" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1613 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1614 | echo "$as_me:$LINENO: result: no" >&5 |
| 1615 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1616 | fi |
| 1617 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1618 | fi |
| 1619 | if test -z "$CC"; then |
| 1620 | if test -n "$ac_tool_prefix"; then |
| 1621 | for ac_prog in cl |
| 1622 | do |
| 1623 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1624 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1625 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1627 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1629 | else |
| 1630 | if test -n "$CC"; then |
| 1631 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1632 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1634 | for as_dir in $PATH |
| 1635 | do |
| 1636 | IFS=$as_save_IFS |
| 1637 | test -z "$as_dir" && as_dir=. |
| 1638 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1639 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1640 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1642 | break 2 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1643 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1644 | done |
| 1645 | done |
| 1646 | |
| 1647 | fi |
| 1648 | fi |
| 1649 | CC=$ac_cv_prog_CC |
| 1650 | if test -n "$CC"; then |
| 1651 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1652 | echo "${ECHO_T}$CC" >&6 |
| 1653 | else |
| 1654 | echo "$as_me:$LINENO: result: no" >&5 |
| 1655 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1656 | fi |
| 1657 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1658 | test -n "$CC" && break |
| 1659 | done |
| 1660 | fi |
| 1661 | if test -z "$CC"; then |
| 1662 | ac_ct_CC=$CC |
| 1663 | for ac_prog in cl |
| 1664 | do |
| 1665 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1666 | set dummy $ac_prog; ac_word=$2 |
| 1667 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1668 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1669 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1671 | else |
| 1672 | if test -n "$ac_ct_CC"; then |
| 1673 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1674 | else |
| 1675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1676 | for as_dir in $PATH |
| 1677 | do |
| 1678 | IFS=$as_save_IFS |
| 1679 | test -z "$as_dir" && as_dir=. |
| 1680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1681 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1682 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1684 | break 2 |
| 1685 | fi |
| 1686 | done |
| 1687 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1688 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1689 | fi |
| 1690 | fi |
| 1691 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1692 | if test -n "$ac_ct_CC"; then |
| 1693 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1694 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1695 | else |
| 1696 | echo "$as_me:$LINENO: result: no" >&5 |
| 1697 | echo "${ECHO_T}no" >&6 |
| 1698 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1699 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1700 | test -n "$ac_ct_CC" && break |
| 1701 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1702 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1703 | CC=$ac_ct_CC |
| 1704 | fi |
| 1705 | |
| 1706 | fi |
| 1707 | |
| 1708 | |
| 1709 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1710 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1711 | { (exit 1); exit 1; }; } |
| 1712 | |
| 1713 | # Provide some information about the compiler. |
| 1714 | echo "$as_me:$LINENO:" \ |
| 1715 | "checking for C compiler version" >&5 |
| 1716 | ac_compiler=`set X $ac_compile; echo $2` |
| 1717 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1718 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1719 | ac_status=$? |
| 1720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1721 | (exit $ac_status); } |
| 1722 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1723 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1724 | ac_status=$? |
| 1725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1726 | (exit $ac_status); } |
| 1727 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1728 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1729 | ac_status=$? |
| 1730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1731 | (exit $ac_status); } |
| 1732 | |
| 1733 | cat >conftest.$ac_ext <<_ACEOF |
| 1734 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1735 | #include "confdefs.h" |
| 1736 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1737 | #ifdef F77_DUMMY_MAIN |
| 1738 | # ifdef __cplusplus |
| 1739 | extern "C" |
| 1740 | # endif |
| 1741 | int F77_DUMMY_MAIN() { return 1; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1742 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1743 | int |
| 1744 | main () |
| 1745 | { |
| 1746 | |
| 1747 | ; |
| 1748 | return 0; |
| 1749 | } |
| 1750 | _ACEOF |
| 1751 | ac_clean_files_save=$ac_clean_files |
| 1752 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1753 | # Try to create an executable without -o first, disregard a.out. |
| 1754 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1755 | # of exeext. |
| 1756 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 1757 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1758 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1759 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1760 | (eval $ac_link_default) 2>&5 |
| 1761 | ac_status=$? |
| 1762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1763 | (exit $ac_status); }; then |
| 1764 | # Find the output, starting from the most likely. This scheme is |
| 1765 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1766 | # resort. |
| 1767 | |
| 1768 | # Be careful to initialize this variable, since it used to be cached. |
| 1769 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1770 | ac_cv_exeext= |
| 1771 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1772 | ls a.out conftest 2>/dev/null; |
| 1773 | ls a.* conftest.* 2>/dev/null`; do |
| 1774 | case $ac_file in |
| 1775 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1776 | a.out ) # We found the default executable, but exeext='' is most |
| 1777 | # certainly right. |
| 1778 | break;; |
| 1779 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1780 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1781 | export ac_cv_exeext |
| 1782 | break;; |
| 1783 | * ) break;; |
| 1784 | esac |
| 1785 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1786 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1787 | echo "$as_me: failed program was:" >&5 |
| 1788 | cat conftest.$ac_ext >&5 |
| 1789 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 1790 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 1791 | { (exit 77); exit 77; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1792 | fi |
| 1793 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1794 | ac_exeext=$ac_cv_exeext |
| 1795 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1796 | echo "${ECHO_T}$ac_file" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1797 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1798 | # Check the compiler produces executables we can run. If not, either |
| 1799 | # the compiler is broken, or we cross compile. |
| 1800 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1801 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1802 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1803 | # If not cross compiling, check that we can run a simple program. |
| 1804 | if test "$cross_compiling" != yes; then |
| 1805 | if { ac_try='./$ac_file' |
| 1806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1807 | (eval $ac_try) 2>&5 |
| 1808 | ac_status=$? |
| 1809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1810 | (exit $ac_status); }; }; then |
| 1811 | cross_compiling=no |
| 1812 | else |
| 1813 | if test "$cross_compiling" = maybe; then |
| 1814 | cross_compiling=yes |
| 1815 | else |
| 1816 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1817 | If you meant to cross compile, use \`--host'." >&5 |
| 1818 | echo "$as_me: error: cannot run C compiled programs. |
| 1819 | If you meant to cross compile, use \`--host'." >&2;} |
| 1820 | { (exit 1); exit 1; }; } |
| 1821 | fi |
| 1822 | fi |
| 1823 | fi |
| 1824 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1825 | echo "${ECHO_T}yes" >&6 |
| 1826 | |
| 1827 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1828 | ac_clean_files=$ac_clean_files_save |
| 1829 | # Check the compiler produces executables we can run. If not, either |
| 1830 | # the compiler is broken, or we cross compile. |
| 1831 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1832 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1833 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1834 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1835 | |
| 1836 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1837 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1839 | (eval $ac_link) 2>&5 |
| 1840 | ac_status=$? |
| 1841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1842 | (exit $ac_status); }; then |
| 1843 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1844 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1845 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1846 | # `rm'. |
| 1847 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1848 | case $ac_file in |
| 1849 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1850 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1851 | export ac_cv_exeext |
| 1852 | break;; |
| 1853 | * ) break;; |
| 1854 | esac |
| 1855 | done |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1856 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1857 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1858 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1859 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1860 | fi |
| 1861 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1862 | rm -f conftest$ac_cv_exeext |
| 1863 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1864 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1865 | |
| 1866 | rm -f conftest.$ac_ext |
| 1867 | EXEEXT=$ac_cv_exeext |
| 1868 | ac_exeext=$EXEEXT |
| 1869 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1870 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1871 | if test "${ac_cv_objext+set}" = set; then |
| 1872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1873 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 1874 | cat >conftest.$ac_ext <<_ACEOF |
| 1875 | #line $LINENO "configure" |
| 1876 | #include "confdefs.h" |
| 1877 | |
| 1878 | #ifdef F77_DUMMY_MAIN |
| 1879 | # ifdef __cplusplus |
| 1880 | extern "C" |
| 1881 | # endif |
| 1882 | int F77_DUMMY_MAIN() { return 1; } |
| 1883 | #endif |
| 1884 | int |
| 1885 | main () |
| 1886 | { |
| 1887 | |
| 1888 | ; |
| 1889 | return 0; |
| 1890 | } |
| 1891 | _ACEOF |
| 1892 | rm -f conftest.o conftest.obj |
| 1893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1894 | (eval $ac_compile) 2>&5 |
| 1895 | ac_status=$? |
| 1896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1897 | (exit $ac_status); }; then |
| 1898 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1899 | case $ac_file in |
| 1900 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1901 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1902 | break;; |
| 1903 | esac |
| 1904 | done |
| 1905 | else |
| 1906 | echo "$as_me: failed program was:" >&5 |
| 1907 | cat conftest.$ac_ext >&5 |
| 1908 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 1909 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 1910 | { (exit 1); exit 1; }; } |
| 1911 | fi |
| 1912 | |
| 1913 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1914 | fi |
| 1915 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1916 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1917 | OBJEXT=$ac_cv_objext |
| 1918 | ac_objext=$OBJEXT |
| 1919 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1920 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1921 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1923 | else |
| 1924 | cat >conftest.$ac_ext <<_ACEOF |
| 1925 | #line $LINENO "configure" |
| 1926 | #include "confdefs.h" |
| 1927 | |
| 1928 | #ifdef F77_DUMMY_MAIN |
| 1929 | # ifdef __cplusplus |
| 1930 | extern "C" |
| 1931 | # endif |
| 1932 | int F77_DUMMY_MAIN() { return 1; } |
| 1933 | #endif |
| 1934 | int |
| 1935 | main () |
| 1936 | { |
| 1937 | #ifndef __GNUC__ |
| 1938 | choke me |
| 1939 | #endif |
| 1940 | |
| 1941 | ; |
| 1942 | return 0; |
| 1943 | } |
| 1944 | _ACEOF |
| 1945 | rm -f conftest.$ac_objext |
| 1946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1947 | (eval $ac_compile) 2>&5 |
| 1948 | ac_status=$? |
| 1949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1950 | (exit $ac_status); } && |
| 1951 | { ac_try='test -s conftest.$ac_objext' |
| 1952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1953 | (eval $ac_try) 2>&5 |
| 1954 | ac_status=$? |
| 1955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1956 | (exit $ac_status); }; }; then |
| 1957 | ac_compiler_gnu=yes |
| 1958 | else |
| 1959 | echo "$as_me: failed program was:" >&5 |
| 1960 | cat conftest.$ac_ext >&5 |
| 1961 | ac_compiler_gnu=no |
| 1962 | fi |
| 1963 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1964 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1965 | |
| 1966 | fi |
| 1967 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1968 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1969 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1970 | ac_test_CFLAGS=${CFLAGS+set} |
| 1971 | ac_save_CFLAGS=$CFLAGS |
| 1972 | CFLAGS="-g" |
| 1973 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1974 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1975 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1977 | else |
| 1978 | cat >conftest.$ac_ext <<_ACEOF |
| 1979 | #line $LINENO "configure" |
| 1980 | #include "confdefs.h" |
| 1981 | |
| 1982 | #ifdef F77_DUMMY_MAIN |
| 1983 | # ifdef __cplusplus |
| 1984 | extern "C" |
| 1985 | # endif |
| 1986 | int F77_DUMMY_MAIN() { return 1; } |
| 1987 | #endif |
| 1988 | int |
| 1989 | main () |
| 1990 | { |
| 1991 | |
| 1992 | ; |
| 1993 | return 0; |
| 1994 | } |
| 1995 | _ACEOF |
| 1996 | rm -f conftest.$ac_objext |
| 1997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1998 | (eval $ac_compile) 2>&5 |
| 1999 | ac_status=$? |
| 2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2001 | (exit $ac_status); } && |
| 2002 | { ac_try='test -s conftest.$ac_objext' |
| 2003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2004 | (eval $ac_try) 2>&5 |
| 2005 | ac_status=$? |
| 2006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2007 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2008 | ac_cv_prog_cc_g=yes |
| 2009 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2010 | echo "$as_me: failed program was:" >&5 |
| 2011 | cat conftest.$ac_ext >&5 |
| 2012 | ac_cv_prog_cc_g=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2013 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2014 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2015 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2016 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2017 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2018 | if test "$ac_test_CFLAGS" = set; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2019 | CFLAGS=$ac_save_CFLAGS |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2020 | elif test $ac_cv_prog_cc_g = yes; then |
| 2021 | if test "$GCC" = yes; then |
| 2022 | CFLAGS="-g -O2" |
| 2023 | else |
| 2024 | CFLAGS="-g" |
| 2025 | fi |
| 2026 | else |
| 2027 | if test "$GCC" = yes; then |
| 2028 | CFLAGS="-O2" |
| 2029 | else |
| 2030 | CFLAGS= |
| 2031 | fi |
| 2032 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2033 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2034 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2035 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2036 | # the declaration of exit, since it's the most demanding environment. |
| 2037 | cat >conftest.$ac_ext <<_ACEOF |
| 2038 | #ifndef __cplusplus |
| 2039 | choke me |
| 2040 | #endif |
| 2041 | _ACEOF |
| 2042 | rm -f conftest.$ac_objext |
| 2043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2044 | (eval $ac_compile) 2>&5 |
| 2045 | ac_status=$? |
| 2046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2047 | (exit $ac_status); } && |
| 2048 | { ac_try='test -s conftest.$ac_objext' |
| 2049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2050 | (eval $ac_try) 2>&5 |
| 2051 | ac_status=$? |
| 2052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2053 | (exit $ac_status); }; }; then |
| 2054 | for ac_declaration in \ |
| 2055 | ''\ |
| 2056 | '#include <stdlib.h>' \ |
| 2057 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2058 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2059 | 'extern "C" void exit (int) throw ();' \ |
| 2060 | 'extern "C" void exit (int);' \ |
| 2061 | 'void exit (int);' |
| 2062 | do |
| 2063 | cat >conftest.$ac_ext <<_ACEOF |
| 2064 | #line $LINENO "configure" |
| 2065 | #include "confdefs.h" |
| 2066 | #include <stdlib.h> |
| 2067 | $ac_declaration |
| 2068 | #ifdef F77_DUMMY_MAIN |
| 2069 | # ifdef __cplusplus |
| 2070 | extern "C" |
| 2071 | # endif |
| 2072 | int F77_DUMMY_MAIN() { return 1; } |
| 2073 | #endif |
| 2074 | int |
| 2075 | main () |
| 2076 | { |
| 2077 | exit (42); |
| 2078 | ; |
| 2079 | return 0; |
| 2080 | } |
| 2081 | _ACEOF |
| 2082 | rm -f conftest.$ac_objext |
| 2083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2084 | (eval $ac_compile) 2>&5 |
| 2085 | ac_status=$? |
| 2086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2087 | (exit $ac_status); } && |
| 2088 | { ac_try='test -s conftest.$ac_objext' |
| 2089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2090 | (eval $ac_try) 2>&5 |
| 2091 | ac_status=$? |
| 2092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2093 | (exit $ac_status); }; }; then |
| 2094 | : |
| 2095 | else |
| 2096 | echo "$as_me: failed program was:" >&5 |
| 2097 | cat conftest.$ac_ext >&5 |
| 2098 | continue |
| 2099 | fi |
| 2100 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2101 | cat >conftest.$ac_ext <<_ACEOF |
| 2102 | #line $LINENO "configure" |
| 2103 | #include "confdefs.h" |
| 2104 | $ac_declaration |
| 2105 | #ifdef F77_DUMMY_MAIN |
| 2106 | # ifdef __cplusplus |
| 2107 | extern "C" |
| 2108 | # endif |
| 2109 | int F77_DUMMY_MAIN() { return 1; } |
| 2110 | #endif |
| 2111 | int |
| 2112 | main () |
| 2113 | { |
| 2114 | exit (42); |
| 2115 | ; |
| 2116 | return 0; |
| 2117 | } |
| 2118 | _ACEOF |
| 2119 | rm -f conftest.$ac_objext |
| 2120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2121 | (eval $ac_compile) 2>&5 |
| 2122 | ac_status=$? |
| 2123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2124 | (exit $ac_status); } && |
| 2125 | { ac_try='test -s conftest.$ac_objext' |
| 2126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2127 | (eval $ac_try) 2>&5 |
| 2128 | ac_status=$? |
| 2129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2130 | (exit $ac_status); }; }; then |
| 2131 | break |
| 2132 | else |
| 2133 | echo "$as_me: failed program was:" >&5 |
| 2134 | cat conftest.$ac_ext >&5 |
| 2135 | fi |
| 2136 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2137 | done |
| 2138 | rm -f conftest* |
| 2139 | if test -n "$ac_declaration"; then |
| 2140 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2141 | echo $ac_declaration >>confdefs.h |
| 2142 | echo '#endif' >>confdefs.h |
| 2143 | fi |
| 2144 | |
| 2145 | else |
| 2146 | echo "$as_me: failed program was:" >&5 |
| 2147 | cat conftest.$ac_ext >&5 |
| 2148 | fi |
| 2149 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2150 | ac_ext=c |
| 2151 | ac_cpp='$CPP $CPPFLAGS' |
| 2152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2155 | |
| 2156 | ac_aux_dir= |
| 2157 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 2158 | if test -f $ac_dir/install-sh; then |
| 2159 | ac_aux_dir=$ac_dir |
| 2160 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2161 | break |
| 2162 | elif test -f $ac_dir/install.sh; then |
| 2163 | ac_aux_dir=$ac_dir |
| 2164 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2165 | break |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2166 | elif test -f $ac_dir/shtool; then |
| 2167 | ac_aux_dir=$ac_dir |
| 2168 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2169 | break |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2170 | fi |
| 2171 | done |
| 2172 | if test -z "$ac_aux_dir"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2173 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 2174 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 2175 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2176 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2177 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 2178 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 2179 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2180 | |
| 2181 | # Find a good install program. We prefer a C program (faster), |
| 2182 | # so one script is as good as another. But avoid the broken or |
| 2183 | # incompatible versions: |
| 2184 | # SysV /etc/install, /usr/sbin/install |
| 2185 | # SunOS /usr/etc/install |
| 2186 | # IRIX /sbin/install |
| 2187 | # AIX /bin/install |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2188 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2189 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2190 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2191 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2192 | # ./install, which can be erroneously created by make from ./install.sh. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2193 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2194 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2195 | if test -z "$INSTALL"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2196 | if test "${ac_cv_path_install+set}" = set; then |
| 2197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2198 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2200 | for as_dir in $PATH |
| 2201 | do |
| 2202 | IFS=$as_save_IFS |
| 2203 | test -z "$as_dir" && as_dir=. |
| 2204 | # Account for people who put trailing slashes in PATH elements. |
| 2205 | case $as_dir/ in |
| 2206 | ./ | .// | /cC/* | \ |
| 2207 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2208 | /usr/ucb/* ) ;; |
| 2209 | *) |
| 2210 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2211 | # Don't use installbsd from OSF since it installs stuff as root |
| 2212 | # by default. |
| 2213 | for ac_prog in ginstall scoinst install; do |
| 2214 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2215 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2216 | if test $ac_prog = install && |
| 2217 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2218 | # AIX install. It has an incompatible calling convention. |
| 2219 | : |
| 2220 | elif test $ac_prog = install && |
| 2221 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2222 | # program-specific install script used by HP pwplus--don't use. |
| 2223 | : |
| 2224 | else |
| 2225 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2226 | break 3 |
| 2227 | fi |
| 2228 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2229 | done |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2230 | done |
| 2231 | ;; |
| 2232 | esac |
| 2233 | done |
| 2234 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2235 | |
| 2236 | fi |
| 2237 | if test "${ac_cv_path_install+set}" = set; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2238 | INSTALL=$ac_cv_path_install |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2239 | else |
| 2240 | # As a last resort, use the slow shell script. We don't cache a |
| 2241 | # path for INSTALL within a source directory, because that will |
| 2242 | # break other packages using the cache if that directory is |
| 2243 | # removed, or if the path is relative. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2244 | INSTALL=$ac_install_sh |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2245 | fi |
| 2246 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2247 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2248 | echo "${ECHO_T}$INSTALL" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2249 | |
| 2250 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2251 | # It thinks the first close brace ends the variable substitution. |
| 2252 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2253 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2254 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2255 | |
| 2256 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2257 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2258 | for ac_prog in gawk mawk nawk awk |
| 2259 | do |
| 2260 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2261 | set dummy $ac_prog; ac_word=$2 |
| 2262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2264 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2266 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2267 | if test -n "$AWK"; then |
| 2268 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2269 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2271 | for as_dir in $PATH |
| 2272 | do |
| 2273 | IFS=$as_save_IFS |
| 2274 | test -z "$as_dir" && as_dir=. |
| 2275 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2276 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2277 | ac_cv_prog_AWK="$ac_prog" |
| 2278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2279 | break 2 |
| 2280 | fi |
| 2281 | done |
| 2282 | done |
| 2283 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2284 | fi |
| 2285 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2286 | AWK=$ac_cv_prog_AWK |
| 2287 | if test -n "$AWK"; then |
| 2288 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2289 | echo "${ECHO_T}$AWK" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2290 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2291 | echo "$as_me:$LINENO: result: no" >&5 |
| 2292 | echo "${ECHO_T}no" >&6 |
| 2293 | fi |
| 2294 | |
| 2295 | test -n "$AWK" && break |
| 2296 | done |
| 2297 | |
| 2298 | ac_ext=c |
| 2299 | ac_cpp='$CPP $CPPFLAGS' |
| 2300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2303 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2304 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2305 | # On Suns, sometimes $CPP names a directory. |
| 2306 | if test -n "$CPP" && test -d "$CPP"; then |
| 2307 | CPP= |
| 2308 | fi |
| 2309 | if test -z "$CPP"; then |
| 2310 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2312 | else |
| 2313 | # Double quotes because CPP needs to be expanded |
| 2314 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2315 | do |
| 2316 | ac_preproc_ok=false |
| 2317 | for ac_c_preproc_warn_flag in '' yes |
| 2318 | do |
| 2319 | # Use a header file that comes with gcc, so configuring glibc |
| 2320 | # with a fresh cross-compiler works. |
| 2321 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2322 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2323 | cat >conftest.$ac_ext <<_ACEOF |
| 2324 | #line $LINENO "configure" |
| 2325 | #include "confdefs.h" |
| 2326 | #include <assert.h> |
| 2327 | Syntax error |
| 2328 | _ACEOF |
| 2329 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2330 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2331 | ac_status=$? |
| 2332 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2333 | rm -f conftest.er1 |
| 2334 | cat conftest.err >&5 |
| 2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2336 | (exit $ac_status); } >/dev/null; then |
| 2337 | if test -s conftest.err; then |
| 2338 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2339 | else |
| 2340 | ac_cpp_err= |
| 2341 | fi |
| 2342 | else |
| 2343 | ac_cpp_err=yes |
| 2344 | fi |
| 2345 | if test -z "$ac_cpp_err"; then |
| 2346 | : |
| 2347 | else |
| 2348 | echo "$as_me: failed program was:" >&5 |
| 2349 | cat conftest.$ac_ext >&5 |
| 2350 | # Broken: fails on valid input. |
| 2351 | continue |
| 2352 | fi |
| 2353 | rm -f conftest.err conftest.$ac_ext |
| 2354 | |
| 2355 | # OK, works on sane cases. Now check whether non-existent headers |
| 2356 | # can be detected and how. |
| 2357 | cat >conftest.$ac_ext <<_ACEOF |
| 2358 | #line $LINENO "configure" |
| 2359 | #include "confdefs.h" |
| 2360 | #include <ac_nonexistent.h> |
| 2361 | _ACEOF |
| 2362 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2363 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2364 | ac_status=$? |
| 2365 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2366 | rm -f conftest.er1 |
| 2367 | cat conftest.err >&5 |
| 2368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2369 | (exit $ac_status); } >/dev/null; then |
| 2370 | if test -s conftest.err; then |
| 2371 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2372 | else |
| 2373 | ac_cpp_err= |
| 2374 | fi |
| 2375 | else |
| 2376 | ac_cpp_err=yes |
| 2377 | fi |
| 2378 | if test -z "$ac_cpp_err"; then |
| 2379 | # Broken: success on invalid input. |
| 2380 | continue |
| 2381 | else |
| 2382 | echo "$as_me: failed program was:" >&5 |
| 2383 | cat conftest.$ac_ext >&5 |
| 2384 | # Passes both tests. |
| 2385 | ac_preproc_ok=: |
| 2386 | break |
| 2387 | fi |
| 2388 | rm -f conftest.err conftest.$ac_ext |
| 2389 | |
| 2390 | done |
| 2391 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2392 | rm -f conftest.err conftest.$ac_ext |
| 2393 | if $ac_preproc_ok; then |
| 2394 | break |
| 2395 | fi |
| 2396 | |
| 2397 | done |
| 2398 | ac_cv_prog_CPP=$CPP |
| 2399 | |
| 2400 | fi |
| 2401 | CPP=$ac_cv_prog_CPP |
| 2402 | else |
| 2403 | ac_cv_prog_CPP=$CPP |
| 2404 | fi |
| 2405 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2406 | echo "${ECHO_T}$CPP" >&6 |
| 2407 | ac_preproc_ok=false |
| 2408 | for ac_c_preproc_warn_flag in '' yes |
| 2409 | do |
| 2410 | # Use a header file that comes with gcc, so configuring glibc |
| 2411 | # with a fresh cross-compiler works. |
| 2412 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2413 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2414 | cat >conftest.$ac_ext <<_ACEOF |
| 2415 | #line $LINENO "configure" |
| 2416 | #include "confdefs.h" |
| 2417 | #include <assert.h> |
| 2418 | Syntax error |
| 2419 | _ACEOF |
| 2420 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2421 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2422 | ac_status=$? |
| 2423 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2424 | rm -f conftest.er1 |
| 2425 | cat conftest.err >&5 |
| 2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2427 | (exit $ac_status); } >/dev/null; then |
| 2428 | if test -s conftest.err; then |
| 2429 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2430 | else |
| 2431 | ac_cpp_err= |
| 2432 | fi |
| 2433 | else |
| 2434 | ac_cpp_err=yes |
| 2435 | fi |
| 2436 | if test -z "$ac_cpp_err"; then |
| 2437 | : |
| 2438 | else |
| 2439 | echo "$as_me: failed program was:" >&5 |
| 2440 | cat conftest.$ac_ext >&5 |
| 2441 | # Broken: fails on valid input. |
| 2442 | continue |
| 2443 | fi |
| 2444 | rm -f conftest.err conftest.$ac_ext |
| 2445 | |
| 2446 | # OK, works on sane cases. Now check whether non-existent headers |
| 2447 | # can be detected and how. |
| 2448 | cat >conftest.$ac_ext <<_ACEOF |
| 2449 | #line $LINENO "configure" |
| 2450 | #include "confdefs.h" |
| 2451 | #include <ac_nonexistent.h> |
| 2452 | _ACEOF |
| 2453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2455 | ac_status=$? |
| 2456 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2457 | rm -f conftest.er1 |
| 2458 | cat conftest.err >&5 |
| 2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2460 | (exit $ac_status); } >/dev/null; then |
| 2461 | if test -s conftest.err; then |
| 2462 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2463 | else |
| 2464 | ac_cpp_err= |
| 2465 | fi |
| 2466 | else |
| 2467 | ac_cpp_err=yes |
| 2468 | fi |
| 2469 | if test -z "$ac_cpp_err"; then |
| 2470 | # Broken: success on invalid input. |
| 2471 | continue |
| 2472 | else |
| 2473 | echo "$as_me: failed program was:" >&5 |
| 2474 | cat conftest.$ac_ext >&5 |
| 2475 | # Passes both tests. |
| 2476 | ac_preproc_ok=: |
| 2477 | break |
| 2478 | fi |
| 2479 | rm -f conftest.err conftest.$ac_ext |
| 2480 | |
| 2481 | done |
| 2482 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2483 | rm -f conftest.err conftest.$ac_ext |
| 2484 | if $ac_preproc_ok; then |
| 2485 | : |
| 2486 | else |
| 2487 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2488 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2489 | { (exit 1); exit 1; }; } |
| 2490 | fi |
| 2491 | |
| 2492 | ac_ext=c |
| 2493 | ac_cpp='$CPP $CPPFLAGS' |
| 2494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2497 | |
| 2498 | ac_ext=cc |
| 2499 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2500 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2501 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2502 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2503 | if test -n "$ac_tool_prefix"; then |
| 2504 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2505 | do |
| 2506 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2507 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2508 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2510 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2512 | else |
| 2513 | if test -n "$CXX"; then |
| 2514 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2515 | else |
| 2516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2517 | for as_dir in $PATH |
| 2518 | do |
| 2519 | IFS=$as_save_IFS |
| 2520 | test -z "$as_dir" && as_dir=. |
| 2521 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2523 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2525 | break 2 |
| 2526 | fi |
| 2527 | done |
| 2528 | done |
| 2529 | |
| 2530 | fi |
| 2531 | fi |
| 2532 | CXX=$ac_cv_prog_CXX |
| 2533 | if test -n "$CXX"; then |
| 2534 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2535 | echo "${ECHO_T}$CXX" >&6 |
| 2536 | else |
| 2537 | echo "$as_me:$LINENO: result: no" >&5 |
| 2538 | echo "${ECHO_T}no" >&6 |
| 2539 | fi |
| 2540 | |
| 2541 | test -n "$CXX" && break |
| 2542 | done |
| 2543 | fi |
| 2544 | if test -z "$CXX"; then |
| 2545 | ac_ct_CXX=$CXX |
| 2546 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2547 | do |
| 2548 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2549 | set dummy $ac_prog; ac_word=$2 |
| 2550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2552 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2554 | else |
| 2555 | if test -n "$ac_ct_CXX"; then |
| 2556 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2557 | else |
| 2558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2559 | for as_dir in $PATH |
| 2560 | do |
| 2561 | IFS=$as_save_IFS |
| 2562 | test -z "$as_dir" && as_dir=. |
| 2563 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2565 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2567 | break 2 |
| 2568 | fi |
| 2569 | done |
| 2570 | done |
| 2571 | |
| 2572 | fi |
| 2573 | fi |
| 2574 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2575 | if test -n "$ac_ct_CXX"; then |
| 2576 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2577 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2578 | else |
| 2579 | echo "$as_me:$LINENO: result: no" >&5 |
| 2580 | echo "${ECHO_T}no" >&6 |
| 2581 | fi |
| 2582 | |
| 2583 | test -n "$ac_ct_CXX" && break |
| 2584 | done |
| 2585 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2586 | |
| 2587 | CXX=$ac_ct_CXX |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2588 | fi |
| 2589 | |
| 2590 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2591 | # Provide some information about the compiler. |
| 2592 | echo "$as_me:$LINENO:" \ |
| 2593 | "checking for C++ compiler version" >&5 |
| 2594 | ac_compiler=`set X $ac_compile; echo $2` |
| 2595 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2596 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2597 | ac_status=$? |
| 2598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2599 | (exit $ac_status); } |
| 2600 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2601 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2602 | ac_status=$? |
| 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2604 | (exit $ac_status); } |
| 2605 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2606 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2607 | ac_status=$? |
| 2608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2609 | (exit $ac_status); } |
| 2610 | |
| 2611 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2612 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2613 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2615 | else |
| 2616 | cat >conftest.$ac_ext <<_ACEOF |
| 2617 | #line $LINENO "configure" |
| 2618 | #include "confdefs.h" |
| 2619 | |
| 2620 | #ifdef F77_DUMMY_MAIN |
| 2621 | # ifdef __cplusplus |
| 2622 | extern "C" |
| 2623 | # endif |
| 2624 | int F77_DUMMY_MAIN() { return 1; } |
| 2625 | #endif |
| 2626 | int |
| 2627 | main () |
| 2628 | { |
| 2629 | #ifndef __GNUC__ |
| 2630 | choke me |
| 2631 | #endif |
| 2632 | |
| 2633 | ; |
| 2634 | return 0; |
| 2635 | } |
| 2636 | _ACEOF |
| 2637 | rm -f conftest.$ac_objext |
| 2638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2639 | (eval $ac_compile) 2>&5 |
| 2640 | ac_status=$? |
| 2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2642 | (exit $ac_status); } && |
| 2643 | { ac_try='test -s conftest.$ac_objext' |
| 2644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2645 | (eval $ac_try) 2>&5 |
| 2646 | ac_status=$? |
| 2647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2648 | (exit $ac_status); }; }; then |
| 2649 | ac_compiler_gnu=yes |
| 2650 | else |
| 2651 | echo "$as_me: failed program was:" >&5 |
| 2652 | cat conftest.$ac_ext >&5 |
| 2653 | ac_compiler_gnu=no |
| 2654 | fi |
| 2655 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2656 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2657 | |
| 2658 | fi |
| 2659 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2660 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2661 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2662 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2663 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2664 | CXXFLAGS="-g" |
| 2665 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2666 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2667 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2669 | else |
| 2670 | cat >conftest.$ac_ext <<_ACEOF |
| 2671 | #line $LINENO "configure" |
| 2672 | #include "confdefs.h" |
| 2673 | |
| 2674 | #ifdef F77_DUMMY_MAIN |
| 2675 | # ifdef __cplusplus |
| 2676 | extern "C" |
| 2677 | # endif |
| 2678 | int F77_DUMMY_MAIN() { return 1; } |
| 2679 | #endif |
| 2680 | int |
| 2681 | main () |
| 2682 | { |
| 2683 | |
| 2684 | ; |
| 2685 | return 0; |
| 2686 | } |
| 2687 | _ACEOF |
| 2688 | rm -f conftest.$ac_objext |
| 2689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2690 | (eval $ac_compile) 2>&5 |
| 2691 | ac_status=$? |
| 2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2693 | (exit $ac_status); } && |
| 2694 | { ac_try='test -s conftest.$ac_objext' |
| 2695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2696 | (eval $ac_try) 2>&5 |
| 2697 | ac_status=$? |
| 2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2699 | (exit $ac_status); }; }; then |
| 2700 | ac_cv_prog_cxx_g=yes |
| 2701 | else |
| 2702 | echo "$as_me: failed program was:" >&5 |
| 2703 | cat conftest.$ac_ext >&5 |
| 2704 | ac_cv_prog_cxx_g=no |
| 2705 | fi |
| 2706 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2707 | fi |
| 2708 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2709 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2710 | if test "$ac_test_CXXFLAGS" = set; then |
| 2711 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2712 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2713 | if test "$GXX" = yes; then |
| 2714 | CXXFLAGS="-g -O2" |
| 2715 | else |
| 2716 | CXXFLAGS="-g" |
| 2717 | fi |
| 2718 | else |
| 2719 | if test "$GXX" = yes; then |
| 2720 | CXXFLAGS="-O2" |
| 2721 | else |
| 2722 | CXXFLAGS= |
| 2723 | fi |
| 2724 | fi |
| 2725 | for ac_declaration in \ |
| 2726 | ''\ |
| 2727 | '#include <stdlib.h>' \ |
| 2728 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2729 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2730 | 'extern "C" void exit (int) throw ();' \ |
| 2731 | 'extern "C" void exit (int);' \ |
| 2732 | 'void exit (int);' |
| 2733 | do |
| 2734 | cat >conftest.$ac_ext <<_ACEOF |
| 2735 | #line $LINENO "configure" |
| 2736 | #include "confdefs.h" |
| 2737 | #include <stdlib.h> |
| 2738 | $ac_declaration |
| 2739 | #ifdef F77_DUMMY_MAIN |
| 2740 | # ifdef __cplusplus |
| 2741 | extern "C" |
| 2742 | # endif |
| 2743 | int F77_DUMMY_MAIN() { return 1; } |
| 2744 | #endif |
| 2745 | int |
| 2746 | main () |
| 2747 | { |
| 2748 | exit (42); |
| 2749 | ; |
| 2750 | return 0; |
| 2751 | } |
| 2752 | _ACEOF |
| 2753 | rm -f conftest.$ac_objext |
| 2754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2755 | (eval $ac_compile) 2>&5 |
| 2756 | ac_status=$? |
| 2757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2758 | (exit $ac_status); } && |
| 2759 | { ac_try='test -s conftest.$ac_objext' |
| 2760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2761 | (eval $ac_try) 2>&5 |
| 2762 | ac_status=$? |
| 2763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2764 | (exit $ac_status); }; }; then |
| 2765 | : |
| 2766 | else |
| 2767 | echo "$as_me: failed program was:" >&5 |
| 2768 | cat conftest.$ac_ext >&5 |
| 2769 | continue |
| 2770 | fi |
| 2771 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2772 | cat >conftest.$ac_ext <<_ACEOF |
| 2773 | #line $LINENO "configure" |
| 2774 | #include "confdefs.h" |
| 2775 | $ac_declaration |
| 2776 | #ifdef F77_DUMMY_MAIN |
| 2777 | # ifdef __cplusplus |
| 2778 | extern "C" |
| 2779 | # endif |
| 2780 | int F77_DUMMY_MAIN() { return 1; } |
| 2781 | #endif |
| 2782 | int |
| 2783 | main () |
| 2784 | { |
| 2785 | exit (42); |
| 2786 | ; |
| 2787 | return 0; |
| 2788 | } |
| 2789 | _ACEOF |
| 2790 | rm -f conftest.$ac_objext |
| 2791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2792 | (eval $ac_compile) 2>&5 |
| 2793 | ac_status=$? |
| 2794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2795 | (exit $ac_status); } && |
| 2796 | { ac_try='test -s conftest.$ac_objext' |
| 2797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2798 | (eval $ac_try) 2>&5 |
| 2799 | ac_status=$? |
| 2800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2801 | (exit $ac_status); }; }; then |
| 2802 | break |
| 2803 | else |
| 2804 | echo "$as_me: failed program was:" >&5 |
| 2805 | cat conftest.$ac_ext >&5 |
| 2806 | fi |
| 2807 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2808 | done |
| 2809 | rm -f conftest* |
| 2810 | if test -n "$ac_declaration"; then |
| 2811 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2812 | echo $ac_declaration >>confdefs.h |
| 2813 | echo '#endif' >>confdefs.h |
| 2814 | fi |
| 2815 | |
| 2816 | ac_ext=c |
| 2817 | ac_cpp='$CPP $CPPFLAGS' |
| 2818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2821 | |
| 2822 | if test -n "$ac_tool_prefix"; then |
| 2823 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2824 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2827 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 2828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2829 | else |
| 2830 | if test -n "$RANLIB"; then |
| 2831 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2832 | else |
| 2833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2834 | for as_dir in $PATH |
| 2835 | do |
| 2836 | IFS=$as_save_IFS |
| 2837 | test -z "$as_dir" && as_dir=. |
| 2838 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2839 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2840 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2842 | break 2 |
| 2843 | fi |
| 2844 | done |
| 2845 | done |
| 2846 | |
| 2847 | fi |
| 2848 | fi |
| 2849 | RANLIB=$ac_cv_prog_RANLIB |
| 2850 | if test -n "$RANLIB"; then |
| 2851 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 2852 | echo "${ECHO_T}$RANLIB" >&6 |
| 2853 | else |
| 2854 | echo "$as_me:$LINENO: result: no" >&5 |
| 2855 | echo "${ECHO_T}no" >&6 |
| 2856 | fi |
| 2857 | |
| 2858 | fi |
| 2859 | if test -z "$ac_cv_prog_RANLIB"; then |
| 2860 | ac_ct_RANLIB=$RANLIB |
| 2861 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 2862 | set dummy ranlib; ac_word=$2 |
| 2863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2865 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 2866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2867 | else |
| 2868 | if test -n "$ac_ct_RANLIB"; then |
| 2869 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 2870 | else |
| 2871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2872 | for as_dir in $PATH |
| 2873 | do |
| 2874 | IFS=$as_save_IFS |
| 2875 | test -z "$as_dir" && as_dir=. |
| 2876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2878 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 2879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2880 | break 2 |
| 2881 | fi |
| 2882 | done |
| 2883 | done |
| 2884 | |
| 2885 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 2886 | fi |
| 2887 | fi |
| 2888 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 2889 | if test -n "$ac_ct_RANLIB"; then |
| 2890 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 2891 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 2892 | else |
| 2893 | echo "$as_me:$LINENO: result: no" >&5 |
| 2894 | echo "${ECHO_T}no" >&6 |
| 2895 | fi |
| 2896 | |
| 2897 | RANLIB=$ac_ct_RANLIB |
| 2898 | else |
| 2899 | RANLIB="$ac_cv_prog_RANLIB" |
| 2900 | fi |
| 2901 | |
| 2902 | |
| 2903 | |
| 2904 | #JJAKO Check for libtool |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2905 | # Check whether --enable-shared or --disable-shared was given. |
| 2906 | if test "${enable_shared+set}" = set; then |
| 2907 | enableval="$enable_shared" |
| 2908 | p=${PACKAGE-default} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2909 | case $enableval in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2910 | yes) enable_shared=yes ;; |
| 2911 | no) enable_shared=no ;; |
| 2912 | *) |
| 2913 | enable_shared=no |
| 2914 | # Look at the argument we got. We use all the common list separators. |
| 2915 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 2916 | for pkg in $enableval; do |
| 2917 | if test "X$pkg" = "X$p"; then |
| 2918 | enable_shared=yes |
| 2919 | fi |
| 2920 | done |
| 2921 | IFS="$ac_save_ifs" |
| 2922 | ;; |
| 2923 | esac |
| 2924 | else |
| 2925 | enable_shared=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2926 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2927 | # Check whether --enable-static or --disable-static was given. |
| 2928 | if test "${enable_static+set}" = set; then |
| 2929 | enableval="$enable_static" |
| 2930 | p=${PACKAGE-default} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2931 | case $enableval in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2932 | yes) enable_static=yes ;; |
| 2933 | no) enable_static=no ;; |
| 2934 | *) |
| 2935 | enable_static=no |
| 2936 | # Look at the argument we got. We use all the common list separators. |
| 2937 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 2938 | for pkg in $enableval; do |
| 2939 | if test "X$pkg" = "X$p"; then |
| 2940 | enable_static=yes |
| 2941 | fi |
| 2942 | done |
| 2943 | IFS="$ac_save_ifs" |
| 2944 | ;; |
| 2945 | esac |
| 2946 | else |
| 2947 | enable_static=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2948 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2949 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 2950 | if test "${enable_fast_install+set}" = set; then |
| 2951 | enableval="$enable_fast_install" |
| 2952 | p=${PACKAGE-default} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2953 | case $enableval in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2954 | yes) enable_fast_install=yes ;; |
| 2955 | no) enable_fast_install=no ;; |
| 2956 | *) |
| 2957 | enable_fast_install=no |
| 2958 | # Look at the argument we got. We use all the common list separators. |
| 2959 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 2960 | for pkg in $enableval; do |
| 2961 | if test "X$pkg" = "X$p"; then |
| 2962 | enable_fast_install=yes |
| 2963 | fi |
| 2964 | done |
| 2965 | IFS="$ac_save_ifs" |
| 2966 | ;; |
| 2967 | esac |
| 2968 | else |
| 2969 | enable_fast_install=yes |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2970 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2971 | # Make sure we can run config.sub. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2972 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 2973 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 2974 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 2975 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2976 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2977 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 2978 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 2979 | if test "${ac_cv_build+set}" = set; then |
| 2980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 2981 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 2982 | ac_cv_build_alias=$build_alias |
| 2983 | test -z "$ac_cv_build_alias" && |
| 2984 | ac_cv_build_alias=`$ac_config_guess` |
| 2985 | test -z "$ac_cv_build_alias" && |
| 2986 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2987 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2988 | { (exit 1); exit 1; }; } |
| 2989 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 2990 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 2991 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 2992 | { (exit 1); exit 1; }; } |
| 2993 | |
| 2994 | fi |
| 2995 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2996 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 2997 | build=$ac_cv_build |
| 2998 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2999 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3000 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3001 | |
| 3002 | |
| 3003 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 3004 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 3005 | if test "${ac_cv_host+set}" = set; then |
| 3006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3007 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3008 | ac_cv_host_alias=$host_alias |
| 3009 | test -z "$ac_cv_host_alias" && |
| 3010 | ac_cv_host_alias=$ac_cv_build_alias |
| 3011 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 3012 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 3013 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 3014 | { (exit 1); exit 1; }; } |
| 3015 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3016 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3017 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3018 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 3019 | host=$ac_cv_host |
| 3020 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3021 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3022 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3023 | |
| 3024 | |
| 3025 | # Find the correct PATH separator. Usually this is `:', but |
| 3026 | # DJGPP uses `;' like DOS. |
| 3027 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 3028 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 3029 | case X$UNAME in |
| 3030 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 3031 | *) lt_cv_sys_path_separator=':' ;; |
| 3032 | esac |
| 3033 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3034 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3035 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3036 | |
| 3037 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3038 | if test "${with_gnu_ld+set}" = set; then |
| 3039 | withval="$with_gnu_ld" |
| 3040 | test "$withval" = no || with_gnu_ld=yes |
| 3041 | else |
| 3042 | with_gnu_ld=no |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3043 | fi; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3044 | ac_prog=ld |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3045 | if test "$GCC" = yes; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3046 | # Check if gcc -print-prog-name=ld gives a path. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3047 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 3048 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 3049 | case $host in |
| 3050 | *-*-mingw*) |
| 3051 | # gcc leaves a trailing carriage return which upsets mingw |
| 3052 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3053 | *) |
| 3054 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3055 | esac |
| 3056 | case $ac_prog in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3057 | # Accept absolute paths. |
| 3058 | [\\/]* | [A-Za-z]:[\\/]*) |
| 3059 | re_direlt='/[^/][^/]*/\.\./' |
| 3060 | # Canonicalize the path of ld |
| 3061 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 3062 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3063 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 3064 | done |
| 3065 | test -z "$LD" && LD="$ac_prog" |
| 3066 | ;; |
| 3067 | "") |
| 3068 | # If it fails, then pretend we aren't using GCC. |
| 3069 | ac_prog=ld |
| 3070 | ;; |
| 3071 | *) |
| 3072 | # If it is relative, then search for the first ld in PATH. |
| 3073 | with_gnu_ld=unknown |
| 3074 | ;; |
| 3075 | esac |
| 3076 | elif test "$with_gnu_ld" = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3077 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3078 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3079 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3080 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3081 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3082 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3083 | if test "${lt_cv_path_LD+set}" = set; then |
| 3084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3085 | else |
| 3086 | if test -z "$LD"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3087 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3088 | for ac_dir in $PATH; do |
| 3089 | test -z "$ac_dir" && ac_dir=. |
| 3090 | 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] | 3091 | lt_cv_path_LD="$ac_dir/$ac_prog" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3092 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3093 | # but apparently some GNU ld's only accept -v. |
| 3094 | # Break only if it was the GNU/non-GNU ld that we prefer. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3095 | 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] | 3096 | test "$with_gnu_ld" != no && break |
| 3097 | else |
| 3098 | test "$with_gnu_ld" != yes && break |
| 3099 | fi |
| 3100 | fi |
| 3101 | done |
| 3102 | IFS="$ac_save_ifs" |
| 3103 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3104 | 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] | 3105 | fi |
| 3106 | fi |
| 3107 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3108 | LD="$lt_cv_path_LD" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3109 | if test -n "$LD"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3110 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3111 | echo "${ECHO_T}$LD" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3112 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3113 | echo "$as_me:$LINENO: result: no" >&5 |
| 3114 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3115 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3116 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3117 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3118 | { (exit 1); exit 1; }; } |
| 3119 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3120 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 3121 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3123 | else |
| 3124 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3125 | 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] | 3126 | lt_cv_prog_gnu_ld=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3127 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3128 | lt_cv_prog_gnu_ld=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3129 | fi |
| 3130 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3131 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3132 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3133 | with_gnu_ld=$lt_cv_prog_gnu_ld |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3134 | |
| 3135 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3136 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3137 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3138 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3140 | else |
| 3141 | lt_cv_ld_reload_flag='-r' |
| 3142 | fi |
| 3143 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3144 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3145 | reload_flag=$lt_cv_ld_reload_flag |
| 3146 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 3147 | |
| 3148 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3149 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3150 | if test "${lt_cv_path_NM+set}" = set; then |
| 3151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3152 | else |
| 3153 | if test -n "$NM"; then |
| 3154 | # Let the user override the test. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3155 | lt_cv_path_NM="$NM" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3156 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3157 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3158 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3159 | test -z "$ac_dir" && ac_dir=. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3160 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 3161 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3162 | # Check to see if the nm accepts a BSD-compat flag. |
| 3163 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3164 | # nm: unknown option "B" ignored |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3165 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3166 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 3167 | lt_cv_path_NM="$tmp_nm -B" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3168 | break |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3169 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 3170 | lt_cv_path_NM="$tmp_nm -p" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3171 | break |
| 3172 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3173 | 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] | 3174 | continue # so that we can try to find one that supports BSD flags |
| 3175 | fi |
| 3176 | fi |
| 3177 | done |
| 3178 | IFS="$ac_save_ifs" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3179 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3180 | fi |
| 3181 | fi |
| 3182 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3183 | NM="$lt_cv_path_NM" |
| 3184 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 3185 | echo "${ECHO_T}$NM" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3186 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3187 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3188 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3189 | LN_S=$as_ln_s |
| 3190 | if test "$LN_S" = "ln -s"; then |
| 3191 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3192 | echo "${ECHO_T}yes" >&6 |
| 3193 | else |
| 3194 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3195 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3196 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3197 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3198 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
| 3199 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
| 3200 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3202 | else |
| 3203 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3204 | lt_cv_file_magic_test_file= |
| 3205 | lt_cv_deplibs_check_method='unknown' |
| 3206 | # Need to set the preceding variable on all platforms that support |
| 3207 | # interlibrary dependencies. |
| 3208 | # 'none' -- dependencies not supported. |
| 3209 | # `unknown' -- same as none, but documents that we really don't know. |
| 3210 | # 'pass_all' -- all dependencies passed with no checks. |
| 3211 | # 'test_compile' -- check by making test program. |
| 3212 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 3213 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 3214 | # If you have `file' or equivalent on your system and you're not sure |
| 3215 | # whether `pass_all' will *always* work, you probably want this one. |
| 3216 | |
| 3217 | case $host_os in |
| 3218 | aix4* | aix5*) |
| 3219 | lt_cv_deplibs_check_method=pass_all |
| 3220 | ;; |
| 3221 | |
| 3222 | beos*) |
| 3223 | lt_cv_deplibs_check_method=pass_all |
| 3224 | ;; |
| 3225 | |
| 3226 | bsdi4*) |
| 3227 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3228 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3229 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3230 | ;; |
| 3231 | |
| 3232 | cygwin* | mingw* | pw32*) |
| 3233 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3234 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3235 | ;; |
| 3236 | |
| 3237 | darwin* | rhapsody*) |
| 3238 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3239 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3240 | case "$host_os" in |
| 3241 | rhapsody* | darwin1.[012]) |
| 3242 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
| 3243 | ;; |
| 3244 | *) # Darwin 1.3 on |
| 3245 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3246 | ;; |
| 3247 | esac |
| 3248 | ;; |
| 3249 | |
| 3250 | freebsd*) |
| 3251 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3252 | case $host_cpu in |
| 3253 | i*86 ) |
| 3254 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3255 | # Let's accept both of them until this is cleared up. |
| 3256 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3257 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3258 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3259 | ;; |
| 3260 | esac |
| 3261 | else |
| 3262 | lt_cv_deplibs_check_method=pass_all |
| 3263 | fi |
| 3264 | ;; |
| 3265 | |
| 3266 | gnu*) |
| 3267 | lt_cv_deplibs_check_method=pass_all |
| 3268 | ;; |
| 3269 | |
| 3270 | hpux10.20*|hpux11*) |
| 3271 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3272 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3273 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3274 | ;; |
| 3275 | |
| 3276 | irix5* | irix6*) |
| 3277 | case $host_os in |
| 3278 | irix5*) |
| 3279 | # this will be overridden with pass_all, but let us keep it just in case |
| 3280 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3281 | ;; |
| 3282 | *) |
| 3283 | case $LD in |
| 3284 | *-32|*"-32 ") libmagic=32-bit;; |
| 3285 | *-n32|*"-n32 ") libmagic=N32;; |
| 3286 | *-64|*"-64 ") libmagic=64-bit;; |
| 3287 | *) libmagic=never-match;; |
| 3288 | esac |
| 3289 | # this will be overridden with pass_all, but let us keep it just in case |
| 3290 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 3291 | ;; |
| 3292 | esac |
| 3293 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3294 | lt_cv_deplibs_check_method=pass_all |
| 3295 | ;; |
| 3296 | |
| 3297 | # This must be Linux ELF. |
| 3298 | linux-gnu*) |
| 3299 | case $host_cpu in |
| 3300 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* ) |
| 3301 | lt_cv_deplibs_check_method=pass_all ;; |
| 3302 | *) |
| 3303 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 3304 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3305 | esac |
| 3306 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3307 | ;; |
| 3308 | |
| 3309 | netbsd*) |
| 3310 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3311 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 3312 | else |
| 3313 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 3314 | fi |
| 3315 | ;; |
| 3316 | |
| 3317 | newos6*) |
| 3318 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3319 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3320 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3321 | ;; |
| 3322 | |
| 3323 | openbsd*) |
| 3324 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3325 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3326 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3327 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3328 | else |
| 3329 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3330 | fi |
| 3331 | ;; |
| 3332 | |
| 3333 | osf3* | osf4* | osf5*) |
| 3334 | # this will be overridden with pass_all, but let us keep it just in case |
| 3335 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3336 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3337 | lt_cv_deplibs_check_method=pass_all |
| 3338 | ;; |
| 3339 | |
| 3340 | sco3.2v5*) |
| 3341 | lt_cv_deplibs_check_method=pass_all |
| 3342 | ;; |
| 3343 | |
| 3344 | solaris*) |
| 3345 | lt_cv_deplibs_check_method=pass_all |
| 3346 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3347 | ;; |
| 3348 | |
| 3349 | sysv5uw[78]* | sysv4*uw2*) |
| 3350 | lt_cv_deplibs_check_method=pass_all |
| 3351 | ;; |
| 3352 | |
| 3353 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3354 | case $host_vendor in |
| 3355 | motorola) |
| 3356 | 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]' |
| 3357 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3358 | ;; |
| 3359 | ncr) |
| 3360 | lt_cv_deplibs_check_method=pass_all |
| 3361 | ;; |
| 3362 | sequent) |
| 3363 | lt_cv_file_magic_cmd='/bin/file' |
| 3364 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3365 | ;; |
| 3366 | sni) |
| 3367 | lt_cv_file_magic_cmd='/bin/file' |
| 3368 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3369 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3370 | ;; |
| 3371 | esac |
| 3372 | ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 3373 | esac |
| 3374 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 3375 | fi |
| 3376 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3377 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3378 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3379 | deplibs_check_method=$lt_cv_deplibs_check_method |
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 | |
| 3383 | |
| 3384 | |
| 3385 | |
| 3386 | |
| 3387 | |
| 3388 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 3389 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
| 3390 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
| 3391 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 3392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3393 | else |
| 3394 | |
| 3395 | # These are sane defaults that work on at least a few old systems. |
| 3396 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3397 | |
| 3398 | # Character class describing NM global symbol codes. |
| 3399 | symcode='[BCDEGRST]' |
| 3400 | |
| 3401 | # Regexp to match symbols that can be accessed directly from C. |
| 3402 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 3403 | |
| 3404 | # Transform the above into a raw symbol and a C symbol. |
| 3405 | symxfrm='\1 \2\3 \3' |
| 3406 | |
| 3407 | # Transform an extracted symbol line into a proper C declaration |
| 3408 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
| 3409 | |
| 3410 | # Transform an extracted symbol line into symbol name and symbol address |
| 3411 | 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'" |
| 3412 | |
| 3413 | # Define system-specific variables. |
| 3414 | case $host_os in |
| 3415 | aix*) |
| 3416 | symcode='[BCDT]' |
| 3417 | ;; |
| 3418 | cygwin* | mingw* | pw32*) |
| 3419 | symcode='[ABCDGISTW]' |
| 3420 | ;; |
| 3421 | hpux*) # Its linker distinguishes data from code symbols |
| 3422 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3423 | 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'" |
| 3424 | ;; |
| 3425 | irix*) |
| 3426 | symcode='[BCDEGRST]' |
| 3427 | ;; |
| 3428 | solaris* | sysv5*) |
| 3429 | symcode='[BDT]' |
| 3430 | ;; |
| 3431 | sysv4) |
| 3432 | symcode='[DFNSTU]' |
| 3433 | ;; |
| 3434 | esac |
| 3435 | |
| 3436 | # Handle CRLF in mingw tool chain |
| 3437 | opt_cr= |
| 3438 | case $host_os in |
| 3439 | mingw*) |
| 3440 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3441 | ;; |
| 3442 | esac |
| 3443 | |
| 3444 | # If we're using GNU nm, then use its standard symbol codes. |
| 3445 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 3446 | symcode='[ABCDGISTW]' |
| 3447 | fi |
| 3448 | |
| 3449 | # Try without a prefix undercore, then with it. |
| 3450 | for ac_symprfx in "" "_"; do |
| 3451 | |
| 3452 | # Write the raw and C identifiers. |
| 3453 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 3454 | |
| 3455 | # Check to see that the pipe works correctly. |
| 3456 | pipe_works=no |
| 3457 | rm -f conftest* |
| 3458 | cat > conftest.$ac_ext <<EOF |
| 3459 | #ifdef __cplusplus |
| 3460 | extern "C" { |
| 3461 | #endif |
| 3462 | char nm_test_var; |
| 3463 | void nm_test_func(){} |
| 3464 | #ifdef __cplusplus |
| 3465 | } |
| 3466 | #endif |
| 3467 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3468 | EOF |
| 3469 | |
| 3470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3471 | (eval $ac_compile) 2>&5 |
| 3472 | ac_status=$? |
| 3473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3474 | (exit $ac_status); }; then |
| 3475 | # Now try to grab the symbols. |
| 3476 | nlist=conftest.nm |
| 3477 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 3478 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 3479 | ac_status=$? |
| 3480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3481 | (exit $ac_status); } && test -s "$nlist"; then |
| 3482 | # Try sorting and uniquifying the output. |
| 3483 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3484 | mv -f "$nlist"T "$nlist" |
| 3485 | else |
| 3486 | rm -f "$nlist"T |
| 3487 | fi |
| 3488 | |
| 3489 | # Make sure that we snagged all the symbols we need. |
| 3490 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 3491 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 3492 | cat <<EOF > conftest.$ac_ext |
| 3493 | #ifdef __cplusplus |
| 3494 | extern "C" { |
| 3495 | #endif |
| 3496 | |
| 3497 | EOF |
| 3498 | # Now generate the symbol file. |
| 3499 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
| 3500 | |
| 3501 | cat <<EOF >> conftest.$ac_ext |
| 3502 | #if defined (__STDC__) && __STDC__ |
| 3503 | # define lt_ptr void * |
| 3504 | #else |
| 3505 | # define lt_ptr char * |
| 3506 | # define const |
| 3507 | #endif |
| 3508 | |
| 3509 | /* The mapping between symbol names and symbols. */ |
| 3510 | const struct { |
| 3511 | const char *name; |
| 3512 | lt_ptr address; |
| 3513 | } |
| 3514 | lt_preloaded_symbols[] = |
| 3515 | { |
| 3516 | EOF |
| 3517 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 3518 | cat <<\EOF >> conftest.$ac_ext |
| 3519 | {0, (lt_ptr) 0} |
| 3520 | }; |
| 3521 | |
| 3522 | #ifdef __cplusplus |
| 3523 | } |
| 3524 | #endif |
| 3525 | EOF |
| 3526 | # Now try linking the two files. |
| 3527 | mv conftest.$ac_objext conftstm.$ac_objext |
| 3528 | save_LIBS="$LIBS" |
| 3529 | save_CFLAGS="$CFLAGS" |
| 3530 | LIBS="conftstm.$ac_objext" |
| 3531 | CFLAGS="$CFLAGS$no_builtin_flag" |
| 3532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3533 | (eval $ac_link) 2>&5 |
| 3534 | ac_status=$? |
| 3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3536 | (exit $ac_status); } && test -s conftest; then |
| 3537 | pipe_works=yes |
| 3538 | fi |
| 3539 | LIBS="$save_LIBS" |
| 3540 | CFLAGS="$save_CFLAGS" |
| 3541 | else |
| 3542 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3543 | fi |
| 3544 | else |
| 3545 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3546 | fi |
| 3547 | else |
| 3548 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3549 | fi |
| 3550 | else |
| 3551 | echo "$progname: failed program was:" >&5 |
| 3552 | cat conftest.$ac_ext >&5 |
| 3553 | fi |
| 3554 | rm -f conftest* conftst* |
| 3555 | |
| 3556 | # Do not use the global_symbol_pipe unless it works. |
| 3557 | if test "$pipe_works" = yes; then |
| 3558 | break |
| 3559 | else |
| 3560 | lt_cv_sys_global_symbol_pipe= |
| 3561 | fi |
| 3562 | done |
| 3563 | |
| 3564 | fi |
| 3565 | |
| 3566 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
| 3567 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3568 | global_symbol_to_cdecl= |
| 3569 | global_symbol_to_c_name_address= |
| 3570 | else |
| 3571 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 3572 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
| 3573 | fi |
| 3574 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
| 3575 | then |
| 3576 | echo "$as_me:$LINENO: result: failed" >&5 |
| 3577 | echo "${ECHO_T}failed" >&6 |
| 3578 | else |
| 3579 | echo "$as_me:$LINENO: result: ok" >&5 |
| 3580 | echo "${ECHO_T}ok" >&6 |
| 3581 | fi |
| 3582 | |
| 3583 | |
| 3584 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3585 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3586 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3588 | else |
| 3589 | cat >conftest.$ac_ext <<_ACEOF |
| 3590 | #line $LINENO "configure" |
| 3591 | #include "confdefs.h" |
| 3592 | #include <stdlib.h> |
| 3593 | #include <stdarg.h> |
| 3594 | #include <string.h> |
| 3595 | #include <float.h> |
| 3596 | |
| 3597 | _ACEOF |
| 3598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3600 | ac_status=$? |
| 3601 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3602 | rm -f conftest.er1 |
| 3603 | cat conftest.err >&5 |
| 3604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3605 | (exit $ac_status); } >/dev/null; then |
| 3606 | if test -s conftest.err; then |
| 3607 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3608 | else |
| 3609 | ac_cpp_err= |
| 3610 | fi |
| 3611 | else |
| 3612 | ac_cpp_err=yes |
| 3613 | fi |
| 3614 | if test -z "$ac_cpp_err"; then |
| 3615 | ac_cv_header_stdc=yes |
| 3616 | else |
| 3617 | echo "$as_me: failed program was:" >&5 |
| 3618 | cat conftest.$ac_ext >&5 |
| 3619 | ac_cv_header_stdc=no |
| 3620 | fi |
| 3621 | rm -f conftest.err conftest.$ac_ext |
| 3622 | |
| 3623 | if test $ac_cv_header_stdc = yes; then |
| 3624 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3625 | cat >conftest.$ac_ext <<_ACEOF |
| 3626 | #line $LINENO "configure" |
| 3627 | #include "confdefs.h" |
| 3628 | #include <string.h> |
| 3629 | |
| 3630 | _ACEOF |
| 3631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3632 | egrep "memchr" >/dev/null 2>&1; then |
| 3633 | : |
| 3634 | else |
| 3635 | ac_cv_header_stdc=no |
| 3636 | fi |
| 3637 | rm -f conftest* |
| 3638 | |
| 3639 | fi |
| 3640 | |
| 3641 | if test $ac_cv_header_stdc = yes; then |
| 3642 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3643 | cat >conftest.$ac_ext <<_ACEOF |
| 3644 | #line $LINENO "configure" |
| 3645 | #include "confdefs.h" |
| 3646 | #include <stdlib.h> |
| 3647 | |
| 3648 | _ACEOF |
| 3649 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3650 | egrep "free" >/dev/null 2>&1; then |
| 3651 | : |
| 3652 | else |
| 3653 | ac_cv_header_stdc=no |
| 3654 | fi |
| 3655 | rm -f conftest* |
| 3656 | |
| 3657 | fi |
| 3658 | |
| 3659 | if test $ac_cv_header_stdc = yes; then |
| 3660 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3661 | if test "$cross_compiling" = yes; then |
| 3662 | : |
| 3663 | else |
| 3664 | cat >conftest.$ac_ext <<_ACEOF |
| 3665 | #line $LINENO "configure" |
| 3666 | #include "confdefs.h" |
| 3667 | #include <ctype.h> |
| 3668 | #if ((' ' & 0x0FF) == 0x020) |
| 3669 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3670 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3671 | #else |
| 3672 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3673 | || ('j' <= (c) && (c) <= 'r') \ |
| 3674 | || ('s' <= (c) && (c) <= 'z')) |
| 3675 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3676 | #endif |
| 3677 | |
| 3678 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3679 | int |
| 3680 | main () |
| 3681 | { |
| 3682 | int i; |
| 3683 | for (i = 0; i < 256; i++) |
| 3684 | if (XOR (islower (i), ISLOWER (i)) |
| 3685 | || toupper (i) != TOUPPER (i)) |
| 3686 | exit(2); |
| 3687 | exit (0); |
| 3688 | } |
| 3689 | _ACEOF |
| 3690 | rm -f conftest$ac_exeext |
| 3691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3692 | (eval $ac_link) 2>&5 |
| 3693 | ac_status=$? |
| 3694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3695 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3697 | (eval $ac_try) 2>&5 |
| 3698 | ac_status=$? |
| 3699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3700 | (exit $ac_status); }; }; then |
| 3701 | : |
| 3702 | else |
| 3703 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3704 | echo "$as_me: failed program was:" >&5 |
| 3705 | cat conftest.$ac_ext >&5 |
| 3706 | ( exit $ac_status ) |
| 3707 | ac_cv_header_stdc=no |
| 3708 | fi |
| 3709 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3710 | fi |
| 3711 | fi |
| 3712 | fi |
| 3713 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3714 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3715 | if test $ac_cv_header_stdc = yes; then |
| 3716 | |
| 3717 | cat >>confdefs.h <<\_ACEOF |
| 3718 | #define STDC_HEADERS 1 |
| 3719 | _ACEOF |
| 3720 | |
| 3721 | fi |
| 3722 | |
| 3723 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3724 | |
| 3725 | |
| 3726 | |
| 3727 | |
| 3728 | |
| 3729 | |
| 3730 | |
| 3731 | |
| 3732 | |
| 3733 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3734 | inttypes.h stdint.h unistd.h |
| 3735 | do |
| 3736 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3737 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3738 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3741 | else |
| 3742 | cat >conftest.$ac_ext <<_ACEOF |
| 3743 | #line $LINENO "configure" |
| 3744 | #include "confdefs.h" |
| 3745 | $ac_includes_default |
| 3746 | |
| 3747 | #include <$ac_header> |
| 3748 | _ACEOF |
| 3749 | rm -f conftest.$ac_objext |
| 3750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3751 | (eval $ac_compile) 2>&5 |
| 3752 | ac_status=$? |
| 3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3754 | (exit $ac_status); } && |
| 3755 | { ac_try='test -s conftest.$ac_objext' |
| 3756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3757 | (eval $ac_try) 2>&5 |
| 3758 | ac_status=$? |
| 3759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3760 | (exit $ac_status); }; }; then |
| 3761 | eval "$as_ac_Header=yes" |
| 3762 | else |
| 3763 | echo "$as_me: failed program was:" >&5 |
| 3764 | cat conftest.$ac_ext >&5 |
| 3765 | eval "$as_ac_Header=no" |
| 3766 | fi |
| 3767 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3768 | fi |
| 3769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3770 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3771 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3772 | cat >>confdefs.h <<_ACEOF |
| 3773 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3774 | _ACEOF |
| 3775 | |
| 3776 | fi |
| 3777 | |
| 3778 | done |
| 3779 | |
| 3780 | |
| 3781 | |
| 3782 | for ac_header in dlfcn.h |
| 3783 | do |
| 3784 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3786 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3790 | fi |
| 3791 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3792 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3793 | else |
| 3794 | # Is the header compilable? |
| 3795 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3796 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3797 | cat >conftest.$ac_ext <<_ACEOF |
| 3798 | #line $LINENO "configure" |
| 3799 | #include "confdefs.h" |
| 3800 | $ac_includes_default |
| 3801 | #include <$ac_header> |
| 3802 | _ACEOF |
| 3803 | rm -f conftest.$ac_objext |
| 3804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3805 | (eval $ac_compile) 2>&5 |
| 3806 | ac_status=$? |
| 3807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3808 | (exit $ac_status); } && |
| 3809 | { ac_try='test -s conftest.$ac_objext' |
| 3810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3811 | (eval $ac_try) 2>&5 |
| 3812 | ac_status=$? |
| 3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3814 | (exit $ac_status); }; }; then |
| 3815 | ac_header_compiler=yes |
| 3816 | else |
| 3817 | echo "$as_me: failed program was:" >&5 |
| 3818 | cat conftest.$ac_ext >&5 |
| 3819 | ac_header_compiler=no |
| 3820 | fi |
| 3821 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3822 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3823 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3824 | |
| 3825 | # Is the header present? |
| 3826 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3827 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3828 | cat >conftest.$ac_ext <<_ACEOF |
| 3829 | #line $LINENO "configure" |
| 3830 | #include "confdefs.h" |
| 3831 | #include <$ac_header> |
| 3832 | _ACEOF |
| 3833 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3834 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3835 | ac_status=$? |
| 3836 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3837 | rm -f conftest.er1 |
| 3838 | cat conftest.err >&5 |
| 3839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3840 | (exit $ac_status); } >/dev/null; then |
| 3841 | if test -s conftest.err; then |
| 3842 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3843 | else |
| 3844 | ac_cpp_err= |
| 3845 | fi |
| 3846 | else |
| 3847 | ac_cpp_err=yes |
| 3848 | fi |
| 3849 | if test -z "$ac_cpp_err"; then |
| 3850 | ac_header_preproc=yes |
| 3851 | else |
| 3852 | echo "$as_me: failed program was:" >&5 |
| 3853 | cat conftest.$ac_ext >&5 |
| 3854 | ac_header_preproc=no |
| 3855 | fi |
| 3856 | rm -f conftest.err conftest.$ac_ext |
| 3857 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3858 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3859 | |
| 3860 | # So? What about this header? |
| 3861 | case $ac_header_compiler:$ac_header_preproc in |
| 3862 | yes:no ) |
| 3863 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3864 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3865 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3866 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3867 | no:yes ) |
| 3868 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3869 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3870 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3871 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3872 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3873 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3874 | esac |
| 3875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3879 | else |
| 3880 | eval "$as_ac_Header=$ac_header_preproc" |
| 3881 | fi |
| 3882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3884 | |
| 3885 | fi |
| 3886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3887 | cat >>confdefs.h <<_ACEOF |
| 3888 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3889 | _ACEOF |
| 3890 | |
| 3891 | fi |
| 3892 | |
| 3893 | done |
| 3894 | |
| 3895 | |
| 3896 | |
| 3897 | |
| 3898 | |
| 3899 | # Only perform the check for file, if the check method requires it |
| 3900 | case $deplibs_check_method in |
| 3901 | file_magic*) |
| 3902 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 3903 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 3904 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 3905 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 3906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3907 | else |
| 3908 | case $MAGIC_CMD in |
| 3909 | /*) |
| 3910 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3911 | ;; |
| 3912 | ?:/*) |
| 3913 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 3914 | ;; |
| 3915 | *) |
| 3916 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 3917 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3918 | ac_dummy="/usr/bin:$PATH" |
| 3919 | for ac_dir in $ac_dummy; do |
| 3920 | test -z "$ac_dir" && ac_dir=. |
| 3921 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 3922 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 3923 | if test -n "$file_magic_test_file"; then |
| 3924 | case $deplibs_check_method in |
| 3925 | "file_magic "*) |
| 3926 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3927 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3928 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3929 | egrep "$file_magic_regex" > /dev/null; then |
| 3930 | : |
| 3931 | else |
| 3932 | cat <<EOF 1>&2 |
| 3933 | |
| 3934 | *** Warning: the command libtool uses to detect shared libraries, |
| 3935 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3936 | *** The result is that libtool may fail to recognize shared libraries |
| 3937 | *** as such. This will affect the creation of libtool libraries that |
| 3938 | *** depend on shared libraries, but programs linked with such libtool |
| 3939 | *** libraries will work regardless of this problem. Nevertheless, you |
| 3940 | *** may want to report the problem to your system manager and/or to |
| 3941 | *** bug-libtool@gnu.org |
| 3942 | |
| 3943 | EOF |
| 3944 | fi ;; |
| 3945 | esac |
| 3946 | fi |
| 3947 | break |
| 3948 | fi |
| 3949 | done |
| 3950 | IFS="$ac_save_ifs" |
| 3951 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 3952 | ;; |
| 3953 | esac |
| 3954 | fi |
| 3955 | |
| 3956 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3957 | if test -n "$MAGIC_CMD"; then |
| 3958 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 3959 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 3960 | else |
| 3961 | echo "$as_me:$LINENO: result: no" >&5 |
| 3962 | echo "${ECHO_T}no" >&6 |
| 3963 | fi |
| 3964 | |
| 3965 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 3966 | if test -n "$ac_tool_prefix"; then |
| 3967 | echo "$as_me:$LINENO: checking for file" >&5 |
| 3968 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 3969 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 3970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3971 | else |
| 3972 | case $MAGIC_CMD in |
| 3973 | /*) |
| 3974 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3975 | ;; |
| 3976 | ?:/*) |
| 3977 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 3978 | ;; |
| 3979 | *) |
| 3980 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 3981 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3982 | ac_dummy="/usr/bin:$PATH" |
| 3983 | for ac_dir in $ac_dummy; do |
| 3984 | test -z "$ac_dir" && ac_dir=. |
| 3985 | if test -f $ac_dir/file; then |
| 3986 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 3987 | if test -n "$file_magic_test_file"; then |
| 3988 | case $deplibs_check_method in |
| 3989 | "file_magic "*) |
| 3990 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3991 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3992 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3993 | egrep "$file_magic_regex" > /dev/null; then |
| 3994 | : |
| 3995 | else |
| 3996 | cat <<EOF 1>&2 |
| 3997 | |
| 3998 | *** Warning: the command libtool uses to detect shared libraries, |
| 3999 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4000 | *** The result is that libtool may fail to recognize shared libraries |
| 4001 | *** as such. This will affect the creation of libtool libraries that |
| 4002 | *** depend on shared libraries, but programs linked with such libtool |
| 4003 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4004 | *** may want to report the problem to your system manager and/or to |
| 4005 | *** bug-libtool@gnu.org |
| 4006 | |
| 4007 | EOF |
| 4008 | fi ;; |
| 4009 | esac |
| 4010 | fi |
| 4011 | break |
| 4012 | fi |
| 4013 | done |
| 4014 | IFS="$ac_save_ifs" |
| 4015 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4016 | ;; |
| 4017 | esac |
| 4018 | fi |
| 4019 | |
| 4020 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4021 | if test -n "$MAGIC_CMD"; then |
| 4022 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4023 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4024 | else |
| 4025 | echo "$as_me:$LINENO: result: no" >&5 |
| 4026 | echo "${ECHO_T}no" >&6 |
| 4027 | fi |
| 4028 | |
| 4029 | else |
| 4030 | MAGIC_CMD=: |
| 4031 | fi |
| 4032 | fi |
| 4033 | |
| 4034 | fi |
| 4035 | ;; |
| 4036 | esac |
| 4037 | |
| 4038 | if test -n "$ac_tool_prefix"; then |
| 4039 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4040 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4043 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4045 | else |
| 4046 | if test -n "$RANLIB"; then |
| 4047 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4048 | else |
| 4049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4050 | for as_dir in $PATH |
| 4051 | do |
| 4052 | IFS=$as_save_IFS |
| 4053 | test -z "$as_dir" && as_dir=. |
| 4054 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4055 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4056 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4058 | break 2 |
| 4059 | fi |
| 4060 | done |
| 4061 | done |
| 4062 | |
| 4063 | fi |
| 4064 | fi |
| 4065 | RANLIB=$ac_cv_prog_RANLIB |
| 4066 | if test -n "$RANLIB"; then |
| 4067 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4068 | echo "${ECHO_T}$RANLIB" >&6 |
| 4069 | else |
| 4070 | echo "$as_me:$LINENO: result: no" >&5 |
| 4071 | echo "${ECHO_T}no" >&6 |
| 4072 | fi |
| 4073 | |
| 4074 | fi |
| 4075 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4076 | ac_ct_RANLIB=$RANLIB |
| 4077 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4078 | set dummy ranlib; ac_word=$2 |
| 4079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4081 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4083 | else |
| 4084 | if test -n "$ac_ct_RANLIB"; then |
| 4085 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4086 | else |
| 4087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4088 | for as_dir in $PATH |
| 4089 | do |
| 4090 | IFS=$as_save_IFS |
| 4091 | test -z "$as_dir" && as_dir=. |
| 4092 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4093 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4094 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4096 | break 2 |
| 4097 | fi |
| 4098 | done |
| 4099 | done |
| 4100 | |
| 4101 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4102 | fi |
| 4103 | fi |
| 4104 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4105 | if test -n "$ac_ct_RANLIB"; then |
| 4106 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4107 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4108 | else |
| 4109 | echo "$as_me:$LINENO: result: no" >&5 |
| 4110 | echo "${ECHO_T}no" >&6 |
| 4111 | fi |
| 4112 | |
| 4113 | RANLIB=$ac_ct_RANLIB |
| 4114 | else |
| 4115 | RANLIB="$ac_cv_prog_RANLIB" |
| 4116 | fi |
| 4117 | |
| 4118 | if test -n "$ac_tool_prefix"; then |
| 4119 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4120 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4123 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4125 | else |
| 4126 | if test -n "$STRIP"; then |
| 4127 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4128 | else |
| 4129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4130 | for as_dir in $PATH |
| 4131 | do |
| 4132 | IFS=$as_save_IFS |
| 4133 | test -z "$as_dir" && as_dir=. |
| 4134 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4135 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4136 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4138 | break 2 |
| 4139 | fi |
| 4140 | done |
| 4141 | done |
| 4142 | |
| 4143 | fi |
| 4144 | fi |
| 4145 | STRIP=$ac_cv_prog_STRIP |
| 4146 | if test -n "$STRIP"; then |
| 4147 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4148 | echo "${ECHO_T}$STRIP" >&6 |
| 4149 | else |
| 4150 | echo "$as_me:$LINENO: result: no" >&5 |
| 4151 | echo "${ECHO_T}no" >&6 |
| 4152 | fi |
| 4153 | |
| 4154 | fi |
| 4155 | if test -z "$ac_cv_prog_STRIP"; then |
| 4156 | ac_ct_STRIP=$STRIP |
| 4157 | # Extract the first word of "strip", so it can be a program name with args. |
| 4158 | set dummy strip; ac_word=$2 |
| 4159 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4161 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4163 | else |
| 4164 | if test -n "$ac_ct_STRIP"; then |
| 4165 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4166 | else |
| 4167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4168 | for as_dir in $PATH |
| 4169 | do |
| 4170 | IFS=$as_save_IFS |
| 4171 | test -z "$as_dir" && as_dir=. |
| 4172 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4173 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4174 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4175 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4176 | break 2 |
| 4177 | fi |
| 4178 | done |
| 4179 | done |
| 4180 | |
| 4181 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 4182 | fi |
| 4183 | fi |
| 4184 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4185 | if test -n "$ac_ct_STRIP"; then |
| 4186 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4187 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4188 | else |
| 4189 | echo "$as_me:$LINENO: result: no" >&5 |
| 4190 | echo "${ECHO_T}no" >&6 |
| 4191 | fi |
| 4192 | |
| 4193 | STRIP=$ac_ct_STRIP |
| 4194 | else |
| 4195 | STRIP="$ac_cv_prog_STRIP" |
| 4196 | fi |
| 4197 | |
| 4198 | |
| 4199 | enable_dlopen=no |
| 4200 | enable_win32_dll=no |
| 4201 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4202 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4203 | if test "${enable_libtool_lock+set}" = set; then |
| 4204 | enableval="$enable_libtool_lock" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4205 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4206 | fi; |
| 4207 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4208 | |
| 4209 | # Some flags need to be propagated to the compiler or linker for good |
| 4210 | # libtool support. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4211 | case $host in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4212 | *-*-irix6*) |
| 4213 | # Find out which ABI we are using. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4214 | echo '#line 4214 "configure"' > conftest.$ac_ext |
| 4215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4216 | (eval $ac_compile) 2>&5 |
| 4217 | ac_status=$? |
| 4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4219 | (exit $ac_status); }; then |
| 4220 | case `/usr/bin/file conftest.$ac_objext` in |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4221 | *32-bit*) |
| 4222 | LD="${LD-ld} -32" |
| 4223 | ;; |
| 4224 | *N32*) |
| 4225 | LD="${LD-ld} -n32" |
| 4226 | ;; |
| 4227 | *64-bit*) |
| 4228 | LD="${LD-ld} -64" |
| 4229 | ;; |
| 4230 | esac |
| 4231 | fi |
| 4232 | rm -rf conftest* |
| 4233 | ;; |
| 4234 | |
| 4235 | *-*-sco3.2v5*) |
| 4236 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4237 | SAVE_CFLAGS="$CFLAGS" |
| 4238 | CFLAGS="$CFLAGS -belf" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4239 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4240 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4241 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4243 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4244 | |
| 4245 | |
| 4246 | ac_ext=c |
| 4247 | ac_cpp='$CPP $CPPFLAGS' |
| 4248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4251 | |
| 4252 | cat >conftest.$ac_ext <<_ACEOF |
| 4253 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4254 | #include "confdefs.h" |
| 4255 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4256 | #ifdef F77_DUMMY_MAIN |
| 4257 | # ifdef __cplusplus |
| 4258 | extern "C" |
| 4259 | # endif |
| 4260 | int F77_DUMMY_MAIN() { return 1; } |
| 4261 | #endif |
| 4262 | int |
| 4263 | main () |
| 4264 | { |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4265 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4266 | ; |
| 4267 | return 0; |
| 4268 | } |
| 4269 | _ACEOF |
| 4270 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4272 | (eval $ac_link) 2>&5 |
| 4273 | ac_status=$? |
| 4274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4275 | (exit $ac_status); } && |
| 4276 | { ac_try='test -s conftest$ac_exeext' |
| 4277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4278 | (eval $ac_try) 2>&5 |
| 4279 | ac_status=$? |
| 4280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4281 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4282 | lt_cv_cc_needs_belf=yes |
| 4283 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4284 | echo "$as_me: failed program was:" >&5 |
| 4285 | cat conftest.$ac_ext >&5 |
| 4286 | lt_cv_cc_needs_belf=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4287 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4288 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4289 | ac_ext=c |
| 4290 | ac_cpp='$CPP $CPPFLAGS' |
| 4291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4294 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4295 | fi |
| 4296 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4297 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4298 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4299 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4300 | CFLAGS="$SAVE_CFLAGS" |
| 4301 | fi |
| 4302 | ;; |
| 4303 | |
| 4304 | |
| 4305 | esac |
| 4306 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4307 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 4308 | # metacharacters that are still active within double-quoted strings. |
| 4309 | Xsed='sed -e s/^X//' |
| 4310 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4311 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4312 | # Same as above, but do not quote variable references. |
| 4313 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4314 | |
| 4315 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4316 | # double_quote_subst'ed string. |
| 4317 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4318 | |
| 4319 | # Constants: |
| 4320 | rm="rm -f" |
| 4321 | |
| 4322 | # Global variables: |
| 4323 | default_ofile=libtool |
| 4324 | can_build_shared=yes |
| 4325 | |
| 4326 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 4327 | # which needs '.lib'). |
| 4328 | libext=a |
| 4329 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4330 | ofile="$default_ofile" |
| 4331 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 4332 | need_locks="$enable_libtool_lock" |
| 4333 | |
| 4334 | old_CC="$CC" |
| 4335 | old_CFLAGS="$CFLAGS" |
| 4336 | |
| 4337 | # Set sane defaults for various variables |
| 4338 | test -z "$AR" && AR=ar |
| 4339 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4340 | test -z "$AS" && AS=as |
| 4341 | test -z "$CC" && CC=cc |
| 4342 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 4343 | test -z "$LD" && LD=ld |
| 4344 | test -z "$LN_S" && LN_S="ln -s" |
| 4345 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 4346 | test -z "$NM" && NM=nm |
| 4347 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4348 | test -z "$RANLIB" && RANLIB=: |
| 4349 | test -z "$STRIP" && STRIP=: |
| 4350 | test -z "$ac_objext" && ac_objext=o |
| 4351 | |
| 4352 | if test x"$host" != x"$build"; then |
| 4353 | ac_tool_prefix=${host_alias}- |
| 4354 | else |
| 4355 | ac_tool_prefix= |
| 4356 | fi |
| 4357 | |
| 4358 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 4359 | case $host_os in |
| 4360 | linux-gnu*) ;; |
| 4361 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 4362 | esac |
| 4363 | |
| 4364 | case $host_os in |
| 4365 | aix3*) |
| 4366 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 4367 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4368 | # vanish in a puff of smoke. |
| 4369 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4370 | COLLECT_NAMES= |
| 4371 | export COLLECT_NAMES |
| 4372 | fi |
| 4373 | ;; |
| 4374 | esac |
| 4375 | |
| 4376 | # Determine commands to create old-style static archives. |
| 4377 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 4378 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4379 | old_postuninstall_cmds= |
| 4380 | |
| 4381 | if test -n "$RANLIB"; then |
| 4382 | case $host_os in |
| 4383 | openbsd*) |
| 4384 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4385 | ;; |
| 4386 | *) |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4387 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4388 | ;; |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4389 | esac |
| 4390 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4391 | fi |
| 4392 | |
| 4393 | # Allow CC to be a program name with arguments. |
| 4394 | set dummy $CC |
| 4395 | compiler="$2" |
| 4396 | |
| 4397 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4398 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4399 | rm -f .libs 2>/dev/null |
| 4400 | mkdir .libs 2>/dev/null |
| 4401 | if test -d .libs; then |
| 4402 | objdir=.libs |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4403 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4404 | # MS-DOS does not allow filenames that begin with a dot. |
| 4405 | objdir=_libs |
| 4406 | fi |
| 4407 | rmdir .libs 2>/dev/null |
| 4408 | echo "$as_me:$LINENO: result: $objdir" >&5 |
| 4409 | echo "${ECHO_T}$objdir" >&6 |
| 4410 | |
| 4411 | |
| 4412 | |
| 4413 | # Check whether --with-pic or --without-pic was given. |
| 4414 | if test "${with_pic+set}" = set; then |
| 4415 | withval="$with_pic" |
| 4416 | pic_mode="$withval" |
| 4417 | else |
| 4418 | pic_mode=default |
| 4419 | fi; |
| 4420 | test -z "$pic_mode" && pic_mode=default |
| 4421 | |
| 4422 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 4423 | # in isolation, and that seeing it set (from the cache) indicates that |
| 4424 | # the associated values are set (in the cache) correctly too. |
| 4425 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 4426 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 4427 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
| 4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4429 | else |
| 4430 | lt_cv_prog_cc_pic= |
| 4431 | lt_cv_prog_cc_shlib= |
| 4432 | lt_cv_prog_cc_wl= |
| 4433 | lt_cv_prog_cc_static= |
| 4434 | lt_cv_prog_cc_no_builtin= |
| 4435 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 4436 | |
| 4437 | if test "$GCC" = yes; then |
| 4438 | lt_cv_prog_cc_wl='-Wl,' |
| 4439 | lt_cv_prog_cc_static='-static' |
| 4440 | |
| 4441 | case $host_os in |
| 4442 | aix*) |
| 4443 | # Below there is a dirty hack to force normal static linking with -ldl |
| 4444 | # The problem is because libdl dynamically linked with both libc and |
| 4445 | # libC (AIX C++ library), which obviously doesn't included in libraries |
| 4446 | # list by gcc. This cause undefined symbols with -static flags. |
| 4447 | # This hack allows C programs to be linked with "-static -ldl", but |
| 4448 | # not sure about C++ programs. |
| 4449 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
| 4450 | ;; |
| 4451 | amigaos*) |
| 4452 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 4453 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 4454 | # like `-m68040'. |
| 4455 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
| 4456 | ;; |
| 4457 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
| 4458 | # PIC is the default for these OSes. |
| 4459 | ;; |
| 4460 | darwin* | rhapsody*) |
| 4461 | # PIC is the default on this platform |
| 4462 | # Common symbols not allowed in MH_DYLIB files |
| 4463 | lt_cv_prog_cc_pic='-fno-common' |
| 4464 | ;; |
| 4465 | cygwin* | mingw* | pw32* | os2*) |
| 4466 | # This hack is so that the source file can tell whether it is being |
| 4467 | # built for inclusion in a dll (and should export symbols for example). |
| 4468 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4469 | ;; |
| 4470 | sysv4*MP*) |
| 4471 | if test -d /usr/nec; then |
| 4472 | lt_cv_prog_cc_pic=-Kconform_pic |
| 4473 | fi |
| 4474 | ;; |
| 4475 | *) |
| 4476 | lt_cv_prog_cc_pic='-fPIC' |
| 4477 | ;; |
| 4478 | esac |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4479 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4480 | # PORTME Check for PIC flags for the system compiler. |
| 4481 | case $host_os in |
| 4482 | aix3* | aix4* | aix5*) |
| 4483 | lt_cv_prog_cc_wl='-Wl,' |
| 4484 | # All AIX code is PIC. |
| 4485 | if test "$host_cpu" = ia64; then |
| 4486 | # AIX 5 now supports IA64 processor |
| 4487 | lt_cv_prog_cc_static='-Bstatic' |
| 4488 | else |
| 4489 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
| 4490 | fi |
| 4491 | ;; |
| 4492 | |
| 4493 | hpux9* | hpux10* | hpux11*) |
| 4494 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 4495 | lt_cv_prog_cc_wl='-Wl,' |
| 4496 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 4497 | lt_cv_prog_cc_pic='+Z' |
| 4498 | ;; |
| 4499 | |
| 4500 | irix5* | irix6*) |
| 4501 | lt_cv_prog_cc_wl='-Wl,' |
| 4502 | lt_cv_prog_cc_static='-non_shared' |
| 4503 | # PIC (with -KPIC) is the default. |
| 4504 | ;; |
| 4505 | |
| 4506 | cygwin* | mingw* | pw32* | os2*) |
| 4507 | # This hack is so that the source file can tell whether it is being |
| 4508 | # built for inclusion in a dll (and should export symbols for example). |
| 4509 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4510 | ;; |
| 4511 | |
| 4512 | newsos6) |
| 4513 | lt_cv_prog_cc_pic='-KPIC' |
| 4514 | lt_cv_prog_cc_static='-Bstatic' |
| 4515 | ;; |
| 4516 | |
| 4517 | osf3* | osf4* | osf5*) |
| 4518 | # All OSF/1 code is PIC. |
| 4519 | lt_cv_prog_cc_wl='-Wl,' |
| 4520 | lt_cv_prog_cc_static='-non_shared' |
| 4521 | ;; |
| 4522 | |
| 4523 | sco3.2v5*) |
| 4524 | lt_cv_prog_cc_pic='-Kpic' |
| 4525 | lt_cv_prog_cc_static='-dn' |
| 4526 | lt_cv_prog_cc_shlib='-belf' |
| 4527 | ;; |
| 4528 | |
| 4529 | solaris*) |
| 4530 | lt_cv_prog_cc_pic='-KPIC' |
| 4531 | lt_cv_prog_cc_static='-Bstatic' |
| 4532 | lt_cv_prog_cc_wl='-Wl,' |
| 4533 | ;; |
| 4534 | |
| 4535 | sunos4*) |
| 4536 | lt_cv_prog_cc_pic='-PIC' |
| 4537 | lt_cv_prog_cc_static='-Bstatic' |
| 4538 | lt_cv_prog_cc_wl='-Qoption ld ' |
| 4539 | ;; |
| 4540 | |
| 4541 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4542 | lt_cv_prog_cc_pic='-KPIC' |
| 4543 | lt_cv_prog_cc_static='-Bstatic' |
| 4544 | if test "x$host_vendor" = xsni; then |
| 4545 | lt_cv_prog_cc_wl='-LD' |
| 4546 | else |
| 4547 | lt_cv_prog_cc_wl='-Wl,' |
| 4548 | fi |
| 4549 | ;; |
| 4550 | |
| 4551 | uts4*) |
| 4552 | lt_cv_prog_cc_pic='-pic' |
| 4553 | lt_cv_prog_cc_static='-Bstatic' |
| 4554 | ;; |
| 4555 | |
| 4556 | sysv4*MP*) |
| 4557 | if test -d /usr/nec ;then |
| 4558 | lt_cv_prog_cc_pic='-Kconform_pic' |
| 4559 | lt_cv_prog_cc_static='-Bstatic' |
| 4560 | fi |
| 4561 | ;; |
| 4562 | |
| 4563 | *) |
| 4564 | lt_cv_prog_cc_can_build_shared=no |
| 4565 | ;; |
| 4566 | esac |
| 4567 | fi |
| 4568 | |
| 4569 | fi |
| 4570 | |
| 4571 | if test -z "$lt_cv_prog_cc_pic"; then |
| 4572 | echo "$as_me:$LINENO: result: none" >&5 |
| 4573 | echo "${ECHO_T}none" >&6 |
| 4574 | else |
| 4575 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
| 4576 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
| 4577 | |
| 4578 | # Check to make sure the pic_flag actually works. |
| 4579 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 4580 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
| 4581 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
| 4582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4583 | else |
| 4584 | save_CFLAGS="$CFLAGS" |
| 4585 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 4586 | cat >conftest.$ac_ext <<_ACEOF |
| 4587 | #line $LINENO "configure" |
| 4588 | #include "confdefs.h" |
| 4589 | |
| 4590 | #ifdef F77_DUMMY_MAIN |
| 4591 | # ifdef __cplusplus |
| 4592 | extern "C" |
| 4593 | # endif |
| 4594 | int F77_DUMMY_MAIN() { return 1; } |
| 4595 | #endif |
| 4596 | int |
| 4597 | main () |
| 4598 | { |
| 4599 | |
| 4600 | ; |
| 4601 | return 0; |
| 4602 | } |
| 4603 | _ACEOF |
| 4604 | rm -f conftest.$ac_objext |
| 4605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4606 | (eval $ac_compile) 2>&5 |
| 4607 | ac_status=$? |
| 4608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4609 | (exit $ac_status); } && |
| 4610 | { ac_try='test -s conftest.$ac_objext' |
| 4611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4612 | (eval $ac_try) 2>&5 |
| 4613 | ac_status=$? |
| 4614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4615 | (exit $ac_status); }; }; then |
| 4616 | case $host_os in |
| 4617 | hpux9* | hpux10* | hpux11*) |
| 4618 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 4619 | # they create non-PIC objects. So, if there were any warnings, we |
| 4620 | # assume that PIC is not supported. |
| 4621 | if test -s conftest.err; then |
| 4622 | lt_cv_prog_cc_pic_works=no |
| 4623 | else |
| 4624 | lt_cv_prog_cc_pic_works=yes |
| 4625 | fi |
| 4626 | ;; |
| 4627 | *) |
| 4628 | lt_cv_prog_cc_pic_works=yes |
| 4629 | ;; |
| 4630 | esac |
| 4631 | |
| 4632 | else |
| 4633 | echo "$as_me: failed program was:" >&5 |
| 4634 | cat conftest.$ac_ext >&5 |
| 4635 | lt_cv_prog_cc_pic_works=no |
| 4636 | |
| 4637 | fi |
| 4638 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4639 | CFLAGS="$save_CFLAGS" |
| 4640 | |
| 4641 | fi |
| 4642 | |
| 4643 | |
| 4644 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 4645 | lt_cv_prog_cc_pic= |
| 4646 | lt_cv_prog_cc_can_build_shared=no |
| 4647 | else |
| 4648 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 4649 | fi |
| 4650 | |
| 4651 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
| 4652 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
| 4653 | fi |
| 4654 | |
| 4655 | # Check for any special shared library compilation flags. |
| 4656 | if test -n "$lt_cv_prog_cc_shlib"; then |
| 4657 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
| 4658 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
| 4659 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 4660 | else |
| 4661 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 4662 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 4663 | lt_cv_prog_cc_can_build_shared=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4664 | fi |
| 4665 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4666 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4667 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 4668 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
| 4669 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
| 4670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4671 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4672 | lt_cv_prog_cc_static_works=no |
| 4673 | save_LDFLAGS="$LDFLAGS" |
| 4674 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 4675 | cat >conftest.$ac_ext <<_ACEOF |
| 4676 | #line $LINENO "configure" |
| 4677 | #include "confdefs.h" |
| 4678 | |
| 4679 | #ifdef F77_DUMMY_MAIN |
| 4680 | # ifdef __cplusplus |
| 4681 | extern "C" |
| 4682 | # endif |
| 4683 | int F77_DUMMY_MAIN() { return 1; } |
| 4684 | #endif |
| 4685 | int |
| 4686 | main () |
| 4687 | { |
| 4688 | |
| 4689 | ; |
| 4690 | return 0; |
| 4691 | } |
| 4692 | _ACEOF |
| 4693 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4695 | (eval $ac_link) 2>&5 |
| 4696 | ac_status=$? |
| 4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4698 | (exit $ac_status); } && |
| 4699 | { ac_try='test -s conftest$ac_exeext' |
| 4700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4701 | (eval $ac_try) 2>&5 |
| 4702 | ac_status=$? |
| 4703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4704 | (exit $ac_status); }; }; then |
| 4705 | lt_cv_prog_cc_static_works=yes |
| 4706 | else |
| 4707 | echo "$as_me: failed program was:" >&5 |
| 4708 | cat conftest.$ac_ext >&5 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4709 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 4710 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4711 | LDFLAGS="$save_LDFLAGS" |
| 4712 | |
| 4713 | fi |
| 4714 | |
| 4715 | |
| 4716 | # Belt *and* braces to stop my trousers falling down: |
| 4717 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 4718 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
| 4719 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
| 4720 | |
| 4721 | pic_flag="$lt_cv_prog_cc_pic" |
| 4722 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 4723 | wl="$lt_cv_prog_cc_wl" |
| 4724 | link_static_flag="$lt_cv_prog_cc_static" |
| 4725 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 4726 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 4727 | |
| 4728 | |
| 4729 | # Check to see if options -o and -c are simultaneously supported by compiler |
| 4730 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 4731 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 4732 | if test "${lt_cv_compiler_c_o+set}" = set; then |
| 4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4734 | else |
| 4735 | |
| 4736 | $rm -r conftest 2>/dev/null |
| 4737 | mkdir conftest |
| 4738 | cd conftest |
| 4739 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4740 | mkdir out |
| 4741 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 4742 | # that will create temporary files in the current directory regardless of |
| 4743 | # the output directory. Thus, making CWD read-only will cause this test |
| 4744 | # to fail, enabling locking or at least warning the user not to do parallel |
| 4745 | # builds. |
| 4746 | chmod -w . |
| 4747 | save_CFLAGS="$CFLAGS" |
| 4748 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 4749 | compiler_c_o=no |
| 4750 | if { (eval echo configure:4750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
| 4751 | # The compiler can only warn and ignore the option if not recognized |
| 4752 | # So say no if there are warnings |
| 4753 | if test -s out/conftest.err; then |
| 4754 | lt_cv_compiler_c_o=no |
| 4755 | else |
| 4756 | lt_cv_compiler_c_o=yes |
| 4757 | fi |
| 4758 | else |
| 4759 | # Append any errors to the config.log. |
| 4760 | cat out/conftest.err 1>&5 |
| 4761 | lt_cv_compiler_c_o=no |
| 4762 | fi |
| 4763 | CFLAGS="$save_CFLAGS" |
| 4764 | chmod u+w . |
| 4765 | $rm conftest* out/* |
| 4766 | rmdir out |
| 4767 | cd .. |
| 4768 | rmdir conftest |
| 4769 | $rm -r conftest 2>/dev/null |
| 4770 | |
| 4771 | fi |
| 4772 | |
| 4773 | compiler_c_o=$lt_cv_compiler_c_o |
| 4774 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
| 4775 | echo "${ECHO_T}$compiler_c_o" >&6 |
| 4776 | |
| 4777 | if test x"$compiler_c_o" = x"yes"; then |
| 4778 | # Check to see if we can write to a .lo |
| 4779 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
| 4780 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
| 4781 | if test "${lt_cv_compiler_o_lo+set}" = set; then |
| 4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4783 | else |
| 4784 | |
| 4785 | lt_cv_compiler_o_lo=no |
| 4786 | save_CFLAGS="$CFLAGS" |
| 4787 | CFLAGS="$CFLAGS -c -o conftest.lo" |
| 4788 | save_objext="$ac_objext" |
| 4789 | ac_objext=lo |
| 4790 | cat >conftest.$ac_ext <<_ACEOF |
| 4791 | #line $LINENO "configure" |
| 4792 | #include "confdefs.h" |
| 4793 | |
| 4794 | #ifdef F77_DUMMY_MAIN |
| 4795 | # ifdef __cplusplus |
| 4796 | extern "C" |
| 4797 | # endif |
| 4798 | int F77_DUMMY_MAIN() { return 1; } |
| 4799 | #endif |
| 4800 | int |
| 4801 | main () |
| 4802 | { |
| 4803 | int some_variable = 0; |
| 4804 | ; |
| 4805 | return 0; |
| 4806 | } |
| 4807 | _ACEOF |
| 4808 | rm -f conftest.$ac_objext |
| 4809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4810 | (eval $ac_compile) 2>&5 |
| 4811 | ac_status=$? |
| 4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4813 | (exit $ac_status); } && |
| 4814 | { ac_try='test -s conftest.$ac_objext' |
| 4815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4816 | (eval $ac_try) 2>&5 |
| 4817 | ac_status=$? |
| 4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4819 | (exit $ac_status); }; }; then |
| 4820 | # The compiler can only warn and ignore the option if not recognized |
| 4821 | # So say no if there are warnings |
| 4822 | if test -s conftest.err; then |
| 4823 | lt_cv_compiler_o_lo=no |
| 4824 | else |
| 4825 | lt_cv_compiler_o_lo=yes |
| 4826 | fi |
| 4827 | |
| 4828 | else |
| 4829 | echo "$as_me: failed program was:" >&5 |
| 4830 | cat conftest.$ac_ext >&5 |
| 4831 | fi |
| 4832 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4833 | ac_objext="$save_objext" |
| 4834 | CFLAGS="$save_CFLAGS" |
| 4835 | |
| 4836 | fi |
| 4837 | |
| 4838 | compiler_o_lo=$lt_cv_compiler_o_lo |
| 4839 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
| 4840 | echo "${ECHO_T}$compiler_o_lo" >&6 |
| 4841 | else |
| 4842 | compiler_o_lo=no |
| 4843 | fi |
| 4844 | |
| 4845 | # Check to see if we can do hard links to lock some files if needed |
| 4846 | hard_links="nottested" |
| 4847 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
| 4848 | # do not overwrite the value of need_locks provided by the user |
| 4849 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 4850 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 4851 | hard_links=yes |
| 4852 | $rm conftest* |
| 4853 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 4854 | touch conftest.a |
| 4855 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 4856 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 4857 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 4858 | echo "${ECHO_T}$hard_links" >&6 |
| 4859 | if test "$hard_links" = no; then |
| 4860 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 4861 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 4862 | need_locks=warn |
| 4863 | fi |
| 4864 | else |
| 4865 | need_locks=no |
| 4866 | fi |
| 4867 | |
| 4868 | if test "$GCC" = yes; then |
| 4869 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 4870 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 4871 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 4872 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4873 | save_CFLAGS="$CFLAGS" |
| 4874 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 4875 | compiler_rtti_exceptions=no |
| 4876 | cat >conftest.$ac_ext <<_ACEOF |
| 4877 | #line $LINENO "configure" |
| 4878 | #include "confdefs.h" |
| 4879 | |
| 4880 | #ifdef F77_DUMMY_MAIN |
| 4881 | # ifdef __cplusplus |
| 4882 | extern "C" |
| 4883 | # endif |
| 4884 | int F77_DUMMY_MAIN() { return 1; } |
| 4885 | #endif |
| 4886 | int |
| 4887 | main () |
| 4888 | { |
| 4889 | int some_variable = 0; |
| 4890 | ; |
| 4891 | return 0; |
| 4892 | } |
| 4893 | _ACEOF |
| 4894 | rm -f conftest.$ac_objext |
| 4895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4896 | (eval $ac_compile) 2>&5 |
| 4897 | ac_status=$? |
| 4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4899 | (exit $ac_status); } && |
| 4900 | { ac_try='test -s conftest.$ac_objext' |
| 4901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4902 | (eval $ac_try) 2>&5 |
| 4903 | ac_status=$? |
| 4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4905 | (exit $ac_status); }; }; then |
| 4906 | # The compiler can only warn and ignore the option if not recognized |
| 4907 | # So say no if there are warnings |
| 4908 | if test -s conftest.err; then |
| 4909 | compiler_rtti_exceptions=no |
| 4910 | else |
| 4911 | compiler_rtti_exceptions=yes |
| 4912 | fi |
| 4913 | |
| 4914 | else |
| 4915 | echo "$as_me: failed program was:" >&5 |
| 4916 | cat conftest.$ac_ext >&5 |
| 4917 | fi |
| 4918 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4919 | CFLAGS="$save_CFLAGS" |
| 4920 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
| 4921 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
| 4922 | |
| 4923 | if test "$compiler_rtti_exceptions" = "yes"; then |
| 4924 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 4925 | else |
| 4926 | no_builtin_flag=' -fno-builtin' |
| 4927 | fi |
| 4928 | fi |
| 4929 | |
| 4930 | # See if the linker supports building shared libraries. |
| 4931 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
| 4932 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 4933 | |
| 4934 | allow_undefined_flag= |
| 4935 | no_undefined_flag= |
| 4936 | need_lib_prefix=unknown |
| 4937 | need_version=unknown |
| 4938 | # when you set need_version to no, make sure it does not cause -set_version |
| 4939 | # flags to be left without arguments |
| 4940 | archive_cmds= |
| 4941 | archive_expsym_cmds= |
| 4942 | old_archive_from_new_cmds= |
| 4943 | old_archive_from_expsyms_cmds= |
| 4944 | export_dynamic_flag_spec= |
| 4945 | whole_archive_flag_spec= |
| 4946 | thread_safe_flag_spec= |
| 4947 | hardcode_into_libs=no |
| 4948 | hardcode_libdir_flag_spec= |
| 4949 | hardcode_libdir_separator= |
| 4950 | hardcode_direct=no |
| 4951 | hardcode_minus_L=no |
| 4952 | hardcode_shlibpath_var=unsupported |
| 4953 | runpath_var= |
| 4954 | link_all_deplibs=unknown |
| 4955 | always_export_symbols=no |
| 4956 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4957 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 4958 | # included in the symbol list |
| 4959 | include_expsyms= |
| 4960 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 4961 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 4962 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 4963 | # as well as any symbol that contains `d'. |
| 4964 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 4965 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 4966 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 4967 | # the symbol is explicitly referenced. Since portable code cannot |
| 4968 | # rely on this symbol name, it's probably fine to never include it in |
| 4969 | # preloaded symbol tables. |
| 4970 | extract_expsyms_cmds= |
| 4971 | |
| 4972 | case $host_os in |
| 4973 | cygwin* | mingw* | pw32*) |
| 4974 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 4975 | # When not using gcc, we currently assume that we are using |
| 4976 | # Microsoft Visual C++. |
| 4977 | if test "$GCC" != yes; then |
| 4978 | with_gnu_ld=no |
| 4979 | fi |
| 4980 | ;; |
| 4981 | openbsd*) |
| 4982 | with_gnu_ld=no |
| 4983 | ;; |
| 4984 | esac |
| 4985 | |
| 4986 | ld_shlibs=yes |
| 4987 | if test "$with_gnu_ld" = yes; then |
| 4988 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 4989 | wlarc='${wl}' |
| 4990 | |
| 4991 | # See if GNU ld supports shared libraries. |
| 4992 | case $host_os in |
| 4993 | aix3* | aix4* | aix5*) |
| 4994 | # On AIX, the GNU linker is very broken |
| 4995 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 4996 | ld_shlibs=no |
| 4997 | cat <<EOF 1>&2 |
| 4998 | |
| 4999 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 5000 | *** to be unable to reliably create shared libraries on AIX. |
| 5001 | *** Therefore, libtool is disabling shared libraries support. If you |
| 5002 | *** really care for shared libraries, you may want to modify your PATH |
| 5003 | *** so that a non-GNU linker is found, and then restart. |
| 5004 | |
| 5005 | EOF |
| 5006 | ;; |
| 5007 | |
| 5008 | amigaos*) |
| 5009 | 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)' |
| 5010 | hardcode_libdir_flag_spec='-L$libdir' |
| 5011 | hardcode_minus_L=yes |
| 5012 | |
| 5013 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 5014 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 5015 | # to version 4, is to share data among multiple programs linked |
| 5016 | # with the same dynamic library. Since this doesn't match the |
| 5017 | # behavior of shared libraries on other platforms, we can use |
| 5018 | # them. |
| 5019 | ld_shlibs=no |
| 5020 | ;; |
| 5021 | |
| 5022 | beos*) |
| 5023 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5024 | allow_undefined_flag=unsupported |
| 5025 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5026 | # support --undefined. This deserves some investigation. FIXME |
| 5027 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5028 | else |
| 5029 | ld_shlibs=no |
| 5030 | fi |
| 5031 | ;; |
| 5032 | |
| 5033 | cygwin* | mingw* | pw32*) |
| 5034 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5035 | # no search path for DLLs. |
| 5036 | hardcode_libdir_flag_spec='-L$libdir' |
| 5037 | allow_undefined_flag=unsupported |
| 5038 | always_export_symbols=yes |
| 5039 | |
| 5040 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 5041 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 5042 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 5043 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 5044 | else $CC -o impgen impgen.c ; fi)~ |
| 5045 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 5046 | |
| 5047 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 5048 | |
| 5049 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 5050 | # to exclude. |
| 5051 | # FIXME: what about values for MSVC? |
| 5052 | dll_entry=__cygwin_dll_entry@12 |
| 5053 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 5054 | case $host_os in |
| 5055 | mingw*) |
| 5056 | # mingw values |
| 5057 | dll_entry=_DllMainCRTStartup@12 |
| 5058 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 5059 | ;; |
| 5060 | esac |
| 5061 | |
| 5062 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 5063 | # of the two symbol sets. |
| 5064 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 5065 | |
| 5066 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 5067 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 5068 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 5069 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 5070 | 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~ |
| 5071 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 5072 | else |
| 5073 | ltdll_obj= |
| 5074 | ltdll_cmds= |
| 5075 | fi |
| 5076 | |
| 5077 | # Extract the symbol export list from an `--export-all' def file, |
| 5078 | # then regenerate the def file from the symbol export list, so that |
| 5079 | # the compiled dll only exports the symbol export list. |
| 5080 | # Be careful not to strip the DATA tag left be newer dlltools. |
| 5081 | export_symbols_cmds="$ltdll_cmds"' |
| 5082 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 5083 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 5084 | |
| 5085 | # If the export-symbols file already is a .def file (1st line |
| 5086 | # is EXPORTS), use it as is. |
| 5087 | # If DATA tags from a recent dlltool are present, honour them! |
| 5088 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
| 5089 | cp $export_symbols $output_objdir/$soname-def; |
| 5090 | else |
| 5091 | echo EXPORTS > $output_objdir/$soname-def; |
| 5092 | _lt_hint=1; |
| 5093 | cat $export_symbols | while read symbol; do |
| 5094 | set dummy \$symbol; |
| 5095 | case \$# in |
| 5096 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 5097 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 5098 | esac; |
| 5099 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 5100 | done; |
| 5101 | fi~ |
| 5102 | '"$ltdll_cmds"' |
| 5103 | $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~ |
| 5104 | $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~ |
| 5105 | $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~ |
| 5106 | $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~ |
| 5107 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 5108 | ;; |
| 5109 | |
| 5110 | netbsd*) |
| 5111 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5112 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 5113 | wlarc= |
| 5114 | else |
| 5115 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5116 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5117 | fi |
| 5118 | ;; |
| 5119 | |
| 5120 | solaris* | sysv5*) |
| 5121 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 5122 | ld_shlibs=no |
| 5123 | cat <<EOF 1>&2 |
| 5124 | |
| 5125 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 5126 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 5127 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 5128 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 5129 | *** your PATH or compiler configuration so that the native linker is |
| 5130 | *** used, and then restart. |
| 5131 | |
| 5132 | EOF |
| 5133 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5134 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5135 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5136 | else |
| 5137 | ld_shlibs=no |
| 5138 | fi |
| 5139 | ;; |
| 5140 | |
| 5141 | sunos4*) |
| 5142 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5143 | wlarc= |
| 5144 | hardcode_direct=yes |
| 5145 | hardcode_shlibpath_var=no |
| 5146 | ;; |
| 5147 | |
| 5148 | *) |
| 5149 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5150 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5151 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5152 | else |
| 5153 | ld_shlibs=no |
| 5154 | fi |
| 5155 | ;; |
| 5156 | esac |
| 5157 | |
| 5158 | if test "$ld_shlibs" = yes; then |
| 5159 | runpath_var=LD_RUN_PATH |
| 5160 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 5161 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 5162 | case $host_os in |
| 5163 | cygwin* | mingw* | pw32*) |
| 5164 | # dlltool doesn't understand --whole-archive et. al. |
| 5165 | whole_archive_flag_spec= |
| 5166 | ;; |
| 5167 | *) |
| 5168 | # ancient GNU ld didn't support --whole-archive et. al. |
| 5169 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 5170 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5171 | else |
| 5172 | whole_archive_flag_spec= |
| 5173 | fi |
| 5174 | ;; |
| 5175 | esac |
| 5176 | fi |
| 5177 | else |
| 5178 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 5179 | case $host_os in |
| 5180 | aix3*) |
| 5181 | allow_undefined_flag=unsupported |
| 5182 | always_export_symbols=yes |
| 5183 | 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' |
| 5184 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 5185 | # are no directories specified by -L. |
| 5186 | hardcode_minus_L=yes |
| 5187 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 5188 | # Neither direct hardcoding nor static linking is supported with a |
| 5189 | # broken collect2. |
| 5190 | hardcode_direct=unsupported |
| 5191 | fi |
| 5192 | ;; |
| 5193 | |
| 5194 | aix4* | aix5*) |
| 5195 | if test "$host_cpu" = ia64; then |
| 5196 | # On IA64, the linker does run time linking by default, so we don't |
| 5197 | # have to do anything special. |
| 5198 | aix_use_runtimelinking=no |
| 5199 | exp_sym_flag='-Bexport' |
| 5200 | no_entry_flag="" |
| 5201 | else |
| 5202 | aix_use_runtimelinking=no |
| 5203 | |
| 5204 | # Test if we are trying to use run time linking or normal |
| 5205 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5206 | # need to do runtime linking. |
| 5207 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 5208 | for ld_flag in $LDFLAGS; do |
| 5209 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 5210 | aix_use_runtimelinking=yes |
| 5211 | break |
| 5212 | fi |
| 5213 | done |
| 5214 | esac |
| 5215 | |
| 5216 | exp_sym_flag='-bexport' |
| 5217 | no_entry_flag='-bnoentry' |
| 5218 | fi |
| 5219 | |
| 5220 | # When large executables or shared objects are built, AIX ld can |
| 5221 | # have problems creating the table of contents. If linking a library |
| 5222 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 5223 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5224 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5225 | |
| 5226 | hardcode_direct=yes |
| 5227 | archive_cmds='' |
| 5228 | hardcode_libdir_separator=':' |
| 5229 | if test "$GCC" = yes; then |
| 5230 | case $host_os in aix4.[012]|aix4.[012].*) |
| 5231 | collect2name=`${CC} -print-prog-name=collect2` |
| 5232 | if test -f "$collect2name" && \ |
| 5233 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 5234 | then |
| 5235 | # We have reworked collect2 |
| 5236 | hardcode_direct=yes |
| 5237 | else |
| 5238 | # We have old collect2 |
| 5239 | hardcode_direct=unsupported |
| 5240 | # It fails to find uninstalled libraries when the uninstalled |
| 5241 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 5242 | # to unsupported forces relinking |
| 5243 | hardcode_minus_L=yes |
| 5244 | hardcode_libdir_flag_spec='-L$libdir' |
| 5245 | hardcode_libdir_separator= |
| 5246 | fi |
| 5247 | esac |
| 5248 | |
| 5249 | shared_flag='-shared' |
| 5250 | else |
| 5251 | # not using gcc |
| 5252 | if test "$host_cpu" = ia64; then |
| 5253 | shared_flag='${wl}-G' |
| 5254 | else |
| 5255 | if test "$aix_use_runtimelinking" = yes; then |
| 5256 | shared_flag='${wl}-G' |
| 5257 | else |
| 5258 | shared_flag='${wl}-bM:SRE' |
| 5259 | fi |
| 5260 | fi |
| 5261 | fi |
| 5262 | |
| 5263 | # It seems that -bexpall can do strange things, so it is better to |
| 5264 | # generate a list of symbols to export. |
| 5265 | always_export_symbols=yes |
| 5266 | if test "$aix_use_runtimelinking" = yes; then |
| 5267 | # Warning - without using the other runtime loading flags (-brtl), |
| 5268 | # -berok will link without error, but may produce a broken library. |
| 5269 | allow_undefined_flag='-berok' |
| 5270 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5271 | 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" |
| 5272 | else |
| 5273 | if test "$host_cpu" = ia64; then |
| 5274 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 5275 | allow_undefined_flag="-z nodefs" |
| 5276 | 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" |
| 5277 | else |
| 5278 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5279 | # Warning - without using the other run time loading flags, |
| 5280 | # -berok will link without error, but may produce a broken library. |
| 5281 | allow_undefined_flag='${wl}-berok' |
| 5282 | # This is a bit strange, but is similar to how AIX traditionally builds |
| 5283 | # it's shared libraries. |
| 5284 | 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' |
| 5285 | fi |
| 5286 | fi |
| 5287 | ;; |
| 5288 | |
| 5289 | amigaos*) |
| 5290 | 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)' |
| 5291 | hardcode_libdir_flag_spec='-L$libdir' |
| 5292 | hardcode_minus_L=yes |
| 5293 | # see comment about different semantics on the GNU ld section |
| 5294 | ld_shlibs=no |
| 5295 | ;; |
| 5296 | |
| 5297 | cygwin* | mingw* | pw32*) |
| 5298 | # When not using gcc, we currently assume that we are using |
| 5299 | # Microsoft Visual C++. |
| 5300 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5301 | # no search path for DLLs. |
| 5302 | hardcode_libdir_flag_spec=' ' |
| 5303 | allow_undefined_flag=unsupported |
| 5304 | # Tell ltmain to make .lib files, not .a files. |
| 5305 | libext=lib |
| 5306 | # FIXME: Setting linknames here is a bad hack. |
| 5307 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5308 | # The linker will automatically build a .lib file if we build a DLL. |
| 5309 | old_archive_from_new_cmds='true' |
| 5310 | # FIXME: Should let the user specify the lib program. |
| 5311 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 5312 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 5313 | ;; |
| 5314 | |
| 5315 | darwin* | rhapsody*) |
| 5316 | case "$host_os" in |
| 5317 | rhapsody* | darwin1.[012]) |
| 5318 | allow_undefined_flag='-undefined suppress' |
| 5319 | ;; |
| 5320 | *) # Darwin 1.3 on |
| 5321 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 5322 | ;; |
| 5323 | esac |
| 5324 | # FIXME: Relying on posixy $() will cause problems for |
| 5325 | # cross-compilation, but unfortunately the echo tests do not |
| 5326 | # yet detect zsh echo's removal of \ escapes. |
| 5327 | archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' |
| 5328 | # We need to add '_' to the symbols in $export_symbols first |
| 5329 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 5330 | hardcode_direct=yes |
| 5331 | hardcode_shlibpath_var=no |
| 5332 | whole_archive_flag_spec='-all_load $convenience' |
| 5333 | ;; |
| 5334 | |
| 5335 | freebsd1*) |
| 5336 | ld_shlibs=no |
| 5337 | ;; |
| 5338 | |
| 5339 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 5340 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 5341 | # does not break anything, and helps significantly (at the cost of a little |
| 5342 | # extra space). |
| 5343 | freebsd2.2*) |
| 5344 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 5345 | hardcode_libdir_flag_spec='-R$libdir' |
| 5346 | hardcode_direct=yes |
| 5347 | hardcode_shlibpath_var=no |
| 5348 | ;; |
| 5349 | |
| 5350 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 5351 | freebsd2*) |
| 5352 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5353 | hardcode_direct=yes |
| 5354 | hardcode_minus_L=yes |
| 5355 | hardcode_shlibpath_var=no |
| 5356 | ;; |
| 5357 | |
| 5358 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 5359 | freebsd*) |
| 5360 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 5361 | hardcode_libdir_flag_spec='-R$libdir' |
| 5362 | hardcode_direct=yes |
| 5363 | hardcode_shlibpath_var=no |
| 5364 | ;; |
| 5365 | |
| 5366 | hpux9* | hpux10* | hpux11*) |
| 5367 | case $host_os in |
| 5368 | 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' ;; |
| 5369 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 5370 | esac |
| 5371 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 5372 | hardcode_libdir_separator=: |
| 5373 | hardcode_direct=yes |
| 5374 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 5375 | # location of the library. |
| 5376 | export_dynamic_flag_spec='${wl}-E' |
| 5377 | ;; |
| 5378 | |
| 5379 | irix5* | irix6*) |
| 5380 | if test "$GCC" = yes; then |
| 5381 | 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' |
| 5382 | else |
| 5383 | 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' |
| 5384 | fi |
| 5385 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5386 | hardcode_libdir_separator=: |
| 5387 | link_all_deplibs=yes |
| 5388 | ;; |
| 5389 | |
| 5390 | netbsd*) |
| 5391 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5392 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 5393 | else |
| 5394 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 5395 | fi |
| 5396 | hardcode_libdir_flag_spec='-R$libdir' |
| 5397 | hardcode_direct=yes |
| 5398 | hardcode_shlibpath_var=no |
| 5399 | ;; |
| 5400 | |
| 5401 | newsos6) |
| 5402 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5403 | hardcode_direct=yes |
| 5404 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5405 | hardcode_libdir_separator=: |
| 5406 | hardcode_shlibpath_var=no |
| 5407 | ;; |
| 5408 | |
| 5409 | openbsd*) |
| 5410 | hardcode_direct=yes |
| 5411 | hardcode_shlibpath_var=no |
| 5412 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5413 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
| 5414 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5415 | export_dynamic_flag_spec='${wl}-E' |
| 5416 | else |
| 5417 | case "$host_os" in |
| 5418 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 5419 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5420 | hardcode_libdir_flag_spec='-R$libdir' |
| 5421 | ;; |
| 5422 | *) |
| 5423 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
| 5424 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5425 | ;; |
| 5426 | esac |
| 5427 | fi |
| 5428 | ;; |
| 5429 | |
| 5430 | os2*) |
| 5431 | hardcode_libdir_flag_spec='-L$libdir' |
| 5432 | hardcode_minus_L=yes |
| 5433 | allow_undefined_flag=unsupported |
| 5434 | 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' |
| 5435 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 5436 | ;; |
| 5437 | |
| 5438 | osf3*) |
| 5439 | if test "$GCC" = yes; then |
| 5440 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5441 | 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' |
| 5442 | else |
| 5443 | allow_undefined_flag=' -expect_unresolved \*' |
| 5444 | 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' |
| 5445 | fi |
| 5446 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5447 | hardcode_libdir_separator=: |
| 5448 | ;; |
| 5449 | |
| 5450 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5451 | if test "$GCC" = yes; then |
| 5452 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5453 | 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' |
| 5454 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5455 | else |
| 5456 | allow_undefined_flag=' -expect_unresolved \*' |
| 5457 | 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' |
| 5458 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 5459 | $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' |
| 5460 | |
| 5461 | #Both c and cxx compiler support -rpath directly |
| 5462 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5463 | fi |
| 5464 | hardcode_libdir_separator=: |
| 5465 | ;; |
| 5466 | |
| 5467 | sco3.2v5*) |
| 5468 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5469 | hardcode_shlibpath_var=no |
| 5470 | runpath_var=LD_RUN_PATH |
| 5471 | hardcode_runpath_var=yes |
| 5472 | export_dynamic_flag_spec='${wl}-Bexport' |
| 5473 | ;; |
| 5474 | |
| 5475 | solaris*) |
| 5476 | # gcc --version < 3.0 without binutils cannot create self contained |
| 5477 | # shared libraries reliably, requiring libgcc.a to resolve some of |
| 5478 | # the object symbols generated in some cases. Libraries that use |
| 5479 | # assert need libgcc.a to resolve __eprintf, for example. Linking |
| 5480 | # a copy of libgcc.a into every shared library to guarantee resolving |
| 5481 | # such symbols causes other problems: According to Tim Van Holder |
| 5482 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
| 5483 | # (to the application) exception stack for one thing. |
| 5484 | no_undefined_flag=' -z defs' |
| 5485 | if test "$GCC" = yes; then |
| 5486 | case `$CC --version 2>/dev/null` in |
| 5487 | [12].*) |
| 5488 | cat <<EOF 1>&2 |
| 5489 | |
| 5490 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
| 5491 | *** create self contained shared libraries on Solaris systems, without |
| 5492 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
| 5493 | *** -no-undefined support, which will at least allow you to build shared |
| 5494 | *** libraries. However, you may find that when you link such libraries |
| 5495 | *** into an application without using GCC, you have to manually add |
| 5496 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
| 5497 | *** upgrade to a newer version of GCC. Another option is to rebuild your |
| 5498 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
| 5499 | |
| 5500 | EOF |
| 5501 | no_undefined_flag= |
| 5502 | ;; |
| 5503 | esac |
| 5504 | fi |
| 5505 | # $CC -shared without GNU ld will not create a library from C++ |
| 5506 | # object files and a static libstdc++, better avoid it by now |
| 5507 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5508 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5509 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5510 | hardcode_libdir_flag_spec='-R$libdir' |
| 5511 | hardcode_shlibpath_var=no |
| 5512 | case $host_os in |
| 5513 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 5514 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 5515 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 5516 | esac |
| 5517 | link_all_deplibs=yes |
| 5518 | ;; |
| 5519 | |
| 5520 | sunos4*) |
| 5521 | if test "x$host_vendor" = xsequent; then |
| 5522 | # Use $CC to link under sequent, because it throws in some extra .o |
| 5523 | # files that make .init and .fini sections work. |
| 5524 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5525 | else |
| 5526 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 5527 | fi |
| 5528 | hardcode_libdir_flag_spec='-L$libdir' |
| 5529 | hardcode_direct=yes |
| 5530 | hardcode_minus_L=yes |
| 5531 | hardcode_shlibpath_var=no |
| 5532 | ;; |
| 5533 | |
| 5534 | sysv4) |
| 5535 | if test "x$host_vendor" = xsno; then |
| 5536 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5537 | hardcode_direct=yes # is this really true??? |
| 5538 | else |
| 5539 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5540 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 5541 | fi |
| 5542 | runpath_var='LD_RUN_PATH' |
| 5543 | hardcode_shlibpath_var=no |
| 5544 | ;; |
| 5545 | |
| 5546 | sysv4.3*) |
| 5547 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5548 | hardcode_shlibpath_var=no |
| 5549 | export_dynamic_flag_spec='-Bexport' |
| 5550 | ;; |
| 5551 | |
| 5552 | sysv5*) |
| 5553 | no_undefined_flag=' -z text' |
| 5554 | # $CC -shared without GNU ld will not create a library from C++ |
| 5555 | # object files and a static libstdc++, better avoid it by now |
| 5556 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5557 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5558 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5559 | hardcode_libdir_flag_spec= |
| 5560 | hardcode_shlibpath_var=no |
| 5561 | runpath_var='LD_RUN_PATH' |
| 5562 | ;; |
| 5563 | |
| 5564 | uts4*) |
| 5565 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5566 | hardcode_libdir_flag_spec='-L$libdir' |
| 5567 | hardcode_shlibpath_var=no |
| 5568 | ;; |
| 5569 | |
| 5570 | dgux*) |
| 5571 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5572 | hardcode_libdir_flag_spec='-L$libdir' |
| 5573 | hardcode_shlibpath_var=no |
| 5574 | ;; |
| 5575 | |
| 5576 | sysv4*MP*) |
| 5577 | if test -d /usr/nec; then |
| 5578 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5579 | hardcode_shlibpath_var=no |
| 5580 | runpath_var=LD_RUN_PATH |
| 5581 | hardcode_runpath_var=yes |
| 5582 | ld_shlibs=yes |
| 5583 | fi |
| 5584 | ;; |
| 5585 | |
| 5586 | sysv4.2uw2*) |
| 5587 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5588 | hardcode_direct=yes |
| 5589 | hardcode_minus_L=no |
| 5590 | hardcode_shlibpath_var=no |
| 5591 | hardcode_runpath_var=yes |
| 5592 | runpath_var=LD_RUN_PATH |
| 5593 | ;; |
| 5594 | |
| 5595 | sysv5uw7* | unixware7*) |
| 5596 | no_undefined_flag='${wl}-z ${wl}text' |
| 5597 | if test "$GCC" = yes; then |
| 5598 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5599 | else |
| 5600 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5601 | fi |
| 5602 | runpath_var='LD_RUN_PATH' |
| 5603 | hardcode_shlibpath_var=no |
| 5604 | ;; |
| 5605 | |
| 5606 | *) |
| 5607 | ld_shlibs=no |
| 5608 | ;; |
| 5609 | esac |
| 5610 | fi |
| 5611 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 5612 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 5613 | test "$ld_shlibs" = no && can_build_shared=no |
| 5614 | |
| 5615 | # Check hardcoding attributes. |
| 5616 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 5617 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 5618 | hardcode_action= |
| 5619 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 5620 | test -n "$runpath_var"; then |
| 5621 | |
| 5622 | # We can hardcode non-existant directories. |
| 5623 | if test "$hardcode_direct" != no && |
| 5624 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 5625 | # have to relink, otherwise we might link with an installed library |
| 5626 | # when we should be linking with a yet-to-be-installed one |
| 5627 | ## test "$hardcode_shlibpath_var" != no && |
| 5628 | test "$hardcode_minus_L" != no; then |
| 5629 | # Linking always hardcodes the temporary library directory. |
| 5630 | hardcode_action=relink |
| 5631 | else |
| 5632 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 5633 | hardcode_action=immediate |
| 5634 | fi |
| 5635 | else |
| 5636 | # We cannot hardcode anything, or else we can only hardcode existing |
| 5637 | # directories. |
| 5638 | hardcode_action=unsupported |
| 5639 | fi |
| 5640 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 5641 | echo "${ECHO_T}$hardcode_action" >&6 |
| 5642 | |
| 5643 | striplib= |
| 5644 | old_striplib= |
| 5645 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 5646 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 5647 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 5648 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 5649 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 5650 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5651 | echo "${ECHO_T}yes" >&6 |
| 5652 | else |
| 5653 | echo "$as_me:$LINENO: result: no" >&5 |
| 5654 | echo "${ECHO_T}no" >&6 |
| 5655 | fi |
| 5656 | |
| 5657 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5658 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5659 | |
| 5660 | # PORTME Fill in your ld.so characteristics |
| 5661 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 5662 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 5663 | library_names_spec= |
| 5664 | libname_spec='lib$name' |
| 5665 | soname_spec= |
| 5666 | postinstall_cmds= |
| 5667 | postuninstall_cmds= |
| 5668 | finish_cmds= |
| 5669 | finish_eval= |
| 5670 | shlibpath_var= |
| 5671 | shlibpath_overrides_runpath=unknown |
| 5672 | version_type=none |
| 5673 | dynamic_linker="$host_os ld.so" |
| 5674 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 5675 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 5676 | |
| 5677 | case $host_os in |
| 5678 | aix3*) |
| 5679 | version_type=linux |
| 5680 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 5681 | shlibpath_var=LIBPATH |
| 5682 | |
| 5683 | # AIX has no versioning support, so we append a major version to the name. |
| 5684 | soname_spec='${libname}${release}.so$major' |
| 5685 | ;; |
| 5686 | |
| 5687 | aix4* | aix5*) |
| 5688 | version_type=linux |
| 5689 | if test "$host_cpu" = ia64; then |
| 5690 | # AIX 5 supports IA64 |
| 5691 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 5692 | shlibpath_var=LD_LIBRARY_PATH |
| 5693 | else |
| 5694 | # With GCC up to 2.95.x, collect2 would create an import file |
| 5695 | # for dependence libraries. The import file would start with |
| 5696 | # the line `#! .'. This would cause the generated library to |
| 5697 | # depend on `.', always an invalid library. This was fixed in |
| 5698 | # development snapshots of GCC prior to 3.0. |
| 5699 | case $host_os in |
| 5700 | aix4 | aix4.[01] | aix4.[01].*) |
| 5701 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 5702 | echo ' yes ' |
| 5703 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 5704 | : |
| 5705 | else |
| 5706 | can_build_shared=no |
| 5707 | fi |
| 5708 | ;; |
| 5709 | esac |
| 5710 | # AIX (on Power*) has no versioning support, so currently we can |
| 5711 | # not hardcode correct soname into executable. Probably we can |
| 5712 | # add versioning support to collect2, so additional links can |
| 5713 | # be useful in future. |
| 5714 | if test "$aix_use_runtimelinking" = yes; then |
| 5715 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 5716 | # instead of lib<name>.a to let people know that these are not |
| 5717 | # typical AIX shared libraries. |
| 5718 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5719 | else |
| 5720 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 5721 | # and later when we are not doing run time linking. |
| 5722 | library_names_spec='${libname}${release}.a $libname.a' |
| 5723 | soname_spec='${libname}${release}.so$major' |
| 5724 | fi |
| 5725 | shlibpath_var=LIBPATH |
| 5726 | fi |
| 5727 | ;; |
| 5728 | |
| 5729 | amigaos*) |
| 5730 | library_names_spec='$libname.ixlibrary $libname.a' |
| 5731 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 5732 | 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' |
| 5733 | ;; |
| 5734 | |
| 5735 | beos*) |
| 5736 | library_names_spec='${libname}.so' |
| 5737 | dynamic_linker="$host_os ld.so" |
| 5738 | shlibpath_var=LIBRARY_PATH |
| 5739 | ;; |
| 5740 | |
| 5741 | bsdi4*) |
| 5742 | version_type=linux |
| 5743 | need_version=no |
| 5744 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5745 | soname_spec='${libname}${release}.so$major' |
| 5746 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 5747 | shlibpath_var=LD_LIBRARY_PATH |
| 5748 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 5749 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 5750 | export_dynamic_flag_spec=-rdynamic |
| 5751 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 5752 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 5753 | # libtool to hard-code these into programs |
| 5754 | ;; |
| 5755 | |
| 5756 | cygwin* | mingw* | pw32*) |
| 5757 | version_type=windows |
| 5758 | need_version=no |
| 5759 | need_lib_prefix=no |
| 5760 | case $GCC,$host_os in |
| 5761 | yes,cygwin*) |
| 5762 | library_names_spec='$libname.dll.a' |
| 5763 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 5764 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 5765 | dldir=$destdir/`dirname \$dlpath`~ |
| 5766 | test -d \$dldir || mkdir -p \$dldir~ |
| 5767 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 5768 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 5769 | dlpath=$dir/\$dldll~ |
| 5770 | $rm \$dlpath' |
| 5771 | ;; |
| 5772 | yes,mingw*) |
| 5773 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 5774 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` |
| 5775 | ;; |
| 5776 | yes,pw32*) |
| 5777 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 5778 | ;; |
| 5779 | *) |
| 5780 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 5781 | ;; |
| 5782 | esac |
| 5783 | dynamic_linker='Win32 ld.exe' |
| 5784 | # FIXME: first we should search . and the directory the executable is in |
| 5785 | shlibpath_var=PATH |
| 5786 | ;; |
| 5787 | |
| 5788 | darwin* | rhapsody*) |
| 5789 | dynamic_linker="$host_os dyld" |
| 5790 | version_type=darwin |
| 5791 | need_lib_prefix=no |
| 5792 | need_version=no |
| 5793 | # FIXME: Relying on posixy $() will cause problems for |
| 5794 | # cross-compilation, but unfortunately the echo tests do not |
| 5795 | # yet detect zsh echo's removal of \ escapes. |
| 5796 | 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)' |
| 5797 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 5798 | shlibpath_overrides_runpath=yes |
| 5799 | shlibpath_var=DYLD_LIBRARY_PATH |
| 5800 | ;; |
| 5801 | |
| 5802 | freebsd1*) |
| 5803 | dynamic_linker=no |
| 5804 | ;; |
| 5805 | |
| 5806 | freebsd*) |
| 5807 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 5808 | version_type=freebsd-$objformat |
| 5809 | case $version_type in |
| 5810 | freebsd-elf*) |
| 5811 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 5812 | need_version=no |
| 5813 | need_lib_prefix=no |
| 5814 | ;; |
| 5815 | freebsd-*) |
| 5816 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 5817 | need_version=yes |
| 5818 | ;; |
| 5819 | esac |
| 5820 | shlibpath_var=LD_LIBRARY_PATH |
| 5821 | case $host_os in |
| 5822 | freebsd2*) |
| 5823 | shlibpath_overrides_runpath=yes |
| 5824 | ;; |
| 5825 | *) |
| 5826 | shlibpath_overrides_runpath=no |
| 5827 | hardcode_into_libs=yes |
| 5828 | ;; |
| 5829 | esac |
| 5830 | ;; |
| 5831 | |
| 5832 | gnu*) |
| 5833 | version_type=linux |
| 5834 | need_lib_prefix=no |
| 5835 | need_version=no |
| 5836 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 5837 | soname_spec='${libname}${release}.so$major' |
| 5838 | shlibpath_var=LD_LIBRARY_PATH |
| 5839 | hardcode_into_libs=yes |
| 5840 | ;; |
| 5841 | |
| 5842 | hpux9* | hpux10* | hpux11*) |
| 5843 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 5844 | # link against other versions. |
| 5845 | dynamic_linker="$host_os dld.sl" |
| 5846 | version_type=sunos |
| 5847 | need_lib_prefix=no |
| 5848 | need_version=no |
| 5849 | shlibpath_var=SHLIB_PATH |
| 5850 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 5851 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 5852 | soname_spec='${libname}${release}.sl$major' |
| 5853 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 5854 | postinstall_cmds='chmod 555 $lib' |
| 5855 | ;; |
| 5856 | |
| 5857 | irix5* | irix6*) |
| 5858 | version_type=irix |
| 5859 | need_lib_prefix=no |
| 5860 | need_version=no |
| 5861 | soname_spec='${libname}${release}.so$major' |
| 5862 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 5863 | case $host_os in |
| 5864 | irix5*) |
| 5865 | libsuff= shlibsuff= |
| 5866 | ;; |
| 5867 | *) |
| 5868 | case $LD in # libtool.m4 will add one of these switches to LD |
| 5869 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 5870 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 5871 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 5872 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 5873 | esac |
| 5874 | ;; |
| 5875 | esac |
| 5876 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 5877 | shlibpath_overrides_runpath=no |
| 5878 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 5879 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 5880 | ;; |
| 5881 | |
| 5882 | # No shared lib support for Linux oldld, aout, or coff. |
| 5883 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
| 5884 | dynamic_linker=no |
| 5885 | ;; |
| 5886 | |
| 5887 | # This must be Linux ELF. |
| 5888 | linux-gnu*) |
| 5889 | version_type=linux |
| 5890 | need_lib_prefix=no |
| 5891 | need_version=no |
| 5892 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5893 | soname_spec='${libname}${release}.so$major' |
| 5894 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 5895 | shlibpath_var=LD_LIBRARY_PATH |
| 5896 | shlibpath_overrides_runpath=no |
| 5897 | # This implies no fast_install, which is unacceptable. |
| 5898 | # Some rework will be needed to allow for fast_install |
| 5899 | # before this can be enabled. |
| 5900 | hardcode_into_libs=yes |
| 5901 | |
| 5902 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 5903 | # powerpc, because MkLinux only supported shared libraries with the |
| 5904 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 5905 | # most powerpc-linux boxes support dynamic linking these days and |
| 5906 | # people can always --disable-shared, the test was removed, and we |
| 5907 | # assume the GNU/Linux dynamic linker is in use. |
| 5908 | dynamic_linker='GNU/Linux ld.so' |
| 5909 | ;; |
| 5910 | |
| 5911 | netbsd*) |
| 5912 | version_type=sunos |
| 5913 | need_lib_prefix=no |
| 5914 | need_version=no |
| 5915 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5916 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5917 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 5918 | dynamic_linker='NetBSD (a.out) ld.so' |
| 5919 | else |
| 5920 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 5921 | soname_spec='${libname}${release}.so$major' |
| 5922 | dynamic_linker='NetBSD ld.elf_so' |
| 5923 | fi |
| 5924 | shlibpath_var=LD_LIBRARY_PATH |
| 5925 | shlibpath_overrides_runpath=yes |
| 5926 | hardcode_into_libs=yes |
| 5927 | ;; |
| 5928 | |
| 5929 | newsos6) |
| 5930 | version_type=linux |
| 5931 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5932 | shlibpath_var=LD_LIBRARY_PATH |
| 5933 | shlibpath_overrides_runpath=yes |
| 5934 | ;; |
| 5935 | |
| 5936 | openbsd*) |
| 5937 | version_type=sunos |
| 5938 | need_lib_prefix=no |
| 5939 | need_version=no |
| 5940 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5941 | case "$host_os" in |
| 5942 | openbsd2.[89] | openbsd2.[89].*) |
| 5943 | shlibpath_overrides_runpath=no |
| 5944 | ;; |
| 5945 | *) |
| 5946 | shlibpath_overrides_runpath=yes |
| 5947 | ;; |
| 5948 | esac |
| 5949 | else |
| 5950 | shlibpath_overrides_runpath=yes |
| 5951 | fi |
| 5952 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5953 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 5954 | shlibpath_var=LD_LIBRARY_PATH |
| 5955 | ;; |
| 5956 | |
| 5957 | os2*) |
| 5958 | libname_spec='$name' |
| 5959 | need_lib_prefix=no |
| 5960 | library_names_spec='$libname.dll $libname.a' |
| 5961 | dynamic_linker='OS/2 ld.exe' |
| 5962 | shlibpath_var=LIBPATH |
| 5963 | ;; |
| 5964 | |
| 5965 | osf3* | osf4* | osf5*) |
| 5966 | version_type=osf |
| 5967 | need_version=no |
| 5968 | soname_spec='${libname}${release}.so' |
| 5969 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 5970 | shlibpath_var=LD_LIBRARY_PATH |
| 5971 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 5972 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 5973 | ;; |
| 5974 | |
| 5975 | sco3.2v5*) |
| 5976 | version_type=osf |
| 5977 | soname_spec='${libname}${release}.so$major' |
| 5978 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5979 | shlibpath_var=LD_LIBRARY_PATH |
| 5980 | ;; |
| 5981 | |
| 5982 | solaris*) |
| 5983 | version_type=linux |
| 5984 | need_lib_prefix=no |
| 5985 | need_version=no |
| 5986 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5987 | soname_spec='${libname}${release}.so$major' |
| 5988 | shlibpath_var=LD_LIBRARY_PATH |
| 5989 | shlibpath_overrides_runpath=yes |
| 5990 | hardcode_into_libs=yes |
| 5991 | # ldd complains unless libraries are executable |
| 5992 | postinstall_cmds='chmod +x $lib' |
| 5993 | ;; |
| 5994 | |
| 5995 | sunos4*) |
| 5996 | version_type=sunos |
| 5997 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5998 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 5999 | shlibpath_var=LD_LIBRARY_PATH |
| 6000 | shlibpath_overrides_runpath=yes |
| 6001 | if test "$with_gnu_ld" = yes; then |
| 6002 | need_lib_prefix=no |
| 6003 | fi |
| 6004 | need_version=yes |
| 6005 | ;; |
| 6006 | |
| 6007 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 6008 | version_type=linux |
| 6009 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6010 | soname_spec='${libname}${release}.so$major' |
| 6011 | shlibpath_var=LD_LIBRARY_PATH |
| 6012 | case $host_vendor in |
| 6013 | sni) |
| 6014 | shlibpath_overrides_runpath=no |
| 6015 | ;; |
| 6016 | motorola) |
| 6017 | need_lib_prefix=no |
| 6018 | need_version=no |
| 6019 | shlibpath_overrides_runpath=no |
| 6020 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 6021 | ;; |
| 6022 | esac |
| 6023 | ;; |
| 6024 | |
| 6025 | uts4*) |
| 6026 | version_type=linux |
| 6027 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6028 | soname_spec='${libname}${release}.so$major' |
| 6029 | shlibpath_var=LD_LIBRARY_PATH |
| 6030 | ;; |
| 6031 | |
| 6032 | dgux*) |
| 6033 | version_type=linux |
| 6034 | need_lib_prefix=no |
| 6035 | need_version=no |
| 6036 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6037 | soname_spec='${libname}${release}.so$major' |
| 6038 | shlibpath_var=LD_LIBRARY_PATH |
| 6039 | ;; |
| 6040 | |
| 6041 | sysv4*MP*) |
| 6042 | if test -d /usr/nec ;then |
| 6043 | version_type=linux |
| 6044 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 6045 | soname_spec='$libname.so.$major' |
| 6046 | shlibpath_var=LD_LIBRARY_PATH |
| 6047 | fi |
| 6048 | ;; |
| 6049 | |
| 6050 | *) |
| 6051 | dynamic_linker=no |
| 6052 | ;; |
| 6053 | esac |
| 6054 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 6055 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 6056 | test "$dynamic_linker" = no && can_build_shared=no |
| 6057 | |
| 6058 | # Report the final consequences. |
| 6059 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 6060 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 6061 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 6062 | echo "${ECHO_T}$can_build_shared" >&6 |
| 6063 | |
| 6064 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 6065 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 6066 | test "$can_build_shared" = "no" && enable_shared=no |
| 6067 | |
| 6068 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 6069 | # are all built from PIC. |
| 6070 | case "$host_os" in |
| 6071 | aix3*) |
| 6072 | test "$enable_shared" = yes && enable_static=no |
| 6073 | if test -n "$RANLIB"; then |
| 6074 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6075 | postinstall_cmds='$RANLIB $lib' |
| 6076 | fi |
| 6077 | ;; |
| 6078 | |
| 6079 | aix4*) |
| 6080 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 6081 | test "$enable_shared" = yes && enable_static=no |
| 6082 | fi |
| 6083 | ;; |
| 6084 | esac |
| 6085 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 6086 | echo "${ECHO_T}$enable_shared" >&6 |
| 6087 | |
| 6088 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 6089 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 6090 | # Make sure either enable_shared or enable_static is yes. |
| 6091 | test "$enable_shared" = yes || enable_static=yes |
| 6092 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 6093 | echo "${ECHO_T}$enable_static" >&6 |
| 6094 | |
| 6095 | if test "$hardcode_action" = relink; then |
| 6096 | # Fast installation is not supported |
| 6097 | enable_fast_install=no |
| 6098 | elif test "$shlibpath_overrides_runpath" = yes || |
| 6099 | test "$enable_shared" = no; then |
| 6100 | # Fast installation is not necessary |
| 6101 | enable_fast_install=needless |
| 6102 | fi |
| 6103 | |
| 6104 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 6105 | if test "$GCC" = yes; then |
| 6106 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 6107 | fi |
| 6108 | |
| 6109 | if test "x$enable_dlopen" != xyes; then |
| 6110 | enable_dlopen=unknown |
| 6111 | enable_dlopen_self=unknown |
| 6112 | enable_dlopen_self_static=unknown |
| 6113 | else |
| 6114 | lt_cv_dlopen=no |
| 6115 | lt_cv_dlopen_libs= |
| 6116 | |
| 6117 | case $host_os in |
| 6118 | beos*) |
| 6119 | lt_cv_dlopen="load_add_on" |
| 6120 | lt_cv_dlopen_libs= |
| 6121 | lt_cv_dlopen_self=yes |
| 6122 | ;; |
| 6123 | |
| 6124 | cygwin* | mingw* | pw32*) |
| 6125 | lt_cv_dlopen="LoadLibrary" |
| 6126 | lt_cv_dlopen_libs= |
| 6127 | ;; |
| 6128 | |
| 6129 | *) |
| 6130 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 6131 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 6132 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 6133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6134 | else |
| 6135 | cat >conftest.$ac_ext <<_ACEOF |
| 6136 | #line $LINENO "configure" |
| 6137 | #include "confdefs.h" |
| 6138 | /* System header to define __stub macros and hopefully few prototypes, |
| 6139 | which can conflict with char shl_load (); below. */ |
| 6140 | #include <assert.h> |
| 6141 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6142 | #ifdef __cplusplus |
| 6143 | extern "C" |
| 6144 | #endif |
| 6145 | /* We use char because int might match the return type of a gcc2 |
| 6146 | builtin and then its argument prototype would still apply. */ |
| 6147 | char shl_load (); |
| 6148 | char (*f) (); |
| 6149 | |
| 6150 | #ifdef F77_DUMMY_MAIN |
| 6151 | # ifdef __cplusplus |
| 6152 | extern "C" |
| 6153 | # endif |
| 6154 | int F77_DUMMY_MAIN() { return 1; } |
| 6155 | #endif |
| 6156 | int |
| 6157 | main () |
| 6158 | { |
| 6159 | /* The GNU C library defines this for functions which it implements |
| 6160 | to always fail with ENOSYS. Some functions are actually named |
| 6161 | something starting with __ and the normal name is an alias. */ |
| 6162 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 6163 | choke me |
| 6164 | #else |
| 6165 | f = shl_load; |
| 6166 | #endif |
| 6167 | |
| 6168 | ; |
| 6169 | return 0; |
| 6170 | } |
| 6171 | _ACEOF |
| 6172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6174 | (eval $ac_link) 2>&5 |
| 6175 | ac_status=$? |
| 6176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6177 | (exit $ac_status); } && |
| 6178 | { ac_try='test -s conftest$ac_exeext' |
| 6179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6180 | (eval $ac_try) 2>&5 |
| 6181 | ac_status=$? |
| 6182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6183 | (exit $ac_status); }; }; then |
| 6184 | ac_cv_func_shl_load=yes |
| 6185 | else |
| 6186 | echo "$as_me: failed program was:" >&5 |
| 6187 | cat conftest.$ac_ext >&5 |
| 6188 | ac_cv_func_shl_load=no |
| 6189 | fi |
| 6190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6191 | fi |
| 6192 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 6193 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 6194 | if test $ac_cv_func_shl_load = yes; then |
| 6195 | lt_cv_dlopen="shl_load" |
| 6196 | else |
| 6197 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 6198 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 6199 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 6200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6201 | else |
| 6202 | ac_check_lib_save_LIBS=$LIBS |
| 6203 | LIBS="-ldld $LIBS" |
| 6204 | cat >conftest.$ac_ext <<_ACEOF |
| 6205 | #line $LINENO "configure" |
| 6206 | #include "confdefs.h" |
| 6207 | |
| 6208 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6209 | #ifdef __cplusplus |
| 6210 | extern "C" |
| 6211 | #endif |
| 6212 | /* We use char because int might match the return type of a gcc2 |
| 6213 | builtin and then its argument prototype would still apply. */ |
| 6214 | char shl_load (); |
| 6215 | #ifdef F77_DUMMY_MAIN |
| 6216 | # ifdef __cplusplus |
| 6217 | extern "C" |
| 6218 | # endif |
| 6219 | int F77_DUMMY_MAIN() { return 1; } |
| 6220 | #endif |
| 6221 | int |
| 6222 | main () |
| 6223 | { |
| 6224 | shl_load (); |
| 6225 | ; |
| 6226 | return 0; |
| 6227 | } |
| 6228 | _ACEOF |
| 6229 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6231 | (eval $ac_link) 2>&5 |
| 6232 | ac_status=$? |
| 6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6234 | (exit $ac_status); } && |
| 6235 | { ac_try='test -s conftest$ac_exeext' |
| 6236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6237 | (eval $ac_try) 2>&5 |
| 6238 | ac_status=$? |
| 6239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6240 | (exit $ac_status); }; }; then |
| 6241 | ac_cv_lib_dld_shl_load=yes |
| 6242 | else |
| 6243 | echo "$as_me: failed program was:" >&5 |
| 6244 | cat conftest.$ac_ext >&5 |
| 6245 | ac_cv_lib_dld_shl_load=no |
| 6246 | fi |
| 6247 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6248 | LIBS=$ac_check_lib_save_LIBS |
| 6249 | fi |
| 6250 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 6251 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 6252 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 6253 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 6254 | else |
| 6255 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 6256 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 6257 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 6258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6259 | else |
| 6260 | cat >conftest.$ac_ext <<_ACEOF |
| 6261 | #line $LINENO "configure" |
| 6262 | #include "confdefs.h" |
| 6263 | /* System header to define __stub macros and hopefully few prototypes, |
| 6264 | which can conflict with char dlopen (); below. */ |
| 6265 | #include <assert.h> |
| 6266 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6267 | #ifdef __cplusplus |
| 6268 | extern "C" |
| 6269 | #endif |
| 6270 | /* We use char because int might match the return type of a gcc2 |
| 6271 | builtin and then its argument prototype would still apply. */ |
| 6272 | char dlopen (); |
| 6273 | char (*f) (); |
| 6274 | |
| 6275 | #ifdef F77_DUMMY_MAIN |
| 6276 | # ifdef __cplusplus |
| 6277 | extern "C" |
| 6278 | # endif |
| 6279 | int F77_DUMMY_MAIN() { return 1; } |
| 6280 | #endif |
| 6281 | int |
| 6282 | main () |
| 6283 | { |
| 6284 | /* The GNU C library defines this for functions which it implements |
| 6285 | to always fail with ENOSYS. Some functions are actually named |
| 6286 | something starting with __ and the normal name is an alias. */ |
| 6287 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 6288 | choke me |
| 6289 | #else |
| 6290 | f = dlopen; |
| 6291 | #endif |
| 6292 | |
| 6293 | ; |
| 6294 | return 0; |
| 6295 | } |
| 6296 | _ACEOF |
| 6297 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6299 | (eval $ac_link) 2>&5 |
| 6300 | ac_status=$? |
| 6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6302 | (exit $ac_status); } && |
| 6303 | { ac_try='test -s conftest$ac_exeext' |
| 6304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6305 | (eval $ac_try) 2>&5 |
| 6306 | ac_status=$? |
| 6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6308 | (exit $ac_status); }; }; then |
| 6309 | ac_cv_func_dlopen=yes |
| 6310 | else |
| 6311 | echo "$as_me: failed program was:" >&5 |
| 6312 | cat conftest.$ac_ext >&5 |
| 6313 | ac_cv_func_dlopen=no |
| 6314 | fi |
| 6315 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6316 | fi |
| 6317 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 6318 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 6319 | if test $ac_cv_func_dlopen = yes; then |
| 6320 | lt_cv_dlopen="dlopen" |
| 6321 | else |
| 6322 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 6323 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 6324 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 6325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6326 | else |
| 6327 | ac_check_lib_save_LIBS=$LIBS |
| 6328 | LIBS="-ldl $LIBS" |
| 6329 | cat >conftest.$ac_ext <<_ACEOF |
| 6330 | #line $LINENO "configure" |
| 6331 | #include "confdefs.h" |
| 6332 | |
| 6333 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6334 | #ifdef __cplusplus |
| 6335 | extern "C" |
| 6336 | #endif |
| 6337 | /* We use char because int might match the return type of a gcc2 |
| 6338 | builtin and then its argument prototype would still apply. */ |
| 6339 | char dlopen (); |
| 6340 | #ifdef F77_DUMMY_MAIN |
| 6341 | # ifdef __cplusplus |
| 6342 | extern "C" |
| 6343 | # endif |
| 6344 | int F77_DUMMY_MAIN() { return 1; } |
| 6345 | #endif |
| 6346 | int |
| 6347 | main () |
| 6348 | { |
| 6349 | dlopen (); |
| 6350 | ; |
| 6351 | return 0; |
| 6352 | } |
| 6353 | _ACEOF |
| 6354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6356 | (eval $ac_link) 2>&5 |
| 6357 | ac_status=$? |
| 6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6359 | (exit $ac_status); } && |
| 6360 | { ac_try='test -s conftest$ac_exeext' |
| 6361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6362 | (eval $ac_try) 2>&5 |
| 6363 | ac_status=$? |
| 6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6365 | (exit $ac_status); }; }; then |
| 6366 | ac_cv_lib_dl_dlopen=yes |
| 6367 | else |
| 6368 | echo "$as_me: failed program was:" >&5 |
| 6369 | cat conftest.$ac_ext >&5 |
| 6370 | ac_cv_lib_dl_dlopen=no |
| 6371 | fi |
| 6372 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6373 | LIBS=$ac_check_lib_save_LIBS |
| 6374 | fi |
| 6375 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 6376 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 6377 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 6378 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 6379 | else |
| 6380 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 6381 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 6382 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 6383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6384 | else |
| 6385 | ac_check_lib_save_LIBS=$LIBS |
| 6386 | LIBS="-lsvld $LIBS" |
| 6387 | cat >conftest.$ac_ext <<_ACEOF |
| 6388 | #line $LINENO "configure" |
| 6389 | #include "confdefs.h" |
| 6390 | |
| 6391 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6392 | #ifdef __cplusplus |
| 6393 | extern "C" |
| 6394 | #endif |
| 6395 | /* We use char because int might match the return type of a gcc2 |
| 6396 | builtin and then its argument prototype would still apply. */ |
| 6397 | char dlopen (); |
| 6398 | #ifdef F77_DUMMY_MAIN |
| 6399 | # ifdef __cplusplus |
| 6400 | extern "C" |
| 6401 | # endif |
| 6402 | int F77_DUMMY_MAIN() { return 1; } |
| 6403 | #endif |
| 6404 | int |
| 6405 | main () |
| 6406 | { |
| 6407 | dlopen (); |
| 6408 | ; |
| 6409 | return 0; |
| 6410 | } |
| 6411 | _ACEOF |
| 6412 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6414 | (eval $ac_link) 2>&5 |
| 6415 | ac_status=$? |
| 6416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6417 | (exit $ac_status); } && |
| 6418 | { ac_try='test -s conftest$ac_exeext' |
| 6419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6420 | (eval $ac_try) 2>&5 |
| 6421 | ac_status=$? |
| 6422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6423 | (exit $ac_status); }; }; then |
| 6424 | ac_cv_lib_svld_dlopen=yes |
| 6425 | else |
| 6426 | echo "$as_me: failed program was:" >&5 |
| 6427 | cat conftest.$ac_ext >&5 |
| 6428 | ac_cv_lib_svld_dlopen=no |
| 6429 | fi |
| 6430 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6431 | LIBS=$ac_check_lib_save_LIBS |
| 6432 | fi |
| 6433 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 6434 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 6435 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 6436 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 6437 | else |
| 6438 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 6439 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 6440 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6442 | else |
| 6443 | ac_check_lib_save_LIBS=$LIBS |
| 6444 | LIBS="-ldld $LIBS" |
| 6445 | cat >conftest.$ac_ext <<_ACEOF |
| 6446 | #line $LINENO "configure" |
| 6447 | #include "confdefs.h" |
| 6448 | |
| 6449 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6450 | #ifdef __cplusplus |
| 6451 | extern "C" |
| 6452 | #endif |
| 6453 | /* We use char because int might match the return type of a gcc2 |
| 6454 | builtin and then its argument prototype would still apply. */ |
| 6455 | char dld_link (); |
| 6456 | #ifdef F77_DUMMY_MAIN |
| 6457 | # ifdef __cplusplus |
| 6458 | extern "C" |
| 6459 | # endif |
| 6460 | int F77_DUMMY_MAIN() { return 1; } |
| 6461 | #endif |
| 6462 | int |
| 6463 | main () |
| 6464 | { |
| 6465 | dld_link (); |
| 6466 | ; |
| 6467 | return 0; |
| 6468 | } |
| 6469 | _ACEOF |
| 6470 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6472 | (eval $ac_link) 2>&5 |
| 6473 | ac_status=$? |
| 6474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6475 | (exit $ac_status); } && |
| 6476 | { ac_try='test -s conftest$ac_exeext' |
| 6477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6478 | (eval $ac_try) 2>&5 |
| 6479 | ac_status=$? |
| 6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6481 | (exit $ac_status); }; }; then |
| 6482 | ac_cv_lib_dld_dld_link=yes |
| 6483 | else |
| 6484 | echo "$as_me: failed program was:" >&5 |
| 6485 | cat conftest.$ac_ext >&5 |
| 6486 | ac_cv_lib_dld_dld_link=no |
| 6487 | fi |
| 6488 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6489 | LIBS=$ac_check_lib_save_LIBS |
| 6490 | fi |
| 6491 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 6492 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 6493 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 6494 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 6495 | fi |
| 6496 | |
| 6497 | |
| 6498 | fi |
| 6499 | |
| 6500 | |
| 6501 | fi |
| 6502 | |
| 6503 | |
| 6504 | fi |
| 6505 | |
| 6506 | |
| 6507 | fi |
| 6508 | |
| 6509 | |
| 6510 | fi |
| 6511 | |
| 6512 | ;; |
| 6513 | esac |
| 6514 | |
| 6515 | if test "x$lt_cv_dlopen" != xno; then |
| 6516 | enable_dlopen=yes |
| 6517 | else |
| 6518 | enable_dlopen=no |
| 6519 | fi |
| 6520 | |
| 6521 | case $lt_cv_dlopen in |
| 6522 | dlopen) |
| 6523 | save_CPPFLAGS="$CPPFLAGS" |
| 6524 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 6525 | |
| 6526 | save_LDFLAGS="$LDFLAGS" |
| 6527 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 6528 | |
| 6529 | save_LIBS="$LIBS" |
| 6530 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 6531 | |
| 6532 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 6533 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 6534 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 6535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6536 | else |
| 6537 | if test "$cross_compiling" = yes; then : |
| 6538 | lt_cv_dlopen_self=cross |
| 6539 | else |
| 6540 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 6541 | lt_status=$lt_dlunknown |
| 6542 | cat > conftest.$ac_ext <<EOF |
| 6543 | #line 6543 "configure" |
| 6544 | #include "confdefs.h" |
| 6545 | |
| 6546 | #if HAVE_DLFCN_H |
| 6547 | #include <dlfcn.h> |
| 6548 | #endif |
| 6549 | |
| 6550 | #include <stdio.h> |
| 6551 | |
| 6552 | #ifdef RTLD_GLOBAL |
| 6553 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 6554 | #else |
| 6555 | # ifdef DL_GLOBAL |
| 6556 | # define LT_DLGLOBAL DL_GLOBAL |
| 6557 | # else |
| 6558 | # define LT_DLGLOBAL 0 |
| 6559 | # endif |
| 6560 | #endif |
| 6561 | |
| 6562 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 6563 | find out it does not work in some platform. */ |
| 6564 | #ifndef LT_DLLAZY_OR_NOW |
| 6565 | # ifdef RTLD_LAZY |
| 6566 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 6567 | # else |
| 6568 | # ifdef DL_LAZY |
| 6569 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 6570 | # else |
| 6571 | # ifdef RTLD_NOW |
| 6572 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 6573 | # else |
| 6574 | # ifdef DL_NOW |
| 6575 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 6576 | # else |
| 6577 | # define LT_DLLAZY_OR_NOW 0 |
| 6578 | # endif |
| 6579 | # endif |
| 6580 | # endif |
| 6581 | # endif |
| 6582 | #endif |
| 6583 | |
| 6584 | #ifdef __cplusplus |
| 6585 | extern "C" void exit (int); |
| 6586 | #endif |
| 6587 | |
| 6588 | void fnord() { int i=42;} |
| 6589 | int main () |
| 6590 | { |
| 6591 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 6592 | int status = $lt_dlunknown; |
| 6593 | |
| 6594 | if (self) |
| 6595 | { |
| 6596 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 6597 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 6598 | /* dlclose (self); */ |
| 6599 | } |
| 6600 | |
| 6601 | exit (status); |
| 6602 | } |
| 6603 | EOF |
| 6604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6605 | (eval $ac_link) 2>&5 |
| 6606 | ac_status=$? |
| 6607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6608 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 6609 | (./conftest; exit; ) 2>/dev/null |
| 6610 | lt_status=$? |
| 6611 | case x$lt_status in |
| 6612 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 6613 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 6614 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 6615 | esac |
| 6616 | else : |
| 6617 | # compilation failed |
| 6618 | lt_cv_dlopen_self=no |
| 6619 | fi |
| 6620 | fi |
| 6621 | rm -fr conftest* |
| 6622 | |
| 6623 | |
| 6624 | fi |
| 6625 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 6626 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 6627 | |
| 6628 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 6629 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 6630 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 6631 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 6632 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 6633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6634 | else |
| 6635 | if test "$cross_compiling" = yes; then : |
| 6636 | lt_cv_dlopen_self_static=cross |
| 6637 | else |
| 6638 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 6639 | lt_status=$lt_dlunknown |
| 6640 | cat > conftest.$ac_ext <<EOF |
| 6641 | #line 6641 "configure" |
| 6642 | #include "confdefs.h" |
| 6643 | |
| 6644 | #if HAVE_DLFCN_H |
| 6645 | #include <dlfcn.h> |
| 6646 | #endif |
| 6647 | |
| 6648 | #include <stdio.h> |
| 6649 | |
| 6650 | #ifdef RTLD_GLOBAL |
| 6651 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 6652 | #else |
| 6653 | # ifdef DL_GLOBAL |
| 6654 | # define LT_DLGLOBAL DL_GLOBAL |
| 6655 | # else |
| 6656 | # define LT_DLGLOBAL 0 |
| 6657 | # endif |
| 6658 | #endif |
| 6659 | |
| 6660 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 6661 | find out it does not work in some platform. */ |
| 6662 | #ifndef LT_DLLAZY_OR_NOW |
| 6663 | # ifdef RTLD_LAZY |
| 6664 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 6665 | # else |
| 6666 | # ifdef DL_LAZY |
| 6667 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 6668 | # else |
| 6669 | # ifdef RTLD_NOW |
| 6670 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 6671 | # else |
| 6672 | # ifdef DL_NOW |
| 6673 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 6674 | # else |
| 6675 | # define LT_DLLAZY_OR_NOW 0 |
| 6676 | # endif |
| 6677 | # endif |
| 6678 | # endif |
| 6679 | # endif |
| 6680 | #endif |
| 6681 | |
| 6682 | #ifdef __cplusplus |
| 6683 | extern "C" void exit (int); |
| 6684 | #endif |
| 6685 | |
| 6686 | void fnord() { int i=42;} |
| 6687 | int main () |
| 6688 | { |
| 6689 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 6690 | int status = $lt_dlunknown; |
| 6691 | |
| 6692 | if (self) |
| 6693 | { |
| 6694 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 6695 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 6696 | /* dlclose (self); */ |
| 6697 | } |
| 6698 | |
| 6699 | exit (status); |
| 6700 | } |
| 6701 | EOF |
| 6702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6703 | (eval $ac_link) 2>&5 |
| 6704 | ac_status=$? |
| 6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6706 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 6707 | (./conftest; exit; ) 2>/dev/null |
| 6708 | lt_status=$? |
| 6709 | case x$lt_status in |
| 6710 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 6711 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 6712 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 6713 | esac |
| 6714 | else : |
| 6715 | # compilation failed |
| 6716 | lt_cv_dlopen_self_static=no |
| 6717 | fi |
| 6718 | fi |
| 6719 | rm -fr conftest* |
| 6720 | |
| 6721 | |
| 6722 | fi |
| 6723 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 6724 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 6725 | fi |
| 6726 | |
| 6727 | CPPFLAGS="$save_CPPFLAGS" |
| 6728 | LDFLAGS="$save_LDFLAGS" |
| 6729 | LIBS="$save_LIBS" |
| 6730 | ;; |
| 6731 | esac |
| 6732 | |
| 6733 | case $lt_cv_dlopen_self in |
| 6734 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 6735 | *) enable_dlopen_self=unknown ;; |
| 6736 | esac |
| 6737 | |
| 6738 | case $lt_cv_dlopen_self_static in |
| 6739 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 6740 | *) enable_dlopen_self_static=unknown ;; |
| 6741 | esac |
| 6742 | fi |
| 6743 | |
| 6744 | |
| 6745 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 6746 | case $archive_cmds in |
| 6747 | *'~'*) |
| 6748 | # FIXME: we may have to deal with multi-command sequences. |
| 6749 | ;; |
| 6750 | '$CC '*) |
| 6751 | # Test whether the compiler implicitly links with -lc since on some |
| 6752 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 6753 | # to ld, don't add -lc before -lgcc. |
| 6754 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 6755 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 6756 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
| 6757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6758 | else |
| 6759 | $rm conftest* |
| 6760 | echo 'static int dummy;' > conftest.$ac_ext |
| 6761 | |
| 6762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6763 | (eval $ac_compile) 2>&5 |
| 6764 | ac_status=$? |
| 6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6766 | (exit $ac_status); }; then |
| 6767 | soname=conftest |
| 6768 | lib=conftest |
| 6769 | libobjs=conftest.$ac_objext |
| 6770 | deplibs= |
| 6771 | wl=$lt_cv_prog_cc_wl |
| 6772 | compiler_flags=-v |
| 6773 | linker_flags=-v |
| 6774 | verstring= |
| 6775 | output_objdir=. |
| 6776 | libname=conftest |
| 6777 | save_allow_undefined_flag=$allow_undefined_flag |
| 6778 | allow_undefined_flag= |
| 6779 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 6780 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 6781 | ac_status=$? |
| 6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6783 | (exit $ac_status); } |
| 6784 | then |
| 6785 | lt_cv_archive_cmds_need_lc=no |
| 6786 | else |
| 6787 | lt_cv_archive_cmds_need_lc=yes |
| 6788 | fi |
| 6789 | allow_undefined_flag=$save_allow_undefined_flag |
| 6790 | else |
| 6791 | cat conftest.err 1>&5 |
| 6792 | fi |
| 6793 | fi |
| 6794 | |
| 6795 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 6796 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
| 6797 | ;; |
| 6798 | esac |
| 6799 | fi |
| 6800 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
| 6801 | |
| 6802 | # The second clause should only fire when bootstrapping the |
| 6803 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 6804 | # with your package, and you will get complaints that there are |
| 6805 | # no rules to generate ltmain.sh. |
| 6806 | if test -f "$ltmain"; then |
| 6807 | : |
| 6808 | else |
| 6809 | # If there is no Makefile yet, we rely on a make rule to execute |
| 6810 | # `config.status --recheck' to rerun these tests and create the |
| 6811 | # libtool script then. |
| 6812 | test -f Makefile && make "$ltmain" |
| 6813 | fi |
| 6814 | |
| 6815 | if test -f "$ltmain"; then |
| 6816 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
| 6817 | $rm -f "${ofile}T" |
| 6818 | |
| 6819 | echo creating $ofile |
| 6820 | |
| 6821 | # Now quote all the things that may contain metacharacters while being |
| 6822 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 6823 | # variables and quote the copies for generation of the libtool script. |
| 6824 | for var in echo old_CC old_CFLAGS \ |
| 6825 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
| 6826 | reload_flag reload_cmds wl \ |
| 6827 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
| 6828 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
| 6829 | library_names_spec soname_spec \ |
| 6830 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
| 6831 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
| 6832 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
| 6833 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
| 6834 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
| 6835 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
| 6836 | global_symbol_to_c_name_address \ |
| 6837 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
| 6838 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 6839 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
| 6840 | |
| 6841 | case $var in |
| 6842 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
| 6843 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 6844 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
| 6845 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
| 6846 | postinstall_cmds | postuninstall_cmds | \ |
| 6847 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 6848 | # Double-quote double-evaled strings. |
| 6849 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 6850 | ;; |
| 6851 | *) |
| 6852 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 6853 | ;; |
| 6854 | esac |
| 6855 | done |
| 6856 | |
| 6857 | cat <<__EOF__ > "${ofile}T" |
| 6858 | #! $SHELL |
| 6859 | |
| 6860 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 6861 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 6862 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 6863 | # |
| 6864 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
| 6865 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 6866 | # |
| 6867 | # This program is free software; you can redistribute it and/or modify |
| 6868 | # it under the terms of the GNU General Public License as published by |
| 6869 | # the Free Software Foundation; either version 2 of the License, or |
| 6870 | # (at your option) any later version. |
| 6871 | # |
| 6872 | # This program is distributed in the hope that it will be useful, but |
| 6873 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 6874 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 6875 | # General Public License for more details. |
| 6876 | # |
| 6877 | # You should have received a copy of the GNU General Public License |
| 6878 | # along with this program; if not, write to the Free Software |
| 6879 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 6880 | # |
| 6881 | # As a special exception to the GNU General Public License, if you |
| 6882 | # distribute this file as part of a program that contains a |
| 6883 | # configuration script generated by Autoconf, you may include it under |
| 6884 | # the same distribution terms that you use for the rest of that program. |
| 6885 | |
| 6886 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 6887 | Xsed="sed -e s/^X//" |
| 6888 | |
| 6889 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 6890 | # if CDPATH is set. |
| 6891 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 6892 | |
| 6893 | # ### BEGIN LIBTOOL CONFIG |
| 6894 | |
| 6895 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6896 | |
| 6897 | # Shell to use when invoking shell scripts. |
| 6898 | SHELL=$lt_SHELL |
| 6899 | |
| 6900 | # Whether or not to build shared libraries. |
| 6901 | build_libtool_libs=$enable_shared |
| 6902 | |
| 6903 | # Whether or not to build static libraries. |
| 6904 | build_old_libs=$enable_static |
| 6905 | |
| 6906 | # Whether or not to add -lc for building shared libraries. |
| 6907 | build_libtool_need_lc=$need_lc |
| 6908 | |
| 6909 | # Whether or not to optimize for fast installation. |
| 6910 | fast_install=$enable_fast_install |
| 6911 | |
| 6912 | # The host system. |
| 6913 | host_alias=$host_alias |
| 6914 | host=$host |
| 6915 | |
| 6916 | # An echo program that does not interpret backslashes. |
| 6917 | echo=$lt_echo |
| 6918 | |
| 6919 | # The archiver. |
| 6920 | AR=$lt_AR |
| 6921 | AR_FLAGS=$lt_AR_FLAGS |
| 6922 | |
| 6923 | # The default C compiler. |
| 6924 | CC=$lt_CC |
| 6925 | |
| 6926 | # Is the compiler the GNU C compiler? |
| 6927 | with_gcc=$GCC |
| 6928 | |
| 6929 | # The linker used to build libraries. |
| 6930 | LD=$lt_LD |
| 6931 | |
| 6932 | # Whether we need hard or soft links. |
| 6933 | LN_S=$lt_LN_S |
| 6934 | |
| 6935 | # A BSD-compatible nm program. |
| 6936 | NM=$lt_NM |
| 6937 | |
| 6938 | # A symbol stripping program |
| 6939 | STRIP=$STRIP |
| 6940 | |
| 6941 | # Used to examine libraries when file_magic_cmd begins "file" |
| 6942 | MAGIC_CMD=$MAGIC_CMD |
| 6943 | |
| 6944 | # Used on cygwin: DLL creation program. |
| 6945 | DLLTOOL="$DLLTOOL" |
| 6946 | |
| 6947 | # Used on cygwin: object dumper. |
| 6948 | OBJDUMP="$OBJDUMP" |
| 6949 | |
| 6950 | # Used on cygwin: assembler. |
| 6951 | AS="$AS" |
| 6952 | |
| 6953 | # The name of the directory that contains temporary libtool files. |
| 6954 | objdir=$objdir |
| 6955 | |
| 6956 | # How to create reloadable object files. |
| 6957 | reload_flag=$lt_reload_flag |
| 6958 | reload_cmds=$lt_reload_cmds |
| 6959 | |
| 6960 | # How to pass a linker flag through the compiler. |
| 6961 | wl=$lt_wl |
| 6962 | |
| 6963 | # Object file suffix (normally "o"). |
| 6964 | objext="$ac_objext" |
| 6965 | |
| 6966 | # Old archive suffix (normally "a"). |
| 6967 | libext="$libext" |
| 6968 | |
| 6969 | # Executable file suffix (normally ""). |
| 6970 | exeext="$exeext" |
| 6971 | |
| 6972 | # Additional compiler flags for building library objects. |
| 6973 | pic_flag=$lt_pic_flag |
| 6974 | pic_mode=$pic_mode |
| 6975 | |
| 6976 | # Does compiler simultaneously support -c and -o options? |
| 6977 | compiler_c_o=$lt_compiler_c_o |
| 6978 | |
| 6979 | # Can we write directly to a .lo ? |
| 6980 | compiler_o_lo=$lt_compiler_o_lo |
| 6981 | |
| 6982 | # Must we lock files when doing compilation ? |
| 6983 | need_locks=$lt_need_locks |
| 6984 | |
| 6985 | # Do we need the lib prefix for modules? |
| 6986 | need_lib_prefix=$need_lib_prefix |
| 6987 | |
| 6988 | # Do we need a version for libraries? |
| 6989 | need_version=$need_version |
| 6990 | |
| 6991 | # Whether dlopen is supported. |
| 6992 | dlopen_support=$enable_dlopen |
| 6993 | |
| 6994 | # Whether dlopen of programs is supported. |
| 6995 | dlopen_self=$enable_dlopen_self |
| 6996 | |
| 6997 | # Whether dlopen of statically linked programs is supported. |
| 6998 | dlopen_self_static=$enable_dlopen_self_static |
| 6999 | |
| 7000 | # Compiler flag to prevent dynamic linking. |
| 7001 | link_static_flag=$lt_link_static_flag |
| 7002 | |
| 7003 | # Compiler flag to turn off builtin functions. |
| 7004 | no_builtin_flag=$lt_no_builtin_flag |
| 7005 | |
| 7006 | # Compiler flag to allow reflexive dlopens. |
| 7007 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 7008 | |
| 7009 | # Compiler flag to generate shared objects directly from archives. |
| 7010 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 7011 | |
| 7012 | # Compiler flag to generate thread-safe objects. |
| 7013 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 7014 | |
| 7015 | # Library versioning type. |
| 7016 | version_type=$version_type |
| 7017 | |
| 7018 | # Format of library name prefix. |
| 7019 | libname_spec=$lt_libname_spec |
| 7020 | |
| 7021 | # List of archive names. First name is the real one, the rest are links. |
| 7022 | # The last name is the one that the linker finds with -lNAME. |
| 7023 | library_names_spec=$lt_library_names_spec |
| 7024 | |
| 7025 | # The coded name of the library, if different from the real name. |
| 7026 | soname_spec=$lt_soname_spec |
| 7027 | |
| 7028 | # Commands used to build and install an old-style archive. |
| 7029 | RANLIB=$lt_RANLIB |
| 7030 | old_archive_cmds=$lt_old_archive_cmds |
| 7031 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 7032 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 7033 | |
| 7034 | # Create an old-style archive from a shared archive. |
| 7035 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 7036 | |
| 7037 | # Create a temporary old-style archive to link instead of a shared archive. |
| 7038 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 7039 | |
| 7040 | # Commands used to build and install a shared archive. |
| 7041 | archive_cmds=$lt_archive_cmds |
| 7042 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 7043 | postinstall_cmds=$lt_postinstall_cmds |
| 7044 | postuninstall_cmds=$lt_postuninstall_cmds |
| 7045 | |
| 7046 | # Commands to strip libraries. |
| 7047 | old_striplib=$lt_old_striplib |
| 7048 | striplib=$lt_striplib |
| 7049 | |
| 7050 | # Method to check whether dependent libraries are shared objects. |
| 7051 | deplibs_check_method=$lt_deplibs_check_method |
| 7052 | |
| 7053 | # Command to use when deplibs_check_method == file_magic. |
| 7054 | file_magic_cmd=$lt_file_magic_cmd |
| 7055 | |
| 7056 | # Flag that allows shared libraries with undefined symbols to be built. |
| 7057 | allow_undefined_flag=$lt_allow_undefined_flag |
| 7058 | |
| 7059 | # Flag that forces no undefined symbols. |
| 7060 | no_undefined_flag=$lt_no_undefined_flag |
| 7061 | |
| 7062 | # Commands used to finish a libtool library installation in a directory. |
| 7063 | finish_cmds=$lt_finish_cmds |
| 7064 | |
| 7065 | # Same as above, but a single script fragment to be evaled but not shown. |
| 7066 | finish_eval=$lt_finish_eval |
| 7067 | |
| 7068 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 7069 | global_symbol_pipe=$lt_global_symbol_pipe |
| 7070 | |
| 7071 | # Transform the output of nm in a proper C declaration |
| 7072 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
| 7073 | |
| 7074 | # Transform the output of nm in a C name address pair |
| 7075 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
| 7076 | |
| 7077 | # This is the shared library runtime path variable. |
| 7078 | runpath_var=$runpath_var |
| 7079 | |
| 7080 | # This is the shared library path variable. |
| 7081 | shlibpath_var=$shlibpath_var |
| 7082 | |
| 7083 | # Is shlibpath searched before the hard-coded library search path? |
| 7084 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 7085 | |
| 7086 | # How to hardcode a shared library path into an executable. |
| 7087 | hardcode_action=$hardcode_action |
| 7088 | |
| 7089 | # Whether we should hardcode library paths into libraries. |
| 7090 | hardcode_into_libs=$hardcode_into_libs |
| 7091 | |
| 7092 | # Flag to hardcode \$libdir into a binary during linking. |
| 7093 | # This must work even if \$libdir does not exist. |
| 7094 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 7095 | |
| 7096 | # Whether we need a single -rpath flag with a separated argument. |
| 7097 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 7098 | |
| 7099 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 7100 | # resulting binary. |
| 7101 | hardcode_direct=$hardcode_direct |
| 7102 | |
| 7103 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 7104 | # resulting binary. |
| 7105 | hardcode_minus_L=$hardcode_minus_L |
| 7106 | |
| 7107 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 7108 | # the resulting binary. |
| 7109 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 7110 | |
| 7111 | # Variables whose values should be saved in libtool wrapper scripts and |
| 7112 | # restored at relink time. |
| 7113 | variables_saved_for_relink="$variables_saved_for_relink" |
| 7114 | |
| 7115 | # Whether libtool must link a program against all its dependency libraries. |
| 7116 | link_all_deplibs=$link_all_deplibs |
| 7117 | |
| 7118 | # Compile-time system search path for libraries |
| 7119 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 7120 | |
| 7121 | # Run-time system search path for libraries |
| 7122 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 7123 | |
| 7124 | # Fix the shell variable \$srcfile for the compiler. |
| 7125 | fix_srcfile_path="$fix_srcfile_path" |
| 7126 | |
| 7127 | # Set to yes if exported symbols are required. |
| 7128 | always_export_symbols=$always_export_symbols |
| 7129 | |
| 7130 | # The commands to list exported symbols. |
| 7131 | export_symbols_cmds=$lt_export_symbols_cmds |
| 7132 | |
| 7133 | # The commands to extract the exported symbol list from a shared archive. |
| 7134 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 7135 | |
| 7136 | # Symbols that should not be listed in the preloaded symbols. |
| 7137 | exclude_expsyms=$lt_exclude_expsyms |
| 7138 | |
| 7139 | # Symbols that must always be exported. |
| 7140 | include_expsyms=$lt_include_expsyms |
| 7141 | |
| 7142 | # ### END LIBTOOL CONFIG |
| 7143 | |
| 7144 | __EOF__ |
| 7145 | |
| 7146 | case $host_os in |
| 7147 | aix3*) |
| 7148 | cat <<\EOF >> "${ofile}T" |
| 7149 | |
| 7150 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7151 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7152 | # vanish in a puff of smoke. |
| 7153 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7154 | COLLECT_NAMES= |
| 7155 | export COLLECT_NAMES |
| 7156 | fi |
| 7157 | EOF |
| 7158 | ;; |
| 7159 | esac |
| 7160 | |
| 7161 | case $host_os in |
| 7162 | cygwin* | mingw* | pw32* | os2*) |
| 7163 | cat <<'EOF' >> "${ofile}T" |
| 7164 | # This is a source program that is used to create dlls on Windows |
| 7165 | # Don't remove nor modify the starting and closing comments |
| 7166 | # /* ltdll.c starts here */ |
| 7167 | # #define WIN32_LEAN_AND_MEAN |
| 7168 | # #include <windows.h> |
| 7169 | # #undef WIN32_LEAN_AND_MEAN |
| 7170 | # #include <stdio.h> |
| 7171 | # |
| 7172 | # #ifndef __CYGWIN__ |
| 7173 | # # ifdef __CYGWIN32__ |
| 7174 | # # define __CYGWIN__ __CYGWIN32__ |
| 7175 | # # endif |
| 7176 | # #endif |
| 7177 | # |
| 7178 | # #ifdef __cplusplus |
| 7179 | # extern "C" { |
| 7180 | # #endif |
| 7181 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 7182 | # #ifdef __cplusplus |
| 7183 | # } |
| 7184 | # #endif |
| 7185 | # |
| 7186 | # #ifdef __CYGWIN__ |
| 7187 | # #include <cygwin/cygwin_dll.h> |
| 7188 | # DECLARE_CYGWIN_DLL( DllMain ); |
| 7189 | # #endif |
| 7190 | # HINSTANCE __hDllInstance_base; |
| 7191 | # |
| 7192 | # BOOL APIENTRY |
| 7193 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 7194 | # { |
| 7195 | # __hDllInstance_base = hInst; |
| 7196 | # return TRUE; |
| 7197 | # } |
| 7198 | # /* ltdll.c ends here */ |
| 7199 | # This is a source program that is used to create import libraries |
| 7200 | # on Windows for dlls which lack them. Don't remove nor modify the |
| 7201 | # starting and closing comments |
| 7202 | # /* impgen.c starts here */ |
| 7203 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
| 7204 | # |
| 7205 | # This file is part of GNU libtool. |
| 7206 | # |
| 7207 | # This program is free software; you can redistribute it and/or modify |
| 7208 | # it under the terms of the GNU General Public License as published by |
| 7209 | # the Free Software Foundation; either version 2 of the License, or |
| 7210 | # (at your option) any later version. |
| 7211 | # |
| 7212 | # This program is distributed in the hope that it will be useful, |
| 7213 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7214 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 7215 | # GNU General Public License for more details. |
| 7216 | # |
| 7217 | # You should have received a copy of the GNU General Public License |
| 7218 | # along with this program; if not, write to the Free Software |
| 7219 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7220 | # */ |
| 7221 | # |
| 7222 | # #include <stdio.h> /* for printf() */ |
| 7223 | # #include <unistd.h> /* for open(), lseek(), read() */ |
| 7224 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 7225 | # #include <string.h> /* for strdup() */ |
| 7226 | # |
| 7227 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 7228 | # #ifndef O_BINARY |
| 7229 | # #define O_BINARY 0 |
| 7230 | # #endif |
| 7231 | # |
| 7232 | # static unsigned int |
| 7233 | # pe_get16 (fd, offset) |
| 7234 | # int fd; |
| 7235 | # int offset; |
| 7236 | # { |
| 7237 | # unsigned char b[2]; |
| 7238 | # lseek (fd, offset, SEEK_SET); |
| 7239 | # read (fd, b, 2); |
| 7240 | # return b[0] + (b[1]<<8); |
| 7241 | # } |
| 7242 | # |
| 7243 | # static unsigned int |
| 7244 | # pe_get32 (fd, offset) |
| 7245 | # int fd; |
| 7246 | # int offset; |
| 7247 | # { |
| 7248 | # unsigned char b[4]; |
| 7249 | # lseek (fd, offset, SEEK_SET); |
| 7250 | # read (fd, b, 4); |
| 7251 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7252 | # } |
| 7253 | # |
| 7254 | # static unsigned int |
| 7255 | # pe_as32 (ptr) |
| 7256 | # void *ptr; |
| 7257 | # { |
| 7258 | # unsigned char *b = ptr; |
| 7259 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7260 | # } |
| 7261 | # |
| 7262 | # int |
| 7263 | # main (argc, argv) |
| 7264 | # int argc; |
| 7265 | # char *argv[]; |
| 7266 | # { |
| 7267 | # int dll; |
| 7268 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 7269 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 7270 | # unsigned long name_rvas, nexp; |
| 7271 | # unsigned char *expdata, *erva; |
| 7272 | # char *filename, *dll_name; |
| 7273 | # |
| 7274 | # filename = argv[1]; |
| 7275 | # |
| 7276 | # dll = open(filename, O_RDONLY|O_BINARY); |
| 7277 | # if (dll < 1) |
| 7278 | # return 1; |
| 7279 | # |
| 7280 | # dll_name = filename; |
| 7281 | # |
| 7282 | # for (i=0; filename[i]; i++) |
| 7283 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 7284 | # dll_name = filename + i +1; |
| 7285 | # |
| 7286 | # pe_header_offset = pe_get32 (dll, 0x3c); |
| 7287 | # opthdr_ofs = pe_header_offset + 4 + 20; |
| 7288 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 7289 | # |
| 7290 | # if (num_entries < 1) /* no exports */ |
| 7291 | # return 1; |
| 7292 | # |
| 7293 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 7294 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 7295 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 7296 | # secptr = (pe_header_offset + 4 + 20 + |
| 7297 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 7298 | # |
| 7299 | # expptr = 0; |
| 7300 | # for (i = 0; i < nsections; i++) |
| 7301 | # { |
| 7302 | # char sname[8]; |
| 7303 | # unsigned long secptr1 = secptr + 40 * i; |
| 7304 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 7305 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 7306 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 7307 | # lseek(dll, secptr1, SEEK_SET); |
| 7308 | # read(dll, sname, 8); |
| 7309 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 7310 | # { |
| 7311 | # expptr = fptr + (export_rva - vaddr); |
| 7312 | # if (export_rva + export_size > vaddr + vsize) |
| 7313 | # export_size = vsize - (export_rva - vaddr); |
| 7314 | # break; |
| 7315 | # } |
| 7316 | # } |
| 7317 | # |
| 7318 | # expdata = (unsigned char*)malloc(export_size); |
| 7319 | # lseek (dll, expptr, SEEK_SET); |
| 7320 | # read (dll, expdata, export_size); |
| 7321 | # erva = expdata - export_rva; |
| 7322 | # |
| 7323 | # nexp = pe_as32 (expdata+24); |
| 7324 | # name_rvas = pe_as32 (expdata+32); |
| 7325 | # |
| 7326 | # printf ("EXPORTS\n"); |
| 7327 | # for (i = 0; i<nexp; i++) |
| 7328 | # { |
| 7329 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 7330 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 7331 | # } |
| 7332 | # |
| 7333 | # return 0; |
| 7334 | # } |
| 7335 | # /* impgen.c ends here */ |
| 7336 | |
| 7337 | EOF |
| 7338 | ;; |
| 7339 | esac |
| 7340 | |
| 7341 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 7342 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 7343 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 7344 | # is reportedly fixed, but why not run on old versions too? |
| 7345 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
| 7346 | |
| 7347 | mv -f "${ofile}T" "$ofile" || \ |
| 7348 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
| 7349 | chmod +x "$ofile" |
| 7350 | fi |
| 7351 | |
| 7352 | |
| 7353 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7354 | |
| 7355 | |
| 7356 | # This can be used to rebuild libtool when needed |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7357 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7358 | |
| 7359 | # Always use our own libtool. |
| 7360 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7361 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7362 | # Prevent multiple expansion |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7363 | |
| 7364 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7365 | |
| 7366 | |
| 7367 | |
| 7368 | # Checks for libraries. |
| 7369 | # FIXME: Replace `main' with a function in `-le': |
| 7370 | |
| 7371 | echo "$as_me:$LINENO: checking for main in -le" >&5 |
| 7372 | echo $ECHO_N "checking for main in -le... $ECHO_C" >&6 |
| 7373 | if test "${ac_cv_lib_e_main+set}" = set; then |
| 7374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7375 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7376 | ac_check_lib_save_LIBS=$LIBS |
| 7377 | LIBS="-le $LIBS" |
| 7378 | cat >conftest.$ac_ext <<_ACEOF |
| 7379 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7380 | #include "confdefs.h" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7381 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7382 | |
| 7383 | #ifdef F77_DUMMY_MAIN |
| 7384 | # ifdef __cplusplus |
| 7385 | extern "C" |
| 7386 | # endif |
| 7387 | int F77_DUMMY_MAIN() { return 1; } |
| 7388 | #endif |
| 7389 | int |
| 7390 | main () |
| 7391 | { |
| 7392 | main (); |
| 7393 | ; |
| 7394 | return 0; |
| 7395 | } |
| 7396 | _ACEOF |
| 7397 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7399 | (eval $ac_link) 2>&5 |
| 7400 | ac_status=$? |
| 7401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7402 | (exit $ac_status); } && |
| 7403 | { ac_try='test -s conftest$ac_exeext' |
| 7404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7405 | (eval $ac_try) 2>&5 |
| 7406 | ac_status=$? |
| 7407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7408 | (exit $ac_status); }; }; then |
| 7409 | ac_cv_lib_e_main=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7410 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7411 | echo "$as_me: failed program was:" >&5 |
| 7412 | cat conftest.$ac_ext >&5 |
| 7413 | ac_cv_lib_e_main=no |
| 7414 | fi |
| 7415 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7416 | LIBS=$ac_check_lib_save_LIBS |
| 7417 | fi |
| 7418 | echo "$as_me:$LINENO: result: $ac_cv_lib_e_main" >&5 |
| 7419 | echo "${ECHO_T}$ac_cv_lib_e_main" >&6 |
| 7420 | if test $ac_cv_lib_e_main = yes; then |
| 7421 | cat >>confdefs.h <<_ACEOF |
| 7422 | #define HAVE_LIBE 1 |
| 7423 | _ACEOF |
| 7424 | |
| 7425 | LIBS="-le $LIBS" |
| 7426 | |
| 7427 | fi |
| 7428 | |
| 7429 | # FIXME: Replace `main' with a function in `-lgtp': |
| 7430 | |
| 7431 | echo "$as_me:$LINENO: checking for main in -lgtp" >&5 |
| 7432 | echo $ECHO_N "checking for main in -lgtp... $ECHO_C" >&6 |
| 7433 | if test "${ac_cv_lib_gtp_main+set}" = set; then |
| 7434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7435 | else |
| 7436 | ac_check_lib_save_LIBS=$LIBS |
| 7437 | LIBS="-lgtp $LIBS" |
| 7438 | cat >conftest.$ac_ext <<_ACEOF |
| 7439 | #line $LINENO "configure" |
| 7440 | #include "confdefs.h" |
| 7441 | |
| 7442 | |
| 7443 | #ifdef F77_DUMMY_MAIN |
| 7444 | # ifdef __cplusplus |
| 7445 | extern "C" |
| 7446 | # endif |
| 7447 | int F77_DUMMY_MAIN() { return 1; } |
| 7448 | #endif |
| 7449 | int |
| 7450 | main () |
| 7451 | { |
| 7452 | main (); |
| 7453 | ; |
| 7454 | return 0; |
| 7455 | } |
| 7456 | _ACEOF |
| 7457 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7459 | (eval $ac_link) 2>&5 |
| 7460 | ac_status=$? |
| 7461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7462 | (exit $ac_status); } && |
| 7463 | { ac_try='test -s conftest$ac_exeext' |
| 7464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7465 | (eval $ac_try) 2>&5 |
| 7466 | ac_status=$? |
| 7467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7468 | (exit $ac_status); }; }; then |
| 7469 | ac_cv_lib_gtp_main=yes |
| 7470 | else |
| 7471 | echo "$as_me: failed program was:" >&5 |
| 7472 | cat conftest.$ac_ext >&5 |
| 7473 | ac_cv_lib_gtp_main=no |
| 7474 | fi |
| 7475 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7476 | LIBS=$ac_check_lib_save_LIBS |
| 7477 | fi |
| 7478 | echo "$as_me:$LINENO: result: $ac_cv_lib_gtp_main" >&5 |
| 7479 | echo "${ECHO_T}$ac_cv_lib_gtp_main" >&6 |
| 7480 | if test $ac_cv_lib_gtp_main = yes; then |
| 7481 | cat >>confdefs.h <<_ACEOF |
| 7482 | #define HAVE_LIBGTP 1 |
| 7483 | _ACEOF |
| 7484 | |
| 7485 | LIBS="-lgtp $LIBS" |
| 7486 | |
| 7487 | fi |
| 7488 | |
| 7489 | # FIXME: Replace `main' with a function in `-links': |
| 7490 | |
| 7491 | echo "$as_me:$LINENO: checking for main in -links" >&5 |
| 7492 | echo $ECHO_N "checking for main in -links... $ECHO_C" >&6 |
| 7493 | if test "${ac_cv_lib_inks_main+set}" = set; then |
| 7494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7495 | else |
| 7496 | ac_check_lib_save_LIBS=$LIBS |
| 7497 | LIBS="-links $LIBS" |
| 7498 | cat >conftest.$ac_ext <<_ACEOF |
| 7499 | #line $LINENO "configure" |
| 7500 | #include "confdefs.h" |
| 7501 | |
| 7502 | |
| 7503 | #ifdef F77_DUMMY_MAIN |
| 7504 | # ifdef __cplusplus |
| 7505 | extern "C" |
| 7506 | # endif |
| 7507 | int F77_DUMMY_MAIN() { return 1; } |
| 7508 | #endif |
| 7509 | int |
| 7510 | main () |
| 7511 | { |
| 7512 | main (); |
| 7513 | ; |
| 7514 | return 0; |
| 7515 | } |
| 7516 | _ACEOF |
| 7517 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7519 | (eval $ac_link) 2>&5 |
| 7520 | ac_status=$? |
| 7521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7522 | (exit $ac_status); } && |
| 7523 | { ac_try='test -s conftest$ac_exeext' |
| 7524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7525 | (eval $ac_try) 2>&5 |
| 7526 | ac_status=$? |
| 7527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7528 | (exit $ac_status); }; }; then |
| 7529 | ac_cv_lib_inks_main=yes |
| 7530 | else |
| 7531 | echo "$as_me: failed program was:" >&5 |
| 7532 | cat conftest.$ac_ext >&5 |
| 7533 | ac_cv_lib_inks_main=no |
| 7534 | fi |
| 7535 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7536 | LIBS=$ac_check_lib_save_LIBS |
| 7537 | fi |
| 7538 | echo "$as_me:$LINENO: result: $ac_cv_lib_inks_main" >&5 |
| 7539 | echo "${ECHO_T}$ac_cv_lib_inks_main" >&6 |
| 7540 | if test $ac_cv_lib_inks_main = yes; then |
| 7541 | cat >>confdefs.h <<_ACEOF |
| 7542 | #define HAVE_LIBINKS 1 |
| 7543 | _ACEOF |
| 7544 | |
| 7545 | LIBS="-links $LIBS" |
| 7546 | |
| 7547 | fi |
| 7548 | |
| 7549 | |
| 7550 | # Checks for header files. |
| 7551 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7552 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 7553 | if test "${ac_cv_header_stdc+set}" = set; then |
| 7554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7555 | else |
| 7556 | cat >conftest.$ac_ext <<_ACEOF |
| 7557 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7558 | #include "confdefs.h" |
| 7559 | #include <stdlib.h> |
| 7560 | #include <stdarg.h> |
| 7561 | #include <string.h> |
| 7562 | #include <float.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7563 | |
| 7564 | _ACEOF |
| 7565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7567 | ac_status=$? |
| 7568 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7569 | rm -f conftest.er1 |
| 7570 | cat conftest.err >&5 |
| 7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7572 | (exit $ac_status); } >/dev/null; then |
| 7573 | if test -s conftest.err; then |
| 7574 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7575 | else |
| 7576 | ac_cpp_err= |
| 7577 | fi |
| 7578 | else |
| 7579 | ac_cpp_err=yes |
| 7580 | fi |
| 7581 | if test -z "$ac_cpp_err"; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7582 | ac_cv_header_stdc=yes |
| 7583 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7584 | echo "$as_me: failed program was:" >&5 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7585 | cat conftest.$ac_ext >&5 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7586 | ac_cv_header_stdc=no |
| 7587 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7588 | rm -f conftest.err conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7589 | |
| 7590 | if test $ac_cv_header_stdc = yes; then |
| 7591 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7592 | cat >conftest.$ac_ext <<_ACEOF |
| 7593 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7594 | #include "confdefs.h" |
| 7595 | #include <string.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7596 | |
| 7597 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7598 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7599 | egrep "memchr" >/dev/null 2>&1; then |
| 7600 | : |
| 7601 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7602 | ac_cv_header_stdc=no |
| 7603 | fi |
| 7604 | rm -f conftest* |
| 7605 | |
| 7606 | fi |
| 7607 | |
| 7608 | if test $ac_cv_header_stdc = yes; then |
| 7609 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7610 | cat >conftest.$ac_ext <<_ACEOF |
| 7611 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7612 | #include "confdefs.h" |
| 7613 | #include <stdlib.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7614 | |
| 7615 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7617 | egrep "free" >/dev/null 2>&1; then |
| 7618 | : |
| 7619 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7620 | ac_cv_header_stdc=no |
| 7621 | fi |
| 7622 | rm -f conftest* |
| 7623 | |
| 7624 | fi |
| 7625 | |
| 7626 | if test $ac_cv_header_stdc = yes; then |
| 7627 | # /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] | 7628 | if test "$cross_compiling" = yes; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7629 | : |
| 7630 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7631 | cat >conftest.$ac_ext <<_ACEOF |
| 7632 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7633 | #include "confdefs.h" |
| 7634 | #include <ctype.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7635 | #if ((' ' & 0x0FF) == 0x020) |
| 7636 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7637 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7638 | #else |
| 7639 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 7640 | || ('j' <= (c) && (c) <= 'r') \ |
| 7641 | || ('s' <= (c) && (c) <= 'z')) |
| 7642 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7643 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7644 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7645 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7646 | int |
| 7647 | main () |
| 7648 | { |
| 7649 | int i; |
| 7650 | for (i = 0; i < 256; i++) |
| 7651 | if (XOR (islower (i), ISLOWER (i)) |
| 7652 | || toupper (i) != TOUPPER (i)) |
| 7653 | exit(2); |
| 7654 | exit (0); |
| 7655 | } |
| 7656 | _ACEOF |
| 7657 | rm -f conftest$ac_exeext |
| 7658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7659 | (eval $ac_link) 2>&5 |
| 7660 | ac_status=$? |
| 7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7662 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7664 | (eval $ac_try) 2>&5 |
| 7665 | ac_status=$? |
| 7666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7667 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7668 | : |
| 7669 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7670 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7671 | echo "$as_me: failed program was:" >&5 |
| 7672 | cat conftest.$ac_ext >&5 |
| 7673 | ( exit $ac_status ) |
| 7674 | ac_cv_header_stdc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7675 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7676 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7677 | fi |
| 7678 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7679 | fi |
| 7680 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7681 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7682 | if test $ac_cv_header_stdc = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7683 | |
| 7684 | cat >>confdefs.h <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7685 | #define STDC_HEADERS 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7686 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7687 | |
| 7688 | fi |
| 7689 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7690 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 7691 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 7692 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 7693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7694 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7695 | cat >conftest.$ac_ext <<_ACEOF |
| 7696 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7697 | #include "confdefs.h" |
| 7698 | #include <sys/types.h> |
| 7699 | #include <sys/wait.h> |
| 7700 | #ifndef WEXITSTATUS |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7701 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7702 | #endif |
| 7703 | #ifndef WIFEXITED |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7704 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7705 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7706 | |
| 7707 | #ifdef F77_DUMMY_MAIN |
| 7708 | # ifdef __cplusplus |
| 7709 | extern "C" |
| 7710 | # endif |
| 7711 | int F77_DUMMY_MAIN() { return 1; } |
| 7712 | #endif |
| 7713 | int |
| 7714 | main () |
| 7715 | { |
| 7716 | int s; |
| 7717 | wait (&s); |
| 7718 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 7719 | ; |
| 7720 | return 0; |
| 7721 | } |
| 7722 | _ACEOF |
| 7723 | rm -f conftest.$ac_objext |
| 7724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7725 | (eval $ac_compile) 2>&5 |
| 7726 | ac_status=$? |
| 7727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7728 | (exit $ac_status); } && |
| 7729 | { ac_try='test -s conftest.$ac_objext' |
| 7730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7731 | (eval $ac_try) 2>&5 |
| 7732 | ac_status=$? |
| 7733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7734 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7735 | ac_cv_header_sys_wait_h=yes |
| 7736 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7737 | echo "$as_me: failed program was:" >&5 |
| 7738 | cat conftest.$ac_ext >&5 |
| 7739 | ac_cv_header_sys_wait_h=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7740 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7741 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7742 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7743 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 7744 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7745 | if test $ac_cv_header_sys_wait_h = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7746 | |
| 7747 | cat >>confdefs.h <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7748 | #define HAVE_SYS_WAIT_H 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7749 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7750 | |
| 7751 | fi |
| 7752 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7753 | |
| 7754 | |
| 7755 | |
| 7756 | |
| 7757 | |
| 7758 | |
| 7759 | |
| 7760 | |
| 7761 | |
| 7762 | |
| 7763 | |
| 7764 | |
| 7765 | 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] | 7766 | do |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7767 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7768 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7769 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7770 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7771 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7773 | fi |
| 7774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7776 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7777 | # Is the header compilable? |
| 7778 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7779 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7780 | cat >conftest.$ac_ext <<_ACEOF |
| 7781 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7782 | #include "confdefs.h" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7783 | $ac_includes_default |
| 7784 | #include <$ac_header> |
| 7785 | _ACEOF |
| 7786 | rm -f conftest.$ac_objext |
| 7787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7788 | (eval $ac_compile) 2>&5 |
| 7789 | ac_status=$? |
| 7790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7791 | (exit $ac_status); } && |
| 7792 | { ac_try='test -s conftest.$ac_objext' |
| 7793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7794 | (eval $ac_try) 2>&5 |
| 7795 | ac_status=$? |
| 7796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7797 | (exit $ac_status); }; }; then |
| 7798 | ac_header_compiler=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7799 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7800 | echo "$as_me: failed program was:" >&5 |
| 7801 | cat conftest.$ac_ext >&5 |
| 7802 | ac_header_compiler=no |
| 7803 | fi |
| 7804 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7805 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7806 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7807 | |
| 7808 | # Is the header present? |
| 7809 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7810 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7811 | cat >conftest.$ac_ext <<_ACEOF |
| 7812 | #line $LINENO "configure" |
| 7813 | #include "confdefs.h" |
| 7814 | #include <$ac_header> |
| 7815 | _ACEOF |
| 7816 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7817 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7818 | ac_status=$? |
| 7819 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 7820 | rm -f conftest.er1 |
| 7821 | cat conftest.err >&5 |
| 7822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7823 | (exit $ac_status); } >/dev/null; then |
| 7824 | if test -s conftest.err; then |
| 7825 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7826 | else |
| 7827 | ac_cpp_err= |
| 7828 | fi |
| 7829 | else |
| 7830 | ac_cpp_err=yes |
| 7831 | fi |
| 7832 | if test -z "$ac_cpp_err"; then |
| 7833 | ac_header_preproc=yes |
| 7834 | else |
| 7835 | echo "$as_me: failed program was:" >&5 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7836 | cat conftest.$ac_ext >&5 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7837 | ac_header_preproc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7838 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7839 | rm -f conftest.err conftest.$ac_ext |
| 7840 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7841 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7842 | |
| 7843 | # So? What about this header? |
| 7844 | case $ac_header_compiler:$ac_header_preproc in |
| 7845 | yes:no ) |
| 7846 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7847 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7848 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7849 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7850 | no:yes ) |
| 7851 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7852 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7853 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7854 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7855 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7856 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7857 | esac |
| 7858 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7860 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7862 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7863 | eval "$as_ac_Header=$ac_header_preproc" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7864 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7865 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7866 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7867 | |
| 7868 | fi |
| 7869 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7870 | cat >>confdefs.h <<_ACEOF |
| 7871 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7872 | _ACEOF |
| 7873 | |
| 7874 | fi |
| 7875 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7876 | done |
| 7877 | |
| 7878 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7879 | # Checks for typedefs, structures, and compiler characteristics. |
| 7880 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 7881 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 7882 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 7883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7884 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7885 | ac_cv_prog_cc_stdc=no |
| 7886 | ac_save_CC=$CC |
| 7887 | cat >conftest.$ac_ext <<_ACEOF |
| 7888 | #line $LINENO "configure" |
| 7889 | #include "confdefs.h" |
| 7890 | #include <stdarg.h> |
| 7891 | #include <stdio.h> |
| 7892 | #include <sys/types.h> |
| 7893 | #include <sys/stat.h> |
| 7894 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 7895 | struct buf { int x; }; |
| 7896 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 7897 | static char *e (p, i) |
| 7898 | char **p; |
| 7899 | int i; |
| 7900 | { |
| 7901 | return p[i]; |
| 7902 | } |
| 7903 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 7904 | { |
| 7905 | char *s; |
| 7906 | va_list v; |
| 7907 | va_start (v,p); |
| 7908 | s = g (p, va_arg (v,int)); |
| 7909 | va_end (v); |
| 7910 | return s; |
| 7911 | } |
| 7912 | int test (int i, double x); |
| 7913 | struct s1 {int (*f) (int a);}; |
| 7914 | struct s2 {int (*f) (double a);}; |
| 7915 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 7916 | int argc; |
| 7917 | char **argv; |
| 7918 | #ifdef F77_DUMMY_MAIN |
| 7919 | # ifdef __cplusplus |
| 7920 | extern "C" |
| 7921 | # endif |
| 7922 | int F77_DUMMY_MAIN() { return 1; } |
| 7923 | #endif |
| 7924 | int |
| 7925 | main () |
| 7926 | { |
| 7927 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 7928 | ; |
| 7929 | return 0; |
| 7930 | } |
| 7931 | _ACEOF |
| 7932 | # Don't try gcc -ansi; that turns off useful extensions and |
| 7933 | # breaks some systems' header files. |
| 7934 | # AIX -qlanglvl=ansi |
| 7935 | # Ultrix and OSF/1 -std1 |
| 7936 | # HP-UX 10.20 and later -Ae |
| 7937 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 7938 | # SVR4 -Xc -D__EXTENSIONS__ |
| 7939 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 7940 | do |
| 7941 | CC="$ac_save_CC $ac_arg" |
| 7942 | rm -f conftest.$ac_objext |
| 7943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7944 | (eval $ac_compile) 2>&5 |
| 7945 | ac_status=$? |
| 7946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7947 | (exit $ac_status); } && |
| 7948 | { ac_try='test -s conftest.$ac_objext' |
| 7949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7950 | (eval $ac_try) 2>&5 |
| 7951 | ac_status=$? |
| 7952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7953 | (exit $ac_status); }; }; then |
| 7954 | ac_cv_prog_cc_stdc=$ac_arg |
| 7955 | break |
| 7956 | else |
| 7957 | echo "$as_me: failed program was:" >&5 |
| 7958 | cat conftest.$ac_ext >&5 |
| 7959 | fi |
| 7960 | rm -f conftest.$ac_objext |
| 7961 | done |
| 7962 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 7963 | CC=$ac_save_CC |
| 7964 | |
| 7965 | fi |
| 7966 | |
| 7967 | case "x$ac_cv_prog_cc_stdc" in |
| 7968 | x|xno) |
| 7969 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 7970 | echo "${ECHO_T}none needed" >&6 ;; |
| 7971 | *) |
| 7972 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 7973 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 7974 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 7975 | esac |
| 7976 | |
| 7977 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 7978 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 7979 | if test "${ac_cv_c_const+set}" = set; then |
| 7980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7981 | else |
| 7982 | cat >conftest.$ac_ext <<_ACEOF |
| 7983 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 7984 | #include "confdefs.h" |
| 7985 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 7986 | #ifdef F77_DUMMY_MAIN |
| 7987 | # ifdef __cplusplus |
| 7988 | extern "C" |
| 7989 | # endif |
| 7990 | int F77_DUMMY_MAIN() { return 1; } |
| 7991 | #endif |
| 7992 | int |
| 7993 | main () |
| 7994 | { |
| 7995 | /* FIXME: Include the comments suggested by Paul. */ |
| 7996 | #ifndef __cplusplus |
| 7997 | /* Ultrix mips cc rejects this. */ |
| 7998 | typedef int charset[2]; |
| 7999 | const charset x; |
| 8000 | /* SunOS 4.1.1 cc rejects this. */ |
| 8001 | char const *const *ccp; |
| 8002 | char **p; |
| 8003 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8004 | struct point {int x, y;}; |
| 8005 | static struct point const zero = {0,0}; |
| 8006 | /* AIX XL C 1.02.0.0 rejects this. |
| 8007 | It does not let you subtract one const X* pointer from another in |
| 8008 | an arm of an if-expression whose if-part is not a constant |
| 8009 | expression */ |
| 8010 | const char *g = "string"; |
| 8011 | ccp = &g + (g ? g-g : 0); |
| 8012 | /* HPUX 7.0 cc rejects these. */ |
| 8013 | ++ccp; |
| 8014 | p = (char**) ccp; |
| 8015 | ccp = (char const *const *) p; |
| 8016 | { /* SCO 3.2v4 cc rejects this. */ |
| 8017 | char *t; |
| 8018 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8019 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8020 | *t++ = 0; |
| 8021 | } |
| 8022 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8023 | int x[] = {25, 17}; |
| 8024 | const int *foo = &x[0]; |
| 8025 | ++foo; |
| 8026 | } |
| 8027 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8028 | typedef const int *iptr; |
| 8029 | iptr p = 0; |
| 8030 | ++p; |
| 8031 | } |
| 8032 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8033 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8034 | struct s { int j; const int *ap[3]; }; |
| 8035 | struct s *b; b->j = 5; |
| 8036 | } |
| 8037 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8038 | const int foo = 10; |
| 8039 | } |
| 8040 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8041 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8042 | ; |
| 8043 | return 0; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8044 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8045 | _ACEOF |
| 8046 | rm -f conftest.$ac_objext |
| 8047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8048 | (eval $ac_compile) 2>&5 |
| 8049 | ac_status=$? |
| 8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8051 | (exit $ac_status); } && |
| 8052 | { ac_try='test -s conftest.$ac_objext' |
| 8053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8054 | (eval $ac_try) 2>&5 |
| 8055 | ac_status=$? |
| 8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8057 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8058 | ac_cv_c_const=yes |
| 8059 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8060 | echo "$as_me: failed program was:" >&5 |
| 8061 | cat conftest.$ac_ext >&5 |
| 8062 | ac_cv_c_const=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8063 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8064 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8065 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8066 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8067 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8068 | if test $ac_cv_c_const = no; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8069 | |
| 8070 | cat >>confdefs.h <<\_ACEOF |
| 8071 | #define const |
| 8072 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8073 | |
| 8074 | fi |
| 8075 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8076 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 8077 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 8078 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 8079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8080 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8081 | cat >conftest.$ac_ext <<_ACEOF |
| 8082 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8083 | #include "confdefs.h" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8084 | $ac_includes_default |
| 8085 | #ifdef F77_DUMMY_MAIN |
| 8086 | # ifdef __cplusplus |
| 8087 | extern "C" |
| 8088 | # endif |
| 8089 | int F77_DUMMY_MAIN() { return 1; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8090 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8091 | int |
| 8092 | main () |
| 8093 | { |
| 8094 | if ((mode_t *) 0) |
| 8095 | return 0; |
| 8096 | if (sizeof (mode_t)) |
| 8097 | return 0; |
| 8098 | ; |
| 8099 | return 0; |
| 8100 | } |
| 8101 | _ACEOF |
| 8102 | rm -f conftest.$ac_objext |
| 8103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8104 | (eval $ac_compile) 2>&5 |
| 8105 | ac_status=$? |
| 8106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8107 | (exit $ac_status); } && |
| 8108 | { ac_try='test -s conftest.$ac_objext' |
| 8109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8110 | (eval $ac_try) 2>&5 |
| 8111 | ac_status=$? |
| 8112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8113 | (exit $ac_status); }; }; then |
| 8114 | ac_cv_type_mode_t=yes |
| 8115 | else |
| 8116 | echo "$as_me: failed program was:" >&5 |
| 8117 | cat conftest.$ac_ext >&5 |
| 8118 | ac_cv_type_mode_t=no |
| 8119 | fi |
| 8120 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8121 | fi |
| 8122 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 8123 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 8124 | if test $ac_cv_type_mode_t = yes; then |
| 8125 | : |
| 8126 | else |
| 8127 | |
| 8128 | cat >>confdefs.h <<_ACEOF |
| 8129 | #define mode_t int |
| 8130 | _ACEOF |
| 8131 | |
| 8132 | fi |
| 8133 | |
| 8134 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 8135 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 8136 | if test "${ac_cv_type_size_t+set}" = set; then |
| 8137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8138 | else |
| 8139 | cat >conftest.$ac_ext <<_ACEOF |
| 8140 | #line $LINENO "configure" |
| 8141 | #include "confdefs.h" |
| 8142 | $ac_includes_default |
| 8143 | #ifdef F77_DUMMY_MAIN |
| 8144 | # ifdef __cplusplus |
| 8145 | extern "C" |
| 8146 | # endif |
| 8147 | int F77_DUMMY_MAIN() { return 1; } |
| 8148 | #endif |
| 8149 | int |
| 8150 | main () |
| 8151 | { |
| 8152 | if ((size_t *) 0) |
| 8153 | return 0; |
| 8154 | if (sizeof (size_t)) |
| 8155 | return 0; |
| 8156 | ; |
| 8157 | return 0; |
| 8158 | } |
| 8159 | _ACEOF |
| 8160 | rm -f conftest.$ac_objext |
| 8161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8162 | (eval $ac_compile) 2>&5 |
| 8163 | ac_status=$? |
| 8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8165 | (exit $ac_status); } && |
| 8166 | { ac_try='test -s conftest.$ac_objext' |
| 8167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8168 | (eval $ac_try) 2>&5 |
| 8169 | ac_status=$? |
| 8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8171 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8172 | ac_cv_type_size_t=yes |
| 8173 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8174 | echo "$as_me: failed program was:" >&5 |
| 8175 | cat conftest.$ac_ext >&5 |
| 8176 | ac_cv_type_size_t=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8177 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8178 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8179 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8180 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 8181 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 8182 | if test $ac_cv_type_size_t = yes; then |
| 8183 | : |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8184 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8185 | |
| 8186 | cat >>confdefs.h <<_ACEOF |
| 8187 | #define size_t unsigned |
| 8188 | _ACEOF |
| 8189 | |
| 8190 | fi |
| 8191 | |
| 8192 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 8193 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 8194 | if test "${ac_cv_header_time+set}" = set; then |
| 8195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8196 | else |
| 8197 | cat >conftest.$ac_ext <<_ACEOF |
| 8198 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8199 | #include "confdefs.h" |
| 8200 | #include <sys/types.h> |
| 8201 | #include <sys/time.h> |
| 8202 | #include <time.h> |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8203 | |
| 8204 | #ifdef F77_DUMMY_MAIN |
| 8205 | # ifdef __cplusplus |
| 8206 | extern "C" |
| 8207 | # endif |
| 8208 | int F77_DUMMY_MAIN() { return 1; } |
| 8209 | #endif |
| 8210 | int |
| 8211 | main () |
| 8212 | { |
| 8213 | if ((struct tm *) 0) |
| 8214 | return 0; |
| 8215 | ; |
| 8216 | return 0; |
| 8217 | } |
| 8218 | _ACEOF |
| 8219 | rm -f conftest.$ac_objext |
| 8220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8221 | (eval $ac_compile) 2>&5 |
| 8222 | ac_status=$? |
| 8223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8224 | (exit $ac_status); } && |
| 8225 | { ac_try='test -s conftest.$ac_objext' |
| 8226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8227 | (eval $ac_try) 2>&5 |
| 8228 | ac_status=$? |
| 8229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8230 | (exit $ac_status); }; }; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8231 | ac_cv_header_time=yes |
| 8232 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8233 | echo "$as_me: failed program was:" >&5 |
| 8234 | cat conftest.$ac_ext >&5 |
| 8235 | ac_cv_header_time=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8236 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8237 | rm -f conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8238 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8239 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 8240 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8241 | if test $ac_cv_header_time = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8242 | |
| 8243 | cat >>confdefs.h <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8244 | #define TIME_WITH_SYS_TIME 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8245 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8246 | |
| 8247 | fi |
| 8248 | |
| 8249 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8250 | # Checks for library functions. |
| 8251 | if test $ac_cv_c_compiler_gnu = yes; then |
| 8252 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 8253 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 8254 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 8255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8256 | else |
| 8257 | ac_pattern="Autoconf.*'x'" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8258 | cat >conftest.$ac_ext <<_ACEOF |
| 8259 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8260 | #include "confdefs.h" |
| 8261 | #include <sgtty.h> |
| 8262 | Autoconf TIOCGETP |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8263 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8264 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8265 | egrep "$ac_pattern" >/dev/null 2>&1; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8266 | ac_cv_prog_gcc_traditional=yes |
| 8267 | else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8268 | ac_cv_prog_gcc_traditional=no |
| 8269 | fi |
| 8270 | rm -f conftest* |
| 8271 | |
| 8272 | |
| 8273 | if test $ac_cv_prog_gcc_traditional = no; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8274 | cat >conftest.$ac_ext <<_ACEOF |
| 8275 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8276 | #include "confdefs.h" |
| 8277 | #include <termio.h> |
| 8278 | Autoconf TCGETA |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8279 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8280 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8281 | egrep "$ac_pattern" >/dev/null 2>&1; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8282 | ac_cv_prog_gcc_traditional=yes |
| 8283 | fi |
| 8284 | rm -f conftest* |
| 8285 | |
| 8286 | fi |
| 8287 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8288 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 8289 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8290 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 8291 | CC="$CC -traditional" |
| 8292 | fi |
| 8293 | fi |
| 8294 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8295 | |
| 8296 | for ac_header in stdlib.h |
| 8297 | do |
| 8298 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8300 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8301 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8302 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8304 | fi |
| 8305 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8306 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8307 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8308 | # Is the header compilable? |
| 8309 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8310 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8311 | cat >conftest.$ac_ext <<_ACEOF |
| 8312 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8313 | #include "confdefs.h" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8314 | $ac_includes_default |
| 8315 | #include <$ac_header> |
| 8316 | _ACEOF |
| 8317 | rm -f conftest.$ac_objext |
| 8318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8319 | (eval $ac_compile) 2>&5 |
| 8320 | ac_status=$? |
| 8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8322 | (exit $ac_status); } && |
| 8323 | { ac_try='test -s conftest.$ac_objext' |
| 8324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8325 | (eval $ac_try) 2>&5 |
| 8326 | ac_status=$? |
| 8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8328 | (exit $ac_status); }; }; then |
| 8329 | ac_header_compiler=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8330 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8331 | echo "$as_me: failed program was:" >&5 |
| 8332 | cat conftest.$ac_ext >&5 |
| 8333 | ac_header_compiler=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8334 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8335 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8336 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8337 | echo "${ECHO_T}$ac_header_compiler" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8338 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8339 | # Is the header present? |
| 8340 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8341 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8342 | cat >conftest.$ac_ext <<_ACEOF |
| 8343 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8344 | #include "confdefs.h" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8345 | #include <$ac_header> |
| 8346 | _ACEOF |
| 8347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8349 | ac_status=$? |
| 8350 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 8351 | rm -f conftest.er1 |
| 8352 | cat conftest.err >&5 |
| 8353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8354 | (exit $ac_status); } >/dev/null; then |
| 8355 | if test -s conftest.err; then |
| 8356 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8357 | else |
| 8358 | ac_cpp_err= |
| 8359 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8360 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8361 | ac_cpp_err=yes |
| 8362 | fi |
| 8363 | if test -z "$ac_cpp_err"; then |
| 8364 | ac_header_preproc=yes |
| 8365 | else |
| 8366 | echo "$as_me: failed program was:" >&5 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8367 | cat conftest.$ac_ext >&5 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8368 | ac_header_preproc=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8369 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8370 | rm -f conftest.err conftest.$ac_ext |
| 8371 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8372 | echo "${ECHO_T}$ac_header_preproc" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8373 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8374 | # So? What about this header? |
| 8375 | case $ac_header_compiler:$ac_header_preproc in |
| 8376 | yes:no ) |
| 8377 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8378 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8379 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8380 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 8381 | no:yes ) |
| 8382 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8383 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8384 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8385 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8387 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 8388 | esac |
| 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 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8393 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8394 | eval "$as_ac_Header=$ac_header_preproc" |
| 8395 | fi |
| 8396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8397 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8398 | |
| 8399 | fi |
| 8400 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8401 | cat >>confdefs.h <<_ACEOF |
| 8402 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8403 | _ACEOF |
| 8404 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8405 | fi |
| 8406 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8407 | done |
| 8408 | |
| 8409 | echo "$as_me:$LINENO: checking for working malloc" >&5 |
| 8410 | echo $ECHO_N "checking for working malloc... $ECHO_C" >&6 |
| 8411 | if test "${ac_cv_func_malloc_works+set}" = set; then |
| 8412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8413 | else |
| 8414 | if test "$cross_compiling" = yes; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8415 | ac_cv_func_malloc_works=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8416 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8417 | cat >conftest.$ac_ext <<_ACEOF |
| 8418 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8419 | #include "confdefs.h" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8420 | #if STDC_HEADERS || HAVE_STDLIB_H |
| 8421 | # include <stdlib.h> |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8422 | #else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8423 | char *malloc (); |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8424 | #endif |
| 8425 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8426 | #ifdef F77_DUMMY_MAIN |
| 8427 | # ifdef __cplusplus |
| 8428 | extern "C" |
| 8429 | # endif |
| 8430 | int F77_DUMMY_MAIN() { return 1; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8431 | #endif |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8432 | int |
| 8433 | main () |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8434 | { |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8435 | exit (malloc (0) ? 0 : 1); |
| 8436 | ; |
| 8437 | return 0; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8438 | } |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8439 | _ACEOF |
| 8440 | rm -f conftest$ac_exeext |
| 8441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8442 | (eval $ac_link) 2>&5 |
| 8443 | ac_status=$? |
| 8444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8445 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8447 | (eval $ac_try) 2>&5 |
| 8448 | ac_status=$? |
| 8449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8450 | (exit $ac_status); }; }; then |
| 8451 | ac_cv_func_malloc_works=yes |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8452 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8453 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8454 | echo "$as_me: failed program was:" >&5 |
| 8455 | cat conftest.$ac_ext >&5 |
| 8456 | ( exit $ac_status ) |
| 8457 | ac_cv_func_malloc_works=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8458 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8459 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8460 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8461 | fi |
| 8462 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5 |
| 8463 | echo "${ECHO_T}$ac_cv_func_malloc_works" >&6 |
| 8464 | if test $ac_cv_func_malloc_works = yes; then |
| 8465 | |
| 8466 | cat >>confdefs.h <<\_ACEOF |
| 8467 | #define HAVE_MALLOC 1 |
| 8468 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8469 | |
| 8470 | fi |
| 8471 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8472 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 8473 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
| 8474 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 8475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8476 | else |
| 8477 | if test "$cross_compiling" = yes; then |
| 8478 | ac_cv_func_memcmp_working=no |
| 8479 | else |
| 8480 | cat >conftest.$ac_ext <<_ACEOF |
| 8481 | #line $LINENO "configure" |
| 8482 | #include "confdefs.h" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8483 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8484 | #ifdef F77_DUMMY_MAIN |
| 8485 | # ifdef __cplusplus |
| 8486 | extern "C" |
| 8487 | # endif |
| 8488 | int F77_DUMMY_MAIN() { return 1; } |
| 8489 | #endif |
| 8490 | int |
| 8491 | main () |
| 8492 | { |
| 8493 | |
| 8494 | /* Some versions of memcmp are not 8-bit clean. */ |
| 8495 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
| 8496 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 8497 | exit (1); |
| 8498 | |
| 8499 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 8500 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 8501 | William Lewis provided this test program. */ |
| 8502 | { |
| 8503 | char foo[21]; |
| 8504 | char bar[21]; |
| 8505 | int i; |
| 8506 | for (i = 0; i < 4; i++) |
| 8507 | { |
| 8508 | char *a = foo + i; |
| 8509 | char *b = bar + i; |
| 8510 | strcpy (a, "--------01111111"); |
| 8511 | strcpy (b, "--------10000000"); |
| 8512 | if (memcmp (a, b, 16) >= 0) |
| 8513 | exit (1); |
| 8514 | } |
| 8515 | exit (0); |
| 8516 | } |
| 8517 | |
| 8518 | ; |
| 8519 | return 0; |
| 8520 | } |
| 8521 | _ACEOF |
| 8522 | rm -f conftest$ac_exeext |
| 8523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8524 | (eval $ac_link) 2>&5 |
| 8525 | ac_status=$? |
| 8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8527 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8529 | (eval $ac_try) 2>&5 |
| 8530 | ac_status=$? |
| 8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8532 | (exit $ac_status); }; }; then |
| 8533 | ac_cv_func_memcmp_working=yes |
| 8534 | else |
| 8535 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8536 | echo "$as_me: failed program was:" >&5 |
| 8537 | cat conftest.$ac_ext >&5 |
| 8538 | ( exit $ac_status ) |
| 8539 | ac_cv_func_memcmp_working=no |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8540 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8541 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8542 | fi |
| 8543 | fi |
| 8544 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 8545 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
| 8546 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8547 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8548 | |
| 8549 | |
| 8550 | |
| 8551 | |
| 8552 | |
| 8553 | |
| 8554 | |
| 8555 | |
| 8556 | for ac_func in gethostbyname inet_ntoa memset select socket strdup strerror strtol |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8557 | do |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8558 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8559 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8560 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8561 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8563 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8564 | cat >conftest.$ac_ext <<_ACEOF |
| 8565 | #line $LINENO "configure" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8566 | #include "confdefs.h" |
| 8567 | /* System header to define __stub macros and hopefully few prototypes, |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8568 | which can conflict with char $ac_func (); below. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8569 | #include <assert.h> |
| 8570 | /* Override any gcc2 internal prototype to avoid an error. */ |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8571 | #ifdef __cplusplus |
| 8572 | extern "C" |
| 8573 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8574 | /* We use char because int might match the return type of a gcc2 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8575 | builtin and then its argument prototype would still apply. */ |
| 8576 | char $ac_func (); |
| 8577 | char (*f) (); |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8578 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8579 | #ifdef F77_DUMMY_MAIN |
| 8580 | # ifdef __cplusplus |
| 8581 | extern "C" |
| 8582 | # endif |
| 8583 | int F77_DUMMY_MAIN() { return 1; } |
| 8584 | #endif |
| 8585 | int |
| 8586 | main () |
| 8587 | { |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8588 | /* The GNU C library defines this for functions which it implements |
| 8589 | to always fail with ENOSYS. Some functions are actually named |
| 8590 | something starting with __ and the normal name is an alias. */ |
| 8591 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8592 | choke me |
| 8593 | #else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8594 | f = $ac_func; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8595 | #endif |
| 8596 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8597 | ; |
| 8598 | return 0; |
| 8599 | } |
| 8600 | _ACEOF |
| 8601 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8603 | (eval $ac_link) 2>&5 |
| 8604 | ac_status=$? |
| 8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8606 | (exit $ac_status); } && |
| 8607 | { ac_try='test -s conftest$ac_exeext' |
| 8608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8609 | (eval $ac_try) 2>&5 |
| 8610 | ac_status=$? |
| 8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8612 | (exit $ac_status); }; }; then |
| 8613 | eval "$as_ac_var=yes" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8614 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8615 | echo "$as_me: failed program was:" >&5 |
| 8616 | cat conftest.$ac_ext >&5 |
| 8617 | eval "$as_ac_var=no" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8618 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8619 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8620 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8622 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8623 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8624 | cat >>confdefs.h <<_ACEOF |
| 8625 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8626 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8627 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8628 | fi |
| 8629 | done |
| 8630 | |
| 8631 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8632 | am__api_version="1.6" |
| 8633 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 8634 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8635 | # Just in case |
| 8636 | sleep 1 |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8637 | echo timestamp > conftest.file |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8638 | # Do `set' in a subshell so we don't clobber the current shell's |
| 8639 | # arguments. Must try -L first in case configure is actually a |
| 8640 | # symlink; some systems play weird games with the mod time of symlinks |
| 8641 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 8642 | # directory). |
| 8643 | if ( |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8644 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8645 | if test "$*" = "X"; then |
| 8646 | # -L didn't work. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8647 | set X `ls -t $srcdir/configure conftest.file` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8648 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8649 | rm -f conftest.file |
| 8650 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 8651 | && test "$*" != "X conftest.file $srcdir/configure"; then |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8652 | |
| 8653 | # If neither matched, then we have a broken ls. This can happen |
| 8654 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 8655 | # broken ls alias from the environment. This has actually |
| 8656 | # happened. Such a system could not be considered "sane". |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8657 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 8658 | alias in your environment" >&5 |
| 8659 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 8660 | alias in your environment" >&2;} |
| 8661 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8662 | fi |
| 8663 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8664 | test "$2" = conftest.file |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8665 | ) |
| 8666 | then |
| 8667 | # Ok. |
| 8668 | : |
| 8669 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8670 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 8671 | Check your system clock" >&5 |
| 8672 | echo "$as_me: error: newly created file is older than distributed files! |
| 8673 | Check your system clock" >&2;} |
| 8674 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8675 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8676 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8677 | echo "${ECHO_T}yes" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8678 | test "$program_prefix" != NONE && |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8679 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8680 | # Use a double $ so make ignores it. |
| 8681 | test "$program_suffix" != NONE && |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8682 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 8683 | # Double any \ or $. echo might interpret backslashes. |
| 8684 | # By default was `s,x,x', remove it if useless. |
| 8685 | cat <<\_ACEOF >conftest.sed |
| 8686 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 8687 | _ACEOF |
| 8688 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 8689 | rm conftest.sed |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8690 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8691 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8692 | # expand $ac_aux_dir to an absolute path |
| 8693 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 8694 | |
| 8695 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 8696 | # Use eval to expand $SHELL |
| 8697 | if eval "$MISSING --run true"; then |
| 8698 | am_missing_run="$MISSING --run " |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8699 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8700 | am_missing_run= |
| 8701 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 8702 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 8703 | fi |
| 8704 | |
| 8705 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 8706 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 8707 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 8708 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 8709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8710 | else |
| 8711 | cat >conftest.make <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8712 | all: |
| 8713 | @echo 'ac_maketemp="${MAKE}"' |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8714 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8715 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8716 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8717 | if test -n "$ac_maketemp"; then |
| 8718 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 8719 | else |
| 8720 | eval ac_cv_prog_make_${ac_make}_set=no |
| 8721 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8722 | rm -f conftest.make |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8723 | fi |
| 8724 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8725 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8726 | echo "${ECHO_T}yes" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8727 | SET_MAKE= |
| 8728 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8729 | echo "$as_me:$LINENO: result: no" >&5 |
| 8730 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8731 | SET_MAKE="MAKE=${MAKE-make}" |
| 8732 | fi |
| 8733 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8734 | rm -f .deps 2>/dev/null |
| 8735 | mkdir .deps 2>/dev/null |
| 8736 | if test -d .deps; then |
| 8737 | DEPDIR=.deps |
| 8738 | else |
| 8739 | # MS-DOS does not allow filenames that begin with a dot. |
| 8740 | DEPDIR=_deps |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8741 | fi |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8742 | rmdir .deps 2>/dev/null |
| 8743 | |
| 8744 | |
| 8745 | ac_config_commands="$ac_config_commands depfiles" |
| 8746 | |
| 8747 | |
| 8748 | am_make=${MAKE-make} |
| 8749 | cat > confinc << 'END' |
| 8750 | doit: |
| 8751 | @echo done |
| 8752 | END |
| 8753 | # If we don't find an include directive, just comment out the code. |
| 8754 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 8755 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 8756 | am__include="#" |
| 8757 | am__quote= |
| 8758 | _am_result=none |
| 8759 | # First try GNU make style include. |
| 8760 | echo "include confinc" > confmf |
| 8761 | # We grep out `Entering directory' and `Leaving directory' |
| 8762 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 8763 | # In particular we don't look at `^make:' because GNU make might |
| 8764 | # be invoked under some other name (usually "gmake"), in which |
| 8765 | # case it prints its new name instead of `make'. |
| 8766 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| 8767 | am__include=include |
| 8768 | am__quote= |
| 8769 | _am_result=GNU |
| 8770 | fi |
| 8771 | # Now try BSD make style include. |
| 8772 | if test "$am__include" = "#"; then |
| 8773 | echo '.include "confinc"' > confmf |
| 8774 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 8775 | am__include=.include |
| 8776 | am__quote="\"" |
| 8777 | _am_result=BSD |
| 8778 | fi |
| 8779 | fi |
| 8780 | |
| 8781 | |
| 8782 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 8783 | echo "${ECHO_T}$_am_result" >&6 |
| 8784 | rm -f confinc confmf |
| 8785 | |
| 8786 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 8787 | if test "${enable_dependency_tracking+set}" = set; then |
| 8788 | enableval="$enable_dependency_tracking" |
| 8789 | |
| 8790 | fi; |
| 8791 | if test "x$enable_dependency_tracking" != xno; then |
| 8792 | am_depcomp="$ac_aux_dir/depcomp" |
| 8793 | AMDEPBACKSLASH='\' |
| 8794 | fi |
| 8795 | |
| 8796 | |
| 8797 | if test "x$enable_dependency_tracking" != xno; then |
| 8798 | AMDEP_TRUE= |
| 8799 | AMDEP_FALSE='#' |
| 8800 | else |
| 8801 | AMDEP_TRUE='#' |
| 8802 | AMDEP_FALSE= |
| 8803 | fi |
| 8804 | |
| 8805 | |
| 8806 | |
| 8807 | # test to see if srcdir already configured |
| 8808 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 8809 | test -f $srcdir/config.status; then |
| 8810 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 8811 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 8812 | { (exit 1); exit 1; }; } |
| 8813 | fi |
| 8814 | |
| 8815 | # Define the identity of the package. |
| 8816 | PACKAGE=openggsn |
| 8817 | VERSION=0.52 |
| 8818 | |
| 8819 | |
| 8820 | cat >>confdefs.h <<_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8821 | #define PACKAGE "$PACKAGE" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8822 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8823 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8824 | |
| 8825 | cat >>confdefs.h <<_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8826 | #define VERSION "$VERSION" |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8827 | _ACEOF |
| 8828 | |
| 8829 | # Some tools Automake needs. |
| 8830 | |
| 8831 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8832 | |
| 8833 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8834 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8835 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8836 | |
| 8837 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 8838 | |
| 8839 | |
| 8840 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 8841 | |
| 8842 | |
| 8843 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 8844 | |
| 8845 | |
| 8846 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 8847 | |
| 8848 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 8849 | |
| 8850 | # Installed binaries are usually stripped using `strip' when the user |
| 8851 | # run `make install-strip'. However `strip' might not be the right |
| 8852 | # tool to use in cross-compilation environments, therefore Automake |
| 8853 | # will honor the `STRIP' environment variable to overrule this program. |
| 8854 | if test "$cross_compiling" != no; then |
| 8855 | if test -n "$ac_tool_prefix"; then |
| 8856 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 8857 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 8858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8860 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 8861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8862 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8863 | if test -n "$STRIP"; then |
| 8864 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 8865 | else |
| 8866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8867 | for as_dir in $PATH |
| 8868 | do |
| 8869 | IFS=$as_save_IFS |
| 8870 | test -z "$as_dir" && as_dir=. |
| 8871 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8873 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 8874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8875 | break 2 |
| 8876 | fi |
| 8877 | done |
| 8878 | done |
| 8879 | |
| 8880 | fi |
| 8881 | fi |
| 8882 | STRIP=$ac_cv_prog_STRIP |
| 8883 | if test -n "$STRIP"; then |
| 8884 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 8885 | echo "${ECHO_T}$STRIP" >&6 |
| 8886 | else |
| 8887 | echo "$as_me:$LINENO: result: no" >&5 |
| 8888 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8889 | fi |
| 8890 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8891 | fi |
| 8892 | if test -z "$ac_cv_prog_STRIP"; then |
| 8893 | ac_ct_STRIP=$STRIP |
| 8894 | # Extract the first word of "strip", so it can be a program name with args. |
| 8895 | set dummy strip; ac_word=$2 |
| 8896 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8898 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 8899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8900 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8901 | if test -n "$ac_ct_STRIP"; then |
| 8902 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 8903 | else |
| 8904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8905 | for as_dir in $PATH |
| 8906 | do |
| 8907 | IFS=$as_save_IFS |
| 8908 | test -z "$as_dir" && as_dir=. |
| 8909 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8911 | ac_cv_prog_ac_ct_STRIP="strip" |
| 8912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8913 | break 2 |
| 8914 | fi |
| 8915 | done |
| 8916 | done |
| 8917 | |
| 8918 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 8919 | fi |
| 8920 | fi |
| 8921 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 8922 | if test -n "$ac_ct_STRIP"; then |
| 8923 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 8924 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 8925 | else |
| 8926 | echo "$as_me:$LINENO: result: no" >&5 |
| 8927 | echo "${ECHO_T}no" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8928 | fi |
| 8929 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8930 | STRIP=$ac_ct_STRIP |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8931 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8932 | STRIP="$ac_cv_prog_STRIP" |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8933 | fi |
| 8934 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8935 | fi |
| 8936 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 8937 | |
| 8938 | # We need awk for the "check" target. The system "awk" is bad on |
| 8939 | # some platforms. |
| 8940 | |
| 8941 | |
| 8942 | depcc="$CC" am_compiler_list= |
| 8943 | |
| 8944 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 8945 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 8946 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 8947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 8948 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 8949 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 8950 | # We make a subdir and do the tests there. Otherwise we can end up |
| 8951 | # making bogus files that we don't know about and never remove. For |
| 8952 | # instance it was reported that on HP-UX the gcc test will end up |
| 8953 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 8954 | # in D'. |
| 8955 | mkdir conftest.dir |
| 8956 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 8957 | # using a relative directory. |
| 8958 | cp "$am_depcomp" conftest.dir |
| 8959 | cd conftest.dir |
| 8960 | |
| 8961 | am_cv_CC_dependencies_compiler_type=none |
| 8962 | if test "$am_compiler_list" = ""; then |
| 8963 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 8964 | fi |
| 8965 | for depmode in $am_compiler_list; do |
| 8966 | # We need to recreate these files for each test, as the compiler may |
| 8967 | # overwrite some of them when testing with obscure command lines. |
| 8968 | # This happens at least with the AIX C compiler. |
| 8969 | echo '#include "conftest.h"' > conftest.c |
| 8970 | echo 'int i;' > conftest.h |
| 8971 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 8972 | |
| 8973 | case $depmode in |
| 8974 | nosideeffect) |
| 8975 | # after this tag, mechanisms are not by side-effect, so they'll |
| 8976 | # only be used when explicitly requested |
| 8977 | if test "x$enable_dependency_tracking" = xyes; then |
| 8978 | continue |
| 8979 | else |
| 8980 | break |
| 8981 | fi |
| 8982 | ;; |
| 8983 | none) break ;; |
| 8984 | esac |
| 8985 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 8986 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 8987 | # handle `-M -o', and we need to detect this. |
| 8988 | if depmode=$depmode \ |
| 8989 | source=conftest.c object=conftest.o \ |
| 8990 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 8991 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 8992 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 8993 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 8994 | am_cv_CC_dependencies_compiler_type=$depmode |
| 8995 | break |
| 8996 | fi |
| 8997 | done |
| 8998 | |
| 8999 | cd .. |
| 9000 | rm -rf conftest.dir |
| 9001 | else |
| 9002 | am_cv_CC_dependencies_compiler_type=none |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9003 | fi |
| 9004 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9005 | fi |
| 9006 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 9007 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 9008 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 9009 | |
| 9010 | |
| 9011 | depcc="$CXX" am_compiler_list= |
| 9012 | |
| 9013 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 9014 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 9015 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 9016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9017 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9018 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 9019 | # We make a subdir and do the tests there. Otherwise we can end up |
| 9020 | # making bogus files that we don't know about and never remove. For |
| 9021 | # instance it was reported that on HP-UX the gcc test will end up |
| 9022 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 9023 | # in D'. |
| 9024 | mkdir conftest.dir |
| 9025 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 9026 | # using a relative directory. |
| 9027 | cp "$am_depcomp" conftest.dir |
| 9028 | cd conftest.dir |
| 9029 | |
| 9030 | am_cv_CXX_dependencies_compiler_type=none |
| 9031 | if test "$am_compiler_list" = ""; then |
| 9032 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 9033 | fi |
| 9034 | for depmode in $am_compiler_list; do |
| 9035 | # We need to recreate these files for each test, as the compiler may |
| 9036 | # overwrite some of them when testing with obscure command lines. |
| 9037 | # This happens at least with the AIX C compiler. |
| 9038 | echo '#include "conftest.h"' > conftest.c |
| 9039 | echo 'int i;' > conftest.h |
| 9040 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 9041 | |
| 9042 | case $depmode in |
| 9043 | nosideeffect) |
| 9044 | # after this tag, mechanisms are not by side-effect, so they'll |
| 9045 | # only be used when explicitly requested |
| 9046 | if test "x$enable_dependency_tracking" = xyes; then |
| 9047 | continue |
| 9048 | else |
| 9049 | break |
| 9050 | fi |
| 9051 | ;; |
| 9052 | none) break ;; |
| 9053 | esac |
| 9054 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 9055 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 9056 | # handle `-M -o', and we need to detect this. |
| 9057 | if depmode=$depmode \ |
| 9058 | source=conftest.c object=conftest.o \ |
| 9059 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 9060 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 9061 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 9062 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 9063 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 9064 | break |
| 9065 | fi |
| 9066 | done |
| 9067 | |
| 9068 | cd .. |
| 9069 | rm -rf conftest.dir |
| 9070 | else |
| 9071 | am_cv_CXX_dependencies_compiler_type=none |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9072 | fi |
| 9073 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9074 | fi |
| 9075 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 9076 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 9077 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9078 | |
| 9079 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9080 | |
| 9081 | |
| 9082 | ac_config_files="$ac_config_files Makefile doc/Makefile ggsn/Makefile gtp/Makefile intl/Makefile po/Makefile sgsnemu/Makefile src/Makefile tests/Makefile" |
| 9083 | |
| 9084 | cat >confcache <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9085 | # This file is a shell script that caches the results of configure |
| 9086 | # tests run on this system so they can be shared between configure |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9087 | # scripts and configure runs, see configure's option --config-cache. |
| 9088 | # It is not useful on other systems. If it contains results you don't |
| 9089 | # want to keep, you may remove or edit it. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9090 | # |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9091 | # config.status only pays attention to the cache file if you give it |
| 9092 | # the --recheck option to rerun configure. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9093 | # |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9094 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 9095 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9096 | # following values. |
| 9097 | |
| 9098 | _ACEOF |
| 9099 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9100 | # The following way of writing the cache mishandles newlines in values, |
| 9101 | # but we know of no workaround that is simple, portable, and efficient. |
| 9102 | # So, don't put newlines in cache variables' values. |
| 9103 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 9104 | # 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] | 9105 | { |
| 9106 | (set) 2>&1 | |
| 9107 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9108 | *ac_space=\ *) |
| 9109 | # `set' does not quote correctly, so add quotes (double-quote |
| 9110 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9111 | sed -n \ |
| 9112 | "s/'/'\\\\''/g; |
| 9113 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 9114 | ;; |
| 9115 | *) |
| 9116 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9117 | sed -n \ |
| 9118 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 9119 | ;; |
| 9120 | esac; |
| 9121 | } | |
| 9122 | sed ' |
| 9123 | t clear |
| 9124 | : clear |
| 9125 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9126 | t end |
| 9127 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9128 | : end' >>confcache |
| 9129 | if cmp -s $cache_file confcache; then :; else |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9130 | if test -w $cache_file; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9131 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9132 | cat confcache >$cache_file |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9133 | else |
| 9134 | echo "not updating unwritable cache $cache_file" |
| 9135 | fi |
| 9136 | fi |
| 9137 | rm -f confcache |
| 9138 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9139 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 9140 | # Let make expand exec_prefix. |
| 9141 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 9142 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9143 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 9144 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 9145 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9146 | # (actually we leave an empty line to preserve line numbers). |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9147 | if test "x$srcdir" = x.; then |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9148 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 9149 | s/:*\$(srcdir):*/:/; |
| 9150 | s/:*\${srcdir}:*/:/; |
| 9151 | s/:*@srcdir@:*/:/; |
| 9152 | s/^\([^=]*=[ ]*\):*/\1/; |
| 9153 | s/:*$//; |
| 9154 | s/^[^=]*=[ ]*$//; |
| 9155 | }' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9156 | fi |
| 9157 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9158 | DEFS=-DHAVE_CONFIG_H |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9159 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9160 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 9161 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 9162 | Usually this means the macro was only invoked conditionally." >&5 |
| 9163 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 9164 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9165 | { (exit 1); exit 1; }; } |
| 9166 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9167 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9168 | : ${CONFIG_STATUS=./config.status} |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9169 | ac_clean_files_save=$ac_clean_files |
| 9170 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 9171 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 9172 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 9173 | cat >$CONFIG_STATUS <<_ACEOF |
| 9174 | #! $SHELL |
| 9175 | # Generated by $as_me. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9176 | # Run this file to recreate the current configuration. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9177 | # Compiler output produced by configure, useful for debugging |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9178 | # configure, is in config.log if it exists. |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9179 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9180 | debug=false |
| 9181 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 9182 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9183 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9184 | cat >>$CONFIG_STATUS <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9185 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9186 | ## --------------------- ## |
| 9187 | ## M4sh Initialization. ## |
| 9188 | ## --------------------- ## |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9189 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9190 | # Be Bourne compatible |
| 9191 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 9192 | emulate sh |
| 9193 | NULLCMD=: |
| 9194 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 9195 | set -o posix |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9196 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9197 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9198 | # NLS nuisances. |
| 9199 | # Support unset when possible. |
| 9200 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 9201 | as_unset=unset |
| 9202 | else |
| 9203 | as_unset=false |
| 9204 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9205 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9206 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 9207 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 9208 | { LANG=C; export LANG; } |
| 9209 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 9210 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 9211 | { LC_ALL=C; export LC_ALL; } |
| 9212 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 9213 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 9214 | { LC_TIME=C; export LC_TIME; } |
| 9215 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 9216 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 9217 | { LC_CTYPE=C; export LC_CTYPE; } |
| 9218 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 9219 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 9220 | { LANGUAGE=C; export LANGUAGE; } |
| 9221 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 9222 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 9223 | { LC_COLLATE=C; export LC_COLLATE; } |
| 9224 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 9225 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 9226 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 9227 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 9228 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 9229 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 9230 | |
| 9231 | |
| 9232 | # Name of the executable. |
| 9233 | as_me=`(basename "$0") 2>/dev/null || |
| 9234 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 9235 | X"$0" : 'X\(//\)$' \| \ |
| 9236 | X"$0" : 'X\(/\)$' \| \ |
| 9237 | . : '\(.\)' 2>/dev/null || |
| 9238 | echo X/"$0" | |
| 9239 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 9240 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 9241 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 9242 | s/.*/./; q'` |
| 9243 | |
| 9244 | # PATH needs CR, and LINENO needs CR and PATH. |
| 9245 | # Avoid depending upon Character Ranges. |
| 9246 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 9247 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 9248 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 9249 | as_cr_digits='0123456789' |
| 9250 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 9251 | |
| 9252 | # The user is always right. |
| 9253 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9254 | echo "#! /bin/sh" >conftest.sh |
| 9255 | echo "exit 0" >>conftest.sh |
| 9256 | chmod +x conftest.sh |
| 9257 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 9258 | PATH_SEPARATOR=';' |
| 9259 | else |
| 9260 | PATH_SEPARATOR=: |
| 9261 | fi |
| 9262 | rm -f conftest.sh |
| 9263 | fi |
| 9264 | |
| 9265 | |
| 9266 | as_lineno_1=$LINENO |
| 9267 | as_lineno_2=$LINENO |
| 9268 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9269 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9270 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 9271 | # Find who we are. Look in the path if we contain no path at all |
| 9272 | # relative or not. |
| 9273 | case $0 in |
| 9274 | *[\\/]* ) as_myself=$0 ;; |
| 9275 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9276 | for as_dir in $PATH |
| 9277 | do |
| 9278 | IFS=$as_save_IFS |
| 9279 | test -z "$as_dir" && as_dir=. |
| 9280 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 9281 | done |
| 9282 | |
| 9283 | ;; |
| 9284 | esac |
| 9285 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9286 | # in which case we are not to be found in the path. |
| 9287 | if test "x$as_myself" = x; then |
| 9288 | as_myself=$0 |
| 9289 | fi |
| 9290 | if test ! -f "$as_myself"; then |
| 9291 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 9292 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 9293 | { (exit 1); exit 1; }; } |
| 9294 | fi |
| 9295 | case $CONFIG_SHELL in |
| 9296 | '') |
| 9297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9298 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 9299 | do |
| 9300 | IFS=$as_save_IFS |
| 9301 | test -z "$as_dir" && as_dir=. |
| 9302 | for as_base in sh bash ksh sh5; do |
| 9303 | case $as_dir in |
| 9304 | /*) |
| 9305 | if ("$as_dir/$as_base" -c ' |
| 9306 | as_lineno_1=$LINENO |
| 9307 | as_lineno_2=$LINENO |
| 9308 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9309 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9310 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 9311 | CONFIG_SHELL=$as_dir/$as_base |
| 9312 | export CONFIG_SHELL |
| 9313 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 9314 | fi;; |
| 9315 | esac |
| 9316 | done |
| 9317 | done |
| 9318 | ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9319 | esac |
| 9320 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9321 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 9322 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 9323 | # line-number line before each line; the second 'sed' does the real |
| 9324 | # work. The second script uses 'N' to pair each line-number line |
| 9325 | # with the numbered line, and appends trailing '-' during |
| 9326 | # substitution so that $LINENO is not a special case at line end. |
| 9327 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 9328 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 9329 | sed '=' <$as_myself | |
| 9330 | sed ' |
| 9331 | N |
| 9332 | s,$,-, |
| 9333 | : loop |
| 9334 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 9335 | t loop |
| 9336 | s,-$,, |
| 9337 | s,^['$as_cr_digits']*\n,, |
| 9338 | ' >$as_me.lineno && |
| 9339 | chmod +x $as_me.lineno || |
| 9340 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 9341 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 9342 | { (exit 1); exit 1; }; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9343 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9344 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 9345 | # (the dirname of $[0] is not the place where we might find the |
| 9346 | # original and so on. Autoconf is especially sensible to this). |
| 9347 | . ./$as_me.lineno |
| 9348 | # Exit status is that of the last command. |
| 9349 | exit |
| 9350 | } |
| 9351 | |
| 9352 | |
| 9353 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 9354 | *c*,-n*) ECHO_N= ECHO_C=' |
| 9355 | ' ECHO_T=' ' ;; |
| 9356 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 9357 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 9358 | esac |
| 9359 | |
| 9360 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9361 | as_expr=expr |
| 9362 | else |
| 9363 | as_expr=false |
| 9364 | fi |
| 9365 | |
| 9366 | rm -f conf$$ conf$$.exe conf$$.file |
| 9367 | echo >conf$$.file |
| 9368 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9369 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 9370 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 9371 | if test -f conf$$.exe; then |
| 9372 | # Don't use ln at all; we don't have any links |
| 9373 | as_ln_s='cp -p' |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9374 | else |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9375 | as_ln_s='ln -s' |
| 9376 | fi |
| 9377 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9378 | as_ln_s=ln |
| 9379 | else |
| 9380 | as_ln_s='cp -p' |
| 9381 | fi |
| 9382 | rm -f conf$$ conf$$.exe conf$$.file |
| 9383 | |
| 9384 | as_executable_p="test -f" |
| 9385 | |
| 9386 | # Sed expression to map a string onto a valid CPP name. |
| 9387 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 9388 | |
| 9389 | # Sed expression to map a string onto a valid variable name. |
| 9390 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 9391 | |
| 9392 | |
| 9393 | # IFS |
| 9394 | # We need space, tab and new line, in precisely that order. |
| 9395 | as_nl=' |
| 9396 | ' |
| 9397 | IFS=" $as_nl" |
| 9398 | |
| 9399 | # CDPATH. |
| 9400 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 9401 | |
| 9402 | exec 6>&1 |
| 9403 | |
| 9404 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 9405 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9406 | # values after options handling. Logging --version etc. is OK. |
| 9407 | exec 5>>config.log |
| 9408 | { |
| 9409 | echo |
| 9410 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9411 | ## Running $as_me. ## |
| 9412 | _ASBOX |
| 9413 | } >&5 |
| 9414 | cat >&5 <<_CSEOF |
| 9415 | |
| 9416 | This file was extended by openggsn $as_me 0.52, which was |
| 9417 | generated by GNU Autoconf 2.53. Invocation command line was |
| 9418 | |
| 9419 | CONFIG_FILES = $CONFIG_FILES |
| 9420 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9421 | CONFIG_LINKS = $CONFIG_LINKS |
| 9422 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9423 | $ $0 $@ |
| 9424 | |
| 9425 | _CSEOF |
| 9426 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 9427 | echo >&5 |
| 9428 | _ACEOF |
| 9429 | |
| 9430 | # Files that config.status was made for. |
| 9431 | if test -n "$ac_config_files"; then |
| 9432 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 9433 | fi |
| 9434 | |
| 9435 | if test -n "$ac_config_headers"; then |
| 9436 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 9437 | fi |
| 9438 | |
| 9439 | if test -n "$ac_config_links"; then |
| 9440 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 9441 | fi |
| 9442 | |
| 9443 | if test -n "$ac_config_commands"; then |
| 9444 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9445 | fi |
| 9446 | |
| 9447 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9448 | |
| 9449 | ac_cs_usage="\ |
| 9450 | \`$as_me' instantiates files from templates according to the |
| 9451 | current configuration. |
| 9452 | |
| 9453 | Usage: $0 [OPTIONS] [FILE]... |
| 9454 | |
| 9455 | -h, --help print this help, then exit |
| 9456 | -V, --version print version number, then exit |
| 9457 | -d, --debug don't remove temporary files |
| 9458 | --recheck update $as_me by reconfiguring in the same conditions |
| 9459 | --file=FILE[:TEMPLATE] |
| 9460 | instantiate the configuration file FILE |
| 9461 | --header=FILE[:TEMPLATE] |
| 9462 | instantiate the configuration header FILE |
| 9463 | |
| 9464 | Configuration files: |
| 9465 | $config_files |
| 9466 | |
| 9467 | Configuration headers: |
| 9468 | $config_headers |
| 9469 | |
| 9470 | Configuration commands: |
| 9471 | $config_commands |
| 9472 | |
| 9473 | Report bugs to <bug-autoconf@gnu.org>." |
| 9474 | _ACEOF |
| 9475 | |
| 9476 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9477 | ac_cs_version="\\ |
| 9478 | openggsn config.status 0.52 |
| 9479 | configured by $0, generated by GNU Autoconf 2.53, |
| 9480 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 9481 | |
| 9482 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 9483 | Free Software Foundation, Inc. |
| 9484 | This config.status script is free software; the Free Software Foundation |
| 9485 | gives unlimited permission to copy, distribute and modify it." |
| 9486 | srcdir=$srcdir |
| 9487 | INSTALL="$INSTALL" |
| 9488 | _ACEOF |
| 9489 | |
| 9490 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9491 | # If no file are specified by the user, then we need to provide default |
| 9492 | # value. By we need to know if files were specified by the user. |
| 9493 | ac_need_defaults=: |
| 9494 | while test $# != 0 |
| 9495 | do |
| 9496 | case $1 in |
| 9497 | --*=*) |
| 9498 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9499 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 9500 | shift |
| 9501 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 9502 | shift |
| 9503 | ;; |
| 9504 | -*);; |
| 9505 | *) # This is not an option, so the user has probably given explicit |
| 9506 | # arguments. |
| 9507 | ac_need_defaults=false;; |
| 9508 | esac |
| 9509 | |
| 9510 | case $1 in |
| 9511 | # Handling of the options. |
| 9512 | _ACEOF |
| 9513 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9514 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 9515 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 9516 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 9517 | _ACEOF |
| 9518 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9519 | --version | --vers* | -V ) |
| 9520 | echo "$ac_cs_version"; exit 0 ;; |
| 9521 | --he | --h) |
| 9522 | # Conflict between --help and --header |
| 9523 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 9524 | Try \`$0 --help' for more information." >&5 |
| 9525 | echo "$as_me: error: ambiguous option: $1 |
| 9526 | Try \`$0 --help' for more information." >&2;} |
| 9527 | { (exit 1); exit 1; }; };; |
| 9528 | --help | --hel | -h ) |
| 9529 | echo "$ac_cs_usage"; exit 0 ;; |
| 9530 | --debug | --d* | -d ) |
| 9531 | debug=: ;; |
| 9532 | --file | --fil | --fi | --f ) |
| 9533 | shift |
| 9534 | CONFIG_FILES="$CONFIG_FILES $1" |
| 9535 | ac_need_defaults=false;; |
| 9536 | --header | --heade | --head | --hea ) |
| 9537 | shift |
| 9538 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 9539 | ac_need_defaults=false;; |
| 9540 | |
| 9541 | # This is an error. |
| 9542 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 9543 | Try \`$0 --help' for more information." >&5 |
| 9544 | echo "$as_me: error: unrecognized option: $1 |
| 9545 | Try \`$0 --help' for more information." >&2;} |
| 9546 | { (exit 1); exit 1; }; } ;; |
| 9547 | |
| 9548 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9549 | |
| 9550 | esac |
| 9551 | shift |
| 9552 | done |
| 9553 | |
| 9554 | _ACEOF |
| 9555 | |
| 9556 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9557 | # |
| 9558 | # INIT-COMMANDS section. |
| 9559 | # |
| 9560 | |
| 9561 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 9562 | |
| 9563 | _ACEOF |
| 9564 | |
| 9565 | |
| 9566 | |
| 9567 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9568 | for ac_config_target in $ac_config_targets |
| 9569 | do |
| 9570 | case "$ac_config_target" in |
| 9571 | # Handling of arguments. |
| 9572 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 9573 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 9574 | "ggsn/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggsn/Makefile" ;; |
| 9575 | "gtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtp/Makefile" ;; |
| 9576 | "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; |
| 9577 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; |
| 9578 | "sgsnemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgsnemu/Makefile" ;; |
| 9579 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 9580 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 9581 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 9582 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 9583 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 9584 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9585 | { (exit 1); exit 1; }; };; |
| 9586 | esac |
| 9587 | done |
| 9588 | |
| 9589 | # If the user did not use the arguments to specify the items to instantiate, |
| 9590 | # then the envvar interface is used. Set only those that are not. |
| 9591 | # We use the long form for the default assignment because of an extremely |
| 9592 | # bizarre bug on SunOS 4.1.3. |
| 9593 | if $ac_need_defaults; then |
| 9594 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 9595 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 9596 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 9597 | fi |
| 9598 | |
| 9599 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9600 | $debug || |
| 9601 | { |
| 9602 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9603 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9604 | } |
| 9605 | |
| 9606 | # Create a (secure) tmp directory for tmp files. |
| 9607 | : ${TMPDIR=/tmp} |
| 9608 | { |
| 9609 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 9610 | test -n "$tmp" && test -d "$tmp" |
| 9611 | } || |
| 9612 | { |
| 9613 | tmp=$TMPDIR/cs$$-$RANDOM |
| 9614 | (umask 077 && mkdir $tmp) |
| 9615 | } || |
| 9616 | { |
| 9617 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 9618 | { (exit 1); exit 1; } |
| 9619 | } |
| 9620 | |
| 9621 | _ACEOF |
| 9622 | |
| 9623 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9624 | |
| 9625 | # |
| 9626 | # CONFIG_FILES section. |
| 9627 | # |
| 9628 | |
| 9629 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 9630 | # This happens for instance when ./config.status config.h |
| 9631 | if test -n "\$CONFIG_FILES"; then |
| 9632 | # Protect against being on the right side of a sed subst in config.status. |
| 9633 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9634 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9635 | s,@SHELL@,$SHELL,;t t |
| 9636 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9637 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9638 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9639 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9640 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9641 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 9642 | s,@exec_prefix@,$exec_prefix,;t t |
| 9643 | s,@prefix@,$prefix,;t t |
| 9644 | s,@program_transform_name@,$program_transform_name,;t t |
| 9645 | s,@bindir@,$bindir,;t t |
| 9646 | s,@sbindir@,$sbindir,;t t |
| 9647 | s,@libexecdir@,$libexecdir,;t t |
| 9648 | s,@datadir@,$datadir,;t t |
| 9649 | s,@sysconfdir@,$sysconfdir,;t t |
| 9650 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 9651 | s,@localstatedir@,$localstatedir,;t t |
| 9652 | s,@libdir@,$libdir,;t t |
| 9653 | s,@includedir@,$includedir,;t t |
| 9654 | s,@oldincludedir@,$oldincludedir,;t t |
| 9655 | s,@infodir@,$infodir,;t t |
| 9656 | s,@mandir@,$mandir,;t t |
| 9657 | s,@build_alias@,$build_alias,;t t |
| 9658 | s,@host_alias@,$host_alias,;t t |
| 9659 | s,@target_alias@,$target_alias,;t t |
| 9660 | s,@DEFS@,$DEFS,;t t |
| 9661 | s,@ECHO_C@,$ECHO_C,;t t |
| 9662 | s,@ECHO_N@,$ECHO_N,;t t |
| 9663 | s,@ECHO_T@,$ECHO_T,;t t |
| 9664 | s,@LIBS@,$LIBS,;t t |
| 9665 | s,@CC@,$CC,;t t |
| 9666 | s,@CFLAGS@,$CFLAGS,;t t |
| 9667 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 9668 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9669 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 9670 | s,@EXEEXT@,$EXEEXT,;t t |
| 9671 | s,@OBJEXT@,$OBJEXT,;t t |
| 9672 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 9673 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 9674 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 9675 | s,@AWK@,$AWK,;t t |
| 9676 | s,@CPP@,$CPP,;t t |
| 9677 | s,@CXX@,$CXX,;t t |
| 9678 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 9679 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 9680 | s,@RANLIB@,$RANLIB,;t t |
| 9681 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 9682 | s,@build@,$build,;t t |
| 9683 | s,@build_cpu@,$build_cpu,;t t |
| 9684 | s,@build_vendor@,$build_vendor,;t t |
| 9685 | s,@build_os@,$build_os,;t t |
| 9686 | s,@host@,$host,;t t |
| 9687 | s,@host_cpu@,$host_cpu,;t t |
| 9688 | s,@host_vendor@,$host_vendor,;t t |
| 9689 | s,@host_os@,$host_os,;t t |
| 9690 | s,@LN_S@,$LN_S,;t t |
| 9691 | s,@ECHO@,$ECHO,;t t |
| 9692 | s,@STRIP@,$STRIP,;t t |
| 9693 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 9694 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 9695 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 9696 | s,@PACKAGE@,$PACKAGE,;t t |
| 9697 | s,@VERSION@,$VERSION,;t t |
| 9698 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 9699 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 9700 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 9701 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 9702 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 9703 | s,@AMTAR@,$AMTAR,;t t |
| 9704 | s,@install_sh@,$install_sh,;t t |
| 9705 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 9706 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 9707 | s,@DEPDIR@,$DEPDIR,;t t |
| 9708 | s,@am__include@,$am__include,;t t |
| 9709 | s,@am__quote@,$am__quote,;t t |
| 9710 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 9711 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 9712 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 9713 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 9714 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
| 9715 | CEOF |
| 9716 | |
| 9717 | _ACEOF |
| 9718 | |
| 9719 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9720 | # Split the substitutions into bite-sized pieces for seds with |
| 9721 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 9722 | ac_max_sed_lines=48 |
| 9723 | ac_sed_frag=1 # Number of current file. |
| 9724 | ac_beg=1 # First line for current file. |
| 9725 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 9726 | ac_more_lines=: |
| 9727 | ac_sed_cmds= |
| 9728 | while $ac_more_lines; do |
| 9729 | if test $ac_beg -gt 1; then |
| 9730 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9731 | else |
| 9732 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9733 | fi |
| 9734 | if test ! -s $tmp/subs.frag; then |
| 9735 | ac_more_lines=false |
| 9736 | else |
| 9737 | # The purpose of the label and of the branching condition is to |
| 9738 | # speed up the sed processing (if there are no `@' at all, there |
| 9739 | # is no need to browse any of the substitutions). |
| 9740 | # These are the two extra sed commands mentioned above. |
| 9741 | (echo ':t |
| 9742 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 9743 | if test -z "$ac_sed_cmds"; then |
| 9744 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 9745 | else |
| 9746 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 9747 | fi |
| 9748 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 9749 | ac_beg=$ac_end |
| 9750 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 9751 | fi |
| 9752 | done |
| 9753 | if test -z "$ac_sed_cmds"; then |
| 9754 | ac_sed_cmds=cat |
| 9755 | fi |
| 9756 | fi # test -n "$CONFIG_FILES" |
| 9757 | |
| 9758 | _ACEOF |
| 9759 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9760 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 9761 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9762 | case $ac_file in |
| 9763 | - | *:- | *:-:* ) # input from stdin |
| 9764 | cat >$tmp/stdin |
| 9765 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9766 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9767 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9768 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9769 | * ) ac_file_in=$ac_file.in ;; |
| 9770 | esac |
| 9771 | |
| 9772 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 9773 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 9774 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9775 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9776 | X"$ac_file" : 'X\(//\)$' \| \ |
| 9777 | X"$ac_file" : 'X\(/\)' \| \ |
| 9778 | . : '\(.\)' 2>/dev/null || |
| 9779 | echo X"$ac_file" | |
| 9780 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9781 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9782 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9783 | /^X\(\/\).*/{ s//\1/; q; } |
| 9784 | s/.*/./; q'` |
| 9785 | { case "$ac_dir" in |
| 9786 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 9787 | *) as_incr_dir=.;; |
| 9788 | esac |
| 9789 | as_dummy="$ac_dir" |
| 9790 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 9791 | case $as_mkdir_dir in |
| 9792 | # Skip DOS drivespec |
| 9793 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 9794 | *) |
| 9795 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 9796 | test -d "$as_incr_dir" || |
| 9797 | mkdir "$as_incr_dir" || |
| 9798 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 9799 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 9800 | { (exit 1); exit 1; }; } |
| 9801 | ;; |
| 9802 | esac |
| 9803 | done; } |
| 9804 | |
| 9805 | ac_builddir=. |
| 9806 | |
| 9807 | if test "$ac_dir" != .; then |
| 9808 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 9809 | # A "../" for each directory in $ac_dir_suffix. |
| 9810 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 9811 | else |
| 9812 | ac_dir_suffix= ac_top_builddir= |
| 9813 | fi |
| 9814 | |
| 9815 | case $srcdir in |
| 9816 | .) # No --srcdir option. We are building in place. |
| 9817 | ac_srcdir=. |
| 9818 | if test -z "$ac_top_builddir"; then |
| 9819 | ac_top_srcdir=. |
| 9820 | else |
| 9821 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 9822 | fi ;; |
| 9823 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 9824 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 9825 | ac_top_srcdir=$srcdir ;; |
| 9826 | *) # Relative path. |
| 9827 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 9828 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 9829 | esac |
| 9830 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 9831 | # absolute. |
| 9832 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 9833 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 9834 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 9835 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 9836 | |
| 9837 | |
| 9838 | case $INSTALL in |
| 9839 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 9840 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 9841 | esac |
| 9842 | |
| 9843 | if test x"$ac_file" != x-; then |
| 9844 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 9845 | echo "$as_me: creating $ac_file" >&6;} |
| 9846 | rm -f "$ac_file" |
| 9847 | fi |
| 9848 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9849 | # use $as_me), people would be surprised to read: |
| 9850 | # /* config.h. Generated by config.status. */ |
| 9851 | if test x"$ac_file" = x-; then |
| 9852 | configure_input= |
| 9853 | else |
| 9854 | configure_input="$ac_file. " |
| 9855 | fi |
| 9856 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 9857 | sed 's,.*/,,'` by configure." |
| 9858 | |
| 9859 | # First look for the input files in the build tree, otherwise in the |
| 9860 | # src tree. |
| 9861 | ac_file_inputs=`IFS=: |
| 9862 | for f in $ac_file_in; do |
| 9863 | case $f in |
| 9864 | -) echo $tmp/stdin ;; |
| 9865 | [\\/$]*) |
| 9866 | # Absolute (can't be DOS-style, as IFS=:) |
| 9867 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9868 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9869 | { (exit 1); exit 1; }; } |
| 9870 | echo $f;; |
| 9871 | *) # Relative |
| 9872 | if test -f "$f"; then |
| 9873 | # Build tree |
| 9874 | echo $f |
| 9875 | elif test -f "$srcdir/$f"; then |
| 9876 | # Source tree |
| 9877 | echo $srcdir/$f |
| 9878 | else |
| 9879 | # /dev/null tree |
| 9880 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9881 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9882 | { (exit 1); exit 1; }; } |
| 9883 | fi;; |
| 9884 | esac |
| 9885 | done` || { (exit 1); exit 1; } |
| 9886 | _ACEOF |
| 9887 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9888 | sed "$ac_vpsub |
| 9889 | $extrasub |
| 9890 | _ACEOF |
| 9891 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9892 | :t |
| 9893 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 9894 | s,@configure_input@,$configure_input,;t t |
| 9895 | s,@srcdir@,$ac_srcdir,;t t |
| 9896 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 9897 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 9898 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 9899 | s,@builddir@,$ac_builddir,;t t |
| 9900 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 9901 | s,@top_builddir@,$ac_top_builddir,;t t |
| 9902 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 9903 | s,@INSTALL@,$ac_INSTALL,;t t |
| 9904 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 9905 | rm -f $tmp/stdin |
| 9906 | if test x"$ac_file" != x-; then |
| 9907 | mv $tmp/out $ac_file |
| 9908 | else |
| 9909 | cat $tmp/out |
| 9910 | rm -f $tmp/out |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 9911 | fi |
| 9912 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 9913 | done |
| 9914 | _ACEOF |
| 9915 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9916 | |
| 9917 | # |
| 9918 | # CONFIG_HEADER section. |
| 9919 | # |
| 9920 | |
| 9921 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 9922 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 9923 | # |
| 9924 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 9925 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 9926 | ac_dB='[ ].*$,\1#\2' |
| 9927 | ac_dC=' ' |
| 9928 | ac_dD=',;t' |
| 9929 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 9930 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 9931 | ac_uB='$,\1#\2define\3' |
| 9932 | ac_uC=' ' |
| 9933 | ac_uD=',;t' |
| 9934 | |
| 9935 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 9936 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9937 | case $ac_file in |
| 9938 | - | *:- | *:-:* ) # input from stdin |
| 9939 | cat >$tmp/stdin |
| 9940 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9941 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9942 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9943 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9944 | * ) ac_file_in=$ac_file.in ;; |
| 9945 | esac |
| 9946 | |
| 9947 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 9948 | echo "$as_me: creating $ac_file" >&6;} |
| 9949 | |
| 9950 | # First look for the input files in the build tree, otherwise in the |
| 9951 | # src tree. |
| 9952 | ac_file_inputs=`IFS=: |
| 9953 | for f in $ac_file_in; do |
| 9954 | case $f in |
| 9955 | -) echo $tmp/stdin ;; |
| 9956 | [\\/$]*) |
| 9957 | # Absolute (can't be DOS-style, as IFS=:) |
| 9958 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9959 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9960 | { (exit 1); exit 1; }; } |
| 9961 | echo $f;; |
| 9962 | *) # Relative |
| 9963 | if test -f "$f"; then |
| 9964 | # Build tree |
| 9965 | echo $f |
| 9966 | elif test -f "$srcdir/$f"; then |
| 9967 | # Source tree |
| 9968 | echo $srcdir/$f |
| 9969 | else |
| 9970 | # /dev/null tree |
| 9971 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9972 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9973 | { (exit 1); exit 1; }; } |
| 9974 | fi;; |
| 9975 | esac |
| 9976 | done` || { (exit 1); exit 1; } |
| 9977 | # Remove the trailing spaces. |
| 9978 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 9979 | |
| 9980 | _ACEOF |
| 9981 | |
| 9982 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 9983 | # `conftest.undefs', that substitutes the proper values into |
| 9984 | # config.h.in to produce config.h. The first handles `#define' |
| 9985 | # templates, and the second `#undef' templates. |
| 9986 | # And first: Protect against being on the right side of a sed subst in |
| 9987 | # config.status. Protect against being in an unquoted here document |
| 9988 | # in config.status. |
| 9989 | rm -f conftest.defines conftest.undefs |
| 9990 | # Using a here document instead of a string reduces the quoting nightmare. |
| 9991 | # Putting comments in sed scripts is not portable. |
| 9992 | # |
| 9993 | # `end' is used to avoid that the second main sed command (meant for |
| 9994 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 9995 | # See the Autoconf documentation for `clear'. |
| 9996 | cat >confdef2sed.sed <<\_ACEOF |
| 9997 | s/[\\&,]/\\&/g |
| 9998 | s,[\\$`],\\&,g |
| 9999 | t clear |
| 10000 | : clear |
| 10001 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 10002 | t end |
| 10003 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 10004 | : end |
| 10005 | _ACEOF |
| 10006 | # If some macros were called several times there might be several times |
| 10007 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 10008 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 10009 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 10010 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 10011 | rm -f confdef2sed.sed |
| 10012 | |
| 10013 | # This sed command replaces #undef with comments. This is necessary, for |
| 10014 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 10015 | # on some systems where configure will not decide to define it. |
| 10016 | cat >>conftest.undefs <<\_ACEOF |
| 10017 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 10018 | _ACEOF |
| 10019 | |
| 10020 | # Break up conftest.defines because some shells have a limit on the size |
| 10021 | # of here documents, and old seds have small limits too (100 cmds). |
| 10022 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 10023 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 10024 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 10025 | echo ' :' >>$CONFIG_STATUS |
| 10026 | rm -f conftest.tail |
| 10027 | while grep . conftest.defines >/dev/null |
| 10028 | do |
| 10029 | # Write a limited-size here document to $tmp/defines.sed. |
| 10030 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 10031 | # Speed up: don't consider the non `#define' lines. |
| 10032 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 10033 | # Work around the forget-to-reset-the-flag bug. |
| 10034 | echo 't clr' >>$CONFIG_STATUS |
| 10035 | echo ': clr' >>$CONFIG_STATUS |
| 10036 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 10037 | echo 'CEOF |
| 10038 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 10039 | rm -f $tmp/in |
| 10040 | mv $tmp/out $tmp/in |
| 10041 | ' >>$CONFIG_STATUS |
| 10042 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 10043 | rm -f conftest.defines |
| 10044 | mv conftest.tail conftest.defines |
| 10045 | done |
| 10046 | rm -f conftest.defines |
| 10047 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 10048 | echo >>$CONFIG_STATUS |
| 10049 | |
| 10050 | # Break up conftest.undefs because some shells have a limit on the size |
| 10051 | # of here documents, and old seds have small limits too (100 cmds). |
| 10052 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 10053 | rm -f conftest.tail |
| 10054 | while grep . conftest.undefs >/dev/null |
| 10055 | do |
| 10056 | # Write a limited-size here document to $tmp/undefs.sed. |
| 10057 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 10058 | # Speed up: don't consider the non `#undef' |
| 10059 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 10060 | # Work around the forget-to-reset-the-flag bug. |
| 10061 | echo 't clr' >>$CONFIG_STATUS |
| 10062 | echo ': clr' >>$CONFIG_STATUS |
| 10063 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 10064 | echo 'CEOF |
| 10065 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 10066 | rm -f $tmp/in |
| 10067 | mv $tmp/out $tmp/in |
| 10068 | ' >>$CONFIG_STATUS |
| 10069 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 10070 | rm -f conftest.undefs |
| 10071 | mv conftest.tail conftest.undefs |
| 10072 | done |
| 10073 | rm -f conftest.undefs |
| 10074 | |
| 10075 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10076 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10077 | # use $as_me), people would be surprised to read: |
| 10078 | # /* config.h. Generated by config.status. */ |
| 10079 | if test x"$ac_file" = x-; then |
| 10080 | echo "/* Generated by configure. */" >$tmp/config.h |
| 10081 | else |
| 10082 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 10083 | fi |
| 10084 | cat $tmp/in >>$tmp/config.h |
| 10085 | rm -f $tmp/in |
| 10086 | if test x"$ac_file" != x-; then |
| 10087 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 10088 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 10089 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 10090 | else |
| 10091 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10092 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10093 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10094 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10095 | X"$ac_file" : 'X\(/\)' \| \ |
| 10096 | . : '\(.\)' 2>/dev/null || |
| 10097 | echo X"$ac_file" | |
| 10098 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10099 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10100 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10101 | /^X\(\/\).*/{ s//\1/; q; } |
| 10102 | s/.*/./; q'` |
| 10103 | { case "$ac_dir" in |
| 10104 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 10105 | *) as_incr_dir=.;; |
| 10106 | esac |
| 10107 | as_dummy="$ac_dir" |
| 10108 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 10109 | case $as_mkdir_dir in |
| 10110 | # Skip DOS drivespec |
| 10111 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 10112 | *) |
| 10113 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 10114 | test -d "$as_incr_dir" || |
| 10115 | mkdir "$as_incr_dir" || |
| 10116 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 10117 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 10118 | { (exit 1); exit 1; }; } |
| 10119 | ;; |
| 10120 | esac |
| 10121 | done; } |
| 10122 | |
| 10123 | rm -f $ac_file |
| 10124 | mv $tmp/config.h $ac_file |
| 10125 | fi |
| 10126 | else |
| 10127 | cat $tmp/config.h |
| 10128 | rm -f $tmp/config.h |
| 10129 | fi |
| 10130 | # Run the commands associated with the file. |
| 10131 | case $ac_file in |
| 10132 | config.h ) # update the timestamp |
| 10133 | echo 'timestamp for config.h' >"./stamp-h1" |
| 10134 | ;; |
| 10135 | esac |
| 10136 | done |
| 10137 | _ACEOF |
| 10138 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10139 | |
| 10140 | # |
| 10141 | # CONFIG_COMMANDS section. |
| 10142 | # |
| 10143 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 10144 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 10145 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10146 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 10147 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10148 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 10149 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 10150 | X"$ac_dest" : 'X\(/\)' \| \ |
| 10151 | . : '\(.\)' 2>/dev/null || |
| 10152 | echo X"$ac_dest" | |
| 10153 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10154 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10155 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10156 | /^X\(\/\).*/{ s//\1/; q; } |
| 10157 | s/.*/./; q'` |
| 10158 | ac_builddir=. |
| 10159 | |
| 10160 | if test "$ac_dir" != .; then |
| 10161 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10162 | # A "../" for each directory in $ac_dir_suffix. |
| 10163 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10164 | else |
| 10165 | ac_dir_suffix= ac_top_builddir= |
| 10166 | fi |
| 10167 | |
| 10168 | case $srcdir in |
| 10169 | .) # No --srcdir option. We are building in place. |
| 10170 | ac_srcdir=. |
| 10171 | if test -z "$ac_top_builddir"; then |
| 10172 | ac_top_srcdir=. |
| 10173 | else |
| 10174 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10175 | fi ;; |
| 10176 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10177 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10178 | ac_top_srcdir=$srcdir ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10179 | *) # Relative path. |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10180 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10181 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10182 | esac |
| 10183 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10184 | # absolute. |
| 10185 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 10186 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 10187 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 10188 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 10189 | |
| 10190 | |
| 10191 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 10192 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 10193 | case $ac_dest in |
| 10194 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 10195 | # Strip MF so we end up with the name of the file. |
| 10196 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 10197 | # Check whether this is an Automake generated Makefile or not. |
| 10198 | # We used to match only the files named `Makefile.in', but |
| 10199 | # some people rename them; so instead we look at the file content. |
| 10200 | # Grep'ing the first line is not enough: some people post-process |
| 10201 | # each Makefile.in and add a new line on top of each file to say so. |
| 10202 | # So let's grep whole file. |
| 10203 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 10204 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 10205 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10206 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 10207 | X"$mf" : 'X\(//\)$' \| \ |
| 10208 | X"$mf" : 'X\(/\)' \| \ |
| 10209 | . : '\(.\)' 2>/dev/null || |
| 10210 | echo X"$mf" | |
| 10211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10212 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10213 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10214 | /^X\(\/\).*/{ s//\1/; q; } |
| 10215 | s/.*/./; q'` |
| 10216 | else |
| 10217 | continue |
| 10218 | fi |
| 10219 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 10220 | # Extract the definition of DEP_FILES from the Makefile without |
| 10221 | # running `make'. |
| 10222 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 10223 | test -z "$DEPDIR" && continue |
| 10224 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 10225 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 10226 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 10227 | # We invoke sed twice because it is the simplest approach to |
| 10228 | # changing $(DEPDIR) to its actual value in the expansion. |
| 10229 | for file in `sed -n -e ' |
| 10230 | /^DEP_FILES = .*\\\\$/ { |
| 10231 | s/^DEP_FILES = // |
| 10232 | :loop |
| 10233 | s/\\\\$// |
| 10234 | p |
| 10235 | n |
| 10236 | /\\\\$/ b loop |
| 10237 | p |
| 10238 | } |
| 10239 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 10240 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 10241 | # Make sure the directory exists. |
| 10242 | test -f "$dirpart/$file" && continue |
| 10243 | fdir=`(dirname "$file") 2>/dev/null || |
| 10244 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10245 | X"$file" : 'X\(//\)[^/]' \| \ |
| 10246 | X"$file" : 'X\(//\)$' \| \ |
| 10247 | X"$file" : 'X\(/\)' \| \ |
| 10248 | . : '\(.\)' 2>/dev/null || |
| 10249 | echo X"$file" | |
| 10250 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10251 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10252 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10253 | /^X\(\/\).*/{ s//\1/; q; } |
| 10254 | s/.*/./; q'` |
| 10255 | { case $dirpart/$fdir in |
| 10256 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 10257 | *) as_incr_dir=.;; |
| 10258 | esac |
| 10259 | as_dummy=$dirpart/$fdir |
| 10260 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 10261 | case $as_mkdir_dir in |
| 10262 | # Skip DOS drivespec |
| 10263 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 10264 | *) |
| 10265 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 10266 | test -d "$as_incr_dir" || |
| 10267 | mkdir "$as_incr_dir" || |
| 10268 | { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5 |
| 10269 | echo "$as_me: error: cannot create $dirpart/$fdir" >&2;} |
| 10270 | { (exit 1); exit 1; }; } |
| 10271 | ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10272 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10273 | done; } |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10274 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10275 | # echo "creating $dirpart/$file" |
| 10276 | echo '# dummy' > "$dirpart/$file" |
| 10277 | done |
| 10278 | done |
| 10279 | ;; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10280 | esac |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10281 | done |
| 10282 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10283 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10284 | cat >>$CONFIG_STATUS <<\_ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10285 | |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10286 | { (exit 0); exit 0; } |
| 10287 | _ACEOF |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10288 | chmod +x $CONFIG_STATUS |
jjako | 286bc98 | 2003-01-28 23:17:50 +0000 | [diff] [blame] | 10289 | ac_clean_files=$ac_clean_files_save |
| 10290 | |
| 10291 | |
| 10292 | # configure is writing to config.log, and then calls config.status. |
| 10293 | # config.status does its own redirection, appending to config.log. |
| 10294 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10295 | # by configure, so config.status won't be able to write to it; its |
| 10296 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10297 | # effectively closing config.log, so it can be properly (re)opened and |
| 10298 | # appended to by config.status. When coming back to configure, we |
| 10299 | # need to make the FD available again. |
| 10300 | if test "$no_create" != yes; then |
| 10301 | ac_cs_success=: |
| 10302 | exec 5>/dev/null |
| 10303 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 10304 | exec 5>>config.log |
| 10305 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10306 | # would make configure fail if this is the last instruction. |
| 10307 | $ac_cs_success || { (exit 1); exit 1; } |
| 10308 | fi |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 10309 | |