blob: 144fdef7cb19bb0b1c01d16ba4dd7910ec2cbfbd [file] [log] [blame]
openvcdiff311c7142008-08-26 19:29:25 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
openvcdiff@gmail.comf1dd9332009-10-09 22:40:32 +00003# Generated by GNU Autoconf 2.61 for open-vcdiff 0.7.
openvcdiff311c7142008-08-26 19:29:25 +00004#
5# Report bugs to <opensource@google.com>.
6#
openvcdiffd1845782009-03-20 21:56:15 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
openvcdiff311c7142008-08-26 19:29:25 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
openvcdiffd1845782009-03-20 21:56:15 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
openvcdiff311c7142008-08-26 19:29:25 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
openvcdiffd1845782009-03-20 21:56:15 +000023 setopt NO_GLOB_SUBST
openvcdiff311c7142008-08-26 19:29:25 +000024else
openvcdiffd1845782009-03-20 21:56:15 +000025 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
openvcdiff311c7142008-08-26 19:29:25 +000029fi
30
31
openvcdiff311c7142008-08-26 19:29:25 +000032
33
openvcdiffd1845782009-03-20 21:56:15 +000034# PATH needs CR
openvcdiff311c7142008-08-26 19:29:25 +000035# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
openvcdiffd1845782009-03-20 21:56:15 +000055# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
openvcdiff311c7142008-08-26 19:29:25 +000061
openvcdiffd1845782009-03-20 21:56:15 +000062
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
openvcdiff311c7142008-08-26 19:29:25 +000076for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
openvcdiffd1845782009-03-20 21:56:15 +000082IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +000083
openvcdiffd1845782009-03-20 21:56:15 +000084 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
openvcdiff311c7142008-08-26 19:29:25 +0000114 fi
openvcdiffd1845782009-03-20 21:56:15 +0000115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
openvcdiff311c7142008-08-26 19:29:25 +0000223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
openvcdiffd1845782009-03-20 21:56:15 +0000228 case $as_dir in
openvcdiff311c7142008-08-26 19:29:25 +0000229 /*)
openvcdiffd1845782009-03-20 21:56:15 +0000230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
openvcdiff311c7142008-08-26 19:29:25 +0000330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
openvcdiff311c7142008-08-26 19:29:25 +0000332 test "x$as_lineno_1" != "x$as_lineno_2" &&
openvcdiffd1845782009-03-20 21:56:15 +0000333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
openvcdiff311c7142008-08-26 19:29:25 +0000429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
openvcdiffd1845782009-03-20 21:56:15 +0000432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
openvcdiff311c7142008-08-26 19:29:25 +0000437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
openvcdiffd1845782009-03-20 21:56:15 +0000438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
openvcdiff311c7142008-08-26 19:29:25 +0000444 sed '
openvcdiffd1845782009-03-20 21:56:15 +0000445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
openvcdiff311c7142008-08-26 19:29:25 +0000449 N
openvcdiffd1845782009-03-20 21:56:15 +0000450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
openvcdiff311c7142008-08-26 19:29:25 +0000452 t loop
openvcdiffd1845782009-03-20 21:56:15 +0000453 s/-\n.*//
openvcdiff311c7142008-08-26 19:29:25 +0000454 ' >$as_me.lineno &&
openvcdiffd1845782009-03-20 21:56:15 +0000455 chmod +x "$as_me.lineno" ||
openvcdiff311c7142008-08-26 19:29:25 +0000456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
openvcdiffd1845782009-03-20 21:56:15 +0000461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
openvcdiff311c7142008-08-26 19:29:25 +0000463 # Exit status is that of the last command.
464 exit
465}
466
467
openvcdiffd1845782009-03-20 21:56:15 +0000468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
openvcdiff311c7142008-08-26 19:29:25 +0000483esac
484
openvcdiffd1845782009-03-20 21:56:15 +0000485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
openvcdiff311c7142008-08-26 19:29:25 +0000487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
openvcdiffd1845782009-03-20 21:56:15 +0000493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
openvcdiff311c7142008-08-26 19:29:25 +0000499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +0000501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
openvcdiff311c7142008-08-26 19:29:25 +0000507 as_ln_s='cp -p'
openvcdiff311c7142008-08-26 19:29:25 +0000508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
openvcdiffd1845782009-03-20 21:56:15 +0000513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
openvcdiff311c7142008-08-26 19:29:25 +0000515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
openvcdiffd1845782009-03-20 21:56:15 +0000523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
openvcdiff311c7142008-08-26 19:29:25 +0000545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
openvcdiff311c7142008-08-26 19:29:25 +0000553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
openvcdiffd1845782009-03-20 21:56:15 +0000708exec 7<&0 </dev/null 6>&1
709
openvcdiff311c7142008-08-26 19:29:25 +0000710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
openvcdiff311c7142008-08-26 19:29:25 +0000715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
openvcdiffd1845782009-03-20 21:56:15 +0000719ac_clean_files=
openvcdiff311c7142008-08-26 19:29:25 +0000720ac_config_libobj_dir=.
openvcdiffd1845782009-03-20 21:56:15 +0000721LIBOBJS=
openvcdiff311c7142008-08-26 19:29:25 +0000722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
openvcdiff311c7142008-08-26 19:29:25 +0000728# Identity of this package.
729PACKAGE_NAME='open-vcdiff'
730PACKAGE_TARNAME='open-vcdiff'
openvcdiff@gmail.comf1dd9332009-10-09 22:40:32 +0000731PACKAGE_VERSION='0.7'
732PACKAGE_STRING='open-vcdiff 0.7'
openvcdiff311c7142008-08-26 19:29:25 +0000733PACKAGE_BUGREPORT='opensource@google.com'
734
735ac_unique_file="README"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
openvcdiffd1845782009-03-20 21:56:15 +0000739#ifdef HAVE_SYS_TYPES_H
openvcdiff311c7142008-08-26 19:29:25 +0000740# include <sys/types.h>
741#endif
openvcdiffd1845782009-03-20 21:56:15 +0000742#ifdef HAVE_SYS_STAT_H
openvcdiff311c7142008-08-26 19:29:25 +0000743# include <sys/stat.h>
744#endif
openvcdiffd1845782009-03-20 21:56:15 +0000745#ifdef STDC_HEADERS
openvcdiff311c7142008-08-26 19:29:25 +0000746# include <stdlib.h>
747# include <stddef.h>
748#else
openvcdiffd1845782009-03-20 21:56:15 +0000749# ifdef HAVE_STDLIB_H
openvcdiff311c7142008-08-26 19:29:25 +0000750# include <stdlib.h>
751# endif
752#endif
openvcdiffd1845782009-03-20 21:56:15 +0000753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
openvcdiff311c7142008-08-26 19:29:25 +0000755# include <memory.h>
756# endif
757# include <string.h>
758#endif
openvcdiffd1845782009-03-20 21:56:15 +0000759#ifdef HAVE_STRINGS_H
openvcdiff311c7142008-08-26 19:29:25 +0000760# include <strings.h>
761#endif
openvcdiffd1845782009-03-20 21:56:15 +0000762#ifdef HAVE_INTTYPES_H
openvcdiff311c7142008-08-26 19:29:25 +0000763# include <inttypes.h>
openvcdiff311c7142008-08-26 19:29:25 +0000764#endif
openvcdiffd1845782009-03-20 21:56:15 +0000765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
openvcdiff311c7142008-08-26 19:29:25 +0000769# include <unistd.h>
770#endif"
771
openvcdiffd1845782009-03-20 21:56:15 +0000772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CPP
848CXX
849CXXFLAGS
850ac_ct_CXX
851CXXDEPMODE
852am__fastdepCXX_TRUE
853am__fastdepCXX_FALSE
854GCC_TRUE
855GCC_FALSE
856build
857build_cpu
858build_vendor
859build_os
860host
861host_cpu
862host_vendor
863host_os
864SED
865GREP
866EGREP
867LN_S
868ECHO
869AR
870RANLIB
871DSYMUTIL
872NMEDIT
873CXXCPP
874F77
875FFLAGS
876ac_ct_F77
877LIBTOOL
878LIBTOOL_DEPS
879LIBSTDCXX_LA_LINKER_FLAG
880LIBOBJS
881LTLIBOBJS'
openvcdiff311c7142008-08-26 19:29:25 +0000882ac_subst_files=''
openvcdiffd1845782009-03-20 21:56:15 +0000883 ac_precious_vars='build_alias
884host_alias
885target_alias
886CC
887CFLAGS
888LDFLAGS
889LIBS
890CPPFLAGS
891CPP
892CXX
893CXXFLAGS
894CCC
895CXXCPP
896F77
897FFLAGS'
898
openvcdiff311c7142008-08-26 19:29:25 +0000899
900# Initialize some variables set by options.
901ac_init_help=
902ac_init_version=false
903# The variables have the same names as the options, with
904# dashes changed to underlines.
905cache_file=/dev/null
906exec_prefix=NONE
907no_create=
908no_recursion=
909prefix=NONE
910program_prefix=NONE
911program_suffix=NONE
912program_transform_name=s,x,x,
913silent=
914site=
915srcdir=
916verbose=
917x_includes=NONE
918x_libraries=NONE
919
920# Installation directory options.
921# These are left unexpanded so users can "make install exec_prefix=/foo"
922# and all the variables that are supposed to be based on exec_prefix
923# by default will actually change.
924# Use braces instead of parens because sh, perl, etc. also accept them.
openvcdiffd1845782009-03-20 21:56:15 +0000925# (The list follows the same order as the GNU Coding Standards.)
openvcdiff311c7142008-08-26 19:29:25 +0000926bindir='${exec_prefix}/bin'
927sbindir='${exec_prefix}/sbin'
928libexecdir='${exec_prefix}/libexec'
openvcdiffd1845782009-03-20 21:56:15 +0000929datarootdir='${prefix}/share'
930datadir='${datarootdir}'
openvcdiff311c7142008-08-26 19:29:25 +0000931sysconfdir='${prefix}/etc'
932sharedstatedir='${prefix}/com'
933localstatedir='${prefix}/var'
openvcdiff311c7142008-08-26 19:29:25 +0000934includedir='${prefix}/include'
935oldincludedir='/usr/include'
openvcdiffd1845782009-03-20 21:56:15 +0000936docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937infodir='${datarootdir}/info'
938htmldir='${docdir}'
939dvidir='${docdir}'
940pdfdir='${docdir}'
941psdir='${docdir}'
942libdir='${exec_prefix}/lib'
943localedir='${datarootdir}/locale'
944mandir='${datarootdir}/man'
openvcdiff311c7142008-08-26 19:29:25 +0000945
946ac_prev=
openvcdiffd1845782009-03-20 21:56:15 +0000947ac_dashdash=
openvcdiff311c7142008-08-26 19:29:25 +0000948for ac_option
949do
950 # If the previous option needs an argument, assign it.
951 if test -n "$ac_prev"; then
openvcdiffd1845782009-03-20 21:56:15 +0000952 eval $ac_prev=\$ac_option
openvcdiff311c7142008-08-26 19:29:25 +0000953 ac_prev=
954 continue
955 fi
956
openvcdiffd1845782009-03-20 21:56:15 +0000957 case $ac_option in
958 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 *) ac_optarg=yes ;;
960 esac
openvcdiff311c7142008-08-26 19:29:25 +0000961
962 # Accept the important Cygnus configure options, so we can diagnose typos.
963
openvcdiffd1845782009-03-20 21:56:15 +0000964 case $ac_dashdash$ac_option in
965 --)
966 ac_dashdash=yes ;;
openvcdiff311c7142008-08-26 19:29:25 +0000967
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 ac_prev=bindir ;;
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 bindir=$ac_optarg ;;
972
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
977
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
984
985 --config-cache | -C)
986 cache_file=config.cache ;;
987
openvcdiffd1845782009-03-20 21:56:15 +0000988 -datadir | --datadir | --datadi | --datad)
openvcdiff311c7142008-08-26 19:29:25 +0000989 ac_prev=datadir ;;
openvcdiffd1845782009-03-20 21:56:15 +0000990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
openvcdiff311c7142008-08-26 19:29:25 +0000991 datadir=$ac_optarg ;;
992
openvcdiffd1845782009-03-20 21:56:15 +0000993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
999
openvcdiff311c7142008-08-26 19:29:25 +00001000 -disable-* | --disable-*)
1001 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
openvcdiffd1845782009-03-20 21:56:15 +00001003 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
openvcdiff311c7142008-08-26 19:29:25 +00001004 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +00001006 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1007 eval enable_$ac_feature=no ;;
1008
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1013
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
openvcdiff311c7142008-08-26 19:29:25 +00001018
1019 -enable-* | --enable-*)
1020 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
openvcdiffd1845782009-03-20 21:56:15 +00001022 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
openvcdiff311c7142008-08-26 19:29:25 +00001023 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1024 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +00001025 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1026 eval enable_$ac_feature=\$ac_optarg ;;
openvcdiff311c7142008-08-26 19:29:25 +00001027
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1036
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1040
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1047
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1052
openvcdiffd1845782009-03-20 21:56:15 +00001053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1058
openvcdiff311c7142008-08-26 19:29:25 +00001059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1065
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1070
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1075
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1082
openvcdiffd1845782009-03-20 21:56:15 +00001083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1087
openvcdiff311c7142008-08-26 19:29:25 +00001088 -localstatedir | --localstatedir | --localstatedi | --localstated \
openvcdiffd1845782009-03-20 21:56:15 +00001089 | --localstate | --localstat | --localsta | --localst | --locals)
openvcdiff311c7142008-08-26 19:29:25 +00001090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
openvcdiffd1845782009-03-20 21:56:15 +00001092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
openvcdiff311c7142008-08-26 19:29:25 +00001093 localstatedir=$ac_optarg ;;
1094
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1099
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1103
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1107
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1111
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1120
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1125
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1132
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1139
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1156
openvcdiffd1845782009-03-20 21:56:15 +00001157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1161
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1166
openvcdiff311c7142008-08-26 19:29:25 +00001167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1170
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
1175 sbindir=$ac_optarg ;;
1176
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
1186 sharedstatedir=$ac_optarg ;;
1187
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
1191 site=$ac_optarg ;;
1192
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1197
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1204
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1209
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1212
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1215
1216 -with-* | --with-*)
1217 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
openvcdiffd1845782009-03-20 21:56:15 +00001219 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
openvcdiff311c7142008-08-26 19:29:25 +00001220 { echo "$as_me: error: invalid package name: $ac_package" >&2
1221 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +00001222 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223 eval with_$ac_package=\$ac_optarg ;;
openvcdiff311c7142008-08-26 19:29:25 +00001224
1225 -without-* | --without-*)
1226 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
openvcdiffd1845782009-03-20 21:56:15 +00001228 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
openvcdiff311c7142008-08-26 19:29:25 +00001229 { echo "$as_me: error: invalid package name: $ac_package" >&2
1230 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +00001231 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232 eval with_$ac_package=no ;;
openvcdiff311c7142008-08-26 19:29:25 +00001233
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1237
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1244
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1251
1252 -*) { echo "$as_me: error: unrecognized option: $ac_option
1253Try \`$0 --help' for more information." >&2
1254 { (exit 1); exit 1; }; }
1255 ;;
1256
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +00001263 eval $ac_envvar=\$ac_optarg
openvcdiff311c7142008-08-26 19:29:25 +00001264 export $ac_envvar ;;
1265
1266 *)
1267 # FIXME: should be removed in autoconf 3.0.
1268 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 ;;
1273
1274 esac
1275done
1276
1277if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 { echo "$as_me: error: missing argument to $ac_option" >&2
1280 { (exit 1); exit 1; }; }
1281fi
1282
openvcdiffd1845782009-03-20 21:56:15 +00001283# Be sure to have absolute directory names.
1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
openvcdiff311c7142008-08-26 19:29:25 +00001288do
openvcdiffd1845782009-03-20 21:56:15 +00001289 eval ac_val=\$$ac_var
openvcdiff311c7142008-08-26 19:29:25 +00001290 case $ac_val in
openvcdiffd1845782009-03-20 21:56:15 +00001291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
openvcdiff311c7142008-08-26 19:29:25 +00001293 esac
openvcdiffd1845782009-03-20 21:56:15 +00001294 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1295 { (exit 1); exit 1; }; }
openvcdiff311c7142008-08-26 19:29:25 +00001296done
1297
1298# There might be people who depend on the old broken behavior: `$host'
1299# used to hold the argument of --host etc.
1300# FIXME: To remove some day.
1301build=$build_alias
1302host=$host_alias
1303target=$target_alias
1304
1305# FIXME: To remove some day.
1306if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314fi
1315
1316ac_tool_prefix=
1317test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319test "$silent" = yes && exec 6>/dev/null
1320
1321
openvcdiffd1845782009-03-20 21:56:15 +00001322ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323ac_ls_di=`ls -di .` &&
1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 { echo "$as_me: error: Working directory cannot be determined" >&2
1326 { (exit 1); exit 1; }; }
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 { echo "$as_me: error: pwd does not report name of working directory" >&2
1329 { (exit 1); exit 1; }; }
1330
1331
openvcdiff311c7142008-08-26 19:29:25 +00001332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
openvcdiffd1845782009-03-20 21:56:15 +00001335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$0" ||
openvcdiff311c7142008-08-26 19:29:25 +00001337$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$0" : 'X\(//\)[^/]' \| \
1339 X"$0" : 'X\(//\)$' \| \
openvcdiffd1845782009-03-20 21:56:15 +00001340 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff311c7142008-08-26 19:29:25 +00001341echo X"$0" |
openvcdiffd1845782009-03-20 21:56:15 +00001342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
openvcdiff311c7142008-08-26 19:29:25 +00001359 srcdir=$ac_confdir
openvcdiffd1845782009-03-20 21:56:15 +00001360 if test ! -r "$srcdir/$ac_unique_file"; then
openvcdiff311c7142008-08-26 19:29:25 +00001361 srcdir=..
1362 fi
1363else
1364 ac_srcdir_defaulted=no
1365fi
openvcdiffd1845782009-03-20 21:56:15 +00001366if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
openvcdiff311c7142008-08-26 19:29:25 +00001369 { (exit 1); exit 1; }; }
openvcdiff311c7142008-08-26 19:29:25 +00001370fi
openvcdiffd1845782009-03-20 21:56:15 +00001371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
openvcdiff311c7142008-08-26 19:29:25 +00001374 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +00001375 pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
openvcdiff311c7142008-08-26 19:29:25 +00001392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
openvcdiff@gmail.comf1dd9332009-10-09 22:40:32 +00001400\`configure' configures open-vcdiff 0.7 to adapt to many kinds of systems.
openvcdiff311c7142008-08-26 19:29:25 +00001401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
openvcdiff311c7142008-08-26 19:29:25 +00001420Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426By default, \`make install' will install all the files in
1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429for instance \`--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
openvcdiff311c7142008-08-26 19:29:25 +00001437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
openvcdiffd1845782009-03-20 21:56:15 +00001443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/open-vcdiff]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
openvcdiff311c7142008-08-26 19:29:25 +00001453_ACEOF
1454
1455 cat <<\_ACEOF
1456
1457Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465_ACEOF
1466fi
1467
1468if test -n "$ac_init_help"; then
1469 case $ac_init_help in
openvcdiff@gmail.comf1dd9332009-10-09 22:40:32 +00001470 short | recursive ) echo "Configuration of open-vcdiff 0.7:";;
openvcdiff311c7142008-08-26 19:29:25 +00001471 esac
1472 cat <<\_ACEOF
1473
1474Optional Features:
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-dependency-tracking speeds up one-time build
1478 --enable-dependency-tracking do not reject slow dependency extractors
openvcdiffbaf44ea2009-04-09 19:20:49 +00001479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=no]
openvcdiffd1845782009-03-20 21:56:15 +00001481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
openvcdiff311c7142008-08-26 19:29:25 +00001483 --disable-libtool-lock avoid locking (might break parallel builds)
1484
1485Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
openvcdiffd1845782009-03-20 21:56:15 +00001491 --with-tags[=TAGS] include additional configurations [automatic]
openvcdiff311c7142008-08-26 19:29:25 +00001492
1493Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
openvcdiffd1845782009-03-20 21:56:15 +00001498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
openvcdiff311c7142008-08-26 19:29:25 +00001501 CPP C preprocessor
1502 CXX C++ compiler command
1503 CXXFLAGS C++ compiler flags
1504 CXXCPP C++ preprocessor
1505 F77 Fortran 77 compiler command
1506 FFLAGS Fortran 77 compiler flags
1507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
1511Report bugs to <opensource@google.com>.
1512_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00001513ac_status=$?
openvcdiff311c7142008-08-26 19:29:25 +00001514fi
1515
1516if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
openvcdiff311c7142008-08-26 19:29:25 +00001518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
openvcdiffd1845782009-03-20 21:56:15 +00001519 test -d "$ac_dir" || continue
openvcdiff311c7142008-08-26 19:29:25 +00001520 ac_builddir=.
1521
openvcdiffd1845782009-03-20 21:56:15 +00001522case "$ac_dir" in
1523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524*)
openvcdiff311c7142008-08-26 19:29:25 +00001525 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
openvcdiffd1845782009-03-20 21:56:15 +00001526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 esac ;;
1532esac
1533ac_abs_top_builddir=$ac_pwd
1534ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535# for backward compatibility:
1536ac_top_builddir=$ac_top_build_prefix
openvcdiff311c7142008-08-26 19:29:25 +00001537
1538case $srcdir in
openvcdiffd1845782009-03-20 21:56:15 +00001539 .) # We are building in place.
openvcdiff311c7142008-08-26 19:29:25 +00001540 ac_srcdir=.
openvcdiffd1845782009-03-20 21:56:15 +00001541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
openvcdiff311c7142008-08-26 19:29:25 +00001544 ac_srcdir=$srcdir$ac_dir_suffix;
openvcdiffd1845782009-03-20 21:56:15 +00001545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1547 *) # Relative name.
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
openvcdiff311c7142008-08-26 19:29:25 +00001551esac
openvcdiffd1845782009-03-20 21:56:15 +00001552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
openvcdiff311c7142008-08-26 19:29:25 +00001553
openvcdiffd1845782009-03-20 21:56:15 +00001554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure" --help=recursive
openvcdiff311c7142008-08-26 19:29:25 +00001562 else
1563 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
openvcdiffd1845782009-03-20 21:56:15 +00001564 fi || ac_status=$?
1565 cd "$ac_pwd" || { ac_status=$?; break; }
openvcdiff311c7142008-08-26 19:29:25 +00001566 done
1567fi
1568
openvcdiffd1845782009-03-20 21:56:15 +00001569test -n "$ac_init_help" && exit $ac_status
openvcdiff311c7142008-08-26 19:29:25 +00001570if $ac_init_version; then
1571 cat <<\_ACEOF
openvcdiff@gmail.comf1dd9332009-10-09 22:40:32 +00001572open-vcdiff configure 0.7
openvcdiffd1845782009-03-20 21:56:15 +00001573generated by GNU Autoconf 2.61
openvcdiff311c7142008-08-26 19:29:25 +00001574
openvcdiffd1845782009-03-20 21:56:15 +00001575Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15762002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
openvcdiff311c7142008-08-26 19:29:25 +00001577This configure script is free software; the Free Software Foundation
1578gives unlimited permission to copy, distribute and modify it.
1579_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00001580 exit
openvcdiff311c7142008-08-26 19:29:25 +00001581fi
openvcdiffd1845782009-03-20 21:56:15 +00001582cat >config.log <<_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +00001583This file contains any messages produced by compilers while
1584running configure, to aid debugging if configure makes a mistake.
1585
openvcdiff@gmail.comf1dd9332009-10-09 22:40:32 +00001586It was created by open-vcdiff $as_me 0.7, which was
openvcdiffd1845782009-03-20 21:56:15 +00001587generated by GNU Autoconf 2.61. Invocation command line was
openvcdiff311c7142008-08-26 19:29:25 +00001588
1589 $ $0 $@
1590
1591_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00001592exec 5>>config.log
openvcdiff311c7142008-08-26 19:29:25 +00001593{
1594cat <<_ASUNAME
1595## --------- ##
1596## Platform. ##
1597## --------- ##
1598
1599hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1600uname -m = `(uname -m) 2>/dev/null || echo unknown`
1601uname -r = `(uname -r) 2>/dev/null || echo unknown`
1602uname -s = `(uname -s) 2>/dev/null || echo unknown`
1603uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604
1605/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1606/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1607
1608/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1609/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1610/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
openvcdiffd1845782009-03-20 21:56:15 +00001611/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
openvcdiff311c7142008-08-26 19:29:25 +00001612/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1613/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1614/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1615
1616_ASUNAME
1617
1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619for as_dir in $PATH
1620do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 echo "PATH: $as_dir"
1624done
openvcdiffd1845782009-03-20 21:56:15 +00001625IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00001626
1627} >&5
1628
1629cat >&5 <<_ACEOF
1630
1631
1632## ----------- ##
1633## Core tests. ##
1634## ----------- ##
1635
1636_ACEOF
1637
1638
1639# Keep a trace of the command line.
1640# Strip out --no-create and --no-recursion so they do not pile up.
1641# Strip out --silent because we don't want to record it for future runs.
1642# Also quote any args containing shell meta-characters.
1643# Make two passes to allow for proper duplicate-argument suppression.
1644ac_configure_args=
1645ac_configure_args0=
1646ac_configure_args1=
openvcdiff311c7142008-08-26 19:29:25 +00001647ac_must_keep_next=false
1648for ac_pass in 1 2
1649do
1650 for ac_arg
1651 do
1652 case $ac_arg in
1653 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655 | -silent | --silent | --silen | --sile | --sil)
1656 continue ;;
openvcdiffd1845782009-03-20 21:56:15 +00001657 *\'*)
openvcdiff311c7142008-08-26 19:29:25 +00001658 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659 esac
1660 case $ac_pass in
1661 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1662 2)
1663 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664 if test $ac_must_keep_next = true; then
1665 ac_must_keep_next=false # Got value, back to normal.
1666 else
1667 case $ac_arg in
1668 *=* | --config-cache | -C | -disable-* | --disable-* \
1669 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671 | -with-* | --with-* | -without-* | --without-* | --x)
1672 case "$ac_configure_args0 " in
1673 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674 esac
1675 ;;
1676 -* ) ac_must_keep_next=true ;;
1677 esac
1678 fi
openvcdiffd1845782009-03-20 21:56:15 +00001679 ac_configure_args="$ac_configure_args '$ac_arg'"
openvcdiff311c7142008-08-26 19:29:25 +00001680 ;;
1681 esac
1682 done
1683done
1684$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686
1687# When interrupted or exit'd, cleanup temporary files, and complete
1688# config.log. We remove comments because anyway the quotes in there
1689# would cause problems or look ugly.
openvcdiffd1845782009-03-20 21:56:15 +00001690# WARNING: Use '\'' to represent an apostrophe within the trap.
1691# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
openvcdiff311c7142008-08-26 19:29:25 +00001692trap 'exit_status=$?
1693 # Save into config.log some information that might help in debugging.
1694 {
1695 echo
1696
1697 cat <<\_ASBOX
1698## ---------------- ##
1699## Cache variables. ##
1700## ---------------- ##
1701_ASBOX
1702 echo
1703 # The following way of writing the cache mishandles newlines in values,
openvcdiffd1845782009-03-20 21:56:15 +00001704(
1705 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1706 eval ac_val=\$$ac_var
1707 case $ac_val in #(
1708 *${as_nl}*)
1709 case $ac_var in #(
1710 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712 esac
1713 case $ac_var in #(
1714 _ | IFS | as_nl) ;; #(
1715 *) $as_unset $ac_var ;;
1716 esac ;;
1717 esac
1718 done
openvcdiff311c7142008-08-26 19:29:25 +00001719 (set) 2>&1 |
openvcdiffd1845782009-03-20 21:56:15 +00001720 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1721 *${as_nl}ac_space=\ *)
openvcdiff311c7142008-08-26 19:29:25 +00001722 sed -n \
openvcdiffd1845782009-03-20 21:56:15 +00001723 "s/'\''/'\''\\\\'\'''\''/g;
1724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 ;; #(
openvcdiff311c7142008-08-26 19:29:25 +00001726 *)
openvcdiffd1845782009-03-20 21:56:15 +00001727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
openvcdiff311c7142008-08-26 19:29:25 +00001728 ;;
openvcdiffd1845782009-03-20 21:56:15 +00001729 esac |
1730 sort
1731)
openvcdiff311c7142008-08-26 19:29:25 +00001732 echo
1733
1734 cat <<\_ASBOX
1735## ----------------- ##
1736## Output variables. ##
1737## ----------------- ##
1738_ASBOX
1739 echo
1740 for ac_var in $ac_subst_vars
1741 do
openvcdiffd1845782009-03-20 21:56:15 +00001742 eval ac_val=\$$ac_var
1743 case $ac_val in
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 esac
1746 echo "$ac_var='\''$ac_val'\''"
openvcdiff311c7142008-08-26 19:29:25 +00001747 done | sort
1748 echo
1749
1750 if test -n "$ac_subst_files"; then
1751 cat <<\_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +00001752## ------------------- ##
1753## File substitutions. ##
1754## ------------------- ##
openvcdiff311c7142008-08-26 19:29:25 +00001755_ASBOX
1756 echo
1757 for ac_var in $ac_subst_files
1758 do
openvcdiffd1845782009-03-20 21:56:15 +00001759 eval ac_val=\$$ac_var
1760 case $ac_val in
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 esac
1763 echo "$ac_var='\''$ac_val'\''"
openvcdiff311c7142008-08-26 19:29:25 +00001764 done | sort
1765 echo
1766 fi
1767
1768 if test -s confdefs.h; then
1769 cat <<\_ASBOX
1770## ----------- ##
1771## confdefs.h. ##
1772## ----------- ##
1773_ASBOX
1774 echo
openvcdiffd1845782009-03-20 21:56:15 +00001775 cat confdefs.h
openvcdiff311c7142008-08-26 19:29:25 +00001776 echo
1777 fi
1778 test "$ac_signal" != 0 &&
1779 echo "$as_me: caught signal $ac_signal"
1780 echo "$as_me: exit $exit_status"
1781 } >&5
openvcdiffd1845782009-03-20 21:56:15 +00001782 rm -f core *.core core.conftest.* &&
1783 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
openvcdiff311c7142008-08-26 19:29:25 +00001784 exit $exit_status
openvcdiffd1845782009-03-20 21:56:15 +00001785' 0
openvcdiff311c7142008-08-26 19:29:25 +00001786for ac_signal in 1 2 13 15; do
1787 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1788done
1789ac_signal=0
1790
1791# confdefs.h avoids OS command line length limits that DEFS can exceed.
openvcdiffd1845782009-03-20 21:56:15 +00001792rm -f -r conftest* confdefs.h
openvcdiff311c7142008-08-26 19:29:25 +00001793
1794# Predefined preprocessor variables.
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE_NAME "$PACKAGE_NAME"
1798_ACEOF
1799
1800
1801cat >>confdefs.h <<_ACEOF
1802#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803_ACEOF
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_VERSION "$PACKAGE_VERSION"
1808_ACEOF
1809
1810
1811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_STRING "$PACKAGE_STRING"
1813_ACEOF
1814
1815
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1818_ACEOF
1819
1820
1821# Let the site file select an alternate cache file if it wants to.
1822# Prefer explicitly selected file to automatically selected ones.
openvcdiffd1845782009-03-20 21:56:15 +00001823if test -n "$CONFIG_SITE"; then
1824 set x "$CONFIG_SITE"
1825elif test "x$prefix" != xNONE; then
1826 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1827else
1828 set x "$ac_default_prefix/share/config.site" \
1829 "$ac_default_prefix/etc/config.site"
openvcdiff311c7142008-08-26 19:29:25 +00001830fi
openvcdiffd1845782009-03-20 21:56:15 +00001831shift
1832for ac_site_file
1833do
openvcdiff311c7142008-08-26 19:29:25 +00001834 if test -r "$ac_site_file"; then
1835 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836echo "$as_me: loading site script $ac_site_file" >&6;}
1837 sed 's/^/| /' "$ac_site_file" >&5
1838 . "$ac_site_file"
1839 fi
1840done
1841
1842if test -r "$cache_file"; then
1843 # Some versions of bash will fail to source /dev/null (special
1844 # files actually), so we avoid doing that.
1845 if test -f "$cache_file"; then
1846 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847echo "$as_me: loading cache $cache_file" >&6;}
1848 case $cache_file in
openvcdiffd1845782009-03-20 21:56:15 +00001849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850 *) . "./$cache_file";;
openvcdiff311c7142008-08-26 19:29:25 +00001851 esac
1852 fi
1853else
1854 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855echo "$as_me: creating cache $cache_file" >&6;}
1856 >$cache_file
1857fi
1858
1859# Check that the precious variables saved in the cache have kept the same
1860# value.
1861ac_cache_corrupted=false
openvcdiffd1845782009-03-20 21:56:15 +00001862for ac_var in $ac_precious_vars; do
openvcdiff311c7142008-08-26 19:29:25 +00001863 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864 eval ac_new_set=\$ac_env_${ac_var}_set
openvcdiffd1845782009-03-20 21:56:15 +00001865 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866 eval ac_new_val=\$ac_env_${ac_var}_value
openvcdiff311c7142008-08-26 19:29:25 +00001867 case $ac_old_set,$ac_new_set in
1868 set,)
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1872 ,set)
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1876 ,);;
1877 *)
1878 if test "x$ac_old_val" != "x$ac_new_val"; then
1879 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1881 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1882echo "$as_me: former value: $ac_old_val" >&2;}
1883 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1884echo "$as_me: current value: $ac_new_val" >&2;}
1885 ac_cache_corrupted=:
1886 fi;;
1887 esac
1888 # Pass precious variables to config.status.
1889 if test "$ac_new_set" = set; then
1890 case $ac_new_val in
openvcdiffd1845782009-03-20 21:56:15 +00001891 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
openvcdiff311c7142008-08-26 19:29:25 +00001892 *) ac_arg=$ac_var=$ac_new_val ;;
1893 esac
1894 case " $ac_configure_args " in
1895 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1896 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1897 esac
1898 fi
1899done
1900if $ac_cache_corrupted; then
1901 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1902echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1904echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1905 { (exit 1); exit 1; }; }
1906fi
1907
openvcdiffd1845782009-03-20 21:56:15 +00001908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
openvcdiff311c7142008-08-26 19:29:25 +00001932ac_ext=c
1933ac_cpp='$CPP $CPPFLAGS'
1934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937
1938
1939
openvcdiffd1845782009-03-20 21:56:15 +00001940am__api_version='1.10'
openvcdiff311c7142008-08-26 19:29:25 +00001941
openvcdiff311c7142008-08-26 19:29:25 +00001942ac_aux_dir=
openvcdiffd1845782009-03-20 21:56:15 +00001943for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944 if test -f "$ac_dir/install-sh"; then
openvcdiff311c7142008-08-26 19:29:25 +00001945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 break
openvcdiffd1845782009-03-20 21:56:15 +00001948 elif test -f "$ac_dir/install.sh"; then
openvcdiff311c7142008-08-26 19:29:25 +00001949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 break
openvcdiffd1845782009-03-20 21:56:15 +00001952 elif test -f "$ac_dir/shtool"; then
openvcdiff311c7142008-08-26 19:29:25 +00001953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 break
1956 fi
1957done
1958if test -z "$ac_aux_dir"; then
openvcdiffd1845782009-03-20 21:56:15 +00001959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +00001961 { (exit 1); exit 1; }; }
1962fi
openvcdiffd1845782009-03-20 21:56:15 +00001963
1964# These three variables are undocumented and unsupported,
1965# and are intended to be withdrawn in a future Autoconf release.
1966# They can cause serious problems if a builder's source tree is in a directory
1967# whose full name contains unusual characters.
1968ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971
openvcdiff311c7142008-08-26 19:29:25 +00001972
1973# Find a good install program. We prefer a C program (faster),
1974# so one script is as good as another. But avoid the broken or
1975# incompatible versions:
1976# SysV /etc/install, /usr/sbin/install
1977# SunOS /usr/etc/install
1978# IRIX /sbin/install
1979# AIX /bin/install
1980# AmigaOS /C/install, which installs bootblocks on floppy discs
1981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984# OS/2's system install, which has a completely different semantic
1985# ./install, which can be erroneously created by make from ./install.sh.
openvcdiffd1845782009-03-20 21:56:15 +00001986{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1987echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00001988if test -z "$INSTALL"; then
1989if test "${ac_cv_path_install+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 # Account for people who put trailing slashes in PATH elements.
1998case $as_dir/ in
1999 ./ | .// | /cC/* | \
2000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002 /usr/ucb/* ) ;;
2003 *)
2004 # OSF1 and SCO ODT 3.0 have their own names for install.
2005 # Don't use installbsd from OSF since it installs stuff as root
2006 # by default.
2007 for ac_prog in ginstall scoinst install; do
2008 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002010 if test $ac_prog = install &&
2011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012 # AIX install. It has an incompatible calling convention.
2013 :
2014 elif test $ac_prog = install &&
2015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016 # program-specific install script used by HP pwplus--don't use.
2017 :
2018 else
2019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020 break 3
2021 fi
2022 fi
2023 done
2024 done
2025 ;;
2026esac
2027done
openvcdiffd1845782009-03-20 21:56:15 +00002028IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002029
2030
2031fi
2032 if test "${ac_cv_path_install+set}" = set; then
2033 INSTALL=$ac_cv_path_install
2034 else
openvcdiffd1845782009-03-20 21:56:15 +00002035 # As a last resort, use the slow shell script. Don't cache a
2036 # value for INSTALL within a source directory, because that will
openvcdiff311c7142008-08-26 19:29:25 +00002037 # break other packages using the cache if that directory is
openvcdiffd1845782009-03-20 21:56:15 +00002038 # removed, or if the value is a relative name.
openvcdiff311c7142008-08-26 19:29:25 +00002039 INSTALL=$ac_install_sh
2040 fi
2041fi
openvcdiffd1845782009-03-20 21:56:15 +00002042{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2043echo "${ECHO_T}$INSTALL" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002044
2045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2046# It thinks the first close brace ends the variable substitution.
2047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048
2049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050
2051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052
openvcdiffd1845782009-03-20 21:56:15 +00002053{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2054echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002055# Just in case
2056sleep 1
2057echo timestamp > conftest.file
2058# Do `set' in a subshell so we don't clobber the current shell's
2059# arguments. Must try -L first in case configure is actually a
2060# symlink; some systems play weird games with the mod time of symlinks
2061# (eg FreeBSD returns the mod time of the symlink's containing
2062# directory).
2063if (
2064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2065 if test "$*" = "X"; then
2066 # -L didn't work.
2067 set X `ls -t $srcdir/configure conftest.file`
2068 fi
2069 rm -f conftest.file
2070 if test "$*" != "X $srcdir/configure conftest.file" \
2071 && test "$*" != "X conftest.file $srcdir/configure"; then
2072
2073 # If neither matched, then we have a broken ls. This can happen
2074 # if, for instance, CONFIG_SHELL is bash and it inherits a
2075 # broken ls alias from the environment. This has actually
2076 # happened. Such a system could not be considered "sane".
2077 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2078alias in your environment" >&5
2079echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2080alias in your environment" >&2;}
2081 { (exit 1); exit 1; }; }
2082 fi
2083
2084 test "$2" = conftest.file
2085 )
2086then
2087 # Ok.
2088 :
2089else
2090 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2091Check your system clock" >&5
2092echo "$as_me: error: newly created file is older than distributed files!
2093Check your system clock" >&2;}
2094 { (exit 1); exit 1; }; }
2095fi
openvcdiffd1845782009-03-20 21:56:15 +00002096{ echo "$as_me:$LINENO: result: yes" >&5
2097echo "${ECHO_T}yes" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002098test "$program_prefix" != NONE &&
openvcdiffd1845782009-03-20 21:56:15 +00002099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
openvcdiff311c7142008-08-26 19:29:25 +00002100# Use a double $ so make ignores it.
2101test "$program_suffix" != NONE &&
openvcdiffd1845782009-03-20 21:56:15 +00002102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
openvcdiff311c7142008-08-26 19:29:25 +00002103# Double any \ or $. echo might interpret backslashes.
2104# By default was `s,x,x', remove it if useless.
2105cat <<\_ACEOF >conftest.sed
2106s/[\\$]/&&/g;s/;s,x,x,$//
2107_ACEOF
2108program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
openvcdiffd1845782009-03-20 21:56:15 +00002109rm -f conftest.sed
openvcdiff311c7142008-08-26 19:29:25 +00002110
2111# expand $ac_aux_dir to an absolute path
2112am_aux_dir=`cd $ac_aux_dir && pwd`
2113
2114test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2115# Use eval to expand $SHELL
2116if eval "$MISSING --run true"; then
2117 am_missing_run="$MISSING --run "
2118else
2119 am_missing_run=
2120 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2121echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2122fi
2123
openvcdiffd1845782009-03-20 21:56:15 +00002124{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2125echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2126if test -z "$MKDIR_P"; then
2127 if test "${ac_cv_path_mkdir+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
openvcdiff311c7142008-08-26 19:29:25 +00002129else
openvcdiffd1845782009-03-20 21:56:15 +00002130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2132do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_prog in mkdir gmkdir; do
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2138 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2139 'mkdir (GNU coreutils) '* | \
2140 'mkdir (coreutils) '* | \
2141 'mkdir (fileutils) '4.1*)
2142 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2143 break 3;;
2144 esac
2145 done
2146 done
2147done
2148IFS=$as_save_IFS
2149
2150fi
2151
2152 if test "${ac_cv_path_mkdir+set}" = set; then
2153 MKDIR_P="$ac_cv_path_mkdir -p"
openvcdiff311c7142008-08-26 19:29:25 +00002154 else
openvcdiffd1845782009-03-20 21:56:15 +00002155 # As a last resort, use the slow shell script. Don't cache a
2156 # value for MKDIR_P within a source directory, because that will
2157 # break other packages using the cache if that directory is
2158 # removed, or if the value is a relative name.
2159 test -d ./--version && rmdir ./--version
2160 MKDIR_P="$ac_install_sh -d"
openvcdiff311c7142008-08-26 19:29:25 +00002161 fi
2162fi
openvcdiffd1845782009-03-20 21:56:15 +00002163{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2164echo "${ECHO_T}$MKDIR_P" >&6; }
2165
2166mkdir_p="$MKDIR_P"
2167case $mkdir_p in
2168 [\\/$]* | ?:[\\/]*) ;;
2169 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2170esac
openvcdiff311c7142008-08-26 19:29:25 +00002171
2172for ac_prog in gawk mawk nawk awk
2173do
2174 # Extract the first word of "$ac_prog", so it can be a program name with args.
2175set dummy $ac_prog; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00002176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002178if test "${ac_cv_prog_AWK+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 if test -n "$AWK"; then
2182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183else
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002191 ac_cv_prog_AWK="$ac_prog"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2194 fi
2195done
2196done
openvcdiffd1845782009-03-20 21:56:15 +00002197IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002198
2199fi
2200fi
2201AWK=$ac_cv_prog_AWK
2202if test -n "$AWK"; then
openvcdiffd1845782009-03-20 21:56:15 +00002203 { echo "$as_me:$LINENO: result: $AWK" >&5
2204echo "${ECHO_T}$AWK" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002205else
openvcdiffd1845782009-03-20 21:56:15 +00002206 { echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002208fi
2209
openvcdiffd1845782009-03-20 21:56:15 +00002210
openvcdiff311c7142008-08-26 19:29:25 +00002211 test -n "$AWK" && break
2212done
2213
openvcdiffd1845782009-03-20 21:56:15 +00002214{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220 cat >conftest.make <<\_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00002221SHELL = /bin/sh
openvcdiff311c7142008-08-26 19:29:25 +00002222all:
openvcdiffd1845782009-03-20 21:56:15 +00002223 @echo '@@@%%%=$(MAKE)=@@@%%%'
openvcdiff311c7142008-08-26 19:29:25 +00002224_ACEOF
2225# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
openvcdiffd1845782009-03-20 21:56:15 +00002226case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227 *@@@%%%=?*=@@@%%%*)
2228 eval ac_cv_prog_make_${ac_make}_set=yes;;
2229 *)
2230 eval ac_cv_prog_make_${ac_make}_set=no;;
2231esac
openvcdiff311c7142008-08-26 19:29:25 +00002232rm -f conftest.make
2233fi
openvcdiffd1845782009-03-20 21:56:15 +00002234if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002237 SET_MAKE=
2238else
openvcdiffd1845782009-03-20 21:56:15 +00002239 { echo "$as_me:$LINENO: result: no" >&5
2240echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002241 SET_MAKE="MAKE=${MAKE-make}"
2242fi
2243
2244rm -rf .tst 2>/dev/null
2245mkdir .tst 2>/dev/null
2246if test -d .tst; then
2247 am__leading_dot=.
2248else
2249 am__leading_dot=_
2250fi
2251rmdir .tst 2>/dev/null
2252
openvcdiffd1845782009-03-20 21:56:15 +00002253if test "`cd $srcdir && pwd`" != "`pwd`"; then
2254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2255 # is not polluted with repeated "-I."
2256 am__isrc=' -I$(srcdir)'
2257 # test to see if srcdir already configured
2258 if test -f $srcdir/config.status; then
2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
openvcdiff311c7142008-08-26 19:29:25 +00002260echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +00002262 fi
openvcdiff311c7142008-08-26 19:29:25 +00002263fi
2264
2265# test whether we have cygpath
2266if test -z "$CYGPATH_W"; then
2267 if (cygpath --version) >/dev/null 2>/dev/null; then
2268 CYGPATH_W='cygpath -w'
2269 else
2270 CYGPATH_W=echo
2271 fi
2272fi
2273
2274
2275# Define the identity of the package.
2276 PACKAGE='open-vcdiff'
openvcdiff@gmail.comf1dd9332009-10-09 22:40:32 +00002277 VERSION='0.7'
openvcdiff311c7142008-08-26 19:29:25 +00002278
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE "$PACKAGE"
2282_ACEOF
2283
2284
2285cat >>confdefs.h <<_ACEOF
2286#define VERSION "$VERSION"
2287_ACEOF
2288
2289# Some tools Automake needs.
2290
2291ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2292
2293
2294AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2295
2296
2297AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2298
2299
2300AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2301
2302
2303MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2304
openvcdiffd1845782009-03-20 21:56:15 +00002305install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
openvcdiff311c7142008-08-26 19:29:25 +00002306
2307# Installed binaries are usually stripped using `strip' when the user
2308# run `make install-strip'. However `strip' might not be the right
2309# tool to use in cross-compilation environments, therefore Automake
2310# will honor the `STRIP' environment variable to overrule this program.
2311if test "$cross_compiling" != no; then
2312 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314set dummy ${ac_tool_prefix}strip; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00002315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002317if test "${ac_cv_prog_STRIP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320 if test -n "$STRIP"; then
2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322else
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334done
2335done
openvcdiffd1845782009-03-20 21:56:15 +00002336IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002337
2338fi
2339fi
2340STRIP=$ac_cv_prog_STRIP
2341if test -n "$STRIP"; then
openvcdiffd1845782009-03-20 21:56:15 +00002342 { echo "$as_me:$LINENO: result: $STRIP" >&5
2343echo "${ECHO_T}$STRIP" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002344else
openvcdiffd1845782009-03-20 21:56:15 +00002345 { echo "$as_me:$LINENO: result: no" >&5
2346echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002347fi
2348
openvcdiffd1845782009-03-20 21:56:15 +00002349
openvcdiff311c7142008-08-26 19:29:25 +00002350fi
2351if test -z "$ac_cv_prog_STRIP"; then
2352 ac_ct_STRIP=$STRIP
2353 # Extract the first word of "strip", so it can be a program name with args.
2354set dummy strip; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00002355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002357if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360 if test -n "$ac_ct_STRIP"; then
2361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2362else
2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364for as_dir in $PATH
2365do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002370 ac_cv_prog_ac_ct_STRIP="strip"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2373 fi
2374done
2375done
openvcdiffd1845782009-03-20 21:56:15 +00002376IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002377
openvcdiff311c7142008-08-26 19:29:25 +00002378fi
2379fi
2380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2381if test -n "$ac_ct_STRIP"; then
openvcdiffd1845782009-03-20 21:56:15 +00002382 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2383echo "${ECHO_T}$ac_ct_STRIP" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002384else
openvcdiffd1845782009-03-20 21:56:15 +00002385 { echo "$as_me:$LINENO: result: no" >&5
2386echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002387fi
2388
openvcdiffd1845782009-03-20 21:56:15 +00002389 if test "x$ac_ct_STRIP" = x; then
2390 STRIP=":"
2391 else
2392 case $cross_compiling:$ac_tool_warned in
2393yes:)
2394{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2395whose name does not start with the host triplet. If you think this
2396configuration is useful to you, please write to autoconf@gnu.org." >&5
2397echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2398whose name does not start with the host triplet. If you think this
2399configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2400ac_tool_warned=yes ;;
2401esac
2402 STRIP=$ac_ct_STRIP
2403 fi
openvcdiff311c7142008-08-26 19:29:25 +00002404else
2405 STRIP="$ac_cv_prog_STRIP"
2406fi
2407
2408fi
openvcdiffd1845782009-03-20 21:56:15 +00002409INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
openvcdiff311c7142008-08-26 19:29:25 +00002410
2411# We need awk for the "check" target. The system "awk" is bad on
2412# some platforms.
2413# Always define AMTAR for backward compatibility.
2414
2415AMTAR=${AMTAR-"${am_missing_run}tar"}
2416
2417am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2418
2419
2420
2421
2422
openvcdiffd1845782009-03-20 21:56:15 +00002423ac_config_headers="$ac_config_headers src/config.h"
openvcdiff311c7142008-08-26 19:29:25 +00002424
2425
2426# Checks for programs.
2427ac_ext=c
2428ac_cpp='$CPP $CPPFLAGS'
2429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432if test -n "$ac_tool_prefix"; then
2433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2434set dummy ${ac_tool_prefix}gcc; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00002435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002437if test "${ac_cv_prog_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440 if test -n "$CC"; then
2441 ac_cv_prog_CC="$CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454done
2455done
openvcdiffd1845782009-03-20 21:56:15 +00002456IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002457
2458fi
2459fi
2460CC=$ac_cv_prog_CC
2461if test -n "$CC"; then
openvcdiffd1845782009-03-20 21:56:15 +00002462 { echo "$as_me:$LINENO: result: $CC" >&5
2463echo "${ECHO_T}$CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002464else
openvcdiffd1845782009-03-20 21:56:15 +00002465 { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002467fi
2468
openvcdiffd1845782009-03-20 21:56:15 +00002469
openvcdiff311c7142008-08-26 19:29:25 +00002470fi
2471if test -z "$ac_cv_prog_CC"; then
2472 ac_ct_CC=$CC
2473 # Extract the first word of "gcc", so it can be a program name with args.
2474set dummy gcc; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00002475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480 if test -n "$ac_ct_CC"; then
2481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002490 ac_cv_prog_ac_ct_CC="gcc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494done
2495done
openvcdiffd1845782009-03-20 21:56:15 +00002496IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002497
2498fi
2499fi
2500ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501if test -n "$ac_ct_CC"; then
openvcdiffd1845782009-03-20 21:56:15 +00002502 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503echo "${ECHO_T}$ac_ct_CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002504else
openvcdiffd1845782009-03-20 21:56:15 +00002505 { echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002507fi
2508
openvcdiffd1845782009-03-20 21:56:15 +00002509 if test "x$ac_ct_CC" = x; then
2510 CC=""
2511 else
2512 case $cross_compiling:$ac_tool_warned in
2513yes:)
2514{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2515whose name does not start with the host triplet. If you think this
2516configuration is useful to you, please write to autoconf@gnu.org." >&5
2517echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2518whose name does not start with the host triplet. If you think this
2519configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2520ac_tool_warned=yes ;;
2521esac
2522 CC=$ac_ct_CC
2523 fi
openvcdiff311c7142008-08-26 19:29:25 +00002524else
2525 CC="$ac_cv_prog_CC"
2526fi
2527
2528if test -z "$CC"; then
openvcdiffd1845782009-03-20 21:56:15 +00002529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
openvcdiff311c7142008-08-26 19:29:25 +00002531set dummy ${ac_tool_prefix}cc; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00002532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002547 ac_cv_prog_CC="${ac_tool_prefix}cc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551done
2552done
openvcdiffd1845782009-03-20 21:56:15 +00002553IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002554
2555fi
2556fi
2557CC=$ac_cv_prog_CC
2558if test -n "$CC"; then
openvcdiffd1845782009-03-20 21:56:15 +00002559 { echo "$as_me:$LINENO: result: $CC" >&5
2560echo "${ECHO_T}$CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002561else
openvcdiffd1845782009-03-20 21:56:15 +00002562 { echo "$as_me:$LINENO: result: no" >&5
2563echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002564fi
2565
openvcdiffd1845782009-03-20 21:56:15 +00002566
openvcdiff311c7142008-08-26 19:29:25 +00002567 fi
openvcdiff311c7142008-08-26 19:29:25 +00002568fi
2569if test -z "$CC"; then
2570 # Extract the first word of "cc", so it can be a program name with args.
2571set dummy cc; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00002572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002574if test "${ac_cv_prog_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579else
2580 ac_prog_rejected=no
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2589 ac_prog_rejected=yes
2590 continue
2591 fi
2592 ac_cv_prog_CC="cc"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596done
2597done
openvcdiffd1845782009-03-20 21:56:15 +00002598IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002599
2600if test $ac_prog_rejected = yes; then
2601 # We found a bogon in the path, so make sure we never use it.
2602 set dummy $ac_cv_prog_CC
2603 shift
2604 if test $# != 0; then
2605 # We chose a different compiler from the bogus one.
2606 # However, it has the same basename, so the bogon will be chosen
2607 # first if we set CC to just the basename; use the full file name.
2608 shift
2609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610 fi
2611fi
2612fi
2613fi
2614CC=$ac_cv_prog_CC
2615if test -n "$CC"; then
openvcdiffd1845782009-03-20 21:56:15 +00002616 { echo "$as_me:$LINENO: result: $CC" >&5
2617echo "${ECHO_T}$CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002618else
openvcdiffd1845782009-03-20 21:56:15 +00002619 { echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002621fi
2622
openvcdiffd1845782009-03-20 21:56:15 +00002623
openvcdiff311c7142008-08-26 19:29:25 +00002624fi
2625if test -z "$CC"; then
2626 if test -n "$ac_tool_prefix"; then
openvcdiffd1845782009-03-20 21:56:15 +00002627 for ac_prog in cl.exe
openvcdiff311c7142008-08-26 19:29:25 +00002628 do
2629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00002631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002633if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650done
2651done
openvcdiffd1845782009-03-20 21:56:15 +00002652IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002653
2654fi
2655fi
2656CC=$ac_cv_prog_CC
2657if test -n "$CC"; then
openvcdiffd1845782009-03-20 21:56:15 +00002658 { echo "$as_me:$LINENO: result: $CC" >&5
2659echo "${ECHO_T}$CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002660else
openvcdiffd1845782009-03-20 21:56:15 +00002661 { echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002663fi
2664
openvcdiffd1845782009-03-20 21:56:15 +00002665
openvcdiff311c7142008-08-26 19:29:25 +00002666 test -n "$CC" && break
2667 done
2668fi
2669if test -z "$CC"; then
2670 ac_ct_CC=$CC
openvcdiffd1845782009-03-20 21:56:15 +00002671 for ac_prog in cl.exe
openvcdiff311c7142008-08-26 19:29:25 +00002672do
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00002675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002677if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 if test -n "$ac_ct_CC"; then
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00002690 ac_cv_prog_ac_ct_CC="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695done
openvcdiffd1845782009-03-20 21:56:15 +00002696IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002697
2698fi
2699fi
2700ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701if test -n "$ac_ct_CC"; then
openvcdiffd1845782009-03-20 21:56:15 +00002702 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703echo "${ECHO_T}$ac_ct_CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002704else
openvcdiffd1845782009-03-20 21:56:15 +00002705 { echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002707fi
2708
openvcdiffd1845782009-03-20 21:56:15 +00002709
openvcdiff311c7142008-08-26 19:29:25 +00002710 test -n "$ac_ct_CC" && break
2711done
2712
openvcdiffd1845782009-03-20 21:56:15 +00002713 if test "x$ac_ct_CC" = x; then
2714 CC=""
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717yes:)
2718{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719whose name does not start with the host triplet. If you think this
2720configuration is useful to you, please write to autoconf@gnu.org." >&5
2721echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722whose name does not start with the host triplet. If you think this
2723configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2724ac_tool_warned=yes ;;
2725esac
2726 CC=$ac_ct_CC
2727 fi
openvcdiff311c7142008-08-26 19:29:25 +00002728fi
2729
2730fi
2731
2732
2733test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2734See \`config.log' for more details." >&5
2735echo "$as_me: error: no acceptable C compiler found in \$PATH
2736See \`config.log' for more details." >&2;}
2737 { (exit 1); exit 1; }; }
2738
2739# Provide some information about the compiler.
openvcdiffd1845782009-03-20 21:56:15 +00002740echo "$as_me:$LINENO: checking for C compiler version" >&5
openvcdiff311c7142008-08-26 19:29:25 +00002741ac_compiler=`set X $ac_compile; echo $2`
openvcdiffd1845782009-03-20 21:56:15 +00002742{ (ac_try="$ac_compiler --version >&5"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler --version >&5") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00002749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
openvcdiffd1845782009-03-20 21:56:15 +00002752{ (ac_try="$ac_compiler -v >&5"
2753case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -v >&5") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00002759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
openvcdiffd1845782009-03-20 21:56:15 +00002762{ (ac_try="$ac_compiler -V >&5"
2763case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766esac
2767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compiler -V >&5") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00002769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }
2772
2773cat >conftest.$ac_ext <<_ACEOF
2774/* confdefs.h. */
2775_ACEOF
2776cat confdefs.h >>conftest.$ac_ext
2777cat >>conftest.$ac_ext <<_ACEOF
2778/* end confdefs.h. */
2779
2780int
2781main ()
2782{
2783
2784 ;
2785 return 0;
2786}
2787_ACEOF
2788ac_clean_files_save=$ac_clean_files
2789ac_clean_files="$ac_clean_files a.out a.exe b.out"
2790# Try to create an executable without -o first, disregard a.out.
2791# It will help us diagnose broken compilers, and finding out an intuition
2792# of exeext.
openvcdiffd1845782009-03-20 21:56:15 +00002793{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2794echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002795ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
openvcdiffd1845782009-03-20 21:56:15 +00002796#
2797# List of possible output files, starting from the most likely.
2798# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2799# only as a last resort. b.out is created by i960 compilers.
2800ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2801#
2802# The IRIX 6 linker writes into existing files which may not be
2803# executable, retaining their permissions. Remove them first so a
2804# subsequent execution test works.
2805ac_rmfiles=
2806for ac_file in $ac_files
2807do
2808 case $ac_file in
2809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2810 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811 esac
2812done
2813rm -f $ac_rmfiles
2814
2815if { (ac_try="$ac_link_default"
2816case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819esac
2820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_link_default") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00002822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; then
openvcdiffd1845782009-03-20 21:56:15 +00002825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827# in a Makefile. We should not override ac_cv_exeext if it was cached,
2828# so that the user can short-circuit this test for compilers unknown to
2829# Autoconf.
2830for ac_file in $ac_files ''
openvcdiff311c7142008-08-26 19:29:25 +00002831do
2832 test -f "$ac_file" || continue
2833 case $ac_file in
openvcdiffd1845782009-03-20 21:56:15 +00002834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
openvcdiff311c7142008-08-26 19:29:25 +00002835 ;;
2836 [ab].out )
2837 # We found the default executable, but exeext='' is most
2838 # certainly right.
2839 break;;
2840 *.* )
openvcdiffd1845782009-03-20 21:56:15 +00002841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842 then :; else
2843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844 fi
2845 # We set ac_cv_exeext here because the later test for it is not
2846 # safe: cross compilers may not add the suffix if given an `-o'
2847 # argument, so we may need to know it at that point already.
2848 # Even if this section looks crufty: it has the advantage of
2849 # actually working.
openvcdiff311c7142008-08-26 19:29:25 +00002850 break;;
2851 * )
2852 break;;
2853 esac
2854done
openvcdiffd1845782009-03-20 21:56:15 +00002855test "$ac_cv_exeext" = no && ac_cv_exeext=
2856
openvcdiff311c7142008-08-26 19:29:25 +00002857else
openvcdiffd1845782009-03-20 21:56:15 +00002858 ac_file=''
2859fi
2860
2861{ echo "$as_me:$LINENO: result: $ac_file" >&5
2862echo "${ECHO_T}$ac_file" >&6; }
2863if test -z "$ac_file"; then
openvcdiff311c7142008-08-26 19:29:25 +00002864 echo "$as_me: failed program was:" >&5
2865sed 's/^/| /' conftest.$ac_ext >&5
2866
2867{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2868See \`config.log' for more details." >&5
2869echo "$as_me: error: C compiler cannot create executables
2870See \`config.log' for more details." >&2;}
2871 { (exit 77); exit 77; }; }
2872fi
2873
2874ac_exeext=$ac_cv_exeext
openvcdiff311c7142008-08-26 19:29:25 +00002875
openvcdiffd1845782009-03-20 21:56:15 +00002876# Check that the compiler produces executables we can run. If not, either
openvcdiff311c7142008-08-26 19:29:25 +00002877# the compiler is broken, or we cross compile.
openvcdiffd1845782009-03-20 21:56:15 +00002878{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2879echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002880# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2881# If not cross compiling, check that we can run a simple program.
2882if test "$cross_compiling" != yes; then
2883 if { ac_try='./$ac_file'
openvcdiffd1845782009-03-20 21:56:15 +00002884 { (case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_try") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00002890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 cross_compiling=no
2894 else
2895 if test "$cross_compiling" = maybe; then
2896 cross_compiling=yes
2897 else
2898 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2899If you meant to cross compile, use \`--host'.
2900See \`config.log' for more details." >&5
2901echo "$as_me: error: cannot run C compiled programs.
2902If you meant to cross compile, use \`--host'.
2903See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2905 fi
2906 fi
2907fi
openvcdiffd1845782009-03-20 21:56:15 +00002908{ echo "$as_me:$LINENO: result: yes" >&5
2909echo "${ECHO_T}yes" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002910
2911rm -f a.out a.exe conftest$ac_cv_exeext b.out
2912ac_clean_files=$ac_clean_files_save
openvcdiffd1845782009-03-20 21:56:15 +00002913# Check that the compiler produces executables we can run. If not, either
openvcdiff311c7142008-08-26 19:29:25 +00002914# the compiler is broken, or we cross compile.
openvcdiffd1845782009-03-20 21:56:15 +00002915{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2916echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2917{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2918echo "${ECHO_T}$cross_compiling" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002919
openvcdiffd1845782009-03-20 21:56:15 +00002920{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2921echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2922if { (ac_try="$ac_link"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
2927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_link") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00002929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; then
2932 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2933# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2934# work properly (i.e., refer to `conftest.exe'), while it won't with
2935# `rm'.
2936for ac_file in conftest.exe conftest conftest.*; do
2937 test -f "$ac_file" || continue
2938 case $ac_file in
openvcdiffd1845782009-03-20 21:56:15 +00002939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
openvcdiff311c7142008-08-26 19:29:25 +00002940 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
openvcdiff311c7142008-08-26 19:29:25 +00002941 break;;
2942 * ) break;;
2943 esac
2944done
2945else
2946 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2947See \`config.log' for more details." >&5
2948echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2949See \`config.log' for more details." >&2;}
2950 { (exit 1); exit 1; }; }
2951fi
2952
2953rm -f conftest$ac_cv_exeext
openvcdiffd1845782009-03-20 21:56:15 +00002954{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2955echo "${ECHO_T}$ac_cv_exeext" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002956
2957rm -f conftest.$ac_ext
2958EXEEXT=$ac_cv_exeext
2959ac_exeext=$EXEEXT
openvcdiffd1845782009-03-20 21:56:15 +00002960{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2961echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002962if test "${ac_cv_objext+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964else
2965 cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h. */
2971
2972int
2973main ()
2974{
2975
2976 ;
2977 return 0;
2978}
2979_ACEOF
2980rm -f conftest.o conftest.obj
openvcdiffd1845782009-03-20 21:56:15 +00002981if { (ac_try="$ac_compile"
2982case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00002988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
openvcdiffd1845782009-03-20 21:56:15 +00002991 for ac_file in conftest.o conftest.obj conftest.*; do
2992 test -f "$ac_file" || continue;
openvcdiff311c7142008-08-26 19:29:25 +00002993 case $ac_file in
openvcdiffd1845782009-03-20 21:56:15 +00002994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
openvcdiff311c7142008-08-26 19:29:25 +00002995 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2996 break;;
2997 esac
2998done
2999else
3000 echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3004See \`config.log' for more details." >&5
3005echo "$as_me: error: cannot compute suffix of object files: cannot compile
3006See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3008fi
3009
3010rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011fi
openvcdiffd1845782009-03-20 21:56:15 +00003012{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3013echo "${ECHO_T}$ac_cv_objext" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003014OBJEXT=$ac_cv_objext
3015ac_objext=$OBJEXT
openvcdiffd1845782009-03-20 21:56:15 +00003016{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3017echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003018if test "${ac_cv_c_compiler_gnu+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021 cat >conftest.$ac_ext <<_ACEOF
3022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
3027
3028int
3029main ()
3030{
3031#ifndef __GNUC__
3032 choke me
3033#endif
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00003040if { (ac_try="$ac_compile"
3041case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00003047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00003052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +00003056 ac_compiler_gnu=yes
3057else
3058 echo "$as_me: failed program was:" >&5
3059sed 's/^/| /' conftest.$ac_ext >&5
3060
openvcdiffd1845782009-03-20 21:56:15 +00003061 ac_compiler_gnu=no
openvcdiff311c7142008-08-26 19:29:25 +00003062fi
openvcdiffd1845782009-03-20 21:56:15 +00003063
3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003065ac_cv_c_compiler_gnu=$ac_compiler_gnu
3066
3067fi
openvcdiffd1845782009-03-20 21:56:15 +00003068{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3069echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003070GCC=`test $ac_compiler_gnu = yes && echo yes`
3071ac_test_CFLAGS=${CFLAGS+set}
3072ac_save_CFLAGS=$CFLAGS
openvcdiffd1845782009-03-20 21:56:15 +00003073{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3074echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003075if test "${ac_cv_prog_cc_g+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
openvcdiffd1845782009-03-20 21:56:15 +00003078 ac_save_c_werror_flag=$ac_c_werror_flag
3079 ac_c_werror_flag=yes
3080 ac_cv_prog_cc_g=no
3081 CFLAGS="-g"
3082 cat >conftest.$ac_ext <<_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +00003083/* confdefs.h. */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h. */
3088
3089int
3090main ()
3091{
3092
3093 ;
3094 return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00003098if { (ac_try="$ac_compile"
3099case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00003105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00003110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +00003114 ac_cv_prog_cc_g=yes
3115else
3116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
openvcdiffd1845782009-03-20 21:56:15 +00003119 CFLAGS=""
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 :
3153else
3154 echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3158 CFLAGS="-g"
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h. */
3165
3166int
3167main ()
3168{
3169
3170 ;
3171 return 0;
3172}
3173_ACEOF
3174rm -f conftest.$ac_objext
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3191 ac_cv_prog_cc_g=yes
3192else
3193 echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196
openvcdiff311c7142008-08-26 19:29:25 +00003197fi
openvcdiffd1845782009-03-20 21:56:15 +00003198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003200fi
openvcdiffd1845782009-03-20 21:56:15 +00003201
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203fi
3204
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3207fi
3208{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3209echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003210if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3214 CFLAGS="-g -O2"
3215 else
3216 CFLAGS="-g"
3217 fi
3218else
3219 if test "$GCC" = yes; then
3220 CFLAGS="-O2"
3221 else
3222 CFLAGS=
3223 fi
3224fi
openvcdiffd1845782009-03-20 21:56:15 +00003225{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3226echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3227if test "${ac_cv_prog_cc_c89+set}" = set; then
openvcdiff311c7142008-08-26 19:29:25 +00003228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
openvcdiffd1845782009-03-20 21:56:15 +00003230 ac_cv_prog_cc_c89=no
openvcdiff311c7142008-08-26 19:29:25 +00003231ac_save_CC=$CC
3232cat >conftest.$ac_ext <<_ACEOF
3233/* confdefs.h. */
3234_ACEOF
3235cat confdefs.h >>conftest.$ac_ext
3236cat >>conftest.$ac_ext <<_ACEOF
3237/* end confdefs.h. */
3238#include <stdarg.h>
3239#include <stdio.h>
3240#include <sys/types.h>
3241#include <sys/stat.h>
3242/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3243struct buf { int x; };
3244FILE * (*rcsopen) (struct buf *, struct stat *, int);
3245static char *e (p, i)
3246 char **p;
3247 int i;
3248{
3249 return p[i];
3250}
3251static char *f (char * (*g) (char **, int), char **p, ...)
3252{
3253 char *s;
3254 va_list v;
3255 va_start (v,p);
3256 s = g (p, va_arg (v,int));
3257 va_end (v);
3258 return s;
3259}
3260
3261/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3262 function prototypes and stuff, but not '\xHH' hex character constants.
3263 These don't provoke an error unfortunately, instead are silently treated
openvcdiffd1845782009-03-20 21:56:15 +00003264 as 'x'. The following induces an error, until -std is added to get
openvcdiff311c7142008-08-26 19:29:25 +00003265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3266 array size at least. It's necessary to write '\x00'==0 to get something
openvcdiffd1845782009-03-20 21:56:15 +00003267 that's true only with -std. */
openvcdiff311c7142008-08-26 19:29:25 +00003268int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3269
openvcdiffd1845782009-03-20 21:56:15 +00003270/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3271 inside strings and character constants. */
3272#define FOO(x) 'x'
3273int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3274
openvcdiff311c7142008-08-26 19:29:25 +00003275int test (int i, double x);
3276struct s1 {int (*f) (int a);};
3277struct s2 {int (*f) (double a);};
3278int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3279int argc;
3280char **argv;
3281int
3282main ()
3283{
3284return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3285 ;
3286 return 0;
3287}
3288_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00003289for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
openvcdiff311c7142008-08-26 19:29:25 +00003291do
3292 CC="$ac_save_CC $ac_arg"
3293 rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00003294if { (ac_try="$ac_compile"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00003301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00003306 (exit $ac_status); } && {
3307 test -z "$ac_c_werror_flag" ||
3308 test ! -s conftest.err
3309 } && test -s conftest.$ac_objext; then
3310 ac_cv_prog_cc_c89=$ac_arg
openvcdiff311c7142008-08-26 19:29:25 +00003311else
3312 echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
openvcdiffd1845782009-03-20 21:56:15 +00003315
openvcdiff311c7142008-08-26 19:29:25 +00003316fi
openvcdiffd1845782009-03-20 21:56:15 +00003317
3318rm -f core conftest.err conftest.$ac_objext
3319 test "x$ac_cv_prog_cc_c89" != "xno" && break
openvcdiff311c7142008-08-26 19:29:25 +00003320done
openvcdiffd1845782009-03-20 21:56:15 +00003321rm -f conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003322CC=$ac_save_CC
3323
3324fi
openvcdiffd1845782009-03-20 21:56:15 +00003325# AC_CACHE_VAL
3326case "x$ac_cv_prog_cc_c89" in
3327 x)
3328 { echo "$as_me:$LINENO: result: none needed" >&5
3329echo "${ECHO_T}none needed" >&6; } ;;
3330 xno)
3331 { echo "$as_me:$LINENO: result: unsupported" >&5
3332echo "${ECHO_T}unsupported" >&6; } ;;
openvcdiff311c7142008-08-26 19:29:25 +00003333 *)
openvcdiffd1845782009-03-20 21:56:15 +00003334 CC="$CC $ac_cv_prog_cc_c89"
3335 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3336echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
openvcdiff311c7142008-08-26 19:29:25 +00003337esac
3338
openvcdiff311c7142008-08-26 19:29:25 +00003339
openvcdiff311c7142008-08-26 19:29:25 +00003340ac_ext=c
3341ac_cpp='$CPP $CPPFLAGS'
3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345DEPDIR="${am__leading_dot}deps"
3346
openvcdiffd1845782009-03-20 21:56:15 +00003347ac_config_commands="$ac_config_commands depfiles"
openvcdiff311c7142008-08-26 19:29:25 +00003348
3349
3350am_make=${MAKE-make}
3351cat > confinc << 'END'
3352am__doit:
3353 @echo done
3354.PHONY: am__doit
3355END
3356# If we don't find an include directive, just comment out the code.
openvcdiffd1845782009-03-20 21:56:15 +00003357{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3358echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003359am__include="#"
3360am__quote=
3361_am_result=none
3362# First try GNU make style include.
3363echo "include confinc" > confmf
3364# We grep out `Entering directory' and `Leaving directory'
3365# messages which can occur if `w' ends up in MAKEFLAGS.
3366# In particular we don't look at `^make:' because GNU make might
3367# be invoked under some other name (usually "gmake"), in which
3368# case it prints its new name instead of `make'.
3369if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3370 am__include=include
3371 am__quote=
3372 _am_result=GNU
3373fi
3374# Now try BSD make style include.
3375if test "$am__include" = "#"; then
3376 echo '.include "confinc"' > confmf
3377 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3378 am__include=.include
3379 am__quote="\""
3380 _am_result=BSD
3381 fi
3382fi
3383
3384
openvcdiffd1845782009-03-20 21:56:15 +00003385{ echo "$as_me:$LINENO: result: $_am_result" >&5
3386echo "${ECHO_T}$_am_result" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003387rm -f confinc confmf
3388
openvcdiffd1845782009-03-20 21:56:15 +00003389# Check whether --enable-dependency-tracking was given.
openvcdiff311c7142008-08-26 19:29:25 +00003390if test "${enable_dependency_tracking+set}" = set; then
openvcdiffd1845782009-03-20 21:56:15 +00003391 enableval=$enable_dependency_tracking;
3392fi
openvcdiff311c7142008-08-26 19:29:25 +00003393
openvcdiff311c7142008-08-26 19:29:25 +00003394if test "x$enable_dependency_tracking" != xno; then
3395 am_depcomp="$ac_aux_dir/depcomp"
3396 AMDEPBACKSLASH='\'
3397fi
openvcdiffd1845782009-03-20 21:56:15 +00003398 if test "x$enable_dependency_tracking" != xno; then
openvcdiff311c7142008-08-26 19:29:25 +00003399 AMDEP_TRUE=
3400 AMDEP_FALSE='#'
3401else
3402 AMDEP_TRUE='#'
3403 AMDEP_FALSE=
3404fi
3405
3406
3407
openvcdiff311c7142008-08-26 19:29:25 +00003408depcc="$CC" am_compiler_list=
3409
openvcdiffd1845782009-03-20 21:56:15 +00003410{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3411echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003412if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3416 # We make a subdir and do the tests there. Otherwise we can end up
3417 # making bogus files that we don't know about and never remove. For
3418 # instance it was reported that on HP-UX the gcc test will end up
3419 # making a dummy file named `D' -- because `-MD' means `put the output
3420 # in D'.
3421 mkdir conftest.dir
3422 # Copy depcomp to subdir because otherwise we won't find it if we're
3423 # using a relative directory.
3424 cp "$am_depcomp" conftest.dir
3425 cd conftest.dir
3426 # We will build objects and dependencies in a subdirectory because
3427 # it helps to detect inapplicable dependency modes. For instance
3428 # both Tru64's cc and ICC support -MD to output dependencies as a
3429 # side effect of compilation, but ICC will put the dependencies in
3430 # the current directory while Tru64 will put them in the object
3431 # directory.
3432 mkdir sub
3433
3434 am_cv_CC_dependencies_compiler_type=none
3435 if test "$am_compiler_list" = ""; then
3436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3437 fi
3438 for depmode in $am_compiler_list; do
3439 # Setup a source with many dependencies, because some compilers
3440 # like to wrap large dependency lists on column 80 (with \), and
3441 # we should not choose a depcomp mode which is confused by this.
3442 #
3443 # We need to recreate these files for each test, as the compiler may
3444 # overwrite some of them when testing with obscure command lines.
3445 # This happens at least with the AIX C compiler.
3446 : > sub/conftest.c
3447 for i in 1 2 3 4 5 6; do
3448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3449 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3450 # Solaris 8's {/usr,}/bin/sh.
3451 touch sub/conftst$i.h
3452 done
3453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3454
3455 case $depmode in
3456 nosideeffect)
3457 # after this tag, mechanisms are not by side-effect, so they'll
3458 # only be used when explicitly requested
3459 if test "x$enable_dependency_tracking" = xyes; then
3460 continue
3461 else
3462 break
3463 fi
3464 ;;
3465 none) break ;;
3466 esac
3467 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3468 # mode. It turns out that the SunPro C++ compiler does not properly
3469 # handle `-M -o', and we need to detect this.
3470 if depmode=$depmode \
3471 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3473 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3474 >/dev/null 2>conftest.err &&
openvcdiffd1845782009-03-20 21:56:15 +00003475 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
openvcdiff311c7142008-08-26 19:29:25 +00003476 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3477 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3478 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3479 # icc doesn't choke on unknown options, it will just issue warnings
3480 # or remarks (even with -Werror). So we grep stderr for any message
3481 # that says an option was ignored or not supported.
3482 # When given -MP, icc 7.0 and 7.1 complain thusly:
3483 # icc: Command line warning: ignoring option '-M'; no argument required
3484 # The diagnosis changed in icc 8.0:
3485 # icc: Command line remark: option '-MP' not supported
3486 if (grep 'ignoring option' conftest.err ||
3487 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3488 am_cv_CC_dependencies_compiler_type=$depmode
3489 break
3490 fi
3491 fi
3492 done
3493
3494 cd ..
3495 rm -rf conftest.dir
3496else
3497 am_cv_CC_dependencies_compiler_type=none
3498fi
3499
3500fi
openvcdiffd1845782009-03-20 21:56:15 +00003501{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3502echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003503CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3504
openvcdiffd1845782009-03-20 21:56:15 +00003505 if
openvcdiff311c7142008-08-26 19:29:25 +00003506 test "x$enable_dependency_tracking" != xno \
3507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3508 am__fastdepCC_TRUE=
3509 am__fastdepCC_FALSE='#'
3510else
3511 am__fastdepCC_TRUE='#'
3512 am__fastdepCC_FALSE=
3513fi
3514
3515
3516ac_ext=c
3517ac_cpp='$CPP $CPPFLAGS'
3518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520ac_compiler_gnu=$ac_cv_c_compiler_gnu
openvcdiffd1845782009-03-20 21:56:15 +00003521{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3522echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003523# On Suns, sometimes $CPP names a directory.
3524if test -n "$CPP" && test -d "$CPP"; then
3525 CPP=
3526fi
3527if test -z "$CPP"; then
3528 if test "${ac_cv_prog_CPP+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531 # Double quotes because CPP needs to be expanded
3532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3533 do
3534 ac_preproc_ok=false
3535for ac_c_preproc_warn_flag in '' yes
3536do
3537 # Use a header file that comes with gcc, so configuring glibc
3538 # with a fresh cross-compiler works.
3539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540 # <limits.h> exists even on freestanding compilers.
3541 # On the NeXT, cc -E runs the code through the compiler's parser,
3542 # not just through cpp. "Syntax error" is here to catch this case.
3543 cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h. */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h. */
3549#ifdef __STDC__
3550# include <limits.h>
3551#else
3552# include <assert.h>
3553#endif
3554 Syntax error
3555_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00003556if { (ac_try="$ac_cpp conftest.$ac_ext"
3557case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00003563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00003568 (exit $ac_status); } >/dev/null && {
3569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 }; then
openvcdiff311c7142008-08-26 19:29:25 +00003572 :
3573else
3574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 # Broken: fails on valid input.
3578continue
3579fi
openvcdiffd1845782009-03-20 21:56:15 +00003580
openvcdiff311c7142008-08-26 19:29:25 +00003581rm -f conftest.err conftest.$ac_ext
3582
openvcdiffd1845782009-03-20 21:56:15 +00003583 # OK, works on sane cases. Now check whether nonexistent headers
openvcdiff311c7142008-08-26 19:29:25 +00003584 # can be detected and how.
3585 cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h. */
3591#include <ac_nonexistent.h>
3592_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00003593if { (ac_try="$ac_cpp conftest.$ac_ext"
3594case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597esac
3598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00003600 ac_status=$?
3601 grep -v '^ *+' conftest.er1 >conftest.err
3602 rm -f conftest.er1
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00003605 (exit $ac_status); } >/dev/null && {
3606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3607 test ! -s conftest.err
3608 }; then
openvcdiff311c7142008-08-26 19:29:25 +00003609 # Broken: success on invalid input.
3610continue
3611else
3612 echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 # Passes both tests.
3616ac_preproc_ok=:
3617break
3618fi
openvcdiffd1845782009-03-20 21:56:15 +00003619
openvcdiff311c7142008-08-26 19:29:25 +00003620rm -f conftest.err conftest.$ac_ext
3621
3622done
3623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3624rm -f conftest.err conftest.$ac_ext
3625if $ac_preproc_ok; then
3626 break
3627fi
3628
3629 done
3630 ac_cv_prog_CPP=$CPP
3631
3632fi
3633 CPP=$ac_cv_prog_CPP
3634else
3635 ac_cv_prog_CPP=$CPP
3636fi
openvcdiffd1845782009-03-20 21:56:15 +00003637{ echo "$as_me:$LINENO: result: $CPP" >&5
3638echo "${ECHO_T}$CPP" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003639ac_preproc_ok=false
3640for ac_c_preproc_warn_flag in '' yes
3641do
3642 # Use a header file that comes with gcc, so configuring glibc
3643 # with a fresh cross-compiler works.
3644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645 # <limits.h> exists even on freestanding compilers.
3646 # On the NeXT, cc -E runs the code through the compiler's parser,
3647 # not just through cpp. "Syntax error" is here to catch this case.
3648 cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h. */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h. */
3654#ifdef __STDC__
3655# include <limits.h>
3656#else
3657# include <assert.h>
3658#endif
3659 Syntax error
3660_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00003661if { (ac_try="$ac_cpp conftest.$ac_ext"
3662case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00003668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00003673 (exit $ac_status); } >/dev/null && {
3674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 }; then
openvcdiff311c7142008-08-26 19:29:25 +00003677 :
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 # Broken: fails on valid input.
3683continue
3684fi
openvcdiffd1845782009-03-20 21:56:15 +00003685
openvcdiff311c7142008-08-26 19:29:25 +00003686rm -f conftest.err conftest.$ac_ext
3687
openvcdiffd1845782009-03-20 21:56:15 +00003688 # OK, works on sane cases. Now check whether nonexistent headers
openvcdiff311c7142008-08-26 19:29:25 +00003689 # can be detected and how.
3690 cat >conftest.$ac_ext <<_ACEOF
3691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h. */
3696#include <ac_nonexistent.h>
3697_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00003698if { (ac_try="$ac_cpp conftest.$ac_ext"
3699case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702esac
3703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00003705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00003710 (exit $ac_status); } >/dev/null && {
3711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 }; then
openvcdiff311c7142008-08-26 19:29:25 +00003714 # Broken: success on invalid input.
3715continue
3716else
3717 echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 # Passes both tests.
3721ac_preproc_ok=:
3722break
3723fi
openvcdiffd1845782009-03-20 21:56:15 +00003724
openvcdiff311c7142008-08-26 19:29:25 +00003725rm -f conftest.err conftest.$ac_ext
3726
3727done
3728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729rm -f conftest.err conftest.$ac_ext
3730if $ac_preproc_ok; then
3731 :
3732else
3733 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&5
3735echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3736See \`config.log' for more details." >&2;}
3737 { (exit 1); exit 1; }; }
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
openvcdiffd1845782009-03-20 21:56:15 +00003746ac_ext=cpp
openvcdiff311c7142008-08-26 19:29:25 +00003747ac_cpp='$CXXCPP $CPPFLAGS'
3748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
openvcdiffd1845782009-03-20 21:56:15 +00003751if test -z "$CXX"; then
3752 if test -n "$CCC"; then
3753 CXX=$CCC
3754 else
3755 if test -n "$ac_tool_prefix"; then
3756 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
openvcdiff311c7142008-08-26 19:29:25 +00003757 do
3758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00003760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003762if test "${ac_cv_prog_CXX+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765 if test -n "$CXX"; then
3766 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00003774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00003775 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3778 fi
3779done
3780done
openvcdiffd1845782009-03-20 21:56:15 +00003781IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00003782
3783fi
3784fi
3785CXX=$ac_cv_prog_CXX
3786if test -n "$CXX"; then
openvcdiffd1845782009-03-20 21:56:15 +00003787 { echo "$as_me:$LINENO: result: $CXX" >&5
3788echo "${ECHO_T}$CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003789else
openvcdiffd1845782009-03-20 21:56:15 +00003790 { echo "$as_me:$LINENO: result: no" >&5
3791echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003792fi
3793
openvcdiffd1845782009-03-20 21:56:15 +00003794
openvcdiff311c7142008-08-26 19:29:25 +00003795 test -n "$CXX" && break
3796 done
3797fi
3798if test -z "$CXX"; then
3799 ac_ct_CXX=$CXX
openvcdiffd1845782009-03-20 21:56:15 +00003800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
openvcdiff311c7142008-08-26 19:29:25 +00003801do
3802 # Extract the first word of "$ac_prog", so it can be a program name with args.
3803set dummy $ac_prog; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00003804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003806if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808else
3809 if test -n "$ac_ct_CXX"; then
3810 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3811else
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00003818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00003819 ac_cv_prog_ac_ct_CXX="$ac_prog"
3820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823done
3824done
openvcdiffd1845782009-03-20 21:56:15 +00003825IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00003826
3827fi
3828fi
3829ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3830if test -n "$ac_ct_CXX"; then
openvcdiffd1845782009-03-20 21:56:15 +00003831 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3832echo "${ECHO_T}$ac_ct_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003833else
openvcdiffd1845782009-03-20 21:56:15 +00003834 { echo "$as_me:$LINENO: result: no" >&5
3835echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003836fi
3837
openvcdiffd1845782009-03-20 21:56:15 +00003838
openvcdiff311c7142008-08-26 19:29:25 +00003839 test -n "$ac_ct_CXX" && break
3840done
openvcdiff311c7142008-08-26 19:29:25 +00003841
openvcdiffd1845782009-03-20 21:56:15 +00003842 if test "x$ac_ct_CXX" = x; then
3843 CXX="g++"
3844 else
3845 case $cross_compiling:$ac_tool_warned in
3846yes:)
3847{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3848whose name does not start with the host triplet. If you think this
3849configuration is useful to you, please write to autoconf@gnu.org." >&5
3850echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3851whose name does not start with the host triplet. If you think this
3852configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3853ac_tool_warned=yes ;;
3854esac
3855 CXX=$ac_ct_CXX
3856 fi
openvcdiff311c7142008-08-26 19:29:25 +00003857fi
3858
openvcdiffd1845782009-03-20 21:56:15 +00003859 fi
3860fi
openvcdiff311c7142008-08-26 19:29:25 +00003861# Provide some information about the compiler.
openvcdiffd1845782009-03-20 21:56:15 +00003862echo "$as_me:$LINENO: checking for C++ compiler version" >&5
openvcdiff311c7142008-08-26 19:29:25 +00003863ac_compiler=`set X $ac_compile; echo $2`
openvcdiffd1845782009-03-20 21:56:15 +00003864{ (ac_try="$ac_compiler --version >&5"
3865case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868esac
3869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870 (eval "$ac_compiler --version >&5") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00003871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }
openvcdiffd1845782009-03-20 21:56:15 +00003874{ (ac_try="$ac_compiler -v >&5"
3875case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878esac
3879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_compiler -v >&5") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00003881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }
openvcdiffd1845782009-03-20 21:56:15 +00003884{ (ac_try="$ac_compiler -V >&5"
3885case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888esac
3889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_compiler -V >&5") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00003891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }
3894
openvcdiffd1845782009-03-20 21:56:15 +00003895{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3896echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003897if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906
3907int
3908main ()
3909{
3910#ifndef __GNUC__
3911 choke me
3912#endif
3913
3914 ;
3915 return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00003919if { (ac_try="$ac_compile"
3920case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923esac
3924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00003926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00003931 (exit $ac_status); } && {
3932 test -z "$ac_cxx_werror_flag" ||
3933 test ! -s conftest.err
3934 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +00003935 ac_compiler_gnu=yes
3936else
3937 echo "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
openvcdiffd1845782009-03-20 21:56:15 +00003940 ac_compiler_gnu=no
openvcdiff311c7142008-08-26 19:29:25 +00003941fi
openvcdiffd1845782009-03-20 21:56:15 +00003942
3943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003944ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3945
3946fi
openvcdiffd1845782009-03-20 21:56:15 +00003947{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3948echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003949GXX=`test $ac_compiler_gnu = yes && echo yes`
3950ac_test_CXXFLAGS=${CXXFLAGS+set}
3951ac_save_CXXFLAGS=$CXXFLAGS
openvcdiffd1845782009-03-20 21:56:15 +00003952{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3953echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003954if test "${ac_cv_prog_cxx_g+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
openvcdiffd1845782009-03-20 21:56:15 +00003957 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3958 ac_cxx_werror_flag=yes
3959 ac_cv_prog_cxx_g=no
3960 CXXFLAGS="-g"
3961 cat >conftest.$ac_ext <<_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +00003962/* confdefs.h. */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h. */
3967
3968int
3969main ()
3970{
3971
3972 ;
3973 return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00003977if { (ac_try="$ac_compile"
3978case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981esac
3982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00003984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00003989 (exit $ac_status); } && {
3990 test -z "$ac_cxx_werror_flag" ||
3991 test ! -s conftest.err
3992 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +00003993 ac_cv_prog_cxx_g=yes
3994else
3995 echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
openvcdiffd1845782009-03-20 21:56:15 +00003998 CXXFLAGS=""
3999 cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
4005
4006int
4007main ()
4008{
4009
4010 ;
4011 return 0;
4012}
4013_ACEOF
4014rm -f conftest.$ac_objext
4015if { (ac_try="$ac_compile"
4016case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019esac
4020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_cxx_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.$ac_objext; then
4031 :
4032else
4033 echo "$as_me: failed program was:" >&5
4034sed 's/^/| /' conftest.$ac_ext >&5
4035
4036 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4037 CXXFLAGS="-g"
4038 cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h. */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h. */
4044
4045int
4046main ()
4047{
4048
4049 ;
4050 return 0;
4051}
4052_ACEOF
4053rm -f conftest.$ac_objext
4054if { (ac_try="$ac_compile"
4055case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058esac
4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } && {
4067 test -z "$ac_cxx_werror_flag" ||
4068 test ! -s conftest.err
4069 } && test -s conftest.$ac_objext; then
4070 ac_cv_prog_cxx_g=yes
4071else
4072 echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075
openvcdiff311c7142008-08-26 19:29:25 +00004076fi
openvcdiffd1845782009-03-20 21:56:15 +00004077
4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00004079fi
openvcdiffd1845782009-03-20 21:56:15 +00004080
4081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082fi
4083
4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4086fi
4087{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4088echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004089if test "$ac_test_CXXFLAGS" = set; then
4090 CXXFLAGS=$ac_save_CXXFLAGS
4091elif test $ac_cv_prog_cxx_g = yes; then
4092 if test "$GXX" = yes; then
4093 CXXFLAGS="-g -O2"
4094 else
4095 CXXFLAGS="-g"
4096 fi
4097else
4098 if test "$GXX" = yes; then
4099 CXXFLAGS="-O2"
4100 else
4101 CXXFLAGS=
4102 fi
4103fi
openvcdiff311c7142008-08-26 19:29:25 +00004104ac_ext=c
4105ac_cpp='$CPP $CPPFLAGS'
4106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
4110depcc="$CXX" am_compiler_list=
4111
openvcdiffd1845782009-03-20 21:56:15 +00004112{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4113echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004114if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116else
4117 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4118 # We make a subdir and do the tests there. Otherwise we can end up
4119 # making bogus files that we don't know about and never remove. For
4120 # instance it was reported that on HP-UX the gcc test will end up
4121 # making a dummy file named `D' -- because `-MD' means `put the output
4122 # in D'.
4123 mkdir conftest.dir
4124 # Copy depcomp to subdir because otherwise we won't find it if we're
4125 # using a relative directory.
4126 cp "$am_depcomp" conftest.dir
4127 cd conftest.dir
4128 # We will build objects and dependencies in a subdirectory because
4129 # it helps to detect inapplicable dependency modes. For instance
4130 # both Tru64's cc and ICC support -MD to output dependencies as a
4131 # side effect of compilation, but ICC will put the dependencies in
4132 # the current directory while Tru64 will put them in the object
4133 # directory.
4134 mkdir sub
4135
4136 am_cv_CXX_dependencies_compiler_type=none
4137 if test "$am_compiler_list" = ""; then
4138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4139 fi
4140 for depmode in $am_compiler_list; do
4141 # Setup a source with many dependencies, because some compilers
4142 # like to wrap large dependency lists on column 80 (with \), and
4143 # we should not choose a depcomp mode which is confused by this.
4144 #
4145 # We need to recreate these files for each test, as the compiler may
4146 # overwrite some of them when testing with obscure command lines.
4147 # This happens at least with the AIX C compiler.
4148 : > sub/conftest.c
4149 for i in 1 2 3 4 5 6; do
4150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4151 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4152 # Solaris 8's {/usr,}/bin/sh.
4153 touch sub/conftst$i.h
4154 done
4155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4156
4157 case $depmode in
4158 nosideeffect)
4159 # after this tag, mechanisms are not by side-effect, so they'll
4160 # only be used when explicitly requested
4161 if test "x$enable_dependency_tracking" = xyes; then
4162 continue
4163 else
4164 break
4165 fi
4166 ;;
4167 none) break ;;
4168 esac
4169 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4170 # mode. It turns out that the SunPro C++ compiler does not properly
4171 # handle `-M -o', and we need to detect this.
4172 if depmode=$depmode \
4173 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4174 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4175 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4176 >/dev/null 2>conftest.err &&
openvcdiffd1845782009-03-20 21:56:15 +00004177 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
openvcdiff311c7142008-08-26 19:29:25 +00004178 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4179 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4181 # icc doesn't choke on unknown options, it will just issue warnings
4182 # or remarks (even with -Werror). So we grep stderr for any message
4183 # that says an option was ignored or not supported.
4184 # When given -MP, icc 7.0 and 7.1 complain thusly:
4185 # icc: Command line warning: ignoring option '-M'; no argument required
4186 # The diagnosis changed in icc 8.0:
4187 # icc: Command line remark: option '-MP' not supported
4188 if (grep 'ignoring option' conftest.err ||
4189 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4190 am_cv_CXX_dependencies_compiler_type=$depmode
4191 break
4192 fi
4193 fi
4194 done
4195
4196 cd ..
4197 rm -rf conftest.dir
4198else
4199 am_cv_CXX_dependencies_compiler_type=none
4200fi
4201
4202fi
openvcdiffd1845782009-03-20 21:56:15 +00004203{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4204echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004205CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4206
openvcdiffd1845782009-03-20 21:56:15 +00004207 if
openvcdiff311c7142008-08-26 19:29:25 +00004208 test "x$enable_dependency_tracking" != xno \
4209 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4210 am__fastdepCXX_TRUE=
4211 am__fastdepCXX_FALSE='#'
4212else
4213 am__fastdepCXX_TRUE='#'
4214 am__fastdepCXX_FALSE=
4215fi
4216
4217
openvcdiffd1845782009-03-20 21:56:15 +00004218 if test "$GCC" = yes; then
openvcdiff311c7142008-08-26 19:29:25 +00004219 GCC_TRUE=
4220 GCC_FALSE='#'
4221else
4222 GCC_TRUE='#'
4223 GCC_FALSE=
4224fi
4225 # let the Makefile know if we're gcc
4226# Make sure we can run config.sub.
openvcdiffd1845782009-03-20 21:56:15 +00004227$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4228 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4229echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +00004230 { (exit 1); exit 1; }; }
4231
openvcdiffd1845782009-03-20 21:56:15 +00004232{ echo "$as_me:$LINENO: checking build system type" >&5
4233echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004234if test "${ac_cv_build+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236else
openvcdiffd1845782009-03-20 21:56:15 +00004237 ac_build_alias=$build_alias
4238test "x$ac_build_alias" = x &&
4239 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4240test "x$ac_build_alias" = x &&
openvcdiff311c7142008-08-26 19:29:25 +00004241 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4242echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4243 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +00004244ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4245 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4246echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +00004247 { (exit 1); exit 1; }; }
4248
4249fi
openvcdiffd1845782009-03-20 21:56:15 +00004250{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4251echo "${ECHO_T}$ac_cv_build" >&6; }
4252case $ac_cv_build in
4253*-*-*) ;;
4254*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4255echo "$as_me: error: invalid value of canonical build" >&2;}
4256 { (exit 1); exit 1; }; };;
4257esac
openvcdiff311c7142008-08-26 19:29:25 +00004258build=$ac_cv_build
openvcdiffd1845782009-03-20 21:56:15 +00004259ac_save_IFS=$IFS; IFS='-'
4260set x $ac_cv_build
4261shift
4262build_cpu=$1
4263build_vendor=$2
4264shift; shift
4265# Remember, the first character of IFS is used to create $*,
4266# except with old shells:
4267build_os=$*
4268IFS=$ac_save_IFS
4269case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
openvcdiff311c7142008-08-26 19:29:25 +00004270
4271
openvcdiffd1845782009-03-20 21:56:15 +00004272{ echo "$as_me:$LINENO: checking host system type" >&5
4273echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004274if test "${ac_cv_host+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
openvcdiffd1845782009-03-20 21:56:15 +00004277 if test "x$host_alias" = x; then
4278 ac_cv_host=$ac_cv_build
4279else
4280 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4281 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4282echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +00004283 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +00004284fi
openvcdiff311c7142008-08-26 19:29:25 +00004285
4286fi
openvcdiffd1845782009-03-20 21:56:15 +00004287{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4288echo "${ECHO_T}$ac_cv_host" >&6; }
4289case $ac_cv_host in
4290*-*-*) ;;
4291*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4292echo "$as_me: error: invalid value of canonical host" >&2;}
4293 { (exit 1); exit 1; }; };;
4294esac
openvcdiff311c7142008-08-26 19:29:25 +00004295host=$ac_cv_host
openvcdiffd1845782009-03-20 21:56:15 +00004296ac_save_IFS=$IFS; IFS='-'
4297set x $ac_cv_host
4298shift
4299host_cpu=$1
4300host_vendor=$2
4301shift; shift
4302# Remember, the first character of IFS is used to create $*,
4303# except with old shells:
4304host_os=$*
4305IFS=$ac_save_IFS
4306case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
openvcdiff311c7142008-08-26 19:29:25 +00004307
4308
4309
openvcdiffbaf44ea2009-04-09 19:20:49 +00004310# Issue #21: Fail to test on MinGW 5.1.4
4311# Disabling fast install keeps libtool from creating wrapper scripts around
4312# the executables it builds. Such scripts have caused failures on MinGW.
4313# Using this option means an extra link step is executed during "make install".
4314# Check whether --enable-fast-install was given.
4315if test "${enable_fast_install+set}" = set; then
4316 enableval=$enable_fast_install; p=${PACKAGE-default}
4317 case $enableval in
4318 yes) enable_fast_install=yes ;;
4319 no) enable_fast_install=no ;;
4320 *)
4321 enable_fast_install=no
4322 # Look at the argument we got. We use all the common list separators.
4323 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4324 for pkg in $enableval; do
4325 IFS="$lt_save_ifs"
4326 if test "X$pkg" = "X$p"; then
4327 enable_fast_install=yes
4328 fi
4329 done
4330 IFS="$lt_save_ifs"
4331 ;;
4332 esac
4333else
4334 enable_fast_install=no
4335fi
4336
4337
4338
4339
openvcdiffd1845782009-03-20 21:56:15 +00004340# Check whether --enable-shared was given.
openvcdiff311c7142008-08-26 19:29:25 +00004341if test "${enable_shared+set}" = set; then
openvcdiffd1845782009-03-20 21:56:15 +00004342 enableval=$enable_shared; p=${PACKAGE-default}
openvcdiff311c7142008-08-26 19:29:25 +00004343 case $enableval in
4344 yes) enable_shared=yes ;;
4345 no) enable_shared=no ;;
4346 *)
4347 enable_shared=no
4348 # Look at the argument we got. We use all the common list separators.
4349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4350 for pkg in $enableval; do
4351 IFS="$lt_save_ifs"
4352 if test "X$pkg" = "X$p"; then
4353 enable_shared=yes
4354 fi
4355 done
4356 IFS="$lt_save_ifs"
4357 ;;
4358 esac
4359else
4360 enable_shared=yes
openvcdiffd1845782009-03-20 21:56:15 +00004361fi
openvcdiff311c7142008-08-26 19:29:25 +00004362
openvcdiffd1845782009-03-20 21:56:15 +00004363
4364# Check whether --enable-static was given.
openvcdiff311c7142008-08-26 19:29:25 +00004365if test "${enable_static+set}" = set; then
openvcdiffd1845782009-03-20 21:56:15 +00004366 enableval=$enable_static; p=${PACKAGE-default}
openvcdiff311c7142008-08-26 19:29:25 +00004367 case $enableval in
4368 yes) enable_static=yes ;;
4369 no) enable_static=no ;;
4370 *)
4371 enable_static=no
4372 # Look at the argument we got. We use all the common list separators.
4373 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4374 for pkg in $enableval; do
4375 IFS="$lt_save_ifs"
4376 if test "X$pkg" = "X$p"; then
4377 enable_static=yes
4378 fi
4379 done
4380 IFS="$lt_save_ifs"
4381 ;;
4382 esac
4383else
4384 enable_static=yes
openvcdiffd1845782009-03-20 21:56:15 +00004385fi
openvcdiff311c7142008-08-26 19:29:25 +00004386
openvcdiffd1845782009-03-20 21:56:15 +00004387
openvcdiffd1845782009-03-20 21:56:15 +00004388{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4389echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004390if test "${lt_cv_path_SED+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393 # Loop through the user's path and test for sed and gsed.
4394# Then use that list of sed's as ones to test for truncation.
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for lt_ac_prog in sed gsed; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00004402 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00004403 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4404 fi
4405 done
4406 done
4407done
openvcdiffd1845782009-03-20 21:56:15 +00004408IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00004409lt_ac_max=0
4410lt_ac_count=0
4411# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4412# along with /bin/sed that truncates output.
4413for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4414 test ! -f $lt_ac_sed && continue
4415 cat /dev/null > conftest.in
4416 lt_ac_count=0
4417 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4418 # Check for GNU sed and select it if it is found.
4419 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4420 lt_cv_path_SED=$lt_ac_sed
4421 break
4422 fi
4423 while true; do
4424 cat conftest.in conftest.in >conftest.tmp
4425 mv conftest.tmp conftest.in
4426 cp conftest.in conftest.nl
4427 echo >>conftest.nl
4428 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4429 cmp -s conftest.out conftest.nl || break
4430 # 10000 chars as input seems more than enough
4431 test $lt_ac_count -gt 10 && break
4432 lt_ac_count=`expr $lt_ac_count + 1`
4433 if test $lt_ac_count -gt $lt_ac_max; then
4434 lt_ac_max=$lt_ac_count
4435 lt_cv_path_SED=$lt_ac_sed
4436 fi
4437 done
4438done
4439
4440fi
4441
4442SED=$lt_cv_path_SED
openvcdiff311c7142008-08-26 19:29:25 +00004443
openvcdiffd1845782009-03-20 21:56:15 +00004444{ echo "$as_me:$LINENO: result: $SED" >&5
4445echo "${ECHO_T}$SED" >&6; }
4446
4447{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4448echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4449if test "${ac_cv_path_GREP+set}" = set; then
openvcdiff311c7142008-08-26 19:29:25 +00004450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451else
openvcdiffd1845782009-03-20 21:56:15 +00004452 # Extract the first word of "grep ggrep" to use in msg output
4453if test -z "$GREP"; then
4454set dummy grep ggrep; ac_prog_name=$2
4455if test "${ac_cv_path_GREP+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458 ac_path_GREP_found=false
4459# Loop through the user's path and test for each of PROGNAME-LIST
4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in grep ggrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4468 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4469 # Check for GNU ac_path_GREP and select it if it is found.
4470 # Check for GNU $ac_path_GREP
4471case `"$ac_path_GREP" --version 2>&1` in
4472*GNU*)
4473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4474*)
4475 ac_count=0
4476 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4477 while :
4478 do
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 echo 'GREP' >> "conftest.nl"
4483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 ac_count=`expr $ac_count + 1`
4486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_GREP="$ac_path_GREP"
4489 ac_path_GREP_max=$ac_count
openvcdiff311c7142008-08-26 19:29:25 +00004490 fi
openvcdiffd1845782009-03-20 21:56:15 +00004491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495esac
4496
4497
4498 $ac_path_GREP_found && break 3
4499 done
4500done
4501
4502done
4503IFS=$as_save_IFS
4504
4505
openvcdiff311c7142008-08-26 19:29:25 +00004506fi
openvcdiffd1845782009-03-20 21:56:15 +00004507
4508GREP="$ac_cv_path_GREP"
4509if test -z "$GREP"; then
4510 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4511echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4512 { (exit 1); exit 1; }; }
4513fi
4514
4515else
4516 ac_cv_path_GREP=$GREP
4517fi
4518
4519
4520fi
4521{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4522echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4523 GREP="$ac_cv_path_GREP"
4524
4525
4526{ echo "$as_me:$LINENO: checking for egrep" >&5
4527echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4528if test "${ac_cv_path_EGREP+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4532 then ac_cv_path_EGREP="$GREP -E"
4533 else
4534 # Extract the first word of "egrep" to use in msg output
4535if test -z "$EGREP"; then
4536set dummy egrep; ac_prog_name=$2
4537if test "${ac_cv_path_EGREP+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540 ac_path_EGREP_found=false
4541# Loop through the user's path and test for each of PROGNAME-LIST
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4544do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_prog in egrep; do
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4550 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4551 # Check for GNU ac_path_EGREP and select it if it is found.
4552 # Check for GNU $ac_path_EGREP
4553case `"$ac_path_EGREP" --version 2>&1` in
4554*GNU*)
4555 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4556*)
4557 ac_count=0
4558 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4559 while :
4560 do
4561 cat "conftest.in" "conftest.in" >"conftest.tmp"
4562 mv "conftest.tmp" "conftest.in"
4563 cp "conftest.in" "conftest.nl"
4564 echo 'EGREP' >> "conftest.nl"
4565 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4567 ac_count=`expr $ac_count + 1`
4568 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4569 # Best one so far, save it but keep looking for a better one
4570 ac_cv_path_EGREP="$ac_path_EGREP"
4571 ac_path_EGREP_max=$ac_count
4572 fi
4573 # 10*(2^10) chars as input seems more than enough
4574 test $ac_count -gt 10 && break
4575 done
4576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4577esac
4578
4579
4580 $ac_path_EGREP_found && break 3
4581 done
4582done
4583
4584done
4585IFS=$as_save_IFS
4586
4587
4588fi
4589
4590EGREP="$ac_cv_path_EGREP"
4591if test -z "$EGREP"; then
4592 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4593echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4594 { (exit 1); exit 1; }; }
4595fi
4596
4597else
4598 ac_cv_path_EGREP=$EGREP
4599fi
4600
4601
4602 fi
4603fi
4604{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4605echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4606 EGREP="$ac_cv_path_EGREP"
openvcdiff311c7142008-08-26 19:29:25 +00004607
4608
4609
openvcdiffd1845782009-03-20 21:56:15 +00004610# Check whether --with-gnu-ld was given.
openvcdiff311c7142008-08-26 19:29:25 +00004611if test "${with_gnu_ld+set}" = set; then
openvcdiffd1845782009-03-20 21:56:15 +00004612 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
openvcdiff311c7142008-08-26 19:29:25 +00004613else
4614 with_gnu_ld=no
openvcdiffd1845782009-03-20 21:56:15 +00004615fi
4616
openvcdiff311c7142008-08-26 19:29:25 +00004617ac_prog=ld
4618if test "$GCC" = yes; then
4619 # Check if gcc -print-prog-name=ld gives a path.
openvcdiffd1845782009-03-20 21:56:15 +00004620 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4621echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004622 case $host in
4623 *-*-mingw*)
4624 # gcc leaves a trailing carriage return which upsets mingw
4625 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4626 *)
4627 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4628 esac
4629 case $ac_prog in
4630 # Accept absolute paths.
4631 [\\/]* | ?:[\\/]*)
4632 re_direlt='/[^/][^/]*/\.\./'
4633 # Canonicalize the pathname of ld
4634 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4635 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4636 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4637 done
4638 test -z "$LD" && LD="$ac_prog"
4639 ;;
4640 "")
4641 # If it fails, then pretend we aren't using GCC.
4642 ac_prog=ld
4643 ;;
4644 *)
4645 # If it is relative, then search for the first ld in PATH.
4646 with_gnu_ld=unknown
4647 ;;
4648 esac
4649elif test "$with_gnu_ld" = yes; then
openvcdiffd1845782009-03-20 21:56:15 +00004650 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4651echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004652else
openvcdiffd1845782009-03-20 21:56:15 +00004653 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4654echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004655fi
4656if test "${lt_cv_path_LD+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659 if test -z "$LD"; then
4660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4661 for ac_dir in $PATH; do
4662 IFS="$lt_save_ifs"
4663 test -z "$ac_dir" && ac_dir=.
4664 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4665 lt_cv_path_LD="$ac_dir/$ac_prog"
4666 # Check to see if the program is GNU ld. I'd rather use --version,
4667 # but apparently some variants of GNU ld only accept -v.
4668 # Break only if it was the GNU/non-GNU ld that we prefer.
4669 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4670 *GNU* | *'with BFD'*)
4671 test "$with_gnu_ld" != no && break
4672 ;;
4673 *)
4674 test "$with_gnu_ld" != yes && break
4675 ;;
4676 esac
4677 fi
4678 done
4679 IFS="$lt_save_ifs"
4680else
4681 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4682fi
4683fi
4684
4685LD="$lt_cv_path_LD"
4686if test -n "$LD"; then
openvcdiffd1845782009-03-20 21:56:15 +00004687 { echo "$as_me:$LINENO: result: $LD" >&5
4688echo "${ECHO_T}$LD" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004689else
openvcdiffd1845782009-03-20 21:56:15 +00004690 { echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004692fi
4693test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4694echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4695 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +00004696{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4697echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004698if test "${lt_cv_prog_gnu_ld+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4702case `$LD -v 2>&1 </dev/null` in
4703*GNU* | *'with BFD'*)
4704 lt_cv_prog_gnu_ld=yes
4705 ;;
4706*)
4707 lt_cv_prog_gnu_ld=no
4708 ;;
4709esac
4710fi
openvcdiffd1845782009-03-20 21:56:15 +00004711{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4712echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004713with_gnu_ld=$lt_cv_prog_gnu_ld
4714
4715
openvcdiffd1845782009-03-20 21:56:15 +00004716{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4717echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004718if test "${lt_cv_ld_reload_flag+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721 lt_cv_ld_reload_flag='-r'
4722fi
openvcdiffd1845782009-03-20 21:56:15 +00004723{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4724echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004725reload_flag=$lt_cv_ld_reload_flag
4726case $reload_flag in
4727"" | " "*) ;;
4728*) reload_flag=" $reload_flag" ;;
4729esac
4730reload_cmds='$LD$reload_flag -o $output$reload_objs'
4731case $host_os in
4732 darwin*)
4733 if test "$GCC" = yes; then
4734 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4735 else
4736 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4737 fi
4738 ;;
4739esac
4740
openvcdiffd1845782009-03-20 21:56:15 +00004741{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4742echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004743if test "${lt_cv_path_NM+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 if test -n "$NM"; then
4747 # Let the user override the test.
4748 lt_cv_path_NM="$NM"
4749else
4750 lt_nm_to_check="${ac_tool_prefix}nm"
4751 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4752 lt_nm_to_check="$lt_nm_to_check nm"
4753 fi
4754 for lt_tmp_nm in $lt_nm_to_check; do
4755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4756 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4757 IFS="$lt_save_ifs"
4758 test -z "$ac_dir" && ac_dir=.
4759 tmp_nm="$ac_dir/$lt_tmp_nm"
4760 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4761 # Check to see if the nm accepts a BSD-compat flag.
4762 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4763 # nm: unknown option "B" ignored
4764 # Tru64's nm complains that /dev/null is an invalid object file
4765 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4766 */dev/null* | *'Invalid file or object type'*)
4767 lt_cv_path_NM="$tmp_nm -B"
4768 break
4769 ;;
4770 *)
4771 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4772 */dev/null*)
4773 lt_cv_path_NM="$tmp_nm -p"
4774 break
4775 ;;
4776 *)
4777 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4778 continue # so that we can try to find one that supports BSD flags
4779 ;;
4780 esac
4781 ;;
4782 esac
4783 fi
4784 done
4785 IFS="$lt_save_ifs"
4786 done
4787 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4788fi
4789fi
openvcdiffd1845782009-03-20 21:56:15 +00004790{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4791echo "${ECHO_T}$lt_cv_path_NM" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004792NM="$lt_cv_path_NM"
4793
openvcdiffd1845782009-03-20 21:56:15 +00004794{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4795echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004796LN_S=$as_ln_s
4797if test "$LN_S" = "ln -s"; then
openvcdiffd1845782009-03-20 21:56:15 +00004798 { echo "$as_me:$LINENO: result: yes" >&5
4799echo "${ECHO_T}yes" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004800else
openvcdiffd1845782009-03-20 21:56:15 +00004801 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4802echo "${ECHO_T}no, using $LN_S" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004803fi
4804
openvcdiffd1845782009-03-20 21:56:15 +00004805{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4806echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004807if test "${lt_cv_deplibs_check_method+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810 lt_cv_file_magic_cmd='$MAGIC_CMD'
4811lt_cv_file_magic_test_file=
4812lt_cv_deplibs_check_method='unknown'
4813# Need to set the preceding variable on all platforms that support
4814# interlibrary dependencies.
4815# 'none' -- dependencies not supported.
4816# `unknown' -- same as none, but documents that we really don't know.
4817# 'pass_all' -- all dependencies passed with no checks.
4818# 'test_compile' -- check by making test program.
4819# 'file_magic [[regex]]' -- check by looking for files in library path
4820# which responds to the $file_magic_cmd with a given extended regex.
4821# If you have `file' or equivalent on your system and you're not sure
4822# whether `pass_all' will *always* work, you probably want this one.
4823
4824case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +00004825aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00004826 lt_cv_deplibs_check_method=pass_all
4827 ;;
4828
4829beos*)
4830 lt_cv_deplibs_check_method=pass_all
4831 ;;
4832
4833bsdi[45]*)
4834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4835 lt_cv_file_magic_cmd='/usr/bin/file -L'
4836 lt_cv_file_magic_test_file=/shlib/libc.so
4837 ;;
4838
4839cygwin*)
4840 # func_win32_libid is a shell function defined in ltmain.sh
4841 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4842 lt_cv_file_magic_cmd='func_win32_libid'
4843 ;;
4844
4845mingw* | pw32*)
4846 # Base MSYS/MinGW do not provide the 'file' command needed by
openvcdiffd1845782009-03-20 21:56:15 +00004847 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4848 # unless we find 'file', for example because we are cross-compiling.
4849 if ( file / ) >/dev/null 2>&1; then
4850 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4851 lt_cv_file_magic_cmd='func_win32_libid'
4852 else
4853 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4854 lt_cv_file_magic_cmd='$OBJDUMP -f'
4855 fi
openvcdiff311c7142008-08-26 19:29:25 +00004856 ;;
4857
4858darwin* | rhapsody*)
4859 lt_cv_deplibs_check_method=pass_all
4860 ;;
4861
openvcdiffd1845782009-03-20 21:56:15 +00004862freebsd* | dragonfly*)
openvcdiff311c7142008-08-26 19:29:25 +00004863 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4864 case $host_cpu in
4865 i*86 )
4866 # Not sure whether the presence of OpenBSD here was a mistake.
4867 # Let's accept both of them until this is cleared up.
4868 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4869 lt_cv_file_magic_cmd=/usr/bin/file
4870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4871 ;;
4872 esac
4873 else
4874 lt_cv_deplibs_check_method=pass_all
4875 fi
4876 ;;
4877
4878gnu*)
4879 lt_cv_deplibs_check_method=pass_all
4880 ;;
4881
4882hpux10.20* | hpux11*)
4883 lt_cv_file_magic_cmd=/usr/bin/file
4884 case $host_cpu in
4885 ia64*)
4886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4887 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4888 ;;
4889 hppa*64*)
4890 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4891 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4892 ;;
4893 *)
4894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4895 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4896 ;;
4897 esac
4898 ;;
4899
openvcdiffd1845782009-03-20 21:56:15 +00004900interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00004901 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4903 ;;
4904
4905irix5* | irix6* | nonstopux*)
4906 case $LD in
4907 *-32|*"-32 ") libmagic=32-bit;;
4908 *-n32|*"-n32 ") libmagic=N32;;
4909 *-64|*"-64 ") libmagic=64-bit;;
4910 *) libmagic=never-match;;
4911 esac
4912 lt_cv_deplibs_check_method=pass_all
4913 ;;
4914
4915# This must be Linux ELF.
openvcdiffd1845782009-03-20 21:56:15 +00004916linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +00004917 lt_cv_deplibs_check_method=pass_all
4918 ;;
4919
openvcdiffd1845782009-03-20 21:56:15 +00004920netbsd* | netbsdelf*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +00004921 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4923 else
4924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4925 fi
4926 ;;
4927
4928newos6*)
4929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4930 lt_cv_file_magic_cmd=/usr/bin/file
4931 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4932 ;;
4933
4934nto-qnx*)
4935 lt_cv_deplibs_check_method=unknown
4936 ;;
4937
4938openbsd*)
4939 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4941 else
4942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4943 fi
4944 ;;
4945
4946osf3* | osf4* | osf5*)
4947 lt_cv_deplibs_check_method=pass_all
4948 ;;
4949
openvcdiffd1845782009-03-20 21:56:15 +00004950rdos*)
4951 lt_cv_deplibs_check_method=pass_all
4952 ;;
4953
openvcdiff311c7142008-08-26 19:29:25 +00004954solaris*)
4955 lt_cv_deplibs_check_method=pass_all
4956 ;;
4957
4958sysv4 | sysv4.3*)
4959 case $host_vendor in
4960 motorola)
4961 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]'
4962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4963 ;;
4964 ncr)
4965 lt_cv_deplibs_check_method=pass_all
4966 ;;
4967 sequent)
4968 lt_cv_file_magic_cmd='/bin/file'
4969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4970 ;;
4971 sni)
4972 lt_cv_file_magic_cmd='/bin/file'
4973 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4974 lt_cv_file_magic_test_file=/lib/libc.so
4975 ;;
4976 siemens)
4977 lt_cv_deplibs_check_method=pass_all
4978 ;;
4979 pc)
4980 lt_cv_deplibs_check_method=pass_all
4981 ;;
4982 esac
4983 ;;
4984
4985sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988esac
4989
4990fi
openvcdiffd1845782009-03-20 21:56:15 +00004991{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4992echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004993file_magic_cmd=$lt_cv_file_magic_cmd
4994deplibs_check_method=$lt_cv_deplibs_check_method
4995test -z "$deplibs_check_method" && deplibs_check_method=unknown
4996
4997
4998
4999
5000# If no C compiler was specified, use CC.
5001LTCC=${LTCC-"$CC"}
5002
5003# If no C compiler flags were specified, use CFLAGS.
5004LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5005
5006# Allow CC to be a program name with arguments.
5007compiler=$CC
5008
5009
openvcdiffd1845782009-03-20 21:56:15 +00005010# Check whether --enable-libtool-lock was given.
openvcdiff311c7142008-08-26 19:29:25 +00005011if test "${enable_libtool_lock+set}" = set; then
openvcdiffd1845782009-03-20 21:56:15 +00005012 enableval=$enable_libtool_lock;
5013fi
openvcdiff311c7142008-08-26 19:29:25 +00005014
openvcdiff311c7142008-08-26 19:29:25 +00005015test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5016
5017# Some flags need to be propagated to the compiler or linker for good
5018# libtool support.
5019case $host in
5020ia64-*-hpux*)
5021 # Find out which ABI we are using.
5022 echo 'int i;' > conftest.$ac_ext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; then
5028 case `/usr/bin/file conftest.$ac_objext` in
5029 *ELF-32*)
5030 HPUX_IA64_MODE="32"
5031 ;;
5032 *ELF-64*)
5033 HPUX_IA64_MODE="64"
5034 ;;
5035 esac
5036 fi
5037 rm -rf conftest*
5038 ;;
5039*-*-irix6*)
5040 # Find out which ABI we are using.
openvcdiffbaf44ea2009-04-09 19:20:49 +00005041 echo '#line 5041 "configure"' > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00005042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043 (eval $ac_compile) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; then
5047 if test "$lt_cv_prog_gnu_ld" = yes; then
5048 case `/usr/bin/file conftest.$ac_objext` in
5049 *32-bit*)
5050 LD="${LD-ld} -melf32bsmip"
5051 ;;
5052 *N32*)
5053 LD="${LD-ld} -melf32bmipn32"
5054 ;;
5055 *64-bit*)
5056 LD="${LD-ld} -melf64bmip"
5057 ;;
5058 esac
5059 else
5060 case `/usr/bin/file conftest.$ac_objext` in
5061 *32-bit*)
5062 LD="${LD-ld} -32"
5063 ;;
5064 *N32*)
5065 LD="${LD-ld} -n32"
5066 ;;
5067 *64-bit*)
5068 LD="${LD-ld} -64"
5069 ;;
5070 esac
5071 fi
5072 fi
5073 rm -rf conftest*
5074 ;;
5075
openvcdiffd1845782009-03-20 21:56:15 +00005076x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5077s390*-*linux*|sparc*-*linux*)
openvcdiff311c7142008-08-26 19:29:25 +00005078 # Find out which ABI we are using.
5079 echo 'int i;' > conftest.$ac_ext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; then
5085 case `/usr/bin/file conftest.o` in
5086 *32-bit*)
5087 case $host in
openvcdiffd1845782009-03-20 21:56:15 +00005088 x86_64-*kfreebsd*-gnu)
5089 LD="${LD-ld} -m elf_i386_fbsd"
5090 ;;
openvcdiff311c7142008-08-26 19:29:25 +00005091 x86_64-*linux*)
5092 LD="${LD-ld} -m elf_i386"
5093 ;;
5094 ppc64-*linux*|powerpc64-*linux*)
5095 LD="${LD-ld} -m elf32ppclinux"
5096 ;;
5097 s390x-*linux*)
5098 LD="${LD-ld} -m elf_s390"
5099 ;;
5100 sparc64-*linux*)
5101 LD="${LD-ld} -m elf32_sparc"
5102 ;;
5103 esac
5104 ;;
5105 *64-bit*)
5106 case $host in
openvcdiffd1845782009-03-20 21:56:15 +00005107 x86_64-*kfreebsd*-gnu)
5108 LD="${LD-ld} -m elf_x86_64_fbsd"
5109 ;;
openvcdiff311c7142008-08-26 19:29:25 +00005110 x86_64-*linux*)
5111 LD="${LD-ld} -m elf_x86_64"
5112 ;;
5113 ppc*-*linux*|powerpc*-*linux*)
5114 LD="${LD-ld} -m elf64ppc"
5115 ;;
5116 s390*-*linux*)
5117 LD="${LD-ld} -m elf64_s390"
5118 ;;
5119 sparc*-*linux*)
5120 LD="${LD-ld} -m elf64_sparc"
5121 ;;
5122 esac
5123 ;;
5124 esac
5125 fi
5126 rm -rf conftest*
5127 ;;
5128
5129*-*-sco3.2v5*)
5130 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5131 SAVE_CFLAGS="$CFLAGS"
5132 CFLAGS="$CFLAGS -belf"
openvcdiffd1845782009-03-20 21:56:15 +00005133 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5134echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005135if test "${lt_cv_cc_needs_belf+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 ac_ext=c
5139ac_cpp='$CPP $CPPFLAGS'
5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143
5144 cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h. */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h. */
5150
5151int
5152main ()
5153{
5154
5155 ;
5156 return 0;
5157}
5158_ACEOF
5159rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +00005160if { (ac_try="$ac_link"
5161case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164esac
5165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00005167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00005172 (exit $ac_status); } && {
5173 test -z "$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 } && test -s conftest$ac_exeext &&
5176 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +00005177 lt_cv_cc_needs_belf=yes
5178else
5179 echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
openvcdiffd1845782009-03-20 21:56:15 +00005182 lt_cv_cc_needs_belf=no
openvcdiff311c7142008-08-26 19:29:25 +00005183fi
openvcdiffd1845782009-03-20 21:56:15 +00005184
5185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +00005186 conftest$ac_exeext conftest.$ac_ext
5187 ac_ext=c
5188ac_cpp='$CPP $CPPFLAGS'
5189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192
5193fi
openvcdiffd1845782009-03-20 21:56:15 +00005194{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5195echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005196 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5197 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5198 CFLAGS="$SAVE_CFLAGS"
5199 fi
5200 ;;
5201sparc*-*solaris*)
5202 # Find out which ABI we are using.
5203 echo 'int i;' > conftest.$ac_ext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205 (eval $ac_compile) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; then
5209 case `/usr/bin/file conftest.o` in
5210 *64-bit*)
5211 case $lt_cv_prog_gnu_ld in
5212 yes*) LD="${LD-ld} -m elf64_sparc" ;;
openvcdiffd1845782009-03-20 21:56:15 +00005213 *)
5214 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5215 LD="${LD-ld} -64"
5216 fi
5217 ;;
openvcdiff311c7142008-08-26 19:29:25 +00005218 esac
5219 ;;
5220 esac
5221 fi
5222 rm -rf conftest*
5223 ;;
5224
5225
5226esac
5227
5228need_locks="$enable_libtool_lock"
5229
5230
5231
openvcdiffd1845782009-03-20 21:56:15 +00005232{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5233echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005234if test "${ac_cv_header_stdc+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237 cat >conftest.$ac_ext <<_ACEOF
5238/* confdefs.h. */
5239_ACEOF
5240cat confdefs.h >>conftest.$ac_ext
5241cat >>conftest.$ac_ext <<_ACEOF
5242/* end confdefs.h. */
5243#include <stdlib.h>
5244#include <stdarg.h>
5245#include <string.h>
5246#include <float.h>
5247
5248int
5249main ()
5250{
5251
5252 ;
5253 return 0;
5254}
5255_ACEOF
5256rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00005257if { (ac_try="$ac_compile"
5258case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5261esac
5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00005264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00005269 (exit $ac_status); } && {
5270 test -z "$ac_c_werror_flag" ||
5271 test ! -s conftest.err
5272 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +00005273 ac_cv_header_stdc=yes
5274else
5275 echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
openvcdiffd1845782009-03-20 21:56:15 +00005278 ac_cv_header_stdc=no
openvcdiff311c7142008-08-26 19:29:25 +00005279fi
openvcdiffd1845782009-03-20 21:56:15 +00005280
5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00005282
5283if test $ac_cv_header_stdc = yes; then
5284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5285 cat >conftest.$ac_ext <<_ACEOF
5286/* confdefs.h. */
5287_ACEOF
5288cat confdefs.h >>conftest.$ac_ext
5289cat >>conftest.$ac_ext <<_ACEOF
5290/* end confdefs.h. */
5291#include <string.h>
5292
5293_ACEOF
5294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5295 $EGREP "memchr" >/dev/null 2>&1; then
5296 :
5297else
5298 ac_cv_header_stdc=no
5299fi
5300rm -f conftest*
5301
5302fi
5303
5304if test $ac_cv_header_stdc = yes; then
5305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5306 cat >conftest.$ac_ext <<_ACEOF
5307/* confdefs.h. */
5308_ACEOF
5309cat confdefs.h >>conftest.$ac_ext
5310cat >>conftest.$ac_ext <<_ACEOF
5311/* end confdefs.h. */
5312#include <stdlib.h>
5313
5314_ACEOF
5315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5316 $EGREP "free" >/dev/null 2>&1; then
5317 :
5318else
5319 ac_cv_header_stdc=no
5320fi
5321rm -f conftest*
5322
5323fi
5324
5325if test $ac_cv_header_stdc = yes; then
5326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5327 if test "$cross_compiling" = yes; then
5328 :
5329else
5330 cat >conftest.$ac_ext <<_ACEOF
5331/* confdefs.h. */
5332_ACEOF
5333cat confdefs.h >>conftest.$ac_ext
5334cat >>conftest.$ac_ext <<_ACEOF
5335/* end confdefs.h. */
5336#include <ctype.h>
openvcdiffd1845782009-03-20 21:56:15 +00005337#include <stdlib.h>
openvcdiff311c7142008-08-26 19:29:25 +00005338#if ((' ' & 0x0FF) == 0x020)
5339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5341#else
5342# define ISLOWER(c) \
5343 (('a' <= (c) && (c) <= 'i') \
5344 || ('j' <= (c) && (c) <= 'r') \
5345 || ('s' <= (c) && (c) <= 'z'))
5346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5347#endif
5348
5349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5350int
5351main ()
5352{
5353 int i;
5354 for (i = 0; i < 256; i++)
5355 if (XOR (islower (i), ISLOWER (i))
5356 || toupper (i) != TOUPPER (i))
openvcdiffd1845782009-03-20 21:56:15 +00005357 return 2;
5358 return 0;
openvcdiff311c7142008-08-26 19:29:25 +00005359}
5360_ACEOF
5361rm -f conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +00005362if { (ac_try="$ac_link"
5363case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366esac
5367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_link") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00005369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
openvcdiffd1845782009-03-20 21:56:15 +00005372 { (case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375esac
5376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_try") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00005378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 :
5382else
5383 echo "$as_me: program exited with status $ac_status" >&5
5384echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387( exit $ac_status )
5388ac_cv_header_stdc=no
5389fi
openvcdiffd1845782009-03-20 21:56:15 +00005390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5391fi
5392
5393
openvcdiff311c7142008-08-26 19:29:25 +00005394fi
5395fi
openvcdiffd1845782009-03-20 21:56:15 +00005396{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5397echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005398if test $ac_cv_header_stdc = yes; then
5399
5400cat >>confdefs.h <<\_ACEOF
5401#define STDC_HEADERS 1
5402_ACEOF
5403
5404fi
5405
5406# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5417 inttypes.h stdint.h unistd.h
5418do
5419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +00005420{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00005423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425 cat >conftest.$ac_ext <<_ACEOF
5426/* confdefs.h. */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
5430/* end confdefs.h. */
5431$ac_includes_default
5432
5433#include <$ac_header>
5434_ACEOF
5435rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00005436if { (ac_try="$ac_compile"
5437case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440esac
5441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00005443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00005448 (exit $ac_status); } && {
5449 test -z "$ac_c_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +00005452 eval "$as_ac_Header=yes"
5453else
5454 echo "$as_me: failed program was:" >&5
5455sed 's/^/| /' conftest.$ac_ext >&5
5456
openvcdiffd1845782009-03-20 21:56:15 +00005457 eval "$as_ac_Header=no"
openvcdiff311c7142008-08-26 19:29:25 +00005458fi
openvcdiffd1845782009-03-20 21:56:15 +00005459
5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00005461fi
openvcdiffd1845782009-03-20 21:56:15 +00005462ac_res=`eval echo '${'$as_ac_Header'}'`
5463 { echo "$as_me:$LINENO: result: $ac_res" >&5
5464echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005465if test `eval echo '${'$as_ac_Header'}'` = yes; then
5466 cat >>confdefs.h <<_ACEOF
5467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5468_ACEOF
5469
5470fi
5471
5472done
5473
5474
5475
5476for ac_header in dlfcn.h
5477do
5478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +00005479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00005483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484fi
openvcdiffd1845782009-03-20 21:56:15 +00005485ac_res=`eval echo '${'$as_ac_Header'}'`
5486 { echo "$as_me:$LINENO: result: $ac_res" >&5
5487echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005488else
5489 # Is the header compilable?
openvcdiffd1845782009-03-20 21:56:15 +00005490{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5491echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005492cat >conftest.$ac_ext <<_ACEOF
5493/* confdefs.h. */
5494_ACEOF
5495cat confdefs.h >>conftest.$ac_ext
5496cat >>conftest.$ac_ext <<_ACEOF
5497/* end confdefs.h. */
5498$ac_includes_default
5499#include <$ac_header>
5500_ACEOF
5501rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00005502if { (ac_try="$ac_compile"
5503case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00005509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00005514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +00005518 ac_header_compiler=yes
5519else
5520 echo "$as_me: failed program was:" >&5
5521sed 's/^/| /' conftest.$ac_ext >&5
5522
openvcdiffd1845782009-03-20 21:56:15 +00005523 ac_header_compiler=no
openvcdiff311c7142008-08-26 19:29:25 +00005524fi
openvcdiffd1845782009-03-20 21:56:15 +00005525
5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5528echo "${ECHO_T}$ac_header_compiler" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005529
5530# Is the header present?
openvcdiffd1845782009-03-20 21:56:15 +00005531{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005533cat >conftest.$ac_ext <<_ACEOF
5534/* confdefs.h. */
5535_ACEOF
5536cat confdefs.h >>conftest.$ac_ext
5537cat >>conftest.$ac_ext <<_ACEOF
5538/* end confdefs.h. */
5539#include <$ac_header>
5540_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00005541if { (ac_try="$ac_cpp conftest.$ac_ext"
5542case "(($ac_try" in
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5545esac
5546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00005548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00005553 (exit $ac_status); } >/dev/null && {
5554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5555 test ! -s conftest.err
5556 }; then
openvcdiff311c7142008-08-26 19:29:25 +00005557 ac_header_preproc=yes
5558else
5559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 ac_header_preproc=no
5563fi
openvcdiffd1845782009-03-20 21:56:15 +00005564
openvcdiff311c7142008-08-26 19:29:25 +00005565rm -f conftest.err conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +00005566{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5567echo "${ECHO_T}$ac_header_preproc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005568
5569# So? What about this header?
5570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5571 yes:no: )
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5576 ac_header_preproc=yes
5577 ;;
5578 no:yes:* )
5579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +00005591 ( cat <<\_ASBOX
openvcdiff311c7142008-08-26 19:29:25 +00005592## ------------------------------------ ##
5593## Report this to opensource@google.com ##
5594## ------------------------------------ ##
5595_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +00005596 ) | sed "s/^/$as_me: WARNING: /" >&2
openvcdiff311c7142008-08-26 19:29:25 +00005597 ;;
5598esac
openvcdiffd1845782009-03-20 21:56:15 +00005599{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00005602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604 eval "$as_ac_Header=\$ac_header_preproc"
5605fi
openvcdiffd1845782009-03-20 21:56:15 +00005606ac_res=`eval echo '${'$as_ac_Header'}'`
5607 { echo "$as_me:$LINENO: result: $ac_res" >&5
5608echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005609
5610fi
5611if test `eval echo '${'$as_ac_Header'}'` = yes; then
5612 cat >>confdefs.h <<_ACEOF
5613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5614_ACEOF
5615
5616fi
5617
5618done
5619
5620
5621
5622if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5623 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5624 (test "X$CXX" != "Xg++"))) ; then
openvcdiffd1845782009-03-20 21:56:15 +00005625 ac_ext=cpp
openvcdiff311c7142008-08-26 19:29:25 +00005626ac_cpp='$CXXCPP $CPPFLAGS'
5627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
openvcdiffd1845782009-03-20 21:56:15 +00005630{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5631echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005632if test -z "$CXXCPP"; then
5633 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636 # Double quotes because CXXCPP needs to be expanded
5637 for CXXCPP in "$CXX -E" "/lib/cpp"
5638 do
5639 ac_preproc_ok=false
5640for ac_cxx_preproc_warn_flag in '' yes
5641do
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat >conftest.$ac_ext <<_ACEOF
5649/* confdefs.h. */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h. */
5654#ifdef __STDC__
5655# include <limits.h>
5656#else
5657# include <assert.h>
5658#endif
5659 Syntax error
5660_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00005661if { (ac_try="$ac_cpp conftest.$ac_ext"
5662case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665esac
5666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00005668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00005673 (exit $ac_status); } >/dev/null && {
5674 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5675 test ! -s conftest.err
5676 }; then
openvcdiff311c7142008-08-26 19:29:25 +00005677 :
5678else
5679 echo "$as_me: failed program was:" >&5
5680sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 # Broken: fails on valid input.
5683continue
5684fi
openvcdiffd1845782009-03-20 21:56:15 +00005685
openvcdiff311c7142008-08-26 19:29:25 +00005686rm -f conftest.err conftest.$ac_ext
5687
openvcdiffd1845782009-03-20 21:56:15 +00005688 # OK, works on sane cases. Now check whether nonexistent headers
openvcdiff311c7142008-08-26 19:29:25 +00005689 # can be detected and how.
5690 cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h. */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h. */
5696#include <ac_nonexistent.h>
5697_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00005698if { (ac_try="$ac_cpp conftest.$ac_ext"
5699case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702esac
5703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00005705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00005710 (exit $ac_status); } >/dev/null && {
5711 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5712 test ! -s conftest.err
5713 }; then
openvcdiff311c7142008-08-26 19:29:25 +00005714 # Broken: success on invalid input.
5715continue
5716else
5717 echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 # Passes both tests.
5721ac_preproc_ok=:
5722break
5723fi
openvcdiffd1845782009-03-20 21:56:15 +00005724
openvcdiff311c7142008-08-26 19:29:25 +00005725rm -f conftest.err conftest.$ac_ext
5726
5727done
5728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5729rm -f conftest.err conftest.$ac_ext
5730if $ac_preproc_ok; then
5731 break
5732fi
5733
5734 done
5735 ac_cv_prog_CXXCPP=$CXXCPP
5736
5737fi
5738 CXXCPP=$ac_cv_prog_CXXCPP
5739else
5740 ac_cv_prog_CXXCPP=$CXXCPP
5741fi
openvcdiffd1845782009-03-20 21:56:15 +00005742{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5743echo "${ECHO_T}$CXXCPP" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005744ac_preproc_ok=false
5745for ac_cxx_preproc_warn_flag in '' yes
5746do
5747 # Use a header file that comes with gcc, so configuring glibc
5748 # with a fresh cross-compiler works.
5749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750 # <limits.h> exists even on freestanding compilers.
5751 # On the NeXT, cc -E runs the code through the compiler's parser,
5752 # not just through cpp. "Syntax error" is here to catch this case.
5753 cat >conftest.$ac_ext <<_ACEOF
5754/* confdefs.h. */
5755_ACEOF
5756cat confdefs.h >>conftest.$ac_ext
5757cat >>conftest.$ac_ext <<_ACEOF
5758/* end confdefs.h. */
5759#ifdef __STDC__
5760# include <limits.h>
5761#else
5762# include <assert.h>
5763#endif
5764 Syntax error
5765_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00005766if { (ac_try="$ac_cpp conftest.$ac_ext"
5767case "(($ac_try" in
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5770esac
5771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00005773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00005778 (exit $ac_status); } >/dev/null && {
5779 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5780 test ! -s conftest.err
5781 }; then
openvcdiff311c7142008-08-26 19:29:25 +00005782 :
5783else
5784 echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 # Broken: fails on valid input.
5788continue
5789fi
openvcdiffd1845782009-03-20 21:56:15 +00005790
openvcdiff311c7142008-08-26 19:29:25 +00005791rm -f conftest.err conftest.$ac_ext
5792
openvcdiffd1845782009-03-20 21:56:15 +00005793 # OK, works on sane cases. Now check whether nonexistent headers
openvcdiff311c7142008-08-26 19:29:25 +00005794 # can be detected and how.
5795 cat >conftest.$ac_ext <<_ACEOF
5796/* confdefs.h. */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h. */
5801#include <ac_nonexistent.h>
5802_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00005803if { (ac_try="$ac_cpp conftest.$ac_ext"
5804case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00005810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00005815 (exit $ac_status); } >/dev/null && {
5816 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5817 test ! -s conftest.err
5818 }; then
openvcdiff311c7142008-08-26 19:29:25 +00005819 # Broken: success on invalid input.
5820continue
5821else
5822 echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 # Passes both tests.
5826ac_preproc_ok=:
5827break
5828fi
openvcdiffd1845782009-03-20 21:56:15 +00005829
openvcdiff311c7142008-08-26 19:29:25 +00005830rm -f conftest.err conftest.$ac_ext
5831
5832done
5833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5834rm -f conftest.err conftest.$ac_ext
5835if $ac_preproc_ok; then
5836 :
5837else
5838 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5839See \`config.log' for more details." >&5
5840echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5841See \`config.log' for more details." >&2;}
5842 { (exit 1); exit 1; }; }
5843fi
5844
openvcdiffd1845782009-03-20 21:56:15 +00005845ac_ext=cpp
openvcdiff311c7142008-08-26 19:29:25 +00005846ac_cpp='$CXXCPP $CPPFLAGS'
5847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5850
5851fi
5852
5853
5854ac_ext=f
5855ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5856ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5858if test -n "$ac_tool_prefix"; then
openvcdiffd1845782009-03-20 21:56:15 +00005859 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
openvcdiff311c7142008-08-26 19:29:25 +00005860 do
5861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5862set dummy $ac_tool_prefix$ac_prog; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00005863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005865if test "${ac_cv_prog_F77+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868 if test -n "$F77"; then
5869 ac_cv_prog_F77="$F77" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00005877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00005878 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882done
5883done
openvcdiffd1845782009-03-20 21:56:15 +00005884IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00005885
5886fi
5887fi
5888F77=$ac_cv_prog_F77
5889if test -n "$F77"; then
openvcdiffd1845782009-03-20 21:56:15 +00005890 { echo "$as_me:$LINENO: result: $F77" >&5
5891echo "${ECHO_T}$F77" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005892else
openvcdiffd1845782009-03-20 21:56:15 +00005893 { echo "$as_me:$LINENO: result: no" >&5
5894echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005895fi
5896
openvcdiffd1845782009-03-20 21:56:15 +00005897
openvcdiff311c7142008-08-26 19:29:25 +00005898 test -n "$F77" && break
5899 done
5900fi
5901if test -z "$F77"; then
5902 ac_ct_F77=$F77
openvcdiffd1845782009-03-20 21:56:15 +00005903 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
openvcdiff311c7142008-08-26 19:29:25 +00005904do
5905 # Extract the first word of "$ac_prog", so it can be a program name with args.
5906set dummy $ac_prog; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00005907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005909if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912 if test -n "$ac_ct_F77"; then
5913 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00005921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00005922 ac_cv_prog_ac_ct_F77="$ac_prog"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926done
5927done
openvcdiffd1845782009-03-20 21:56:15 +00005928IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00005929
5930fi
5931fi
5932ac_ct_F77=$ac_cv_prog_ac_ct_F77
5933if test -n "$ac_ct_F77"; then
openvcdiffd1845782009-03-20 21:56:15 +00005934 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5935echo "${ECHO_T}$ac_ct_F77" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005936else
openvcdiffd1845782009-03-20 21:56:15 +00005937 { echo "$as_me:$LINENO: result: no" >&5
5938echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005939fi
5940
openvcdiffd1845782009-03-20 21:56:15 +00005941
openvcdiff311c7142008-08-26 19:29:25 +00005942 test -n "$ac_ct_F77" && break
5943done
5944
openvcdiffd1845782009-03-20 21:56:15 +00005945 if test "x$ac_ct_F77" = x; then
5946 F77=""
5947 else
5948 case $cross_compiling:$ac_tool_warned in
5949yes:)
5950{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5951whose name does not start with the host triplet. If you think this
5952configuration is useful to you, please write to autoconf@gnu.org." >&5
5953echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5954whose name does not start with the host triplet. If you think this
5955configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5956ac_tool_warned=yes ;;
5957esac
5958 F77=$ac_ct_F77
5959 fi
openvcdiff311c7142008-08-26 19:29:25 +00005960fi
5961
5962
5963# Provide some information about the compiler.
openvcdiffd1845782009-03-20 21:56:15 +00005964echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
openvcdiff311c7142008-08-26 19:29:25 +00005965ac_compiler=`set X $ac_compile; echo $2`
openvcdiffd1845782009-03-20 21:56:15 +00005966{ (ac_try="$ac_compiler --version >&5"
5967case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_compiler --version >&5") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00005973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }
openvcdiffd1845782009-03-20 21:56:15 +00005976{ (ac_try="$ac_compiler -v >&5"
5977case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compiler -v >&5") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00005983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }
openvcdiffd1845782009-03-20 21:56:15 +00005986{ (ac_try="$ac_compiler -V >&5"
5987case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990esac
5991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compiler -V >&5") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00005993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }
5996rm -f a.out
5997
5998# If we don't use `.F' as extension, the preprocessor is not run on the
5999# input file. (Note that this only needs to work for GNU compilers.)
6000ac_save_ext=$ac_ext
6001ac_ext=F
openvcdiffd1845782009-03-20 21:56:15 +00006002{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6003echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006004if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007 cat >conftest.$ac_ext <<_ACEOF
6008 program main
6009#ifndef __GNUC__
6010 choke me
6011#endif
6012
6013 end
6014_ACEOF
6015rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00006016if { (ac_try="$ac_compile"
6017case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020esac
6021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00006023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00006028 (exit $ac_status); } && {
6029 test -z "$ac_f77_werror_flag" ||
6030 test ! -s conftest.err
6031 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +00006032 ac_compiler_gnu=yes
6033else
6034 echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
openvcdiffd1845782009-03-20 21:56:15 +00006037 ac_compiler_gnu=no
openvcdiff311c7142008-08-26 19:29:25 +00006038fi
openvcdiffd1845782009-03-20 21:56:15 +00006039
6040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00006041ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6042
6043fi
openvcdiffd1845782009-03-20 21:56:15 +00006044{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6045echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006046ac_ext=$ac_save_ext
6047ac_test_FFLAGS=${FFLAGS+set}
6048ac_save_FFLAGS=$FFLAGS
6049FFLAGS=
openvcdiffd1845782009-03-20 21:56:15 +00006050{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6051echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006052if test "${ac_cv_prog_f77_g+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054else
6055 FFLAGS=-g
6056cat >conftest.$ac_ext <<_ACEOF
6057 program main
6058
6059 end
6060_ACEOF
6061rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00006062if { (ac_try="$ac_compile"
6063case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066esac
6067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00006069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00006074 (exit $ac_status); } && {
6075 test -z "$ac_f77_werror_flag" ||
6076 test ! -s conftest.err
6077 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +00006078 ac_cv_prog_f77_g=yes
6079else
6080 echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
openvcdiffd1845782009-03-20 21:56:15 +00006083 ac_cv_prog_f77_g=no
openvcdiff311c7142008-08-26 19:29:25 +00006084fi
openvcdiffd1845782009-03-20 21:56:15 +00006085
6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00006087
6088fi
openvcdiffd1845782009-03-20 21:56:15 +00006089{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6090echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006091if test "$ac_test_FFLAGS" = set; then
6092 FFLAGS=$ac_save_FFLAGS
6093elif test $ac_cv_prog_f77_g = yes; then
6094 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6095 FFLAGS="-g -O2"
6096 else
6097 FFLAGS="-g"
6098 fi
6099else
6100 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6101 FFLAGS="-O2"
6102 else
6103 FFLAGS=
6104 fi
6105fi
6106
6107G77=`test $ac_compiler_gnu = yes && echo yes`
6108ac_ext=c
6109ac_cpp='$CPP $CPPFLAGS'
6110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6112ac_compiler_gnu=$ac_cv_c_compiler_gnu
6113
6114
6115
6116# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
openvcdiff311c7142008-08-26 19:29:25 +00006117# find the maximum length of command line arguments
openvcdiffd1845782009-03-20 21:56:15 +00006118{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6119echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006120if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123 i=0
6124 teststring="ABCD"
6125
6126 case $build_os in
6127 msdosdjgpp*)
6128 # On DJGPP, this test can blow up pretty badly due to problems in libc
6129 # (any single argument exceeding 2000 bytes causes a buffer overrun
6130 # during glob expansion). Even if it were fixed, the result of this
6131 # check would be larger than it should be.
6132 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6133 ;;
6134
6135 gnu*)
6136 # Under GNU Hurd, this test is not required because there is
6137 # no limit to the length of command line arguments.
6138 # Libtool will interpret -1 as no limit whatsoever
6139 lt_cv_sys_max_cmd_len=-1;
6140 ;;
6141
6142 cygwin* | mingw*)
6143 # On Win9x/ME, this test blows up -- it succeeds, but takes
6144 # about 5 minutes as the teststring grows exponentially.
6145 # Worse, since 9x/ME are not pre-emptively multitasking,
6146 # you end up with a "frozen" computer, even though with patience
6147 # the test eventually succeeds (with a max line length of 256k).
6148 # Instead, let's just punt: use the minimum linelength reported by
6149 # all of the supported platforms: 8192 (on NT/2K/XP).
6150 lt_cv_sys_max_cmd_len=8192;
6151 ;;
6152
6153 amigaos*)
6154 # On AmigaOS with pdksh, this test takes hours, literally.
6155 # So we just punt and use a minimum line length of 8192.
6156 lt_cv_sys_max_cmd_len=8192;
6157 ;;
6158
6159 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6160 # This has been around since 386BSD, at least. Likely further.
6161 if test -x /sbin/sysctl; then
6162 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6163 elif test -x /usr/sbin/sysctl; then
6164 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6165 else
6166 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6167 fi
6168 # And add a safety zone
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6171 ;;
6172
6173 interix*)
6174 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6175 lt_cv_sys_max_cmd_len=196608
6176 ;;
6177
6178 osf*)
6179 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6180 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6181 # nice to cause kernel panics so lets avoid the loop below.
6182 # First set a reasonable default.
6183 lt_cv_sys_max_cmd_len=16384
6184 #
6185 if test -x /sbin/sysconfig; then
6186 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6187 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6188 esac
6189 fi
6190 ;;
6191 sco3.2v5*)
6192 lt_cv_sys_max_cmd_len=102400
6193 ;;
6194 sysv5* | sco5v6* | sysv4.2uw2*)
6195 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6196 if test -n "$kargmax"; then
6197 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6198 else
6199 lt_cv_sys_max_cmd_len=32768
6200 fi
6201 ;;
6202 *)
openvcdiffd1845782009-03-20 21:56:15 +00006203 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6204 if test -n "$lt_cv_sys_max_cmd_len"; then
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6207 else
6208 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6209 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
openvcdiff311c7142008-08-26 19:29:25 +00006210 = "XX$teststring") >/dev/null 2>&1 &&
openvcdiffd1845782009-03-20 21:56:15 +00006211 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6212 lt_cv_sys_max_cmd_len=$new_result &&
6213 test $i != 17 # 1/2 MB should be enough
6214 do
6215 i=`expr $i + 1`
6216 teststring=$teststring$teststring
6217 done
6218 teststring=
6219 # Add a significant safety factor because C++ compilers can tack on massive
6220 # amounts of additional arguments before passing them to the linker.
6221 # It appears as though 1/2 is a usable value.
6222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6223 fi
openvcdiff311c7142008-08-26 19:29:25 +00006224 ;;
6225 esac
6226
6227fi
6228
6229if test -n $lt_cv_sys_max_cmd_len ; then
openvcdiffd1845782009-03-20 21:56:15 +00006230 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6231echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006232else
openvcdiffd1845782009-03-20 21:56:15 +00006233 { echo "$as_me:$LINENO: result: none" >&5
6234echo "${ECHO_T}none" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006235fi
6236
6237
6238
6239
openvcdiffd1845782009-03-20 21:56:15 +00006240
openvcdiff311c7142008-08-26 19:29:25 +00006241# Check for command to grab the raw symbol name followed by C symbol from nm.
openvcdiffd1845782009-03-20 21:56:15 +00006242{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6243echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006244if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247
6248# These are sane defaults that work on at least a few old systems.
6249# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6250
6251# Character class describing NM global symbol codes.
6252symcode='[BCDEGRST]'
6253
6254# Regexp to match symbols that can be accessed directly from C.
6255sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6256
6257# Transform an extracted symbol line into a proper C declaration
6258lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6259
6260# Transform an extracted symbol line into symbol name and symbol address
6261lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6262
6263# Define system-specific variables.
6264case $host_os in
6265aix*)
6266 symcode='[BCDT]'
6267 ;;
6268cygwin* | mingw* | pw32*)
6269 symcode='[ABCDGISTW]'
6270 ;;
6271hpux*) # Its linker distinguishes data from code symbols
6272 if test "$host_cpu" = ia64; then
6273 symcode='[ABCDEGRST]'
6274 fi
6275 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6276 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6277 ;;
openvcdiffd1845782009-03-20 21:56:15 +00006278linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +00006279 if test "$host_cpu" = ia64; then
6280 symcode='[ABCDGIRSTW]'
6281 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6282 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6283 fi
6284 ;;
6285irix* | nonstopux*)
6286 symcode='[BCDEGRST]'
6287 ;;
6288osf*)
6289 symcode='[BCDEGQRST]'
6290 ;;
6291solaris*)
6292 symcode='[BDRT]'
6293 ;;
6294sco3.2v5*)
6295 symcode='[DT]'
6296 ;;
6297sysv4.2uw2*)
6298 symcode='[DT]'
6299 ;;
6300sysv5* | sco5v6* | unixware* | OpenUNIX*)
6301 symcode='[ABDT]'
6302 ;;
6303sysv4)
6304 symcode='[DFNSTU]'
6305 ;;
6306esac
6307
6308# Handle CRLF in mingw tool chain
6309opt_cr=
6310case $build_os in
6311mingw*)
6312 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6313 ;;
6314esac
6315
6316# If we're using GNU nm, then use its standard symbol codes.
6317case `$NM -V 2>&1` in
6318*GNU* | *'with BFD'*)
6319 symcode='[ABCDGIRSTW]' ;;
6320esac
6321
6322# Try without a prefix undercore, then with it.
6323for ac_symprfx in "" "_"; do
6324
6325 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6326 symxfrm="\\1 $ac_symprfx\\2 \\2"
6327
6328 # Write the raw and C identifiers.
6329 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6330
6331 # Check to see that the pipe works correctly.
6332 pipe_works=no
6333
6334 rm -f conftest*
6335 cat > conftest.$ac_ext <<EOF
6336#ifdef __cplusplus
6337extern "C" {
6338#endif
6339char nm_test_var;
6340void nm_test_func(){}
6341#ifdef __cplusplus
6342}
6343#endif
6344int main(){nm_test_var='a';nm_test_func();return(0);}
6345EOF
6346
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; then
6352 # Now try to grab the symbols.
6353 nlist=conftest.nm
6354 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6355 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && test -s "$nlist"; then
6359 # Try sorting and uniquifying the output.
6360 if sort "$nlist" | uniq > "$nlist"T; then
6361 mv -f "$nlist"T "$nlist"
6362 else
6363 rm -f "$nlist"T
6364 fi
6365
6366 # Make sure that we snagged all the symbols we need.
6367 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6368 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6369 cat <<EOF > conftest.$ac_ext
6370#ifdef __cplusplus
6371extern "C" {
6372#endif
6373
6374EOF
6375 # Now generate the symbol file.
6376 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6377
6378 cat <<EOF >> conftest.$ac_ext
6379#if defined (__STDC__) && __STDC__
6380# define lt_ptr_t void *
6381#else
6382# define lt_ptr_t char *
6383# define const
6384#endif
6385
6386/* The mapping between symbol names and symbols. */
6387const struct {
6388 const char *name;
6389 lt_ptr_t address;
6390}
6391lt_preloaded_symbols[] =
6392{
6393EOF
6394 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6395 cat <<\EOF >> conftest.$ac_ext
6396 {0, (lt_ptr_t) 0}
6397};
6398
6399#ifdef __cplusplus
6400}
6401#endif
6402EOF
6403 # Now try linking the two files.
6404 mv conftest.$ac_objext conftstm.$ac_objext
6405 lt_save_LIBS="$LIBS"
6406 lt_save_CFLAGS="$CFLAGS"
6407 LIBS="conftstm.$ac_objext"
6408 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410 (eval $ac_link) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6414 pipe_works=yes
6415 fi
6416 LIBS="$lt_save_LIBS"
6417 CFLAGS="$lt_save_CFLAGS"
6418 else
6419 echo "cannot find nm_test_func in $nlist" >&5
6420 fi
6421 else
6422 echo "cannot find nm_test_var in $nlist" >&5
6423 fi
6424 else
6425 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6426 fi
6427 else
6428 echo "$progname: failed program was:" >&5
6429 cat conftest.$ac_ext >&5
6430 fi
openvcdiffd1845782009-03-20 21:56:15 +00006431 rm -rf conftest* conftst*
openvcdiff311c7142008-08-26 19:29:25 +00006432
6433 # Do not use the global_symbol_pipe unless it works.
6434 if test "$pipe_works" = yes; then
6435 break
6436 else
6437 lt_cv_sys_global_symbol_pipe=
6438 fi
6439done
6440
6441fi
6442
6443if test -z "$lt_cv_sys_global_symbol_pipe"; then
6444 lt_cv_sys_global_symbol_to_cdecl=
6445fi
6446if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
openvcdiffd1845782009-03-20 21:56:15 +00006447 { echo "$as_me:$LINENO: result: failed" >&5
6448echo "${ECHO_T}failed" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006449else
openvcdiffd1845782009-03-20 21:56:15 +00006450 { echo "$as_me:$LINENO: result: ok" >&5
6451echo "${ECHO_T}ok" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006452fi
6453
openvcdiffd1845782009-03-20 21:56:15 +00006454{ echo "$as_me:$LINENO: checking for objdir" >&5
6455echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006456if test "${lt_cv_objdir+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458else
6459 rm -f .libs 2>/dev/null
6460mkdir .libs 2>/dev/null
6461if test -d .libs; then
6462 lt_cv_objdir=.libs
6463else
6464 # MS-DOS does not allow filenames that begin with a dot.
6465 lt_cv_objdir=_libs
6466fi
6467rmdir .libs 2>/dev/null
6468fi
openvcdiffd1845782009-03-20 21:56:15 +00006469{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6470echo "${ECHO_T}$lt_cv_objdir" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006471objdir=$lt_cv_objdir
6472
6473
6474
6475
6476
6477case $host_os in
6478aix3*)
6479 # AIX sometimes has problems with the GCC collect2 program. For some
6480 # reason, if we set the COLLECT_NAMES environment variable, the problems
6481 # vanish in a puff of smoke.
6482 if test "X${COLLECT_NAMES+set}" != Xset; then
6483 COLLECT_NAMES=
6484 export COLLECT_NAMES
6485 fi
6486 ;;
6487esac
6488
6489# Sed substitution that helps us do robust quoting. It backslashifies
6490# metacharacters that are still active within double-quoted strings.
6491Xsed='sed -e 1s/^X//'
6492sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6493
6494# Same as above, but do not quote variable references.
6495double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6496
6497# Sed substitution to delay expansion of an escaped shell variable in a
6498# double_quote_subst'ed string.
6499delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6500
6501# Sed substitution to avoid accidental globbing in evaled expressions
6502no_glob_subst='s/\*/\\\*/g'
6503
6504# Constants:
6505rm="rm -f"
6506
6507# Global variables:
6508default_ofile=libtool
6509can_build_shared=yes
6510
6511# All known linkers require a `.a' archive for static linking (except MSVC,
6512# which needs '.lib').
6513libext=a
6514ltmain="$ac_aux_dir/ltmain.sh"
6515ofile="$default_ofile"
6516with_gnu_ld="$lt_cv_prog_gnu_ld"
6517
6518if test -n "$ac_tool_prefix"; then
6519 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6520set dummy ${ac_tool_prefix}ar; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00006521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006523if test "${ac_cv_prog_AR+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525else
6526 if test -n "$AR"; then
6527 ac_cv_prog_AR="$AR" # Let the user override the test.
6528else
6529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00006535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00006536 ac_cv_prog_AR="${ac_tool_prefix}ar"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540done
6541done
openvcdiffd1845782009-03-20 21:56:15 +00006542IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00006543
6544fi
6545fi
6546AR=$ac_cv_prog_AR
6547if test -n "$AR"; then
openvcdiffd1845782009-03-20 21:56:15 +00006548 { echo "$as_me:$LINENO: result: $AR" >&5
6549echo "${ECHO_T}$AR" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006550else
openvcdiffd1845782009-03-20 21:56:15 +00006551 { echo "$as_me:$LINENO: result: no" >&5
6552echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006553fi
6554
openvcdiffd1845782009-03-20 21:56:15 +00006555
openvcdiff311c7142008-08-26 19:29:25 +00006556fi
6557if test -z "$ac_cv_prog_AR"; then
6558 ac_ct_AR=$AR
6559 # Extract the first word of "ar", so it can be a program name with args.
6560set dummy ar; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00006561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006563if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566 if test -n "$ac_ct_AR"; then
6567 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6568else
6569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00006575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00006576 ac_cv_prog_ac_ct_AR="ar"
6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6579 fi
6580done
6581done
openvcdiffd1845782009-03-20 21:56:15 +00006582IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00006583
openvcdiff311c7142008-08-26 19:29:25 +00006584fi
6585fi
6586ac_ct_AR=$ac_cv_prog_ac_ct_AR
6587if test -n "$ac_ct_AR"; then
openvcdiffd1845782009-03-20 21:56:15 +00006588 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6589echo "${ECHO_T}$ac_ct_AR" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006590else
openvcdiffd1845782009-03-20 21:56:15 +00006591 { echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006593fi
6594
openvcdiffd1845782009-03-20 21:56:15 +00006595 if test "x$ac_ct_AR" = x; then
6596 AR="false"
6597 else
6598 case $cross_compiling:$ac_tool_warned in
6599yes:)
6600{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6601whose name does not start with the host triplet. If you think this
6602configuration is useful to you, please write to autoconf@gnu.org." >&5
6603echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6604whose name does not start with the host triplet. If you think this
6605configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6606ac_tool_warned=yes ;;
6607esac
6608 AR=$ac_ct_AR
6609 fi
openvcdiff311c7142008-08-26 19:29:25 +00006610else
6611 AR="$ac_cv_prog_AR"
6612fi
6613
6614if test -n "$ac_tool_prefix"; then
6615 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6616set dummy ${ac_tool_prefix}ranlib; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00006617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006619if test "${ac_cv_prog_RANLIB+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622 if test -n "$RANLIB"; then
6623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00006631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00006632 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636done
6637done
openvcdiffd1845782009-03-20 21:56:15 +00006638IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00006639
6640fi
6641fi
6642RANLIB=$ac_cv_prog_RANLIB
6643if test -n "$RANLIB"; then
openvcdiffd1845782009-03-20 21:56:15 +00006644 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6645echo "${ECHO_T}$RANLIB" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006646else
openvcdiffd1845782009-03-20 21:56:15 +00006647 { echo "$as_me:$LINENO: result: no" >&5
6648echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006649fi
6650
openvcdiffd1845782009-03-20 21:56:15 +00006651
openvcdiff311c7142008-08-26 19:29:25 +00006652fi
6653if test -z "$ac_cv_prog_RANLIB"; then
6654 ac_ct_RANLIB=$RANLIB
6655 # Extract the first word of "ranlib", so it can be a program name with args.
6656set dummy ranlib; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00006657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006659if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662 if test -n "$ac_ct_RANLIB"; then
6663 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00006671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00006672 ac_cv_prog_ac_ct_RANLIB="ranlib"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677done
openvcdiffd1845782009-03-20 21:56:15 +00006678IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00006679
openvcdiff311c7142008-08-26 19:29:25 +00006680fi
6681fi
6682ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6683if test -n "$ac_ct_RANLIB"; then
openvcdiffd1845782009-03-20 21:56:15 +00006684 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6685echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006686else
openvcdiffd1845782009-03-20 21:56:15 +00006687 { echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006689fi
6690
openvcdiffd1845782009-03-20 21:56:15 +00006691 if test "x$ac_ct_RANLIB" = x; then
6692 RANLIB=":"
6693 else
6694 case $cross_compiling:$ac_tool_warned in
6695yes:)
6696{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6697whose name does not start with the host triplet. If you think this
6698configuration is useful to you, please write to autoconf@gnu.org." >&5
6699echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6700whose name does not start with the host triplet. If you think this
6701configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6702ac_tool_warned=yes ;;
6703esac
6704 RANLIB=$ac_ct_RANLIB
6705 fi
openvcdiff311c7142008-08-26 19:29:25 +00006706else
6707 RANLIB="$ac_cv_prog_RANLIB"
6708fi
6709
6710if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6712set dummy ${ac_tool_prefix}strip; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00006713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006715if test "${ac_cv_prog_STRIP+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718 if test -n "$STRIP"; then
6719 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00006727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00006728 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732done
6733done
openvcdiffd1845782009-03-20 21:56:15 +00006734IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00006735
6736fi
6737fi
6738STRIP=$ac_cv_prog_STRIP
6739if test -n "$STRIP"; then
openvcdiffd1845782009-03-20 21:56:15 +00006740 { echo "$as_me:$LINENO: result: $STRIP" >&5
6741echo "${ECHO_T}$STRIP" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006742else
openvcdiffd1845782009-03-20 21:56:15 +00006743 { echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006745fi
6746
openvcdiffd1845782009-03-20 21:56:15 +00006747
openvcdiff311c7142008-08-26 19:29:25 +00006748fi
6749if test -z "$ac_cv_prog_STRIP"; then
6750 ac_ct_STRIP=$STRIP
6751 # Extract the first word of "strip", so it can be a program name with args.
6752set dummy strip; ac_word=$2
openvcdiffd1845782009-03-20 21:56:15 +00006753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006755if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 if test -n "$ac_ct_STRIP"; then
6759 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00006767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff311c7142008-08-26 19:29:25 +00006768 ac_cv_prog_ac_ct_STRIP="strip"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
6773done
openvcdiffd1845782009-03-20 21:56:15 +00006774IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00006775
openvcdiff311c7142008-08-26 19:29:25 +00006776fi
6777fi
6778ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6779if test -n "$ac_ct_STRIP"; then
openvcdiffd1845782009-03-20 21:56:15 +00006780 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6781echo "${ECHO_T}$ac_ct_STRIP" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006782else
openvcdiffd1845782009-03-20 21:56:15 +00006783 { echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006785fi
6786
openvcdiffd1845782009-03-20 21:56:15 +00006787 if test "x$ac_ct_STRIP" = x; then
6788 STRIP=":"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791yes:)
6792{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6793whose name does not start with the host triplet. If you think this
6794configuration is useful to you, please write to autoconf@gnu.org." >&5
6795echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6796whose name does not start with the host triplet. If you think this
6797configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6798ac_tool_warned=yes ;;
6799esac
6800 STRIP=$ac_ct_STRIP
6801 fi
openvcdiff311c7142008-08-26 19:29:25 +00006802else
6803 STRIP="$ac_cv_prog_STRIP"
6804fi
6805
6806
6807old_CC="$CC"
6808old_CFLAGS="$CFLAGS"
6809
6810# Set sane defaults for various variables
6811test -z "$AR" && AR=ar
6812test -z "$AR_FLAGS" && AR_FLAGS=cru
6813test -z "$AS" && AS=as
6814test -z "$CC" && CC=cc
6815test -z "$LTCC" && LTCC=$CC
6816test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6817test -z "$DLLTOOL" && DLLTOOL=dlltool
6818test -z "$LD" && LD=ld
6819test -z "$LN_S" && LN_S="ln -s"
6820test -z "$MAGIC_CMD" && MAGIC_CMD=file
6821test -z "$NM" && NM=nm
6822test -z "$SED" && SED=sed
6823test -z "$OBJDUMP" && OBJDUMP=objdump
6824test -z "$RANLIB" && RANLIB=:
6825test -z "$STRIP" && STRIP=:
6826test -z "$ac_objext" && ac_objext=o
6827
6828# Determine commands to create old-style static archives.
openvcdiffd1845782009-03-20 21:56:15 +00006829old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
openvcdiff311c7142008-08-26 19:29:25 +00006830old_postinstall_cmds='chmod 644 $oldlib'
6831old_postuninstall_cmds=
6832
6833if test -n "$RANLIB"; then
6834 case $host_os in
6835 openbsd*)
6836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6837 ;;
6838 *)
6839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6840 ;;
6841 esac
6842 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6843fi
6844
6845for cc_temp in $compiler""; do
6846 case $cc_temp in
6847 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6848 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6849 \-*) ;;
6850 *) break;;
6851 esac
6852done
6853cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6854
6855
6856# Only perform the check for file, if the check method requires it
6857case $deplibs_check_method in
6858file_magic*)
6859 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
openvcdiffd1845782009-03-20 21:56:15 +00006860 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6861echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006862if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865 case $MAGIC_CMD in
6866[\\/*] | ?:[\\/]*)
6867 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6868 ;;
6869*)
6870 lt_save_MAGIC_CMD="$MAGIC_CMD"
6871 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6872 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6873 for ac_dir in $ac_dummy; do
6874 IFS="$lt_save_ifs"
6875 test -z "$ac_dir" && ac_dir=.
6876 if test -f $ac_dir/${ac_tool_prefix}file; then
6877 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6878 if test -n "$file_magic_test_file"; then
6879 case $deplibs_check_method in
6880 "file_magic "*)
6881 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6882 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6883 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6884 $EGREP "$file_magic_regex" > /dev/null; then
6885 :
6886 else
6887 cat <<EOF 1>&2
6888
6889*** Warning: the command libtool uses to detect shared libraries,
6890*** $file_magic_cmd, produces output that libtool cannot recognize.
6891*** The result is that libtool may fail to recognize shared libraries
6892*** as such. This will affect the creation of libtool libraries that
6893*** depend on shared libraries, but programs linked with such libtool
6894*** libraries will work regardless of this problem. Nevertheless, you
6895*** may want to report the problem to your system manager and/or to
6896*** bug-libtool@gnu.org
6897
6898EOF
6899 fi ;;
6900 esac
6901 fi
6902 break
6903 fi
6904 done
6905 IFS="$lt_save_ifs"
6906 MAGIC_CMD="$lt_save_MAGIC_CMD"
6907 ;;
6908esac
6909fi
6910
6911MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6912if test -n "$MAGIC_CMD"; then
openvcdiffd1845782009-03-20 21:56:15 +00006913 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6914echo "${ECHO_T}$MAGIC_CMD" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006915else
openvcdiffd1845782009-03-20 21:56:15 +00006916 { echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006918fi
6919
6920if test -z "$lt_cv_path_MAGIC_CMD"; then
6921 if test -n "$ac_tool_prefix"; then
openvcdiffd1845782009-03-20 21:56:15 +00006922 { echo "$as_me:$LINENO: checking for file" >&5
6923echo $ECHO_N "checking for file... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006924if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927 case $MAGIC_CMD in
6928[\\/*] | ?:[\\/]*)
6929 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6930 ;;
6931*)
6932 lt_save_MAGIC_CMD="$MAGIC_CMD"
6933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6934 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6935 for ac_dir in $ac_dummy; do
6936 IFS="$lt_save_ifs"
6937 test -z "$ac_dir" && ac_dir=.
6938 if test -f $ac_dir/file; then
6939 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6940 if test -n "$file_magic_test_file"; then
6941 case $deplibs_check_method in
6942 "file_magic "*)
6943 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6945 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6946 $EGREP "$file_magic_regex" > /dev/null; then
6947 :
6948 else
6949 cat <<EOF 1>&2
6950
6951*** Warning: the command libtool uses to detect shared libraries,
6952*** $file_magic_cmd, produces output that libtool cannot recognize.
6953*** The result is that libtool may fail to recognize shared libraries
6954*** as such. This will affect the creation of libtool libraries that
6955*** depend on shared libraries, but programs linked with such libtool
6956*** libraries will work regardless of this problem. Nevertheless, you
6957*** may want to report the problem to your system manager and/or to
6958*** bug-libtool@gnu.org
6959
6960EOF
6961 fi ;;
6962 esac
6963 fi
6964 break
6965 fi
6966 done
6967 IFS="$lt_save_ifs"
6968 MAGIC_CMD="$lt_save_MAGIC_CMD"
6969 ;;
6970esac
6971fi
6972
6973MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6974if test -n "$MAGIC_CMD"; then
openvcdiffd1845782009-03-20 21:56:15 +00006975 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6976echo "${ECHO_T}$MAGIC_CMD" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006977else
openvcdiffd1845782009-03-20 21:56:15 +00006978 { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006980fi
6981
6982 else
6983 MAGIC_CMD=:
6984 fi
6985fi
6986
6987 fi
6988 ;;
6989esac
6990
openvcdiffd1845782009-03-20 21:56:15 +00006991
6992 case $host_os in
6993 rhapsody* | darwin*)
6994 if test -n "$ac_tool_prefix"; then
6995 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6996set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 if test -n "$DSYMUTIL"; then
7003 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7004else
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016done
7017done
7018IFS=$as_save_IFS
7019
7020fi
7021fi
7022DSYMUTIL=$ac_cv_prog_DSYMUTIL
7023if test -n "$DSYMUTIL"; then
7024 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7025echo "${ECHO_T}$DSYMUTIL" >&6; }
7026else
7027 { echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6; }
7029fi
7030
7031
7032fi
7033if test -z "$ac_cv_prog_DSYMUTIL"; then
7034 ac_ct_DSYMUTIL=$DSYMUTIL
7035 # Extract the first word of "dsymutil", so it can be a program name with args.
7036set dummy dsymutil; ac_word=$2
7037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042 if test -n "$ac_ct_DSYMUTIL"; then
7043 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7063if test -n "$ac_ct_DSYMUTIL"; then
7064 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7065echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7066else
7067 { echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6; }
7069fi
7070
7071 if test "x$ac_ct_DSYMUTIL" = x; then
7072 DSYMUTIL=":"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075yes:)
7076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7077whose name does not start with the host triplet. If you think this
7078configuration is useful to you, please write to autoconf@gnu.org." >&5
7079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7080whose name does not start with the host triplet. If you think this
7081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7082ac_tool_warned=yes ;;
7083esac
7084 DSYMUTIL=$ac_ct_DSYMUTIL
7085 fi
7086else
7087 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7088fi
7089
7090 if test -n "$ac_tool_prefix"; then
7091 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7092set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095if test "${ac_cv_prog_NMEDIT+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097else
7098 if test -n "$NMEDIT"; then
7099 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112done
7113done
7114IFS=$as_save_IFS
7115
7116fi
7117fi
7118NMEDIT=$ac_cv_prog_NMEDIT
7119if test -n "$NMEDIT"; then
7120 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7121echo "${ECHO_T}$NMEDIT" >&6; }
7122else
7123 { echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6; }
7125fi
7126
7127
7128fi
7129if test -z "$ac_cv_prog_NMEDIT"; then
7130 ac_ct_NMEDIT=$NMEDIT
7131 # Extract the first word of "nmedit", so it can be a program name with args.
7132set dummy nmedit; ac_word=$2
7133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138 if test -n "$ac_ct_NMEDIT"; then
7139 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7140else
7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152done
7153done
7154IFS=$as_save_IFS
7155
7156fi
7157fi
7158ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7159if test -n "$ac_ct_NMEDIT"; then
7160 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7161echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7162else
7163 { echo "$as_me:$LINENO: result: no" >&5
7164echo "${ECHO_T}no" >&6; }
7165fi
7166
7167 if test "x$ac_ct_NMEDIT" = x; then
7168 NMEDIT=":"
7169 else
7170 case $cross_compiling:$ac_tool_warned in
7171yes:)
7172{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7173whose name does not start with the host triplet. If you think this
7174configuration is useful to you, please write to autoconf@gnu.org." >&5
7175echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7176whose name does not start with the host triplet. If you think this
7177configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7178ac_tool_warned=yes ;;
7179esac
7180 NMEDIT=$ac_ct_NMEDIT
7181 fi
7182else
7183 NMEDIT="$ac_cv_prog_NMEDIT"
7184fi
7185
7186
7187 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7188echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7189if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192 lt_cv_apple_cc_single_mod=no
7193 if test -z "${LT_MULTI_MODULE}"; then
7194 # By default we will add the -single_module flag. You can override
7195 # by either setting the environment variable LT_MULTI_MODULE
7196 # non-empty at configure time, or by adding -multi_module to the
7197 # link flags.
7198 echo "int foo(void){return 1;}" > conftest.c
7199 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7200 -dynamiclib ${wl}-single_module conftest.c
7201 if test -f libconftest.dylib; then
7202 lt_cv_apple_cc_single_mod=yes
7203 rm -rf libconftest.dylib*
7204 fi
7205 rm conftest.c
7206 fi
7207fi
7208{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7209echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7210 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7211echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7212if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215 lt_cv_ld_exported_symbols_list=no
7216 save_LDFLAGS=$LDFLAGS
7217 echo "_main" > conftest.sym
7218 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7219 cat >conftest.$ac_ext <<_ACEOF
7220/* confdefs.h. */
7221_ACEOF
7222cat confdefs.h >>conftest.$ac_ext
7223cat >>conftest.$ac_ext <<_ACEOF
7224/* end confdefs.h. */
7225
7226int
7227main ()
7228{
7229
7230 ;
7231 return 0;
7232}
7233_ACEOF
7234rm -f conftest.$ac_objext conftest$ac_exeext
7235if { (ac_try="$ac_link"
7236case "(($ac_try" in
7237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238 *) ac_try_echo=$ac_try;;
7239esac
7240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241 (eval "$ac_link") 2>conftest.er1
7242 ac_status=$?
7243 grep -v '^ *+' conftest.er1 >conftest.err
7244 rm -f conftest.er1
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && {
7248 test -z "$ac_c_werror_flag" ||
7249 test ! -s conftest.err
7250 } && test -s conftest$ac_exeext &&
7251 $as_test_x conftest$ac_exeext; then
7252 lt_cv_ld_exported_symbols_list=yes
7253else
7254 echo "$as_me: failed program was:" >&5
7255sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 lt_cv_ld_exported_symbols_list=no
7258fi
7259
7260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7261 conftest$ac_exeext conftest.$ac_ext
7262 LDFLAGS="$save_LDFLAGS"
7263
7264fi
7265{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7266echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7267 case $host_os in
7268 rhapsody* | darwin1.[0123])
7269 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7270 darwin1.*)
7271 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7272 darwin*)
7273 # if running on 10.5 or later, the deployment target defaults
7274 # to the OS version, if on x86, and 10.4, the deployment
7275 # target defaults to 10.4. Don't you love it?
7276 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7277 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7278 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7279 10.[012]*)
7280 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7281 10.*)
7282 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7283 esac
7284 ;;
7285 esac
7286 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7287 _lt_dar_single_mod='$single_module'
7288 fi
7289 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7290 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7291 else
7292 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7293 fi
7294 if test "$DSYMUTIL" != ":"; then
7295 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7296 else
7297 _lt_dsymutil=
7298 fi
7299 ;;
7300 esac
7301
7302
openvcdiff311c7142008-08-26 19:29:25 +00007303enable_dlopen=no
7304enable_win32_dll=no
7305
openvcdiffd1845782009-03-20 21:56:15 +00007306# Check whether --enable-libtool-lock was given.
openvcdiff311c7142008-08-26 19:29:25 +00007307if test "${enable_libtool_lock+set}" = set; then
openvcdiffd1845782009-03-20 21:56:15 +00007308 enableval=$enable_libtool_lock;
7309fi
openvcdiff311c7142008-08-26 19:29:25 +00007310
openvcdiff311c7142008-08-26 19:29:25 +00007311test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7312
7313
openvcdiffd1845782009-03-20 21:56:15 +00007314# Check whether --with-pic was given.
openvcdiff311c7142008-08-26 19:29:25 +00007315if test "${with_pic+set}" = set; then
openvcdiffd1845782009-03-20 21:56:15 +00007316 withval=$with_pic; pic_mode="$withval"
openvcdiff311c7142008-08-26 19:29:25 +00007317else
7318 pic_mode=default
openvcdiffd1845782009-03-20 21:56:15 +00007319fi
7320
openvcdiff311c7142008-08-26 19:29:25 +00007321test -z "$pic_mode" && pic_mode=default
7322
7323# Use C for the default configuration in the libtool script
7324tagname=
7325lt_save_CC="$CC"
7326ac_ext=c
7327ac_cpp='$CPP $CPPFLAGS'
7328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331
7332
7333# Source file extension for C test sources.
7334ac_ext=c
7335
7336# Object file extension for compiled C test sources.
7337objext=o
7338objext=$objext
7339
7340# Code to be used in simple compile tests
openvcdiffd1845782009-03-20 21:56:15 +00007341lt_simple_compile_test_code="int some_variable = 0;"
openvcdiff311c7142008-08-26 19:29:25 +00007342
7343# Code to be used in simple link tests
openvcdiffd1845782009-03-20 21:56:15 +00007344lt_simple_link_test_code='int main(){return(0);}'
openvcdiff311c7142008-08-26 19:29:25 +00007345
7346
7347# If no C compiler was specified, use CC.
7348LTCC=${LTCC-"$CC"}
7349
7350# If no C compiler flags were specified, use CFLAGS.
7351LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7352
7353# Allow CC to be a program name with arguments.
7354compiler=$CC
7355
7356
7357# save warnings/boilerplate of simple test code
7358ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00007359echo "$lt_simple_compile_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00007360eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7361_lt_compiler_boilerplate=`cat conftest.err`
7362$rm conftest*
7363
7364ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00007365echo "$lt_simple_link_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00007366eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7367_lt_linker_boilerplate=`cat conftest.err`
openvcdiffd1845782009-03-20 21:56:15 +00007368$rm -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +00007369
7370
7371
7372lt_prog_compiler_no_builtin_flag=
7373
7374if test "$GCC" = yes; then
7375 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7376
7377
openvcdiffd1845782009-03-20 21:56:15 +00007378{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7379echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007380if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383 lt_cv_prog_compiler_rtti_exceptions=no
7384 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00007385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00007386 lt_compiler_flag="-fno-rtti -fno-exceptions"
7387 # Insert the option either (1) after the last *FLAGS variable, or
7388 # (2) before a word containing "conftest.", or (3) at the end.
7389 # Note that $ac_compile itself does not contain backslashes and begins
7390 # with a dollar sign (not a hyphen), so the echo should work correctly.
7391 # The option is referenced via a variable to avoid confusing sed.
7392 lt_compile=`echo "$ac_compile" | $SED \
7393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7395 -e 's:$: $lt_compiler_flag:'`
openvcdiffbaf44ea2009-04-09 19:20:49 +00007396 (eval echo "\"\$as_me:7396: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +00007397 (eval "$lt_compile" 2>conftest.err)
7398 ac_status=$?
7399 cat conftest.err >&5
openvcdiffbaf44ea2009-04-09 19:20:49 +00007400 echo "$as_me:7400: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +00007401 if (exit $ac_status) && test -s "$ac_outfile"; then
7402 # The compiler can only warn and ignore the option if not recognized
7403 # So say no if there are warnings other than the usual output.
7404 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7407 lt_cv_prog_compiler_rtti_exceptions=yes
7408 fi
7409 fi
7410 $rm conftest*
7411
7412fi
openvcdiffd1845782009-03-20 21:56:15 +00007413{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7414echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007415
7416if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7417 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7418else
7419 :
7420fi
7421
7422fi
7423
7424lt_prog_compiler_wl=
7425lt_prog_compiler_pic=
7426lt_prog_compiler_static=
7427
openvcdiffd1845782009-03-20 21:56:15 +00007428{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7429echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007430
7431 if test "$GCC" = yes; then
7432 lt_prog_compiler_wl='-Wl,'
7433 lt_prog_compiler_static='-static'
7434
7435 case $host_os in
7436 aix*)
7437 # All AIX code is PIC.
7438 if test "$host_cpu" = ia64; then
7439 # AIX 5 now supports IA64 processor
7440 lt_prog_compiler_static='-Bstatic'
7441 fi
7442 ;;
7443
7444 amigaos*)
7445 # FIXME: we need at least 68020 code to build shared libraries, but
7446 # adding the `-m68020' flag to GCC prevents building anything better,
7447 # like `-m68040'.
7448 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7449 ;;
7450
openvcdiffd1845782009-03-20 21:56:15 +00007451 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
openvcdiff311c7142008-08-26 19:29:25 +00007452 # PIC is the default for these OSes.
7453 ;;
7454
openvcdiffd1845782009-03-20 21:56:15 +00007455 mingw* | cygwin* | pw32* | os2*)
openvcdiff311c7142008-08-26 19:29:25 +00007456 # This hack is so that the source file can tell whether it is being
7457 # built for inclusion in a dll (and should export symbols for example).
openvcdiffd1845782009-03-20 21:56:15 +00007458 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7459 # (--disable-auto-import) libraries
openvcdiff311c7142008-08-26 19:29:25 +00007460 lt_prog_compiler_pic='-DDLL_EXPORT'
7461 ;;
7462
7463 darwin* | rhapsody*)
7464 # PIC is the default on this platform
7465 # Common symbols not allowed in MH_DYLIB files
7466 lt_prog_compiler_pic='-fno-common'
7467 ;;
7468
openvcdiffd1845782009-03-20 21:56:15 +00007469 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00007470 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7471 # Instead, we relocate shared libraries at runtime.
7472 ;;
7473
7474 msdosdjgpp*)
7475 # Just because we use GCC doesn't mean we suddenly get shared libraries
7476 # on systems that don't support them.
7477 lt_prog_compiler_can_build_shared=no
7478 enable_shared=no
7479 ;;
7480
7481 sysv4*MP*)
7482 if test -d /usr/nec; then
7483 lt_prog_compiler_pic=-Kconform_pic
7484 fi
7485 ;;
7486
7487 hpux*)
7488 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7489 # not for PA HP-UX.
7490 case $host_cpu in
7491 hppa*64*|ia64*)
7492 # +Z the default
7493 ;;
7494 *)
7495 lt_prog_compiler_pic='-fPIC'
7496 ;;
7497 esac
7498 ;;
7499
7500 *)
7501 lt_prog_compiler_pic='-fPIC'
7502 ;;
7503 esac
7504 else
7505 # PORTME Check for flag to pass linker flags through the system compiler.
7506 case $host_os in
7507 aix*)
7508 lt_prog_compiler_wl='-Wl,'
7509 if test "$host_cpu" = ia64; then
7510 # AIX 5 now supports IA64 processor
7511 lt_prog_compiler_static='-Bstatic'
7512 else
7513 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7514 fi
7515 ;;
7516 darwin*)
7517 # PIC is the default on this platform
7518 # Common symbols not allowed in MH_DYLIB files
7519 case $cc_basename in
7520 xlc*)
7521 lt_prog_compiler_pic='-qnocommon'
7522 lt_prog_compiler_wl='-Wl,'
7523 ;;
7524 esac
7525 ;;
7526
openvcdiffd1845782009-03-20 21:56:15 +00007527 mingw* | cygwin* | pw32* | os2*)
openvcdiff311c7142008-08-26 19:29:25 +00007528 # This hack is so that the source file can tell whether it is being
7529 # built for inclusion in a dll (and should export symbols for example).
7530 lt_prog_compiler_pic='-DDLL_EXPORT'
7531 ;;
7532
7533 hpux9* | hpux10* | hpux11*)
7534 lt_prog_compiler_wl='-Wl,'
7535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7536 # not for PA HP-UX.
7537 case $host_cpu in
7538 hppa*64*|ia64*)
7539 # +Z the default
7540 ;;
7541 *)
7542 lt_prog_compiler_pic='+Z'
7543 ;;
7544 esac
7545 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7546 lt_prog_compiler_static='${wl}-a ${wl}archive'
7547 ;;
7548
7549 irix5* | irix6* | nonstopux*)
7550 lt_prog_compiler_wl='-Wl,'
7551 # PIC (with -KPIC) is the default.
7552 lt_prog_compiler_static='-non_shared'
7553 ;;
7554
7555 newsos6)
7556 lt_prog_compiler_pic='-KPIC'
7557 lt_prog_compiler_static='-Bstatic'
7558 ;;
7559
openvcdiffd1845782009-03-20 21:56:15 +00007560 linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +00007561 case $cc_basename in
7562 icc* | ecc*)
7563 lt_prog_compiler_wl='-Wl,'
7564 lt_prog_compiler_pic='-KPIC'
7565 lt_prog_compiler_static='-static'
7566 ;;
7567 pgcc* | pgf77* | pgf90* | pgf95*)
7568 # Portland Group compilers (*not* the Pentium gcc compiler,
7569 # which looks to be a dead project)
7570 lt_prog_compiler_wl='-Wl,'
7571 lt_prog_compiler_pic='-fpic'
7572 lt_prog_compiler_static='-Bstatic'
7573 ;;
7574 ccc*)
7575 lt_prog_compiler_wl='-Wl,'
7576 # All Alpha code is PIC.
7577 lt_prog_compiler_static='-non_shared'
7578 ;;
openvcdiffd1845782009-03-20 21:56:15 +00007579 *)
7580 case `$CC -V 2>&1 | sed 5q` in
7581 *Sun\ C*)
7582 # Sun C 5.9
7583 lt_prog_compiler_pic='-KPIC'
7584 lt_prog_compiler_static='-Bstatic'
7585 lt_prog_compiler_wl='-Wl,'
7586 ;;
7587 *Sun\ F*)
7588 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7589 lt_prog_compiler_pic='-KPIC'
7590 lt_prog_compiler_static='-Bstatic'
7591 lt_prog_compiler_wl=''
7592 ;;
7593 esac
7594 ;;
openvcdiff311c7142008-08-26 19:29:25 +00007595 esac
7596 ;;
7597
7598 osf3* | osf4* | osf5*)
7599 lt_prog_compiler_wl='-Wl,'
7600 # All OSF/1 code is PIC.
7601 lt_prog_compiler_static='-non_shared'
7602 ;;
7603
openvcdiffd1845782009-03-20 21:56:15 +00007604 rdos*)
7605 lt_prog_compiler_static='-non_shared'
7606 ;;
7607
openvcdiff311c7142008-08-26 19:29:25 +00007608 solaris*)
7609 lt_prog_compiler_pic='-KPIC'
7610 lt_prog_compiler_static='-Bstatic'
7611 case $cc_basename in
7612 f77* | f90* | f95*)
7613 lt_prog_compiler_wl='-Qoption ld ';;
7614 *)
7615 lt_prog_compiler_wl='-Wl,';;
7616 esac
7617 ;;
7618
7619 sunos4*)
7620 lt_prog_compiler_wl='-Qoption ld '
7621 lt_prog_compiler_pic='-PIC'
7622 lt_prog_compiler_static='-Bstatic'
7623 ;;
7624
7625 sysv4 | sysv4.2uw2* | sysv4.3*)
7626 lt_prog_compiler_wl='-Wl,'
7627 lt_prog_compiler_pic='-KPIC'
7628 lt_prog_compiler_static='-Bstatic'
7629 ;;
7630
7631 sysv4*MP*)
7632 if test -d /usr/nec ;then
7633 lt_prog_compiler_pic='-Kconform_pic'
7634 lt_prog_compiler_static='-Bstatic'
7635 fi
7636 ;;
7637
7638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7639 lt_prog_compiler_wl='-Wl,'
7640 lt_prog_compiler_pic='-KPIC'
7641 lt_prog_compiler_static='-Bstatic'
7642 ;;
7643
7644 unicos*)
7645 lt_prog_compiler_wl='-Wl,'
7646 lt_prog_compiler_can_build_shared=no
7647 ;;
7648
7649 uts4*)
7650 lt_prog_compiler_pic='-pic'
7651 lt_prog_compiler_static='-Bstatic'
7652 ;;
7653
7654 *)
7655 lt_prog_compiler_can_build_shared=no
7656 ;;
7657 esac
7658 fi
7659
openvcdiffd1845782009-03-20 21:56:15 +00007660{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7661echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007662
7663#
7664# Check to make sure the PIC flag actually works.
7665#
7666if test -n "$lt_prog_compiler_pic"; then
7667
openvcdiffd1845782009-03-20 21:56:15 +00007668{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7669echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7670if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
openvcdiff311c7142008-08-26 19:29:25 +00007671 echo $ECHO_N "(cached) $ECHO_C" >&6
7672else
openvcdiffd1845782009-03-20 21:56:15 +00007673 lt_cv_prog_compiler_pic_works=no
openvcdiff311c7142008-08-26 19:29:25 +00007674 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00007675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00007676 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7677 # Insert the option either (1) after the last *FLAGS variable, or
7678 # (2) before a word containing "conftest.", or (3) at the end.
7679 # Note that $ac_compile itself does not contain backslashes and begins
7680 # with a dollar sign (not a hyphen), so the echo should work correctly.
7681 # The option is referenced via a variable to avoid confusing sed.
7682 lt_compile=`echo "$ac_compile" | $SED \
7683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7685 -e 's:$: $lt_compiler_flag:'`
openvcdiffbaf44ea2009-04-09 19:20:49 +00007686 (eval echo "\"\$as_me:7686: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +00007687 (eval "$lt_compile" 2>conftest.err)
7688 ac_status=$?
7689 cat conftest.err >&5
openvcdiffbaf44ea2009-04-09 19:20:49 +00007690 echo "$as_me:7690: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +00007691 if (exit $ac_status) && test -s "$ac_outfile"; then
7692 # The compiler can only warn and ignore the option if not recognized
7693 # So say no if there are warnings other than the usual output.
7694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +00007697 lt_cv_prog_compiler_pic_works=yes
openvcdiff311c7142008-08-26 19:29:25 +00007698 fi
7699 fi
7700 $rm conftest*
7701
7702fi
openvcdiffd1845782009-03-20 21:56:15 +00007703{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7704echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007705
openvcdiffd1845782009-03-20 21:56:15 +00007706if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +00007707 case $lt_prog_compiler_pic in
7708 "" | " "*) ;;
7709 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7710 esac
7711else
7712 lt_prog_compiler_pic=
7713 lt_prog_compiler_can_build_shared=no
7714fi
7715
7716fi
7717case $host_os in
7718 # For platforms which do not support PIC, -DPIC is meaningless:
7719 *djgpp*)
7720 lt_prog_compiler_pic=
7721 ;;
7722 *)
7723 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7724 ;;
7725esac
7726
7727#
7728# Check to make sure the static flag actually works.
7729#
7730wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
openvcdiffd1845782009-03-20 21:56:15 +00007731{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7732echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7733if test "${lt_cv_prog_compiler_static_works+set}" = set; then
openvcdiff311c7142008-08-26 19:29:25 +00007734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
openvcdiffd1845782009-03-20 21:56:15 +00007736 lt_cv_prog_compiler_static_works=no
openvcdiff311c7142008-08-26 19:29:25 +00007737 save_LDFLAGS="$LDFLAGS"
7738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
openvcdiffd1845782009-03-20 21:56:15 +00007739 echo "$lt_simple_link_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00007740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7741 # The linker can only warn and ignore the option if not recognized
7742 # So say no if there are warnings
7743 if test -s conftest.err; then
7744 # Append any errors to the config.log.
7745 cat conftest.err 1>&5
7746 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7748 if diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +00007749 lt_cv_prog_compiler_static_works=yes
openvcdiff311c7142008-08-26 19:29:25 +00007750 fi
7751 else
openvcdiffd1845782009-03-20 21:56:15 +00007752 lt_cv_prog_compiler_static_works=yes
openvcdiff311c7142008-08-26 19:29:25 +00007753 fi
7754 fi
openvcdiffd1845782009-03-20 21:56:15 +00007755 $rm -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +00007756 LDFLAGS="$save_LDFLAGS"
7757
7758fi
openvcdiffd1845782009-03-20 21:56:15 +00007759{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7760echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007761
openvcdiffd1845782009-03-20 21:56:15 +00007762if test x"$lt_cv_prog_compiler_static_works" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +00007763 :
7764else
7765 lt_prog_compiler_static=
7766fi
7767
7768
openvcdiffd1845782009-03-20 21:56:15 +00007769{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7770echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007771if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774 lt_cv_prog_compiler_c_o=no
7775 $rm -r conftest 2>/dev/null
7776 mkdir conftest
7777 cd conftest
7778 mkdir out
openvcdiffd1845782009-03-20 21:56:15 +00007779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00007780
7781 lt_compiler_flag="-o out/conftest2.$ac_objext"
7782 # Insert the option either (1) after the last *FLAGS variable, or
7783 # (2) before a word containing "conftest.", or (3) at the end.
7784 # Note that $ac_compile itself does not contain backslashes and begins
7785 # with a dollar sign (not a hyphen), so the echo should work correctly.
7786 lt_compile=`echo "$ac_compile" | $SED \
7787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7789 -e 's:$: $lt_compiler_flag:'`
openvcdiffbaf44ea2009-04-09 19:20:49 +00007790 (eval echo "\"\$as_me:7790: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +00007791 (eval "$lt_compile" 2>out/conftest.err)
7792 ac_status=$?
7793 cat out/conftest.err >&5
openvcdiffbaf44ea2009-04-09 19:20:49 +00007794 echo "$as_me:7794: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +00007795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7796 then
7797 # The compiler can only warn and ignore the option if not recognized
7798 # So say no if there are warnings
7799 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7802 lt_cv_prog_compiler_c_o=yes
7803 fi
7804 fi
7805 chmod u+w . 2>&5
7806 $rm conftest*
7807 # SGI C++ compiler will create directory out/ii_files/ for
7808 # template instantiation
7809 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7810 $rm out/* && rmdir out
7811 cd ..
7812 rmdir conftest
7813 $rm conftest*
7814
7815fi
openvcdiffd1845782009-03-20 21:56:15 +00007816{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7817echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007818
7819
7820hard_links="nottested"
7821if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7822 # do not overwrite the value of need_locks provided by the user
openvcdiffd1845782009-03-20 21:56:15 +00007823 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7824echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007825 hard_links=yes
7826 $rm conftest*
7827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7828 touch conftest.a
7829 ln conftest.a conftest.b 2>&5 || hard_links=no
7830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
openvcdiffd1845782009-03-20 21:56:15 +00007831 { echo "$as_me:$LINENO: result: $hard_links" >&5
7832echo "${ECHO_T}$hard_links" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007833 if test "$hard_links" = no; then
7834 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7835echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7836 need_locks=warn
7837 fi
7838else
7839 need_locks=no
7840fi
7841
openvcdiffd1845782009-03-20 21:56:15 +00007842{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7843echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00007844
7845 runpath_var=
7846 allow_undefined_flag=
7847 enable_shared_with_static_runtimes=no
7848 archive_cmds=
7849 archive_expsym_cmds=
7850 old_archive_From_new_cmds=
7851 old_archive_from_expsyms_cmds=
7852 export_dynamic_flag_spec=
7853 whole_archive_flag_spec=
7854 thread_safe_flag_spec=
7855 hardcode_libdir_flag_spec=
7856 hardcode_libdir_flag_spec_ld=
7857 hardcode_libdir_separator=
7858 hardcode_direct=no
7859 hardcode_minus_L=no
7860 hardcode_shlibpath_var=unsupported
7861 link_all_deplibs=unknown
7862 hardcode_automatic=no
7863 module_cmds=
7864 module_expsym_cmds=
7865 always_export_symbols=no
7866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7867 # include_expsyms should be a list of space-separated symbols to be *always*
7868 # included in the symbol list
7869 include_expsyms=
7870 # exclude_expsyms can be an extended regexp of symbols to exclude
7871 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7872 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7873 # as well as any symbol that contains `d'.
openvcdiffd1845782009-03-20 21:56:15 +00007874 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
openvcdiff311c7142008-08-26 19:29:25 +00007875 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7876 # platforms (ab)use it in PIC code, but their linkers get confused if
7877 # the symbol is explicitly referenced. Since portable code cannot
7878 # rely on this symbol name, it's probably fine to never include it in
7879 # preloaded symbol tables.
openvcdiffd1845782009-03-20 21:56:15 +00007880 # Exclude shared library initialization/finalization symbols.
openvcdiff311c7142008-08-26 19:29:25 +00007881 extract_expsyms_cmds=
7882 # Just being paranoid about ensuring that cc_basename is set.
7883 for cc_temp in $compiler""; do
7884 case $cc_temp in
7885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7887 \-*) ;;
7888 *) break;;
7889 esac
7890done
7891cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7892
7893 case $host_os in
7894 cygwin* | mingw* | pw32*)
7895 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7896 # When not using gcc, we currently assume that we are using
7897 # Microsoft Visual C++.
7898 if test "$GCC" != yes; then
7899 with_gnu_ld=no
7900 fi
7901 ;;
7902 interix*)
7903 # we just hope/assume this is gcc and not c89 (= MSVC++)
7904 with_gnu_ld=yes
7905 ;;
7906 openbsd*)
7907 with_gnu_ld=no
7908 ;;
7909 esac
7910
7911 ld_shlibs=yes
7912 if test "$with_gnu_ld" = yes; then
7913 # If archive_cmds runs LD, not CC, wlarc should be empty
7914 wlarc='${wl}'
7915
7916 # Set some defaults for GNU ld with shared library support. These
7917 # are reset later if shared libraries are not supported. Putting them
7918 # here allows them to be overridden if necessary.
7919 runpath_var=LD_RUN_PATH
7920 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7921 export_dynamic_flag_spec='${wl}--export-dynamic'
7922 # ancient GNU ld didn't support --whole-archive et. al.
7923 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7924 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7925 else
7926 whole_archive_flag_spec=
7927 fi
7928 supports_anon_versioning=no
7929 case `$LD -v 2>/dev/null` in
7930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7933 *\ 2.11.*) ;; # other 2.11 versions
7934 *) supports_anon_versioning=yes ;;
7935 esac
7936
7937 # See if GNU ld supports shared libraries.
7938 case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +00007939 aix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00007940 # On AIX/PPC, the GNU linker is very broken
7941 if test "$host_cpu" != ia64; then
7942 ld_shlibs=no
7943 cat <<EOF 1>&2
7944
7945*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7946*** to be unable to reliably create shared libraries on AIX.
7947*** Therefore, libtool is disabling shared libraries support. If you
7948*** really care for shared libraries, you may want to modify your PATH
7949*** so that a non-GNU linker is found, and then restart.
7950
7951EOF
7952 fi
7953 ;;
7954
7955 amigaos*)
7956 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)'
7957 hardcode_libdir_flag_spec='-L$libdir'
7958 hardcode_minus_L=yes
7959
7960 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7961 # that the semantics of dynamic libraries on AmigaOS, at least up
7962 # to version 4, is to share data among multiple programs linked
7963 # with the same dynamic library. Since this doesn't match the
7964 # behavior of shared libraries on other platforms, we can't use
7965 # them.
7966 ld_shlibs=no
7967 ;;
7968
7969 beos*)
7970 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7971 allow_undefined_flag=unsupported
7972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7973 # support --undefined. This deserves some investigation. FIXME
7974 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7975 else
7976 ld_shlibs=no
7977 fi
7978 ;;
7979
7980 cygwin* | mingw* | pw32*)
7981 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7982 # as there is no search path for DLLs.
7983 hardcode_libdir_flag_spec='-L$libdir'
7984 allow_undefined_flag=unsupported
7985 always_export_symbols=no
7986 enable_shared_with_static_runtimes=yes
openvcdiffd1845782009-03-20 21:56:15 +00007987 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
openvcdiff311c7142008-08-26 19:29:25 +00007988
7989 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7991 # If the export-symbols file already is a .def file (1st line
7992 # is EXPORTS), use it as is; otherwise, prepend...
7993 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7994 cp $export_symbols $output_objdir/$soname.def;
7995 else
7996 echo EXPORTS > $output_objdir/$soname.def;
7997 cat $export_symbols >> $output_objdir/$soname.def;
7998 fi~
7999 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8000 else
8001 ld_shlibs=no
8002 fi
8003 ;;
8004
openvcdiffd1845782009-03-20 21:56:15 +00008005 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00008006 hardcode_direct=no
8007 hardcode_shlibpath_var=no
8008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8009 export_dynamic_flag_spec='${wl}-E'
8010 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8011 # Instead, shared libraries are loaded at an image base (0x10000000 by
8012 # default) and relocated if they conflict, which is a slow very memory
8013 # consuming and fragmenting process. To avoid this, we pick a random,
8014 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8015 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8016 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8017 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8018 ;;
8019
openvcdiffd1845782009-03-20 21:56:15 +00008020 gnu* | linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +00008021 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8022 tmp_addflag=
8023 case $cc_basename,$host_cpu in
8024 pgcc*) # Portland Group C compiler
8025 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8026 tmp_addflag=' $pic_flag'
8027 ;;
8028 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8029 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8030 tmp_addflag=' $pic_flag -Mnomain' ;;
8031 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8032 tmp_addflag=' -i_dynamic' ;;
8033 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8034 tmp_addflag=' -i_dynamic -nofor_main' ;;
8035 ifc* | ifort*) # Intel Fortran compiler
8036 tmp_addflag=' -nofor_main' ;;
8037 esac
openvcdiffd1845782009-03-20 21:56:15 +00008038 case `$CC -V 2>&1 | sed 5q` in
8039 *Sun\ C*) # Sun C 5.9
8040 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8041 tmp_sharedflag='-G' ;;
8042 *Sun\ F*) # Sun Fortran 8.3
8043 tmp_sharedflag='-G' ;;
8044 *)
8045 tmp_sharedflag='-shared' ;;
8046 esac
8047 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +00008048
8049 if test $supports_anon_versioning = yes; then
8050 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8052 $echo "local: *; };" >> $output_objdir/$libname.ver~
openvcdiffd1845782009-03-20 21:56:15 +00008053 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +00008054 fi
8055 link_all_deplibs=no
8056 else
8057 ld_shlibs=no
8058 fi
8059 ;;
8060
openvcdiffd1845782009-03-20 21:56:15 +00008061 netbsd* | netbsdelf*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +00008062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8063 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8064 wlarc=
8065 else
8066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8068 fi
8069 ;;
8070
8071 solaris*)
8072 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8073 ld_shlibs=no
8074 cat <<EOF 1>&2
8075
8076*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8077*** create shared libraries on Solaris systems. Therefore, libtool
8078*** is disabling shared libraries support. We urge you to upgrade GNU
8079*** binutils to release 2.9.1 or newer. Another option is to modify
8080*** your PATH or compiler configuration so that the native linker is
8081*** used, and then restart.
8082
8083EOF
8084 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8087 else
8088 ld_shlibs=no
8089 fi
8090 ;;
8091
8092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8093 case `$LD -v 2>&1` in
8094 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8095 ld_shlibs=no
8096 cat <<_LT_EOF 1>&2
8097
8098*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8099*** reliably create shared libraries on SCO systems. Therefore, libtool
8100*** is disabling shared libraries support. We urge you to upgrade GNU
8101*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8102*** your PATH or compiler configuration so that the native linker is
8103*** used, and then restart.
8104
8105_LT_EOF
8106 ;;
8107 *)
8108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8109 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8112 else
8113 ld_shlibs=no
8114 fi
8115 ;;
8116 esac
8117 ;;
8118
8119 sunos4*)
8120 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8121 wlarc=
8122 hardcode_direct=yes
8123 hardcode_shlibpath_var=no
8124 ;;
8125
8126 *)
8127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8130 else
8131 ld_shlibs=no
8132 fi
8133 ;;
8134 esac
8135
8136 if test "$ld_shlibs" = no; then
8137 runpath_var=
8138 hardcode_libdir_flag_spec=
8139 export_dynamic_flag_spec=
8140 whole_archive_flag_spec=
8141 fi
8142 else
8143 # PORTME fill in a description of your system's linker (not GNU ld)
8144 case $host_os in
8145 aix3*)
8146 allow_undefined_flag=unsupported
8147 always_export_symbols=yes
8148 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'
8149 # Note: this linker hardcodes the directories in LIBPATH if there
8150 # are no directories specified by -L.
8151 hardcode_minus_L=yes
8152 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8153 # Neither direct hardcoding nor static linking is supported with a
8154 # broken collect2.
8155 hardcode_direct=unsupported
8156 fi
8157 ;;
8158
openvcdiffd1845782009-03-20 21:56:15 +00008159 aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00008160 if test "$host_cpu" = ia64; then
8161 # On IA64, the linker does run time linking by default, so we don't
8162 # have to do anything special.
8163 aix_use_runtimelinking=no
8164 exp_sym_flag='-Bexport'
8165 no_entry_flag=""
8166 else
8167 # If we're using GNU nm, then we don't want the "-C" option.
8168 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8169 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8170 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8171 else
8172 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8173 fi
8174 aix_use_runtimelinking=no
8175
8176 # Test if we are trying to use run time linking or normal
8177 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8178 # need to do runtime linking.
openvcdiffd1845782009-03-20 21:56:15 +00008179 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00008180 for ld_flag in $LDFLAGS; do
8181 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8182 aix_use_runtimelinking=yes
8183 break
8184 fi
8185 done
8186 ;;
8187 esac
8188
8189 exp_sym_flag='-bexport'
8190 no_entry_flag='-bnoentry'
8191 fi
8192
8193 # When large executables or shared objects are built, AIX ld can
8194 # have problems creating the table of contents. If linking a library
8195 # or program results in "error TOC overflow" add -mminimal-toc to
8196 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8197 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8198
8199 archive_cmds=''
8200 hardcode_direct=yes
8201 hardcode_libdir_separator=':'
8202 link_all_deplibs=yes
8203
8204 if test "$GCC" = yes; then
8205 case $host_os in aix4.[012]|aix4.[012].*)
8206 # We only want to do this on AIX 4.2 and lower, the check
8207 # below for broken collect2 doesn't work under 4.3+
8208 collect2name=`${CC} -print-prog-name=collect2`
8209 if test -f "$collect2name" && \
8210 strings "$collect2name" | grep resolve_lib_name >/dev/null
8211 then
8212 # We have reworked collect2
openvcdiffd1845782009-03-20 21:56:15 +00008213 :
openvcdiff311c7142008-08-26 19:29:25 +00008214 else
8215 # We have old collect2
8216 hardcode_direct=unsupported
8217 # It fails to find uninstalled libraries when the uninstalled
8218 # path is not listed in the libpath. Setting hardcode_minus_L
8219 # to unsupported forces relinking
8220 hardcode_minus_L=yes
8221 hardcode_libdir_flag_spec='-L$libdir'
8222 hardcode_libdir_separator=
8223 fi
8224 ;;
8225 esac
8226 shared_flag='-shared'
8227 if test "$aix_use_runtimelinking" = yes; then
8228 shared_flag="$shared_flag "'${wl}-G'
8229 fi
8230 else
8231 # not using gcc
8232 if test "$host_cpu" = ia64; then
8233 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8234 # chokes on -Wl,-G. The following line is correct:
8235 shared_flag='-G'
8236 else
8237 if test "$aix_use_runtimelinking" = yes; then
8238 shared_flag='${wl}-G'
8239 else
8240 shared_flag='${wl}-bM:SRE'
8241 fi
8242 fi
8243 fi
8244
8245 # It seems that -bexpall does not export symbols beginning with
8246 # underscore (_), so it is better to generate a list of symbols to export.
8247 always_export_symbols=yes
8248 if test "$aix_use_runtimelinking" = yes; then
8249 # Warning - without using the other runtime loading flags (-brtl),
8250 # -berok will link without error, but may produce a broken library.
8251 allow_undefined_flag='-berok'
8252 # Determine the default libpath from the value encoded in an empty executable.
8253 cat >conftest.$ac_ext <<_ACEOF
8254/* confdefs.h. */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h. */
8259
8260int
8261main ()
8262{
8263
8264 ;
8265 return 0;
8266}
8267_ACEOF
8268rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +00008269if { (ac_try="$ac_link"
8270case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8273esac
8274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00008276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00008281 (exit $ac_status); } && {
8282 test -z "$ac_c_werror_flag" ||
8283 test ! -s conftest.err
8284 } && test -s conftest$ac_exeext &&
8285 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +00008286
openvcdiffd1845782009-03-20 21:56:15 +00008287lt_aix_libpath_sed='
8288 /Import File Strings/,/^$/ {
8289 /^0/ {
8290 s/^0 *\(.*\)$/\1/
8291 p
8292 }
8293 }'
8294aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
openvcdiff311c7142008-08-26 19:29:25 +00008295# Check for a 64-bit object if we didn't find anything.
openvcdiffd1845782009-03-20 21:56:15 +00008296if test -z "$aix_libpath"; then
8297 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8298fi
openvcdiff311c7142008-08-26 19:29:25 +00008299else
8300 echo "$as_me: failed program was:" >&5
8301sed 's/^/| /' conftest.$ac_ext >&5
8302
openvcdiffd1845782009-03-20 21:56:15 +00008303
openvcdiff311c7142008-08-26 19:29:25 +00008304fi
openvcdiffd1845782009-03-20 21:56:15 +00008305
8306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +00008307 conftest$ac_exeext conftest.$ac_ext
8308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8309
8310 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8311 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8312 else
8313 if test "$host_cpu" = ia64; then
8314 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8315 allow_undefined_flag="-z nodefs"
8316 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8317 else
8318 # Determine the default libpath from the value encoded in an empty executable.
8319 cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h. */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h. */
8325
8326int
8327main ()
8328{
8329
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +00008335if { (ac_try="$ac_link"
8336case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8339esac
8340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00008342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00008347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest$ac_exeext &&
8351 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +00008352
openvcdiffd1845782009-03-20 21:56:15 +00008353lt_aix_libpath_sed='
8354 /Import File Strings/,/^$/ {
8355 /^0/ {
8356 s/^0 *\(.*\)$/\1/
8357 p
8358 }
8359 }'
8360aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
openvcdiff311c7142008-08-26 19:29:25 +00008361# Check for a 64-bit object if we didn't find anything.
openvcdiffd1845782009-03-20 21:56:15 +00008362if test -z "$aix_libpath"; then
8363 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8364fi
openvcdiff311c7142008-08-26 19:29:25 +00008365else
8366 echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
openvcdiffd1845782009-03-20 21:56:15 +00008369
openvcdiff311c7142008-08-26 19:29:25 +00008370fi
openvcdiffd1845782009-03-20 21:56:15 +00008371
8372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +00008373 conftest$ac_exeext conftest.$ac_ext
8374if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8375
8376 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8377 # Warning - without using the other run time loading flags,
8378 # -berok will link without error, but may produce a broken library.
8379 no_undefined_flag=' ${wl}-bernotok'
8380 allow_undefined_flag=' ${wl}-berok'
8381 # Exported symbols can be pulled into shared objects from archives
8382 whole_archive_flag_spec='$convenience'
8383 archive_cmds_need_lc=yes
8384 # This is similar to how AIX traditionally builds its shared libraries.
8385 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8386 fi
8387 fi
8388 ;;
8389
8390 amigaos*)
8391 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)'
8392 hardcode_libdir_flag_spec='-L$libdir'
8393 hardcode_minus_L=yes
8394 # see comment about different semantics on the GNU ld section
8395 ld_shlibs=no
8396 ;;
8397
8398 bsdi[45]*)
8399 export_dynamic_flag_spec=-rdynamic
8400 ;;
8401
8402 cygwin* | mingw* | pw32*)
8403 # When not using gcc, we currently assume that we are using
8404 # Microsoft Visual C++.
8405 # hardcode_libdir_flag_spec is actually meaningless, as there is
8406 # no search path for DLLs.
8407 hardcode_libdir_flag_spec=' '
8408 allow_undefined_flag=unsupported
8409 # Tell ltmain to make .lib files, not .a files.
8410 libext=lib
8411 # Tell ltmain to make .dll files, not .so files.
8412 shrext_cmds=".dll"
8413 # FIXME: Setting linknames here is a bad hack.
8414 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8415 # The linker will automatically build a .lib file if we build a DLL.
8416 old_archive_From_new_cmds='true'
8417 # FIXME: Should let the user specify the lib program.
openvcdiffd1845782009-03-20 21:56:15 +00008418 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
openvcdiff311c7142008-08-26 19:29:25 +00008419 fix_srcfile_path='`cygpath -w "$srcfile"`'
8420 enable_shared_with_static_runtimes=yes
8421 ;;
8422
8423 darwin* | rhapsody*)
8424 case $host_os in
8425 rhapsody* | darwin1.[012])
8426 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8427 ;;
8428 *) # Darwin 1.3 on
8429 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8430 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8431 else
8432 case ${MACOSX_DEPLOYMENT_TARGET} in
8433 10.[012])
8434 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8435 ;;
8436 10.*)
8437 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8438 ;;
8439 esac
8440 fi
8441 ;;
8442 esac
8443 archive_cmds_need_lc=no
8444 hardcode_direct=no
8445 hardcode_automatic=yes
8446 hardcode_shlibpath_var=unsupported
8447 whole_archive_flag_spec=''
8448 link_all_deplibs=yes
8449 if test "$GCC" = yes ; then
8450 output_verbose_link_cmd='echo'
openvcdiffd1845782009-03-20 21:56:15 +00008451 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8452 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8453 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8454 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
openvcdiff311c7142008-08-26 19:29:25 +00008455 else
8456 case $cc_basename in
8457 xlc*)
8458 output_verbose_link_cmd='echo'
openvcdiffd1845782009-03-20 21:56:15 +00008459 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
openvcdiff311c7142008-08-26 19:29:25 +00008460 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
openvcdiffd1845782009-03-20 21:56:15 +00008462 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
openvcdiff311c7142008-08-26 19:29:25 +00008463 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8464 ;;
8465 *)
8466 ld_shlibs=no
8467 ;;
8468 esac
8469 fi
8470 ;;
8471
8472 dgux*)
8473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8474 hardcode_libdir_flag_spec='-L$libdir'
8475 hardcode_shlibpath_var=no
8476 ;;
8477
8478 freebsd1*)
8479 ld_shlibs=no
8480 ;;
8481
8482 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8483 # support. Future versions do this automatically, but an explicit c++rt0.o
8484 # does not break anything, and helps significantly (at the cost of a little
8485 # extra space).
8486 freebsd2.2*)
8487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8488 hardcode_libdir_flag_spec='-R$libdir'
8489 hardcode_direct=yes
8490 hardcode_shlibpath_var=no
8491 ;;
8492
8493 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8494 freebsd2*)
8495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8496 hardcode_direct=yes
8497 hardcode_minus_L=yes
8498 hardcode_shlibpath_var=no
8499 ;;
8500
8501 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8502 freebsd* | dragonfly*)
8503 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8504 hardcode_libdir_flag_spec='-R$libdir'
8505 hardcode_direct=yes
8506 hardcode_shlibpath_var=no
8507 ;;
8508
openvcdiff311c7142008-08-26 19:29:25 +00008509 hpux9*)
8510 if test "$GCC" = yes; then
8511 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8512 else
8513 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'
8514 fi
8515 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8516 hardcode_libdir_separator=:
8517 hardcode_direct=yes
8518
8519 # hardcode_minus_L: Not really in the search PATH,
8520 # but as the default location of the library.
8521 hardcode_minus_L=yes
8522 export_dynamic_flag_spec='${wl}-E'
8523 ;;
8524
8525 hpux10*)
8526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8527 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8528 else
8529 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8530 fi
8531 if test "$with_gnu_ld" = no; then
8532 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8533 hardcode_libdir_separator=:
8534
8535 hardcode_direct=yes
8536 export_dynamic_flag_spec='${wl}-E'
8537
8538 # hardcode_minus_L: Not really in the search PATH,
8539 # but as the default location of the library.
8540 hardcode_minus_L=yes
8541 fi
8542 ;;
8543
8544 hpux11*)
8545 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8546 case $host_cpu in
8547 hppa*64*)
8548 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8549 ;;
8550 ia64*)
8551 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8552 ;;
8553 *)
8554 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8555 ;;
8556 esac
8557 else
8558 case $host_cpu in
8559 hppa*64*)
8560 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8561 ;;
8562 ia64*)
8563 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8564 ;;
8565 *)
8566 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8567 ;;
8568 esac
8569 fi
8570 if test "$with_gnu_ld" = no; then
8571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8572 hardcode_libdir_separator=:
8573
8574 case $host_cpu in
8575 hppa*64*|ia64*)
8576 hardcode_libdir_flag_spec_ld='+b $libdir'
8577 hardcode_direct=no
8578 hardcode_shlibpath_var=no
8579 ;;
8580 *)
8581 hardcode_direct=yes
8582 export_dynamic_flag_spec='${wl}-E'
8583
8584 # hardcode_minus_L: Not really in the search PATH,
8585 # but as the default location of the library.
8586 hardcode_minus_L=yes
8587 ;;
8588 esac
8589 fi
8590 ;;
8591
8592 irix5* | irix6* | nonstopux*)
8593 if test "$GCC" = yes; then
8594 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'
8595 else
8596 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'
8597 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8598 fi
8599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8600 hardcode_libdir_separator=:
8601 link_all_deplibs=yes
8602 ;;
8603
openvcdiffd1845782009-03-20 21:56:15 +00008604 netbsd* | netbsdelf*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +00008605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8607 else
8608 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8609 fi
8610 hardcode_libdir_flag_spec='-R$libdir'
8611 hardcode_direct=yes
8612 hardcode_shlibpath_var=no
8613 ;;
8614
8615 newsos6)
8616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617 hardcode_direct=yes
8618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8619 hardcode_libdir_separator=:
8620 hardcode_shlibpath_var=no
8621 ;;
8622
8623 openbsd*)
openvcdiffd1845782009-03-20 21:56:15 +00008624 if test -f /usr/libexec/ld.so; then
8625 hardcode_direct=yes
8626 hardcode_shlibpath_var=no
8627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8629 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8631 export_dynamic_flag_spec='${wl}-E'
8632 else
8633 case $host_os in
8634 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8636 hardcode_libdir_flag_spec='-R$libdir'
8637 ;;
8638 *)
8639 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8640 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8641 ;;
8642 esac
8643 fi
openvcdiff311c7142008-08-26 19:29:25 +00008644 else
openvcdiffd1845782009-03-20 21:56:15 +00008645 ld_shlibs=no
openvcdiff311c7142008-08-26 19:29:25 +00008646 fi
8647 ;;
8648
8649 os2*)
8650 hardcode_libdir_flag_spec='-L$libdir'
8651 hardcode_minus_L=yes
8652 allow_undefined_flag=unsupported
8653 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'
8654 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8655 ;;
8656
8657 osf3*)
8658 if test "$GCC" = yes; then
8659 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8660 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'
8661 else
8662 allow_undefined_flag=' -expect_unresolved \*'
8663 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'
8664 fi
8665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666 hardcode_libdir_separator=:
8667 ;;
8668
8669 osf4* | osf5*) # as osf3* with the addition of -msym flag
8670 if test "$GCC" = yes; then
8671 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8672 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'
8673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8674 else
8675 allow_undefined_flag=' -expect_unresolved \*'
8676 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'
8677 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8678 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8679
8680 # Both c and cxx compiler support -rpath directly
8681 hardcode_libdir_flag_spec='-rpath $libdir'
8682 fi
8683 hardcode_libdir_separator=:
8684 ;;
8685
8686 solaris*)
8687 no_undefined_flag=' -z text'
8688 if test "$GCC" = yes; then
8689 wlarc='${wl}'
8690 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8692 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8693 else
8694 wlarc=''
8695 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8697 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8698 fi
8699 hardcode_libdir_flag_spec='-R$libdir'
8700 hardcode_shlibpath_var=no
8701 case $host_os in
8702 solaris2.[0-5] | solaris2.[0-5].*) ;;
8703 *)
openvcdiffd1845782009-03-20 21:56:15 +00008704 # The compiler driver will combine and reorder linker options,
8705 # but understands `-z linker_flag'. GCC discards it without `$wl',
8706 # but is careful enough not to reorder.
openvcdiff311c7142008-08-26 19:29:25 +00008707 # Supported since Solaris 2.6 (maybe 2.5.1?)
openvcdiffd1845782009-03-20 21:56:15 +00008708 if test "$GCC" = yes; then
8709 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8710 else
8711 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8712 fi
8713 ;;
openvcdiff311c7142008-08-26 19:29:25 +00008714 esac
8715 link_all_deplibs=yes
8716 ;;
8717
8718 sunos4*)
8719 if test "x$host_vendor" = xsequent; then
8720 # Use $CC to link under sequent, because it throws in some extra .o
8721 # files that make .init and .fini sections work.
8722 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8723 else
8724 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8725 fi
8726 hardcode_libdir_flag_spec='-L$libdir'
8727 hardcode_direct=yes
8728 hardcode_minus_L=yes
8729 hardcode_shlibpath_var=no
8730 ;;
8731
8732 sysv4)
8733 case $host_vendor in
8734 sni)
8735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736 hardcode_direct=yes # is this really true???
8737 ;;
8738 siemens)
8739 ## LD is ld it makes a PLAMLIB
8740 ## CC just makes a GrossModule.
8741 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8742 reload_cmds='$CC -r -o $output$reload_objs'
8743 hardcode_direct=no
8744 ;;
8745 motorola)
8746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8747 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8748 ;;
8749 esac
8750 runpath_var='LD_RUN_PATH'
8751 hardcode_shlibpath_var=no
8752 ;;
8753
8754 sysv4.3*)
8755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8756 hardcode_shlibpath_var=no
8757 export_dynamic_flag_spec='-Bexport'
8758 ;;
8759
8760 sysv4*MP*)
8761 if test -d /usr/nec; then
8762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_shlibpath_var=no
8764 runpath_var=LD_RUN_PATH
8765 hardcode_runpath_var=yes
8766 ld_shlibs=yes
8767 fi
8768 ;;
8769
openvcdiffd1845782009-03-20 21:56:15 +00008770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
openvcdiff311c7142008-08-26 19:29:25 +00008771 no_undefined_flag='${wl}-z,text'
8772 archive_cmds_need_lc=no
8773 hardcode_shlibpath_var=no
8774 runpath_var='LD_RUN_PATH'
8775
8776 if test "$GCC" = yes; then
8777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8779 else
8780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8782 fi
8783 ;;
8784
8785 sysv5* | sco3.2v5* | sco5v6*)
8786 # Note: We can NOT use -z defs as we might desire, because we do not
8787 # link with -lc, and that would cause any symbols used from libc to
8788 # always be unresolved, which means just about no library would
8789 # ever link correctly. If we're not using GNU ld we use -z text
8790 # though, which does catch some bad symbols but isn't as heavy-handed
8791 # as -z defs.
8792 no_undefined_flag='${wl}-z,text'
8793 allow_undefined_flag='${wl}-z,nodefs'
8794 archive_cmds_need_lc=no
8795 hardcode_shlibpath_var=no
8796 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8797 hardcode_libdir_separator=':'
8798 link_all_deplibs=yes
8799 export_dynamic_flag_spec='${wl}-Bexport'
8800 runpath_var='LD_RUN_PATH'
8801
8802 if test "$GCC" = yes; then
8803 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8805 else
8806 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8808 fi
8809 ;;
8810
8811 uts4*)
8812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813 hardcode_libdir_flag_spec='-L$libdir'
8814 hardcode_shlibpath_var=no
8815 ;;
8816
8817 *)
8818 ld_shlibs=no
8819 ;;
8820 esac
8821 fi
8822
openvcdiffd1845782009-03-20 21:56:15 +00008823{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8824echo "${ECHO_T}$ld_shlibs" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008825test "$ld_shlibs" = no && can_build_shared=no
8826
8827#
8828# Do we need to explicitly link libc?
8829#
8830case "x$archive_cmds_need_lc" in
8831x|xyes)
8832 # Assume -lc should be added
8833 archive_cmds_need_lc=yes
8834
8835 if test "$enable_shared" = yes && test "$GCC" = yes; then
8836 case $archive_cmds in
8837 *'~'*)
8838 # FIXME: we may have to deal with multi-command sequences.
8839 ;;
8840 '$CC '*)
8841 # Test whether the compiler implicitly links with -lc since on some
8842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8843 # to ld, don't add -lc before -lgcc.
openvcdiffd1845782009-03-20 21:56:15 +00008844 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8845echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008846 $rm conftest*
openvcdiffd1845782009-03-20 21:56:15 +00008847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00008848
8849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8850 (eval $ac_compile) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } 2>conftest.err; then
8854 soname=conftest
8855 lib=conftest
8856 libobjs=conftest.$ac_objext
8857 deplibs=
8858 wl=$lt_prog_compiler_wl
8859 pic_flag=$lt_prog_compiler_pic
8860 compiler_flags=-v
8861 linker_flags=-v
8862 verstring=
8863 output_objdir=.
8864 libname=conftest
8865 lt_save_allow_undefined_flag=$allow_undefined_flag
8866 allow_undefined_flag=
8867 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8868 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }
8872 then
8873 archive_cmds_need_lc=no
8874 else
8875 archive_cmds_need_lc=yes
8876 fi
8877 allow_undefined_flag=$lt_save_allow_undefined_flag
8878 else
8879 cat conftest.err 1>&5
8880 fi
8881 $rm conftest*
openvcdiffd1845782009-03-20 21:56:15 +00008882 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8883echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008884 ;;
8885 esac
8886 fi
8887 ;;
8888esac
8889
openvcdiffd1845782009-03-20 21:56:15 +00008890{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8891echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008892library_names_spec=
8893libname_spec='lib$name'
8894soname_spec=
8895shrext_cmds=".so"
8896postinstall_cmds=
8897postuninstall_cmds=
8898finish_cmds=
8899finish_eval=
8900shlibpath_var=
8901shlibpath_overrides_runpath=unknown
8902version_type=none
8903dynamic_linker="$host_os ld.so"
8904sys_lib_dlsearch_path_spec="/lib /usr/lib"
openvcdiffd1845782009-03-20 21:56:15 +00008905
openvcdiff311c7142008-08-26 19:29:25 +00008906if test "$GCC" = yes; then
openvcdiffd1845782009-03-20 21:56:15 +00008907 case $host_os in
8908 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8909 *) lt_awk_arg="/^libraries:/" ;;
8910 esac
8911 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8912 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
openvcdiff311c7142008-08-26 19:29:25 +00008913 # if the path contains ";" then we assume it to be the separator
8914 # otherwise default to the standard path separator (i.e. ":") - it is
8915 # assumed that no part of a normal pathname contains ";" but that should
8916 # okay in the real world where ";" in dirpaths is itself problematic.
openvcdiffd1845782009-03-20 21:56:15 +00008917 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
openvcdiff311c7142008-08-26 19:29:25 +00008918 else
openvcdiffd1845782009-03-20 21:56:15 +00008919 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
openvcdiff311c7142008-08-26 19:29:25 +00008920 fi
openvcdiffd1845782009-03-20 21:56:15 +00008921 # Ok, now we have the path, separated by spaces, we can step through it
8922 # and add multilib dir if necessary.
8923 lt_tmp_lt_search_path_spec=
8924 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8925 for lt_sys_path in $lt_search_path_spec; do
8926 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8927 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8928 else
8929 test -d "$lt_sys_path" && \
8930 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8931 fi
8932 done
8933 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8934BEGIN {RS=" "; FS="/|\n";} {
8935 lt_foo="";
8936 lt_count=0;
8937 for (lt_i = NF; lt_i > 0; lt_i--) {
8938 if ($lt_i != "" && $lt_i != ".") {
8939 if ($lt_i == "..") {
8940 lt_count++;
8941 } else {
8942 if (lt_count == 0) {
8943 lt_foo="/" $lt_i lt_foo;
8944 } else {
8945 lt_count--;
8946 }
8947 }
8948 }
8949 }
8950 if (lt_foo != "") { lt_freq[lt_foo]++; }
8951 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8952}'`
8953 sys_lib_search_path_spec=`echo $lt_search_path_spec`
openvcdiff311c7142008-08-26 19:29:25 +00008954else
8955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8956fi
8957need_lib_prefix=unknown
8958hardcode_into_libs=no
8959
8960# when you set need_version to no, make sure it does not cause -set_version
8961# flags to be left without arguments
8962need_version=unknown
8963
8964case $host_os in
8965aix3*)
8966 version_type=linux
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8968 shlibpath_var=LIBPATH
8969
8970 # AIX 3 has no versioning support, so we append a major version to the name.
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 ;;
8973
openvcdiffd1845782009-03-20 21:56:15 +00008974aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00008975 version_type=linux
8976 need_lib_prefix=no
8977 need_version=no
8978 hardcode_into_libs=yes
8979 if test "$host_cpu" = ia64; then
8980 # AIX 5 supports IA64
8981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 else
8984 # With GCC up to 2.95.x, collect2 would create an import file
8985 # for dependence libraries. The import file would start with
8986 # the line `#! .'. This would cause the generated library to
8987 # depend on `.', always an invalid library. This was fixed in
8988 # development snapshots of GCC prior to 3.0.
8989 case $host_os in
8990 aix4 | aix4.[01] | aix4.[01].*)
8991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8992 echo ' yes '
8993 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8994 :
8995 else
8996 can_build_shared=no
8997 fi
8998 ;;
8999 esac
9000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9001 # soname into executable. Probably we can add versioning support to
9002 # collect2, so additional links can be useful in future.
9003 if test "$aix_use_runtimelinking" = yes; then
9004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9005 # instead of lib<name>.a to let people know that these are not
9006 # typical AIX shared libraries.
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 else
9009 # We preserve .a as extension for shared libraries through AIX4.2
9010 # and later when we are not doing run time linking.
9011 library_names_spec='${libname}${release}.a $libname.a'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 fi
9014 shlibpath_var=LIBPATH
9015 fi
9016 ;;
9017
9018amigaos*)
9019 library_names_spec='$libname.ixlibrary $libname.a'
9020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9021 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'
9022 ;;
9023
9024beos*)
9025 library_names_spec='${libname}${shared_ext}'
9026 dynamic_linker="$host_os ld.so"
9027 shlibpath_var=LIBRARY_PATH
9028 ;;
9029
9030bsdi[45]*)
9031 version_type=linux
9032 need_version=no
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9039 # the default ld.so.conf also contains /usr/contrib/lib and
9040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9041 # libtool to hard-code these into programs
9042 ;;
9043
9044cygwin* | mingw* | pw32*)
9045 version_type=windows
9046 shrext_cmds=".dll"
9047 need_version=no
9048 need_lib_prefix=no
9049
9050 case $GCC,$host_os in
9051 yes,cygwin* | yes,mingw* | yes,pw32*)
9052 library_names_spec='$libname.dll.a'
9053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9054 postinstall_cmds='base_file=`basename \${file}`~
9055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9056 dldir=$destdir/`dirname \$dlpath`~
9057 test -d \$dldir || mkdir -p \$dldir~
9058 $install_prog $dir/$dlname \$dldir/$dlname~
9059 chmod a+x \$dldir/$dlname'
9060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9061 dlpath=$dir/\$dldll~
9062 $rm \$dlpath'
9063 shlibpath_overrides_runpath=yes
9064
9065 case $host_os in
9066 cygwin*)
9067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9069 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9070 ;;
9071 mingw*)
9072 # MinGW DLLs use traditional 'lib' prefix
9073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9075 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9076 # It is most probably a Windows format PATH printed by
9077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9078 # path with ; separators, and with drive letters. We can handle the
9079 # drive letters (cygwin fileutils understands them), so leave them,
9080 # especially as we might pass files found there to a mingw objdump,
9081 # which wouldn't understand a cygwinified path. Ahh.
9082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9083 else
9084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9085 fi
9086 ;;
9087 pw32*)
9088 # pw32 DLLs use 'pw' prefix rather than 'lib'
9089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9090 ;;
9091 esac
9092 ;;
9093
9094 *)
9095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9096 ;;
9097 esac
9098 dynamic_linker='Win32 ld.exe'
9099 # FIXME: first we should search . and the directory the executable is in
9100 shlibpath_var=PATH
9101 ;;
9102
9103darwin* | rhapsody*)
9104 dynamic_linker="$host_os dyld"
9105 version_type=darwin
9106 need_lib_prefix=no
9107 need_version=no
9108 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9109 soname_spec='${libname}${release}${major}$shared_ext'
9110 shlibpath_overrides_runpath=yes
9111 shlibpath_var=DYLD_LIBRARY_PATH
9112 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
openvcdiffd1845782009-03-20 21:56:15 +00009113
9114 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
openvcdiff311c7142008-08-26 19:29:25 +00009115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9116 ;;
9117
9118dgux*)
9119 version_type=linux
9120 need_lib_prefix=no
9121 need_version=no
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 ;;
9126
9127freebsd1*)
9128 dynamic_linker=no
9129 ;;
9130
openvcdiff311c7142008-08-26 19:29:25 +00009131freebsd* | dragonfly*)
9132 # DragonFly does not have aout. When/if they implement a new
9133 # versioning mechanism, adjust this.
9134 if test -x /usr/bin/objformat; then
9135 objformat=`/usr/bin/objformat`
9136 else
9137 case $host_os in
9138 freebsd[123]*) objformat=aout ;;
9139 *) objformat=elf ;;
9140 esac
9141 fi
9142 version_type=freebsd-$objformat
9143 case $version_type in
9144 freebsd-elf*)
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9146 need_version=no
9147 need_lib_prefix=no
9148 ;;
9149 freebsd-*)
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9151 need_version=yes
9152 ;;
9153 esac
9154 shlibpath_var=LD_LIBRARY_PATH
9155 case $host_os in
9156 freebsd2*)
9157 shlibpath_overrides_runpath=yes
9158 ;;
9159 freebsd3.[01]* | freebsdelf3.[01]*)
9160 shlibpath_overrides_runpath=yes
9161 hardcode_into_libs=yes
9162 ;;
9163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9165 shlibpath_overrides_runpath=no
9166 hardcode_into_libs=yes
9167 ;;
openvcdiffd1845782009-03-20 21:56:15 +00009168 *) # from 4.6 on, and DragonFly
openvcdiff311c7142008-08-26 19:29:25 +00009169 shlibpath_overrides_runpath=yes
9170 hardcode_into_libs=yes
9171 ;;
9172 esac
9173 ;;
9174
9175gnu*)
9176 version_type=linux
9177 need_lib_prefix=no
9178 need_version=no
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 hardcode_into_libs=yes
9183 ;;
9184
9185hpux9* | hpux10* | hpux11*)
9186 # Give a soname corresponding to the major version so that dld.sl refuses to
9187 # link against other versions.
9188 version_type=sunos
9189 need_lib_prefix=no
9190 need_version=no
9191 case $host_cpu in
9192 ia64*)
9193 shrext_cmds='.so'
9194 hardcode_into_libs=yes
9195 dynamic_linker="$host_os dld.so"
9196 shlibpath_var=LD_LIBRARY_PATH
9197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 if test "X$HPUX_IA64_MODE" = X32; then
9201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9202 else
9203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9204 fi
9205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9206 ;;
9207 hppa*64*)
9208 shrext_cmds='.sl'
9209 hardcode_into_libs=yes
9210 dynamic_linker="$host_os dld.sl"
9211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9217 ;;
9218 *)
9219 shrext_cmds='.sl'
9220 dynamic_linker="$host_os dld.sl"
9221 shlibpath_var=SHLIB_PATH
9222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 ;;
9226 esac
9227 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9228 postinstall_cmds='chmod 555 $lib'
9229 ;;
9230
openvcdiffd1845782009-03-20 21:56:15 +00009231interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00009232 version_type=linux
9233 need_lib_prefix=no
9234 need_version=no
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=no
9240 hardcode_into_libs=yes
9241 ;;
9242
9243irix5* | irix6* | nonstopux*)
9244 case $host_os in
9245 nonstopux*) version_type=nonstopux ;;
9246 *)
9247 if test "$lt_cv_prog_gnu_ld" = yes; then
9248 version_type=linux
9249 else
9250 version_type=irix
9251 fi ;;
9252 esac
9253 need_lib_prefix=no
9254 need_version=no
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9257 case $host_os in
9258 irix5* | nonstopux*)
9259 libsuff= shlibsuff=
9260 ;;
9261 *)
9262 case $LD in # libtool.m4 will add one of these switches to LD
9263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9264 libsuff= shlibsuff= libmagic=32-bit;;
9265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9266 libsuff=32 shlibsuff=N32 libmagic=N32;;
9267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9269 *) libsuff= shlibsuff= libmagic=never-match;;
9270 esac
9271 ;;
9272 esac
9273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9274 shlibpath_overrides_runpath=no
9275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9277 hardcode_into_libs=yes
9278 ;;
9279
9280# No shared lib support for Linux oldld, aout, or coff.
9281linux*oldld* | linux*aout* | linux*coff*)
9282 dynamic_linker=no
9283 ;;
9284
9285# This must be Linux ELF.
openvcdiffd1845782009-03-20 21:56:15 +00009286linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +00009287 version_type=linux
9288 need_lib_prefix=no
9289 need_version=no
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 shlibpath_overrides_runpath=no
9295 # This implies no fast_install, which is unacceptable.
9296 # Some rework will be needed to allow for fast_install
9297 # before this can be enabled.
9298 hardcode_into_libs=yes
9299
9300 # Append ld.so.conf contents to the search path
9301 if test -f /etc/ld.so.conf; then
openvcdiffd1845782009-03-20 21:56:15 +00009302 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
openvcdiff311c7142008-08-26 19:29:25 +00009303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9304 fi
9305
9306 # We used to test for /lib/ld.so.1 and disable shared libraries on
9307 # powerpc, because MkLinux only supported shared libraries with the
9308 # GNU dynamic linker. Since this was broken with cross compilers,
9309 # most powerpc-linux boxes support dynamic linking these days and
9310 # people can always --disable-shared, the test was removed, and we
9311 # assume the GNU/Linux dynamic linker is in use.
9312 dynamic_linker='GNU/Linux ld.so'
9313 ;;
9314
9315netbsdelf*-gnu)
9316 version_type=linux
9317 need_lib_prefix=no
9318 need_version=no
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=no
9323 hardcode_into_libs=yes
9324 dynamic_linker='NetBSD ld.elf_so'
9325 ;;
9326
openvcdiff311c7142008-08-26 19:29:25 +00009327netbsd*)
9328 version_type=sunos
9329 need_lib_prefix=no
9330 need_version=no
9331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9334 dynamic_linker='NetBSD (a.out) ld.so'
9335 else
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9337 soname_spec='${libname}${release}${shared_ext}$major'
9338 dynamic_linker='NetBSD ld.elf_so'
9339 fi
9340 shlibpath_var=LD_LIBRARY_PATH
9341 shlibpath_overrides_runpath=yes
9342 hardcode_into_libs=yes
9343 ;;
9344
9345newsos6)
9346 version_type=linux
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 shlibpath_var=LD_LIBRARY_PATH
9349 shlibpath_overrides_runpath=yes
9350 ;;
9351
9352nto-qnx*)
9353 version_type=linux
9354 need_lib_prefix=no
9355 need_version=no
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 shlibpath_overrides_runpath=yes
9360 ;;
9361
9362openbsd*)
9363 version_type=sunos
9364 sys_lib_dlsearch_path_spec="/usr/lib"
9365 need_lib_prefix=no
9366 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9367 case $host_os in
9368 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9369 *) need_version=no ;;
9370 esac
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9373 shlibpath_var=LD_LIBRARY_PATH
9374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9375 case $host_os in
9376 openbsd2.[89] | openbsd2.[89].*)
9377 shlibpath_overrides_runpath=no
9378 ;;
9379 *)
9380 shlibpath_overrides_runpath=yes
9381 ;;
9382 esac
9383 else
9384 shlibpath_overrides_runpath=yes
9385 fi
9386 ;;
9387
9388os2*)
9389 libname_spec='$name'
9390 shrext_cmds=".dll"
9391 need_lib_prefix=no
9392 library_names_spec='$libname${shared_ext} $libname.a'
9393 dynamic_linker='OS/2 ld.exe'
9394 shlibpath_var=LIBPATH
9395 ;;
9396
9397osf3* | osf4* | osf5*)
9398 version_type=osf
9399 need_lib_prefix=no
9400 need_version=no
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9406 ;;
9407
openvcdiffd1845782009-03-20 21:56:15 +00009408rdos*)
9409 dynamic_linker=no
9410 ;;
9411
openvcdiff311c7142008-08-26 19:29:25 +00009412solaris*)
9413 version_type=linux
9414 need_lib_prefix=no
9415 need_version=no
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 shlibpath_var=LD_LIBRARY_PATH
9419 shlibpath_overrides_runpath=yes
9420 hardcode_into_libs=yes
9421 # ldd complains unless libraries are executable
9422 postinstall_cmds='chmod +x $lib'
9423 ;;
9424
9425sunos4*)
9426 version_type=sunos
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 shlibpath_overrides_runpath=yes
9431 if test "$with_gnu_ld" = yes; then
9432 need_lib_prefix=no
9433 fi
9434 need_version=yes
9435 ;;
9436
9437sysv4 | sysv4.3*)
9438 version_type=linux
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 case $host_vendor in
9443 sni)
9444 shlibpath_overrides_runpath=no
9445 need_lib_prefix=no
9446 export_dynamic_flag_spec='${wl}-Blargedynsym'
9447 runpath_var=LD_RUN_PATH
9448 ;;
9449 siemens)
9450 need_lib_prefix=no
9451 ;;
9452 motorola)
9453 need_lib_prefix=no
9454 need_version=no
9455 shlibpath_overrides_runpath=no
9456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9457 ;;
9458 esac
9459 ;;
9460
9461sysv4*MP*)
9462 if test -d /usr/nec ;then
9463 version_type=linux
9464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9465 soname_spec='$libname${shared_ext}.$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 fi
9468 ;;
9469
9470sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9471 version_type=freebsd-elf
9472 need_lib_prefix=no
9473 need_version=no
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9475 soname_spec='${libname}${release}${shared_ext}$major'
9476 shlibpath_var=LD_LIBRARY_PATH
9477 hardcode_into_libs=yes
9478 if test "$with_gnu_ld" = yes; then
9479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9480 shlibpath_overrides_runpath=no
9481 else
9482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9483 shlibpath_overrides_runpath=yes
9484 case $host_os in
9485 sco3.2v5*)
9486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9487 ;;
9488 esac
9489 fi
9490 sys_lib_dlsearch_path_spec='/usr/lib'
9491 ;;
9492
9493uts4*)
9494 version_type=linux
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 ;;
9499
9500*)
9501 dynamic_linker=no
9502 ;;
9503esac
openvcdiffd1845782009-03-20 21:56:15 +00009504{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9505echo "${ECHO_T}$dynamic_linker" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009506test "$dynamic_linker" = no && can_build_shared=no
9507
openvcdiffd1845782009-03-20 21:56:15 +00009508if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510else
9511 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9512fi
9513
9514sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9515if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9519fi
9520
9521sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9522
openvcdiff311c7142008-08-26 19:29:25 +00009523variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9524if test "$GCC" = yes; then
9525 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9526fi
9527
openvcdiffd1845782009-03-20 21:56:15 +00009528{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9529echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009530hardcode_action=
9531if test -n "$hardcode_libdir_flag_spec" || \
9532 test -n "$runpath_var" || \
9533 test "X$hardcode_automatic" = "Xyes" ; then
9534
9535 # We can hardcode non-existant directories.
9536 if test "$hardcode_direct" != no &&
9537 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9538 # have to relink, otherwise we might link with an installed library
9539 # when we should be linking with a yet-to-be-installed one
9540 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9541 test "$hardcode_minus_L" != no; then
9542 # Linking always hardcodes the temporary library directory.
9543 hardcode_action=relink
9544 else
9545 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9546 hardcode_action=immediate
9547 fi
9548else
9549 # We cannot hardcode anything, or else we can only hardcode existing
9550 # directories.
9551 hardcode_action=unsupported
9552fi
openvcdiffd1845782009-03-20 21:56:15 +00009553{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9554echo "${ECHO_T}$hardcode_action" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009555
9556if test "$hardcode_action" = relink; then
9557 # Fast installation is not supported
9558 enable_fast_install=no
9559elif test "$shlibpath_overrides_runpath" = yes ||
9560 test "$enable_shared" = no; then
9561 # Fast installation is not necessary
9562 enable_fast_install=needless
9563fi
9564
9565striplib=
9566old_striplib=
openvcdiffd1845782009-03-20 21:56:15 +00009567{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9568echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009569if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9570 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9571 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
openvcdiffd1845782009-03-20 21:56:15 +00009572 { echo "$as_me:$LINENO: result: yes" >&5
9573echo "${ECHO_T}yes" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009574else
9575# FIXME - insert some real tests, host_os isn't really good enough
9576 case $host_os in
9577 darwin*)
9578 if test -n "$STRIP" ; then
9579 striplib="$STRIP -x"
openvcdiffd1845782009-03-20 21:56:15 +00009580 old_striplib="$STRIP -S"
9581 { echo "$as_me:$LINENO: result: yes" >&5
9582echo "${ECHO_T}yes" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009583 else
openvcdiffd1845782009-03-20 21:56:15 +00009584 { echo "$as_me:$LINENO: result: no" >&5
9585echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009586fi
9587 ;;
9588 *)
openvcdiffd1845782009-03-20 21:56:15 +00009589 { echo "$as_me:$LINENO: result: no" >&5
9590echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009591 ;;
9592 esac
9593fi
9594
9595if test "x$enable_dlopen" != xyes; then
9596 enable_dlopen=unknown
9597 enable_dlopen_self=unknown
9598 enable_dlopen_self_static=unknown
9599else
9600 lt_cv_dlopen=no
9601 lt_cv_dlopen_libs=
9602
9603 case $host_os in
9604 beos*)
9605 lt_cv_dlopen="load_add_on"
9606 lt_cv_dlopen_libs=
9607 lt_cv_dlopen_self=yes
9608 ;;
9609
9610 mingw* | pw32*)
9611 lt_cv_dlopen="LoadLibrary"
9612 lt_cv_dlopen_libs=
9613 ;;
9614
9615 cygwin*)
9616 lt_cv_dlopen="dlopen"
9617 lt_cv_dlopen_libs=
9618 ;;
9619
9620 darwin*)
9621 # if libdl is installed we need to link against it
openvcdiffd1845782009-03-20 21:56:15 +00009622 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9623echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009624if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9626else
9627 ac_check_lib_save_LIBS=$LIBS
9628LIBS="-ldl $LIBS"
9629cat >conftest.$ac_ext <<_ACEOF
9630/* confdefs.h. */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h. */
9635
openvcdiffd1845782009-03-20 21:56:15 +00009636/* Override any GCC internal prototype to avoid an error.
9637 Use char because int might match the return type of a GCC
9638 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +00009639#ifdef __cplusplus
9640extern "C"
9641#endif
openvcdiff311c7142008-08-26 19:29:25 +00009642char dlopen ();
9643int
9644main ()
9645{
openvcdiffd1845782009-03-20 21:56:15 +00009646return dlopen ();
openvcdiff311c7142008-08-26 19:29:25 +00009647 ;
9648 return 0;
9649}
9650_ACEOF
9651rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +00009652if { (ac_try="$ac_link"
9653case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656esac
9657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00009659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00009664 (exit $ac_status); } && {
9665 test -z "$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9667 } && test -s conftest$ac_exeext &&
9668 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +00009669 ac_cv_lib_dl_dlopen=yes
9670else
9671 echo "$as_me: failed program was:" >&5
9672sed 's/^/| /' conftest.$ac_ext >&5
9673
openvcdiffd1845782009-03-20 21:56:15 +00009674 ac_cv_lib_dl_dlopen=no
openvcdiff311c7142008-08-26 19:29:25 +00009675fi
openvcdiffd1845782009-03-20 21:56:15 +00009676
9677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +00009678 conftest$ac_exeext conftest.$ac_ext
9679LIBS=$ac_check_lib_save_LIBS
9680fi
openvcdiffd1845782009-03-20 21:56:15 +00009681{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9682echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009683if test $ac_cv_lib_dl_dlopen = yes; then
9684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9685else
9686
9687 lt_cv_dlopen="dyld"
9688 lt_cv_dlopen_libs=
9689 lt_cv_dlopen_self=yes
9690
9691fi
9692
9693 ;;
9694
9695 *)
openvcdiffd1845782009-03-20 21:56:15 +00009696 { echo "$as_me:$LINENO: checking for shl_load" >&5
9697echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009698if test "${ac_cv_func_shl_load+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700else
9701 cat >conftest.$ac_ext <<_ACEOF
9702/* confdefs.h. */
9703_ACEOF
9704cat confdefs.h >>conftest.$ac_ext
9705cat >>conftest.$ac_ext <<_ACEOF
9706/* end confdefs.h. */
9707/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9709#define shl_load innocuous_shl_load
9710
9711/* System header to define __stub macros and hopefully few prototypes,
9712 which can conflict with char shl_load (); below.
9713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9714 <limits.h> exists even on freestanding compilers. */
9715
9716#ifdef __STDC__
9717# include <limits.h>
9718#else
9719# include <assert.h>
9720#endif
9721
9722#undef shl_load
9723
openvcdiffd1845782009-03-20 21:56:15 +00009724/* Override any GCC internal prototype to avoid an error.
9725 Use char because int might match the return type of a GCC
9726 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +00009727#ifdef __cplusplus
9728extern "C"
openvcdiff311c7142008-08-26 19:29:25 +00009729#endif
openvcdiff311c7142008-08-26 19:29:25 +00009730char shl_load ();
9731/* The GNU C library defines this for functions which it implements
9732 to always fail with ENOSYS. Some functions are actually named
9733 something starting with __ and the normal name is an alias. */
openvcdiffd1845782009-03-20 21:56:15 +00009734#if defined __stub_shl_load || defined __stub___shl_load
openvcdiff311c7142008-08-26 19:29:25 +00009735choke me
openvcdiff311c7142008-08-26 19:29:25 +00009736#endif
9737
9738int
9739main ()
9740{
openvcdiffd1845782009-03-20 21:56:15 +00009741return shl_load ();
openvcdiff311c7142008-08-26 19:29:25 +00009742 ;
9743 return 0;
9744}
9745_ACEOF
9746rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +00009747if { (ac_try="$ac_link"
9748case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751esac
9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00009754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00009759 (exit $ac_status); } && {
9760 test -z "$ac_c_werror_flag" ||
9761 test ! -s conftest.err
9762 } && test -s conftest$ac_exeext &&
9763 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +00009764 ac_cv_func_shl_load=yes
9765else
9766 echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
openvcdiffd1845782009-03-20 21:56:15 +00009769 ac_cv_func_shl_load=no
openvcdiff311c7142008-08-26 19:29:25 +00009770fi
openvcdiffd1845782009-03-20 21:56:15 +00009771
9772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +00009773 conftest$ac_exeext conftest.$ac_ext
9774fi
openvcdiffd1845782009-03-20 21:56:15 +00009775{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9776echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009777if test $ac_cv_func_shl_load = yes; then
9778 lt_cv_dlopen="shl_load"
9779else
openvcdiffd1845782009-03-20 21:56:15 +00009780 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9781echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009782if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9784else
9785 ac_check_lib_save_LIBS=$LIBS
9786LIBS="-ldld $LIBS"
9787cat >conftest.$ac_ext <<_ACEOF
9788/* confdefs.h. */
9789_ACEOF
9790cat confdefs.h >>conftest.$ac_ext
9791cat >>conftest.$ac_ext <<_ACEOF
9792/* end confdefs.h. */
9793
openvcdiffd1845782009-03-20 21:56:15 +00009794/* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +00009797#ifdef __cplusplus
9798extern "C"
9799#endif
openvcdiff311c7142008-08-26 19:29:25 +00009800char shl_load ();
9801int
9802main ()
9803{
openvcdiffd1845782009-03-20 21:56:15 +00009804return shl_load ();
openvcdiff311c7142008-08-26 19:29:25 +00009805 ;
9806 return 0;
9807}
9808_ACEOF
9809rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +00009810if { (ac_try="$ac_link"
9811case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814esac
9815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00009817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00009822 (exit $ac_status); } && {
9823 test -z "$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 } && test -s conftest$ac_exeext &&
9826 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +00009827 ac_cv_lib_dld_shl_load=yes
9828else
9829 echo "$as_me: failed program was:" >&5
9830sed 's/^/| /' conftest.$ac_ext >&5
9831
openvcdiffd1845782009-03-20 21:56:15 +00009832 ac_cv_lib_dld_shl_load=no
openvcdiff311c7142008-08-26 19:29:25 +00009833fi
openvcdiffd1845782009-03-20 21:56:15 +00009834
9835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +00009836 conftest$ac_exeext conftest.$ac_ext
9837LIBS=$ac_check_lib_save_LIBS
9838fi
openvcdiffd1845782009-03-20 21:56:15 +00009839{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9840echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009841if test $ac_cv_lib_dld_shl_load = yes; then
openvcdiffd1845782009-03-20 21:56:15 +00009842 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
openvcdiff311c7142008-08-26 19:29:25 +00009843else
openvcdiffd1845782009-03-20 21:56:15 +00009844 { echo "$as_me:$LINENO: checking for dlopen" >&5
9845echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009846if test "${ac_cv_func_dlopen+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848else
9849 cat >conftest.$ac_ext <<_ACEOF
9850/* confdefs.h. */
9851_ACEOF
9852cat confdefs.h >>conftest.$ac_ext
9853cat >>conftest.$ac_ext <<_ACEOF
9854/* end confdefs.h. */
9855/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9857#define dlopen innocuous_dlopen
9858
9859/* System header to define __stub macros and hopefully few prototypes,
9860 which can conflict with char dlopen (); below.
9861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9862 <limits.h> exists even on freestanding compilers. */
9863
9864#ifdef __STDC__
9865# include <limits.h>
9866#else
9867# include <assert.h>
9868#endif
9869
9870#undef dlopen
9871
openvcdiffd1845782009-03-20 21:56:15 +00009872/* Override any GCC internal prototype to avoid an error.
9873 Use char because int might match the return type of a GCC
9874 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +00009875#ifdef __cplusplus
9876extern "C"
openvcdiff311c7142008-08-26 19:29:25 +00009877#endif
openvcdiff311c7142008-08-26 19:29:25 +00009878char dlopen ();
9879/* The GNU C library defines this for functions which it implements
9880 to always fail with ENOSYS. Some functions are actually named
9881 something starting with __ and the normal name is an alias. */
openvcdiffd1845782009-03-20 21:56:15 +00009882#if defined __stub_dlopen || defined __stub___dlopen
openvcdiff311c7142008-08-26 19:29:25 +00009883choke me
openvcdiff311c7142008-08-26 19:29:25 +00009884#endif
9885
9886int
9887main ()
9888{
openvcdiffd1845782009-03-20 21:56:15 +00009889return dlopen ();
openvcdiff311c7142008-08-26 19:29:25 +00009890 ;
9891 return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +00009895if { (ac_try="$ac_link"
9896case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899esac
9900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00009902 ac_status=$?
9903 grep -v '^ *+' conftest.er1 >conftest.err
9904 rm -f conftest.er1
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00009907 (exit $ac_status); } && {
9908 test -z "$ac_c_werror_flag" ||
9909 test ! -s conftest.err
9910 } && test -s conftest$ac_exeext &&
9911 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +00009912 ac_cv_func_dlopen=yes
9913else
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
openvcdiffd1845782009-03-20 21:56:15 +00009917 ac_cv_func_dlopen=no
openvcdiff311c7142008-08-26 19:29:25 +00009918fi
openvcdiffd1845782009-03-20 21:56:15 +00009919
9920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +00009921 conftest$ac_exeext conftest.$ac_ext
9922fi
openvcdiffd1845782009-03-20 21:56:15 +00009923{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9924echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009925if test $ac_cv_func_dlopen = yes; then
9926 lt_cv_dlopen="dlopen"
9927else
openvcdiffd1845782009-03-20 21:56:15 +00009928 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9929echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009930if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932else
9933 ac_check_lib_save_LIBS=$LIBS
9934LIBS="-ldl $LIBS"
9935cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h. */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h. */
9941
openvcdiffd1845782009-03-20 21:56:15 +00009942/* Override any GCC internal prototype to avoid an error.
9943 Use char because int might match the return type of a GCC
9944 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +00009945#ifdef __cplusplus
9946extern "C"
9947#endif
openvcdiff311c7142008-08-26 19:29:25 +00009948char dlopen ();
9949int
9950main ()
9951{
openvcdiffd1845782009-03-20 21:56:15 +00009952return dlopen ();
openvcdiff311c7142008-08-26 19:29:25 +00009953 ;
9954 return 0;
9955}
9956_ACEOF
9957rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +00009958if { (ac_try="$ac_link"
9959case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9962esac
9963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +00009965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +00009970 (exit $ac_status); } && {
9971 test -z "$ac_c_werror_flag" ||
9972 test ! -s conftest.err
9973 } && test -s conftest$ac_exeext &&
9974 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +00009975 ac_cv_lib_dl_dlopen=yes
9976else
9977 echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
9979
openvcdiffd1845782009-03-20 21:56:15 +00009980 ac_cv_lib_dl_dlopen=no
openvcdiff311c7142008-08-26 19:29:25 +00009981fi
openvcdiffd1845782009-03-20 21:56:15 +00009982
9983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +00009984 conftest$ac_exeext conftest.$ac_ext
9985LIBS=$ac_check_lib_save_LIBS
9986fi
openvcdiffd1845782009-03-20 21:56:15 +00009987{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9988echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009989if test $ac_cv_lib_dl_dlopen = yes; then
9990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9991else
openvcdiffd1845782009-03-20 21:56:15 +00009992 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9993echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009994if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996else
9997 ac_check_lib_save_LIBS=$LIBS
9998LIBS="-lsvld $LIBS"
9999cat >conftest.$ac_ext <<_ACEOF
10000/* confdefs.h. */
10001_ACEOF
10002cat confdefs.h >>conftest.$ac_ext
10003cat >>conftest.$ac_ext <<_ACEOF
10004/* end confdefs.h. */
10005
openvcdiffd1845782009-03-20 21:56:15 +000010006/* Override any GCC internal prototype to avoid an error.
10007 Use char because int might match the return type of a GCC
10008 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000010009#ifdef __cplusplus
10010extern "C"
10011#endif
openvcdiff311c7142008-08-26 19:29:25 +000010012char dlopen ();
10013int
10014main ()
10015{
openvcdiffd1845782009-03-20 21:56:15 +000010016return dlopen ();
openvcdiff311c7142008-08-26 19:29:25 +000010017 ;
10018 return 0;
10019}
10020_ACEOF
10021rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000010022if { (ac_try="$ac_link"
10023case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026esac
10027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000010029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000010034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest$ac_exeext &&
10038 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000010039 ac_cv_lib_svld_dlopen=yes
10040else
10041 echo "$as_me: failed program was:" >&5
10042sed 's/^/| /' conftest.$ac_ext >&5
10043
openvcdiffd1845782009-03-20 21:56:15 +000010044 ac_cv_lib_svld_dlopen=no
openvcdiff311c7142008-08-26 19:29:25 +000010045fi
openvcdiffd1845782009-03-20 21:56:15 +000010046
10047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000010048 conftest$ac_exeext conftest.$ac_ext
10049LIBS=$ac_check_lib_save_LIBS
10050fi
openvcdiffd1845782009-03-20 21:56:15 +000010051{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10052echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010053if test $ac_cv_lib_svld_dlopen = yes; then
10054 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10055else
openvcdiffd1845782009-03-20 21:56:15 +000010056 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10057echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010058if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061 ac_check_lib_save_LIBS=$LIBS
10062LIBS="-ldld $LIBS"
10063cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h. */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h. */
10069
openvcdiffd1845782009-03-20 21:56:15 +000010070/* Override any GCC internal prototype to avoid an error.
10071 Use char because int might match the return type of a GCC
10072 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000010073#ifdef __cplusplus
10074extern "C"
10075#endif
openvcdiff311c7142008-08-26 19:29:25 +000010076char dld_link ();
10077int
10078main ()
10079{
openvcdiffd1845782009-03-20 21:56:15 +000010080return dld_link ();
openvcdiff311c7142008-08-26 19:29:25 +000010081 ;
10082 return 0;
10083}
10084_ACEOF
10085rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000010086if { (ac_try="$ac_link"
10087case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090esac
10091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000010093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000010098 (exit $ac_status); } && {
10099 test -z "$ac_c_werror_flag" ||
10100 test ! -s conftest.err
10101 } && test -s conftest$ac_exeext &&
10102 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000010103 ac_cv_lib_dld_dld_link=yes
10104else
10105 echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
openvcdiffd1845782009-03-20 21:56:15 +000010108 ac_cv_lib_dld_dld_link=no
openvcdiff311c7142008-08-26 19:29:25 +000010109fi
openvcdiffd1845782009-03-20 21:56:15 +000010110
10111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000010112 conftest$ac_exeext conftest.$ac_ext
10113LIBS=$ac_check_lib_save_LIBS
10114fi
openvcdiffd1845782009-03-20 21:56:15 +000010115{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10116echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010117if test $ac_cv_lib_dld_dld_link = yes; then
openvcdiffd1845782009-03-20 21:56:15 +000010118 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
openvcdiff311c7142008-08-26 19:29:25 +000010119fi
10120
10121
10122fi
10123
10124
10125fi
10126
10127
10128fi
10129
10130
10131fi
10132
10133
10134fi
10135
10136 ;;
10137 esac
10138
10139 if test "x$lt_cv_dlopen" != xno; then
10140 enable_dlopen=yes
10141 else
10142 enable_dlopen=no
10143 fi
10144
10145 case $lt_cv_dlopen in
10146 dlopen)
10147 save_CPPFLAGS="$CPPFLAGS"
10148 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10149
10150 save_LDFLAGS="$LDFLAGS"
10151 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10152
10153 save_LIBS="$LIBS"
10154 LIBS="$lt_cv_dlopen_libs $LIBS"
10155
openvcdiffd1845782009-03-20 21:56:15 +000010156 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10157echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010158if test "${lt_cv_dlopen_self+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161 if test "$cross_compiling" = yes; then :
10162 lt_cv_dlopen_self=cross
10163else
10164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10165 lt_status=$lt_dlunknown
10166 cat > conftest.$ac_ext <<EOF
openvcdiffbaf44ea2009-04-09 19:20:49 +000010167#line 10167 "configure"
openvcdiff311c7142008-08-26 19:29:25 +000010168#include "confdefs.h"
10169
10170#if HAVE_DLFCN_H
10171#include <dlfcn.h>
10172#endif
10173
10174#include <stdio.h>
10175
10176#ifdef RTLD_GLOBAL
10177# define LT_DLGLOBAL RTLD_GLOBAL
10178#else
10179# ifdef DL_GLOBAL
10180# define LT_DLGLOBAL DL_GLOBAL
10181# else
10182# define LT_DLGLOBAL 0
10183# endif
10184#endif
10185
10186/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10187 find out it does not work in some platform. */
10188#ifndef LT_DLLAZY_OR_NOW
10189# ifdef RTLD_LAZY
10190# define LT_DLLAZY_OR_NOW RTLD_LAZY
10191# else
10192# ifdef DL_LAZY
10193# define LT_DLLAZY_OR_NOW DL_LAZY
10194# else
10195# ifdef RTLD_NOW
10196# define LT_DLLAZY_OR_NOW RTLD_NOW
10197# else
10198# ifdef DL_NOW
10199# define LT_DLLAZY_OR_NOW DL_NOW
10200# else
10201# define LT_DLLAZY_OR_NOW 0
10202# endif
10203# endif
10204# endif
10205# endif
10206#endif
10207
10208#ifdef __cplusplus
10209extern "C" void exit (int);
10210#endif
10211
10212void fnord() { int i=42;}
10213int main ()
10214{
10215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10216 int status = $lt_dlunknown;
10217
10218 if (self)
10219 {
10220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10221 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10222 /* dlclose (self); */
10223 }
10224 else
10225 puts (dlerror ());
10226
10227 exit (status);
10228}
10229EOF
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10235 (./conftest; exit; ) >&5 2>/dev/null
10236 lt_status=$?
10237 case x$lt_status in
10238 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10239 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10240 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10241 esac
10242 else :
10243 # compilation failed
10244 lt_cv_dlopen_self=no
10245 fi
10246fi
10247rm -fr conftest*
10248
10249
10250fi
openvcdiffd1845782009-03-20 21:56:15 +000010251{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10252echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010253
10254 if test "x$lt_cv_dlopen_self" = xyes; then
10255 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
openvcdiffd1845782009-03-20 21:56:15 +000010256 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10257echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010258if test "${lt_cv_dlopen_self_static+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10260else
10261 if test "$cross_compiling" = yes; then :
10262 lt_cv_dlopen_self_static=cross
10263else
10264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10265 lt_status=$lt_dlunknown
10266 cat > conftest.$ac_ext <<EOF
openvcdiffbaf44ea2009-04-09 19:20:49 +000010267#line 10267 "configure"
openvcdiff311c7142008-08-26 19:29:25 +000010268#include "confdefs.h"
10269
10270#if HAVE_DLFCN_H
10271#include <dlfcn.h>
10272#endif
10273
10274#include <stdio.h>
10275
10276#ifdef RTLD_GLOBAL
10277# define LT_DLGLOBAL RTLD_GLOBAL
10278#else
10279# ifdef DL_GLOBAL
10280# define LT_DLGLOBAL DL_GLOBAL
10281# else
10282# define LT_DLGLOBAL 0
10283# endif
10284#endif
10285
10286/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10287 find out it does not work in some platform. */
10288#ifndef LT_DLLAZY_OR_NOW
10289# ifdef RTLD_LAZY
10290# define LT_DLLAZY_OR_NOW RTLD_LAZY
10291# else
10292# ifdef DL_LAZY
10293# define LT_DLLAZY_OR_NOW DL_LAZY
10294# else
10295# ifdef RTLD_NOW
10296# define LT_DLLAZY_OR_NOW RTLD_NOW
10297# else
10298# ifdef DL_NOW
10299# define LT_DLLAZY_OR_NOW DL_NOW
10300# else
10301# define LT_DLLAZY_OR_NOW 0
10302# endif
10303# endif
10304# endif
10305# endif
10306#endif
10307
10308#ifdef __cplusplus
10309extern "C" void exit (int);
10310#endif
10311
10312void fnord() { int i=42;}
10313int main ()
10314{
10315 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10316 int status = $lt_dlunknown;
10317
10318 if (self)
10319 {
10320 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10321 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10322 /* dlclose (self); */
10323 }
10324 else
10325 puts (dlerror ());
10326
10327 exit (status);
10328}
10329EOF
10330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331 (eval $ac_link) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10335 (./conftest; exit; ) >&5 2>/dev/null
10336 lt_status=$?
10337 case x$lt_status in
10338 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10339 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10340 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10341 esac
10342 else :
10343 # compilation failed
10344 lt_cv_dlopen_self_static=no
10345 fi
10346fi
10347rm -fr conftest*
10348
10349
10350fi
openvcdiffd1845782009-03-20 21:56:15 +000010351{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10352echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010353 fi
10354
10355 CPPFLAGS="$save_CPPFLAGS"
10356 LDFLAGS="$save_LDFLAGS"
10357 LIBS="$save_LIBS"
10358 ;;
10359 esac
10360
10361 case $lt_cv_dlopen_self in
10362 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10363 *) enable_dlopen_self=unknown ;;
10364 esac
10365
10366 case $lt_cv_dlopen_self_static in
10367 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10368 *) enable_dlopen_self_static=unknown ;;
10369 esac
10370fi
10371
10372
10373# Report which library types will actually be built
openvcdiffd1845782009-03-20 21:56:15 +000010374{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10375echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10376{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10377echo "${ECHO_T}$can_build_shared" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010378
openvcdiffd1845782009-03-20 21:56:15 +000010379{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10380echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010381test "$can_build_shared" = "no" && enable_shared=no
10382
10383# On AIX, shared libraries and static libraries use the same namespace, and
10384# are all built from PIC.
10385case $host_os in
10386aix3*)
10387 test "$enable_shared" = yes && enable_static=no
10388 if test -n "$RANLIB"; then
10389 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10390 postinstall_cmds='$RANLIB $lib'
10391 fi
10392 ;;
10393
openvcdiffd1845782009-03-20 21:56:15 +000010394aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000010395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10396 test "$enable_shared" = yes && enable_static=no
10397 fi
10398 ;;
10399esac
openvcdiffd1845782009-03-20 21:56:15 +000010400{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10401echo "${ECHO_T}$enable_shared" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010402
openvcdiffd1845782009-03-20 21:56:15 +000010403{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10404echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010405# Make sure either enable_shared or enable_static is yes.
10406test "$enable_shared" = yes || enable_static=yes
openvcdiffd1845782009-03-20 21:56:15 +000010407{ echo "$as_me:$LINENO: result: $enable_static" >&5
10408echo "${ECHO_T}$enable_static" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010409
10410# The else clause should only fire when bootstrapping the
10411# libtool distribution, otherwise you forgot to ship ltmain.sh
10412# with your package, and you will get complaints that there are
10413# no rules to generate ltmain.sh.
10414if test -f "$ltmain"; then
10415 # See if we are running on zsh, and set the options which allow our commands through
10416 # without removal of \ escapes.
10417 if test -n "${ZSH_VERSION+set}" ; then
10418 setopt NO_GLOB_SUBST
10419 fi
10420 # Now quote all the things that may contain metacharacters while being
10421 # careful not to overquote the AC_SUBSTed values. We take copies of the
10422 # variables and quote the copies for generation of the libtool script.
10423 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10424 SED SHELL STRIP \
10425 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10426 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10427 deplibs_check_method reload_flag reload_cmds need_locks \
10428 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10429 lt_cv_sys_global_symbol_to_c_name_address \
10430 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10431 old_postinstall_cmds old_postuninstall_cmds \
10432 compiler \
10433 CC \
10434 LD \
10435 lt_prog_compiler_wl \
10436 lt_prog_compiler_pic \
10437 lt_prog_compiler_static \
10438 lt_prog_compiler_no_builtin_flag \
10439 export_dynamic_flag_spec \
10440 thread_safe_flag_spec \
10441 whole_archive_flag_spec \
10442 enable_shared_with_static_runtimes \
10443 old_archive_cmds \
10444 old_archive_from_new_cmds \
10445 predep_objects \
10446 postdep_objects \
10447 predeps \
10448 postdeps \
10449 compiler_lib_search_path \
openvcdiffd1845782009-03-20 21:56:15 +000010450 compiler_lib_search_dirs \
openvcdiff311c7142008-08-26 19:29:25 +000010451 archive_cmds \
10452 archive_expsym_cmds \
10453 postinstall_cmds \
10454 postuninstall_cmds \
10455 old_archive_from_expsyms_cmds \
10456 allow_undefined_flag \
10457 no_undefined_flag \
10458 export_symbols_cmds \
10459 hardcode_libdir_flag_spec \
10460 hardcode_libdir_flag_spec_ld \
10461 hardcode_libdir_separator \
10462 hardcode_automatic \
10463 module_cmds \
10464 module_expsym_cmds \
10465 lt_cv_prog_compiler_c_o \
openvcdiffd1845782009-03-20 21:56:15 +000010466 fix_srcfile_path \
openvcdiff311c7142008-08-26 19:29:25 +000010467 exclude_expsyms \
10468 include_expsyms; do
10469
10470 case $var in
10471 old_archive_cmds | \
10472 old_archive_from_new_cmds | \
10473 archive_cmds | \
10474 archive_expsym_cmds | \
10475 module_cmds | \
10476 module_expsym_cmds | \
10477 old_archive_from_expsyms_cmds | \
10478 export_symbols_cmds | \
10479 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10480 postinstall_cmds | postuninstall_cmds | \
10481 old_postinstall_cmds | old_postuninstall_cmds | \
10482 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10483 # Double-quote double-evaled strings.
10484 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10485 ;;
10486 *)
10487 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10488 ;;
10489 esac
10490 done
10491
10492 case $lt_echo in
10493 *'\$0 --fallback-echo"')
10494 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10495 ;;
10496 esac
10497
10498cfgfile="${ofile}T"
10499 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10500 $rm -f "$cfgfile"
10501 { echo "$as_me:$LINENO: creating $ofile" >&5
10502echo "$as_me: creating $ofile" >&6;}
10503
10504 cat <<__EOF__ >> "$cfgfile"
10505#! $SHELL
10506
10507# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10508# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10509# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10510#
openvcdiffd1845782009-03-20 21:56:15 +000010511# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
openvcdiff311c7142008-08-26 19:29:25 +000010512# Free Software Foundation, Inc.
10513#
10514# This file is part of GNU Libtool:
10515# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10516#
10517# This program is free software; you can redistribute it and/or modify
10518# it under the terms of the GNU General Public License as published by
10519# the Free Software Foundation; either version 2 of the License, or
10520# (at your option) any later version.
10521#
10522# This program is distributed in the hope that it will be useful, but
10523# WITHOUT ANY WARRANTY; without even the implied warranty of
10524# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10525# General Public License for more details.
10526#
10527# You should have received a copy of the GNU General Public License
10528# along with this program; if not, write to the Free Software
10529# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10530#
10531# As a special exception to the GNU General Public License, if you
10532# distribute this file as part of a program that contains a
10533# configuration script generated by Autoconf, you may include it under
10534# the same distribution terms that you use for the rest of that program.
10535
10536# A sed program that does not truncate output.
10537SED=$lt_SED
10538
10539# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10540Xsed="$SED -e 1s/^X//"
10541
10542# The HP-UX ksh and POSIX shell print the target directory to stdout
10543# if CDPATH is set.
10544(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10545
10546# The names of the tagged configurations supported by this script.
10547available_tags=
10548
10549# ### BEGIN LIBTOOL CONFIG
10550
10551# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10552
10553# Shell to use when invoking shell scripts.
10554SHELL=$lt_SHELL
10555
10556# Whether or not to build shared libraries.
10557build_libtool_libs=$enable_shared
10558
10559# Whether or not to build static libraries.
10560build_old_libs=$enable_static
10561
10562# Whether or not to add -lc for building shared libraries.
10563build_libtool_need_lc=$archive_cmds_need_lc
10564
10565# Whether or not to disallow shared libs when runtime libs are static
10566allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10567
10568# Whether or not to optimize for fast installation.
10569fast_install=$enable_fast_install
10570
10571# The host system.
10572host_alias=$host_alias
10573host=$host
10574host_os=$host_os
10575
10576# The build system.
10577build_alias=$build_alias
10578build=$build
10579build_os=$build_os
10580
10581# An echo program that does not interpret backslashes.
10582echo=$lt_echo
10583
10584# The archiver.
10585AR=$lt_AR
10586AR_FLAGS=$lt_AR_FLAGS
10587
10588# A C compiler.
10589LTCC=$lt_LTCC
10590
10591# LTCC compiler flags.
10592LTCFLAGS=$lt_LTCFLAGS
10593
10594# A language-specific compiler.
10595CC=$lt_compiler
10596
10597# Is the compiler the GNU C compiler?
10598with_gcc=$GCC
10599
10600# An ERE matcher.
10601EGREP=$lt_EGREP
10602
10603# The linker used to build libraries.
10604LD=$lt_LD
10605
10606# Whether we need hard or soft links.
10607LN_S=$lt_LN_S
10608
10609# A BSD-compatible nm program.
10610NM=$lt_NM
10611
10612# A symbol stripping program
10613STRIP=$lt_STRIP
10614
10615# Used to examine libraries when file_magic_cmd begins "file"
10616MAGIC_CMD=$MAGIC_CMD
10617
10618# Used on cygwin: DLL creation program.
10619DLLTOOL="$DLLTOOL"
10620
10621# Used on cygwin: object dumper.
10622OBJDUMP="$OBJDUMP"
10623
10624# Used on cygwin: assembler.
10625AS="$AS"
10626
10627# The name of the directory that contains temporary libtool files.
10628objdir=$objdir
10629
10630# How to create reloadable object files.
10631reload_flag=$lt_reload_flag
10632reload_cmds=$lt_reload_cmds
10633
10634# How to pass a linker flag through the compiler.
10635wl=$lt_lt_prog_compiler_wl
10636
10637# Object file suffix (normally "o").
10638objext="$ac_objext"
10639
10640# Old archive suffix (normally "a").
10641libext="$libext"
10642
10643# Shared library suffix (normally ".so").
10644shrext_cmds='$shrext_cmds'
10645
10646# Executable file suffix (normally "").
10647exeext="$exeext"
10648
10649# Additional compiler flags for building library objects.
10650pic_flag=$lt_lt_prog_compiler_pic
10651pic_mode=$pic_mode
10652
10653# What is the maximum length of a command?
10654max_cmd_len=$lt_cv_sys_max_cmd_len
10655
10656# Does compiler simultaneously support -c and -o options?
10657compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10658
10659# Must we lock files when doing compilation?
10660need_locks=$lt_need_locks
10661
10662# Do we need the lib prefix for modules?
10663need_lib_prefix=$need_lib_prefix
10664
10665# Do we need a version for libraries?
10666need_version=$need_version
10667
10668# Whether dlopen is supported.
10669dlopen_support=$enable_dlopen
10670
10671# Whether dlopen of programs is supported.
10672dlopen_self=$enable_dlopen_self
10673
10674# Whether dlopen of statically linked programs is supported.
10675dlopen_self_static=$enable_dlopen_self_static
10676
10677# Compiler flag to prevent dynamic linking.
10678link_static_flag=$lt_lt_prog_compiler_static
10679
10680# Compiler flag to turn off builtin functions.
10681no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10682
10683# Compiler flag to allow reflexive dlopens.
10684export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10685
10686# Compiler flag to generate shared objects directly from archives.
10687whole_archive_flag_spec=$lt_whole_archive_flag_spec
10688
10689# Compiler flag to generate thread-safe objects.
10690thread_safe_flag_spec=$lt_thread_safe_flag_spec
10691
10692# Library versioning type.
10693version_type=$version_type
10694
10695# Format of library name prefix.
10696libname_spec=$lt_libname_spec
10697
10698# List of archive names. First name is the real one, the rest are links.
10699# The last name is the one that the linker finds with -lNAME.
10700library_names_spec=$lt_library_names_spec
10701
10702# The coded name of the library, if different from the real name.
10703soname_spec=$lt_soname_spec
10704
10705# Commands used to build and install an old-style archive.
10706RANLIB=$lt_RANLIB
10707old_archive_cmds=$lt_old_archive_cmds
10708old_postinstall_cmds=$lt_old_postinstall_cmds
10709old_postuninstall_cmds=$lt_old_postuninstall_cmds
10710
10711# Create an old-style archive from a shared archive.
10712old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10713
10714# Create a temporary old-style archive to link instead of a shared archive.
10715old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10716
10717# Commands used to build and install a shared archive.
10718archive_cmds=$lt_archive_cmds
10719archive_expsym_cmds=$lt_archive_expsym_cmds
10720postinstall_cmds=$lt_postinstall_cmds
10721postuninstall_cmds=$lt_postuninstall_cmds
10722
10723# Commands used to build a loadable module (assumed same as above if empty)
10724module_cmds=$lt_module_cmds
10725module_expsym_cmds=$lt_module_expsym_cmds
10726
10727# Commands to strip libraries.
10728old_striplib=$lt_old_striplib
10729striplib=$lt_striplib
10730
10731# Dependencies to place before the objects being linked to create a
10732# shared library.
10733predep_objects=$lt_predep_objects
10734
10735# Dependencies to place after the objects being linked to create a
10736# shared library.
10737postdep_objects=$lt_postdep_objects
10738
10739# Dependencies to place before the objects being linked to create a
10740# shared library.
10741predeps=$lt_predeps
10742
10743# Dependencies to place after the objects being linked to create a
10744# shared library.
10745postdeps=$lt_postdeps
10746
openvcdiffd1845782009-03-20 21:56:15 +000010747# The directories searched by this compiler when creating a shared
10748# library
10749compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10750
openvcdiff311c7142008-08-26 19:29:25 +000010751# The library search path used internally by the compiler when linking
10752# a shared library.
10753compiler_lib_search_path=$lt_compiler_lib_search_path
10754
10755# Method to check whether dependent libraries are shared objects.
10756deplibs_check_method=$lt_deplibs_check_method
10757
10758# Command to use when deplibs_check_method == file_magic.
10759file_magic_cmd=$lt_file_magic_cmd
10760
10761# Flag that allows shared libraries with undefined symbols to be built.
10762allow_undefined_flag=$lt_allow_undefined_flag
10763
10764# Flag that forces no undefined symbols.
10765no_undefined_flag=$lt_no_undefined_flag
10766
10767# Commands used to finish a libtool library installation in a directory.
10768finish_cmds=$lt_finish_cmds
10769
10770# Same as above, but a single script fragment to be evaled but not shown.
10771finish_eval=$lt_finish_eval
10772
10773# Take the output of nm and produce a listing of raw symbols and C names.
10774global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10775
10776# Transform the output of nm in a proper C declaration
10777global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10778
10779# Transform the output of nm in a C name address pair
10780global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10781
10782# This is the shared library runtime path variable.
10783runpath_var=$runpath_var
10784
10785# This is the shared library path variable.
10786shlibpath_var=$shlibpath_var
10787
10788# Is shlibpath searched before the hard-coded library search path?
10789shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10790
10791# How to hardcode a shared library path into an executable.
10792hardcode_action=$hardcode_action
10793
10794# Whether we should hardcode library paths into libraries.
10795hardcode_into_libs=$hardcode_into_libs
10796
10797# Flag to hardcode \$libdir into a binary during linking.
10798# This must work even if \$libdir does not exist.
10799hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10800
10801# If ld is used when linking, flag to hardcode \$libdir into
10802# a binary during linking. This must work even if \$libdir does
10803# not exist.
10804hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10805
10806# Whether we need a single -rpath flag with a separated argument.
10807hardcode_libdir_separator=$lt_hardcode_libdir_separator
10808
10809# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10810# resulting binary.
10811hardcode_direct=$hardcode_direct
10812
10813# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10814# resulting binary.
10815hardcode_minus_L=$hardcode_minus_L
10816
10817# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10818# the resulting binary.
10819hardcode_shlibpath_var=$hardcode_shlibpath_var
10820
10821# Set to yes if building a shared library automatically hardcodes DIR into the library
10822# and all subsequent libraries and executables linked against it.
10823hardcode_automatic=$hardcode_automatic
10824
10825# Variables whose values should be saved in libtool wrapper scripts and
10826# restored at relink time.
10827variables_saved_for_relink="$variables_saved_for_relink"
10828
10829# Whether libtool must link a program against all its dependency libraries.
10830link_all_deplibs=$link_all_deplibs
10831
10832# Compile-time system search path for libraries
10833sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10834
10835# Run-time system search path for libraries
10836sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10837
10838# Fix the shell variable \$srcfile for the compiler.
openvcdiffd1845782009-03-20 21:56:15 +000010839fix_srcfile_path=$lt_fix_srcfile_path
openvcdiff311c7142008-08-26 19:29:25 +000010840
10841# Set to yes if exported symbols are required.
10842always_export_symbols=$always_export_symbols
10843
10844# The commands to list exported symbols.
10845export_symbols_cmds=$lt_export_symbols_cmds
10846
10847# The commands to extract the exported symbol list from a shared archive.
10848extract_expsyms_cmds=$lt_extract_expsyms_cmds
10849
10850# Symbols that should not be listed in the preloaded symbols.
10851exclude_expsyms=$lt_exclude_expsyms
10852
10853# Symbols that must always be exported.
10854include_expsyms=$lt_include_expsyms
10855
10856# ### END LIBTOOL CONFIG
10857
10858__EOF__
10859
10860
10861 case $host_os in
10862 aix3*)
10863 cat <<\EOF >> "$cfgfile"
10864
10865# AIX sometimes has problems with the GCC collect2 program. For some
10866# reason, if we set the COLLECT_NAMES environment variable, the problems
10867# vanish in a puff of smoke.
10868if test "X${COLLECT_NAMES+set}" != Xset; then
10869 COLLECT_NAMES=
10870 export COLLECT_NAMES
10871fi
10872EOF
10873 ;;
10874 esac
10875
10876 # We use sed instead of cat because bash on DJGPP gets confused if
10877 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10878 # text mode, it properly converts lines to CR/LF. This bash problem
10879 # is reportedly fixed, but why not run on old versions too?
10880 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10881
10882 mv -f "$cfgfile" "$ofile" || \
10883 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10884 chmod +x "$ofile"
10885
10886else
10887 # If there is no Makefile yet, we rely on a make rule to execute
10888 # `config.status --recheck' to rerun these tests and create the
10889 # libtool script then.
10890 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10891 if test -f "$ltmain_in"; then
10892 test -f Makefile && make "$ltmain"
10893 fi
10894fi
10895
10896
10897ac_ext=c
10898ac_cpp='$CPP $CPPFLAGS'
10899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10901ac_compiler_gnu=$ac_cv_c_compiler_gnu
10902
10903CC="$lt_save_CC"
10904
10905
openvcdiffd1845782009-03-20 21:56:15 +000010906# Check whether --with-tags was given.
openvcdiff311c7142008-08-26 19:29:25 +000010907if test "${with_tags+set}" = set; then
openvcdiffd1845782009-03-20 21:56:15 +000010908 withval=$with_tags; tagnames="$withval"
10909fi
10910
openvcdiff311c7142008-08-26 19:29:25 +000010911
10912if test -f "$ltmain" && test -n "$tagnames"; then
10913 if test ! -f "${ofile}"; then
10914 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10915echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10916 fi
10917
10918 if test -z "$LTCC"; then
10919 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10920 if test -z "$LTCC"; then
10921 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10922echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10923 else
10924 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10925echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10926 fi
10927 fi
10928 if test -z "$LTCFLAGS"; then
10929 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10930 fi
10931
10932 # Extract list of available tagged configurations in $ofile.
10933 # Note that this assumes the entire list is on one line.
10934 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10935
10936 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10937 for tagname in $tagnames; do
10938 IFS="$lt_save_ifs"
10939 # Check whether tagname contains only valid characters
10940 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10941 "") ;;
10942 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10943echo "$as_me: error: invalid tag name: $tagname" >&2;}
10944 { (exit 1); exit 1; }; }
10945 ;;
10946 esac
10947
10948 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10949 then
10950 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10951echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10952 { (exit 1); exit 1; }; }
10953 fi
10954
10955 # Update the list of available tags.
10956 if test -n "$tagname"; then
10957 echo appending configuration tag \"$tagname\" to $ofile
10958
10959 case $tagname in
10960 CXX)
10961 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10962 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10963 (test "X$CXX" != "Xg++"))) ; then
openvcdiffd1845782009-03-20 21:56:15 +000010964 ac_ext=cpp
openvcdiff311c7142008-08-26 19:29:25 +000010965ac_cpp='$CXXCPP $CPPFLAGS'
10966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10969
10970
10971
10972
10973archive_cmds_need_lc_CXX=no
10974allow_undefined_flag_CXX=
10975always_export_symbols_CXX=no
10976archive_expsym_cmds_CXX=
10977export_dynamic_flag_spec_CXX=
10978hardcode_direct_CXX=no
10979hardcode_libdir_flag_spec_CXX=
10980hardcode_libdir_flag_spec_ld_CXX=
10981hardcode_libdir_separator_CXX=
10982hardcode_minus_L_CXX=no
10983hardcode_shlibpath_var_CXX=unsupported
10984hardcode_automatic_CXX=no
10985module_cmds_CXX=
10986module_expsym_cmds_CXX=
10987link_all_deplibs_CXX=unknown
10988old_archive_cmds_CXX=$old_archive_cmds
10989no_undefined_flag_CXX=
10990whole_archive_flag_spec_CXX=
10991enable_shared_with_static_runtimes_CXX=no
10992
10993# Dependencies to place before and after the object being linked:
10994predep_objects_CXX=
10995postdep_objects_CXX=
10996predeps_CXX=
10997postdeps_CXX=
10998compiler_lib_search_path_CXX=
openvcdiffd1845782009-03-20 21:56:15 +000010999compiler_lib_search_dirs_CXX=
openvcdiff311c7142008-08-26 19:29:25 +000011000
11001# Source file extension for C++ test sources.
11002ac_ext=cpp
11003
11004# Object file extension for compiled C++ test sources.
11005objext=o
11006objext_CXX=$objext
11007
11008# Code to be used in simple compile tests
openvcdiffd1845782009-03-20 21:56:15 +000011009lt_simple_compile_test_code="int some_variable = 0;"
openvcdiff311c7142008-08-26 19:29:25 +000011010
11011# Code to be used in simple link tests
openvcdiffd1845782009-03-20 21:56:15 +000011012lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
openvcdiff311c7142008-08-26 19:29:25 +000011013
11014# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11015
11016# If no C compiler was specified, use CC.
11017LTCC=${LTCC-"$CC"}
11018
11019# If no C compiler flags were specified, use CFLAGS.
11020LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11021
11022# Allow CC to be a program name with arguments.
11023compiler=$CC
11024
11025
11026# save warnings/boilerplate of simple test code
11027ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000011028echo "$lt_simple_compile_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011029eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11030_lt_compiler_boilerplate=`cat conftest.err`
11031$rm conftest*
11032
11033ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000011034echo "$lt_simple_link_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011035eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11036_lt_linker_boilerplate=`cat conftest.err`
openvcdiffd1845782009-03-20 21:56:15 +000011037$rm -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +000011038
11039
11040# Allow CC to be a program name with arguments.
11041lt_save_CC=$CC
11042lt_save_LD=$LD
11043lt_save_GCC=$GCC
11044GCC=$GXX
11045lt_save_with_gnu_ld=$with_gnu_ld
11046lt_save_path_LD=$lt_cv_path_LD
11047if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11048 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11049else
11050 $as_unset lt_cv_prog_gnu_ld
11051fi
11052if test -n "${lt_cv_path_LDCXX+set}"; then
11053 lt_cv_path_LD=$lt_cv_path_LDCXX
11054else
11055 $as_unset lt_cv_path_LD
11056fi
11057test -z "${LDCXX+set}" || LD=$LDCXX
11058CC=${CXX-"c++"}
11059compiler=$CC
11060compiler_CXX=$CC
11061for cc_temp in $compiler""; do
11062 case $cc_temp in
11063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11065 \-*) ;;
11066 *) break;;
11067 esac
11068done
11069cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11070
11071
11072# We don't want -fno-exception wen compiling C++ code, so set the
11073# no_builtin_flag separately
11074if test "$GXX" = yes; then
11075 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11076else
11077 lt_prog_compiler_no_builtin_flag_CXX=
11078fi
11079
11080if test "$GXX" = yes; then
11081 # Set up default GNU C++ configuration
11082
11083
openvcdiffd1845782009-03-20 21:56:15 +000011084# Check whether --with-gnu-ld was given.
openvcdiff311c7142008-08-26 19:29:25 +000011085if test "${with_gnu_ld+set}" = set; then
openvcdiffd1845782009-03-20 21:56:15 +000011086 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
openvcdiff311c7142008-08-26 19:29:25 +000011087else
11088 with_gnu_ld=no
openvcdiffd1845782009-03-20 21:56:15 +000011089fi
11090
openvcdiff311c7142008-08-26 19:29:25 +000011091ac_prog=ld
11092if test "$GCC" = yes; then
11093 # Check if gcc -print-prog-name=ld gives a path.
openvcdiffd1845782009-03-20 21:56:15 +000011094 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11095echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011096 case $host in
11097 *-*-mingw*)
11098 # gcc leaves a trailing carriage return which upsets mingw
11099 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11100 *)
11101 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11102 esac
11103 case $ac_prog in
11104 # Accept absolute paths.
11105 [\\/]* | ?:[\\/]*)
11106 re_direlt='/[^/][^/]*/\.\./'
11107 # Canonicalize the pathname of ld
11108 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11109 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11110 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11111 done
11112 test -z "$LD" && LD="$ac_prog"
11113 ;;
11114 "")
11115 # If it fails, then pretend we aren't using GCC.
11116 ac_prog=ld
11117 ;;
11118 *)
11119 # If it is relative, then search for the first ld in PATH.
11120 with_gnu_ld=unknown
11121 ;;
11122 esac
11123elif test "$with_gnu_ld" = yes; then
openvcdiffd1845782009-03-20 21:56:15 +000011124 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11125echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011126else
openvcdiffd1845782009-03-20 21:56:15 +000011127 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11128echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011129fi
11130if test "${lt_cv_path_LD+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132else
11133 if test -z "$LD"; then
11134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11135 for ac_dir in $PATH; do
11136 IFS="$lt_save_ifs"
11137 test -z "$ac_dir" && ac_dir=.
11138 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11139 lt_cv_path_LD="$ac_dir/$ac_prog"
11140 # Check to see if the program is GNU ld. I'd rather use --version,
11141 # but apparently some variants of GNU ld only accept -v.
11142 # Break only if it was the GNU/non-GNU ld that we prefer.
11143 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11144 *GNU* | *'with BFD'*)
11145 test "$with_gnu_ld" != no && break
11146 ;;
11147 *)
11148 test "$with_gnu_ld" != yes && break
11149 ;;
11150 esac
11151 fi
11152 done
11153 IFS="$lt_save_ifs"
11154else
11155 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11156fi
11157fi
11158
11159LD="$lt_cv_path_LD"
11160if test -n "$LD"; then
openvcdiffd1845782009-03-20 21:56:15 +000011161 { echo "$as_me:$LINENO: result: $LD" >&5
11162echo "${ECHO_T}$LD" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011163else
openvcdiffd1845782009-03-20 21:56:15 +000011164 { echo "$as_me:$LINENO: result: no" >&5
11165echo "${ECHO_T}no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011166fi
11167test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11168echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11169 { (exit 1); exit 1; }; }
openvcdiffd1845782009-03-20 21:56:15 +000011170{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11171echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011172if test "${lt_cv_prog_gnu_ld+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174else
11175 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11176case `$LD -v 2>&1 </dev/null` in
11177*GNU* | *'with BFD'*)
11178 lt_cv_prog_gnu_ld=yes
11179 ;;
11180*)
11181 lt_cv_prog_gnu_ld=no
11182 ;;
11183esac
11184fi
openvcdiffd1845782009-03-20 21:56:15 +000011185{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11186echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011187with_gnu_ld=$lt_cv_prog_gnu_ld
11188
11189
11190
11191 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11192 # archiving commands below assume that GNU ld is being used.
11193 if test "$with_gnu_ld" = yes; then
11194 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11195 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11196
11197 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11198 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11199
11200 # If archive_cmds runs LD, not CC, wlarc should be empty
11201 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11202 # investigate it a little bit more. (MM)
11203 wlarc='${wl}'
11204
11205 # ancient GNU ld didn't support --whole-archive et. al.
11206 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11207 grep 'no-whole-archive' > /dev/null; then
11208 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11209 else
11210 whole_archive_flag_spec_CXX=
11211 fi
11212 else
11213 with_gnu_ld=no
11214 wlarc=
11215
11216 # A generic and very simple default shared library creation
11217 # command for GNU C++ for the case where it uses the native
11218 # linker, instead of GNU ld. If possible, this setting should
11219 # overridden to take advantage of the native linker features on
11220 # the platform it is being used on.
11221 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11222 fi
11223
11224 # Commands to make compiler produce verbose output that lists
11225 # what "hidden" libraries, object files and flags are used when
11226 # linking a shared library.
11227 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11228
11229else
11230 GXX=no
11231 with_gnu_ld=no
11232 wlarc=
11233fi
11234
11235# PORTME: fill in a description of your system's C++ link characteristics
openvcdiffd1845782009-03-20 21:56:15 +000011236{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11237echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011238ld_shlibs_CXX=yes
11239case $host_os in
11240 aix3*)
11241 # FIXME: insert proper C++ library support
11242 ld_shlibs_CXX=no
11243 ;;
openvcdiffd1845782009-03-20 21:56:15 +000011244 aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000011245 if test "$host_cpu" = ia64; then
11246 # On IA64, the linker does run time linking by default, so we don't
11247 # have to do anything special.
11248 aix_use_runtimelinking=no
11249 exp_sym_flag='-Bexport'
11250 no_entry_flag=""
11251 else
11252 aix_use_runtimelinking=no
11253
11254 # Test if we are trying to use run time linking or normal
11255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11256 # need to do runtime linking.
openvcdiffd1845782009-03-20 21:56:15 +000011257 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000011258 for ld_flag in $LDFLAGS; do
11259 case $ld_flag in
11260 *-brtl*)
11261 aix_use_runtimelinking=yes
11262 break
11263 ;;
11264 esac
11265 done
11266 ;;
11267 esac
11268
11269 exp_sym_flag='-bexport'
11270 no_entry_flag='-bnoentry'
11271 fi
11272
11273 # When large executables or shared objects are built, AIX ld can
11274 # have problems creating the table of contents. If linking a library
11275 # or program results in "error TOC overflow" add -mminimal-toc to
11276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11278
11279 archive_cmds_CXX=''
11280 hardcode_direct_CXX=yes
11281 hardcode_libdir_separator_CXX=':'
11282 link_all_deplibs_CXX=yes
11283
11284 if test "$GXX" = yes; then
11285 case $host_os in aix4.[012]|aix4.[012].*)
11286 # We only want to do this on AIX 4.2 and lower, the check
11287 # below for broken collect2 doesn't work under 4.3+
11288 collect2name=`${CC} -print-prog-name=collect2`
11289 if test -f "$collect2name" && \
11290 strings "$collect2name" | grep resolve_lib_name >/dev/null
11291 then
11292 # We have reworked collect2
openvcdiffd1845782009-03-20 21:56:15 +000011293 :
openvcdiff311c7142008-08-26 19:29:25 +000011294 else
11295 # We have old collect2
11296 hardcode_direct_CXX=unsupported
11297 # It fails to find uninstalled libraries when the uninstalled
11298 # path is not listed in the libpath. Setting hardcode_minus_L
11299 # to unsupported forces relinking
11300 hardcode_minus_L_CXX=yes
11301 hardcode_libdir_flag_spec_CXX='-L$libdir'
11302 hardcode_libdir_separator_CXX=
11303 fi
11304 ;;
11305 esac
11306 shared_flag='-shared'
11307 if test "$aix_use_runtimelinking" = yes; then
11308 shared_flag="$shared_flag "'${wl}-G'
11309 fi
11310 else
11311 # not using gcc
11312 if test "$host_cpu" = ia64; then
11313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11314 # chokes on -Wl,-G. The following line is correct:
11315 shared_flag='-G'
11316 else
11317 if test "$aix_use_runtimelinking" = yes; then
11318 shared_flag='${wl}-G'
11319 else
11320 shared_flag='${wl}-bM:SRE'
11321 fi
11322 fi
11323 fi
11324
11325 # It seems that -bexpall does not export symbols beginning with
11326 # underscore (_), so it is better to generate a list of symbols to export.
11327 always_export_symbols_CXX=yes
11328 if test "$aix_use_runtimelinking" = yes; then
11329 # Warning - without using the other runtime loading flags (-brtl),
11330 # -berok will link without error, but may produce a broken library.
11331 allow_undefined_flag_CXX='-berok'
11332 # Determine the default libpath from the value encoded in an empty executable.
11333 cat >conftest.$ac_ext <<_ACEOF
11334/* confdefs.h. */
11335_ACEOF
11336cat confdefs.h >>conftest.$ac_ext
11337cat >>conftest.$ac_ext <<_ACEOF
11338/* end confdefs.h. */
11339
11340int
11341main ()
11342{
11343
11344 ;
11345 return 0;
11346}
11347_ACEOF
11348rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000011349if { (ac_try="$ac_link"
11350case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353esac
11354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000011356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000011361 (exit $ac_status); } && {
11362 test -z "$ac_cxx_werror_flag" ||
11363 test ! -s conftest.err
11364 } && test -s conftest$ac_exeext &&
11365 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000011366
openvcdiffd1845782009-03-20 21:56:15 +000011367lt_aix_libpath_sed='
11368 /Import File Strings/,/^$/ {
11369 /^0/ {
11370 s/^0 *\(.*\)$/\1/
11371 p
11372 }
11373 }'
11374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
openvcdiff311c7142008-08-26 19:29:25 +000011375# Check for a 64-bit object if we didn't find anything.
openvcdiffd1845782009-03-20 21:56:15 +000011376if test -z "$aix_libpath"; then
11377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11378fi
openvcdiff311c7142008-08-26 19:29:25 +000011379else
11380 echo "$as_me: failed program was:" >&5
11381sed 's/^/| /' conftest.$ac_ext >&5
11382
openvcdiffd1845782009-03-20 21:56:15 +000011383
openvcdiff311c7142008-08-26 19:29:25 +000011384fi
openvcdiffd1845782009-03-20 21:56:15 +000011385
11386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000011387 conftest$ac_exeext conftest.$ac_ext
11388if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11389
11390 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11391
11392 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11393 else
11394 if test "$host_cpu" = ia64; then
11395 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11396 allow_undefined_flag_CXX="-z nodefs"
11397 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11398 else
11399 # Determine the default libpath from the value encoded in an empty executable.
11400 cat >conftest.$ac_ext <<_ACEOF
11401/* confdefs.h. */
11402_ACEOF
11403cat confdefs.h >>conftest.$ac_ext
11404cat >>conftest.$ac_ext <<_ACEOF
11405/* end confdefs.h. */
11406
11407int
11408main ()
11409{
11410
11411 ;
11412 return 0;
11413}
11414_ACEOF
11415rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000011416if { (ac_try="$ac_link"
11417case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11420esac
11421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000011423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000011428 (exit $ac_status); } && {
11429 test -z "$ac_cxx_werror_flag" ||
11430 test ! -s conftest.err
11431 } && test -s conftest$ac_exeext &&
11432 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000011433
openvcdiffd1845782009-03-20 21:56:15 +000011434lt_aix_libpath_sed='
11435 /Import File Strings/,/^$/ {
11436 /^0/ {
11437 s/^0 *\(.*\)$/\1/
11438 p
11439 }
11440 }'
11441aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
openvcdiff311c7142008-08-26 19:29:25 +000011442# Check for a 64-bit object if we didn't find anything.
openvcdiffd1845782009-03-20 21:56:15 +000011443if test -z "$aix_libpath"; then
11444 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11445fi
openvcdiff311c7142008-08-26 19:29:25 +000011446else
11447 echo "$as_me: failed program was:" >&5
11448sed 's/^/| /' conftest.$ac_ext >&5
11449
openvcdiffd1845782009-03-20 21:56:15 +000011450
openvcdiff311c7142008-08-26 19:29:25 +000011451fi
openvcdiffd1845782009-03-20 21:56:15 +000011452
11453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000011454 conftest$ac_exeext conftest.$ac_ext
11455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11456
11457 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11458 # Warning - without using the other run time loading flags,
11459 # -berok will link without error, but may produce a broken library.
11460 no_undefined_flag_CXX=' ${wl}-bernotok'
11461 allow_undefined_flag_CXX=' ${wl}-berok'
11462 # Exported symbols can be pulled into shared objects from archives
11463 whole_archive_flag_spec_CXX='$convenience'
11464 archive_cmds_need_lc_CXX=yes
11465 # This is similar to how AIX traditionally builds its shared libraries.
11466 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11467 fi
11468 fi
11469 ;;
11470
11471 beos*)
11472 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11473 allow_undefined_flag_CXX=unsupported
11474 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11475 # support --undefined. This deserves some investigation. FIXME
11476 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11477 else
11478 ld_shlibs_CXX=no
11479 fi
11480 ;;
11481
11482 chorus*)
11483 case $cc_basename in
11484 *)
11485 # FIXME: insert proper C++ library support
11486 ld_shlibs_CXX=no
11487 ;;
11488 esac
11489 ;;
11490
11491 cygwin* | mingw* | pw32*)
11492 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11493 # as there is no search path for DLLs.
11494 hardcode_libdir_flag_spec_CXX='-L$libdir'
11495 allow_undefined_flag_CXX=unsupported
11496 always_export_symbols_CXX=no
11497 enable_shared_with_static_runtimes_CXX=yes
11498
11499 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11500 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11501 # If the export-symbols file already is a .def file (1st line
11502 # is EXPORTS), use it as is; otherwise, prepend...
11503 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11504 cp $export_symbols $output_objdir/$soname.def;
11505 else
11506 echo EXPORTS > $output_objdir/$soname.def;
11507 cat $export_symbols >> $output_objdir/$soname.def;
11508 fi~
11509 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11510 else
11511 ld_shlibs_CXX=no
11512 fi
11513 ;;
11514 darwin* | rhapsody*)
openvcdiff311c7142008-08-26 19:29:25 +000011515 archive_cmds_need_lc_CXX=no
11516 hardcode_direct_CXX=no
11517 hardcode_automatic_CXX=yes
11518 hardcode_shlibpath_var_CXX=unsupported
11519 whole_archive_flag_spec_CXX=''
11520 link_all_deplibs_CXX=yes
openvcdiffd1845782009-03-20 21:56:15 +000011521 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11522 if test "$GXX" = yes ; then
openvcdiff311c7142008-08-26 19:29:25 +000011523 output_verbose_link_cmd='echo'
openvcdiffd1845782009-03-20 21:56:15 +000011524 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11525 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11526 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11527 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11528 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11529 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11530 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
openvcdiff311c7142008-08-26 19:29:25 +000011531 fi
openvcdiff311c7142008-08-26 19:29:25 +000011532 else
11533 case $cc_basename in
11534 xlc*)
11535 output_verbose_link_cmd='echo'
openvcdiffd1845782009-03-20 21:56:15 +000011536 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
openvcdiff311c7142008-08-26 19:29:25 +000011537 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11538 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
openvcdiffd1845782009-03-20 21:56:15 +000011539 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
openvcdiff311c7142008-08-26 19:29:25 +000011540 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11541 ;;
11542 *)
11543 ld_shlibs_CXX=no
11544 ;;
11545 esac
11546 fi
11547 ;;
11548
11549 dgux*)
11550 case $cc_basename in
11551 ec++*)
11552 # FIXME: insert proper C++ library support
11553 ld_shlibs_CXX=no
11554 ;;
11555 ghcx*)
11556 # Green Hills C++ Compiler
11557 # FIXME: insert proper C++ library support
11558 ld_shlibs_CXX=no
11559 ;;
11560 *)
11561 # FIXME: insert proper C++ library support
11562 ld_shlibs_CXX=no
11563 ;;
11564 esac
11565 ;;
11566 freebsd[12]*)
11567 # C++ shared libraries reported to be fairly broken before switch to ELF
11568 ld_shlibs_CXX=no
11569 ;;
11570 freebsd-elf*)
11571 archive_cmds_need_lc_CXX=no
11572 ;;
openvcdiffd1845782009-03-20 21:56:15 +000011573 freebsd* | dragonfly*)
openvcdiff311c7142008-08-26 19:29:25 +000011574 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11575 # conventions
11576 ld_shlibs_CXX=yes
11577 ;;
11578 gnu*)
11579 ;;
11580 hpux9*)
11581 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11582 hardcode_libdir_separator_CXX=:
11583 export_dynamic_flag_spec_CXX='${wl}-E'
11584 hardcode_direct_CXX=yes
11585 hardcode_minus_L_CXX=yes # Not in the search PATH,
11586 # but as the default
11587 # location of the library.
11588
11589 case $cc_basename in
11590 CC*)
11591 # FIXME: insert proper C++ library support
11592 ld_shlibs_CXX=no
11593 ;;
11594 aCC*)
11595 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11596 # Commands to make compiler produce verbose output that lists
11597 # what "hidden" libraries, object files and flags are used when
11598 # linking a shared library.
11599 #
11600 # There doesn't appear to be a way to prevent this compiler from
11601 # explicitly linking system object files so we need to strip them
11602 # from the output so that they don't get included in the library
11603 # dependencies.
11604 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11605 ;;
11606 *)
11607 if test "$GXX" = yes; then
11608 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11609 else
11610 # FIXME: insert proper C++ library support
11611 ld_shlibs_CXX=no
11612 fi
11613 ;;
11614 esac
11615 ;;
11616 hpux10*|hpux11*)
11617 if test $with_gnu_ld = no; then
11618 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11619 hardcode_libdir_separator_CXX=:
11620
11621 case $host_cpu in
openvcdiffd1845782009-03-20 21:56:15 +000011622 hppa*64*|ia64*) ;;
openvcdiff311c7142008-08-26 19:29:25 +000011623 *)
11624 export_dynamic_flag_spec_CXX='${wl}-E'
11625 ;;
11626 esac
11627 fi
11628 case $host_cpu in
11629 hppa*64*|ia64*)
11630 hardcode_direct_CXX=no
11631 hardcode_shlibpath_var_CXX=no
11632 ;;
11633 *)
11634 hardcode_direct_CXX=yes
11635 hardcode_minus_L_CXX=yes # Not in the search PATH,
11636 # but as the default
11637 # location of the library.
11638 ;;
11639 esac
11640
11641 case $cc_basename in
11642 CC*)
11643 # FIXME: insert proper C++ library support
11644 ld_shlibs_CXX=no
11645 ;;
11646 aCC*)
11647 case $host_cpu in
11648 hppa*64*)
11649 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11650 ;;
11651 ia64*)
11652 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11653 ;;
11654 *)
11655 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11656 ;;
11657 esac
11658 # Commands to make compiler produce verbose output that lists
11659 # what "hidden" libraries, object files and flags are used when
11660 # linking a shared library.
11661 #
11662 # There doesn't appear to be a way to prevent this compiler from
11663 # explicitly linking system object files so we need to strip them
11664 # from the output so that they don't get included in the library
11665 # dependencies.
11666 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11667 ;;
11668 *)
11669 if test "$GXX" = yes; then
11670 if test $with_gnu_ld = no; then
11671 case $host_cpu in
11672 hppa*64*)
11673 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11674 ;;
11675 ia64*)
11676 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11677 ;;
11678 *)
11679 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11680 ;;
11681 esac
11682 fi
11683 else
11684 # FIXME: insert proper C++ library support
11685 ld_shlibs_CXX=no
11686 fi
11687 ;;
11688 esac
11689 ;;
openvcdiffd1845782009-03-20 21:56:15 +000011690 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000011691 hardcode_direct_CXX=no
11692 hardcode_shlibpath_var_CXX=no
11693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11694 export_dynamic_flag_spec_CXX='${wl}-E'
11695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11696 # Instead, shared libraries are loaded at an image base (0x10000000 by
11697 # default) and relocated if they conflict, which is a slow very memory
11698 # consuming and fragmenting process. To avoid this, we pick a random,
11699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11700 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11701 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11702 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11703 ;;
11704 irix5* | irix6*)
11705 case $cc_basename in
11706 CC*)
11707 # SGI C++
11708 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11709
11710 # Archives containing C++ object files must be created using
11711 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11712 # necessary to make sure instantiated templates are included
11713 # in the archive.
11714 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11715 ;;
11716 *)
11717 if test "$GXX" = yes; then
11718 if test "$with_gnu_ld" = no; then
11719 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
11720 else
11721 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11722 fi
11723 fi
11724 link_all_deplibs_CXX=yes
11725 ;;
11726 esac
11727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11728 hardcode_libdir_separator_CXX=:
11729 ;;
openvcdiffd1845782009-03-20 21:56:15 +000011730 linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000011731 case $cc_basename in
11732 KCC*)
11733 # Kuck and Associates, Inc. (KAI) C++ Compiler
11734
11735 # KCC will only create a shared library if the output file
11736 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11737 # to its proper name (with version) after linking.
11738 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11739 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11740 # Commands to make compiler produce verbose output that lists
11741 # what "hidden" libraries, object files and flags are used when
11742 # linking a shared library.
11743 #
11744 # There doesn't appear to be a way to prevent this compiler from
11745 # explicitly linking system object files so we need to strip them
11746 # from the output so that they don't get included in the library
11747 # dependencies.
11748 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11749
11750 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11752
11753 # Archives containing C++ object files must be created using
11754 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11755 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11756 ;;
11757 icpc*)
11758 # Intel C++
11759 with_gnu_ld=yes
11760 # version 8.0 and above of icpc choke on multiply defined symbols
11761 # if we add $predep_objects and $postdep_objects, however 7.1 and
11762 # earlier do not add the objects themselves.
11763 case `$CC -V 2>&1` in
11764 *"Version 7."*)
11765 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11766 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11767 ;;
11768 *) # Version 8.0 or newer
11769 tmp_idyn=
11770 case $host_cpu in
11771 ia64*) tmp_idyn=' -i_dynamic';;
11772 esac
11773 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11774 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11775 ;;
11776 esac
11777 archive_cmds_need_lc_CXX=no
11778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11779 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11780 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11781 ;;
openvcdiffd1845782009-03-20 21:56:15 +000011782 pgCC* | pgcpp*)
openvcdiff311c7142008-08-26 19:29:25 +000011783 # Portland Group C++ compiler
11784 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11785 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11786
11787 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11789 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11790 ;;
11791 cxx*)
11792 # Compaq C++
11793 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11794 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11795
11796 runpath_var=LD_RUN_PATH
11797 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11798 hardcode_libdir_separator_CXX=:
11799
11800 # Commands to make compiler produce verbose output that lists
11801 # what "hidden" libraries, object files and flags are used when
11802 # linking a shared library.
11803 #
11804 # There doesn't appear to be a way to prevent this compiler from
11805 # explicitly linking system object files so we need to strip them
11806 # from the output so that they don't get included in the library
11807 # dependencies.
11808 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11809 ;;
openvcdiffd1845782009-03-20 21:56:15 +000011810 *)
11811 case `$CC -V 2>&1 | sed 5q` in
11812 *Sun\ C*)
11813 # Sun C++ 5.9
11814 no_undefined_flag_CXX=' -zdefs'
11815 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11816 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11817 hardcode_libdir_flag_spec_CXX='-R$libdir'
11818 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11819
11820 # Not sure whether something based on
11821 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11822 # would be better.
11823 output_verbose_link_cmd='echo'
11824
11825 # Archives containing C++ object files must be created using
11826 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11827 # necessary to make sure instantiated templates are included
11828 # in the archive.
11829 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11830 ;;
11831 esac
11832 ;;
openvcdiff311c7142008-08-26 19:29:25 +000011833 esac
11834 ;;
11835 lynxos*)
11836 # FIXME: insert proper C++ library support
11837 ld_shlibs_CXX=no
11838 ;;
11839 m88k*)
11840 # FIXME: insert proper C++ library support
11841 ld_shlibs_CXX=no
11842 ;;
11843 mvs*)
11844 case $cc_basename in
11845 cxx*)
11846 # FIXME: insert proper C++ library support
11847 ld_shlibs_CXX=no
11848 ;;
11849 *)
11850 # FIXME: insert proper C++ library support
11851 ld_shlibs_CXX=no
11852 ;;
11853 esac
11854 ;;
openvcdiffd1845782009-03-20 21:56:15 +000011855 netbsd* | netbsdelf*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000011856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11857 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11858 wlarc=
11859 hardcode_libdir_flag_spec_CXX='-R$libdir'
11860 hardcode_direct_CXX=yes
11861 hardcode_shlibpath_var_CXX=no
11862 fi
11863 # Workaround some broken pre-1.5 toolchains
11864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11865 ;;
11866 openbsd2*)
11867 # C++ shared libraries are fairly broken
11868 ld_shlibs_CXX=no
11869 ;;
11870 openbsd*)
openvcdiffd1845782009-03-20 21:56:15 +000011871 if test -f /usr/libexec/ld.so; then
11872 hardcode_direct_CXX=yes
11873 hardcode_shlibpath_var_CXX=no
11874 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11876 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11877 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11878 export_dynamic_flag_spec_CXX='${wl}-E'
11879 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11880 fi
11881 output_verbose_link_cmd='echo'
11882 else
11883 ld_shlibs_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000011884 fi
openvcdiff311c7142008-08-26 19:29:25 +000011885 ;;
11886 osf3*)
11887 case $cc_basename in
11888 KCC*)
11889 # Kuck and Associates, Inc. (KAI) C++ Compiler
11890
11891 # KCC will only create a shared library if the output file
11892 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11893 # to its proper name (with version) after linking.
11894 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11895
11896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11897 hardcode_libdir_separator_CXX=:
11898
11899 # Archives containing C++ object files must be created using
11900 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11901 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11902
11903 ;;
11904 RCC*)
11905 # Rational C++ 2.4.1
11906 # FIXME: insert proper C++ library support
11907 ld_shlibs_CXX=no
11908 ;;
11909 cxx*)
11910 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11911 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11912
11913 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11914 hardcode_libdir_separator_CXX=:
11915
11916 # Commands to make compiler produce verbose output that lists
11917 # what "hidden" libraries, object files and flags are used when
11918 # linking a shared library.
11919 #
11920 # There doesn't appear to be a way to prevent this compiler from
11921 # explicitly linking system object files so we need to strip them
11922 # from the output so that they don't get included in the library
11923 # dependencies.
11924 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11925 ;;
11926 *)
11927 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11928 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11929 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11930
11931 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11932 hardcode_libdir_separator_CXX=:
11933
11934 # Commands to make compiler produce verbose output that lists
11935 # what "hidden" libraries, object files and flags are used when
11936 # linking a shared library.
11937 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11938
11939 else
11940 # FIXME: insert proper C++ library support
11941 ld_shlibs_CXX=no
11942 fi
11943 ;;
11944 esac
11945 ;;
11946 osf4* | osf5*)
11947 case $cc_basename in
11948 KCC*)
11949 # Kuck and Associates, Inc. (KAI) C++ Compiler
11950
11951 # KCC will only create a shared library if the output file
11952 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11953 # to its proper name (with version) after linking.
11954 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11955
11956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11957 hardcode_libdir_separator_CXX=:
11958
11959 # Archives containing C++ object files must be created using
11960 # the KAI C++ compiler.
11961 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11962 ;;
11963 RCC*)
11964 # Rational C++ 2.4.1
11965 # FIXME: insert proper C++ library support
11966 ld_shlibs_CXX=no
11967 ;;
11968 cxx*)
11969 allow_undefined_flag_CXX=' -expect_unresolved \*'
11970 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11971 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11972 echo "-hidden">> $lib.exp~
11973 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11974 $rm $lib.exp'
11975
11976 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11977 hardcode_libdir_separator_CXX=:
11978
11979 # Commands to make compiler produce verbose output that lists
11980 # what "hidden" libraries, object files and flags are used when
11981 # linking a shared library.
11982 #
11983 # There doesn't appear to be a way to prevent this compiler from
11984 # explicitly linking system object files so we need to strip them
11985 # from the output so that they don't get included in the library
11986 # dependencies.
11987 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11988 ;;
11989 *)
11990 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11991 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11992 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11993
11994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11995 hardcode_libdir_separator_CXX=:
11996
11997 # Commands to make compiler produce verbose output that lists
11998 # what "hidden" libraries, object files and flags are used when
11999 # linking a shared library.
12000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12001
12002 else
12003 # FIXME: insert proper C++ library support
12004 ld_shlibs_CXX=no
12005 fi
12006 ;;
12007 esac
12008 ;;
12009 psos*)
12010 # FIXME: insert proper C++ library support
12011 ld_shlibs_CXX=no
12012 ;;
12013 sunos4*)
12014 case $cc_basename in
12015 CC*)
12016 # Sun C++ 4.x
12017 # FIXME: insert proper C++ library support
12018 ld_shlibs_CXX=no
12019 ;;
12020 lcc*)
12021 # Lucid
12022 # FIXME: insert proper C++ library support
12023 ld_shlibs_CXX=no
12024 ;;
12025 *)
12026 # FIXME: insert proper C++ library support
12027 ld_shlibs_CXX=no
12028 ;;
12029 esac
12030 ;;
12031 solaris*)
12032 case $cc_basename in
12033 CC*)
12034 # Sun C++ 4.2, 5.x and Centerline C++
12035 archive_cmds_need_lc_CXX=yes
12036 no_undefined_flag_CXX=' -zdefs'
12037 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12038 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12039 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12040
12041 hardcode_libdir_flag_spec_CXX='-R$libdir'
12042 hardcode_shlibpath_var_CXX=no
12043 case $host_os in
12044 solaris2.[0-5] | solaris2.[0-5].*) ;;
12045 *)
openvcdiffd1845782009-03-20 21:56:15 +000012046 # The compiler driver will combine and reorder linker options,
12047 # but understands `-z linker_flag'.
openvcdiff311c7142008-08-26 19:29:25 +000012048 # Supported since Solaris 2.6 (maybe 2.5.1?)
openvcdiffd1845782009-03-20 21:56:15 +000012049 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
openvcdiff311c7142008-08-26 19:29:25 +000012050 ;;
12051 esac
12052 link_all_deplibs_CXX=yes
12053
12054 output_verbose_link_cmd='echo'
12055
12056 # Archives containing C++ object files must be created using
12057 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12058 # necessary to make sure instantiated templates are included
12059 # in the archive.
12060 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12061 ;;
12062 gcx*)
12063 # Green Hills C++ Compiler
12064 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12065
12066 # The C++ compiler must be used to create the archive.
12067 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12068 ;;
12069 *)
12070 # GNU C++ compiler with Solaris linker
12071 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12072 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12073 if $CC --version | grep -v '^2\.7' > /dev/null; then
12074 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12075 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12076 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12077
12078 # Commands to make compiler produce verbose output that lists
12079 # what "hidden" libraries, object files and flags are used when
12080 # linking a shared library.
12081 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12082 else
12083 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12084 # platform.
12085 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12086 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12087 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12088
12089 # Commands to make compiler produce verbose output that lists
12090 # what "hidden" libraries, object files and flags are used when
12091 # linking a shared library.
12092 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12093 fi
12094
12095 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
openvcdiffd1845782009-03-20 21:56:15 +000012096 case $host_os in
12097 solaris2.[0-5] | solaris2.[0-5].*) ;;
12098 *)
12099 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12100 ;;
12101 esac
openvcdiff311c7142008-08-26 19:29:25 +000012102 fi
12103 ;;
12104 esac
12105 ;;
12106 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12107 no_undefined_flag_CXX='${wl}-z,text'
12108 archive_cmds_need_lc_CXX=no
12109 hardcode_shlibpath_var_CXX=no
12110 runpath_var='LD_RUN_PATH'
12111
12112 case $cc_basename in
12113 CC*)
12114 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12115 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12116 ;;
12117 *)
12118 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12119 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12120 ;;
12121 esac
12122 ;;
12123 sysv5* | sco3.2v5* | sco5v6*)
12124 # Note: We can NOT use -z defs as we might desire, because we do not
12125 # link with -lc, and that would cause any symbols used from libc to
12126 # always be unresolved, which means just about no library would
12127 # ever link correctly. If we're not using GNU ld we use -z text
12128 # though, which does catch some bad symbols but isn't as heavy-handed
12129 # as -z defs.
12130 # For security reasons, it is highly recommended that you always
12131 # use absolute paths for naming shared libraries, and exclude the
12132 # DT_RUNPATH tag from executables and libraries. But doing so
12133 # requires that you compile everything twice, which is a pain.
12134 # So that behaviour is only enabled if SCOABSPATH is set to a
12135 # non-empty value in the environment. Most likely only useful for
12136 # creating official distributions of packages.
12137 # This is a hack until libtool officially supports absolute path
12138 # names for shared libraries.
12139 no_undefined_flag_CXX='${wl}-z,text'
12140 allow_undefined_flag_CXX='${wl}-z,nodefs'
12141 archive_cmds_need_lc_CXX=no
12142 hardcode_shlibpath_var_CXX=no
12143 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12144 hardcode_libdir_separator_CXX=':'
12145 link_all_deplibs_CXX=yes
12146 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12147 runpath_var='LD_RUN_PATH'
12148
12149 case $cc_basename in
12150 CC*)
12151 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12152 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12153 ;;
12154 *)
12155 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12156 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12157 ;;
12158 esac
12159 ;;
12160 tandem*)
12161 case $cc_basename in
12162 NCC*)
12163 # NonStop-UX NCC 3.20
12164 # FIXME: insert proper C++ library support
12165 ld_shlibs_CXX=no
12166 ;;
12167 *)
12168 # FIXME: insert proper C++ library support
12169 ld_shlibs_CXX=no
12170 ;;
12171 esac
12172 ;;
12173 vxworks*)
12174 # FIXME: insert proper C++ library support
12175 ld_shlibs_CXX=no
12176 ;;
12177 *)
12178 # FIXME: insert proper C++ library support
12179 ld_shlibs_CXX=no
12180 ;;
12181esac
openvcdiffd1845782009-03-20 21:56:15 +000012182{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12183echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012184test "$ld_shlibs_CXX" = no && can_build_shared=no
12185
12186GCC_CXX="$GXX"
12187LD_CXX="$LD"
12188
openvcdiff311c7142008-08-26 19:29:25 +000012189cat > conftest.$ac_ext <<EOF
12190class Foo
12191{
12192public:
12193 Foo (void) { a = 0; }
12194private:
12195 int a;
12196};
12197EOF
12198
12199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; then
12204 # Parse the compiler output and extract the necessary
12205 # objects, libraries and library flags.
12206
12207 # Sentinel used to keep track of whether or not we are before
12208 # the conftest object file.
12209 pre_test_object_deps_done=no
12210
12211 # The `*' in the case matches for architectures that use `case' in
12212 # $output_verbose_cmd can trigger glob expansion during the loop
12213 # eval without this substitution.
12214 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12215
12216 for p in `eval $output_verbose_link_cmd`; do
12217 case $p in
12218
12219 -L* | -R* | -l*)
12220 # Some compilers place space between "-{L,R}" and the path.
12221 # Remove the space.
12222 if test $p = "-L" \
12223 || test $p = "-R"; then
12224 prev=$p
12225 continue
12226 else
12227 prev=
12228 fi
12229
12230 if test "$pre_test_object_deps_done" = no; then
12231 case $p in
12232 -L* | -R*)
12233 # Internal compiler library paths should come after those
12234 # provided the user. The postdeps already come after the
12235 # user supplied libs so there is no need to process them.
12236 if test -z "$compiler_lib_search_path_CXX"; then
12237 compiler_lib_search_path_CXX="${prev}${p}"
12238 else
12239 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12240 fi
12241 ;;
12242 # The "-l" case would never come before the object being
12243 # linked, so don't bother handling this case.
12244 esac
12245 else
12246 if test -z "$postdeps_CXX"; then
12247 postdeps_CXX="${prev}${p}"
12248 else
12249 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12250 fi
12251 fi
12252 ;;
12253
12254 *.$objext)
12255 # This assumes that the test object file only shows up
12256 # once in the compiler output.
12257 if test "$p" = "conftest.$objext"; then
12258 pre_test_object_deps_done=yes
12259 continue
12260 fi
12261
12262 if test "$pre_test_object_deps_done" = no; then
12263 if test -z "$predep_objects_CXX"; then
12264 predep_objects_CXX="$p"
12265 else
12266 predep_objects_CXX="$predep_objects_CXX $p"
12267 fi
12268 else
12269 if test -z "$postdep_objects_CXX"; then
12270 postdep_objects_CXX="$p"
12271 else
12272 postdep_objects_CXX="$postdep_objects_CXX $p"
12273 fi
12274 fi
12275 ;;
12276
12277 *) ;; # Ignore the rest.
12278
12279 esac
12280 done
12281
12282 # Clean up.
12283 rm -f a.out a.exe
12284else
12285 echo "libtool.m4: error: problem compiling CXX test program"
12286fi
12287
12288$rm -f confest.$objext
12289
openvcdiffd1845782009-03-20 21:56:15 +000012290compiler_lib_search_dirs_CXX=
12291if test -n "$compiler_lib_search_path_CXX"; then
12292 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12293fi
12294
openvcdiff311c7142008-08-26 19:29:25 +000012295# PORTME: override above test on systems where it is broken
12296case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +000012297interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000012298 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12299 # hack all around it, let's just trust "g++" to DTRT.
12300 predep_objects_CXX=
12301 postdep_objects_CXX=
12302 postdeps_CXX=
12303 ;;
12304
openvcdiffd1845782009-03-20 21:56:15 +000012305linux*)
12306 case `$CC -V 2>&1 | sed 5q` in
12307 *Sun\ C*)
12308 # Sun C++ 5.9
12309 #
12310 # The more standards-conforming stlport4 library is
12311 # incompatible with the Cstd library. Avoid specifying
12312 # it if it's in CXXFLAGS. Ignore libCrun as
12313 # -library=stlport4 depends on it.
12314 case " $CXX $CXXFLAGS " in
12315 *" -library=stlport4 "*)
12316 solaris_use_stlport4=yes
12317 ;;
12318 esac
12319 if test "$solaris_use_stlport4" != yes; then
12320 postdeps_CXX='-library=Cstd -library=Crun'
12321 fi
12322 ;;
12323 esac
12324 ;;
12325
openvcdiff311c7142008-08-26 19:29:25 +000012326solaris*)
12327 case $cc_basename in
12328 CC*)
openvcdiffd1845782009-03-20 21:56:15 +000012329 # The more standards-conforming stlport4 library is
12330 # incompatible with the Cstd library. Avoid specifying
12331 # it if it's in CXXFLAGS. Ignore libCrun as
12332 # -library=stlport4 depends on it.
12333 case " $CXX $CXXFLAGS " in
12334 *" -library=stlport4 "*)
12335 solaris_use_stlport4=yes
12336 ;;
12337 esac
12338
openvcdiff311c7142008-08-26 19:29:25 +000012339 # Adding this requires a known-good setup of shared libraries for
12340 # Sun compiler versions before 5.6, else PIC objects from an old
12341 # archive will be linked into the output, leading to subtle bugs.
openvcdiffd1845782009-03-20 21:56:15 +000012342 if test "$solaris_use_stlport4" != yes; then
12343 postdeps_CXX='-library=Cstd -library=Crun'
12344 fi
openvcdiff311c7142008-08-26 19:29:25 +000012345 ;;
12346 esac
12347 ;;
12348esac
12349
openvcdiff311c7142008-08-26 19:29:25 +000012350case " $postdeps_CXX " in
12351*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12352esac
12353
12354lt_prog_compiler_wl_CXX=
12355lt_prog_compiler_pic_CXX=
12356lt_prog_compiler_static_CXX=
12357
openvcdiffd1845782009-03-20 21:56:15 +000012358{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12359echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012360
12361 # C++ specific cases for pic, static, wl, etc.
12362 if test "$GXX" = yes; then
12363 lt_prog_compiler_wl_CXX='-Wl,'
12364 lt_prog_compiler_static_CXX='-static'
12365
12366 case $host_os in
12367 aix*)
12368 # All AIX code is PIC.
12369 if test "$host_cpu" = ia64; then
12370 # AIX 5 now supports IA64 processor
12371 lt_prog_compiler_static_CXX='-Bstatic'
12372 fi
12373 ;;
12374 amigaos*)
12375 # FIXME: we need at least 68020 code to build shared libraries, but
12376 # adding the `-m68020' flag to GCC prevents building anything better,
12377 # like `-m68040'.
12378 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12379 ;;
openvcdiffd1845782009-03-20 21:56:15 +000012380 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
openvcdiff311c7142008-08-26 19:29:25 +000012381 # PIC is the default for these OSes.
12382 ;;
openvcdiffd1845782009-03-20 21:56:15 +000012383 mingw* | cygwin* | os2* | pw32*)
openvcdiff311c7142008-08-26 19:29:25 +000012384 # This hack is so that the source file can tell whether it is being
12385 # built for inclusion in a dll (and should export symbols for example).
openvcdiffd1845782009-03-20 21:56:15 +000012386 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12387 # (--disable-auto-import) libraries
openvcdiff311c7142008-08-26 19:29:25 +000012388 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12389 ;;
12390 darwin* | rhapsody*)
12391 # PIC is the default on this platform
12392 # Common symbols not allowed in MH_DYLIB files
12393 lt_prog_compiler_pic_CXX='-fno-common'
12394 ;;
12395 *djgpp*)
12396 # DJGPP does not support shared libraries at all
12397 lt_prog_compiler_pic_CXX=
12398 ;;
openvcdiffd1845782009-03-20 21:56:15 +000012399 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000012400 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12401 # Instead, we relocate shared libraries at runtime.
12402 ;;
12403 sysv4*MP*)
12404 if test -d /usr/nec; then
12405 lt_prog_compiler_pic_CXX=-Kconform_pic
12406 fi
12407 ;;
12408 hpux*)
12409 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12410 # not for PA HP-UX.
12411 case $host_cpu in
12412 hppa*64*|ia64*)
12413 ;;
12414 *)
12415 lt_prog_compiler_pic_CXX='-fPIC'
12416 ;;
12417 esac
12418 ;;
12419 *)
12420 lt_prog_compiler_pic_CXX='-fPIC'
12421 ;;
12422 esac
12423 else
12424 case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +000012425 aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000012426 # All AIX code is PIC.
12427 if test "$host_cpu" = ia64; then
12428 # AIX 5 now supports IA64 processor
12429 lt_prog_compiler_static_CXX='-Bstatic'
12430 else
12431 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12432 fi
12433 ;;
12434 chorus*)
12435 case $cc_basename in
12436 cxch68*)
12437 # Green Hills C++ Compiler
12438 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12439 ;;
12440 esac
12441 ;;
12442 darwin*)
12443 # PIC is the default on this platform
12444 # Common symbols not allowed in MH_DYLIB files
12445 case $cc_basename in
12446 xlc*)
12447 lt_prog_compiler_pic_CXX='-qnocommon'
12448 lt_prog_compiler_wl_CXX='-Wl,'
12449 ;;
12450 esac
12451 ;;
12452 dgux*)
12453 case $cc_basename in
12454 ec++*)
12455 lt_prog_compiler_pic_CXX='-KPIC'
12456 ;;
12457 ghcx*)
12458 # Green Hills C++ Compiler
12459 lt_prog_compiler_pic_CXX='-pic'
12460 ;;
12461 *)
12462 ;;
12463 esac
12464 ;;
openvcdiffd1845782009-03-20 21:56:15 +000012465 freebsd* | dragonfly*)
openvcdiff311c7142008-08-26 19:29:25 +000012466 # FreeBSD uses GNU C++
12467 ;;
12468 hpux9* | hpux10* | hpux11*)
12469 case $cc_basename in
12470 CC*)
12471 lt_prog_compiler_wl_CXX='-Wl,'
12472 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12473 if test "$host_cpu" != ia64; then
12474 lt_prog_compiler_pic_CXX='+Z'
12475 fi
12476 ;;
12477 aCC*)
12478 lt_prog_compiler_wl_CXX='-Wl,'
12479 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12480 case $host_cpu in
12481 hppa*64*|ia64*)
12482 # +Z the default
12483 ;;
12484 *)
12485 lt_prog_compiler_pic_CXX='+Z'
12486 ;;
12487 esac
12488 ;;
12489 *)
12490 ;;
12491 esac
12492 ;;
12493 interix*)
12494 # This is c89, which is MS Visual C++ (no shared libs)
12495 # Anyone wants to do a port?
12496 ;;
12497 irix5* | irix6* | nonstopux*)
12498 case $cc_basename in
12499 CC*)
12500 lt_prog_compiler_wl_CXX='-Wl,'
12501 lt_prog_compiler_static_CXX='-non_shared'
12502 # CC pic flag -KPIC is the default.
12503 ;;
12504 *)
12505 ;;
12506 esac
12507 ;;
openvcdiffd1845782009-03-20 21:56:15 +000012508 linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000012509 case $cc_basename in
12510 KCC*)
12511 # KAI C++ Compiler
12512 lt_prog_compiler_wl_CXX='--backend -Wl,'
12513 lt_prog_compiler_pic_CXX='-fPIC'
12514 ;;
12515 icpc* | ecpc*)
12516 # Intel C++
12517 lt_prog_compiler_wl_CXX='-Wl,'
12518 lt_prog_compiler_pic_CXX='-KPIC'
12519 lt_prog_compiler_static_CXX='-static'
12520 ;;
openvcdiffd1845782009-03-20 21:56:15 +000012521 pgCC* | pgcpp*)
openvcdiff311c7142008-08-26 19:29:25 +000012522 # Portland Group C++ compiler.
12523 lt_prog_compiler_wl_CXX='-Wl,'
12524 lt_prog_compiler_pic_CXX='-fpic'
12525 lt_prog_compiler_static_CXX='-Bstatic'
12526 ;;
12527 cxx*)
12528 # Compaq C++
12529 # Make sure the PIC flag is empty. It appears that all Alpha
12530 # Linux and Compaq Tru64 Unix objects are PIC.
12531 lt_prog_compiler_pic_CXX=
12532 lt_prog_compiler_static_CXX='-non_shared'
12533 ;;
12534 *)
openvcdiffd1845782009-03-20 21:56:15 +000012535 case `$CC -V 2>&1 | sed 5q` in
12536 *Sun\ C*)
12537 # Sun C++ 5.9
12538 lt_prog_compiler_pic_CXX='-KPIC'
12539 lt_prog_compiler_static_CXX='-Bstatic'
12540 lt_prog_compiler_wl_CXX='-Qoption ld '
12541 ;;
12542 esac
openvcdiff311c7142008-08-26 19:29:25 +000012543 ;;
12544 esac
12545 ;;
12546 lynxos*)
12547 ;;
12548 m88k*)
12549 ;;
12550 mvs*)
12551 case $cc_basename in
12552 cxx*)
12553 lt_prog_compiler_pic_CXX='-W c,exportall'
12554 ;;
12555 *)
12556 ;;
12557 esac
12558 ;;
openvcdiffd1845782009-03-20 21:56:15 +000012559 netbsd* | netbsdelf*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000012560 ;;
12561 osf3* | osf4* | osf5*)
12562 case $cc_basename in
12563 KCC*)
12564 lt_prog_compiler_wl_CXX='--backend -Wl,'
12565 ;;
12566 RCC*)
12567 # Rational C++ 2.4.1
12568 lt_prog_compiler_pic_CXX='-pic'
12569 ;;
12570 cxx*)
12571 # Digital/Compaq C++
12572 lt_prog_compiler_wl_CXX='-Wl,'
12573 # Make sure the PIC flag is empty. It appears that all Alpha
12574 # Linux and Compaq Tru64 Unix objects are PIC.
12575 lt_prog_compiler_pic_CXX=
12576 lt_prog_compiler_static_CXX='-non_shared'
12577 ;;
12578 *)
12579 ;;
12580 esac
12581 ;;
12582 psos*)
12583 ;;
12584 solaris*)
12585 case $cc_basename in
12586 CC*)
12587 # Sun C++ 4.2, 5.x and Centerline C++
12588 lt_prog_compiler_pic_CXX='-KPIC'
12589 lt_prog_compiler_static_CXX='-Bstatic'
12590 lt_prog_compiler_wl_CXX='-Qoption ld '
12591 ;;
12592 gcx*)
12593 # Green Hills C++ Compiler
12594 lt_prog_compiler_pic_CXX='-PIC'
12595 ;;
12596 *)
12597 ;;
12598 esac
12599 ;;
12600 sunos4*)
12601 case $cc_basename in
12602 CC*)
12603 # Sun C++ 4.x
12604 lt_prog_compiler_pic_CXX='-pic'
12605 lt_prog_compiler_static_CXX='-Bstatic'
12606 ;;
12607 lcc*)
12608 # Lucid
12609 lt_prog_compiler_pic_CXX='-pic'
12610 ;;
12611 *)
12612 ;;
12613 esac
12614 ;;
12615 tandem*)
12616 case $cc_basename in
12617 NCC*)
12618 # NonStop-UX NCC 3.20
12619 lt_prog_compiler_pic_CXX='-KPIC'
12620 ;;
12621 *)
12622 ;;
12623 esac
12624 ;;
12625 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12626 case $cc_basename in
12627 CC*)
12628 lt_prog_compiler_wl_CXX='-Wl,'
12629 lt_prog_compiler_pic_CXX='-KPIC'
12630 lt_prog_compiler_static_CXX='-Bstatic'
12631 ;;
12632 esac
12633 ;;
12634 vxworks*)
12635 ;;
12636 *)
12637 lt_prog_compiler_can_build_shared_CXX=no
12638 ;;
12639 esac
12640 fi
12641
openvcdiffd1845782009-03-20 21:56:15 +000012642{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12643echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012644
12645#
12646# Check to make sure the PIC flag actually works.
12647#
12648if test -n "$lt_prog_compiler_pic_CXX"; then
12649
openvcdiffd1845782009-03-20 21:56:15 +000012650{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12651echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12652if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
openvcdiff311c7142008-08-26 19:29:25 +000012653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654else
openvcdiffd1845782009-03-20 21:56:15 +000012655 lt_cv_prog_compiler_pic_works_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000012656 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000012657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000012658 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12659 # Insert the option either (1) after the last *FLAGS variable, or
12660 # (2) before a word containing "conftest.", or (3) at the end.
12661 # Note that $ac_compile itself does not contain backslashes and begins
12662 # with a dollar sign (not a hyphen), so the echo should work correctly.
12663 # The option is referenced via a variable to avoid confusing sed.
12664 lt_compile=`echo "$ac_compile" | $SED \
12665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12667 -e 's:$: $lt_compiler_flag:'`
openvcdiffbaf44ea2009-04-09 19:20:49 +000012668 (eval echo "\"\$as_me:12668: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +000012669 (eval "$lt_compile" 2>conftest.err)
12670 ac_status=$?
12671 cat conftest.err >&5
openvcdiffbaf44ea2009-04-09 19:20:49 +000012672 echo "$as_me:12672: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +000012673 if (exit $ac_status) && test -s "$ac_outfile"; then
12674 # The compiler can only warn and ignore the option if not recognized
12675 # So say no if there are warnings other than the usual output.
12676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +000012679 lt_cv_prog_compiler_pic_works_CXX=yes
openvcdiff311c7142008-08-26 19:29:25 +000012680 fi
12681 fi
12682 $rm conftest*
12683
12684fi
openvcdiffd1845782009-03-20 21:56:15 +000012685{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12686echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012687
openvcdiffd1845782009-03-20 21:56:15 +000012688if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +000012689 case $lt_prog_compiler_pic_CXX in
12690 "" | " "*) ;;
12691 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12692 esac
12693else
12694 lt_prog_compiler_pic_CXX=
12695 lt_prog_compiler_can_build_shared_CXX=no
12696fi
12697
12698fi
12699case $host_os in
12700 # For platforms which do not support PIC, -DPIC is meaningless:
12701 *djgpp*)
12702 lt_prog_compiler_pic_CXX=
12703 ;;
12704 *)
12705 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12706 ;;
12707esac
12708
12709#
12710# Check to make sure the static flag actually works.
12711#
12712wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
openvcdiffd1845782009-03-20 21:56:15 +000012713{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12714echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12715if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
openvcdiff311c7142008-08-26 19:29:25 +000012716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717else
openvcdiffd1845782009-03-20 21:56:15 +000012718 lt_cv_prog_compiler_static_works_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000012719 save_LDFLAGS="$LDFLAGS"
12720 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
openvcdiffd1845782009-03-20 21:56:15 +000012721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000012722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12723 # The linker can only warn and ignore the option if not recognized
12724 # So say no if there are warnings
12725 if test -s conftest.err; then
12726 # Append any errors to the config.log.
12727 cat conftest.err 1>&5
12728 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12730 if diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +000012731 lt_cv_prog_compiler_static_works_CXX=yes
openvcdiff311c7142008-08-26 19:29:25 +000012732 fi
12733 else
openvcdiffd1845782009-03-20 21:56:15 +000012734 lt_cv_prog_compiler_static_works_CXX=yes
openvcdiff311c7142008-08-26 19:29:25 +000012735 fi
12736 fi
openvcdiffd1845782009-03-20 21:56:15 +000012737 $rm -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +000012738 LDFLAGS="$save_LDFLAGS"
12739
12740fi
openvcdiffd1845782009-03-20 21:56:15 +000012741{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12742echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012743
openvcdiffd1845782009-03-20 21:56:15 +000012744if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +000012745 :
12746else
12747 lt_prog_compiler_static_CXX=
12748fi
12749
12750
openvcdiffd1845782009-03-20 21:56:15 +000012751{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12752echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012753if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756 lt_cv_prog_compiler_c_o_CXX=no
12757 $rm -r conftest 2>/dev/null
12758 mkdir conftest
12759 cd conftest
12760 mkdir out
openvcdiffd1845782009-03-20 21:56:15 +000012761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000012762
12763 lt_compiler_flag="-o out/conftest2.$ac_objext"
12764 # Insert the option either (1) after the last *FLAGS variable, or
12765 # (2) before a word containing "conftest.", or (3) at the end.
12766 # Note that $ac_compile itself does not contain backslashes and begins
12767 # with a dollar sign (not a hyphen), so the echo should work correctly.
12768 lt_compile=`echo "$ac_compile" | $SED \
12769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12771 -e 's:$: $lt_compiler_flag:'`
openvcdiffbaf44ea2009-04-09 19:20:49 +000012772 (eval echo "\"\$as_me:12772: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +000012773 (eval "$lt_compile" 2>out/conftest.err)
12774 ac_status=$?
12775 cat out/conftest.err >&5
openvcdiffbaf44ea2009-04-09 19:20:49 +000012776 echo "$as_me:12776: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +000012777 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12778 then
12779 # The compiler can only warn and ignore the option if not recognized
12780 # So say no if there are warnings
12781 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12784 lt_cv_prog_compiler_c_o_CXX=yes
12785 fi
12786 fi
12787 chmod u+w . 2>&5
12788 $rm conftest*
12789 # SGI C++ compiler will create directory out/ii_files/ for
12790 # template instantiation
12791 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12792 $rm out/* && rmdir out
12793 cd ..
12794 rmdir conftest
12795 $rm conftest*
12796
12797fi
openvcdiffd1845782009-03-20 21:56:15 +000012798{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12799echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012800
12801
12802hard_links="nottested"
12803if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12804 # do not overwrite the value of need_locks provided by the user
openvcdiffd1845782009-03-20 21:56:15 +000012805 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12806echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012807 hard_links=yes
12808 $rm conftest*
12809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12810 touch conftest.a
12811 ln conftest.a conftest.b 2>&5 || hard_links=no
12812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
openvcdiffd1845782009-03-20 21:56:15 +000012813 { echo "$as_me:$LINENO: result: $hard_links" >&5
12814echo "${ECHO_T}$hard_links" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012815 if test "$hard_links" = no; then
12816 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12817echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12818 need_locks=warn
12819 fi
12820else
12821 need_locks=no
12822fi
12823
openvcdiffd1845782009-03-20 21:56:15 +000012824{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12825echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012826
12827 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12828 case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +000012829 aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000012830 # If we're using GNU nm, then we don't want the "-C" option.
12831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12833 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12834 else
12835 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12836 fi
12837 ;;
12838 pw32*)
12839 export_symbols_cmds_CXX="$ltdll_cmds"
12840 ;;
12841 cygwin* | mingw*)
openvcdiffd1845782009-03-20 21:56:15 +000012842 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
openvcdiff311c7142008-08-26 19:29:25 +000012843 ;;
openvcdiffd1845782009-03-20 21:56:15 +000012844 linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000012845 link_all_deplibs_CXX=no
12846 ;;
12847 *)
12848 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12849 ;;
12850 esac
openvcdiffd1845782009-03-20 21:56:15 +000012851 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
openvcdiff311c7142008-08-26 19:29:25 +000012852
openvcdiffd1845782009-03-20 21:56:15 +000012853{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12854echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012855test "$ld_shlibs_CXX" = no && can_build_shared=no
12856
12857#
12858# Do we need to explicitly link libc?
12859#
12860case "x$archive_cmds_need_lc_CXX" in
12861x|xyes)
12862 # Assume -lc should be added
12863 archive_cmds_need_lc_CXX=yes
12864
12865 if test "$enable_shared" = yes && test "$GCC" = yes; then
12866 case $archive_cmds_CXX in
12867 *'~'*)
12868 # FIXME: we may have to deal with multi-command sequences.
12869 ;;
12870 '$CC '*)
12871 # Test whether the compiler implicitly links with -lc since on some
12872 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12873 # to ld, don't add -lc before -lgcc.
openvcdiffd1845782009-03-20 21:56:15 +000012874 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12875echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012876 $rm conftest*
openvcdiffd1845782009-03-20 21:56:15 +000012877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000012878
12879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880 (eval $ac_compile) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } 2>conftest.err; then
12884 soname=conftest
12885 lib=conftest
12886 libobjs=conftest.$ac_objext
12887 deplibs=
12888 wl=$lt_prog_compiler_wl_CXX
12889 pic_flag=$lt_prog_compiler_pic_CXX
12890 compiler_flags=-v
12891 linker_flags=-v
12892 verstring=
12893 output_objdir=.
12894 libname=conftest
12895 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12896 allow_undefined_flag_CXX=
12897 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12898 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }
12902 then
12903 archive_cmds_need_lc_CXX=no
12904 else
12905 archive_cmds_need_lc_CXX=yes
12906 fi
12907 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12908 else
12909 cat conftest.err 1>&5
12910 fi
12911 $rm conftest*
openvcdiffd1845782009-03-20 21:56:15 +000012912 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12913echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012914 ;;
12915 esac
12916 fi
12917 ;;
12918esac
12919
openvcdiffd1845782009-03-20 21:56:15 +000012920{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12921echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012922library_names_spec=
12923libname_spec='lib$name'
12924soname_spec=
12925shrext_cmds=".so"
12926postinstall_cmds=
12927postuninstall_cmds=
12928finish_cmds=
12929finish_eval=
12930shlibpath_var=
12931shlibpath_overrides_runpath=unknown
12932version_type=none
12933dynamic_linker="$host_os ld.so"
12934sys_lib_dlsearch_path_spec="/lib /usr/lib"
openvcdiffd1845782009-03-20 21:56:15 +000012935
openvcdiff311c7142008-08-26 19:29:25 +000012936need_lib_prefix=unknown
12937hardcode_into_libs=no
12938
12939# when you set need_version to no, make sure it does not cause -set_version
12940# flags to be left without arguments
12941need_version=unknown
12942
12943case $host_os in
12944aix3*)
12945 version_type=linux
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12947 shlibpath_var=LIBPATH
12948
12949 # AIX 3 has no versioning support, so we append a major version to the name.
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 ;;
12952
openvcdiffd1845782009-03-20 21:56:15 +000012953aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000012954 version_type=linux
12955 need_lib_prefix=no
12956 need_version=no
12957 hardcode_into_libs=yes
12958 if test "$host_cpu" = ia64; then
12959 # AIX 5 supports IA64
12960 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12961 shlibpath_var=LD_LIBRARY_PATH
12962 else
12963 # With GCC up to 2.95.x, collect2 would create an import file
12964 # for dependence libraries. The import file would start with
12965 # the line `#! .'. This would cause the generated library to
12966 # depend on `.', always an invalid library. This was fixed in
12967 # development snapshots of GCC prior to 3.0.
12968 case $host_os in
12969 aix4 | aix4.[01] | aix4.[01].*)
12970 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12971 echo ' yes '
12972 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12973 :
12974 else
12975 can_build_shared=no
12976 fi
12977 ;;
12978 esac
12979 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12980 # soname into executable. Probably we can add versioning support to
12981 # collect2, so additional links can be useful in future.
12982 if test "$aix_use_runtimelinking" = yes; then
12983 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12984 # instead of lib<name>.a to let people know that these are not
12985 # typical AIX shared libraries.
12986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12987 else
12988 # We preserve .a as extension for shared libraries through AIX4.2
12989 # and later when we are not doing run time linking.
12990 library_names_spec='${libname}${release}.a $libname.a'
12991 soname_spec='${libname}${release}${shared_ext}$major'
12992 fi
12993 shlibpath_var=LIBPATH
12994 fi
12995 ;;
12996
12997amigaos*)
12998 library_names_spec='$libname.ixlibrary $libname.a'
12999 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13000 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'
13001 ;;
13002
13003beos*)
13004 library_names_spec='${libname}${shared_ext}'
13005 dynamic_linker="$host_os ld.so"
13006 shlibpath_var=LIBRARY_PATH
13007 ;;
13008
13009bsdi[45]*)
13010 version_type=linux
13011 need_version=no
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013 soname_spec='${libname}${release}${shared_ext}$major'
13014 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13015 shlibpath_var=LD_LIBRARY_PATH
13016 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13017 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13018 # the default ld.so.conf also contains /usr/contrib/lib and
13019 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13020 # libtool to hard-code these into programs
13021 ;;
13022
13023cygwin* | mingw* | pw32*)
13024 version_type=windows
13025 shrext_cmds=".dll"
13026 need_version=no
13027 need_lib_prefix=no
13028
13029 case $GCC,$host_os in
13030 yes,cygwin* | yes,mingw* | yes,pw32*)
13031 library_names_spec='$libname.dll.a'
13032 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13033 postinstall_cmds='base_file=`basename \${file}`~
13034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13035 dldir=$destdir/`dirname \$dlpath`~
13036 test -d \$dldir || mkdir -p \$dldir~
13037 $install_prog $dir/$dlname \$dldir/$dlname~
13038 chmod a+x \$dldir/$dlname'
13039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13040 dlpath=$dir/\$dldll~
13041 $rm \$dlpath'
13042 shlibpath_overrides_runpath=yes
13043
13044 case $host_os in
13045 cygwin*)
13046 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13047 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13048 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13049 ;;
13050 mingw*)
13051 # MinGW DLLs use traditional 'lib' prefix
13052 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13054 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13055 # It is most probably a Windows format PATH printed by
13056 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13057 # path with ; separators, and with drive letters. We can handle the
13058 # drive letters (cygwin fileutils understands them), so leave them,
13059 # especially as we might pass files found there to a mingw objdump,
13060 # which wouldn't understand a cygwinified path. Ahh.
13061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13062 else
13063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13064 fi
13065 ;;
13066 pw32*)
13067 # pw32 DLLs use 'pw' prefix rather than 'lib'
13068 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13069 ;;
13070 esac
13071 ;;
13072
13073 *)
13074 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13075 ;;
13076 esac
13077 dynamic_linker='Win32 ld.exe'
13078 # FIXME: first we should search . and the directory the executable is in
13079 shlibpath_var=PATH
13080 ;;
13081
13082darwin* | rhapsody*)
13083 dynamic_linker="$host_os dyld"
13084 version_type=darwin
13085 need_lib_prefix=no
13086 need_version=no
13087 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13088 soname_spec='${libname}${release}${major}$shared_ext'
13089 shlibpath_overrides_runpath=yes
13090 shlibpath_var=DYLD_LIBRARY_PATH
13091 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
openvcdiffd1845782009-03-20 21:56:15 +000013092
openvcdiff311c7142008-08-26 19:29:25 +000013093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13094 ;;
13095
13096dgux*)
13097 version_type=linux
13098 need_lib_prefix=no
13099 need_version=no
13100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13101 soname_spec='${libname}${release}${shared_ext}$major'
13102 shlibpath_var=LD_LIBRARY_PATH
13103 ;;
13104
13105freebsd1*)
13106 dynamic_linker=no
13107 ;;
13108
openvcdiff311c7142008-08-26 19:29:25 +000013109freebsd* | dragonfly*)
13110 # DragonFly does not have aout. When/if they implement a new
13111 # versioning mechanism, adjust this.
13112 if test -x /usr/bin/objformat; then
13113 objformat=`/usr/bin/objformat`
13114 else
13115 case $host_os in
13116 freebsd[123]*) objformat=aout ;;
13117 *) objformat=elf ;;
13118 esac
13119 fi
13120 version_type=freebsd-$objformat
13121 case $version_type in
13122 freebsd-elf*)
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13124 need_version=no
13125 need_lib_prefix=no
13126 ;;
13127 freebsd-*)
13128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13129 need_version=yes
13130 ;;
13131 esac
13132 shlibpath_var=LD_LIBRARY_PATH
13133 case $host_os in
13134 freebsd2*)
13135 shlibpath_overrides_runpath=yes
13136 ;;
13137 freebsd3.[01]* | freebsdelf3.[01]*)
13138 shlibpath_overrides_runpath=yes
13139 hardcode_into_libs=yes
13140 ;;
13141 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13142 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13143 shlibpath_overrides_runpath=no
13144 hardcode_into_libs=yes
13145 ;;
openvcdiffd1845782009-03-20 21:56:15 +000013146 *) # from 4.6 on, and DragonFly
openvcdiff311c7142008-08-26 19:29:25 +000013147 shlibpath_overrides_runpath=yes
13148 hardcode_into_libs=yes
13149 ;;
13150 esac
13151 ;;
13152
13153gnu*)
13154 version_type=linux
13155 need_lib_prefix=no
13156 need_version=no
13157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13158 soname_spec='${libname}${release}${shared_ext}$major'
13159 shlibpath_var=LD_LIBRARY_PATH
13160 hardcode_into_libs=yes
13161 ;;
13162
13163hpux9* | hpux10* | hpux11*)
13164 # Give a soname corresponding to the major version so that dld.sl refuses to
13165 # link against other versions.
13166 version_type=sunos
13167 need_lib_prefix=no
13168 need_version=no
13169 case $host_cpu in
13170 ia64*)
13171 shrext_cmds='.so'
13172 hardcode_into_libs=yes
13173 dynamic_linker="$host_os dld.so"
13174 shlibpath_var=LD_LIBRARY_PATH
13175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177 soname_spec='${libname}${release}${shared_ext}$major'
13178 if test "X$HPUX_IA64_MODE" = X32; then
13179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13180 else
13181 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13182 fi
13183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13184 ;;
13185 hppa*64*)
13186 shrext_cmds='.sl'
13187 hardcode_into_libs=yes
13188 dynamic_linker="$host_os dld.sl"
13189 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13195 ;;
13196 *)
13197 shrext_cmds='.sl'
13198 dynamic_linker="$host_os dld.sl"
13199 shlibpath_var=SHLIB_PATH
13200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202 soname_spec='${libname}${release}${shared_ext}$major'
13203 ;;
13204 esac
13205 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13206 postinstall_cmds='chmod 555 $lib'
13207 ;;
13208
openvcdiffd1845782009-03-20 21:56:15 +000013209interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000013210 version_type=linux
13211 need_lib_prefix=no
13212 need_version=no
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13214 soname_spec='${libname}${release}${shared_ext}$major'
13215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13216 shlibpath_var=LD_LIBRARY_PATH
13217 shlibpath_overrides_runpath=no
13218 hardcode_into_libs=yes
13219 ;;
13220
13221irix5* | irix6* | nonstopux*)
13222 case $host_os in
13223 nonstopux*) version_type=nonstopux ;;
13224 *)
13225 if test "$lt_cv_prog_gnu_ld" = yes; then
13226 version_type=linux
13227 else
13228 version_type=irix
13229 fi ;;
13230 esac
13231 need_lib_prefix=no
13232 need_version=no
13233 soname_spec='${libname}${release}${shared_ext}$major'
13234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13235 case $host_os in
13236 irix5* | nonstopux*)
13237 libsuff= shlibsuff=
13238 ;;
13239 *)
13240 case $LD in # libtool.m4 will add one of these switches to LD
13241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13242 libsuff= shlibsuff= libmagic=32-bit;;
13243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13244 libsuff=32 shlibsuff=N32 libmagic=N32;;
13245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13247 *) libsuff= shlibsuff= libmagic=never-match;;
13248 esac
13249 ;;
13250 esac
13251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13252 shlibpath_overrides_runpath=no
13253 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13254 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13255 hardcode_into_libs=yes
13256 ;;
13257
13258# No shared lib support for Linux oldld, aout, or coff.
13259linux*oldld* | linux*aout* | linux*coff*)
13260 dynamic_linker=no
13261 ;;
13262
13263# This must be Linux ELF.
openvcdiffd1845782009-03-20 21:56:15 +000013264linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000013265 version_type=linux
13266 need_lib_prefix=no
13267 need_version=no
13268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13269 soname_spec='${libname}${release}${shared_ext}$major'
13270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=no
13273 # This implies no fast_install, which is unacceptable.
13274 # Some rework will be needed to allow for fast_install
13275 # before this can be enabled.
13276 hardcode_into_libs=yes
13277
13278 # Append ld.so.conf contents to the search path
13279 if test -f /etc/ld.so.conf; then
openvcdiffd1845782009-03-20 21:56:15 +000013280 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
openvcdiff311c7142008-08-26 19:29:25 +000013281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13282 fi
13283
13284 # We used to test for /lib/ld.so.1 and disable shared libraries on
13285 # powerpc, because MkLinux only supported shared libraries with the
13286 # GNU dynamic linker. Since this was broken with cross compilers,
13287 # most powerpc-linux boxes support dynamic linking these days and
13288 # people can always --disable-shared, the test was removed, and we
13289 # assume the GNU/Linux dynamic linker is in use.
13290 dynamic_linker='GNU/Linux ld.so'
13291 ;;
13292
13293netbsdelf*-gnu)
13294 version_type=linux
13295 need_lib_prefix=no
13296 need_version=no
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 shlibpath_var=LD_LIBRARY_PATH
13300 shlibpath_overrides_runpath=no
13301 hardcode_into_libs=yes
13302 dynamic_linker='NetBSD ld.elf_so'
13303 ;;
13304
openvcdiff311c7142008-08-26 19:29:25 +000013305netbsd*)
13306 version_type=sunos
13307 need_lib_prefix=no
13308 need_version=no
13309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13312 dynamic_linker='NetBSD (a.out) ld.so'
13313 else
13314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13315 soname_spec='${libname}${release}${shared_ext}$major'
13316 dynamic_linker='NetBSD ld.elf_so'
13317 fi
13318 shlibpath_var=LD_LIBRARY_PATH
13319 shlibpath_overrides_runpath=yes
13320 hardcode_into_libs=yes
13321 ;;
13322
13323newsos6)
13324 version_type=linux
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13326 shlibpath_var=LD_LIBRARY_PATH
13327 shlibpath_overrides_runpath=yes
13328 ;;
13329
13330nto-qnx*)
13331 version_type=linux
13332 need_lib_prefix=no
13333 need_version=no
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335 soname_spec='${libname}${release}${shared_ext}$major'
13336 shlibpath_var=LD_LIBRARY_PATH
13337 shlibpath_overrides_runpath=yes
13338 ;;
13339
13340openbsd*)
13341 version_type=sunos
13342 sys_lib_dlsearch_path_spec="/usr/lib"
13343 need_lib_prefix=no
13344 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13345 case $host_os in
13346 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13347 *) need_version=no ;;
13348 esac
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13351 shlibpath_var=LD_LIBRARY_PATH
13352 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13353 case $host_os in
13354 openbsd2.[89] | openbsd2.[89].*)
13355 shlibpath_overrides_runpath=no
13356 ;;
13357 *)
13358 shlibpath_overrides_runpath=yes
13359 ;;
13360 esac
13361 else
13362 shlibpath_overrides_runpath=yes
13363 fi
13364 ;;
13365
13366os2*)
13367 libname_spec='$name'
13368 shrext_cmds=".dll"
13369 need_lib_prefix=no
13370 library_names_spec='$libname${shared_ext} $libname.a'
13371 dynamic_linker='OS/2 ld.exe'
13372 shlibpath_var=LIBPATH
13373 ;;
13374
13375osf3* | osf4* | osf5*)
13376 version_type=osf
13377 need_lib_prefix=no
13378 need_version=no
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13383 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13384 ;;
13385
openvcdiffd1845782009-03-20 21:56:15 +000013386rdos*)
13387 dynamic_linker=no
13388 ;;
13389
openvcdiff311c7142008-08-26 19:29:25 +000013390solaris*)
13391 version_type=linux
13392 need_lib_prefix=no
13393 need_version=no
13394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13395 soname_spec='${libname}${release}${shared_ext}$major'
13396 shlibpath_var=LD_LIBRARY_PATH
13397 shlibpath_overrides_runpath=yes
13398 hardcode_into_libs=yes
13399 # ldd complains unless libraries are executable
13400 postinstall_cmds='chmod +x $lib'
13401 ;;
13402
13403sunos4*)
13404 version_type=sunos
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13407 shlibpath_var=LD_LIBRARY_PATH
13408 shlibpath_overrides_runpath=yes
13409 if test "$with_gnu_ld" = yes; then
13410 need_lib_prefix=no
13411 fi
13412 need_version=yes
13413 ;;
13414
13415sysv4 | sysv4.3*)
13416 version_type=linux
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418 soname_spec='${libname}${release}${shared_ext}$major'
13419 shlibpath_var=LD_LIBRARY_PATH
13420 case $host_vendor in
13421 sni)
13422 shlibpath_overrides_runpath=no
13423 need_lib_prefix=no
13424 export_dynamic_flag_spec='${wl}-Blargedynsym'
13425 runpath_var=LD_RUN_PATH
13426 ;;
13427 siemens)
13428 need_lib_prefix=no
13429 ;;
13430 motorola)
13431 need_lib_prefix=no
13432 need_version=no
13433 shlibpath_overrides_runpath=no
13434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13435 ;;
13436 esac
13437 ;;
13438
13439sysv4*MP*)
13440 if test -d /usr/nec ;then
13441 version_type=linux
13442 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13443 soname_spec='$libname${shared_ext}.$major'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 fi
13446 ;;
13447
13448sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13449 version_type=freebsd-elf
13450 need_lib_prefix=no
13451 need_version=no
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13453 soname_spec='${libname}${release}${shared_ext}$major'
13454 shlibpath_var=LD_LIBRARY_PATH
13455 hardcode_into_libs=yes
13456 if test "$with_gnu_ld" = yes; then
13457 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13458 shlibpath_overrides_runpath=no
13459 else
13460 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13461 shlibpath_overrides_runpath=yes
13462 case $host_os in
13463 sco3.2v5*)
13464 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13465 ;;
13466 esac
13467 fi
13468 sys_lib_dlsearch_path_spec='/usr/lib'
13469 ;;
13470
13471uts4*)
13472 version_type=linux
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474 soname_spec='${libname}${release}${shared_ext}$major'
13475 shlibpath_var=LD_LIBRARY_PATH
13476 ;;
13477
13478*)
13479 dynamic_linker=no
13480 ;;
13481esac
openvcdiffd1845782009-03-20 21:56:15 +000013482{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13483echo "${ECHO_T}$dynamic_linker" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000013484test "$dynamic_linker" = no && can_build_shared=no
13485
openvcdiffd1845782009-03-20 21:56:15 +000013486if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13488else
13489 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13490fi
13491
13492sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13493if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495else
13496 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13497fi
13498
13499sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13500
openvcdiff311c7142008-08-26 19:29:25 +000013501variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13502if test "$GCC" = yes; then
13503 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13504fi
13505
openvcdiffd1845782009-03-20 21:56:15 +000013506{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13507echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000013508hardcode_action_CXX=
13509if test -n "$hardcode_libdir_flag_spec_CXX" || \
13510 test -n "$runpath_var_CXX" || \
13511 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13512
13513 # We can hardcode non-existant directories.
13514 if test "$hardcode_direct_CXX" != no &&
13515 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13516 # have to relink, otherwise we might link with an installed library
13517 # when we should be linking with a yet-to-be-installed one
13518 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13519 test "$hardcode_minus_L_CXX" != no; then
13520 # Linking always hardcodes the temporary library directory.
13521 hardcode_action_CXX=relink
13522 else
13523 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13524 hardcode_action_CXX=immediate
13525 fi
13526else
13527 # We cannot hardcode anything, or else we can only hardcode existing
13528 # directories.
13529 hardcode_action_CXX=unsupported
13530fi
openvcdiffd1845782009-03-20 21:56:15 +000013531{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13532echo "${ECHO_T}$hardcode_action_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000013533
13534if test "$hardcode_action_CXX" = relink; then
13535 # Fast installation is not supported
13536 enable_fast_install=no
13537elif test "$shlibpath_overrides_runpath" = yes ||
13538 test "$enable_shared" = no; then
13539 # Fast installation is not necessary
13540 enable_fast_install=needless
13541fi
13542
13543
13544# The else clause should only fire when bootstrapping the
13545# libtool distribution, otherwise you forgot to ship ltmain.sh
13546# with your package, and you will get complaints that there are
13547# no rules to generate ltmain.sh.
13548if test -f "$ltmain"; then
13549 # See if we are running on zsh, and set the options which allow our commands through
13550 # without removal of \ escapes.
13551 if test -n "${ZSH_VERSION+set}" ; then
13552 setopt NO_GLOB_SUBST
13553 fi
13554 # Now quote all the things that may contain metacharacters while being
13555 # careful not to overquote the AC_SUBSTed values. We take copies of the
13556 # variables and quote the copies for generation of the libtool script.
13557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13558 SED SHELL STRIP \
13559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13561 deplibs_check_method reload_flag reload_cmds need_locks \
13562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13563 lt_cv_sys_global_symbol_to_c_name_address \
13564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13565 old_postinstall_cmds old_postuninstall_cmds \
13566 compiler_CXX \
13567 CC_CXX \
13568 LD_CXX \
13569 lt_prog_compiler_wl_CXX \
13570 lt_prog_compiler_pic_CXX \
13571 lt_prog_compiler_static_CXX \
13572 lt_prog_compiler_no_builtin_flag_CXX \
13573 export_dynamic_flag_spec_CXX \
13574 thread_safe_flag_spec_CXX \
13575 whole_archive_flag_spec_CXX \
13576 enable_shared_with_static_runtimes_CXX \
13577 old_archive_cmds_CXX \
13578 old_archive_from_new_cmds_CXX \
13579 predep_objects_CXX \
13580 postdep_objects_CXX \
13581 predeps_CXX \
13582 postdeps_CXX \
13583 compiler_lib_search_path_CXX \
openvcdiffd1845782009-03-20 21:56:15 +000013584 compiler_lib_search_dirs_CXX \
openvcdiff311c7142008-08-26 19:29:25 +000013585 archive_cmds_CXX \
13586 archive_expsym_cmds_CXX \
13587 postinstall_cmds_CXX \
13588 postuninstall_cmds_CXX \
13589 old_archive_from_expsyms_cmds_CXX \
13590 allow_undefined_flag_CXX \
13591 no_undefined_flag_CXX \
13592 export_symbols_cmds_CXX \
13593 hardcode_libdir_flag_spec_CXX \
13594 hardcode_libdir_flag_spec_ld_CXX \
13595 hardcode_libdir_separator_CXX \
13596 hardcode_automatic_CXX \
13597 module_cmds_CXX \
13598 module_expsym_cmds_CXX \
13599 lt_cv_prog_compiler_c_o_CXX \
openvcdiffd1845782009-03-20 21:56:15 +000013600 fix_srcfile_path_CXX \
openvcdiff311c7142008-08-26 19:29:25 +000013601 exclude_expsyms_CXX \
13602 include_expsyms_CXX; do
13603
13604 case $var in
13605 old_archive_cmds_CXX | \
13606 old_archive_from_new_cmds_CXX | \
13607 archive_cmds_CXX | \
13608 archive_expsym_cmds_CXX | \
13609 module_cmds_CXX | \
13610 module_expsym_cmds_CXX | \
13611 old_archive_from_expsyms_cmds_CXX | \
13612 export_symbols_cmds_CXX | \
13613 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13614 postinstall_cmds | postuninstall_cmds | \
13615 old_postinstall_cmds | old_postuninstall_cmds | \
13616 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13617 # Double-quote double-evaled strings.
13618 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13619 ;;
13620 *)
13621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13622 ;;
13623 esac
13624 done
13625
13626 case $lt_echo in
13627 *'\$0 --fallback-echo"')
13628 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13629 ;;
13630 esac
13631
13632cfgfile="$ofile"
13633
13634 cat <<__EOF__ >> "$cfgfile"
13635# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13636
13637# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13638
13639# Shell to use when invoking shell scripts.
13640SHELL=$lt_SHELL
13641
13642# Whether or not to build shared libraries.
13643build_libtool_libs=$enable_shared
13644
13645# Whether or not to build static libraries.
13646build_old_libs=$enable_static
13647
13648# Whether or not to add -lc for building shared libraries.
13649build_libtool_need_lc=$archive_cmds_need_lc_CXX
13650
13651# Whether or not to disallow shared libs when runtime libs are static
13652allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13653
13654# Whether or not to optimize for fast installation.
13655fast_install=$enable_fast_install
13656
13657# The host system.
13658host_alias=$host_alias
13659host=$host
13660host_os=$host_os
13661
13662# The build system.
13663build_alias=$build_alias
13664build=$build
13665build_os=$build_os
13666
13667# An echo program that does not interpret backslashes.
13668echo=$lt_echo
13669
13670# The archiver.
13671AR=$lt_AR
13672AR_FLAGS=$lt_AR_FLAGS
13673
13674# A C compiler.
13675LTCC=$lt_LTCC
13676
13677# LTCC compiler flags.
13678LTCFLAGS=$lt_LTCFLAGS
13679
13680# A language-specific compiler.
13681CC=$lt_compiler_CXX
13682
13683# Is the compiler the GNU C compiler?
13684with_gcc=$GCC_CXX
13685
13686# An ERE matcher.
13687EGREP=$lt_EGREP
13688
13689# The linker used to build libraries.
13690LD=$lt_LD_CXX
13691
13692# Whether we need hard or soft links.
13693LN_S=$lt_LN_S
13694
13695# A BSD-compatible nm program.
13696NM=$lt_NM
13697
13698# A symbol stripping program
13699STRIP=$lt_STRIP
13700
13701# Used to examine libraries when file_magic_cmd begins "file"
13702MAGIC_CMD=$MAGIC_CMD
13703
13704# Used on cygwin: DLL creation program.
13705DLLTOOL="$DLLTOOL"
13706
13707# Used on cygwin: object dumper.
13708OBJDUMP="$OBJDUMP"
13709
13710# Used on cygwin: assembler.
13711AS="$AS"
13712
13713# The name of the directory that contains temporary libtool files.
13714objdir=$objdir
13715
13716# How to create reloadable object files.
13717reload_flag=$lt_reload_flag
13718reload_cmds=$lt_reload_cmds
13719
13720# How to pass a linker flag through the compiler.
13721wl=$lt_lt_prog_compiler_wl_CXX
13722
13723# Object file suffix (normally "o").
13724objext="$ac_objext"
13725
13726# Old archive suffix (normally "a").
13727libext="$libext"
13728
13729# Shared library suffix (normally ".so").
13730shrext_cmds='$shrext_cmds'
13731
13732# Executable file suffix (normally "").
13733exeext="$exeext"
13734
13735# Additional compiler flags for building library objects.
13736pic_flag=$lt_lt_prog_compiler_pic_CXX
13737pic_mode=$pic_mode
13738
13739# What is the maximum length of a command?
13740max_cmd_len=$lt_cv_sys_max_cmd_len
13741
13742# Does compiler simultaneously support -c and -o options?
13743compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13744
13745# Must we lock files when doing compilation?
13746need_locks=$lt_need_locks
13747
13748# Do we need the lib prefix for modules?
13749need_lib_prefix=$need_lib_prefix
13750
13751# Do we need a version for libraries?
13752need_version=$need_version
13753
13754# Whether dlopen is supported.
13755dlopen_support=$enable_dlopen
13756
13757# Whether dlopen of programs is supported.
13758dlopen_self=$enable_dlopen_self
13759
13760# Whether dlopen of statically linked programs is supported.
13761dlopen_self_static=$enable_dlopen_self_static
13762
13763# Compiler flag to prevent dynamic linking.
13764link_static_flag=$lt_lt_prog_compiler_static_CXX
13765
13766# Compiler flag to turn off builtin functions.
13767no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13768
13769# Compiler flag to allow reflexive dlopens.
13770export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13771
13772# Compiler flag to generate shared objects directly from archives.
13773whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13774
13775# Compiler flag to generate thread-safe objects.
13776thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13777
13778# Library versioning type.
13779version_type=$version_type
13780
13781# Format of library name prefix.
13782libname_spec=$lt_libname_spec
13783
13784# List of archive names. First name is the real one, the rest are links.
13785# The last name is the one that the linker finds with -lNAME.
13786library_names_spec=$lt_library_names_spec
13787
13788# The coded name of the library, if different from the real name.
13789soname_spec=$lt_soname_spec
13790
13791# Commands used to build and install an old-style archive.
13792RANLIB=$lt_RANLIB
13793old_archive_cmds=$lt_old_archive_cmds_CXX
13794old_postinstall_cmds=$lt_old_postinstall_cmds
13795old_postuninstall_cmds=$lt_old_postuninstall_cmds
13796
13797# Create an old-style archive from a shared archive.
13798old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13799
13800# Create a temporary old-style archive to link instead of a shared archive.
13801old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13802
13803# Commands used to build and install a shared archive.
13804archive_cmds=$lt_archive_cmds_CXX
13805archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13806postinstall_cmds=$lt_postinstall_cmds
13807postuninstall_cmds=$lt_postuninstall_cmds
13808
13809# Commands used to build a loadable module (assumed same as above if empty)
13810module_cmds=$lt_module_cmds_CXX
13811module_expsym_cmds=$lt_module_expsym_cmds_CXX
13812
13813# Commands to strip libraries.
13814old_striplib=$lt_old_striplib
13815striplib=$lt_striplib
13816
13817# Dependencies to place before the objects being linked to create a
13818# shared library.
13819predep_objects=$lt_predep_objects_CXX
13820
13821# Dependencies to place after the objects being linked to create a
13822# shared library.
13823postdep_objects=$lt_postdep_objects_CXX
13824
13825# Dependencies to place before the objects being linked to create a
13826# shared library.
13827predeps=$lt_predeps_CXX
13828
13829# Dependencies to place after the objects being linked to create a
13830# shared library.
13831postdeps=$lt_postdeps_CXX
13832
openvcdiffd1845782009-03-20 21:56:15 +000013833# The directories searched by this compiler when creating a shared
13834# library
13835compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13836
openvcdiff311c7142008-08-26 19:29:25 +000013837# The library search path used internally by the compiler when linking
13838# a shared library.
13839compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13840
13841# Method to check whether dependent libraries are shared objects.
13842deplibs_check_method=$lt_deplibs_check_method
13843
13844# Command to use when deplibs_check_method == file_magic.
13845file_magic_cmd=$lt_file_magic_cmd
13846
13847# Flag that allows shared libraries with undefined symbols to be built.
13848allow_undefined_flag=$lt_allow_undefined_flag_CXX
13849
13850# Flag that forces no undefined symbols.
13851no_undefined_flag=$lt_no_undefined_flag_CXX
13852
13853# Commands used to finish a libtool library installation in a directory.
13854finish_cmds=$lt_finish_cmds
13855
13856# Same as above, but a single script fragment to be evaled but not shown.
13857finish_eval=$lt_finish_eval
13858
13859# Take the output of nm and produce a listing of raw symbols and C names.
13860global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13861
13862# Transform the output of nm in a proper C declaration
13863global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13864
13865# Transform the output of nm in a C name address pair
13866global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13867
13868# This is the shared library runtime path variable.
13869runpath_var=$runpath_var
13870
13871# This is the shared library path variable.
13872shlibpath_var=$shlibpath_var
13873
13874# Is shlibpath searched before the hard-coded library search path?
13875shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13876
13877# How to hardcode a shared library path into an executable.
13878hardcode_action=$hardcode_action_CXX
13879
13880# Whether we should hardcode library paths into libraries.
13881hardcode_into_libs=$hardcode_into_libs
13882
13883# Flag to hardcode \$libdir into a binary during linking.
13884# This must work even if \$libdir does not exist.
13885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13886
13887# If ld is used when linking, flag to hardcode \$libdir into
13888# a binary during linking. This must work even if \$libdir does
13889# not exist.
13890hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13891
13892# Whether we need a single -rpath flag with a separated argument.
13893hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13894
13895# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13896# resulting binary.
13897hardcode_direct=$hardcode_direct_CXX
13898
13899# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13900# resulting binary.
13901hardcode_minus_L=$hardcode_minus_L_CXX
13902
13903# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13904# the resulting binary.
13905hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13906
13907# Set to yes if building a shared library automatically hardcodes DIR into the library
13908# and all subsequent libraries and executables linked against it.
13909hardcode_automatic=$hardcode_automatic_CXX
13910
13911# Variables whose values should be saved in libtool wrapper scripts and
13912# restored at relink time.
13913variables_saved_for_relink="$variables_saved_for_relink"
13914
13915# Whether libtool must link a program against all its dependency libraries.
13916link_all_deplibs=$link_all_deplibs_CXX
13917
13918# Compile-time system search path for libraries
13919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13920
13921# Run-time system search path for libraries
13922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13923
13924# Fix the shell variable \$srcfile for the compiler.
openvcdiffd1845782009-03-20 21:56:15 +000013925fix_srcfile_path=$lt_fix_srcfile_path
openvcdiff311c7142008-08-26 19:29:25 +000013926
13927# Set to yes if exported symbols are required.
13928always_export_symbols=$always_export_symbols_CXX
13929
13930# The commands to list exported symbols.
13931export_symbols_cmds=$lt_export_symbols_cmds_CXX
13932
13933# The commands to extract the exported symbol list from a shared archive.
13934extract_expsyms_cmds=$lt_extract_expsyms_cmds
13935
13936# Symbols that should not be listed in the preloaded symbols.
13937exclude_expsyms=$lt_exclude_expsyms_CXX
13938
13939# Symbols that must always be exported.
13940include_expsyms=$lt_include_expsyms_CXX
13941
13942# ### END LIBTOOL TAG CONFIG: $tagname
13943
13944__EOF__
13945
13946
13947else
13948 # If there is no Makefile yet, we rely on a make rule to execute
13949 # `config.status --recheck' to rerun these tests and create the
13950 # libtool script then.
13951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13952 if test -f "$ltmain_in"; then
13953 test -f Makefile && make "$ltmain"
13954 fi
13955fi
13956
13957
13958ac_ext=c
13959ac_cpp='$CPP $CPPFLAGS'
13960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13962ac_compiler_gnu=$ac_cv_c_compiler_gnu
13963
13964CC=$lt_save_CC
13965LDCXX=$LD
13966LD=$lt_save_LD
13967GCC=$lt_save_GCC
13968with_gnu_ldcxx=$with_gnu_ld
13969with_gnu_ld=$lt_save_with_gnu_ld
13970lt_cv_path_LDCXX=$lt_cv_path_LD
13971lt_cv_path_LD=$lt_save_path_LD
13972lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13973lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13974
13975 else
13976 tagname=""
13977 fi
13978 ;;
13979
13980 F77)
13981 if test -n "$F77" && test "X$F77" != "Xno"; then
13982
13983ac_ext=f
13984ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13985ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13987
13988
13989archive_cmds_need_lc_F77=no
13990allow_undefined_flag_F77=
13991always_export_symbols_F77=no
13992archive_expsym_cmds_F77=
13993export_dynamic_flag_spec_F77=
13994hardcode_direct_F77=no
13995hardcode_libdir_flag_spec_F77=
13996hardcode_libdir_flag_spec_ld_F77=
13997hardcode_libdir_separator_F77=
13998hardcode_minus_L_F77=no
13999hardcode_automatic_F77=no
14000module_cmds_F77=
14001module_expsym_cmds_F77=
14002link_all_deplibs_F77=unknown
14003old_archive_cmds_F77=$old_archive_cmds
14004no_undefined_flag_F77=
14005whole_archive_flag_spec_F77=
14006enable_shared_with_static_runtimes_F77=no
14007
14008# Source file extension for f77 test sources.
14009ac_ext=f
14010
14011# Object file extension for compiled f77 test sources.
14012objext=o
14013objext_F77=$objext
14014
14015# Code to be used in simple compile tests
openvcdiffd1845782009-03-20 21:56:15 +000014016lt_simple_compile_test_code="\
14017 subroutine t
14018 return
14019 end
14020"
openvcdiff311c7142008-08-26 19:29:25 +000014021
14022# Code to be used in simple link tests
openvcdiffd1845782009-03-20 21:56:15 +000014023lt_simple_link_test_code="\
14024 program t
14025 end
14026"
openvcdiff311c7142008-08-26 19:29:25 +000014027
14028# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14029
14030# If no C compiler was specified, use CC.
14031LTCC=${LTCC-"$CC"}
14032
14033# If no C compiler flags were specified, use CFLAGS.
14034LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14035
14036# Allow CC to be a program name with arguments.
14037compiler=$CC
14038
14039
14040# save warnings/boilerplate of simple test code
14041ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000014042echo "$lt_simple_compile_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000014043eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14044_lt_compiler_boilerplate=`cat conftest.err`
14045$rm conftest*
14046
14047ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000014048echo "$lt_simple_link_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000014049eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14050_lt_linker_boilerplate=`cat conftest.err`
openvcdiffd1845782009-03-20 21:56:15 +000014051$rm -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +000014052
14053
14054# Allow CC to be a program name with arguments.
14055lt_save_CC="$CC"
14056CC=${F77-"f77"}
14057compiler=$CC
14058compiler_F77=$CC
14059for cc_temp in $compiler""; do
14060 case $cc_temp in
14061 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14062 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14063 \-*) ;;
14064 *) break;;
14065 esac
14066done
14067cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14068
14069
openvcdiffd1845782009-03-20 21:56:15 +000014070{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14071echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14072{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14073echo "${ECHO_T}$can_build_shared" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014074
openvcdiffd1845782009-03-20 21:56:15 +000014075{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14076echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014077test "$can_build_shared" = "no" && enable_shared=no
14078
14079# On AIX, shared libraries and static libraries use the same namespace, and
14080# are all built from PIC.
14081case $host_os in
14082aix3*)
14083 test "$enable_shared" = yes && enable_static=no
14084 if test -n "$RANLIB"; then
14085 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14086 postinstall_cmds='$RANLIB $lib'
14087 fi
14088 ;;
openvcdiffd1845782009-03-20 21:56:15 +000014089aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000014090 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14091 test "$enable_shared" = yes && enable_static=no
14092 fi
14093 ;;
14094esac
openvcdiffd1845782009-03-20 21:56:15 +000014095{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14096echo "${ECHO_T}$enable_shared" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014097
openvcdiffd1845782009-03-20 21:56:15 +000014098{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14099echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014100# Make sure either enable_shared or enable_static is yes.
14101test "$enable_shared" = yes || enable_static=yes
openvcdiffd1845782009-03-20 21:56:15 +000014102{ echo "$as_me:$LINENO: result: $enable_static" >&5
14103echo "${ECHO_T}$enable_static" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014104
14105GCC_F77="$G77"
14106LD_F77="$LD"
14107
14108lt_prog_compiler_wl_F77=
14109lt_prog_compiler_pic_F77=
14110lt_prog_compiler_static_F77=
14111
openvcdiffd1845782009-03-20 21:56:15 +000014112{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14113echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014114
14115 if test "$GCC" = yes; then
14116 lt_prog_compiler_wl_F77='-Wl,'
14117 lt_prog_compiler_static_F77='-static'
14118
14119 case $host_os in
14120 aix*)
14121 # All AIX code is PIC.
14122 if test "$host_cpu" = ia64; then
14123 # AIX 5 now supports IA64 processor
14124 lt_prog_compiler_static_F77='-Bstatic'
14125 fi
14126 ;;
14127
14128 amigaos*)
14129 # FIXME: we need at least 68020 code to build shared libraries, but
14130 # adding the `-m68020' flag to GCC prevents building anything better,
14131 # like `-m68040'.
14132 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14133 ;;
14134
openvcdiffd1845782009-03-20 21:56:15 +000014135 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
openvcdiff311c7142008-08-26 19:29:25 +000014136 # PIC is the default for these OSes.
14137 ;;
14138
openvcdiffd1845782009-03-20 21:56:15 +000014139 mingw* | cygwin* | pw32* | os2*)
openvcdiff311c7142008-08-26 19:29:25 +000014140 # This hack is so that the source file can tell whether it is being
14141 # built for inclusion in a dll (and should export symbols for example).
openvcdiffd1845782009-03-20 21:56:15 +000014142 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14143 # (--disable-auto-import) libraries
openvcdiff311c7142008-08-26 19:29:25 +000014144 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14145 ;;
14146
14147 darwin* | rhapsody*)
14148 # PIC is the default on this platform
14149 # Common symbols not allowed in MH_DYLIB files
14150 lt_prog_compiler_pic_F77='-fno-common'
14151 ;;
14152
openvcdiffd1845782009-03-20 21:56:15 +000014153 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000014154 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14155 # Instead, we relocate shared libraries at runtime.
14156 ;;
14157
14158 msdosdjgpp*)
14159 # Just because we use GCC doesn't mean we suddenly get shared libraries
14160 # on systems that don't support them.
14161 lt_prog_compiler_can_build_shared_F77=no
14162 enable_shared=no
14163 ;;
14164
14165 sysv4*MP*)
14166 if test -d /usr/nec; then
14167 lt_prog_compiler_pic_F77=-Kconform_pic
14168 fi
14169 ;;
14170
14171 hpux*)
14172 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14173 # not for PA HP-UX.
14174 case $host_cpu in
14175 hppa*64*|ia64*)
14176 # +Z the default
14177 ;;
14178 *)
14179 lt_prog_compiler_pic_F77='-fPIC'
14180 ;;
14181 esac
14182 ;;
14183
14184 *)
14185 lt_prog_compiler_pic_F77='-fPIC'
14186 ;;
14187 esac
14188 else
14189 # PORTME Check for flag to pass linker flags through the system compiler.
14190 case $host_os in
14191 aix*)
14192 lt_prog_compiler_wl_F77='-Wl,'
14193 if test "$host_cpu" = ia64; then
14194 # AIX 5 now supports IA64 processor
14195 lt_prog_compiler_static_F77='-Bstatic'
14196 else
14197 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14198 fi
14199 ;;
14200 darwin*)
14201 # PIC is the default on this platform
14202 # Common symbols not allowed in MH_DYLIB files
14203 case $cc_basename in
14204 xlc*)
14205 lt_prog_compiler_pic_F77='-qnocommon'
14206 lt_prog_compiler_wl_F77='-Wl,'
14207 ;;
14208 esac
14209 ;;
14210
openvcdiffd1845782009-03-20 21:56:15 +000014211 mingw* | cygwin* | pw32* | os2*)
openvcdiff311c7142008-08-26 19:29:25 +000014212 # This hack is so that the source file can tell whether it is being
14213 # built for inclusion in a dll (and should export symbols for example).
14214 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14215 ;;
14216
14217 hpux9* | hpux10* | hpux11*)
14218 lt_prog_compiler_wl_F77='-Wl,'
14219 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14220 # not for PA HP-UX.
14221 case $host_cpu in
14222 hppa*64*|ia64*)
14223 # +Z the default
14224 ;;
14225 *)
14226 lt_prog_compiler_pic_F77='+Z'
14227 ;;
14228 esac
14229 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14230 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14231 ;;
14232
14233 irix5* | irix6* | nonstopux*)
14234 lt_prog_compiler_wl_F77='-Wl,'
14235 # PIC (with -KPIC) is the default.
14236 lt_prog_compiler_static_F77='-non_shared'
14237 ;;
14238
14239 newsos6)
14240 lt_prog_compiler_pic_F77='-KPIC'
14241 lt_prog_compiler_static_F77='-Bstatic'
14242 ;;
14243
openvcdiffd1845782009-03-20 21:56:15 +000014244 linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000014245 case $cc_basename in
14246 icc* | ecc*)
14247 lt_prog_compiler_wl_F77='-Wl,'
14248 lt_prog_compiler_pic_F77='-KPIC'
14249 lt_prog_compiler_static_F77='-static'
14250 ;;
14251 pgcc* | pgf77* | pgf90* | pgf95*)
14252 # Portland Group compilers (*not* the Pentium gcc compiler,
14253 # which looks to be a dead project)
14254 lt_prog_compiler_wl_F77='-Wl,'
14255 lt_prog_compiler_pic_F77='-fpic'
14256 lt_prog_compiler_static_F77='-Bstatic'
14257 ;;
14258 ccc*)
14259 lt_prog_compiler_wl_F77='-Wl,'
14260 # All Alpha code is PIC.
14261 lt_prog_compiler_static_F77='-non_shared'
14262 ;;
openvcdiffd1845782009-03-20 21:56:15 +000014263 *)
14264 case `$CC -V 2>&1 | sed 5q` in
14265 *Sun\ C*)
14266 # Sun C 5.9
14267 lt_prog_compiler_pic_F77='-KPIC'
14268 lt_prog_compiler_static_F77='-Bstatic'
14269 lt_prog_compiler_wl_F77='-Wl,'
14270 ;;
14271 *Sun\ F*)
14272 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14273 lt_prog_compiler_pic_F77='-KPIC'
14274 lt_prog_compiler_static_F77='-Bstatic'
14275 lt_prog_compiler_wl_F77=''
14276 ;;
14277 esac
14278 ;;
openvcdiff311c7142008-08-26 19:29:25 +000014279 esac
14280 ;;
14281
14282 osf3* | osf4* | osf5*)
14283 lt_prog_compiler_wl_F77='-Wl,'
14284 # All OSF/1 code is PIC.
14285 lt_prog_compiler_static_F77='-non_shared'
14286 ;;
14287
openvcdiffd1845782009-03-20 21:56:15 +000014288 rdos*)
14289 lt_prog_compiler_static_F77='-non_shared'
14290 ;;
14291
openvcdiff311c7142008-08-26 19:29:25 +000014292 solaris*)
14293 lt_prog_compiler_pic_F77='-KPIC'
14294 lt_prog_compiler_static_F77='-Bstatic'
14295 case $cc_basename in
14296 f77* | f90* | f95*)
14297 lt_prog_compiler_wl_F77='-Qoption ld ';;
14298 *)
14299 lt_prog_compiler_wl_F77='-Wl,';;
14300 esac
14301 ;;
14302
14303 sunos4*)
14304 lt_prog_compiler_wl_F77='-Qoption ld '
14305 lt_prog_compiler_pic_F77='-PIC'
14306 lt_prog_compiler_static_F77='-Bstatic'
14307 ;;
14308
14309 sysv4 | sysv4.2uw2* | sysv4.3*)
14310 lt_prog_compiler_wl_F77='-Wl,'
14311 lt_prog_compiler_pic_F77='-KPIC'
14312 lt_prog_compiler_static_F77='-Bstatic'
14313 ;;
14314
14315 sysv4*MP*)
14316 if test -d /usr/nec ;then
14317 lt_prog_compiler_pic_F77='-Kconform_pic'
14318 lt_prog_compiler_static_F77='-Bstatic'
14319 fi
14320 ;;
14321
14322 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14323 lt_prog_compiler_wl_F77='-Wl,'
14324 lt_prog_compiler_pic_F77='-KPIC'
14325 lt_prog_compiler_static_F77='-Bstatic'
14326 ;;
14327
14328 unicos*)
14329 lt_prog_compiler_wl_F77='-Wl,'
14330 lt_prog_compiler_can_build_shared_F77=no
14331 ;;
14332
14333 uts4*)
14334 lt_prog_compiler_pic_F77='-pic'
14335 lt_prog_compiler_static_F77='-Bstatic'
14336 ;;
14337
14338 *)
14339 lt_prog_compiler_can_build_shared_F77=no
14340 ;;
14341 esac
14342 fi
14343
openvcdiffd1845782009-03-20 21:56:15 +000014344{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14345echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014346
14347#
14348# Check to make sure the PIC flag actually works.
14349#
14350if test -n "$lt_prog_compiler_pic_F77"; then
14351
openvcdiffd1845782009-03-20 21:56:15 +000014352{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14353echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14354if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
openvcdiff311c7142008-08-26 19:29:25 +000014355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356else
openvcdiffd1845782009-03-20 21:56:15 +000014357 lt_cv_prog_compiler_pic_works_F77=no
openvcdiff311c7142008-08-26 19:29:25 +000014358 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000014359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000014360 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14361 # Insert the option either (1) after the last *FLAGS variable, or
14362 # (2) before a word containing "conftest.", or (3) at the end.
14363 # Note that $ac_compile itself does not contain backslashes and begins
14364 # with a dollar sign (not a hyphen), so the echo should work correctly.
14365 # The option is referenced via a variable to avoid confusing sed.
14366 lt_compile=`echo "$ac_compile" | $SED \
14367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14369 -e 's:$: $lt_compiler_flag:'`
openvcdiffbaf44ea2009-04-09 19:20:49 +000014370 (eval echo "\"\$as_me:14370: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +000014371 (eval "$lt_compile" 2>conftest.err)
14372 ac_status=$?
14373 cat conftest.err >&5
openvcdiffbaf44ea2009-04-09 19:20:49 +000014374 echo "$as_me:14374: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +000014375 if (exit $ac_status) && test -s "$ac_outfile"; then
14376 # The compiler can only warn and ignore the option if not recognized
14377 # So say no if there are warnings other than the usual output.
14378 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14380 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +000014381 lt_cv_prog_compiler_pic_works_F77=yes
openvcdiff311c7142008-08-26 19:29:25 +000014382 fi
14383 fi
14384 $rm conftest*
14385
14386fi
openvcdiffd1845782009-03-20 21:56:15 +000014387{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14388echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014389
openvcdiffd1845782009-03-20 21:56:15 +000014390if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +000014391 case $lt_prog_compiler_pic_F77 in
14392 "" | " "*) ;;
14393 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14394 esac
14395else
14396 lt_prog_compiler_pic_F77=
14397 lt_prog_compiler_can_build_shared_F77=no
14398fi
14399
14400fi
14401case $host_os in
14402 # For platforms which do not support PIC, -DPIC is meaningless:
14403 *djgpp*)
14404 lt_prog_compiler_pic_F77=
14405 ;;
14406 *)
14407 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14408 ;;
14409esac
14410
14411#
14412# Check to make sure the static flag actually works.
14413#
14414wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
openvcdiffd1845782009-03-20 21:56:15 +000014415{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14416echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14417if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
openvcdiff311c7142008-08-26 19:29:25 +000014418 echo $ECHO_N "(cached) $ECHO_C" >&6
14419else
openvcdiffd1845782009-03-20 21:56:15 +000014420 lt_cv_prog_compiler_static_works_F77=no
openvcdiff311c7142008-08-26 19:29:25 +000014421 save_LDFLAGS="$LDFLAGS"
14422 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
openvcdiffd1845782009-03-20 21:56:15 +000014423 echo "$lt_simple_link_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000014424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14425 # The linker can only warn and ignore the option if not recognized
14426 # So say no if there are warnings
14427 if test -s conftest.err; then
14428 # Append any errors to the config.log.
14429 cat conftest.err 1>&5
14430 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14432 if diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +000014433 lt_cv_prog_compiler_static_works_F77=yes
openvcdiff311c7142008-08-26 19:29:25 +000014434 fi
14435 else
openvcdiffd1845782009-03-20 21:56:15 +000014436 lt_cv_prog_compiler_static_works_F77=yes
openvcdiff311c7142008-08-26 19:29:25 +000014437 fi
14438 fi
openvcdiffd1845782009-03-20 21:56:15 +000014439 $rm -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +000014440 LDFLAGS="$save_LDFLAGS"
14441
14442fi
openvcdiffd1845782009-03-20 21:56:15 +000014443{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14444echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014445
openvcdiffd1845782009-03-20 21:56:15 +000014446if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +000014447 :
14448else
14449 lt_prog_compiler_static_F77=
14450fi
14451
14452
openvcdiffd1845782009-03-20 21:56:15 +000014453{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14454echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014455if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14456 echo $ECHO_N "(cached) $ECHO_C" >&6
14457else
14458 lt_cv_prog_compiler_c_o_F77=no
14459 $rm -r conftest 2>/dev/null
14460 mkdir conftest
14461 cd conftest
14462 mkdir out
openvcdiffd1845782009-03-20 21:56:15 +000014463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000014464
14465 lt_compiler_flag="-o out/conftest2.$ac_objext"
14466 # Insert the option either (1) after the last *FLAGS variable, or
14467 # (2) before a word containing "conftest.", or (3) at the end.
14468 # Note that $ac_compile itself does not contain backslashes and begins
14469 # with a dollar sign (not a hyphen), so the echo should work correctly.
14470 lt_compile=`echo "$ac_compile" | $SED \
14471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14473 -e 's:$: $lt_compiler_flag:'`
openvcdiffbaf44ea2009-04-09 19:20:49 +000014474 (eval echo "\"\$as_me:14474: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +000014475 (eval "$lt_compile" 2>out/conftest.err)
14476 ac_status=$?
14477 cat out/conftest.err >&5
openvcdiffbaf44ea2009-04-09 19:20:49 +000014478 echo "$as_me:14478: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +000014479 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14480 then
14481 # The compiler can only warn and ignore the option if not recognized
14482 # So say no if there are warnings
14483 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14484 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14485 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14486 lt_cv_prog_compiler_c_o_F77=yes
14487 fi
14488 fi
14489 chmod u+w . 2>&5
14490 $rm conftest*
14491 # SGI C++ compiler will create directory out/ii_files/ for
14492 # template instantiation
14493 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14494 $rm out/* && rmdir out
14495 cd ..
14496 rmdir conftest
14497 $rm conftest*
14498
14499fi
openvcdiffd1845782009-03-20 21:56:15 +000014500{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14501echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014502
14503
14504hard_links="nottested"
14505if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14506 # do not overwrite the value of need_locks provided by the user
openvcdiffd1845782009-03-20 21:56:15 +000014507 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14508echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014509 hard_links=yes
14510 $rm conftest*
14511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14512 touch conftest.a
14513 ln conftest.a conftest.b 2>&5 || hard_links=no
14514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
openvcdiffd1845782009-03-20 21:56:15 +000014515 { echo "$as_me:$LINENO: result: $hard_links" >&5
14516echo "${ECHO_T}$hard_links" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014517 if test "$hard_links" = no; then
14518 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14519echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14520 need_locks=warn
14521 fi
14522else
14523 need_locks=no
14524fi
14525
openvcdiffd1845782009-03-20 21:56:15 +000014526{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14527echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014528
14529 runpath_var=
14530 allow_undefined_flag_F77=
14531 enable_shared_with_static_runtimes_F77=no
14532 archive_cmds_F77=
14533 archive_expsym_cmds_F77=
14534 old_archive_From_new_cmds_F77=
14535 old_archive_from_expsyms_cmds_F77=
14536 export_dynamic_flag_spec_F77=
14537 whole_archive_flag_spec_F77=
14538 thread_safe_flag_spec_F77=
14539 hardcode_libdir_flag_spec_F77=
14540 hardcode_libdir_flag_spec_ld_F77=
14541 hardcode_libdir_separator_F77=
14542 hardcode_direct_F77=no
14543 hardcode_minus_L_F77=no
14544 hardcode_shlibpath_var_F77=unsupported
14545 link_all_deplibs_F77=unknown
14546 hardcode_automatic_F77=no
14547 module_cmds_F77=
14548 module_expsym_cmds_F77=
14549 always_export_symbols_F77=no
14550 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14551 # include_expsyms should be a list of space-separated symbols to be *always*
14552 # included in the symbol list
14553 include_expsyms_F77=
14554 # exclude_expsyms can be an extended regexp of symbols to exclude
14555 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14556 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14557 # as well as any symbol that contains `d'.
openvcdiffd1845782009-03-20 21:56:15 +000014558 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
openvcdiff311c7142008-08-26 19:29:25 +000014559 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14560 # platforms (ab)use it in PIC code, but their linkers get confused if
14561 # the symbol is explicitly referenced. Since portable code cannot
14562 # rely on this symbol name, it's probably fine to never include it in
14563 # preloaded symbol tables.
openvcdiffd1845782009-03-20 21:56:15 +000014564 # Exclude shared library initialization/finalization symbols.
openvcdiff311c7142008-08-26 19:29:25 +000014565 extract_expsyms_cmds=
14566 # Just being paranoid about ensuring that cc_basename is set.
14567 for cc_temp in $compiler""; do
14568 case $cc_temp in
14569 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14570 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14571 \-*) ;;
14572 *) break;;
14573 esac
14574done
14575cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14576
14577 case $host_os in
14578 cygwin* | mingw* | pw32*)
14579 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14580 # When not using gcc, we currently assume that we are using
14581 # Microsoft Visual C++.
14582 if test "$GCC" != yes; then
14583 with_gnu_ld=no
14584 fi
14585 ;;
14586 interix*)
14587 # we just hope/assume this is gcc and not c89 (= MSVC++)
14588 with_gnu_ld=yes
14589 ;;
14590 openbsd*)
14591 with_gnu_ld=no
14592 ;;
14593 esac
14594
14595 ld_shlibs_F77=yes
14596 if test "$with_gnu_ld" = yes; then
14597 # If archive_cmds runs LD, not CC, wlarc should be empty
14598 wlarc='${wl}'
14599
14600 # Set some defaults for GNU ld with shared library support. These
14601 # are reset later if shared libraries are not supported. Putting them
14602 # here allows them to be overridden if necessary.
14603 runpath_var=LD_RUN_PATH
14604 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14605 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14606 # ancient GNU ld didn't support --whole-archive et. al.
14607 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14608 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14609 else
14610 whole_archive_flag_spec_F77=
14611 fi
14612 supports_anon_versioning=no
14613 case `$LD -v 2>/dev/null` in
14614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14617 *\ 2.11.*) ;; # other 2.11 versions
14618 *) supports_anon_versioning=yes ;;
14619 esac
14620
14621 # See if GNU ld supports shared libraries.
14622 case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +000014623 aix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000014624 # On AIX/PPC, the GNU linker is very broken
14625 if test "$host_cpu" != ia64; then
14626 ld_shlibs_F77=no
14627 cat <<EOF 1>&2
14628
14629*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14630*** to be unable to reliably create shared libraries on AIX.
14631*** Therefore, libtool is disabling shared libraries support. If you
14632*** really care for shared libraries, you may want to modify your PATH
14633*** so that a non-GNU linker is found, and then restart.
14634
14635EOF
14636 fi
14637 ;;
14638
14639 amigaos*)
14640 archive_cmds_F77='$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)'
14641 hardcode_libdir_flag_spec_F77='-L$libdir'
14642 hardcode_minus_L_F77=yes
14643
14644 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14645 # that the semantics of dynamic libraries on AmigaOS, at least up
14646 # to version 4, is to share data among multiple programs linked
14647 # with the same dynamic library. Since this doesn't match the
14648 # behavior of shared libraries on other platforms, we can't use
14649 # them.
14650 ld_shlibs_F77=no
14651 ;;
14652
14653 beos*)
14654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14655 allow_undefined_flag_F77=unsupported
14656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14657 # support --undefined. This deserves some investigation. FIXME
14658 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14659 else
14660 ld_shlibs_F77=no
14661 fi
14662 ;;
14663
14664 cygwin* | mingw* | pw32*)
14665 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14666 # as there is no search path for DLLs.
14667 hardcode_libdir_flag_spec_F77='-L$libdir'
14668 allow_undefined_flag_F77=unsupported
14669 always_export_symbols_F77=no
14670 enable_shared_with_static_runtimes_F77=yes
openvcdiffd1845782009-03-20 21:56:15 +000014671 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
openvcdiff311c7142008-08-26 19:29:25 +000014672
14673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14674 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14675 # If the export-symbols file already is a .def file (1st line
14676 # is EXPORTS), use it as is; otherwise, prepend...
14677 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14678 cp $export_symbols $output_objdir/$soname.def;
14679 else
14680 echo EXPORTS > $output_objdir/$soname.def;
14681 cat $export_symbols >> $output_objdir/$soname.def;
14682 fi~
14683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14684 else
14685 ld_shlibs_F77=no
14686 fi
14687 ;;
14688
openvcdiffd1845782009-03-20 21:56:15 +000014689 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000014690 hardcode_direct_F77=no
14691 hardcode_shlibpath_var_F77=no
14692 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14693 export_dynamic_flag_spec_F77='${wl}-E'
14694 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14695 # Instead, shared libraries are loaded at an image base (0x10000000 by
14696 # default) and relocated if they conflict, which is a slow very memory
14697 # consuming and fragmenting process. To avoid this, we pick a random,
14698 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14699 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14700 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14701 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14702 ;;
14703
openvcdiffd1845782009-03-20 21:56:15 +000014704 gnu* | linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000014705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14706 tmp_addflag=
14707 case $cc_basename,$host_cpu in
14708 pgcc*) # Portland Group C compiler
14709 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14710 tmp_addflag=' $pic_flag'
14711 ;;
14712 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14713 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14714 tmp_addflag=' $pic_flag -Mnomain' ;;
14715 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14716 tmp_addflag=' -i_dynamic' ;;
14717 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14718 tmp_addflag=' -i_dynamic -nofor_main' ;;
14719 ifc* | ifort*) # Intel Fortran compiler
14720 tmp_addflag=' -nofor_main' ;;
14721 esac
openvcdiffd1845782009-03-20 21:56:15 +000014722 case `$CC -V 2>&1 | sed 5q` in
14723 *Sun\ C*) # Sun C 5.9
14724 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14725 tmp_sharedflag='-G' ;;
14726 *Sun\ F*) # Sun Fortran 8.3
14727 tmp_sharedflag='-G' ;;
14728 *)
14729 tmp_sharedflag='-shared' ;;
14730 esac
14731 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +000014732
14733 if test $supports_anon_versioning = yes; then
14734 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14735 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14736 $echo "local: *; };" >> $output_objdir/$libname.ver~
openvcdiffd1845782009-03-20 21:56:15 +000014737 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +000014738 fi
14739 link_all_deplibs_F77=no
14740 else
14741 ld_shlibs_F77=no
14742 fi
14743 ;;
14744
openvcdiffd1845782009-03-20 21:56:15 +000014745 netbsd* | netbsdelf*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000014746 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14747 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14748 wlarc=
14749 else
14750 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14751 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14752 fi
14753 ;;
14754
14755 solaris*)
14756 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14757 ld_shlibs_F77=no
14758 cat <<EOF 1>&2
14759
14760*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14761*** create shared libraries on Solaris systems. Therefore, libtool
14762*** is disabling shared libraries support. We urge you to upgrade GNU
14763*** binutils to release 2.9.1 or newer. Another option is to modify
14764*** your PATH or compiler configuration so that the native linker is
14765*** used, and then restart.
14766
14767EOF
14768 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14769 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14770 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14771 else
14772 ld_shlibs_F77=no
14773 fi
14774 ;;
14775
14776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14777 case `$LD -v 2>&1` in
14778 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14779 ld_shlibs_F77=no
14780 cat <<_LT_EOF 1>&2
14781
14782*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14783*** reliably create shared libraries on SCO systems. Therefore, libtool
14784*** is disabling shared libraries support. We urge you to upgrade GNU
14785*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14786*** your PATH or compiler configuration so that the native linker is
14787*** used, and then restart.
14788
14789_LT_EOF
14790 ;;
14791 *)
14792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14793 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14795 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14796 else
14797 ld_shlibs_F77=no
14798 fi
14799 ;;
14800 esac
14801 ;;
14802
14803 sunos4*)
14804 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14805 wlarc=
14806 hardcode_direct_F77=yes
14807 hardcode_shlibpath_var_F77=no
14808 ;;
14809
14810 *)
14811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14812 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14813 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14814 else
14815 ld_shlibs_F77=no
14816 fi
14817 ;;
14818 esac
14819
14820 if test "$ld_shlibs_F77" = no; then
14821 runpath_var=
14822 hardcode_libdir_flag_spec_F77=
14823 export_dynamic_flag_spec_F77=
14824 whole_archive_flag_spec_F77=
14825 fi
14826 else
14827 # PORTME fill in a description of your system's linker (not GNU ld)
14828 case $host_os in
14829 aix3*)
14830 allow_undefined_flag_F77=unsupported
14831 always_export_symbols_F77=yes
14832 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14833 # Note: this linker hardcodes the directories in LIBPATH if there
14834 # are no directories specified by -L.
14835 hardcode_minus_L_F77=yes
14836 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14837 # Neither direct hardcoding nor static linking is supported with a
14838 # broken collect2.
14839 hardcode_direct_F77=unsupported
14840 fi
14841 ;;
14842
openvcdiffd1845782009-03-20 21:56:15 +000014843 aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000014844 if test "$host_cpu" = ia64; then
14845 # On IA64, the linker does run time linking by default, so we don't
14846 # have to do anything special.
14847 aix_use_runtimelinking=no
14848 exp_sym_flag='-Bexport'
14849 no_entry_flag=""
14850 else
14851 # If we're using GNU nm, then we don't want the "-C" option.
14852 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14853 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14854 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14855 else
14856 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14857 fi
14858 aix_use_runtimelinking=no
14859
14860 # Test if we are trying to use run time linking or normal
14861 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14862 # need to do runtime linking.
openvcdiffd1845782009-03-20 21:56:15 +000014863 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000014864 for ld_flag in $LDFLAGS; do
14865 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14866 aix_use_runtimelinking=yes
14867 break
14868 fi
14869 done
14870 ;;
14871 esac
14872
14873 exp_sym_flag='-bexport'
14874 no_entry_flag='-bnoentry'
14875 fi
14876
14877 # When large executables or shared objects are built, AIX ld can
14878 # have problems creating the table of contents. If linking a library
14879 # or program results in "error TOC overflow" add -mminimal-toc to
14880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14882
14883 archive_cmds_F77=''
14884 hardcode_direct_F77=yes
14885 hardcode_libdir_separator_F77=':'
14886 link_all_deplibs_F77=yes
14887
14888 if test "$GCC" = yes; then
14889 case $host_os in aix4.[012]|aix4.[012].*)
14890 # We only want to do this on AIX 4.2 and lower, the check
14891 # below for broken collect2 doesn't work under 4.3+
14892 collect2name=`${CC} -print-prog-name=collect2`
14893 if test -f "$collect2name" && \
14894 strings "$collect2name" | grep resolve_lib_name >/dev/null
14895 then
14896 # We have reworked collect2
openvcdiffd1845782009-03-20 21:56:15 +000014897 :
openvcdiff311c7142008-08-26 19:29:25 +000014898 else
14899 # We have old collect2
14900 hardcode_direct_F77=unsupported
14901 # It fails to find uninstalled libraries when the uninstalled
14902 # path is not listed in the libpath. Setting hardcode_minus_L
14903 # to unsupported forces relinking
14904 hardcode_minus_L_F77=yes
14905 hardcode_libdir_flag_spec_F77='-L$libdir'
14906 hardcode_libdir_separator_F77=
14907 fi
14908 ;;
14909 esac
14910 shared_flag='-shared'
14911 if test "$aix_use_runtimelinking" = yes; then
14912 shared_flag="$shared_flag "'${wl}-G'
14913 fi
14914 else
14915 # not using gcc
14916 if test "$host_cpu" = ia64; then
14917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14918 # chokes on -Wl,-G. The following line is correct:
14919 shared_flag='-G'
14920 else
14921 if test "$aix_use_runtimelinking" = yes; then
14922 shared_flag='${wl}-G'
14923 else
14924 shared_flag='${wl}-bM:SRE'
14925 fi
14926 fi
14927 fi
14928
14929 # It seems that -bexpall does not export symbols beginning with
14930 # underscore (_), so it is better to generate a list of symbols to export.
14931 always_export_symbols_F77=yes
14932 if test "$aix_use_runtimelinking" = yes; then
14933 # Warning - without using the other runtime loading flags (-brtl),
14934 # -berok will link without error, but may produce a broken library.
14935 allow_undefined_flag_F77='-berok'
14936 # Determine the default libpath from the value encoded in an empty executable.
14937 cat >conftest.$ac_ext <<_ACEOF
14938 program main
14939
14940 end
14941_ACEOF
14942rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000014943if { (ac_try="$ac_link"
14944case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947esac
14948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000014950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000014955 (exit $ac_status); } && {
14956 test -z "$ac_f77_werror_flag" ||
14957 test ! -s conftest.err
14958 } && test -s conftest$ac_exeext &&
14959 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000014960
openvcdiffd1845782009-03-20 21:56:15 +000014961lt_aix_libpath_sed='
14962 /Import File Strings/,/^$/ {
14963 /^0/ {
14964 s/^0 *\(.*\)$/\1/
14965 p
14966 }
14967 }'
14968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
openvcdiff311c7142008-08-26 19:29:25 +000014969# Check for a 64-bit object if we didn't find anything.
openvcdiffd1845782009-03-20 21:56:15 +000014970if test -z "$aix_libpath"; then
14971 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14972fi
openvcdiff311c7142008-08-26 19:29:25 +000014973else
14974 echo "$as_me: failed program was:" >&5
14975sed 's/^/| /' conftest.$ac_ext >&5
14976
openvcdiffd1845782009-03-20 21:56:15 +000014977
openvcdiff311c7142008-08-26 19:29:25 +000014978fi
openvcdiffd1845782009-03-20 21:56:15 +000014979
14980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000014981 conftest$ac_exeext conftest.$ac_ext
14982if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14983
14984 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14985 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14986 else
14987 if test "$host_cpu" = ia64; then
14988 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14989 allow_undefined_flag_F77="-z nodefs"
14990 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14991 else
14992 # Determine the default libpath from the value encoded in an empty executable.
14993 cat >conftest.$ac_ext <<_ACEOF
14994 program main
14995
14996 end
14997_ACEOF
14998rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000014999if { (ac_try="$ac_link"
15000case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15003esac
15004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000015006 ac_status=$?
15007 grep -v '^ *+' conftest.er1 >conftest.err
15008 rm -f conftest.er1
15009 cat conftest.err >&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000015011 (exit $ac_status); } && {
15012 test -z "$ac_f77_werror_flag" ||
15013 test ! -s conftest.err
15014 } && test -s conftest$ac_exeext &&
15015 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000015016
openvcdiffd1845782009-03-20 21:56:15 +000015017lt_aix_libpath_sed='
15018 /Import File Strings/,/^$/ {
15019 /^0/ {
15020 s/^0 *\(.*\)$/\1/
15021 p
15022 }
15023 }'
15024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
openvcdiff311c7142008-08-26 19:29:25 +000015025# Check for a 64-bit object if we didn't find anything.
openvcdiffd1845782009-03-20 21:56:15 +000015026if test -z "$aix_libpath"; then
15027 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15028fi
openvcdiff311c7142008-08-26 19:29:25 +000015029else
15030 echo "$as_me: failed program was:" >&5
15031sed 's/^/| /' conftest.$ac_ext >&5
15032
openvcdiffd1845782009-03-20 21:56:15 +000015033
openvcdiff311c7142008-08-26 19:29:25 +000015034fi
openvcdiffd1845782009-03-20 21:56:15 +000015035
15036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000015037 conftest$ac_exeext conftest.$ac_ext
15038if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15039
15040 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15041 # Warning - without using the other run time loading flags,
15042 # -berok will link without error, but may produce a broken library.
15043 no_undefined_flag_F77=' ${wl}-bernotok'
15044 allow_undefined_flag_F77=' ${wl}-berok'
15045 # Exported symbols can be pulled into shared objects from archives
15046 whole_archive_flag_spec_F77='$convenience'
15047 archive_cmds_need_lc_F77=yes
15048 # This is similar to how AIX traditionally builds its shared libraries.
15049 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15050 fi
15051 fi
15052 ;;
15053
15054 amigaos*)
15055 archive_cmds_F77='$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)'
15056 hardcode_libdir_flag_spec_F77='-L$libdir'
15057 hardcode_minus_L_F77=yes
15058 # see comment about different semantics on the GNU ld section
15059 ld_shlibs_F77=no
15060 ;;
15061
15062 bsdi[45]*)
15063 export_dynamic_flag_spec_F77=-rdynamic
15064 ;;
15065
15066 cygwin* | mingw* | pw32*)
15067 # When not using gcc, we currently assume that we are using
15068 # Microsoft Visual C++.
15069 # hardcode_libdir_flag_spec is actually meaningless, as there is
15070 # no search path for DLLs.
15071 hardcode_libdir_flag_spec_F77=' '
15072 allow_undefined_flag_F77=unsupported
15073 # Tell ltmain to make .lib files, not .a files.
15074 libext=lib
15075 # Tell ltmain to make .dll files, not .so files.
15076 shrext_cmds=".dll"
15077 # FIXME: Setting linknames here is a bad hack.
15078 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15079 # The linker will automatically build a .lib file if we build a DLL.
15080 old_archive_From_new_cmds_F77='true'
15081 # FIXME: Should let the user specify the lib program.
openvcdiffd1845782009-03-20 21:56:15 +000015082 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
openvcdiff311c7142008-08-26 19:29:25 +000015083 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15084 enable_shared_with_static_runtimes_F77=yes
15085 ;;
15086
15087 darwin* | rhapsody*)
15088 case $host_os in
15089 rhapsody* | darwin1.[012])
15090 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15091 ;;
15092 *) # Darwin 1.3 on
15093 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15094 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15095 else
15096 case ${MACOSX_DEPLOYMENT_TARGET} in
15097 10.[012])
15098 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15099 ;;
15100 10.*)
15101 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15102 ;;
15103 esac
15104 fi
15105 ;;
15106 esac
15107 archive_cmds_need_lc_F77=no
15108 hardcode_direct_F77=no
15109 hardcode_automatic_F77=yes
15110 hardcode_shlibpath_var_F77=unsupported
15111 whole_archive_flag_spec_F77=''
15112 link_all_deplibs_F77=yes
15113 if test "$GCC" = yes ; then
15114 output_verbose_link_cmd='echo'
openvcdiffd1845782009-03-20 21:56:15 +000015115 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15116 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15117 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15118 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
openvcdiff311c7142008-08-26 19:29:25 +000015119 else
15120 case $cc_basename in
15121 xlc*)
15122 output_verbose_link_cmd='echo'
openvcdiffd1845782009-03-20 21:56:15 +000015123 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
openvcdiff311c7142008-08-26 19:29:25 +000015124 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
openvcdiffd1845782009-03-20 21:56:15 +000015126 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
openvcdiff311c7142008-08-26 19:29:25 +000015127 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15128 ;;
15129 *)
15130 ld_shlibs_F77=no
15131 ;;
15132 esac
15133 fi
15134 ;;
15135
15136 dgux*)
15137 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138 hardcode_libdir_flag_spec_F77='-L$libdir'
15139 hardcode_shlibpath_var_F77=no
15140 ;;
15141
15142 freebsd1*)
15143 ld_shlibs_F77=no
15144 ;;
15145
15146 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15147 # support. Future versions do this automatically, but an explicit c++rt0.o
15148 # does not break anything, and helps significantly (at the cost of a little
15149 # extra space).
15150 freebsd2.2*)
15151 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15152 hardcode_libdir_flag_spec_F77='-R$libdir'
15153 hardcode_direct_F77=yes
15154 hardcode_shlibpath_var_F77=no
15155 ;;
15156
15157 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15158 freebsd2*)
15159 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15160 hardcode_direct_F77=yes
15161 hardcode_minus_L_F77=yes
15162 hardcode_shlibpath_var_F77=no
15163 ;;
15164
15165 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15166 freebsd* | dragonfly*)
15167 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15168 hardcode_libdir_flag_spec_F77='-R$libdir'
15169 hardcode_direct_F77=yes
15170 hardcode_shlibpath_var_F77=no
15171 ;;
15172
openvcdiff311c7142008-08-26 19:29:25 +000015173 hpux9*)
15174 if test "$GCC" = yes; then
15175 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15176 else
15177 archive_cmds_F77='$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'
15178 fi
15179 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15180 hardcode_libdir_separator_F77=:
15181 hardcode_direct_F77=yes
15182
15183 # hardcode_minus_L: Not really in the search PATH,
15184 # but as the default location of the library.
15185 hardcode_minus_L_F77=yes
15186 export_dynamic_flag_spec_F77='${wl}-E'
15187 ;;
15188
15189 hpux10*)
15190 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15191 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15192 else
15193 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15194 fi
15195 if test "$with_gnu_ld" = no; then
15196 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15197 hardcode_libdir_separator_F77=:
15198
15199 hardcode_direct_F77=yes
15200 export_dynamic_flag_spec_F77='${wl}-E'
15201
15202 # hardcode_minus_L: Not really in the search PATH,
15203 # but as the default location of the library.
15204 hardcode_minus_L_F77=yes
15205 fi
15206 ;;
15207
15208 hpux11*)
15209 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15210 case $host_cpu in
15211 hppa*64*)
15212 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213 ;;
15214 ia64*)
15215 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15216 ;;
15217 *)
15218 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15219 ;;
15220 esac
15221 else
15222 case $host_cpu in
15223 hppa*64*)
15224 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15225 ;;
15226 ia64*)
15227 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15228 ;;
15229 *)
15230 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15231 ;;
15232 esac
15233 fi
15234 if test "$with_gnu_ld" = no; then
15235 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15236 hardcode_libdir_separator_F77=:
15237
15238 case $host_cpu in
15239 hppa*64*|ia64*)
15240 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15241 hardcode_direct_F77=no
15242 hardcode_shlibpath_var_F77=no
15243 ;;
15244 *)
15245 hardcode_direct_F77=yes
15246 export_dynamic_flag_spec_F77='${wl}-E'
15247
15248 # hardcode_minus_L: Not really in the search PATH,
15249 # but as the default location of the library.
15250 hardcode_minus_L_F77=yes
15251 ;;
15252 esac
15253 fi
15254 ;;
15255
15256 irix5* | irix6* | nonstopux*)
15257 if test "$GCC" = yes; then
15258 archive_cmds_F77='$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'
15259 else
15260 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15261 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15262 fi
15263 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15264 hardcode_libdir_separator_F77=:
15265 link_all_deplibs_F77=yes
15266 ;;
15267
openvcdiffd1845782009-03-20 21:56:15 +000015268 netbsd* | netbsdelf*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000015269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15270 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15271 else
15272 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15273 fi
15274 hardcode_libdir_flag_spec_F77='-R$libdir'
15275 hardcode_direct_F77=yes
15276 hardcode_shlibpath_var_F77=no
15277 ;;
15278
15279 newsos6)
15280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15281 hardcode_direct_F77=yes
15282 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15283 hardcode_libdir_separator_F77=:
15284 hardcode_shlibpath_var_F77=no
15285 ;;
15286
15287 openbsd*)
openvcdiffd1845782009-03-20 21:56:15 +000015288 if test -f /usr/libexec/ld.so; then
15289 hardcode_direct_F77=yes
15290 hardcode_shlibpath_var_F77=no
15291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15292 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15293 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15294 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15295 export_dynamic_flag_spec_F77='${wl}-E'
15296 else
15297 case $host_os in
15298 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15300 hardcode_libdir_flag_spec_F77='-R$libdir'
15301 ;;
15302 *)
15303 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15304 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15305 ;;
15306 esac
15307 fi
openvcdiff311c7142008-08-26 19:29:25 +000015308 else
openvcdiffd1845782009-03-20 21:56:15 +000015309 ld_shlibs_F77=no
openvcdiff311c7142008-08-26 19:29:25 +000015310 fi
15311 ;;
15312
15313 os2*)
15314 hardcode_libdir_flag_spec_F77='-L$libdir'
15315 hardcode_minus_L_F77=yes
15316 allow_undefined_flag_F77=unsupported
15317 archive_cmds_F77='$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'
15318 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15319 ;;
15320
15321 osf3*)
15322 if test "$GCC" = yes; then
15323 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15324 archive_cmds_F77='$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'
15325 else
15326 allow_undefined_flag_F77=' -expect_unresolved \*'
15327 archive_cmds_F77='$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'
15328 fi
15329 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15330 hardcode_libdir_separator_F77=:
15331 ;;
15332
15333 osf4* | osf5*) # as osf3* with the addition of -msym flag
15334 if test "$GCC" = yes; then
15335 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15336 archive_cmds_F77='$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'
15337 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15338 else
15339 allow_undefined_flag_F77=' -expect_unresolved \*'
15340 archive_cmds_F77='$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'
15341 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15342 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15343
15344 # Both c and cxx compiler support -rpath directly
15345 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15346 fi
15347 hardcode_libdir_separator_F77=:
15348 ;;
15349
15350 solaris*)
15351 no_undefined_flag_F77=' -z text'
15352 if test "$GCC" = yes; then
15353 wlarc='${wl}'
15354 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15355 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15356 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15357 else
15358 wlarc=''
15359 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15360 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15362 fi
15363 hardcode_libdir_flag_spec_F77='-R$libdir'
15364 hardcode_shlibpath_var_F77=no
15365 case $host_os in
15366 solaris2.[0-5] | solaris2.[0-5].*) ;;
15367 *)
openvcdiffd1845782009-03-20 21:56:15 +000015368 # The compiler driver will combine and reorder linker options,
15369 # but understands `-z linker_flag'. GCC discards it without `$wl',
15370 # but is careful enough not to reorder.
openvcdiff311c7142008-08-26 19:29:25 +000015371 # Supported since Solaris 2.6 (maybe 2.5.1?)
openvcdiffd1845782009-03-20 21:56:15 +000015372 if test "$GCC" = yes; then
15373 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15374 else
15375 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15376 fi
15377 ;;
openvcdiff311c7142008-08-26 19:29:25 +000015378 esac
15379 link_all_deplibs_F77=yes
15380 ;;
15381
15382 sunos4*)
15383 if test "x$host_vendor" = xsequent; then
15384 # Use $CC to link under sequent, because it throws in some extra .o
15385 # files that make .init and .fini sections work.
15386 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15387 else
15388 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15389 fi
15390 hardcode_libdir_flag_spec_F77='-L$libdir'
15391 hardcode_direct_F77=yes
15392 hardcode_minus_L_F77=yes
15393 hardcode_shlibpath_var_F77=no
15394 ;;
15395
15396 sysv4)
15397 case $host_vendor in
15398 sni)
15399 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15400 hardcode_direct_F77=yes # is this really true???
15401 ;;
15402 siemens)
15403 ## LD is ld it makes a PLAMLIB
15404 ## CC just makes a GrossModule.
15405 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15406 reload_cmds_F77='$CC -r -o $output$reload_objs'
15407 hardcode_direct_F77=no
15408 ;;
15409 motorola)
15410 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15411 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15412 ;;
15413 esac
15414 runpath_var='LD_RUN_PATH'
15415 hardcode_shlibpath_var_F77=no
15416 ;;
15417
15418 sysv4.3*)
15419 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15420 hardcode_shlibpath_var_F77=no
15421 export_dynamic_flag_spec_F77='-Bexport'
15422 ;;
15423
15424 sysv4*MP*)
15425 if test -d /usr/nec; then
15426 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15427 hardcode_shlibpath_var_F77=no
15428 runpath_var=LD_RUN_PATH
15429 hardcode_runpath_var=yes
15430 ld_shlibs_F77=yes
15431 fi
15432 ;;
15433
openvcdiffd1845782009-03-20 21:56:15 +000015434 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
openvcdiff311c7142008-08-26 19:29:25 +000015435 no_undefined_flag_F77='${wl}-z,text'
15436 archive_cmds_need_lc_F77=no
15437 hardcode_shlibpath_var_F77=no
15438 runpath_var='LD_RUN_PATH'
15439
15440 if test "$GCC" = yes; then
15441 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15442 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15443 else
15444 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15445 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15446 fi
15447 ;;
15448
15449 sysv5* | sco3.2v5* | sco5v6*)
15450 # Note: We can NOT use -z defs as we might desire, because we do not
15451 # link with -lc, and that would cause any symbols used from libc to
15452 # always be unresolved, which means just about no library would
15453 # ever link correctly. If we're not using GNU ld we use -z text
15454 # though, which does catch some bad symbols but isn't as heavy-handed
15455 # as -z defs.
15456 no_undefined_flag_F77='${wl}-z,text'
15457 allow_undefined_flag_F77='${wl}-z,nodefs'
15458 archive_cmds_need_lc_F77=no
15459 hardcode_shlibpath_var_F77=no
15460 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15461 hardcode_libdir_separator_F77=':'
15462 link_all_deplibs_F77=yes
15463 export_dynamic_flag_spec_F77='${wl}-Bexport'
15464 runpath_var='LD_RUN_PATH'
15465
15466 if test "$GCC" = yes; then
15467 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15468 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469 else
15470 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15471 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15472 fi
15473 ;;
15474
15475 uts4*)
15476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15477 hardcode_libdir_flag_spec_F77='-L$libdir'
15478 hardcode_shlibpath_var_F77=no
15479 ;;
15480
15481 *)
15482 ld_shlibs_F77=no
15483 ;;
15484 esac
15485 fi
15486
openvcdiffd1845782009-03-20 21:56:15 +000015487{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15488echo "${ECHO_T}$ld_shlibs_F77" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000015489test "$ld_shlibs_F77" = no && can_build_shared=no
15490
15491#
15492# Do we need to explicitly link libc?
15493#
15494case "x$archive_cmds_need_lc_F77" in
15495x|xyes)
15496 # Assume -lc should be added
15497 archive_cmds_need_lc_F77=yes
15498
15499 if test "$enable_shared" = yes && test "$GCC" = yes; then
15500 case $archive_cmds_F77 in
15501 *'~'*)
15502 # FIXME: we may have to deal with multi-command sequences.
15503 ;;
15504 '$CC '*)
15505 # Test whether the compiler implicitly links with -lc since on some
15506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15507 # to ld, don't add -lc before -lgcc.
openvcdiffd1845782009-03-20 21:56:15 +000015508 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15509echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000015510 $rm conftest*
openvcdiffd1845782009-03-20 21:56:15 +000015511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000015512
15513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514 (eval $ac_compile) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } 2>conftest.err; then
15518 soname=conftest
15519 lib=conftest
15520 libobjs=conftest.$ac_objext
15521 deplibs=
15522 wl=$lt_prog_compiler_wl_F77
15523 pic_flag=$lt_prog_compiler_pic_F77
15524 compiler_flags=-v
15525 linker_flags=-v
15526 verstring=
15527 output_objdir=.
15528 libname=conftest
15529 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15530 allow_undefined_flag_F77=
15531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15532 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }
15536 then
15537 archive_cmds_need_lc_F77=no
15538 else
15539 archive_cmds_need_lc_F77=yes
15540 fi
15541 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15542 else
15543 cat conftest.err 1>&5
15544 fi
15545 $rm conftest*
openvcdiffd1845782009-03-20 21:56:15 +000015546 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15547echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000015548 ;;
15549 esac
15550 fi
15551 ;;
15552esac
15553
openvcdiffd1845782009-03-20 21:56:15 +000015554{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15555echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000015556library_names_spec=
15557libname_spec='lib$name'
15558soname_spec=
15559shrext_cmds=".so"
15560postinstall_cmds=
15561postuninstall_cmds=
15562finish_cmds=
15563finish_eval=
15564shlibpath_var=
15565shlibpath_overrides_runpath=unknown
15566version_type=none
15567dynamic_linker="$host_os ld.so"
15568sys_lib_dlsearch_path_spec="/lib /usr/lib"
openvcdiffd1845782009-03-20 21:56:15 +000015569
openvcdiff311c7142008-08-26 19:29:25 +000015570need_lib_prefix=unknown
15571hardcode_into_libs=no
15572
15573# when you set need_version to no, make sure it does not cause -set_version
15574# flags to be left without arguments
15575need_version=unknown
15576
15577case $host_os in
15578aix3*)
15579 version_type=linux
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15581 shlibpath_var=LIBPATH
15582
15583 # AIX 3 has no versioning support, so we append a major version to the name.
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 ;;
15586
openvcdiffd1845782009-03-20 21:56:15 +000015587aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000015588 version_type=linux
15589 need_lib_prefix=no
15590 need_version=no
15591 hardcode_into_libs=yes
15592 if test "$host_cpu" = ia64; then
15593 # AIX 5 supports IA64
15594 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 else
15597 # With GCC up to 2.95.x, collect2 would create an import file
15598 # for dependence libraries. The import file would start with
15599 # the line `#! .'. This would cause the generated library to
15600 # depend on `.', always an invalid library. This was fixed in
15601 # development snapshots of GCC prior to 3.0.
15602 case $host_os in
15603 aix4 | aix4.[01] | aix4.[01].*)
15604 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15605 echo ' yes '
15606 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15607 :
15608 else
15609 can_build_shared=no
15610 fi
15611 ;;
15612 esac
15613 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15614 # soname into executable. Probably we can add versioning support to
15615 # collect2, so additional links can be useful in future.
15616 if test "$aix_use_runtimelinking" = yes; then
15617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15618 # instead of lib<name>.a to let people know that these are not
15619 # typical AIX shared libraries.
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621 else
15622 # We preserve .a as extension for shared libraries through AIX4.2
15623 # and later when we are not doing run time linking.
15624 library_names_spec='${libname}${release}.a $libname.a'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 fi
15627 shlibpath_var=LIBPATH
15628 fi
15629 ;;
15630
15631amigaos*)
15632 library_names_spec='$libname.ixlibrary $libname.a'
15633 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15634 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'
15635 ;;
15636
15637beos*)
15638 library_names_spec='${libname}${shared_ext}'
15639 dynamic_linker="$host_os ld.so"
15640 shlibpath_var=LIBRARY_PATH
15641 ;;
15642
15643bsdi[45]*)
15644 version_type=linux
15645 need_version=no
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15648 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15651 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15652 # the default ld.so.conf also contains /usr/contrib/lib and
15653 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15654 # libtool to hard-code these into programs
15655 ;;
15656
15657cygwin* | mingw* | pw32*)
15658 version_type=windows
15659 shrext_cmds=".dll"
15660 need_version=no
15661 need_lib_prefix=no
15662
15663 case $GCC,$host_os in
15664 yes,cygwin* | yes,mingw* | yes,pw32*)
15665 library_names_spec='$libname.dll.a'
15666 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15667 postinstall_cmds='base_file=`basename \${file}`~
15668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15669 dldir=$destdir/`dirname \$dlpath`~
15670 test -d \$dldir || mkdir -p \$dldir~
15671 $install_prog $dir/$dlname \$dldir/$dlname~
15672 chmod a+x \$dldir/$dlname'
15673 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15674 dlpath=$dir/\$dldll~
15675 $rm \$dlpath'
15676 shlibpath_overrides_runpath=yes
15677
15678 case $host_os in
15679 cygwin*)
15680 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15681 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15682 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15683 ;;
15684 mingw*)
15685 # MinGW DLLs use traditional 'lib' prefix
15686 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15687 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15688 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15689 # It is most probably a Windows format PATH printed by
15690 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15691 # path with ; separators, and with drive letters. We can handle the
15692 # drive letters (cygwin fileutils understands them), so leave them,
15693 # especially as we might pass files found there to a mingw objdump,
15694 # which wouldn't understand a cygwinified path. Ahh.
15695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15696 else
15697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15698 fi
15699 ;;
15700 pw32*)
15701 # pw32 DLLs use 'pw' prefix rather than 'lib'
15702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15703 ;;
15704 esac
15705 ;;
15706
15707 *)
15708 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15709 ;;
15710 esac
15711 dynamic_linker='Win32 ld.exe'
15712 # FIXME: first we should search . and the directory the executable is in
15713 shlibpath_var=PATH
15714 ;;
15715
15716darwin* | rhapsody*)
15717 dynamic_linker="$host_os dyld"
15718 version_type=darwin
15719 need_lib_prefix=no
15720 need_version=no
15721 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15722 soname_spec='${libname}${release}${major}$shared_ext'
15723 shlibpath_overrides_runpath=yes
15724 shlibpath_var=DYLD_LIBRARY_PATH
15725 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
openvcdiffd1845782009-03-20 21:56:15 +000015726
openvcdiff311c7142008-08-26 19:29:25 +000015727 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15728 ;;
15729
15730dgux*)
15731 version_type=linux
15732 need_lib_prefix=no
15733 need_version=no
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15735 soname_spec='${libname}${release}${shared_ext}$major'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 ;;
15738
15739freebsd1*)
15740 dynamic_linker=no
15741 ;;
15742
openvcdiff311c7142008-08-26 19:29:25 +000015743freebsd* | dragonfly*)
15744 # DragonFly does not have aout. When/if they implement a new
15745 # versioning mechanism, adjust this.
15746 if test -x /usr/bin/objformat; then
15747 objformat=`/usr/bin/objformat`
15748 else
15749 case $host_os in
15750 freebsd[123]*) objformat=aout ;;
15751 *) objformat=elf ;;
15752 esac
15753 fi
15754 version_type=freebsd-$objformat
15755 case $version_type in
15756 freebsd-elf*)
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15758 need_version=no
15759 need_lib_prefix=no
15760 ;;
15761 freebsd-*)
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15763 need_version=yes
15764 ;;
15765 esac
15766 shlibpath_var=LD_LIBRARY_PATH
15767 case $host_os in
15768 freebsd2*)
15769 shlibpath_overrides_runpath=yes
15770 ;;
15771 freebsd3.[01]* | freebsdelf3.[01]*)
15772 shlibpath_overrides_runpath=yes
15773 hardcode_into_libs=yes
15774 ;;
15775 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15776 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15777 shlibpath_overrides_runpath=no
15778 hardcode_into_libs=yes
15779 ;;
openvcdiffd1845782009-03-20 21:56:15 +000015780 *) # from 4.6 on, and DragonFly
openvcdiff311c7142008-08-26 19:29:25 +000015781 shlibpath_overrides_runpath=yes
15782 hardcode_into_libs=yes
15783 ;;
15784 esac
15785 ;;
15786
15787gnu*)
15788 version_type=linux
15789 need_lib_prefix=no
15790 need_version=no
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15792 soname_spec='${libname}${release}${shared_ext}$major'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 hardcode_into_libs=yes
15795 ;;
15796
15797hpux9* | hpux10* | hpux11*)
15798 # Give a soname corresponding to the major version so that dld.sl refuses to
15799 # link against other versions.
15800 version_type=sunos
15801 need_lib_prefix=no
15802 need_version=no
15803 case $host_cpu in
15804 ia64*)
15805 shrext_cmds='.so'
15806 hardcode_into_libs=yes
15807 dynamic_linker="$host_os dld.so"
15808 shlibpath_var=LD_LIBRARY_PATH
15809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811 soname_spec='${libname}${release}${shared_ext}$major'
15812 if test "X$HPUX_IA64_MODE" = X32; then
15813 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15814 else
15815 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15816 fi
15817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15818 ;;
15819 hppa*64*)
15820 shrext_cmds='.sl'
15821 hardcode_into_libs=yes
15822 dynamic_linker="$host_os dld.sl"
15823 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15829 ;;
15830 *)
15831 shrext_cmds='.sl'
15832 dynamic_linker="$host_os dld.sl"
15833 shlibpath_var=SHLIB_PATH
15834 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 ;;
15838 esac
15839 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15840 postinstall_cmds='chmod 555 $lib'
15841 ;;
15842
openvcdiffd1845782009-03-20 21:56:15 +000015843interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000015844 version_type=linux
15845 need_lib_prefix=no
15846 need_version=no
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15850 shlibpath_var=LD_LIBRARY_PATH
15851 shlibpath_overrides_runpath=no
15852 hardcode_into_libs=yes
15853 ;;
15854
15855irix5* | irix6* | nonstopux*)
15856 case $host_os in
15857 nonstopux*) version_type=nonstopux ;;
15858 *)
15859 if test "$lt_cv_prog_gnu_ld" = yes; then
15860 version_type=linux
15861 else
15862 version_type=irix
15863 fi ;;
15864 esac
15865 need_lib_prefix=no
15866 need_version=no
15867 soname_spec='${libname}${release}${shared_ext}$major'
15868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15869 case $host_os in
15870 irix5* | nonstopux*)
15871 libsuff= shlibsuff=
15872 ;;
15873 *)
15874 case $LD in # libtool.m4 will add one of these switches to LD
15875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15876 libsuff= shlibsuff= libmagic=32-bit;;
15877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15878 libsuff=32 shlibsuff=N32 libmagic=N32;;
15879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15880 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15881 *) libsuff= shlibsuff= libmagic=never-match;;
15882 esac
15883 ;;
15884 esac
15885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15886 shlibpath_overrides_runpath=no
15887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15889 hardcode_into_libs=yes
15890 ;;
15891
15892# No shared lib support for Linux oldld, aout, or coff.
15893linux*oldld* | linux*aout* | linux*coff*)
15894 dynamic_linker=no
15895 ;;
15896
15897# This must be Linux ELF.
openvcdiffd1845782009-03-20 21:56:15 +000015898linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000015899 version_type=linux
15900 need_lib_prefix=no
15901 need_version=no
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15903 soname_spec='${libname}${release}${shared_ext}$major'
15904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15905 shlibpath_var=LD_LIBRARY_PATH
15906 shlibpath_overrides_runpath=no
15907 # This implies no fast_install, which is unacceptable.
15908 # Some rework will be needed to allow for fast_install
15909 # before this can be enabled.
15910 hardcode_into_libs=yes
15911
15912 # Append ld.so.conf contents to the search path
15913 if test -f /etc/ld.so.conf; then
openvcdiffd1845782009-03-20 21:56:15 +000015914 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
openvcdiff311c7142008-08-26 19:29:25 +000015915 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15916 fi
15917
15918 # We used to test for /lib/ld.so.1 and disable shared libraries on
15919 # powerpc, because MkLinux only supported shared libraries with the
15920 # GNU dynamic linker. Since this was broken with cross compilers,
15921 # most powerpc-linux boxes support dynamic linking these days and
15922 # people can always --disable-shared, the test was removed, and we
15923 # assume the GNU/Linux dynamic linker is in use.
15924 dynamic_linker='GNU/Linux ld.so'
15925 ;;
15926
15927netbsdelf*-gnu)
15928 version_type=linux
15929 need_lib_prefix=no
15930 need_version=no
15931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15932 soname_spec='${libname}${release}${shared_ext}$major'
15933 shlibpath_var=LD_LIBRARY_PATH
15934 shlibpath_overrides_runpath=no
15935 hardcode_into_libs=yes
15936 dynamic_linker='NetBSD ld.elf_so'
15937 ;;
15938
openvcdiff311c7142008-08-26 19:29:25 +000015939netbsd*)
15940 version_type=sunos
15941 need_lib_prefix=no
15942 need_version=no
15943 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15946 dynamic_linker='NetBSD (a.out) ld.so'
15947 else
15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15949 soname_spec='${libname}${release}${shared_ext}$major'
15950 dynamic_linker='NetBSD ld.elf_so'
15951 fi
15952 shlibpath_var=LD_LIBRARY_PATH
15953 shlibpath_overrides_runpath=yes
15954 hardcode_into_libs=yes
15955 ;;
15956
15957newsos6)
15958 version_type=linux
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960 shlibpath_var=LD_LIBRARY_PATH
15961 shlibpath_overrides_runpath=yes
15962 ;;
15963
15964nto-qnx*)
15965 version_type=linux
15966 need_lib_prefix=no
15967 need_version=no
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 shlibpath_var=LD_LIBRARY_PATH
15971 shlibpath_overrides_runpath=yes
15972 ;;
15973
15974openbsd*)
15975 version_type=sunos
15976 sys_lib_dlsearch_path_spec="/usr/lib"
15977 need_lib_prefix=no
15978 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15979 case $host_os in
15980 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15981 *) need_version=no ;;
15982 esac
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15985 shlibpath_var=LD_LIBRARY_PATH
15986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15987 case $host_os in
15988 openbsd2.[89] | openbsd2.[89].*)
15989 shlibpath_overrides_runpath=no
15990 ;;
15991 *)
15992 shlibpath_overrides_runpath=yes
15993 ;;
15994 esac
15995 else
15996 shlibpath_overrides_runpath=yes
15997 fi
15998 ;;
15999
16000os2*)
16001 libname_spec='$name'
16002 shrext_cmds=".dll"
16003 need_lib_prefix=no
16004 library_names_spec='$libname${shared_ext} $libname.a'
16005 dynamic_linker='OS/2 ld.exe'
16006 shlibpath_var=LIBPATH
16007 ;;
16008
16009osf3* | osf4* | osf5*)
16010 version_type=osf
16011 need_lib_prefix=no
16012 need_version=no
16013 soname_spec='${libname}${release}${shared_ext}$major'
16014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16015 shlibpath_var=LD_LIBRARY_PATH
16016 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16017 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16018 ;;
16019
openvcdiffd1845782009-03-20 21:56:15 +000016020rdos*)
16021 dynamic_linker=no
16022 ;;
16023
openvcdiff311c7142008-08-26 19:29:25 +000016024solaris*)
16025 version_type=linux
16026 need_lib_prefix=no
16027 need_version=no
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16030 shlibpath_var=LD_LIBRARY_PATH
16031 shlibpath_overrides_runpath=yes
16032 hardcode_into_libs=yes
16033 # ldd complains unless libraries are executable
16034 postinstall_cmds='chmod +x $lib'
16035 ;;
16036
16037sunos4*)
16038 version_type=sunos
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16040 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16041 shlibpath_var=LD_LIBRARY_PATH
16042 shlibpath_overrides_runpath=yes
16043 if test "$with_gnu_ld" = yes; then
16044 need_lib_prefix=no
16045 fi
16046 need_version=yes
16047 ;;
16048
16049sysv4 | sysv4.3*)
16050 version_type=linux
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052 soname_spec='${libname}${release}${shared_ext}$major'
16053 shlibpath_var=LD_LIBRARY_PATH
16054 case $host_vendor in
16055 sni)
16056 shlibpath_overrides_runpath=no
16057 need_lib_prefix=no
16058 export_dynamic_flag_spec='${wl}-Blargedynsym'
16059 runpath_var=LD_RUN_PATH
16060 ;;
16061 siemens)
16062 need_lib_prefix=no
16063 ;;
16064 motorola)
16065 need_lib_prefix=no
16066 need_version=no
16067 shlibpath_overrides_runpath=no
16068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16069 ;;
16070 esac
16071 ;;
16072
16073sysv4*MP*)
16074 if test -d /usr/nec ;then
16075 version_type=linux
16076 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16077 soname_spec='$libname${shared_ext}.$major'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 fi
16080 ;;
16081
16082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16083 version_type=freebsd-elf
16084 need_lib_prefix=no
16085 need_version=no
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 hardcode_into_libs=yes
16090 if test "$with_gnu_ld" = yes; then
16091 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16092 shlibpath_overrides_runpath=no
16093 else
16094 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16095 shlibpath_overrides_runpath=yes
16096 case $host_os in
16097 sco3.2v5*)
16098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16099 ;;
16100 esac
16101 fi
16102 sys_lib_dlsearch_path_spec='/usr/lib'
16103 ;;
16104
16105uts4*)
16106 version_type=linux
16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16108 soname_spec='${libname}${release}${shared_ext}$major'
16109 shlibpath_var=LD_LIBRARY_PATH
16110 ;;
16111
16112*)
16113 dynamic_linker=no
16114 ;;
16115esac
openvcdiffd1845782009-03-20 21:56:15 +000016116{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16117echo "${ECHO_T}$dynamic_linker" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000016118test "$dynamic_linker" = no && can_build_shared=no
16119
openvcdiffd1845782009-03-20 21:56:15 +000016120if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122else
16123 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16124fi
16125
16126sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16127if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16131fi
16132
16133sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16134
openvcdiff311c7142008-08-26 19:29:25 +000016135variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16136if test "$GCC" = yes; then
16137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16138fi
16139
openvcdiffd1845782009-03-20 21:56:15 +000016140{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16141echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000016142hardcode_action_F77=
16143if test -n "$hardcode_libdir_flag_spec_F77" || \
16144 test -n "$runpath_var_F77" || \
16145 test "X$hardcode_automatic_F77" = "Xyes" ; then
16146
16147 # We can hardcode non-existant directories.
16148 if test "$hardcode_direct_F77" != no &&
16149 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16150 # have to relink, otherwise we might link with an installed library
16151 # when we should be linking with a yet-to-be-installed one
16152 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16153 test "$hardcode_minus_L_F77" != no; then
16154 # Linking always hardcodes the temporary library directory.
16155 hardcode_action_F77=relink
16156 else
16157 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16158 hardcode_action_F77=immediate
16159 fi
16160else
16161 # We cannot hardcode anything, or else we can only hardcode existing
16162 # directories.
16163 hardcode_action_F77=unsupported
16164fi
openvcdiffd1845782009-03-20 21:56:15 +000016165{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16166echo "${ECHO_T}$hardcode_action_F77" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000016167
16168if test "$hardcode_action_F77" = relink; then
16169 # Fast installation is not supported
16170 enable_fast_install=no
16171elif test "$shlibpath_overrides_runpath" = yes ||
16172 test "$enable_shared" = no; then
16173 # Fast installation is not necessary
16174 enable_fast_install=needless
16175fi
16176
16177
16178# The else clause should only fire when bootstrapping the
16179# libtool distribution, otherwise you forgot to ship ltmain.sh
16180# with your package, and you will get complaints that there are
16181# no rules to generate ltmain.sh.
16182if test -f "$ltmain"; then
16183 # See if we are running on zsh, and set the options which allow our commands through
16184 # without removal of \ escapes.
16185 if test -n "${ZSH_VERSION+set}" ; then
16186 setopt NO_GLOB_SUBST
16187 fi
16188 # Now quote all the things that may contain metacharacters while being
16189 # careful not to overquote the AC_SUBSTed values. We take copies of the
16190 # variables and quote the copies for generation of the libtool script.
16191 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16192 SED SHELL STRIP \
16193 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16194 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16195 deplibs_check_method reload_flag reload_cmds need_locks \
16196 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16197 lt_cv_sys_global_symbol_to_c_name_address \
16198 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16199 old_postinstall_cmds old_postuninstall_cmds \
16200 compiler_F77 \
16201 CC_F77 \
16202 LD_F77 \
16203 lt_prog_compiler_wl_F77 \
16204 lt_prog_compiler_pic_F77 \
16205 lt_prog_compiler_static_F77 \
16206 lt_prog_compiler_no_builtin_flag_F77 \
16207 export_dynamic_flag_spec_F77 \
16208 thread_safe_flag_spec_F77 \
16209 whole_archive_flag_spec_F77 \
16210 enable_shared_with_static_runtimes_F77 \
16211 old_archive_cmds_F77 \
16212 old_archive_from_new_cmds_F77 \
16213 predep_objects_F77 \
16214 postdep_objects_F77 \
16215 predeps_F77 \
16216 postdeps_F77 \
16217 compiler_lib_search_path_F77 \
openvcdiffd1845782009-03-20 21:56:15 +000016218 compiler_lib_search_dirs_F77 \
openvcdiff311c7142008-08-26 19:29:25 +000016219 archive_cmds_F77 \
16220 archive_expsym_cmds_F77 \
16221 postinstall_cmds_F77 \
16222 postuninstall_cmds_F77 \
16223 old_archive_from_expsyms_cmds_F77 \
16224 allow_undefined_flag_F77 \
16225 no_undefined_flag_F77 \
16226 export_symbols_cmds_F77 \
16227 hardcode_libdir_flag_spec_F77 \
16228 hardcode_libdir_flag_spec_ld_F77 \
16229 hardcode_libdir_separator_F77 \
16230 hardcode_automatic_F77 \
16231 module_cmds_F77 \
16232 module_expsym_cmds_F77 \
16233 lt_cv_prog_compiler_c_o_F77 \
openvcdiffd1845782009-03-20 21:56:15 +000016234 fix_srcfile_path_F77 \
openvcdiff311c7142008-08-26 19:29:25 +000016235 exclude_expsyms_F77 \
16236 include_expsyms_F77; do
16237
16238 case $var in
16239 old_archive_cmds_F77 | \
16240 old_archive_from_new_cmds_F77 | \
16241 archive_cmds_F77 | \
16242 archive_expsym_cmds_F77 | \
16243 module_cmds_F77 | \
16244 module_expsym_cmds_F77 | \
16245 old_archive_from_expsyms_cmds_F77 | \
16246 export_symbols_cmds_F77 | \
16247 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16248 postinstall_cmds | postuninstall_cmds | \
16249 old_postinstall_cmds | old_postuninstall_cmds | \
16250 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16251 # Double-quote double-evaled strings.
16252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16253 ;;
16254 *)
16255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16256 ;;
16257 esac
16258 done
16259
16260 case $lt_echo in
16261 *'\$0 --fallback-echo"')
16262 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16263 ;;
16264 esac
16265
16266cfgfile="$ofile"
16267
16268 cat <<__EOF__ >> "$cfgfile"
16269# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16270
16271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16272
16273# Shell to use when invoking shell scripts.
16274SHELL=$lt_SHELL
16275
16276# Whether or not to build shared libraries.
16277build_libtool_libs=$enable_shared
16278
16279# Whether or not to build static libraries.
16280build_old_libs=$enable_static
16281
16282# Whether or not to add -lc for building shared libraries.
16283build_libtool_need_lc=$archive_cmds_need_lc_F77
16284
16285# Whether or not to disallow shared libs when runtime libs are static
16286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16287
16288# Whether or not to optimize for fast installation.
16289fast_install=$enable_fast_install
16290
16291# The host system.
16292host_alias=$host_alias
16293host=$host
16294host_os=$host_os
16295
16296# The build system.
16297build_alias=$build_alias
16298build=$build
16299build_os=$build_os
16300
16301# An echo program that does not interpret backslashes.
16302echo=$lt_echo
16303
16304# The archiver.
16305AR=$lt_AR
16306AR_FLAGS=$lt_AR_FLAGS
16307
16308# A C compiler.
16309LTCC=$lt_LTCC
16310
16311# LTCC compiler flags.
16312LTCFLAGS=$lt_LTCFLAGS
16313
16314# A language-specific compiler.
16315CC=$lt_compiler_F77
16316
16317# Is the compiler the GNU C compiler?
16318with_gcc=$GCC_F77
16319
16320# An ERE matcher.
16321EGREP=$lt_EGREP
16322
16323# The linker used to build libraries.
16324LD=$lt_LD_F77
16325
16326# Whether we need hard or soft links.
16327LN_S=$lt_LN_S
16328
16329# A BSD-compatible nm program.
16330NM=$lt_NM
16331
16332# A symbol stripping program
16333STRIP=$lt_STRIP
16334
16335# Used to examine libraries when file_magic_cmd begins "file"
16336MAGIC_CMD=$MAGIC_CMD
16337
16338# Used on cygwin: DLL creation program.
16339DLLTOOL="$DLLTOOL"
16340
16341# Used on cygwin: object dumper.
16342OBJDUMP="$OBJDUMP"
16343
16344# Used on cygwin: assembler.
16345AS="$AS"
16346
16347# The name of the directory that contains temporary libtool files.
16348objdir=$objdir
16349
16350# How to create reloadable object files.
16351reload_flag=$lt_reload_flag
16352reload_cmds=$lt_reload_cmds
16353
16354# How to pass a linker flag through the compiler.
16355wl=$lt_lt_prog_compiler_wl_F77
16356
16357# Object file suffix (normally "o").
16358objext="$ac_objext"
16359
16360# Old archive suffix (normally "a").
16361libext="$libext"
16362
16363# Shared library suffix (normally ".so").
16364shrext_cmds='$shrext_cmds'
16365
16366# Executable file suffix (normally "").
16367exeext="$exeext"
16368
16369# Additional compiler flags for building library objects.
16370pic_flag=$lt_lt_prog_compiler_pic_F77
16371pic_mode=$pic_mode
16372
16373# What is the maximum length of a command?
16374max_cmd_len=$lt_cv_sys_max_cmd_len
16375
16376# Does compiler simultaneously support -c and -o options?
16377compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16378
16379# Must we lock files when doing compilation?
16380need_locks=$lt_need_locks
16381
16382# Do we need the lib prefix for modules?
16383need_lib_prefix=$need_lib_prefix
16384
16385# Do we need a version for libraries?
16386need_version=$need_version
16387
16388# Whether dlopen is supported.
16389dlopen_support=$enable_dlopen
16390
16391# Whether dlopen of programs is supported.
16392dlopen_self=$enable_dlopen_self
16393
16394# Whether dlopen of statically linked programs is supported.
16395dlopen_self_static=$enable_dlopen_self_static
16396
16397# Compiler flag to prevent dynamic linking.
16398link_static_flag=$lt_lt_prog_compiler_static_F77
16399
16400# Compiler flag to turn off builtin functions.
16401no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16402
16403# Compiler flag to allow reflexive dlopens.
16404export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16405
16406# Compiler flag to generate shared objects directly from archives.
16407whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16408
16409# Compiler flag to generate thread-safe objects.
16410thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16411
16412# Library versioning type.
16413version_type=$version_type
16414
16415# Format of library name prefix.
16416libname_spec=$lt_libname_spec
16417
16418# List of archive names. First name is the real one, the rest are links.
16419# The last name is the one that the linker finds with -lNAME.
16420library_names_spec=$lt_library_names_spec
16421
16422# The coded name of the library, if different from the real name.
16423soname_spec=$lt_soname_spec
16424
16425# Commands used to build and install an old-style archive.
16426RANLIB=$lt_RANLIB
16427old_archive_cmds=$lt_old_archive_cmds_F77
16428old_postinstall_cmds=$lt_old_postinstall_cmds
16429old_postuninstall_cmds=$lt_old_postuninstall_cmds
16430
16431# Create an old-style archive from a shared archive.
16432old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16433
16434# Create a temporary old-style archive to link instead of a shared archive.
16435old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16436
16437# Commands used to build and install a shared archive.
16438archive_cmds=$lt_archive_cmds_F77
16439archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16440postinstall_cmds=$lt_postinstall_cmds
16441postuninstall_cmds=$lt_postuninstall_cmds
16442
16443# Commands used to build a loadable module (assumed same as above if empty)
16444module_cmds=$lt_module_cmds_F77
16445module_expsym_cmds=$lt_module_expsym_cmds_F77
16446
16447# Commands to strip libraries.
16448old_striplib=$lt_old_striplib
16449striplib=$lt_striplib
16450
16451# Dependencies to place before the objects being linked to create a
16452# shared library.
16453predep_objects=$lt_predep_objects_F77
16454
16455# Dependencies to place after the objects being linked to create a
16456# shared library.
16457postdep_objects=$lt_postdep_objects_F77
16458
16459# Dependencies to place before the objects being linked to create a
16460# shared library.
16461predeps=$lt_predeps_F77
16462
16463# Dependencies to place after the objects being linked to create a
16464# shared library.
16465postdeps=$lt_postdeps_F77
16466
openvcdiffd1845782009-03-20 21:56:15 +000016467# The directories searched by this compiler when creating a shared
16468# library
16469compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16470
openvcdiff311c7142008-08-26 19:29:25 +000016471# The library search path used internally by the compiler when linking
16472# a shared library.
16473compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16474
16475# Method to check whether dependent libraries are shared objects.
16476deplibs_check_method=$lt_deplibs_check_method
16477
16478# Command to use when deplibs_check_method == file_magic.
16479file_magic_cmd=$lt_file_magic_cmd
16480
16481# Flag that allows shared libraries with undefined symbols to be built.
16482allow_undefined_flag=$lt_allow_undefined_flag_F77
16483
16484# Flag that forces no undefined symbols.
16485no_undefined_flag=$lt_no_undefined_flag_F77
16486
16487# Commands used to finish a libtool library installation in a directory.
16488finish_cmds=$lt_finish_cmds
16489
16490# Same as above, but a single script fragment to be evaled but not shown.
16491finish_eval=$lt_finish_eval
16492
16493# Take the output of nm and produce a listing of raw symbols and C names.
16494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16495
16496# Transform the output of nm in a proper C declaration
16497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16498
16499# Transform the output of nm in a C name address pair
16500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16501
16502# This is the shared library runtime path variable.
16503runpath_var=$runpath_var
16504
16505# This is the shared library path variable.
16506shlibpath_var=$shlibpath_var
16507
16508# Is shlibpath searched before the hard-coded library search path?
16509shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16510
16511# How to hardcode a shared library path into an executable.
16512hardcode_action=$hardcode_action_F77
16513
16514# Whether we should hardcode library paths into libraries.
16515hardcode_into_libs=$hardcode_into_libs
16516
16517# Flag to hardcode \$libdir into a binary during linking.
16518# This must work even if \$libdir does not exist.
16519hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16520
16521# If ld is used when linking, flag to hardcode \$libdir into
16522# a binary during linking. This must work even if \$libdir does
16523# not exist.
16524hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16525
16526# Whether we need a single -rpath flag with a separated argument.
16527hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16528
16529# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16530# resulting binary.
16531hardcode_direct=$hardcode_direct_F77
16532
16533# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16534# resulting binary.
16535hardcode_minus_L=$hardcode_minus_L_F77
16536
16537# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16538# the resulting binary.
16539hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16540
16541# Set to yes if building a shared library automatically hardcodes DIR into the library
16542# and all subsequent libraries and executables linked against it.
16543hardcode_automatic=$hardcode_automatic_F77
16544
16545# Variables whose values should be saved in libtool wrapper scripts and
16546# restored at relink time.
16547variables_saved_for_relink="$variables_saved_for_relink"
16548
16549# Whether libtool must link a program against all its dependency libraries.
16550link_all_deplibs=$link_all_deplibs_F77
16551
16552# Compile-time system search path for libraries
16553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16554
16555# Run-time system search path for libraries
16556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16557
16558# Fix the shell variable \$srcfile for the compiler.
openvcdiffd1845782009-03-20 21:56:15 +000016559fix_srcfile_path=$lt_fix_srcfile_path
openvcdiff311c7142008-08-26 19:29:25 +000016560
16561# Set to yes if exported symbols are required.
16562always_export_symbols=$always_export_symbols_F77
16563
16564# The commands to list exported symbols.
16565export_symbols_cmds=$lt_export_symbols_cmds_F77
16566
16567# The commands to extract the exported symbol list from a shared archive.
16568extract_expsyms_cmds=$lt_extract_expsyms_cmds
16569
16570# Symbols that should not be listed in the preloaded symbols.
16571exclude_expsyms=$lt_exclude_expsyms_F77
16572
16573# Symbols that must always be exported.
16574include_expsyms=$lt_include_expsyms_F77
16575
16576# ### END LIBTOOL TAG CONFIG: $tagname
16577
16578__EOF__
16579
16580
16581else
16582 # If there is no Makefile yet, we rely on a make rule to execute
16583 # `config.status --recheck' to rerun these tests and create the
16584 # libtool script then.
16585 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16586 if test -f "$ltmain_in"; then
16587 test -f Makefile && make "$ltmain"
16588 fi
16589fi
16590
16591
16592ac_ext=c
16593ac_cpp='$CPP $CPPFLAGS'
16594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16596ac_compiler_gnu=$ac_cv_c_compiler_gnu
16597
16598CC="$lt_save_CC"
16599
16600 else
16601 tagname=""
16602 fi
16603 ;;
16604
16605 GCJ)
16606 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16607
16608
openvcdiff311c7142008-08-26 19:29:25 +000016609# Source file extension for Java test sources.
16610ac_ext=java
16611
16612# Object file extension for compiled Java test sources.
16613objext=o
16614objext_GCJ=$objext
16615
16616# Code to be used in simple compile tests
openvcdiffd1845782009-03-20 21:56:15 +000016617lt_simple_compile_test_code="class foo {}"
openvcdiff311c7142008-08-26 19:29:25 +000016618
16619# Code to be used in simple link tests
openvcdiffd1845782009-03-20 21:56:15 +000016620lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
openvcdiff311c7142008-08-26 19:29:25 +000016621
16622# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16623
16624# If no C compiler was specified, use CC.
16625LTCC=${LTCC-"$CC"}
16626
16627# If no C compiler flags were specified, use CFLAGS.
16628LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16629
16630# Allow CC to be a program name with arguments.
16631compiler=$CC
16632
16633
16634# save warnings/boilerplate of simple test code
16635ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000016636echo "$lt_simple_compile_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000016637eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16638_lt_compiler_boilerplate=`cat conftest.err`
16639$rm conftest*
16640
16641ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000016642echo "$lt_simple_link_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000016643eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16644_lt_linker_boilerplate=`cat conftest.err`
openvcdiffd1845782009-03-20 21:56:15 +000016645$rm -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +000016646
16647
16648# Allow CC to be a program name with arguments.
16649lt_save_CC="$CC"
16650CC=${GCJ-"gcj"}
16651compiler=$CC
16652compiler_GCJ=$CC
16653for cc_temp in $compiler""; do
16654 case $cc_temp in
16655 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16656 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16657 \-*) ;;
16658 *) break;;
16659 esac
16660done
16661cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16662
16663
16664# GCJ did not exist at the time GCC didn't implicitly link libc in.
16665archive_cmds_need_lc_GCJ=no
16666
16667old_archive_cmds_GCJ=$old_archive_cmds
16668
16669
16670lt_prog_compiler_no_builtin_flag_GCJ=
16671
16672if test "$GCC" = yes; then
16673 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16674
16675
openvcdiffd1845782009-03-20 21:56:15 +000016676{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16677echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000016678if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680else
16681 lt_cv_prog_compiler_rtti_exceptions=no
16682 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000016683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000016684 lt_compiler_flag="-fno-rtti -fno-exceptions"
16685 # Insert the option either (1) after the last *FLAGS variable, or
16686 # (2) before a word containing "conftest.", or (3) at the end.
16687 # Note that $ac_compile itself does not contain backslashes and begins
16688 # with a dollar sign (not a hyphen), so the echo should work correctly.
16689 # The option is referenced via a variable to avoid confusing sed.
16690 lt_compile=`echo "$ac_compile" | $SED \
16691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16693 -e 's:$: $lt_compiler_flag:'`
openvcdiffbaf44ea2009-04-09 19:20:49 +000016694 (eval echo "\"\$as_me:16694: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +000016695 (eval "$lt_compile" 2>conftest.err)
16696 ac_status=$?
16697 cat conftest.err >&5
openvcdiffbaf44ea2009-04-09 19:20:49 +000016698 echo "$as_me:16698: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +000016699 if (exit $ac_status) && test -s "$ac_outfile"; then
16700 # The compiler can only warn and ignore the option if not recognized
16701 # So say no if there are warnings other than the usual output.
16702 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16705 lt_cv_prog_compiler_rtti_exceptions=yes
16706 fi
16707 fi
16708 $rm conftest*
16709
16710fi
openvcdiffd1845782009-03-20 21:56:15 +000016711{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16712echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000016713
16714if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16715 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16716else
16717 :
16718fi
16719
16720fi
16721
16722lt_prog_compiler_wl_GCJ=
16723lt_prog_compiler_pic_GCJ=
16724lt_prog_compiler_static_GCJ=
16725
openvcdiffd1845782009-03-20 21:56:15 +000016726{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16727echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000016728
16729 if test "$GCC" = yes; then
16730 lt_prog_compiler_wl_GCJ='-Wl,'
16731 lt_prog_compiler_static_GCJ='-static'
16732
16733 case $host_os in
16734 aix*)
16735 # All AIX code is PIC.
16736 if test "$host_cpu" = ia64; then
16737 # AIX 5 now supports IA64 processor
16738 lt_prog_compiler_static_GCJ='-Bstatic'
16739 fi
16740 ;;
16741
16742 amigaos*)
16743 # FIXME: we need at least 68020 code to build shared libraries, but
16744 # adding the `-m68020' flag to GCC prevents building anything better,
16745 # like `-m68040'.
16746 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16747 ;;
16748
openvcdiffd1845782009-03-20 21:56:15 +000016749 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
openvcdiff311c7142008-08-26 19:29:25 +000016750 # PIC is the default for these OSes.
16751 ;;
16752
openvcdiffd1845782009-03-20 21:56:15 +000016753 mingw* | cygwin* | pw32* | os2*)
openvcdiff311c7142008-08-26 19:29:25 +000016754 # This hack is so that the source file can tell whether it is being
16755 # built for inclusion in a dll (and should export symbols for example).
openvcdiffd1845782009-03-20 21:56:15 +000016756 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16757 # (--disable-auto-import) libraries
16758
openvcdiff311c7142008-08-26 19:29:25 +000016759 ;;
16760
16761 darwin* | rhapsody*)
16762 # PIC is the default on this platform
16763 # Common symbols not allowed in MH_DYLIB files
16764 lt_prog_compiler_pic_GCJ='-fno-common'
16765 ;;
16766
openvcdiffd1845782009-03-20 21:56:15 +000016767 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000016768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16769 # Instead, we relocate shared libraries at runtime.
16770 ;;
16771
16772 msdosdjgpp*)
16773 # Just because we use GCC doesn't mean we suddenly get shared libraries
16774 # on systems that don't support them.
16775 lt_prog_compiler_can_build_shared_GCJ=no
16776 enable_shared=no
16777 ;;
16778
16779 sysv4*MP*)
16780 if test -d /usr/nec; then
16781 lt_prog_compiler_pic_GCJ=-Kconform_pic
16782 fi
16783 ;;
16784
16785 hpux*)
16786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16787 # not for PA HP-UX.
16788 case $host_cpu in
16789 hppa*64*|ia64*)
16790 # +Z the default
16791 ;;
16792 *)
16793 lt_prog_compiler_pic_GCJ='-fPIC'
16794 ;;
16795 esac
16796 ;;
16797
16798 *)
16799 lt_prog_compiler_pic_GCJ='-fPIC'
16800 ;;
16801 esac
16802 else
16803 # PORTME Check for flag to pass linker flags through the system compiler.
16804 case $host_os in
16805 aix*)
16806 lt_prog_compiler_wl_GCJ='-Wl,'
16807 if test "$host_cpu" = ia64; then
16808 # AIX 5 now supports IA64 processor
16809 lt_prog_compiler_static_GCJ='-Bstatic'
16810 else
16811 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16812 fi
16813 ;;
16814 darwin*)
16815 # PIC is the default on this platform
16816 # Common symbols not allowed in MH_DYLIB files
16817 case $cc_basename in
16818 xlc*)
16819 lt_prog_compiler_pic_GCJ='-qnocommon'
16820 lt_prog_compiler_wl_GCJ='-Wl,'
16821 ;;
16822 esac
16823 ;;
16824
openvcdiffd1845782009-03-20 21:56:15 +000016825 mingw* | cygwin* | pw32* | os2*)
openvcdiff311c7142008-08-26 19:29:25 +000016826 # This hack is so that the source file can tell whether it is being
16827 # built for inclusion in a dll (and should export symbols for example).
openvcdiffd1845782009-03-20 21:56:15 +000016828
openvcdiff311c7142008-08-26 19:29:25 +000016829 ;;
16830
16831 hpux9* | hpux10* | hpux11*)
16832 lt_prog_compiler_wl_GCJ='-Wl,'
16833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16834 # not for PA HP-UX.
16835 case $host_cpu in
16836 hppa*64*|ia64*)
16837 # +Z the default
16838 ;;
16839 *)
16840 lt_prog_compiler_pic_GCJ='+Z'
16841 ;;
16842 esac
16843 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16844 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16845 ;;
16846
16847 irix5* | irix6* | nonstopux*)
16848 lt_prog_compiler_wl_GCJ='-Wl,'
16849 # PIC (with -KPIC) is the default.
16850 lt_prog_compiler_static_GCJ='-non_shared'
16851 ;;
16852
16853 newsos6)
16854 lt_prog_compiler_pic_GCJ='-KPIC'
16855 lt_prog_compiler_static_GCJ='-Bstatic'
16856 ;;
16857
openvcdiffd1845782009-03-20 21:56:15 +000016858 linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000016859 case $cc_basename in
16860 icc* | ecc*)
16861 lt_prog_compiler_wl_GCJ='-Wl,'
16862 lt_prog_compiler_pic_GCJ='-KPIC'
16863 lt_prog_compiler_static_GCJ='-static'
16864 ;;
16865 pgcc* | pgf77* | pgf90* | pgf95*)
16866 # Portland Group compilers (*not* the Pentium gcc compiler,
16867 # which looks to be a dead project)
16868 lt_prog_compiler_wl_GCJ='-Wl,'
16869 lt_prog_compiler_pic_GCJ='-fpic'
16870 lt_prog_compiler_static_GCJ='-Bstatic'
16871 ;;
16872 ccc*)
16873 lt_prog_compiler_wl_GCJ='-Wl,'
16874 # All Alpha code is PIC.
16875 lt_prog_compiler_static_GCJ='-non_shared'
16876 ;;
openvcdiffd1845782009-03-20 21:56:15 +000016877 *)
16878 case `$CC -V 2>&1 | sed 5q` in
16879 *Sun\ C*)
16880 # Sun C 5.9
16881 lt_prog_compiler_pic_GCJ='-KPIC'
16882 lt_prog_compiler_static_GCJ='-Bstatic'
16883 lt_prog_compiler_wl_GCJ='-Wl,'
16884 ;;
16885 *Sun\ F*)
16886 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16887 lt_prog_compiler_pic_GCJ='-KPIC'
16888 lt_prog_compiler_static_GCJ='-Bstatic'
16889 lt_prog_compiler_wl_GCJ=''
16890 ;;
16891 esac
16892 ;;
openvcdiff311c7142008-08-26 19:29:25 +000016893 esac
16894 ;;
16895
16896 osf3* | osf4* | osf5*)
16897 lt_prog_compiler_wl_GCJ='-Wl,'
16898 # All OSF/1 code is PIC.
16899 lt_prog_compiler_static_GCJ='-non_shared'
16900 ;;
16901
openvcdiffd1845782009-03-20 21:56:15 +000016902 rdos*)
16903 lt_prog_compiler_static_GCJ='-non_shared'
16904 ;;
16905
openvcdiff311c7142008-08-26 19:29:25 +000016906 solaris*)
16907 lt_prog_compiler_pic_GCJ='-KPIC'
16908 lt_prog_compiler_static_GCJ='-Bstatic'
16909 case $cc_basename in
16910 f77* | f90* | f95*)
16911 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16912 *)
16913 lt_prog_compiler_wl_GCJ='-Wl,';;
16914 esac
16915 ;;
16916
16917 sunos4*)
16918 lt_prog_compiler_wl_GCJ='-Qoption ld '
16919 lt_prog_compiler_pic_GCJ='-PIC'
16920 lt_prog_compiler_static_GCJ='-Bstatic'
16921 ;;
16922
16923 sysv4 | sysv4.2uw2* | sysv4.3*)
16924 lt_prog_compiler_wl_GCJ='-Wl,'
16925 lt_prog_compiler_pic_GCJ='-KPIC'
16926 lt_prog_compiler_static_GCJ='-Bstatic'
16927 ;;
16928
16929 sysv4*MP*)
16930 if test -d /usr/nec ;then
16931 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16932 lt_prog_compiler_static_GCJ='-Bstatic'
16933 fi
16934 ;;
16935
16936 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16937 lt_prog_compiler_wl_GCJ='-Wl,'
16938 lt_prog_compiler_pic_GCJ='-KPIC'
16939 lt_prog_compiler_static_GCJ='-Bstatic'
16940 ;;
16941
16942 unicos*)
16943 lt_prog_compiler_wl_GCJ='-Wl,'
16944 lt_prog_compiler_can_build_shared_GCJ=no
16945 ;;
16946
16947 uts4*)
16948 lt_prog_compiler_pic_GCJ='-pic'
16949 lt_prog_compiler_static_GCJ='-Bstatic'
16950 ;;
16951
16952 *)
16953 lt_prog_compiler_can_build_shared_GCJ=no
16954 ;;
16955 esac
16956 fi
16957
openvcdiffd1845782009-03-20 21:56:15 +000016958{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16959echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000016960
16961#
16962# Check to make sure the PIC flag actually works.
16963#
16964if test -n "$lt_prog_compiler_pic_GCJ"; then
16965
openvcdiffd1845782009-03-20 21:56:15 +000016966{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16967echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16968if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
openvcdiff311c7142008-08-26 19:29:25 +000016969 echo $ECHO_N "(cached) $ECHO_C" >&6
16970else
openvcdiffd1845782009-03-20 21:56:15 +000016971 lt_cv_prog_compiler_pic_works_GCJ=no
openvcdiff311c7142008-08-26 19:29:25 +000016972 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000016973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000016974 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16975 # Insert the option either (1) after the last *FLAGS variable, or
16976 # (2) before a word containing "conftest.", or (3) at the end.
16977 # Note that $ac_compile itself does not contain backslashes and begins
16978 # with a dollar sign (not a hyphen), so the echo should work correctly.
16979 # The option is referenced via a variable to avoid confusing sed.
16980 lt_compile=`echo "$ac_compile" | $SED \
16981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16983 -e 's:$: $lt_compiler_flag:'`
openvcdiffbaf44ea2009-04-09 19:20:49 +000016984 (eval echo "\"\$as_me:16984: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +000016985 (eval "$lt_compile" 2>conftest.err)
16986 ac_status=$?
16987 cat conftest.err >&5
openvcdiffbaf44ea2009-04-09 19:20:49 +000016988 echo "$as_me:16988: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +000016989 if (exit $ac_status) && test -s "$ac_outfile"; then
16990 # The compiler can only warn and ignore the option if not recognized
16991 # So say no if there are warnings other than the usual output.
16992 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +000016995 lt_cv_prog_compiler_pic_works_GCJ=yes
openvcdiff311c7142008-08-26 19:29:25 +000016996 fi
16997 fi
16998 $rm conftest*
16999
17000fi
openvcdiffd1845782009-03-20 21:56:15 +000017001{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17002echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000017003
openvcdiffd1845782009-03-20 21:56:15 +000017004if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +000017005 case $lt_prog_compiler_pic_GCJ in
17006 "" | " "*) ;;
17007 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17008 esac
17009else
17010 lt_prog_compiler_pic_GCJ=
17011 lt_prog_compiler_can_build_shared_GCJ=no
17012fi
17013
17014fi
17015case $host_os in
17016 # For platforms which do not support PIC, -DPIC is meaningless:
17017 *djgpp*)
17018 lt_prog_compiler_pic_GCJ=
17019 ;;
17020 *)
17021 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17022 ;;
17023esac
17024
17025#
17026# Check to make sure the static flag actually works.
17027#
17028wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
openvcdiffd1845782009-03-20 21:56:15 +000017029{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17030echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17031if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
openvcdiff311c7142008-08-26 19:29:25 +000017032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
openvcdiffd1845782009-03-20 21:56:15 +000017034 lt_cv_prog_compiler_static_works_GCJ=no
openvcdiff311c7142008-08-26 19:29:25 +000017035 save_LDFLAGS="$LDFLAGS"
17036 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
openvcdiffd1845782009-03-20 21:56:15 +000017037 echo "$lt_simple_link_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000017038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17039 # The linker can only warn and ignore the option if not recognized
17040 # So say no if there are warnings
17041 if test -s conftest.err; then
17042 # Append any errors to the config.log.
17043 cat conftest.err 1>&5
17044 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17046 if diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +000017047 lt_cv_prog_compiler_static_works_GCJ=yes
openvcdiff311c7142008-08-26 19:29:25 +000017048 fi
17049 else
openvcdiffd1845782009-03-20 21:56:15 +000017050 lt_cv_prog_compiler_static_works_GCJ=yes
openvcdiff311c7142008-08-26 19:29:25 +000017051 fi
17052 fi
openvcdiffd1845782009-03-20 21:56:15 +000017053 $rm -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +000017054 LDFLAGS="$save_LDFLAGS"
17055
17056fi
openvcdiffd1845782009-03-20 21:56:15 +000017057{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17058echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000017059
openvcdiffd1845782009-03-20 21:56:15 +000017060if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +000017061 :
17062else
17063 lt_prog_compiler_static_GCJ=
17064fi
17065
17066
openvcdiffd1845782009-03-20 21:56:15 +000017067{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17068echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000017069if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071else
17072 lt_cv_prog_compiler_c_o_GCJ=no
17073 $rm -r conftest 2>/dev/null
17074 mkdir conftest
17075 cd conftest
17076 mkdir out
openvcdiffd1845782009-03-20 21:56:15 +000017077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000017078
17079 lt_compiler_flag="-o out/conftest2.$ac_objext"
17080 # Insert the option either (1) after the last *FLAGS variable, or
17081 # (2) before a word containing "conftest.", or (3) at the end.
17082 # Note that $ac_compile itself does not contain backslashes and begins
17083 # with a dollar sign (not a hyphen), so the echo should work correctly.
17084 lt_compile=`echo "$ac_compile" | $SED \
17085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17087 -e 's:$: $lt_compiler_flag:'`
openvcdiffbaf44ea2009-04-09 19:20:49 +000017088 (eval echo "\"\$as_me:17088: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +000017089 (eval "$lt_compile" 2>out/conftest.err)
17090 ac_status=$?
17091 cat out/conftest.err >&5
openvcdiffbaf44ea2009-04-09 19:20:49 +000017092 echo "$as_me:17092: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +000017093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17094 then
17095 # The compiler can only warn and ignore the option if not recognized
17096 # So say no if there are warnings
17097 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17098 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17100 lt_cv_prog_compiler_c_o_GCJ=yes
17101 fi
17102 fi
17103 chmod u+w . 2>&5
17104 $rm conftest*
17105 # SGI C++ compiler will create directory out/ii_files/ for
17106 # template instantiation
17107 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17108 $rm out/* && rmdir out
17109 cd ..
17110 rmdir conftest
17111 $rm conftest*
17112
17113fi
openvcdiffd1845782009-03-20 21:56:15 +000017114{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17115echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000017116
17117
17118hard_links="nottested"
17119if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17120 # do not overwrite the value of need_locks provided by the user
openvcdiffd1845782009-03-20 21:56:15 +000017121 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17122echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000017123 hard_links=yes
17124 $rm conftest*
17125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17126 touch conftest.a
17127 ln conftest.a conftest.b 2>&5 || hard_links=no
17128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
openvcdiffd1845782009-03-20 21:56:15 +000017129 { echo "$as_me:$LINENO: result: $hard_links" >&5
17130echo "${ECHO_T}$hard_links" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000017131 if test "$hard_links" = no; then
17132 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17133echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17134 need_locks=warn
17135 fi
17136else
17137 need_locks=no
17138fi
17139
openvcdiffd1845782009-03-20 21:56:15 +000017140{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17141echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000017142
17143 runpath_var=
17144 allow_undefined_flag_GCJ=
17145 enable_shared_with_static_runtimes_GCJ=no
17146 archive_cmds_GCJ=
17147 archive_expsym_cmds_GCJ=
17148 old_archive_From_new_cmds_GCJ=
17149 old_archive_from_expsyms_cmds_GCJ=
17150 export_dynamic_flag_spec_GCJ=
17151 whole_archive_flag_spec_GCJ=
17152 thread_safe_flag_spec_GCJ=
17153 hardcode_libdir_flag_spec_GCJ=
17154 hardcode_libdir_flag_spec_ld_GCJ=
17155 hardcode_libdir_separator_GCJ=
17156 hardcode_direct_GCJ=no
17157 hardcode_minus_L_GCJ=no
17158 hardcode_shlibpath_var_GCJ=unsupported
17159 link_all_deplibs_GCJ=unknown
17160 hardcode_automatic_GCJ=no
17161 module_cmds_GCJ=
17162 module_expsym_cmds_GCJ=
17163 always_export_symbols_GCJ=no
17164 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17165 # include_expsyms should be a list of space-separated symbols to be *always*
17166 # included in the symbol list
17167 include_expsyms_GCJ=
17168 # exclude_expsyms can be an extended regexp of symbols to exclude
17169 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17170 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17171 # as well as any symbol that contains `d'.
openvcdiffd1845782009-03-20 21:56:15 +000017172 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
openvcdiff311c7142008-08-26 19:29:25 +000017173 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17174 # platforms (ab)use it in PIC code, but their linkers get confused if
17175 # the symbol is explicitly referenced. Since portable code cannot
17176 # rely on this symbol name, it's probably fine to never include it in
17177 # preloaded symbol tables.
openvcdiffd1845782009-03-20 21:56:15 +000017178 # Exclude shared library initialization/finalization symbols.
openvcdiff311c7142008-08-26 19:29:25 +000017179 extract_expsyms_cmds=
17180 # Just being paranoid about ensuring that cc_basename is set.
17181 for cc_temp in $compiler""; do
17182 case $cc_temp in
17183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17185 \-*) ;;
17186 *) break;;
17187 esac
17188done
17189cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17190
17191 case $host_os in
17192 cygwin* | mingw* | pw32*)
17193 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17194 # When not using gcc, we currently assume that we are using
17195 # Microsoft Visual C++.
17196 if test "$GCC" != yes; then
17197 with_gnu_ld=no
17198 fi
17199 ;;
17200 interix*)
17201 # we just hope/assume this is gcc and not c89 (= MSVC++)
17202 with_gnu_ld=yes
17203 ;;
17204 openbsd*)
17205 with_gnu_ld=no
17206 ;;
17207 esac
17208
17209 ld_shlibs_GCJ=yes
17210 if test "$with_gnu_ld" = yes; then
17211 # If archive_cmds runs LD, not CC, wlarc should be empty
17212 wlarc='${wl}'
17213
17214 # Set some defaults for GNU ld with shared library support. These
17215 # are reset later if shared libraries are not supported. Putting them
17216 # here allows them to be overridden if necessary.
17217 runpath_var=LD_RUN_PATH
17218 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17219 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17220 # ancient GNU ld didn't support --whole-archive et. al.
17221 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17222 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17223 else
17224 whole_archive_flag_spec_GCJ=
17225 fi
17226 supports_anon_versioning=no
17227 case `$LD -v 2>/dev/null` in
17228 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17229 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17230 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17231 *\ 2.11.*) ;; # other 2.11 versions
17232 *) supports_anon_versioning=yes ;;
17233 esac
17234
17235 # See if GNU ld supports shared libraries.
17236 case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +000017237 aix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000017238 # On AIX/PPC, the GNU linker is very broken
17239 if test "$host_cpu" != ia64; then
17240 ld_shlibs_GCJ=no
17241 cat <<EOF 1>&2
17242
17243*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17244*** to be unable to reliably create shared libraries on AIX.
17245*** Therefore, libtool is disabling shared libraries support. If you
17246*** really care for shared libraries, you may want to modify your PATH
17247*** so that a non-GNU linker is found, and then restart.
17248
17249EOF
17250 fi
17251 ;;
17252
17253 amigaos*)
17254 archive_cmds_GCJ='$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)'
17255 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17256 hardcode_minus_L_GCJ=yes
17257
17258 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17259 # that the semantics of dynamic libraries on AmigaOS, at least up
17260 # to version 4, is to share data among multiple programs linked
17261 # with the same dynamic library. Since this doesn't match the
17262 # behavior of shared libraries on other platforms, we can't use
17263 # them.
17264 ld_shlibs_GCJ=no
17265 ;;
17266
17267 beos*)
17268 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17269 allow_undefined_flag_GCJ=unsupported
17270 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17271 # support --undefined. This deserves some investigation. FIXME
17272 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17273 else
17274 ld_shlibs_GCJ=no
17275 fi
17276 ;;
17277
17278 cygwin* | mingw* | pw32*)
17279 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17280 # as there is no search path for DLLs.
17281 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282 allow_undefined_flag_GCJ=unsupported
17283 always_export_symbols_GCJ=no
17284 enable_shared_with_static_runtimes_GCJ=yes
openvcdiffd1845782009-03-20 21:56:15 +000017285 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
openvcdiff311c7142008-08-26 19:29:25 +000017286
17287 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17288 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17289 # If the export-symbols file already is a .def file (1st line
17290 # is EXPORTS), use it as is; otherwise, prepend...
17291 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17292 cp $export_symbols $output_objdir/$soname.def;
17293 else
17294 echo EXPORTS > $output_objdir/$soname.def;
17295 cat $export_symbols >> $output_objdir/$soname.def;
17296 fi~
17297 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17298 else
17299 ld_shlibs_GCJ=no
17300 fi
17301 ;;
17302
openvcdiffd1845782009-03-20 21:56:15 +000017303 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000017304 hardcode_direct_GCJ=no
17305 hardcode_shlibpath_var_GCJ=no
17306 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17307 export_dynamic_flag_spec_GCJ='${wl}-E'
17308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17309 # Instead, shared libraries are loaded at an image base (0x10000000 by
17310 # default) and relocated if they conflict, which is a slow very memory
17311 # consuming and fragmenting process. To avoid this, we pick a random,
17312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17314 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17315 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17316 ;;
17317
openvcdiffd1845782009-03-20 21:56:15 +000017318 gnu* | linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000017319 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17320 tmp_addflag=
17321 case $cc_basename,$host_cpu in
17322 pgcc*) # Portland Group C compiler
17323 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17324 tmp_addflag=' $pic_flag'
17325 ;;
17326 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17327 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17328 tmp_addflag=' $pic_flag -Mnomain' ;;
17329 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17330 tmp_addflag=' -i_dynamic' ;;
17331 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17332 tmp_addflag=' -i_dynamic -nofor_main' ;;
17333 ifc* | ifort*) # Intel Fortran compiler
17334 tmp_addflag=' -nofor_main' ;;
17335 esac
openvcdiffd1845782009-03-20 21:56:15 +000017336 case `$CC -V 2>&1 | sed 5q` in
17337 *Sun\ C*) # Sun C 5.9
17338 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17339 tmp_sharedflag='-G' ;;
17340 *Sun\ F*) # Sun Fortran 8.3
17341 tmp_sharedflag='-G' ;;
17342 *)
17343 tmp_sharedflag='-shared' ;;
17344 esac
17345 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +000017346
17347 if test $supports_anon_versioning = yes; then
17348 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17350 $echo "local: *; };" >> $output_objdir/$libname.ver~
openvcdiffd1845782009-03-20 21:56:15 +000017351 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +000017352 fi
17353 link_all_deplibs_GCJ=no
17354 else
17355 ld_shlibs_GCJ=no
17356 fi
17357 ;;
17358
openvcdiffd1845782009-03-20 21:56:15 +000017359 netbsd* | netbsdelf*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000017360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17361 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17362 wlarc=
17363 else
17364 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17365 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17366 fi
17367 ;;
17368
17369 solaris*)
17370 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17371 ld_shlibs_GCJ=no
17372 cat <<EOF 1>&2
17373
17374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17375*** create shared libraries on Solaris systems. Therefore, libtool
17376*** is disabling shared libraries support. We urge you to upgrade GNU
17377*** binutils to release 2.9.1 or newer. Another option is to modify
17378*** your PATH or compiler configuration so that the native linker is
17379*** used, and then restart.
17380
17381EOF
17382 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17383 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17384 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17385 else
17386 ld_shlibs_GCJ=no
17387 fi
17388 ;;
17389
17390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17391 case `$LD -v 2>&1` in
17392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17393 ld_shlibs_GCJ=no
17394 cat <<_LT_EOF 1>&2
17395
17396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17397*** reliably create shared libraries on SCO systems. Therefore, libtool
17398*** is disabling shared libraries support. We urge you to upgrade GNU
17399*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17400*** your PATH or compiler configuration so that the native linker is
17401*** used, and then restart.
17402
17403_LT_EOF
17404 ;;
17405 *)
17406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17407 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17408 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17409 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17410 else
17411 ld_shlibs_GCJ=no
17412 fi
17413 ;;
17414 esac
17415 ;;
17416
17417 sunos4*)
17418 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17419 wlarc=
17420 hardcode_direct_GCJ=yes
17421 hardcode_shlibpath_var_GCJ=no
17422 ;;
17423
17424 *)
17425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17426 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17427 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17428 else
17429 ld_shlibs_GCJ=no
17430 fi
17431 ;;
17432 esac
17433
17434 if test "$ld_shlibs_GCJ" = no; then
17435 runpath_var=
17436 hardcode_libdir_flag_spec_GCJ=
17437 export_dynamic_flag_spec_GCJ=
17438 whole_archive_flag_spec_GCJ=
17439 fi
17440 else
17441 # PORTME fill in a description of your system's linker (not GNU ld)
17442 case $host_os in
17443 aix3*)
17444 allow_undefined_flag_GCJ=unsupported
17445 always_export_symbols_GCJ=yes
17446 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17447 # Note: this linker hardcodes the directories in LIBPATH if there
17448 # are no directories specified by -L.
17449 hardcode_minus_L_GCJ=yes
17450 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17451 # Neither direct hardcoding nor static linking is supported with a
17452 # broken collect2.
17453 hardcode_direct_GCJ=unsupported
17454 fi
17455 ;;
17456
openvcdiffd1845782009-03-20 21:56:15 +000017457 aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000017458 if test "$host_cpu" = ia64; then
17459 # On IA64, the linker does run time linking by default, so we don't
17460 # have to do anything special.
17461 aix_use_runtimelinking=no
17462 exp_sym_flag='-Bexport'
17463 no_entry_flag=""
17464 else
17465 # If we're using GNU nm, then we don't want the "-C" option.
17466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17467 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17468 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17469 else
17470 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17471 fi
17472 aix_use_runtimelinking=no
17473
17474 # Test if we are trying to use run time linking or normal
17475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17476 # need to do runtime linking.
openvcdiffd1845782009-03-20 21:56:15 +000017477 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000017478 for ld_flag in $LDFLAGS; do
17479 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17480 aix_use_runtimelinking=yes
17481 break
17482 fi
17483 done
17484 ;;
17485 esac
17486
17487 exp_sym_flag='-bexport'
17488 no_entry_flag='-bnoentry'
17489 fi
17490
17491 # When large executables or shared objects are built, AIX ld can
17492 # have problems creating the table of contents. If linking a library
17493 # or program results in "error TOC overflow" add -mminimal-toc to
17494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17496
17497 archive_cmds_GCJ=''
17498 hardcode_direct_GCJ=yes
17499 hardcode_libdir_separator_GCJ=':'
17500 link_all_deplibs_GCJ=yes
17501
17502 if test "$GCC" = yes; then
17503 case $host_os in aix4.[012]|aix4.[012].*)
17504 # We only want to do this on AIX 4.2 and lower, the check
17505 # below for broken collect2 doesn't work under 4.3+
17506 collect2name=`${CC} -print-prog-name=collect2`
17507 if test -f "$collect2name" && \
17508 strings "$collect2name" | grep resolve_lib_name >/dev/null
17509 then
17510 # We have reworked collect2
openvcdiffd1845782009-03-20 21:56:15 +000017511 :
openvcdiff311c7142008-08-26 19:29:25 +000017512 else
17513 # We have old collect2
17514 hardcode_direct_GCJ=unsupported
17515 # It fails to find uninstalled libraries when the uninstalled
17516 # path is not listed in the libpath. Setting hardcode_minus_L
17517 # to unsupported forces relinking
17518 hardcode_minus_L_GCJ=yes
17519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17520 hardcode_libdir_separator_GCJ=
17521 fi
17522 ;;
17523 esac
17524 shared_flag='-shared'
17525 if test "$aix_use_runtimelinking" = yes; then
17526 shared_flag="$shared_flag "'${wl}-G'
17527 fi
17528 else
17529 # not using gcc
17530 if test "$host_cpu" = ia64; then
17531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17532 # chokes on -Wl,-G. The following line is correct:
17533 shared_flag='-G'
17534 else
17535 if test "$aix_use_runtimelinking" = yes; then
17536 shared_flag='${wl}-G'
17537 else
17538 shared_flag='${wl}-bM:SRE'
17539 fi
17540 fi
17541 fi
17542
17543 # It seems that -bexpall does not export symbols beginning with
17544 # underscore (_), so it is better to generate a list of symbols to export.
17545 always_export_symbols_GCJ=yes
17546 if test "$aix_use_runtimelinking" = yes; then
17547 # Warning - without using the other runtime loading flags (-brtl),
17548 # -berok will link without error, but may produce a broken library.
17549 allow_undefined_flag_GCJ='-berok'
17550 # Determine the default libpath from the value encoded in an empty executable.
17551 cat >conftest.$ac_ext <<_ACEOF
17552/* confdefs.h. */
17553_ACEOF
17554cat confdefs.h >>conftest.$ac_ext
17555cat >>conftest.$ac_ext <<_ACEOF
17556/* end confdefs.h. */
17557
17558int
17559main ()
17560{
17561
17562 ;
17563 return 0;
17564}
17565_ACEOF
17566rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000017567if { (ac_try="$ac_link"
17568case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571esac
17572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000017574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000017579 (exit $ac_status); } && {
17580 test -z "$ac_c_werror_flag" ||
17581 test ! -s conftest.err
17582 } && test -s conftest$ac_exeext &&
17583 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000017584
openvcdiffd1845782009-03-20 21:56:15 +000017585lt_aix_libpath_sed='
17586 /Import File Strings/,/^$/ {
17587 /^0/ {
17588 s/^0 *\(.*\)$/\1/
17589 p
17590 }
17591 }'
17592aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
openvcdiff311c7142008-08-26 19:29:25 +000017593# Check for a 64-bit object if we didn't find anything.
openvcdiffd1845782009-03-20 21:56:15 +000017594if test -z "$aix_libpath"; then
17595 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17596fi
openvcdiff311c7142008-08-26 19:29:25 +000017597else
17598 echo "$as_me: failed program was:" >&5
17599sed 's/^/| /' conftest.$ac_ext >&5
17600
openvcdiffd1845782009-03-20 21:56:15 +000017601
openvcdiff311c7142008-08-26 19:29:25 +000017602fi
openvcdiffd1845782009-03-20 21:56:15 +000017603
17604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000017605 conftest$ac_exeext conftest.$ac_ext
17606if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17607
17608 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17609 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17610 else
17611 if test "$host_cpu" = ia64; then
17612 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17613 allow_undefined_flag_GCJ="-z nodefs"
17614 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17615 else
17616 # Determine the default libpath from the value encoded in an empty executable.
17617 cat >conftest.$ac_ext <<_ACEOF
17618/* confdefs.h. */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h. */
17623
17624int
17625main ()
17626{
17627
17628 ;
17629 return 0;
17630}
17631_ACEOF
17632rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000017633if { (ac_try="$ac_link"
17634case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17637esac
17638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000017640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000017645 (exit $ac_status); } && {
17646 test -z "$ac_c_werror_flag" ||
17647 test ! -s conftest.err
17648 } && test -s conftest$ac_exeext &&
17649 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000017650
openvcdiffd1845782009-03-20 21:56:15 +000017651lt_aix_libpath_sed='
17652 /Import File Strings/,/^$/ {
17653 /^0/ {
17654 s/^0 *\(.*\)$/\1/
17655 p
17656 }
17657 }'
17658aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
openvcdiff311c7142008-08-26 19:29:25 +000017659# Check for a 64-bit object if we didn't find anything.
openvcdiffd1845782009-03-20 21:56:15 +000017660if test -z "$aix_libpath"; then
17661 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17662fi
openvcdiff311c7142008-08-26 19:29:25 +000017663else
17664 echo "$as_me: failed program was:" >&5
17665sed 's/^/| /' conftest.$ac_ext >&5
17666
openvcdiffd1845782009-03-20 21:56:15 +000017667
openvcdiff311c7142008-08-26 19:29:25 +000017668fi
openvcdiffd1845782009-03-20 21:56:15 +000017669
17670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000017671 conftest$ac_exeext conftest.$ac_ext
17672if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17673
17674 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17675 # Warning - without using the other run time loading flags,
17676 # -berok will link without error, but may produce a broken library.
17677 no_undefined_flag_GCJ=' ${wl}-bernotok'
17678 allow_undefined_flag_GCJ=' ${wl}-berok'
17679 # Exported symbols can be pulled into shared objects from archives
17680 whole_archive_flag_spec_GCJ='$convenience'
17681 archive_cmds_need_lc_GCJ=yes
17682 # This is similar to how AIX traditionally builds its shared libraries.
17683 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17684 fi
17685 fi
17686 ;;
17687
17688 amigaos*)
17689 archive_cmds_GCJ='$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)'
17690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17691 hardcode_minus_L_GCJ=yes
17692 # see comment about different semantics on the GNU ld section
17693 ld_shlibs_GCJ=no
17694 ;;
17695
17696 bsdi[45]*)
17697 export_dynamic_flag_spec_GCJ=-rdynamic
17698 ;;
17699
17700 cygwin* | mingw* | pw32*)
17701 # When not using gcc, we currently assume that we are using
17702 # Microsoft Visual C++.
17703 # hardcode_libdir_flag_spec is actually meaningless, as there is
17704 # no search path for DLLs.
17705 hardcode_libdir_flag_spec_GCJ=' '
17706 allow_undefined_flag_GCJ=unsupported
17707 # Tell ltmain to make .lib files, not .a files.
17708 libext=lib
17709 # Tell ltmain to make .dll files, not .so files.
17710 shrext_cmds=".dll"
17711 # FIXME: Setting linknames here is a bad hack.
17712 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17713 # The linker will automatically build a .lib file if we build a DLL.
17714 old_archive_From_new_cmds_GCJ='true'
17715 # FIXME: Should let the user specify the lib program.
openvcdiffd1845782009-03-20 21:56:15 +000017716 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
openvcdiff311c7142008-08-26 19:29:25 +000017717 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17718 enable_shared_with_static_runtimes_GCJ=yes
17719 ;;
17720
17721 darwin* | rhapsody*)
17722 case $host_os in
17723 rhapsody* | darwin1.[012])
17724 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17725 ;;
17726 *) # Darwin 1.3 on
17727 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17728 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17729 else
17730 case ${MACOSX_DEPLOYMENT_TARGET} in
17731 10.[012])
17732 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17733 ;;
17734 10.*)
17735 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17736 ;;
17737 esac
17738 fi
17739 ;;
17740 esac
17741 archive_cmds_need_lc_GCJ=no
17742 hardcode_direct_GCJ=no
17743 hardcode_automatic_GCJ=yes
17744 hardcode_shlibpath_var_GCJ=unsupported
17745 whole_archive_flag_spec_GCJ=''
17746 link_all_deplibs_GCJ=yes
17747 if test "$GCC" = yes ; then
17748 output_verbose_link_cmd='echo'
openvcdiffd1845782009-03-20 21:56:15 +000017749 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17750 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17751 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17752 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
openvcdiff311c7142008-08-26 19:29:25 +000017753 else
17754 case $cc_basename in
17755 xlc*)
17756 output_verbose_link_cmd='echo'
openvcdiffd1845782009-03-20 21:56:15 +000017757 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
openvcdiff311c7142008-08-26 19:29:25 +000017758 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17759 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
openvcdiffd1845782009-03-20 21:56:15 +000017760 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
openvcdiff311c7142008-08-26 19:29:25 +000017761 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17762 ;;
17763 *)
17764 ld_shlibs_GCJ=no
17765 ;;
17766 esac
17767 fi
17768 ;;
17769
17770 dgux*)
17771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17772 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17773 hardcode_shlibpath_var_GCJ=no
17774 ;;
17775
17776 freebsd1*)
17777 ld_shlibs_GCJ=no
17778 ;;
17779
17780 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17781 # support. Future versions do this automatically, but an explicit c++rt0.o
17782 # does not break anything, and helps significantly (at the cost of a little
17783 # extra space).
17784 freebsd2.2*)
17785 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17786 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17787 hardcode_direct_GCJ=yes
17788 hardcode_shlibpath_var_GCJ=no
17789 ;;
17790
17791 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17792 freebsd2*)
17793 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17794 hardcode_direct_GCJ=yes
17795 hardcode_minus_L_GCJ=yes
17796 hardcode_shlibpath_var_GCJ=no
17797 ;;
17798
17799 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17800 freebsd* | dragonfly*)
17801 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17802 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17803 hardcode_direct_GCJ=yes
17804 hardcode_shlibpath_var_GCJ=no
17805 ;;
17806
openvcdiff311c7142008-08-26 19:29:25 +000017807 hpux9*)
17808 if test "$GCC" = yes; then
17809 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17810 else
17811 archive_cmds_GCJ='$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'
17812 fi
17813 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17814 hardcode_libdir_separator_GCJ=:
17815 hardcode_direct_GCJ=yes
17816
17817 # hardcode_minus_L: Not really in the search PATH,
17818 # but as the default location of the library.
17819 hardcode_minus_L_GCJ=yes
17820 export_dynamic_flag_spec_GCJ='${wl}-E'
17821 ;;
17822
17823 hpux10*)
17824 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17825 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17826 else
17827 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17828 fi
17829 if test "$with_gnu_ld" = no; then
17830 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17831 hardcode_libdir_separator_GCJ=:
17832
17833 hardcode_direct_GCJ=yes
17834 export_dynamic_flag_spec_GCJ='${wl}-E'
17835
17836 # hardcode_minus_L: Not really in the search PATH,
17837 # but as the default location of the library.
17838 hardcode_minus_L_GCJ=yes
17839 fi
17840 ;;
17841
17842 hpux11*)
17843 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17844 case $host_cpu in
17845 hppa*64*)
17846 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17847 ;;
17848 ia64*)
17849 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17850 ;;
17851 *)
17852 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17853 ;;
17854 esac
17855 else
17856 case $host_cpu in
17857 hppa*64*)
17858 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17859 ;;
17860 ia64*)
17861 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17862 ;;
17863 *)
17864 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17865 ;;
17866 esac
17867 fi
17868 if test "$with_gnu_ld" = no; then
17869 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17870 hardcode_libdir_separator_GCJ=:
17871
17872 case $host_cpu in
17873 hppa*64*|ia64*)
17874 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17875 hardcode_direct_GCJ=no
17876 hardcode_shlibpath_var_GCJ=no
17877 ;;
17878 *)
17879 hardcode_direct_GCJ=yes
17880 export_dynamic_flag_spec_GCJ='${wl}-E'
17881
17882 # hardcode_minus_L: Not really in the search PATH,
17883 # but as the default location of the library.
17884 hardcode_minus_L_GCJ=yes
17885 ;;
17886 esac
17887 fi
17888 ;;
17889
17890 irix5* | irix6* | nonstopux*)
17891 if test "$GCC" = yes; then
17892 archive_cmds_GCJ='$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'
17893 else
17894 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17895 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17896 fi
17897 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17898 hardcode_libdir_separator_GCJ=:
17899 link_all_deplibs_GCJ=yes
17900 ;;
17901
openvcdiffd1845782009-03-20 21:56:15 +000017902 netbsd* | netbsdelf*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000017903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17905 else
17906 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17907 fi
17908 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17909 hardcode_direct_GCJ=yes
17910 hardcode_shlibpath_var_GCJ=no
17911 ;;
17912
17913 newsos6)
17914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17915 hardcode_direct_GCJ=yes
17916 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17917 hardcode_libdir_separator_GCJ=:
17918 hardcode_shlibpath_var_GCJ=no
17919 ;;
17920
17921 openbsd*)
openvcdiffd1845782009-03-20 21:56:15 +000017922 if test -f /usr/libexec/ld.so; then
17923 hardcode_direct_GCJ=yes
17924 hardcode_shlibpath_var_GCJ=no
17925 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17926 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17927 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17928 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17929 export_dynamic_flag_spec_GCJ='${wl}-E'
17930 else
17931 case $host_os in
17932 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17933 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17934 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17935 ;;
17936 *)
17937 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17938 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17939 ;;
17940 esac
17941 fi
openvcdiff311c7142008-08-26 19:29:25 +000017942 else
openvcdiffd1845782009-03-20 21:56:15 +000017943 ld_shlibs_GCJ=no
openvcdiff311c7142008-08-26 19:29:25 +000017944 fi
17945 ;;
17946
17947 os2*)
17948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17949 hardcode_minus_L_GCJ=yes
17950 allow_undefined_flag_GCJ=unsupported
17951 archive_cmds_GCJ='$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'
17952 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17953 ;;
17954
17955 osf3*)
17956 if test "$GCC" = yes; then
17957 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17958 archive_cmds_GCJ='$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'
17959 else
17960 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17961 archive_cmds_GCJ='$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'
17962 fi
17963 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17964 hardcode_libdir_separator_GCJ=:
17965 ;;
17966
17967 osf4* | osf5*) # as osf3* with the addition of -msym flag
17968 if test "$GCC" = yes; then
17969 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17970 archive_cmds_GCJ='$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'
17971 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17972 else
17973 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17974 archive_cmds_GCJ='$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'
17975 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17976 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17977
17978 # Both c and cxx compiler support -rpath directly
17979 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17980 fi
17981 hardcode_libdir_separator_GCJ=:
17982 ;;
17983
17984 solaris*)
17985 no_undefined_flag_GCJ=' -z text'
17986 if test "$GCC" = yes; then
17987 wlarc='${wl}'
17988 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17989 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17990 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17991 else
17992 wlarc=''
17993 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17994 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17995 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17996 fi
17997 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998 hardcode_shlibpath_var_GCJ=no
17999 case $host_os in
18000 solaris2.[0-5] | solaris2.[0-5].*) ;;
18001 *)
openvcdiffd1845782009-03-20 21:56:15 +000018002 # The compiler driver will combine and reorder linker options,
18003 # but understands `-z linker_flag'. GCC discards it without `$wl',
18004 # but is careful enough not to reorder.
openvcdiff311c7142008-08-26 19:29:25 +000018005 # Supported since Solaris 2.6 (maybe 2.5.1?)
openvcdiffd1845782009-03-20 21:56:15 +000018006 if test "$GCC" = yes; then
18007 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18008 else
18009 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18010 fi
18011 ;;
openvcdiff311c7142008-08-26 19:29:25 +000018012 esac
18013 link_all_deplibs_GCJ=yes
18014 ;;
18015
18016 sunos4*)
18017 if test "x$host_vendor" = xsequent; then
18018 # Use $CC to link under sequent, because it throws in some extra .o
18019 # files that make .init and .fini sections work.
18020 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18021 else
18022 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18023 fi
18024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18025 hardcode_direct_GCJ=yes
18026 hardcode_minus_L_GCJ=yes
18027 hardcode_shlibpath_var_GCJ=no
18028 ;;
18029
18030 sysv4)
18031 case $host_vendor in
18032 sni)
18033 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18034 hardcode_direct_GCJ=yes # is this really true???
18035 ;;
18036 siemens)
18037 ## LD is ld it makes a PLAMLIB
18038 ## CC just makes a GrossModule.
18039 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18040 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18041 hardcode_direct_GCJ=no
18042 ;;
18043 motorola)
18044 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18045 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18046 ;;
18047 esac
18048 runpath_var='LD_RUN_PATH'
18049 hardcode_shlibpath_var_GCJ=no
18050 ;;
18051
18052 sysv4.3*)
18053 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18054 hardcode_shlibpath_var_GCJ=no
18055 export_dynamic_flag_spec_GCJ='-Bexport'
18056 ;;
18057
18058 sysv4*MP*)
18059 if test -d /usr/nec; then
18060 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18061 hardcode_shlibpath_var_GCJ=no
18062 runpath_var=LD_RUN_PATH
18063 hardcode_runpath_var=yes
18064 ld_shlibs_GCJ=yes
18065 fi
18066 ;;
18067
openvcdiffd1845782009-03-20 21:56:15 +000018068 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
openvcdiff311c7142008-08-26 19:29:25 +000018069 no_undefined_flag_GCJ='${wl}-z,text'
18070 archive_cmds_need_lc_GCJ=no
18071 hardcode_shlibpath_var_GCJ=no
18072 runpath_var='LD_RUN_PATH'
18073
18074 if test "$GCC" = yes; then
18075 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18076 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18077 else
18078 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18079 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18080 fi
18081 ;;
18082
18083 sysv5* | sco3.2v5* | sco5v6*)
18084 # Note: We can NOT use -z defs as we might desire, because we do not
18085 # link with -lc, and that would cause any symbols used from libc to
18086 # always be unresolved, which means just about no library would
18087 # ever link correctly. If we're not using GNU ld we use -z text
18088 # though, which does catch some bad symbols but isn't as heavy-handed
18089 # as -z defs.
18090 no_undefined_flag_GCJ='${wl}-z,text'
18091 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18092 archive_cmds_need_lc_GCJ=no
18093 hardcode_shlibpath_var_GCJ=no
18094 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18095 hardcode_libdir_separator_GCJ=':'
18096 link_all_deplibs_GCJ=yes
18097 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18098 runpath_var='LD_RUN_PATH'
18099
18100 if test "$GCC" = yes; then
18101 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18102 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18103 else
18104 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18106 fi
18107 ;;
18108
18109 uts4*)
18110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18112 hardcode_shlibpath_var_GCJ=no
18113 ;;
18114
18115 *)
18116 ld_shlibs_GCJ=no
18117 ;;
18118 esac
18119 fi
18120
openvcdiffd1845782009-03-20 21:56:15 +000018121{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18122echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000018123test "$ld_shlibs_GCJ" = no && can_build_shared=no
18124
18125#
18126# Do we need to explicitly link libc?
18127#
18128case "x$archive_cmds_need_lc_GCJ" in
18129x|xyes)
18130 # Assume -lc should be added
18131 archive_cmds_need_lc_GCJ=yes
18132
18133 if test "$enable_shared" = yes && test "$GCC" = yes; then
18134 case $archive_cmds_GCJ in
18135 *'~'*)
18136 # FIXME: we may have to deal with multi-command sequences.
18137 ;;
18138 '$CC '*)
18139 # Test whether the compiler implicitly links with -lc since on some
18140 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18141 # to ld, don't add -lc before -lgcc.
openvcdiffd1845782009-03-20 21:56:15 +000018142 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18143echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000018144 $rm conftest*
openvcdiffd1845782009-03-20 21:56:15 +000018145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000018146
18147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18148 (eval $ac_compile) 2>&5
18149 ac_status=$?
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } 2>conftest.err; then
18152 soname=conftest
18153 lib=conftest
18154 libobjs=conftest.$ac_objext
18155 deplibs=
18156 wl=$lt_prog_compiler_wl_GCJ
18157 pic_flag=$lt_prog_compiler_pic_GCJ
18158 compiler_flags=-v
18159 linker_flags=-v
18160 verstring=
18161 output_objdir=.
18162 libname=conftest
18163 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18164 allow_undefined_flag_GCJ=
18165 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18166 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }
18170 then
18171 archive_cmds_need_lc_GCJ=no
18172 else
18173 archive_cmds_need_lc_GCJ=yes
18174 fi
18175 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18176 else
18177 cat conftest.err 1>&5
18178 fi
18179 $rm conftest*
openvcdiffd1845782009-03-20 21:56:15 +000018180 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18181echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000018182 ;;
18183 esac
18184 fi
18185 ;;
18186esac
18187
openvcdiffd1845782009-03-20 21:56:15 +000018188{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18189echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000018190library_names_spec=
18191libname_spec='lib$name'
18192soname_spec=
18193shrext_cmds=".so"
18194postinstall_cmds=
18195postuninstall_cmds=
18196finish_cmds=
18197finish_eval=
18198shlibpath_var=
18199shlibpath_overrides_runpath=unknown
18200version_type=none
18201dynamic_linker="$host_os ld.so"
18202sys_lib_dlsearch_path_spec="/lib /usr/lib"
openvcdiffd1845782009-03-20 21:56:15 +000018203
openvcdiff311c7142008-08-26 19:29:25 +000018204need_lib_prefix=unknown
18205hardcode_into_libs=no
18206
18207# when you set need_version to no, make sure it does not cause -set_version
18208# flags to be left without arguments
18209need_version=unknown
18210
18211case $host_os in
18212aix3*)
18213 version_type=linux
18214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18215 shlibpath_var=LIBPATH
18216
18217 # AIX 3 has no versioning support, so we append a major version to the name.
18218 soname_spec='${libname}${release}${shared_ext}$major'
18219 ;;
18220
openvcdiffd1845782009-03-20 21:56:15 +000018221aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000018222 version_type=linux
18223 need_lib_prefix=no
18224 need_version=no
18225 hardcode_into_libs=yes
18226 if test "$host_cpu" = ia64; then
18227 # AIX 5 supports IA64
18228 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18229 shlibpath_var=LD_LIBRARY_PATH
18230 else
18231 # With GCC up to 2.95.x, collect2 would create an import file
18232 # for dependence libraries. The import file would start with
18233 # the line `#! .'. This would cause the generated library to
18234 # depend on `.', always an invalid library. This was fixed in
18235 # development snapshots of GCC prior to 3.0.
18236 case $host_os in
18237 aix4 | aix4.[01] | aix4.[01].*)
18238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18239 echo ' yes '
18240 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18241 :
18242 else
18243 can_build_shared=no
18244 fi
18245 ;;
18246 esac
18247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18248 # soname into executable. Probably we can add versioning support to
18249 # collect2, so additional links can be useful in future.
18250 if test "$aix_use_runtimelinking" = yes; then
18251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18252 # instead of lib<name>.a to let people know that these are not
18253 # typical AIX shared libraries.
18254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18255 else
18256 # We preserve .a as extension for shared libraries through AIX4.2
18257 # and later when we are not doing run time linking.
18258 library_names_spec='${libname}${release}.a $libname.a'
18259 soname_spec='${libname}${release}${shared_ext}$major'
18260 fi
18261 shlibpath_var=LIBPATH
18262 fi
18263 ;;
18264
18265amigaos*)
18266 library_names_spec='$libname.ixlibrary $libname.a'
18267 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18268 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'
18269 ;;
18270
18271beos*)
18272 library_names_spec='${libname}${shared_ext}'
18273 dynamic_linker="$host_os ld.so"
18274 shlibpath_var=LIBRARY_PATH
18275 ;;
18276
18277bsdi[45]*)
18278 version_type=linux
18279 need_version=no
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18281 soname_spec='${libname}${release}${shared_ext}$major'
18282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18283 shlibpath_var=LD_LIBRARY_PATH
18284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18286 # the default ld.so.conf also contains /usr/contrib/lib and
18287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18288 # libtool to hard-code these into programs
18289 ;;
18290
18291cygwin* | mingw* | pw32*)
18292 version_type=windows
18293 shrext_cmds=".dll"
18294 need_version=no
18295 need_lib_prefix=no
18296
18297 case $GCC,$host_os in
18298 yes,cygwin* | yes,mingw* | yes,pw32*)
18299 library_names_spec='$libname.dll.a'
18300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18301 postinstall_cmds='base_file=`basename \${file}`~
18302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18303 dldir=$destdir/`dirname \$dlpath`~
18304 test -d \$dldir || mkdir -p \$dldir~
18305 $install_prog $dir/$dlname \$dldir/$dlname~
18306 chmod a+x \$dldir/$dlname'
18307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18308 dlpath=$dir/\$dldll~
18309 $rm \$dlpath'
18310 shlibpath_overrides_runpath=yes
18311
18312 case $host_os in
18313 cygwin*)
18314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18315 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18316 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18317 ;;
18318 mingw*)
18319 # MinGW DLLs use traditional 'lib' prefix
18320 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18321 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18322 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18323 # It is most probably a Windows format PATH printed by
18324 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18325 # path with ; separators, and with drive letters. We can handle the
18326 # drive letters (cygwin fileutils understands them), so leave them,
18327 # especially as we might pass files found there to a mingw objdump,
18328 # which wouldn't understand a cygwinified path. Ahh.
18329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18330 else
18331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18332 fi
18333 ;;
18334 pw32*)
18335 # pw32 DLLs use 'pw' prefix rather than 'lib'
18336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18337 ;;
18338 esac
18339 ;;
18340
18341 *)
18342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18343 ;;
18344 esac
18345 dynamic_linker='Win32 ld.exe'
18346 # FIXME: first we should search . and the directory the executable is in
18347 shlibpath_var=PATH
18348 ;;
18349
18350darwin* | rhapsody*)
18351 dynamic_linker="$host_os dyld"
18352 version_type=darwin
18353 need_lib_prefix=no
18354 need_version=no
18355 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18356 soname_spec='${libname}${release}${major}$shared_ext'
18357 shlibpath_overrides_runpath=yes
18358 shlibpath_var=DYLD_LIBRARY_PATH
18359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
openvcdiffd1845782009-03-20 21:56:15 +000018360
openvcdiff311c7142008-08-26 19:29:25 +000018361 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18362 ;;
18363
18364dgux*)
18365 version_type=linux
18366 need_lib_prefix=no
18367 need_version=no
18368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18369 soname_spec='${libname}${release}${shared_ext}$major'
18370 shlibpath_var=LD_LIBRARY_PATH
18371 ;;
18372
18373freebsd1*)
18374 dynamic_linker=no
18375 ;;
18376
openvcdiff311c7142008-08-26 19:29:25 +000018377freebsd* | dragonfly*)
18378 # DragonFly does not have aout. When/if they implement a new
18379 # versioning mechanism, adjust this.
18380 if test -x /usr/bin/objformat; then
18381 objformat=`/usr/bin/objformat`
18382 else
18383 case $host_os in
18384 freebsd[123]*) objformat=aout ;;
18385 *) objformat=elf ;;
18386 esac
18387 fi
18388 version_type=freebsd-$objformat
18389 case $version_type in
18390 freebsd-elf*)
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18392 need_version=no
18393 need_lib_prefix=no
18394 ;;
18395 freebsd-*)
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18397 need_version=yes
18398 ;;
18399 esac
18400 shlibpath_var=LD_LIBRARY_PATH
18401 case $host_os in
18402 freebsd2*)
18403 shlibpath_overrides_runpath=yes
18404 ;;
18405 freebsd3.[01]* | freebsdelf3.[01]*)
18406 shlibpath_overrides_runpath=yes
18407 hardcode_into_libs=yes
18408 ;;
18409 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18410 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18411 shlibpath_overrides_runpath=no
18412 hardcode_into_libs=yes
18413 ;;
openvcdiffd1845782009-03-20 21:56:15 +000018414 *) # from 4.6 on, and DragonFly
openvcdiff311c7142008-08-26 19:29:25 +000018415 shlibpath_overrides_runpath=yes
18416 hardcode_into_libs=yes
18417 ;;
18418 esac
18419 ;;
18420
18421gnu*)
18422 version_type=linux
18423 need_lib_prefix=no
18424 need_version=no
18425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18426 soname_spec='${libname}${release}${shared_ext}$major'
18427 shlibpath_var=LD_LIBRARY_PATH
18428 hardcode_into_libs=yes
18429 ;;
18430
18431hpux9* | hpux10* | hpux11*)
18432 # Give a soname corresponding to the major version so that dld.sl refuses to
18433 # link against other versions.
18434 version_type=sunos
18435 need_lib_prefix=no
18436 need_version=no
18437 case $host_cpu in
18438 ia64*)
18439 shrext_cmds='.so'
18440 hardcode_into_libs=yes
18441 dynamic_linker="$host_os dld.so"
18442 shlibpath_var=LD_LIBRARY_PATH
18443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18445 soname_spec='${libname}${release}${shared_ext}$major'
18446 if test "X$HPUX_IA64_MODE" = X32; then
18447 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18448 else
18449 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18450 fi
18451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18452 ;;
18453 hppa*64*)
18454 shrext_cmds='.sl'
18455 hardcode_into_libs=yes
18456 dynamic_linker="$host_os dld.sl"
18457 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18460 soname_spec='${libname}${release}${shared_ext}$major'
18461 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18463 ;;
18464 *)
18465 shrext_cmds='.sl'
18466 dynamic_linker="$host_os dld.sl"
18467 shlibpath_var=SHLIB_PATH
18468 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18470 soname_spec='${libname}${release}${shared_ext}$major'
18471 ;;
18472 esac
18473 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18474 postinstall_cmds='chmod 555 $lib'
18475 ;;
18476
openvcdiffd1845782009-03-20 21:56:15 +000018477interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000018478 version_type=linux
18479 need_lib_prefix=no
18480 need_version=no
18481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18482 soname_spec='${libname}${release}${shared_ext}$major'
18483 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18484 shlibpath_var=LD_LIBRARY_PATH
18485 shlibpath_overrides_runpath=no
18486 hardcode_into_libs=yes
18487 ;;
18488
18489irix5* | irix6* | nonstopux*)
18490 case $host_os in
18491 nonstopux*) version_type=nonstopux ;;
18492 *)
18493 if test "$lt_cv_prog_gnu_ld" = yes; then
18494 version_type=linux
18495 else
18496 version_type=irix
18497 fi ;;
18498 esac
18499 need_lib_prefix=no
18500 need_version=no
18501 soname_spec='${libname}${release}${shared_ext}$major'
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18503 case $host_os in
18504 irix5* | nonstopux*)
18505 libsuff= shlibsuff=
18506 ;;
18507 *)
18508 case $LD in # libtool.m4 will add one of these switches to LD
18509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18510 libsuff= shlibsuff= libmagic=32-bit;;
18511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18512 libsuff=32 shlibsuff=N32 libmagic=N32;;
18513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18515 *) libsuff= shlibsuff= libmagic=never-match;;
18516 esac
18517 ;;
18518 esac
18519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18520 shlibpath_overrides_runpath=no
18521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18523 hardcode_into_libs=yes
18524 ;;
18525
18526# No shared lib support for Linux oldld, aout, or coff.
18527linux*oldld* | linux*aout* | linux*coff*)
18528 dynamic_linker=no
18529 ;;
18530
18531# This must be Linux ELF.
openvcdiffd1845782009-03-20 21:56:15 +000018532linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000018533 version_type=linux
18534 need_lib_prefix=no
18535 need_version=no
18536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537 soname_spec='${libname}${release}${shared_ext}$major'
18538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18539 shlibpath_var=LD_LIBRARY_PATH
18540 shlibpath_overrides_runpath=no
18541 # This implies no fast_install, which is unacceptable.
18542 # Some rework will be needed to allow for fast_install
18543 # before this can be enabled.
18544 hardcode_into_libs=yes
18545
18546 # Append ld.so.conf contents to the search path
18547 if test -f /etc/ld.so.conf; then
openvcdiffd1845782009-03-20 21:56:15 +000018548 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
openvcdiff311c7142008-08-26 19:29:25 +000018549 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18550 fi
18551
18552 # We used to test for /lib/ld.so.1 and disable shared libraries on
18553 # powerpc, because MkLinux only supported shared libraries with the
18554 # GNU dynamic linker. Since this was broken with cross compilers,
18555 # most powerpc-linux boxes support dynamic linking these days and
18556 # people can always --disable-shared, the test was removed, and we
18557 # assume the GNU/Linux dynamic linker is in use.
18558 dynamic_linker='GNU/Linux ld.so'
18559 ;;
18560
18561netbsdelf*-gnu)
18562 version_type=linux
18563 need_lib_prefix=no
18564 need_version=no
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 shlibpath_overrides_runpath=no
18569 hardcode_into_libs=yes
18570 dynamic_linker='NetBSD ld.elf_so'
18571 ;;
18572
openvcdiff311c7142008-08-26 19:29:25 +000018573netbsd*)
18574 version_type=sunos
18575 need_lib_prefix=no
18576 need_version=no
18577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18580 dynamic_linker='NetBSD (a.out) ld.so'
18581 else
18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18583 soname_spec='${libname}${release}${shared_ext}$major'
18584 dynamic_linker='NetBSD ld.elf_so'
18585 fi
18586 shlibpath_var=LD_LIBRARY_PATH
18587 shlibpath_overrides_runpath=yes
18588 hardcode_into_libs=yes
18589 ;;
18590
18591newsos6)
18592 version_type=linux
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 shlibpath_var=LD_LIBRARY_PATH
18595 shlibpath_overrides_runpath=yes
18596 ;;
18597
18598nto-qnx*)
18599 version_type=linux
18600 need_lib_prefix=no
18601 need_version=no
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18603 soname_spec='${libname}${release}${shared_ext}$major'
18604 shlibpath_var=LD_LIBRARY_PATH
18605 shlibpath_overrides_runpath=yes
18606 ;;
18607
18608openbsd*)
18609 version_type=sunos
18610 sys_lib_dlsearch_path_spec="/usr/lib"
18611 need_lib_prefix=no
18612 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18613 case $host_os in
18614 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18615 *) need_version=no ;;
18616 esac
18617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18619 shlibpath_var=LD_LIBRARY_PATH
18620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18621 case $host_os in
18622 openbsd2.[89] | openbsd2.[89].*)
18623 shlibpath_overrides_runpath=no
18624 ;;
18625 *)
18626 shlibpath_overrides_runpath=yes
18627 ;;
18628 esac
18629 else
18630 shlibpath_overrides_runpath=yes
18631 fi
18632 ;;
18633
18634os2*)
18635 libname_spec='$name'
18636 shrext_cmds=".dll"
18637 need_lib_prefix=no
18638 library_names_spec='$libname${shared_ext} $libname.a'
18639 dynamic_linker='OS/2 ld.exe'
18640 shlibpath_var=LIBPATH
18641 ;;
18642
18643osf3* | osf4* | osf5*)
18644 version_type=osf
18645 need_lib_prefix=no
18646 need_version=no
18647 soname_spec='${libname}${release}${shared_ext}$major'
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18649 shlibpath_var=LD_LIBRARY_PATH
18650 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18651 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18652 ;;
18653
openvcdiffd1845782009-03-20 21:56:15 +000018654rdos*)
18655 dynamic_linker=no
18656 ;;
18657
openvcdiff311c7142008-08-26 19:29:25 +000018658solaris*)
18659 version_type=linux
18660 need_lib_prefix=no
18661 need_version=no
18662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18663 soname_spec='${libname}${release}${shared_ext}$major'
18664 shlibpath_var=LD_LIBRARY_PATH
18665 shlibpath_overrides_runpath=yes
18666 hardcode_into_libs=yes
18667 # ldd complains unless libraries are executable
18668 postinstall_cmds='chmod +x $lib'
18669 ;;
18670
18671sunos4*)
18672 version_type=sunos
18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18674 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18675 shlibpath_var=LD_LIBRARY_PATH
18676 shlibpath_overrides_runpath=yes
18677 if test "$with_gnu_ld" = yes; then
18678 need_lib_prefix=no
18679 fi
18680 need_version=yes
18681 ;;
18682
18683sysv4 | sysv4.3*)
18684 version_type=linux
18685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18686 soname_spec='${libname}${release}${shared_ext}$major'
18687 shlibpath_var=LD_LIBRARY_PATH
18688 case $host_vendor in
18689 sni)
18690 shlibpath_overrides_runpath=no
18691 need_lib_prefix=no
18692 export_dynamic_flag_spec='${wl}-Blargedynsym'
18693 runpath_var=LD_RUN_PATH
18694 ;;
18695 siemens)
18696 need_lib_prefix=no
18697 ;;
18698 motorola)
18699 need_lib_prefix=no
18700 need_version=no
18701 shlibpath_overrides_runpath=no
18702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18703 ;;
18704 esac
18705 ;;
18706
18707sysv4*MP*)
18708 if test -d /usr/nec ;then
18709 version_type=linux
18710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18711 soname_spec='$libname${shared_ext}.$major'
18712 shlibpath_var=LD_LIBRARY_PATH
18713 fi
18714 ;;
18715
18716sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18717 version_type=freebsd-elf
18718 need_lib_prefix=no
18719 need_version=no
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18721 soname_spec='${libname}${release}${shared_ext}$major'
18722 shlibpath_var=LD_LIBRARY_PATH
18723 hardcode_into_libs=yes
18724 if test "$with_gnu_ld" = yes; then
18725 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18726 shlibpath_overrides_runpath=no
18727 else
18728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18729 shlibpath_overrides_runpath=yes
18730 case $host_os in
18731 sco3.2v5*)
18732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18733 ;;
18734 esac
18735 fi
18736 sys_lib_dlsearch_path_spec='/usr/lib'
18737 ;;
18738
18739uts4*)
18740 version_type=linux
18741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742 soname_spec='${libname}${release}${shared_ext}$major'
18743 shlibpath_var=LD_LIBRARY_PATH
18744 ;;
18745
18746*)
18747 dynamic_linker=no
18748 ;;
18749esac
openvcdiffd1845782009-03-20 21:56:15 +000018750{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18751echo "${ECHO_T}$dynamic_linker" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000018752test "$dynamic_linker" = no && can_build_shared=no
18753
openvcdiffd1845782009-03-20 21:56:15 +000018754if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18756else
18757 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18758fi
18759
18760sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18761if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18763else
18764 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18765fi
18766
18767sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18768
openvcdiff311c7142008-08-26 19:29:25 +000018769variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18770if test "$GCC" = yes; then
18771 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18772fi
18773
openvcdiffd1845782009-03-20 21:56:15 +000018774{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18775echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000018776hardcode_action_GCJ=
18777if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18778 test -n "$runpath_var_GCJ" || \
18779 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18780
18781 # We can hardcode non-existant directories.
18782 if test "$hardcode_direct_GCJ" != no &&
18783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18784 # have to relink, otherwise we might link with an installed library
18785 # when we should be linking with a yet-to-be-installed one
18786 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18787 test "$hardcode_minus_L_GCJ" != no; then
18788 # Linking always hardcodes the temporary library directory.
18789 hardcode_action_GCJ=relink
18790 else
18791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18792 hardcode_action_GCJ=immediate
18793 fi
18794else
18795 # We cannot hardcode anything, or else we can only hardcode existing
18796 # directories.
18797 hardcode_action_GCJ=unsupported
18798fi
openvcdiffd1845782009-03-20 21:56:15 +000018799{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18800echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000018801
18802if test "$hardcode_action_GCJ" = relink; then
18803 # Fast installation is not supported
18804 enable_fast_install=no
18805elif test "$shlibpath_overrides_runpath" = yes ||
18806 test "$enable_shared" = no; then
18807 # Fast installation is not necessary
18808 enable_fast_install=needless
18809fi
18810
18811
18812# The else clause should only fire when bootstrapping the
18813# libtool distribution, otherwise you forgot to ship ltmain.sh
18814# with your package, and you will get complaints that there are
18815# no rules to generate ltmain.sh.
18816if test -f "$ltmain"; then
18817 # See if we are running on zsh, and set the options which allow our commands through
18818 # without removal of \ escapes.
18819 if test -n "${ZSH_VERSION+set}" ; then
18820 setopt NO_GLOB_SUBST
18821 fi
18822 # Now quote all the things that may contain metacharacters while being
18823 # careful not to overquote the AC_SUBSTed values. We take copies of the
18824 # variables and quote the copies for generation of the libtool script.
18825 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18826 SED SHELL STRIP \
18827 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18828 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18829 deplibs_check_method reload_flag reload_cmds need_locks \
18830 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18831 lt_cv_sys_global_symbol_to_c_name_address \
18832 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18833 old_postinstall_cmds old_postuninstall_cmds \
18834 compiler_GCJ \
18835 CC_GCJ \
18836 LD_GCJ \
18837 lt_prog_compiler_wl_GCJ \
18838 lt_prog_compiler_pic_GCJ \
18839 lt_prog_compiler_static_GCJ \
18840 lt_prog_compiler_no_builtin_flag_GCJ \
18841 export_dynamic_flag_spec_GCJ \
18842 thread_safe_flag_spec_GCJ \
18843 whole_archive_flag_spec_GCJ \
18844 enable_shared_with_static_runtimes_GCJ \
18845 old_archive_cmds_GCJ \
18846 old_archive_from_new_cmds_GCJ \
18847 predep_objects_GCJ \
18848 postdep_objects_GCJ \
18849 predeps_GCJ \
18850 postdeps_GCJ \
18851 compiler_lib_search_path_GCJ \
openvcdiffd1845782009-03-20 21:56:15 +000018852 compiler_lib_search_dirs_GCJ \
openvcdiff311c7142008-08-26 19:29:25 +000018853 archive_cmds_GCJ \
18854 archive_expsym_cmds_GCJ \
18855 postinstall_cmds_GCJ \
18856 postuninstall_cmds_GCJ \
18857 old_archive_from_expsyms_cmds_GCJ \
18858 allow_undefined_flag_GCJ \
18859 no_undefined_flag_GCJ \
18860 export_symbols_cmds_GCJ \
18861 hardcode_libdir_flag_spec_GCJ \
18862 hardcode_libdir_flag_spec_ld_GCJ \
18863 hardcode_libdir_separator_GCJ \
18864 hardcode_automatic_GCJ \
18865 module_cmds_GCJ \
18866 module_expsym_cmds_GCJ \
18867 lt_cv_prog_compiler_c_o_GCJ \
openvcdiffd1845782009-03-20 21:56:15 +000018868 fix_srcfile_path_GCJ \
openvcdiff311c7142008-08-26 19:29:25 +000018869 exclude_expsyms_GCJ \
18870 include_expsyms_GCJ; do
18871
18872 case $var in
18873 old_archive_cmds_GCJ | \
18874 old_archive_from_new_cmds_GCJ | \
18875 archive_cmds_GCJ | \
18876 archive_expsym_cmds_GCJ | \
18877 module_cmds_GCJ | \
18878 module_expsym_cmds_GCJ | \
18879 old_archive_from_expsyms_cmds_GCJ | \
18880 export_symbols_cmds_GCJ | \
18881 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18882 postinstall_cmds | postuninstall_cmds | \
18883 old_postinstall_cmds | old_postuninstall_cmds | \
18884 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18885 # Double-quote double-evaled strings.
18886 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18887 ;;
18888 *)
18889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18890 ;;
18891 esac
18892 done
18893
18894 case $lt_echo in
18895 *'\$0 --fallback-echo"')
18896 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18897 ;;
18898 esac
18899
18900cfgfile="$ofile"
18901
18902 cat <<__EOF__ >> "$cfgfile"
18903# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18904
18905# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18906
18907# Shell to use when invoking shell scripts.
18908SHELL=$lt_SHELL
18909
18910# Whether or not to build shared libraries.
18911build_libtool_libs=$enable_shared
18912
18913# Whether or not to build static libraries.
18914build_old_libs=$enable_static
18915
18916# Whether or not to add -lc for building shared libraries.
18917build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18918
18919# Whether or not to disallow shared libs when runtime libs are static
18920allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18921
18922# Whether or not to optimize for fast installation.
18923fast_install=$enable_fast_install
18924
18925# The host system.
18926host_alias=$host_alias
18927host=$host
18928host_os=$host_os
18929
18930# The build system.
18931build_alias=$build_alias
18932build=$build
18933build_os=$build_os
18934
18935# An echo program that does not interpret backslashes.
18936echo=$lt_echo
18937
18938# The archiver.
18939AR=$lt_AR
18940AR_FLAGS=$lt_AR_FLAGS
18941
18942# A C compiler.
18943LTCC=$lt_LTCC
18944
18945# LTCC compiler flags.
18946LTCFLAGS=$lt_LTCFLAGS
18947
18948# A language-specific compiler.
18949CC=$lt_compiler_GCJ
18950
18951# Is the compiler the GNU C compiler?
18952with_gcc=$GCC_GCJ
18953
18954# An ERE matcher.
18955EGREP=$lt_EGREP
18956
18957# The linker used to build libraries.
18958LD=$lt_LD_GCJ
18959
18960# Whether we need hard or soft links.
18961LN_S=$lt_LN_S
18962
18963# A BSD-compatible nm program.
18964NM=$lt_NM
18965
18966# A symbol stripping program
18967STRIP=$lt_STRIP
18968
18969# Used to examine libraries when file_magic_cmd begins "file"
18970MAGIC_CMD=$MAGIC_CMD
18971
18972# Used on cygwin: DLL creation program.
18973DLLTOOL="$DLLTOOL"
18974
18975# Used on cygwin: object dumper.
18976OBJDUMP="$OBJDUMP"
18977
18978# Used on cygwin: assembler.
18979AS="$AS"
18980
18981# The name of the directory that contains temporary libtool files.
18982objdir=$objdir
18983
18984# How to create reloadable object files.
18985reload_flag=$lt_reload_flag
18986reload_cmds=$lt_reload_cmds
18987
18988# How to pass a linker flag through the compiler.
18989wl=$lt_lt_prog_compiler_wl_GCJ
18990
18991# Object file suffix (normally "o").
18992objext="$ac_objext"
18993
18994# Old archive suffix (normally "a").
18995libext="$libext"
18996
18997# Shared library suffix (normally ".so").
18998shrext_cmds='$shrext_cmds'
18999
19000# Executable file suffix (normally "").
19001exeext="$exeext"
19002
19003# Additional compiler flags for building library objects.
19004pic_flag=$lt_lt_prog_compiler_pic_GCJ
19005pic_mode=$pic_mode
19006
19007# What is the maximum length of a command?
19008max_cmd_len=$lt_cv_sys_max_cmd_len
19009
19010# Does compiler simultaneously support -c and -o options?
19011compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19012
19013# Must we lock files when doing compilation?
19014need_locks=$lt_need_locks
19015
19016# Do we need the lib prefix for modules?
19017need_lib_prefix=$need_lib_prefix
19018
19019# Do we need a version for libraries?
19020need_version=$need_version
19021
19022# Whether dlopen is supported.
19023dlopen_support=$enable_dlopen
19024
19025# Whether dlopen of programs is supported.
19026dlopen_self=$enable_dlopen_self
19027
19028# Whether dlopen of statically linked programs is supported.
19029dlopen_self_static=$enable_dlopen_self_static
19030
19031# Compiler flag to prevent dynamic linking.
19032link_static_flag=$lt_lt_prog_compiler_static_GCJ
19033
19034# Compiler flag to turn off builtin functions.
19035no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19036
19037# Compiler flag to allow reflexive dlopens.
19038export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19039
19040# Compiler flag to generate shared objects directly from archives.
19041whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19042
19043# Compiler flag to generate thread-safe objects.
19044thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19045
19046# Library versioning type.
19047version_type=$version_type
19048
19049# Format of library name prefix.
19050libname_spec=$lt_libname_spec
19051
19052# List of archive names. First name is the real one, the rest are links.
19053# The last name is the one that the linker finds with -lNAME.
19054library_names_spec=$lt_library_names_spec
19055
19056# The coded name of the library, if different from the real name.
19057soname_spec=$lt_soname_spec
19058
19059# Commands used to build and install an old-style archive.
19060RANLIB=$lt_RANLIB
19061old_archive_cmds=$lt_old_archive_cmds_GCJ
19062old_postinstall_cmds=$lt_old_postinstall_cmds
19063old_postuninstall_cmds=$lt_old_postuninstall_cmds
19064
19065# Create an old-style archive from a shared archive.
19066old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19067
19068# Create a temporary old-style archive to link instead of a shared archive.
19069old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19070
19071# Commands used to build and install a shared archive.
19072archive_cmds=$lt_archive_cmds_GCJ
19073archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19074postinstall_cmds=$lt_postinstall_cmds
19075postuninstall_cmds=$lt_postuninstall_cmds
19076
19077# Commands used to build a loadable module (assumed same as above if empty)
19078module_cmds=$lt_module_cmds_GCJ
19079module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19080
19081# Commands to strip libraries.
19082old_striplib=$lt_old_striplib
19083striplib=$lt_striplib
19084
19085# Dependencies to place before the objects being linked to create a
19086# shared library.
19087predep_objects=$lt_predep_objects_GCJ
19088
19089# Dependencies to place after the objects being linked to create a
19090# shared library.
19091postdep_objects=$lt_postdep_objects_GCJ
19092
19093# Dependencies to place before the objects being linked to create a
19094# shared library.
19095predeps=$lt_predeps_GCJ
19096
19097# Dependencies to place after the objects being linked to create a
19098# shared library.
19099postdeps=$lt_postdeps_GCJ
19100
openvcdiffd1845782009-03-20 21:56:15 +000019101# The directories searched by this compiler when creating a shared
19102# library
19103compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19104
openvcdiff311c7142008-08-26 19:29:25 +000019105# The library search path used internally by the compiler when linking
19106# a shared library.
19107compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19108
19109# Method to check whether dependent libraries are shared objects.
19110deplibs_check_method=$lt_deplibs_check_method
19111
19112# Command to use when deplibs_check_method == file_magic.
19113file_magic_cmd=$lt_file_magic_cmd
19114
19115# Flag that allows shared libraries with undefined symbols to be built.
19116allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19117
19118# Flag that forces no undefined symbols.
19119no_undefined_flag=$lt_no_undefined_flag_GCJ
19120
19121# Commands used to finish a libtool library installation in a directory.
19122finish_cmds=$lt_finish_cmds
19123
19124# Same as above, but a single script fragment to be evaled but not shown.
19125finish_eval=$lt_finish_eval
19126
19127# Take the output of nm and produce a listing of raw symbols and C names.
19128global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19129
19130# Transform the output of nm in a proper C declaration
19131global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19132
19133# Transform the output of nm in a C name address pair
19134global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19135
19136# This is the shared library runtime path variable.
19137runpath_var=$runpath_var
19138
19139# This is the shared library path variable.
19140shlibpath_var=$shlibpath_var
19141
19142# Is shlibpath searched before the hard-coded library search path?
19143shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19144
19145# How to hardcode a shared library path into an executable.
19146hardcode_action=$hardcode_action_GCJ
19147
19148# Whether we should hardcode library paths into libraries.
19149hardcode_into_libs=$hardcode_into_libs
19150
19151# Flag to hardcode \$libdir into a binary during linking.
19152# This must work even if \$libdir does not exist.
19153hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19154
19155# If ld is used when linking, flag to hardcode \$libdir into
19156# a binary during linking. This must work even if \$libdir does
19157# not exist.
19158hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19159
19160# Whether we need a single -rpath flag with a separated argument.
19161hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19162
19163# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19164# resulting binary.
19165hardcode_direct=$hardcode_direct_GCJ
19166
19167# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19168# resulting binary.
19169hardcode_minus_L=$hardcode_minus_L_GCJ
19170
19171# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19172# the resulting binary.
19173hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19174
19175# Set to yes if building a shared library automatically hardcodes DIR into the library
19176# and all subsequent libraries and executables linked against it.
19177hardcode_automatic=$hardcode_automatic_GCJ
19178
19179# Variables whose values should be saved in libtool wrapper scripts and
19180# restored at relink time.
19181variables_saved_for_relink="$variables_saved_for_relink"
19182
19183# Whether libtool must link a program against all its dependency libraries.
19184link_all_deplibs=$link_all_deplibs_GCJ
19185
19186# Compile-time system search path for libraries
19187sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19188
19189# Run-time system search path for libraries
19190sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19191
19192# Fix the shell variable \$srcfile for the compiler.
openvcdiffd1845782009-03-20 21:56:15 +000019193fix_srcfile_path=$lt_fix_srcfile_path
openvcdiff311c7142008-08-26 19:29:25 +000019194
19195# Set to yes if exported symbols are required.
19196always_export_symbols=$always_export_symbols_GCJ
19197
19198# The commands to list exported symbols.
19199export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19200
19201# The commands to extract the exported symbol list from a shared archive.
19202extract_expsyms_cmds=$lt_extract_expsyms_cmds
19203
19204# Symbols that should not be listed in the preloaded symbols.
19205exclude_expsyms=$lt_exclude_expsyms_GCJ
19206
19207# Symbols that must always be exported.
19208include_expsyms=$lt_include_expsyms_GCJ
19209
19210# ### END LIBTOOL TAG CONFIG: $tagname
19211
19212__EOF__
19213
19214
19215else
19216 # If there is no Makefile yet, we rely on a make rule to execute
19217 # `config.status --recheck' to rerun these tests and create the
19218 # libtool script then.
19219 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19220 if test -f "$ltmain_in"; then
19221 test -f Makefile && make "$ltmain"
19222 fi
19223fi
19224
19225
19226ac_ext=c
19227ac_cpp='$CPP $CPPFLAGS'
19228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19230ac_compiler_gnu=$ac_cv_c_compiler_gnu
19231
19232CC="$lt_save_CC"
19233
19234 else
19235 tagname=""
19236 fi
19237 ;;
19238
19239 RC)
19240
19241
openvcdiff311c7142008-08-26 19:29:25 +000019242# Source file extension for RC test sources.
19243ac_ext=rc
19244
19245# Object file extension for compiled RC test sources.
19246objext=o
19247objext_RC=$objext
19248
19249# Code to be used in simple compile tests
openvcdiffd1845782009-03-20 21:56:15 +000019250lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
openvcdiff311c7142008-08-26 19:29:25 +000019251
19252# Code to be used in simple link tests
19253lt_simple_link_test_code="$lt_simple_compile_test_code"
19254
19255# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19256
19257# If no C compiler was specified, use CC.
19258LTCC=${LTCC-"$CC"}
19259
19260# If no C compiler flags were specified, use CFLAGS.
19261LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19262
19263# Allow CC to be a program name with arguments.
19264compiler=$CC
19265
19266
19267# save warnings/boilerplate of simple test code
19268ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000019269echo "$lt_simple_compile_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000019270eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19271_lt_compiler_boilerplate=`cat conftest.err`
19272$rm conftest*
19273
19274ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000019275echo "$lt_simple_link_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000019276eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19277_lt_linker_boilerplate=`cat conftest.err`
openvcdiffd1845782009-03-20 21:56:15 +000019278$rm -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +000019279
19280
19281# Allow CC to be a program name with arguments.
19282lt_save_CC="$CC"
19283CC=${RC-"windres"}
19284compiler=$CC
19285compiler_RC=$CC
19286for cc_temp in $compiler""; do
19287 case $cc_temp in
19288 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19289 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19290 \-*) ;;
19291 *) break;;
19292 esac
19293done
19294cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19295
19296lt_cv_prog_compiler_c_o_RC=yes
19297
19298# The else clause should only fire when bootstrapping the
19299# libtool distribution, otherwise you forgot to ship ltmain.sh
19300# with your package, and you will get complaints that there are
19301# no rules to generate ltmain.sh.
19302if test -f "$ltmain"; then
19303 # See if we are running on zsh, and set the options which allow our commands through
19304 # without removal of \ escapes.
19305 if test -n "${ZSH_VERSION+set}" ; then
19306 setopt NO_GLOB_SUBST
19307 fi
19308 # Now quote all the things that may contain metacharacters while being
19309 # careful not to overquote the AC_SUBSTed values. We take copies of the
19310 # variables and quote the copies for generation of the libtool script.
19311 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19312 SED SHELL STRIP \
19313 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19314 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19315 deplibs_check_method reload_flag reload_cmds need_locks \
19316 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19317 lt_cv_sys_global_symbol_to_c_name_address \
19318 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19319 old_postinstall_cmds old_postuninstall_cmds \
19320 compiler_RC \
19321 CC_RC \
19322 LD_RC \
19323 lt_prog_compiler_wl_RC \
19324 lt_prog_compiler_pic_RC \
19325 lt_prog_compiler_static_RC \
19326 lt_prog_compiler_no_builtin_flag_RC \
19327 export_dynamic_flag_spec_RC \
19328 thread_safe_flag_spec_RC \
19329 whole_archive_flag_spec_RC \
19330 enable_shared_with_static_runtimes_RC \
19331 old_archive_cmds_RC \
19332 old_archive_from_new_cmds_RC \
19333 predep_objects_RC \
19334 postdep_objects_RC \
19335 predeps_RC \
19336 postdeps_RC \
19337 compiler_lib_search_path_RC \
openvcdiffd1845782009-03-20 21:56:15 +000019338 compiler_lib_search_dirs_RC \
openvcdiff311c7142008-08-26 19:29:25 +000019339 archive_cmds_RC \
19340 archive_expsym_cmds_RC \
19341 postinstall_cmds_RC \
19342 postuninstall_cmds_RC \
19343 old_archive_from_expsyms_cmds_RC \
19344 allow_undefined_flag_RC \
19345 no_undefined_flag_RC \
19346 export_symbols_cmds_RC \
19347 hardcode_libdir_flag_spec_RC \
19348 hardcode_libdir_flag_spec_ld_RC \
19349 hardcode_libdir_separator_RC \
19350 hardcode_automatic_RC \
19351 module_cmds_RC \
19352 module_expsym_cmds_RC \
19353 lt_cv_prog_compiler_c_o_RC \
openvcdiffd1845782009-03-20 21:56:15 +000019354 fix_srcfile_path_RC \
openvcdiff311c7142008-08-26 19:29:25 +000019355 exclude_expsyms_RC \
19356 include_expsyms_RC; do
19357
19358 case $var in
19359 old_archive_cmds_RC | \
19360 old_archive_from_new_cmds_RC | \
19361 archive_cmds_RC | \
19362 archive_expsym_cmds_RC | \
19363 module_cmds_RC | \
19364 module_expsym_cmds_RC | \
19365 old_archive_from_expsyms_cmds_RC | \
19366 export_symbols_cmds_RC | \
19367 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19368 postinstall_cmds | postuninstall_cmds | \
19369 old_postinstall_cmds | old_postuninstall_cmds | \
19370 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19371 # Double-quote double-evaled strings.
19372 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19373 ;;
19374 *)
19375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19376 ;;
19377 esac
19378 done
19379
19380 case $lt_echo in
19381 *'\$0 --fallback-echo"')
19382 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19383 ;;
19384 esac
19385
19386cfgfile="$ofile"
19387
19388 cat <<__EOF__ >> "$cfgfile"
19389# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19390
19391# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19392
19393# Shell to use when invoking shell scripts.
19394SHELL=$lt_SHELL
19395
19396# Whether or not to build shared libraries.
19397build_libtool_libs=$enable_shared
19398
19399# Whether or not to build static libraries.
19400build_old_libs=$enable_static
19401
19402# Whether or not to add -lc for building shared libraries.
19403build_libtool_need_lc=$archive_cmds_need_lc_RC
19404
19405# Whether or not to disallow shared libs when runtime libs are static
19406allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19407
19408# Whether or not to optimize for fast installation.
19409fast_install=$enable_fast_install
19410
19411# The host system.
19412host_alias=$host_alias
19413host=$host
19414host_os=$host_os
19415
19416# The build system.
19417build_alias=$build_alias
19418build=$build
19419build_os=$build_os
19420
19421# An echo program that does not interpret backslashes.
19422echo=$lt_echo
19423
19424# The archiver.
19425AR=$lt_AR
19426AR_FLAGS=$lt_AR_FLAGS
19427
19428# A C compiler.
19429LTCC=$lt_LTCC
19430
19431# LTCC compiler flags.
19432LTCFLAGS=$lt_LTCFLAGS
19433
19434# A language-specific compiler.
19435CC=$lt_compiler_RC
19436
19437# Is the compiler the GNU C compiler?
19438with_gcc=$GCC_RC
19439
19440# An ERE matcher.
19441EGREP=$lt_EGREP
19442
19443# The linker used to build libraries.
19444LD=$lt_LD_RC
19445
19446# Whether we need hard or soft links.
19447LN_S=$lt_LN_S
19448
19449# A BSD-compatible nm program.
19450NM=$lt_NM
19451
19452# A symbol stripping program
19453STRIP=$lt_STRIP
19454
19455# Used to examine libraries when file_magic_cmd begins "file"
19456MAGIC_CMD=$MAGIC_CMD
19457
19458# Used on cygwin: DLL creation program.
19459DLLTOOL="$DLLTOOL"
19460
19461# Used on cygwin: object dumper.
19462OBJDUMP="$OBJDUMP"
19463
19464# Used on cygwin: assembler.
19465AS="$AS"
19466
19467# The name of the directory that contains temporary libtool files.
19468objdir=$objdir
19469
19470# How to create reloadable object files.
19471reload_flag=$lt_reload_flag
19472reload_cmds=$lt_reload_cmds
19473
19474# How to pass a linker flag through the compiler.
19475wl=$lt_lt_prog_compiler_wl_RC
19476
19477# Object file suffix (normally "o").
19478objext="$ac_objext"
19479
19480# Old archive suffix (normally "a").
19481libext="$libext"
19482
19483# Shared library suffix (normally ".so").
19484shrext_cmds='$shrext_cmds'
19485
19486# Executable file suffix (normally "").
19487exeext="$exeext"
19488
19489# Additional compiler flags for building library objects.
19490pic_flag=$lt_lt_prog_compiler_pic_RC
19491pic_mode=$pic_mode
19492
19493# What is the maximum length of a command?
19494max_cmd_len=$lt_cv_sys_max_cmd_len
19495
19496# Does compiler simultaneously support -c and -o options?
19497compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19498
19499# Must we lock files when doing compilation?
19500need_locks=$lt_need_locks
19501
19502# Do we need the lib prefix for modules?
19503need_lib_prefix=$need_lib_prefix
19504
19505# Do we need a version for libraries?
19506need_version=$need_version
19507
19508# Whether dlopen is supported.
19509dlopen_support=$enable_dlopen
19510
19511# Whether dlopen of programs is supported.
19512dlopen_self=$enable_dlopen_self
19513
19514# Whether dlopen of statically linked programs is supported.
19515dlopen_self_static=$enable_dlopen_self_static
19516
19517# Compiler flag to prevent dynamic linking.
19518link_static_flag=$lt_lt_prog_compiler_static_RC
19519
19520# Compiler flag to turn off builtin functions.
19521no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19522
19523# Compiler flag to allow reflexive dlopens.
19524export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19525
19526# Compiler flag to generate shared objects directly from archives.
19527whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19528
19529# Compiler flag to generate thread-safe objects.
19530thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19531
19532# Library versioning type.
19533version_type=$version_type
19534
19535# Format of library name prefix.
19536libname_spec=$lt_libname_spec
19537
19538# List of archive names. First name is the real one, the rest are links.
19539# The last name is the one that the linker finds with -lNAME.
19540library_names_spec=$lt_library_names_spec
19541
19542# The coded name of the library, if different from the real name.
19543soname_spec=$lt_soname_spec
19544
19545# Commands used to build and install an old-style archive.
19546RANLIB=$lt_RANLIB
19547old_archive_cmds=$lt_old_archive_cmds_RC
19548old_postinstall_cmds=$lt_old_postinstall_cmds
19549old_postuninstall_cmds=$lt_old_postuninstall_cmds
19550
19551# Create an old-style archive from a shared archive.
19552old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19553
19554# Create a temporary old-style archive to link instead of a shared archive.
19555old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19556
19557# Commands used to build and install a shared archive.
19558archive_cmds=$lt_archive_cmds_RC
19559archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19560postinstall_cmds=$lt_postinstall_cmds
19561postuninstall_cmds=$lt_postuninstall_cmds
19562
19563# Commands used to build a loadable module (assumed same as above if empty)
19564module_cmds=$lt_module_cmds_RC
19565module_expsym_cmds=$lt_module_expsym_cmds_RC
19566
19567# Commands to strip libraries.
19568old_striplib=$lt_old_striplib
19569striplib=$lt_striplib
19570
19571# Dependencies to place before the objects being linked to create a
19572# shared library.
19573predep_objects=$lt_predep_objects_RC
19574
19575# Dependencies to place after the objects being linked to create a
19576# shared library.
19577postdep_objects=$lt_postdep_objects_RC
19578
19579# Dependencies to place before the objects being linked to create a
19580# shared library.
19581predeps=$lt_predeps_RC
19582
19583# Dependencies to place after the objects being linked to create a
19584# shared library.
19585postdeps=$lt_postdeps_RC
19586
openvcdiffd1845782009-03-20 21:56:15 +000019587# The directories searched by this compiler when creating a shared
19588# library
19589compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19590
openvcdiff311c7142008-08-26 19:29:25 +000019591# The library search path used internally by the compiler when linking
19592# a shared library.
19593compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19594
19595# Method to check whether dependent libraries are shared objects.
19596deplibs_check_method=$lt_deplibs_check_method
19597
19598# Command to use when deplibs_check_method == file_magic.
19599file_magic_cmd=$lt_file_magic_cmd
19600
19601# Flag that allows shared libraries with undefined symbols to be built.
19602allow_undefined_flag=$lt_allow_undefined_flag_RC
19603
19604# Flag that forces no undefined symbols.
19605no_undefined_flag=$lt_no_undefined_flag_RC
19606
19607# Commands used to finish a libtool library installation in a directory.
19608finish_cmds=$lt_finish_cmds
19609
19610# Same as above, but a single script fragment to be evaled but not shown.
19611finish_eval=$lt_finish_eval
19612
19613# Take the output of nm and produce a listing of raw symbols and C names.
19614global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19615
19616# Transform the output of nm in a proper C declaration
19617global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19618
19619# Transform the output of nm in a C name address pair
19620global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19621
19622# This is the shared library runtime path variable.
19623runpath_var=$runpath_var
19624
19625# This is the shared library path variable.
19626shlibpath_var=$shlibpath_var
19627
19628# Is shlibpath searched before the hard-coded library search path?
19629shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19630
19631# How to hardcode a shared library path into an executable.
19632hardcode_action=$hardcode_action_RC
19633
19634# Whether we should hardcode library paths into libraries.
19635hardcode_into_libs=$hardcode_into_libs
19636
19637# Flag to hardcode \$libdir into a binary during linking.
19638# This must work even if \$libdir does not exist.
19639hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19640
19641# If ld is used when linking, flag to hardcode \$libdir into
19642# a binary during linking. This must work even if \$libdir does
19643# not exist.
19644hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19645
19646# Whether we need a single -rpath flag with a separated argument.
19647hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19648
19649# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19650# resulting binary.
19651hardcode_direct=$hardcode_direct_RC
19652
19653# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19654# resulting binary.
19655hardcode_minus_L=$hardcode_minus_L_RC
19656
19657# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19658# the resulting binary.
19659hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19660
19661# Set to yes if building a shared library automatically hardcodes DIR into the library
19662# and all subsequent libraries and executables linked against it.
19663hardcode_automatic=$hardcode_automatic_RC
19664
19665# Variables whose values should be saved in libtool wrapper scripts and
19666# restored at relink time.
19667variables_saved_for_relink="$variables_saved_for_relink"
19668
19669# Whether libtool must link a program against all its dependency libraries.
19670link_all_deplibs=$link_all_deplibs_RC
19671
19672# Compile-time system search path for libraries
19673sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19674
19675# Run-time system search path for libraries
19676sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19677
19678# Fix the shell variable \$srcfile for the compiler.
openvcdiffd1845782009-03-20 21:56:15 +000019679fix_srcfile_path=$lt_fix_srcfile_path
openvcdiff311c7142008-08-26 19:29:25 +000019680
19681# Set to yes if exported symbols are required.
19682always_export_symbols=$always_export_symbols_RC
19683
19684# The commands to list exported symbols.
19685export_symbols_cmds=$lt_export_symbols_cmds_RC
19686
19687# The commands to extract the exported symbol list from a shared archive.
19688extract_expsyms_cmds=$lt_extract_expsyms_cmds
19689
19690# Symbols that should not be listed in the preloaded symbols.
19691exclude_expsyms=$lt_exclude_expsyms_RC
19692
19693# Symbols that must always be exported.
19694include_expsyms=$lt_include_expsyms_RC
19695
19696# ### END LIBTOOL TAG CONFIG: $tagname
19697
19698__EOF__
19699
19700
19701else
19702 # If there is no Makefile yet, we rely on a make rule to execute
19703 # `config.status --recheck' to rerun these tests and create the
19704 # libtool script then.
19705 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19706 if test -f "$ltmain_in"; then
19707 test -f Makefile && make "$ltmain"
19708 fi
19709fi
19710
19711
19712ac_ext=c
19713ac_cpp='$CPP $CPPFLAGS'
19714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716ac_compiler_gnu=$ac_cv_c_compiler_gnu
19717
19718CC="$lt_save_CC"
19719
19720 ;;
19721
19722 *)
19723 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19724echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19725 { (exit 1); exit 1; }; }
19726 ;;
19727 esac
19728
19729 # Append the new tag name to the list of available tags.
19730 if test -n "$tagname" ; then
19731 available_tags="$available_tags $tagname"
19732 fi
19733 fi
19734 done
19735 IFS="$lt_save_ifs"
19736
19737 # Now substitute the updated list of available tags.
19738 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19739 mv "${ofile}T" "$ofile"
19740 chmod +x "$ofile"
19741 else
19742 rm -f "${ofile}T"
19743 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19744echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19745 { (exit 1); exit 1; }; }
19746 fi
19747fi
19748
19749
19750
19751# This can be used to rebuild libtool when needed
19752LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19753
19754# Always use our own libtool.
19755LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19756
19757# Prevent multiple expansion
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780# Check whether some low-level functions/files are available
openvcdiffd1845782009-03-20 21:56:15 +000019781{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19782echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000019783if test "${ac_cv_header_stdc+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785else
19786 cat >conftest.$ac_ext <<_ACEOF
19787/* confdefs.h. */
19788_ACEOF
19789cat confdefs.h >>conftest.$ac_ext
19790cat >>conftest.$ac_ext <<_ACEOF
19791/* end confdefs.h. */
19792#include <stdlib.h>
19793#include <stdarg.h>
19794#include <string.h>
19795#include <float.h>
19796
19797int
19798main ()
19799{
19800
19801 ;
19802 return 0;
19803}
19804_ACEOF
19805rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000019806if { (ac_try="$ac_compile"
19807case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810esac
19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000019813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000019818 (exit $ac_status); } && {
19819 test -z "$ac_c_werror_flag" ||
19820 test ! -s conftest.err
19821 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000019822 ac_cv_header_stdc=yes
19823else
19824 echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826
openvcdiffd1845782009-03-20 21:56:15 +000019827 ac_cv_header_stdc=no
openvcdiff311c7142008-08-26 19:29:25 +000019828fi
openvcdiffd1845782009-03-20 21:56:15 +000019829
19830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000019831
19832if test $ac_cv_header_stdc = yes; then
19833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19834 cat >conftest.$ac_ext <<_ACEOF
19835/* confdefs.h. */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
19839/* end confdefs.h. */
19840#include <string.h>
19841
19842_ACEOF
19843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19844 $EGREP "memchr" >/dev/null 2>&1; then
19845 :
19846else
19847 ac_cv_header_stdc=no
19848fi
19849rm -f conftest*
19850
19851fi
19852
19853if test $ac_cv_header_stdc = yes; then
19854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19855 cat >conftest.$ac_ext <<_ACEOF
19856/* confdefs.h. */
19857_ACEOF
19858cat confdefs.h >>conftest.$ac_ext
19859cat >>conftest.$ac_ext <<_ACEOF
19860/* end confdefs.h. */
19861#include <stdlib.h>
19862
19863_ACEOF
19864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19865 $EGREP "free" >/dev/null 2>&1; then
19866 :
19867else
19868 ac_cv_header_stdc=no
19869fi
19870rm -f conftest*
19871
19872fi
19873
19874if test $ac_cv_header_stdc = yes; then
19875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19876 if test "$cross_compiling" = yes; then
19877 :
19878else
19879 cat >conftest.$ac_ext <<_ACEOF
19880/* confdefs.h. */
19881_ACEOF
19882cat confdefs.h >>conftest.$ac_ext
19883cat >>conftest.$ac_ext <<_ACEOF
19884/* end confdefs.h. */
19885#include <ctype.h>
openvcdiffd1845782009-03-20 21:56:15 +000019886#include <stdlib.h>
openvcdiff311c7142008-08-26 19:29:25 +000019887#if ((' ' & 0x0FF) == 0x020)
19888# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19889# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19890#else
19891# define ISLOWER(c) \
19892 (('a' <= (c) && (c) <= 'i') \
19893 || ('j' <= (c) && (c) <= 'r') \
19894 || ('s' <= (c) && (c) <= 'z'))
19895# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19896#endif
19897
19898#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19899int
19900main ()
19901{
19902 int i;
19903 for (i = 0; i < 256; i++)
19904 if (XOR (islower (i), ISLOWER (i))
19905 || toupper (i) != TOUPPER (i))
openvcdiffd1845782009-03-20 21:56:15 +000019906 return 2;
19907 return 0;
openvcdiff311c7142008-08-26 19:29:25 +000019908}
19909_ACEOF
19910rm -f conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000019911if { (ac_try="$ac_link"
19912case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19915esac
19916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_link") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +000019918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
openvcdiffd1845782009-03-20 21:56:15 +000019921 { (case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924esac
19925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_try") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +000019927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 :
19931else
19932 echo "$as_me: program exited with status $ac_status" >&5
19933echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936( exit $ac_status )
19937ac_cv_header_stdc=no
19938fi
openvcdiffd1845782009-03-20 21:56:15 +000019939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19940fi
19941
19942
openvcdiff311c7142008-08-26 19:29:25 +000019943fi
19944fi
openvcdiffd1845782009-03-20 21:56:15 +000019945{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19946echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000019947if test $ac_cv_header_stdc = yes; then
19948
19949cat >>confdefs.h <<\_ACEOF
19950#define STDC_HEADERS 1
19951_ACEOF
19952
19953fi
19954
19955
openvcdiff28db8072008-10-10 23:29:11 +000019956# Built-in memcmp can be inefficient when gcc compiles for x86 processors.
19957# In those cases, use an alternative function instead of memcmp.
19958case $host_cpu in
19959 *86*)
19960 if test "$GCC" = "yes"; then
openvcdiffd4832872008-09-02 18:21:13 +000019961
openvcdiff311c7142008-08-26 19:29:25 +000019962cat >>confdefs.h <<\_ACEOF
19963#define VCDIFF_USE_BLOCK_COMPARE_WORDS 1
19964_ACEOF
19965
openvcdiff28db8072008-10-10 23:29:11 +000019966 fi
openvcdiffd4832872008-09-02 18:21:13 +000019967 ;;
openvcdiff311c7142008-08-26 19:29:25 +000019968esac
19969
19970
19971for ac_header in ext/rope
19972do
19973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000019974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000019978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979fi
openvcdiffd1845782009-03-20 21:56:15 +000019980ac_res=`eval echo '${'$as_ac_Header'}'`
19981 { echo "$as_me:$LINENO: result: $ac_res" >&5
19982echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000019983else
19984 # Is the header compilable?
openvcdiffd1845782009-03-20 21:56:15 +000019985{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000019987cat >conftest.$ac_ext <<_ACEOF
19988/* confdefs.h. */
19989_ACEOF
19990cat confdefs.h >>conftest.$ac_ext
19991cat >>conftest.$ac_ext <<_ACEOF
19992/* end confdefs.h. */
19993$ac_includes_default
19994#include <$ac_header>
19995_ACEOF
19996rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000019997if { (ac_try="$ac_compile"
19998case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20001esac
20002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020004 ac_status=$?
20005 grep -v '^ *+' conftest.er1 >conftest.err
20006 rm -f conftest.er1
20007 cat conftest.err >&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020009 (exit $ac_status); } && {
20010 test -z "$ac_c_werror_flag" ||
20011 test ! -s conftest.err
20012 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000020013 ac_header_compiler=yes
20014else
20015 echo "$as_me: failed program was:" >&5
20016sed 's/^/| /' conftest.$ac_ext >&5
20017
openvcdiffd1845782009-03-20 21:56:15 +000020018 ac_header_compiler=no
openvcdiff311c7142008-08-26 19:29:25 +000020019fi
openvcdiffd1845782009-03-20 21:56:15 +000020020
20021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20023echo "${ECHO_T}$ac_header_compiler" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020024
20025# Is the header present?
openvcdiffd1845782009-03-20 21:56:15 +000020026{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020028cat >conftest.$ac_ext <<_ACEOF
20029/* confdefs.h. */
20030_ACEOF
20031cat confdefs.h >>conftest.$ac_ext
20032cat >>conftest.$ac_ext <<_ACEOF
20033/* end confdefs.h. */
20034#include <$ac_header>
20035_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000020036if { (ac_try="$ac_cpp conftest.$ac_ext"
20037case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20040esac
20041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020043 ac_status=$?
20044 grep -v '^ *+' conftest.er1 >conftest.err
20045 rm -f conftest.er1
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020048 (exit $ac_status); } >/dev/null && {
20049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20050 test ! -s conftest.err
20051 }; then
openvcdiff311c7142008-08-26 19:29:25 +000020052 ac_header_preproc=yes
20053else
20054 echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
20056
20057 ac_header_preproc=no
20058fi
openvcdiffd1845782009-03-20 21:56:15 +000020059
openvcdiff311c7142008-08-26 19:29:25 +000020060rm -f conftest.err conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +000020061{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20062echo "${ECHO_T}$ac_header_preproc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020063
20064# So? What about this header?
20065case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20066 yes:no: )
20067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20068echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20070echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20071 ac_header_preproc=yes
20072 ;;
20073 no:yes:* )
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20077echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20079echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20081echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20085echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +000020086 ( cat <<\_ASBOX
openvcdiff311c7142008-08-26 19:29:25 +000020087## ------------------------------------ ##
20088## Report this to opensource@google.com ##
20089## ------------------------------------ ##
20090_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +000020091 ) | sed "s/^/$as_me: WARNING: /" >&2
openvcdiff311c7142008-08-26 19:29:25 +000020092 ;;
20093esac
openvcdiffd1845782009-03-20 21:56:15 +000020094{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020097 echo $ECHO_N "(cached) $ECHO_C" >&6
20098else
20099 eval "$as_ac_Header=\$ac_header_preproc"
20100fi
openvcdiffd1845782009-03-20 21:56:15 +000020101ac_res=`eval echo '${'$as_ac_Header'}'`
20102 { echo "$as_me:$LINENO: result: $ac_res" >&5
20103echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020104
20105fi
20106if test `eval echo '${'$as_ac_Header'}'` = yes; then
20107 cat >>confdefs.h <<_ACEOF
20108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20109_ACEOF
20110
20111fi
20112
20113done
20114
20115
20116for ac_header in getopt.h
20117do
20118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000020119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020123 echo $ECHO_N "(cached) $ECHO_C" >&6
20124fi
openvcdiffd1845782009-03-20 21:56:15 +000020125ac_res=`eval echo '${'$as_ac_Header'}'`
20126 { echo "$as_me:$LINENO: result: $ac_res" >&5
20127echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020128else
20129 # Is the header compilable?
openvcdiffd1845782009-03-20 21:56:15 +000020130{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020132cat >conftest.$ac_ext <<_ACEOF
20133/* confdefs.h. */
20134_ACEOF
20135cat confdefs.h >>conftest.$ac_ext
20136cat >>conftest.$ac_ext <<_ACEOF
20137/* end confdefs.h. */
20138$ac_includes_default
20139#include <$ac_header>
20140_ACEOF
20141rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000020142if { (ac_try="$ac_compile"
20143case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20146esac
20147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020149 ac_status=$?
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000020158 ac_header_compiler=yes
20159else
20160 echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
20162
openvcdiffd1845782009-03-20 21:56:15 +000020163 ac_header_compiler=no
openvcdiff311c7142008-08-26 19:29:25 +000020164fi
openvcdiffd1845782009-03-20 21:56:15 +000020165
20166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20168echo "${ECHO_T}$ac_header_compiler" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020169
20170# Is the header present?
openvcdiffd1845782009-03-20 21:56:15 +000020171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020173cat >conftest.$ac_ext <<_ACEOF
20174/* confdefs.h. */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h. */
20179#include <$ac_header>
20180_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000020181if { (ac_try="$ac_cpp conftest.$ac_ext"
20182case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185esac
20186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020188 ac_status=$?
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020193 (exit $ac_status); } >/dev/null && {
20194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20195 test ! -s conftest.err
20196 }; then
openvcdiff311c7142008-08-26 19:29:25 +000020197 ac_header_preproc=yes
20198else
20199 echo "$as_me: failed program was:" >&5
20200sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 ac_header_preproc=no
20203fi
openvcdiffd1845782009-03-20 21:56:15 +000020204
openvcdiff311c7142008-08-26 19:29:25 +000020205rm -f conftest.err conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +000020206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20207echo "${ECHO_T}$ac_header_preproc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020208
20209# So? What about this header?
20210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20211 yes:no: )
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20216 ac_header_preproc=yes
20217 ;;
20218 no:yes:* )
20219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +000020231 ( cat <<\_ASBOX
openvcdiff311c7142008-08-26 19:29:25 +000020232## ------------------------------------ ##
20233## Report this to opensource@google.com ##
20234## ------------------------------------ ##
20235_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +000020236 ) | sed "s/^/$as_me: WARNING: /" >&2
openvcdiff311c7142008-08-26 19:29:25 +000020237 ;;
20238esac
openvcdiffd1845782009-03-20 21:56:15 +000020239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243else
20244 eval "$as_ac_Header=\$ac_header_preproc"
20245fi
openvcdiffd1845782009-03-20 21:56:15 +000020246ac_res=`eval echo '${'$as_ac_Header'}'`
20247 { echo "$as_me:$LINENO: result: $ac_res" >&5
20248echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020249
20250fi
20251if test `eval echo '${'$as_ac_Header'}'` = yes; then
20252 cat >>confdefs.h <<_ACEOF
20253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20254_ACEOF
20255
20256fi
20257
20258done
20259
20260
20261for ac_header in malloc.h
20262do
20263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000020264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020268 echo $ECHO_N "(cached) $ECHO_C" >&6
20269fi
openvcdiffd1845782009-03-20 21:56:15 +000020270ac_res=`eval echo '${'$as_ac_Header'}'`
20271 { echo "$as_me:$LINENO: result: $ac_res" >&5
20272echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020273else
20274 # Is the header compilable?
openvcdiffd1845782009-03-20 21:56:15 +000020275{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20276echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020277cat >conftest.$ac_ext <<_ACEOF
20278/* confdefs.h. */
20279_ACEOF
20280cat confdefs.h >>conftest.$ac_ext
20281cat >>conftest.$ac_ext <<_ACEOF
20282/* end confdefs.h. */
20283$ac_includes_default
20284#include <$ac_header>
20285_ACEOF
20286rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000020287if { (ac_try="$ac_compile"
20288case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20291esac
20292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020294 ac_status=$?
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000020303 ac_header_compiler=yes
20304else
20305 echo "$as_me: failed program was:" >&5
20306sed 's/^/| /' conftest.$ac_ext >&5
20307
openvcdiffd1845782009-03-20 21:56:15 +000020308 ac_header_compiler=no
openvcdiff311c7142008-08-26 19:29:25 +000020309fi
openvcdiffd1845782009-03-20 21:56:15 +000020310
20311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20313echo "${ECHO_T}$ac_header_compiler" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020314
20315# Is the header present?
openvcdiffd1845782009-03-20 21:56:15 +000020316{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020318cat >conftest.$ac_ext <<_ACEOF
20319/* confdefs.h. */
20320_ACEOF
20321cat confdefs.h >>conftest.$ac_ext
20322cat >>conftest.$ac_ext <<_ACEOF
20323/* end confdefs.h. */
20324#include <$ac_header>
20325_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000020326if { (ac_try="$ac_cpp conftest.$ac_ext"
20327case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330esac
20331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020338 (exit $ac_status); } >/dev/null && {
20339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 }; then
openvcdiff311c7142008-08-26 19:29:25 +000020342 ac_header_preproc=yes
20343else
20344 echo "$as_me: failed program was:" >&5
20345sed 's/^/| /' conftest.$ac_ext >&5
20346
20347 ac_header_preproc=no
20348fi
openvcdiffd1845782009-03-20 21:56:15 +000020349
openvcdiff311c7142008-08-26 19:29:25 +000020350rm -f conftest.err conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +000020351{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20352echo "${ECHO_T}$ac_header_preproc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020353
20354# So? What about this header?
20355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20356 yes:no: )
20357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20358echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20360echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20361 ac_header_preproc=yes
20362 ;;
20363 no:yes:* )
20364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20365echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20367echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20369echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20371echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20375echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +000020376 ( cat <<\_ASBOX
openvcdiff311c7142008-08-26 19:29:25 +000020377## ------------------------------------ ##
20378## Report this to opensource@google.com ##
20379## ------------------------------------ ##
20380_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +000020381 ) | sed "s/^/$as_me: WARNING: /" >&2
openvcdiff311c7142008-08-26 19:29:25 +000020382 ;;
20383esac
openvcdiffd1845782009-03-20 21:56:15 +000020384{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020387 echo $ECHO_N "(cached) $ECHO_C" >&6
20388else
20389 eval "$as_ac_Header=\$ac_header_preproc"
20390fi
openvcdiffd1845782009-03-20 21:56:15 +000020391ac_res=`eval echo '${'$as_ac_Header'}'`
20392 { echo "$as_me:$LINENO: result: $ac_res" >&5
20393echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020394
20395fi
20396if test `eval echo '${'$as_ac_Header'}'` = yes; then
20397 cat >>confdefs.h <<_ACEOF
20398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20399_ACEOF
20400
20401fi
20402
20403done
20404
20405
20406for ac_header in sys/mman.h
20407do
20408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000020409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020413 echo $ECHO_N "(cached) $ECHO_C" >&6
20414fi
openvcdiffd1845782009-03-20 21:56:15 +000020415ac_res=`eval echo '${'$as_ac_Header'}'`
20416 { echo "$as_me:$LINENO: result: $ac_res" >&5
20417echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020418else
20419 # Is the header compilable?
openvcdiffd1845782009-03-20 21:56:15 +000020420{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020422cat >conftest.$ac_ext <<_ACEOF
20423/* confdefs.h. */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h. */
20428$ac_includes_default
20429#include <$ac_header>
20430_ACEOF
20431rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000020432if { (ac_try="$ac_compile"
20433case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436esac
20437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020444 (exit $ac_status); } && {
20445 test -z "$ac_c_werror_flag" ||
20446 test ! -s conftest.err
20447 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000020448 ac_header_compiler=yes
20449else
20450 echo "$as_me: failed program was:" >&5
20451sed 's/^/| /' conftest.$ac_ext >&5
20452
openvcdiffd1845782009-03-20 21:56:15 +000020453 ac_header_compiler=no
openvcdiff311c7142008-08-26 19:29:25 +000020454fi
openvcdiffd1845782009-03-20 21:56:15 +000020455
20456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20458echo "${ECHO_T}$ac_header_compiler" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020459
20460# Is the header present?
openvcdiffd1845782009-03-20 21:56:15 +000020461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020463cat >conftest.$ac_ext <<_ACEOF
20464/* confdefs.h. */
20465_ACEOF
20466cat confdefs.h >>conftest.$ac_ext
20467cat >>conftest.$ac_ext <<_ACEOF
20468/* end confdefs.h. */
20469#include <$ac_header>
20470_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000020471if { (ac_try="$ac_cpp conftest.$ac_ext"
20472case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475esac
20476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020478 ac_status=$?
20479 grep -v '^ *+' conftest.er1 >conftest.err
20480 rm -f conftest.er1
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020483 (exit $ac_status); } >/dev/null && {
20484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20485 test ! -s conftest.err
20486 }; then
openvcdiff311c7142008-08-26 19:29:25 +000020487 ac_header_preproc=yes
20488else
20489 echo "$as_me: failed program was:" >&5
20490sed 's/^/| /' conftest.$ac_ext >&5
20491
20492 ac_header_preproc=no
20493fi
openvcdiffd1845782009-03-20 21:56:15 +000020494
openvcdiff311c7142008-08-26 19:29:25 +000020495rm -f conftest.err conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +000020496{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20497echo "${ECHO_T}$ac_header_preproc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020498
20499# So? What about this header?
20500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20501 yes:no: )
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20505echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20506 ac_header_preproc=yes
20507 ;;
20508 no:yes:* )
20509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20510echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20512echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20514echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20516echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20518echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20520echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +000020521 ( cat <<\_ASBOX
openvcdiff311c7142008-08-26 19:29:25 +000020522## ------------------------------------ ##
20523## Report this to opensource@google.com ##
20524## ------------------------------------ ##
20525_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +000020526 ) | sed "s/^/$as_me: WARNING: /" >&2
openvcdiff311c7142008-08-26 19:29:25 +000020527 ;;
20528esac
openvcdiffd1845782009-03-20 21:56:15 +000020529{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020532 echo $ECHO_N "(cached) $ECHO_C" >&6
20533else
20534 eval "$as_ac_Header=\$ac_header_preproc"
20535fi
openvcdiffd1845782009-03-20 21:56:15 +000020536ac_res=`eval echo '${'$as_ac_Header'}'`
20537 { echo "$as_me:$LINENO: result: $ac_res" >&5
20538echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020539
20540fi
20541if test `eval echo '${'$as_ac_Header'}'` = yes; then
20542 cat >>confdefs.h <<_ACEOF
20543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20544_ACEOF
20545
20546fi
20547
20548done
20549
20550
20551for ac_header in sys/time.h
20552do
20553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000020554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559fi
openvcdiffd1845782009-03-20 21:56:15 +000020560ac_res=`eval echo '${'$as_ac_Header'}'`
20561 { echo "$as_me:$LINENO: result: $ac_res" >&5
20562echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020563else
20564 # Is the header compilable?
openvcdiffd1845782009-03-20 21:56:15 +000020565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020567cat >conftest.$ac_ext <<_ACEOF
20568/* confdefs.h. */
20569_ACEOF
20570cat confdefs.h >>conftest.$ac_ext
20571cat >>conftest.$ac_ext <<_ACEOF
20572/* end confdefs.h. */
20573$ac_includes_default
20574#include <$ac_header>
20575_ACEOF
20576rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000020577if { (ac_try="$ac_compile"
20578case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581esac
20582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000020593 ac_header_compiler=yes
20594else
20595 echo "$as_me: failed program was:" >&5
20596sed 's/^/| /' conftest.$ac_ext >&5
20597
openvcdiffd1845782009-03-20 21:56:15 +000020598 ac_header_compiler=no
openvcdiff311c7142008-08-26 19:29:25 +000020599fi
openvcdiffd1845782009-03-20 21:56:15 +000020600
20601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20603echo "${ECHO_T}$ac_header_compiler" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020604
20605# Is the header present?
openvcdiffd1845782009-03-20 21:56:15 +000020606{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020608cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
20614#include <$ac_header>
20615_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000020616if { (ac_try="$ac_cpp conftest.$ac_ext"
20617case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20620esac
20621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020628 (exit $ac_status); } >/dev/null && {
20629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20630 test ! -s conftest.err
20631 }; then
openvcdiff311c7142008-08-26 19:29:25 +000020632 ac_header_preproc=yes
20633else
20634 echo "$as_me: failed program was:" >&5
20635sed 's/^/| /' conftest.$ac_ext >&5
20636
20637 ac_header_preproc=no
20638fi
openvcdiffd1845782009-03-20 21:56:15 +000020639
openvcdiff311c7142008-08-26 19:29:25 +000020640rm -f conftest.err conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +000020641{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20642echo "${ECHO_T}$ac_header_preproc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020643
20644# So? What about this header?
20645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20646 yes:no: )
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20650echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20651 ac_header_preproc=yes
20652 ;;
20653 no:yes:* )
20654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20657echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20659echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20661echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20665echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +000020666 ( cat <<\_ASBOX
openvcdiff311c7142008-08-26 19:29:25 +000020667## ------------------------------------ ##
20668## Report this to opensource@google.com ##
20669## ------------------------------------ ##
20670_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +000020671 ) | sed "s/^/$as_me: WARNING: /" >&2
openvcdiff311c7142008-08-26 19:29:25 +000020672 ;;
20673esac
openvcdiffd1845782009-03-20 21:56:15 +000020674{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020677 echo $ECHO_N "(cached) $ECHO_C" >&6
20678else
20679 eval "$as_ac_Header=\$ac_header_preproc"
20680fi
openvcdiffd1845782009-03-20 21:56:15 +000020681ac_res=`eval echo '${'$as_ac_Header'}'`
20682 { echo "$as_me:$LINENO: result: $ac_res" >&5
20683echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020684
20685fi
20686if test `eval echo '${'$as_ac_Header'}'` = yes; then
20687 cat >>confdefs.h <<_ACEOF
20688#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20689_ACEOF
20690
20691fi
20692
20693done
20694
20695
20696for ac_header in unistd.h
20697do
20698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000020699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020703 echo $ECHO_N "(cached) $ECHO_C" >&6
20704fi
openvcdiffd1845782009-03-20 21:56:15 +000020705ac_res=`eval echo '${'$as_ac_Header'}'`
20706 { echo "$as_me:$LINENO: result: $ac_res" >&5
20707echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020708else
20709 # Is the header compilable?
openvcdiffd1845782009-03-20 21:56:15 +000020710{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020712cat >conftest.$ac_ext <<_ACEOF
20713/* confdefs.h. */
20714_ACEOF
20715cat confdefs.h >>conftest.$ac_ext
20716cat >>conftest.$ac_ext <<_ACEOF
20717/* end confdefs.h. */
20718$ac_includes_default
20719#include <$ac_header>
20720_ACEOF
20721rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000020722if { (ac_try="$ac_compile"
20723case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20726esac
20727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020729 ac_status=$?
20730 grep -v '^ *+' conftest.er1 >conftest.err
20731 rm -f conftest.er1
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020734 (exit $ac_status); } && {
20735 test -z "$ac_c_werror_flag" ||
20736 test ! -s conftest.err
20737 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000020738 ac_header_compiler=yes
20739else
20740 echo "$as_me: failed program was:" >&5
20741sed 's/^/| /' conftest.$ac_ext >&5
20742
openvcdiffd1845782009-03-20 21:56:15 +000020743 ac_header_compiler=no
openvcdiff311c7142008-08-26 19:29:25 +000020744fi
openvcdiffd1845782009-03-20 21:56:15 +000020745
20746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20748echo "${ECHO_T}$ac_header_compiler" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020749
20750# Is the header present?
openvcdiffd1845782009-03-20 21:56:15 +000020751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020753cat >conftest.$ac_ext <<_ACEOF
20754/* confdefs.h. */
20755_ACEOF
20756cat confdefs.h >>conftest.$ac_ext
20757cat >>conftest.$ac_ext <<_ACEOF
20758/* end confdefs.h. */
20759#include <$ac_header>
20760_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000020761if { (ac_try="$ac_cpp conftest.$ac_ext"
20762case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20765esac
20766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020768 ac_status=$?
20769 grep -v '^ *+' conftest.er1 >conftest.err
20770 rm -f conftest.er1
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020773 (exit $ac_status); } >/dev/null && {
20774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 }; then
openvcdiff311c7142008-08-26 19:29:25 +000020777 ac_header_preproc=yes
20778else
20779 echo "$as_me: failed program was:" >&5
20780sed 's/^/| /' conftest.$ac_ext >&5
20781
20782 ac_header_preproc=no
20783fi
openvcdiffd1845782009-03-20 21:56:15 +000020784
openvcdiff311c7142008-08-26 19:29:25 +000020785rm -f conftest.err conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +000020786{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20787echo "${ECHO_T}$ac_header_preproc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020788
20789# So? What about this header?
20790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20791 yes:no: )
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20796 ac_header_preproc=yes
20797 ;;
20798 no:yes:* )
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20806echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +000020811 ( cat <<\_ASBOX
openvcdiff311c7142008-08-26 19:29:25 +000020812## ------------------------------------ ##
20813## Report this to opensource@google.com ##
20814## ------------------------------------ ##
20815_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +000020816 ) | sed "s/^/$as_me: WARNING: /" >&2
openvcdiff311c7142008-08-26 19:29:25 +000020817 ;;
20818esac
openvcdiffd1845782009-03-20 21:56:15 +000020819{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020822 echo $ECHO_N "(cached) $ECHO_C" >&6
20823else
20824 eval "$as_ac_Header=\$ac_header_preproc"
20825fi
openvcdiffd1845782009-03-20 21:56:15 +000020826ac_res=`eval echo '${'$as_ac_Header'}'`
20827 { echo "$as_me:$LINENO: result: $ac_res" >&5
20828echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020829
20830fi
20831if test `eval echo '${'$as_ac_Header'}'` = yes; then
20832 cat >>confdefs.h <<_ACEOF
20833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20834_ACEOF
20835
20836fi
20837
20838done
20839
20840
20841for ac_header in windows.h
20842do
20843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000020844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020848 echo $ECHO_N "(cached) $ECHO_C" >&6
20849fi
openvcdiffd1845782009-03-20 21:56:15 +000020850ac_res=`eval echo '${'$as_ac_Header'}'`
20851 { echo "$as_me:$LINENO: result: $ac_res" >&5
20852echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020853else
20854 # Is the header compilable?
openvcdiffd1845782009-03-20 21:56:15 +000020855{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020857cat >conftest.$ac_ext <<_ACEOF
20858/* confdefs.h. */
20859_ACEOF
20860cat confdefs.h >>conftest.$ac_ext
20861cat >>conftest.$ac_ext <<_ACEOF
20862/* end confdefs.h. */
20863$ac_includes_default
20864#include <$ac_header>
20865_ACEOF
20866rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000020867if { (ac_try="$ac_compile"
20868case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20871esac
20872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020874 ac_status=$?
20875 grep -v '^ *+' conftest.er1 >conftest.err
20876 rm -f conftest.er1
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000020883 ac_header_compiler=yes
20884else
20885 echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
openvcdiffd1845782009-03-20 21:56:15 +000020888 ac_header_compiler=no
openvcdiff311c7142008-08-26 19:29:25 +000020889fi
openvcdiffd1845782009-03-20 21:56:15 +000020890
20891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20892{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20893echo "${ECHO_T}$ac_header_compiler" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020894
20895# Is the header present?
openvcdiffd1845782009-03-20 21:56:15 +000020896{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020898cat >conftest.$ac_ext <<_ACEOF
20899/* confdefs.h. */
20900_ACEOF
20901cat confdefs.h >>conftest.$ac_ext
20902cat >>conftest.$ac_ext <<_ACEOF
20903/* end confdefs.h. */
20904#include <$ac_header>
20905_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000020906if { (ac_try="$ac_cpp conftest.$ac_ext"
20907case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20910esac
20911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000020913 ac_status=$?
20914 grep -v '^ *+' conftest.er1 >conftest.err
20915 rm -f conftest.er1
20916 cat conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000020918 (exit $ac_status); } >/dev/null && {
20919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20920 test ! -s conftest.err
20921 }; then
openvcdiff311c7142008-08-26 19:29:25 +000020922 ac_header_preproc=yes
20923else
20924 echo "$as_me: failed program was:" >&5
20925sed 's/^/| /' conftest.$ac_ext >&5
20926
20927 ac_header_preproc=no
20928fi
openvcdiffd1845782009-03-20 21:56:15 +000020929
openvcdiff311c7142008-08-26 19:29:25 +000020930rm -f conftest.err conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +000020931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20932echo "${ECHO_T}$ac_header_preproc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020933
20934# So? What about this header?
20935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20936 yes:no: )
20937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20941 ac_header_preproc=yes
20942 ;;
20943 no:yes:* )
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +000020956 ( cat <<\_ASBOX
openvcdiff311c7142008-08-26 19:29:25 +000020957## ------------------------------------ ##
20958## Report this to opensource@google.com ##
20959## ------------------------------------ ##
20960_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +000020961 ) | sed "s/^/$as_me: WARNING: /" >&2
openvcdiff311c7142008-08-26 19:29:25 +000020962 ;;
20963esac
openvcdiffd1845782009-03-20 21:56:15 +000020964{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020967 echo $ECHO_N "(cached) $ECHO_C" >&6
20968else
20969 eval "$as_ac_Header=\$ac_header_preproc"
20970fi
openvcdiffd1845782009-03-20 21:56:15 +000020971ac_res=`eval echo '${'$as_ac_Header'}'`
20972 { echo "$as_me:$LINENO: result: $ac_res" >&5
20973echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000020974
20975fi
20976if test `eval echo '${'$as_ac_Header'}'` = yes; then
20977 cat >>confdefs.h <<_ACEOF
20978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20979_ACEOF
20980
20981fi
20982
20983done
20984
20985
20986
20987for ac_func in gettimeofday QueryPerformanceCounter
20988do
20989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000020990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000020993 echo $ECHO_N "(cached) $ECHO_C" >&6
20994else
20995 cat >conftest.$ac_ext <<_ACEOF
20996/* confdefs.h. */
20997_ACEOF
20998cat confdefs.h >>conftest.$ac_ext
20999cat >>conftest.$ac_ext <<_ACEOF
21000/* end confdefs.h. */
21001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21003#define $ac_func innocuous_$ac_func
21004
21005/* System header to define __stub macros and hopefully few prototypes,
21006 which can conflict with char $ac_func (); below.
21007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21008 <limits.h> exists even on freestanding compilers. */
21009
21010#ifdef __STDC__
21011# include <limits.h>
21012#else
21013# include <assert.h>
21014#endif
21015
21016#undef $ac_func
21017
openvcdiffd1845782009-03-20 21:56:15 +000021018/* Override any GCC internal prototype to avoid an error.
21019 Use char because int might match the return type of a GCC
21020 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000021021#ifdef __cplusplus
21022extern "C"
openvcdiff311c7142008-08-26 19:29:25 +000021023#endif
openvcdiff311c7142008-08-26 19:29:25 +000021024char $ac_func ();
21025/* The GNU C library defines this for functions which it implements
21026 to always fail with ENOSYS. Some functions are actually named
21027 something starting with __ and the normal name is an alias. */
openvcdiffd1845782009-03-20 21:56:15 +000021028#if defined __stub_$ac_func || defined __stub___$ac_func
openvcdiff311c7142008-08-26 19:29:25 +000021029choke me
openvcdiff311c7142008-08-26 19:29:25 +000021030#endif
21031
21032int
21033main ()
21034{
openvcdiffd1845782009-03-20 21:56:15 +000021035return $ac_func ();
openvcdiff311c7142008-08-26 19:29:25 +000021036 ;
21037 return 0;
21038}
21039_ACEOF
21040rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000021041if { (ac_try="$ac_link"
21042case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21045esac
21046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021048 ac_status=$?
21049 grep -v '^ *+' conftest.er1 >conftest.err
21050 rm -f conftest.er1
21051 cat conftest.err >&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021053 (exit $ac_status); } && {
21054 test -z "$ac_c_werror_flag" ||
21055 test ! -s conftest.err
21056 } && test -s conftest$ac_exeext &&
21057 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000021058 eval "$as_ac_var=yes"
21059else
21060 echo "$as_me: failed program was:" >&5
21061sed 's/^/| /' conftest.$ac_ext >&5
21062
openvcdiffd1845782009-03-20 21:56:15 +000021063 eval "$as_ac_var=no"
openvcdiff311c7142008-08-26 19:29:25 +000021064fi
openvcdiffd1845782009-03-20 21:56:15 +000021065
21066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000021067 conftest$ac_exeext conftest.$ac_ext
21068fi
openvcdiffd1845782009-03-20 21:56:15 +000021069ac_res=`eval echo '${'$as_ac_var'}'`
21070 { echo "$as_me:$LINENO: result: $ac_res" >&5
21071echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021072if test `eval echo '${'$as_ac_var'}'` = yes; then
21073 cat >>confdefs.h <<_ACEOF
21074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21075_ACEOF
21076
21077fi
21078done
21079
21080
21081
21082for ac_func in memalign posix_memalign
21083do
21084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000021085{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21087if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000021088 echo $ECHO_N "(cached) $ECHO_C" >&6
21089else
21090 cat >conftest.$ac_ext <<_ACEOF
21091/* confdefs.h. */
21092_ACEOF
21093cat confdefs.h >>conftest.$ac_ext
21094cat >>conftest.$ac_ext <<_ACEOF
21095/* end confdefs.h. */
21096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21098#define $ac_func innocuous_$ac_func
21099
21100/* System header to define __stub macros and hopefully few prototypes,
21101 which can conflict with char $ac_func (); below.
21102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21103 <limits.h> exists even on freestanding compilers. */
21104
21105#ifdef __STDC__
21106# include <limits.h>
21107#else
21108# include <assert.h>
21109#endif
21110
21111#undef $ac_func
21112
openvcdiffd1845782009-03-20 21:56:15 +000021113/* Override any GCC internal prototype to avoid an error.
21114 Use char because int might match the return type of a GCC
21115 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000021116#ifdef __cplusplus
21117extern "C"
openvcdiff311c7142008-08-26 19:29:25 +000021118#endif
openvcdiff311c7142008-08-26 19:29:25 +000021119char $ac_func ();
21120/* The GNU C library defines this for functions which it implements
21121 to always fail with ENOSYS. Some functions are actually named
21122 something starting with __ and the normal name is an alias. */
openvcdiffd1845782009-03-20 21:56:15 +000021123#if defined __stub_$ac_func || defined __stub___$ac_func
openvcdiff311c7142008-08-26 19:29:25 +000021124choke me
openvcdiff311c7142008-08-26 19:29:25 +000021125#endif
21126
21127int
21128main ()
21129{
openvcdiffd1845782009-03-20 21:56:15 +000021130return $ac_func ();
openvcdiff311c7142008-08-26 19:29:25 +000021131 ;
21132 return 0;
21133}
21134_ACEOF
21135rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000021136if { (ac_try="$ac_link"
21137case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21140esac
21141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021143 ac_status=$?
21144 grep -v '^ *+' conftest.er1 >conftest.err
21145 rm -f conftest.er1
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021148 (exit $ac_status); } && {
21149 test -z "$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21151 } && test -s conftest$ac_exeext &&
21152 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000021153 eval "$as_ac_var=yes"
21154else
21155 echo "$as_me: failed program was:" >&5
21156sed 's/^/| /' conftest.$ac_ext >&5
21157
openvcdiffd1845782009-03-20 21:56:15 +000021158 eval "$as_ac_var=no"
openvcdiff311c7142008-08-26 19:29:25 +000021159fi
openvcdiffd1845782009-03-20 21:56:15 +000021160
21161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000021162 conftest$ac_exeext conftest.$ac_ext
21163fi
openvcdiffd1845782009-03-20 21:56:15 +000021164ac_res=`eval echo '${'$as_ac_var'}'`
21165 { echo "$as_me:$LINENO: result: $ac_res" >&5
21166echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021167if test `eval echo '${'$as_ac_var'}'` = yes; then
21168 cat >>confdefs.h <<_ACEOF
21169#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21170_ACEOF
21171
21172fi
21173done
21174
21175
21176for ac_func in mprotect
21177do
21178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000021179{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21181if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000021182 echo $ECHO_N "(cached) $ECHO_C" >&6
21183else
21184 cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h. */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h. */
21190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21192#define $ac_func innocuous_$ac_func
21193
21194/* System header to define __stub macros and hopefully few prototypes,
21195 which can conflict with char $ac_func (); below.
21196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21197 <limits.h> exists even on freestanding compilers. */
21198
21199#ifdef __STDC__
21200# include <limits.h>
21201#else
21202# include <assert.h>
21203#endif
21204
21205#undef $ac_func
21206
openvcdiffd1845782009-03-20 21:56:15 +000021207/* Override any GCC internal prototype to avoid an error.
21208 Use char because int might match the return type of a GCC
21209 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000021210#ifdef __cplusplus
21211extern "C"
openvcdiff311c7142008-08-26 19:29:25 +000021212#endif
openvcdiff311c7142008-08-26 19:29:25 +000021213char $ac_func ();
21214/* The GNU C library defines this for functions which it implements
21215 to always fail with ENOSYS. Some functions are actually named
21216 something starting with __ and the normal name is an alias. */
openvcdiffd1845782009-03-20 21:56:15 +000021217#if defined __stub_$ac_func || defined __stub___$ac_func
openvcdiff311c7142008-08-26 19:29:25 +000021218choke me
openvcdiff311c7142008-08-26 19:29:25 +000021219#endif
21220
21221int
21222main ()
21223{
openvcdiffd1845782009-03-20 21:56:15 +000021224return $ac_func ();
openvcdiff311c7142008-08-26 19:29:25 +000021225 ;
21226 return 0;
21227}
21228_ACEOF
21229rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000021230if { (ac_try="$ac_link"
21231case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21234esac
21235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021237 ac_status=$?
21238 grep -v '^ *+' conftest.er1 >conftest.err
21239 rm -f conftest.er1
21240 cat conftest.err >&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021242 (exit $ac_status); } && {
21243 test -z "$ac_c_werror_flag" ||
21244 test ! -s conftest.err
21245 } && test -s conftest$ac_exeext &&
21246 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000021247 eval "$as_ac_var=yes"
21248else
21249 echo "$as_me: failed program was:" >&5
21250sed 's/^/| /' conftest.$ac_ext >&5
21251
openvcdiffd1845782009-03-20 21:56:15 +000021252 eval "$as_ac_var=no"
openvcdiff311c7142008-08-26 19:29:25 +000021253fi
openvcdiffd1845782009-03-20 21:56:15 +000021254
21255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000021256 conftest$ac_exeext conftest.$ac_ext
21257fi
openvcdiffd1845782009-03-20 21:56:15 +000021258ac_res=`eval echo '${'$as_ac_var'}'`
21259 { echo "$as_me:$LINENO: result: $ac_res" >&5
21260echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021261if test `eval echo '${'$as_ac_var'}'` = yes; then
21262 cat >>confdefs.h <<_ACEOF
21263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21264_ACEOF
21265
21266fi
21267done
21268
21269
21270# Start of definitions needed by gflags package
21271
21272
21273
21274
21275for ac_header in stdint.h sys/types.h inttypes.h
21276do
21277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000021278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000021282 echo $ECHO_N "(cached) $ECHO_C" >&6
21283fi
openvcdiffd1845782009-03-20 21:56:15 +000021284ac_res=`eval echo '${'$as_ac_Header'}'`
21285 { echo "$as_me:$LINENO: result: $ac_res" >&5
21286echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021287else
21288 # Is the header compilable?
openvcdiffd1845782009-03-20 21:56:15 +000021289{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021291cat >conftest.$ac_ext <<_ACEOF
21292/* confdefs.h. */
21293_ACEOF
21294cat confdefs.h >>conftest.$ac_ext
21295cat >>conftest.$ac_ext <<_ACEOF
21296/* end confdefs.h. */
21297$ac_includes_default
21298#include <$ac_header>
21299_ACEOF
21300rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000021301if { (ac_try="$ac_compile"
21302case "(($ac_try" in
21303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304 *) ac_try_echo=$ac_try;;
21305esac
21306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021308 ac_status=$?
21309 grep -v '^ *+' conftest.er1 >conftest.err
21310 rm -f conftest.er1
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021313 (exit $ac_status); } && {
21314 test -z "$ac_c_werror_flag" ||
21315 test ! -s conftest.err
21316 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000021317 ac_header_compiler=yes
21318else
21319 echo "$as_me: failed program was:" >&5
21320sed 's/^/| /' conftest.$ac_ext >&5
21321
openvcdiffd1845782009-03-20 21:56:15 +000021322 ac_header_compiler=no
openvcdiff311c7142008-08-26 19:29:25 +000021323fi
openvcdiffd1845782009-03-20 21:56:15 +000021324
21325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21327echo "${ECHO_T}$ac_header_compiler" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021328
21329# Is the header present?
openvcdiffd1845782009-03-20 21:56:15 +000021330{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21331echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021332cat >conftest.$ac_ext <<_ACEOF
21333/* confdefs.h. */
21334_ACEOF
21335cat confdefs.h >>conftest.$ac_ext
21336cat >>conftest.$ac_ext <<_ACEOF
21337/* end confdefs.h. */
21338#include <$ac_header>
21339_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000021340if { (ac_try="$ac_cpp conftest.$ac_ext"
21341case "(($ac_try" in
21342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21344esac
21345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021347 ac_status=$?
21348 grep -v '^ *+' conftest.er1 >conftest.err
21349 rm -f conftest.er1
21350 cat conftest.err >&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021352 (exit $ac_status); } >/dev/null && {
21353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21354 test ! -s conftest.err
21355 }; then
openvcdiff311c7142008-08-26 19:29:25 +000021356 ac_header_preproc=yes
21357else
21358 echo "$as_me: failed program was:" >&5
21359sed 's/^/| /' conftest.$ac_ext >&5
21360
21361 ac_header_preproc=no
21362fi
openvcdiffd1845782009-03-20 21:56:15 +000021363
openvcdiff311c7142008-08-26 19:29:25 +000021364rm -f conftest.err conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +000021365{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21366echo "${ECHO_T}$ac_header_preproc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021367
21368# So? What about this header?
21369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21370 yes:no: )
21371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21372echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21374echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21375 ac_header_preproc=yes
21376 ;;
21377 no:yes:* )
21378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21379echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21381echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21383echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21385echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21389echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +000021390 ( cat <<\_ASBOX
openvcdiff311c7142008-08-26 19:29:25 +000021391## ------------------------------------ ##
21392## Report this to opensource@google.com ##
21393## ------------------------------------ ##
21394_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +000021395 ) | sed "s/^/$as_me: WARNING: /" >&2
openvcdiff311c7142008-08-26 19:29:25 +000021396 ;;
21397esac
openvcdiffd1845782009-03-20 21:56:15 +000021398{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000021401 echo $ECHO_N "(cached) $ECHO_C" >&6
21402else
21403 eval "$as_ac_Header=\$ac_header_preproc"
21404fi
openvcdiffd1845782009-03-20 21:56:15 +000021405ac_res=`eval echo '${'$as_ac_Header'}'`
21406 { echo "$as_me:$LINENO: result: $ac_res" >&5
21407echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021408
21409fi
21410if test `eval echo '${'$as_ac_Header'}'` = yes; then
21411 cat >>confdefs.h <<_ACEOF
21412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21413_ACEOF
21414
21415fi
21416
21417done
21418
21419
21420for ac_header in fnmatch.h
21421do
21422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000021423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000021427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428fi
openvcdiffd1845782009-03-20 21:56:15 +000021429ac_res=`eval echo '${'$as_ac_Header'}'`
21430 { echo "$as_me:$LINENO: result: $ac_res" >&5
21431echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021432else
21433 # Is the header compilable?
openvcdiffd1845782009-03-20 21:56:15 +000021434{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021436cat >conftest.$ac_ext <<_ACEOF
21437/* confdefs.h. */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
21441/* end confdefs.h. */
21442$ac_includes_default
21443#include <$ac_header>
21444_ACEOF
21445rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000021446if { (ac_try="$ac_compile"
21447case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450esac
21451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000021462 ac_header_compiler=yes
21463else
21464 echo "$as_me: failed program was:" >&5
21465sed 's/^/| /' conftest.$ac_ext >&5
21466
openvcdiffd1845782009-03-20 21:56:15 +000021467 ac_header_compiler=no
openvcdiff311c7142008-08-26 19:29:25 +000021468fi
openvcdiffd1845782009-03-20 21:56:15 +000021469
21470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21472echo "${ECHO_T}$ac_header_compiler" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021473
21474# Is the header present?
openvcdiffd1845782009-03-20 21:56:15 +000021475{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021477cat >conftest.$ac_ext <<_ACEOF
21478/* confdefs.h. */
21479_ACEOF
21480cat confdefs.h >>conftest.$ac_ext
21481cat >>conftest.$ac_ext <<_ACEOF
21482/* end confdefs.h. */
21483#include <$ac_header>
21484_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000021485if { (ac_try="$ac_cpp conftest.$ac_ext"
21486case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21489esac
21490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021497 (exit $ac_status); } >/dev/null && {
21498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 }; then
openvcdiff311c7142008-08-26 19:29:25 +000021501 ac_header_preproc=yes
21502else
21503 echo "$as_me: failed program was:" >&5
21504sed 's/^/| /' conftest.$ac_ext >&5
21505
21506 ac_header_preproc=no
21507fi
openvcdiffd1845782009-03-20 21:56:15 +000021508
openvcdiff311c7142008-08-26 19:29:25 +000021509rm -f conftest.err conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +000021510{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21511echo "${ECHO_T}$ac_header_preproc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021512
21513# So? What about this header?
21514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21515 yes:no: )
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21520 ac_header_preproc=yes
21521 ;;
21522 no:yes:* )
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +000021535 ( cat <<\_ASBOX
openvcdiff311c7142008-08-26 19:29:25 +000021536## ------------------------------------ ##
21537## Report this to opensource@google.com ##
21538## ------------------------------------ ##
21539_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +000021540 ) | sed "s/^/$as_me: WARNING: /" >&2
openvcdiff311c7142008-08-26 19:29:25 +000021541 ;;
21542esac
openvcdiffd1845782009-03-20 21:56:15 +000021543{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000021546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547else
21548 eval "$as_ac_Header=\$ac_header_preproc"
21549fi
openvcdiffd1845782009-03-20 21:56:15 +000021550ac_res=`eval echo '${'$as_ac_Header'}'`
21551 { echo "$as_me:$LINENO: result: $ac_res" >&5
21552echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021553
21554fi
21555if test `eval echo '${'$as_ac_Header'}'` = yes; then
21556 cat >>confdefs.h <<_ACEOF
21557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21558_ACEOF
21559
21560fi
21561
21562done
21563
21564
openvcdiff311c7142008-08-26 19:29:25 +000021565
21566for ac_func in strtoll strtoq
21567do
21568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
openvcdiffd1845782009-03-20 21:56:15 +000021569{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21571if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
openvcdiff311c7142008-08-26 19:29:25 +000021572 echo $ECHO_N "(cached) $ECHO_C" >&6
21573else
21574 cat >conftest.$ac_ext <<_ACEOF
21575/* confdefs.h. */
21576_ACEOF
21577cat confdefs.h >>conftest.$ac_ext
21578cat >>conftest.$ac_ext <<_ACEOF
21579/* end confdefs.h. */
21580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21582#define $ac_func innocuous_$ac_func
21583
21584/* System header to define __stub macros and hopefully few prototypes,
21585 which can conflict with char $ac_func (); below.
21586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21587 <limits.h> exists even on freestanding compilers. */
21588
21589#ifdef __STDC__
21590# include <limits.h>
21591#else
21592# include <assert.h>
21593#endif
21594
21595#undef $ac_func
21596
openvcdiffd1845782009-03-20 21:56:15 +000021597/* Override any GCC internal prototype to avoid an error.
21598 Use char because int might match the return type of a GCC
21599 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000021600#ifdef __cplusplus
21601extern "C"
openvcdiff311c7142008-08-26 19:29:25 +000021602#endif
openvcdiff311c7142008-08-26 19:29:25 +000021603char $ac_func ();
21604/* The GNU C library defines this for functions which it implements
21605 to always fail with ENOSYS. Some functions are actually named
21606 something starting with __ and the normal name is an alias. */
openvcdiffd1845782009-03-20 21:56:15 +000021607#if defined __stub_$ac_func || defined __stub___$ac_func
openvcdiff311c7142008-08-26 19:29:25 +000021608choke me
openvcdiff311c7142008-08-26 19:29:25 +000021609#endif
21610
21611int
21612main ()
21613{
openvcdiffd1845782009-03-20 21:56:15 +000021614return $ac_func ();
openvcdiff311c7142008-08-26 19:29:25 +000021615 ;
21616 return 0;
21617}
21618_ACEOF
21619rm -f conftest.$ac_objext conftest$ac_exeext
openvcdiffd1845782009-03-20 21:56:15 +000021620if { (ac_try="$ac_link"
21621case "(($ac_try" in
21622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623 *) ac_try_echo=$ac_try;;
21624esac
21625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626 (eval "$ac_link") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021632 (exit $ac_status); } && {
21633 test -z "$ac_c_werror_flag" ||
21634 test ! -s conftest.err
21635 } && test -s conftest$ac_exeext &&
21636 $as_test_x conftest$ac_exeext; then
openvcdiff311c7142008-08-26 19:29:25 +000021637 eval "$as_ac_var=yes"
21638else
21639 echo "$as_me: failed program was:" >&5
21640sed 's/^/| /' conftest.$ac_ext >&5
21641
openvcdiffd1845782009-03-20 21:56:15 +000021642 eval "$as_ac_var=no"
openvcdiff311c7142008-08-26 19:29:25 +000021643fi
openvcdiffd1845782009-03-20 21:56:15 +000021644
21645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
openvcdiff311c7142008-08-26 19:29:25 +000021646 conftest$ac_exeext conftest.$ac_ext
21647fi
openvcdiffd1845782009-03-20 21:56:15 +000021648ac_res=`eval echo '${'$as_ac_var'}'`
21649 { echo "$as_me:$LINENO: result: $ac_res" >&5
21650echo "${ECHO_T}$ac_res" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021651if test `eval echo '${'$as_ac_var'}'` = yes; then
21652 cat >>confdefs.h <<_ACEOF
21653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21654_ACEOF
21655
21656fi
21657done
21658
openvcdiffd1845782009-03-20 21:56:15 +000021659{ echo "$as_me:$LINENO: checking for uint16_t" >&5
21660echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021661if test "${ac_cv_type_uint16_t+set}" = set; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21663else
21664 cat >conftest.$ac_ext <<_ACEOF
21665/* confdefs.h. */
21666_ACEOF
21667cat confdefs.h >>conftest.$ac_ext
21668cat >>conftest.$ac_ext <<_ACEOF
21669/* end confdefs.h. */
21670$ac_includes_default
openvcdiffd1845782009-03-20 21:56:15 +000021671typedef uint16_t ac__type_new_;
openvcdiff311c7142008-08-26 19:29:25 +000021672int
21673main ()
21674{
openvcdiffd1845782009-03-20 21:56:15 +000021675if ((ac__type_new_ *) 0)
openvcdiff311c7142008-08-26 19:29:25 +000021676 return 0;
openvcdiffd1845782009-03-20 21:56:15 +000021677if (sizeof (ac__type_new_))
openvcdiff311c7142008-08-26 19:29:25 +000021678 return 0;
21679 ;
21680 return 0;
21681}
21682_ACEOF
21683rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000021684if { (ac_try="$ac_compile"
21685case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688esac
21689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021691 ac_status=$?
21692 grep -v '^ *+' conftest.er1 >conftest.err
21693 rm -f conftest.er1
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021696 (exit $ac_status); } && {
21697 test -z "$ac_c_werror_flag" ||
21698 test ! -s conftest.err
21699 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000021700 ac_cv_type_uint16_t=yes
21701else
21702 echo "$as_me: failed program was:" >&5
21703sed 's/^/| /' conftest.$ac_ext >&5
21704
openvcdiffd1845782009-03-20 21:56:15 +000021705 ac_cv_type_uint16_t=no
openvcdiff311c7142008-08-26 19:29:25 +000021706fi
openvcdiffd1845782009-03-20 21:56:15 +000021707
21708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000021709fi
openvcdiffd1845782009-03-20 21:56:15 +000021710{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21711echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021712if test $ac_cv_type_uint16_t = yes; then
21713
21714cat >>confdefs.h <<_ACEOF
21715#define HAVE_UINT16_T 1
21716_ACEOF
21717
21718
21719fi
openvcdiffd1845782009-03-20 21:56:15 +000021720{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
21721echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021722if test "${ac_cv_type_u_int16_t+set}" = set; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21724else
21725 cat >conftest.$ac_ext <<_ACEOF
21726/* confdefs.h. */
21727_ACEOF
21728cat confdefs.h >>conftest.$ac_ext
21729cat >>conftest.$ac_ext <<_ACEOF
21730/* end confdefs.h. */
21731$ac_includes_default
openvcdiffd1845782009-03-20 21:56:15 +000021732typedef u_int16_t ac__type_new_;
openvcdiff311c7142008-08-26 19:29:25 +000021733int
21734main ()
21735{
openvcdiffd1845782009-03-20 21:56:15 +000021736if ((ac__type_new_ *) 0)
openvcdiff311c7142008-08-26 19:29:25 +000021737 return 0;
openvcdiffd1845782009-03-20 21:56:15 +000021738if (sizeof (ac__type_new_))
openvcdiff311c7142008-08-26 19:29:25 +000021739 return 0;
21740 ;
21741 return 0;
21742}
21743_ACEOF
21744rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000021745if { (ac_try="$ac_compile"
21746case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21749esac
21750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021757 (exit $ac_status); } && {
21758 test -z "$ac_c_werror_flag" ||
21759 test ! -s conftest.err
21760 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000021761 ac_cv_type_u_int16_t=yes
21762else
21763 echo "$as_me: failed program was:" >&5
21764sed 's/^/| /' conftest.$ac_ext >&5
21765
openvcdiffd1845782009-03-20 21:56:15 +000021766 ac_cv_type_u_int16_t=no
openvcdiff311c7142008-08-26 19:29:25 +000021767fi
openvcdiffd1845782009-03-20 21:56:15 +000021768
21769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000021770fi
openvcdiffd1845782009-03-20 21:56:15 +000021771{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
21772echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021773if test $ac_cv_type_u_int16_t = yes; then
21774
21775cat >>confdefs.h <<_ACEOF
21776#define HAVE_U_INT16_T 1
21777_ACEOF
21778
21779
21780fi
openvcdiffd1845782009-03-20 21:56:15 +000021781{ echo "$as_me:$LINENO: checking for __int16" >&5
21782echo $ECHO_N "checking for __int16... $ECHO_C" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021783if test "${ac_cv_type___int16+set}" = set; then
21784 echo $ECHO_N "(cached) $ECHO_C" >&6
21785else
21786 cat >conftest.$ac_ext <<_ACEOF
21787/* confdefs.h. */
21788_ACEOF
21789cat confdefs.h >>conftest.$ac_ext
21790cat >>conftest.$ac_ext <<_ACEOF
21791/* end confdefs.h. */
21792$ac_includes_default
openvcdiffd1845782009-03-20 21:56:15 +000021793typedef __int16 ac__type_new_;
openvcdiff311c7142008-08-26 19:29:25 +000021794int
21795main ()
21796{
openvcdiffd1845782009-03-20 21:56:15 +000021797if ((ac__type_new_ *) 0)
openvcdiff311c7142008-08-26 19:29:25 +000021798 return 0;
openvcdiffd1845782009-03-20 21:56:15 +000021799if (sizeof (ac__type_new_))
openvcdiff311c7142008-08-26 19:29:25 +000021800 return 0;
21801 ;
21802 return 0;
21803}
21804_ACEOF
21805rm -f conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000021806if { (ac_try="$ac_compile"
21807case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21810esac
21811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_compile") 2>conftest.er1
openvcdiff311c7142008-08-26 19:29:25 +000021813 ac_status=$?
21814 grep -v '^ *+' conftest.er1 >conftest.err
21815 rm -f conftest.er1
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
openvcdiffd1845782009-03-20 21:56:15 +000021818 (exit $ac_status); } && {
21819 test -z "$ac_c_werror_flag" ||
21820 test ! -s conftest.err
21821 } && test -s conftest.$ac_objext; then
openvcdiff311c7142008-08-26 19:29:25 +000021822 ac_cv_type___int16=yes
21823else
21824 echo "$as_me: failed program was:" >&5
21825sed 's/^/| /' conftest.$ac_ext >&5
21826
openvcdiffd1845782009-03-20 21:56:15 +000021827 ac_cv_type___int16=no
openvcdiff311c7142008-08-26 19:29:25 +000021828fi
openvcdiffd1845782009-03-20 21:56:15 +000021829
21830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000021831fi
openvcdiffd1845782009-03-20 21:56:15 +000021832{ echo "$as_me:$LINENO: result: $ac_cv_type___int16" >&5
21833echo "${ECHO_T}$ac_cv_type___int16" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000021834if test $ac_cv_type___int16 = yes; then
21835
21836cat >>confdefs.h <<_ACEOF
21837#define HAVE___INT16 1
21838_ACEOF
21839
21840
21841fi
21842
21843
openvcdiffbaf44ea2009-04-09 19:20:49 +000021844
21845 { echo "$as_me:$LINENO: checking for __attribute__" >&5
21846echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
21847 if test "${ac_cv___attribute__+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21849else
21850
21851 cat >conftest.$ac_ext <<_ACEOF
21852/* confdefs.h. */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h. */
21857#include <stdlib.h>
21858 static void foo(void) __attribute__ ((unused));
21859 void foo(void) { exit(1); }
21860int
21861main ()
21862{
21863
21864 ;
21865 return 0;
21866}
21867_ACEOF
21868rm -f conftest.$ac_objext
21869if { (ac_try="$ac_compile"
21870case "(($ac_try" in
21871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872 *) ac_try_echo=$ac_try;;
21873esac
21874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21875 (eval "$ac_compile") 2>conftest.er1
21876 ac_status=$?
21877 grep -v '^ *+' conftest.er1 >conftest.err
21878 rm -f conftest.er1
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } && {
21882 test -z "$ac_c_werror_flag" ||
21883 test ! -s conftest.err
21884 } && test -s conftest.$ac_objext; then
21885 ac_cv___attribute__=yes
21886else
21887 echo "$as_me: failed program was:" >&5
21888sed 's/^/| /' conftest.$ac_ext >&5
21889
21890 ac_cv___attribute__=no
21891
21892fi
21893
21894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895fi
21896
21897 if test "$ac_cv___attribute__" = "yes"; then
21898
21899cat >>confdefs.h <<\_ACEOF
21900#define HAVE___ATTRIBUTE__ 1
21901_ACEOF
21902
21903 fi
21904 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
21905echo "${ECHO_T}$ac_cv___attribute__" >&6; }
21906
openvcdiff311c7142008-08-26 19:29:25 +000021907
openvcdiff311c7142008-08-26 19:29:25 +000021908# End of definitions needed by gflags package
21909
openvcdiffd1845782009-03-20 21:56:15 +000021910# Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
21911# If so, we replace it with our own version.
21912LIBSTDCXX_LA_LINKER_FLAG=
21913if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
21914then
21915 LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
21916fi
21917
21918
21919ac_config_files="$ac_config_files Makefile"
openvcdiff311c7142008-08-26 19:29:25 +000021920
21921cat >confcache <<\_ACEOF
21922# This file is a shell script that caches the results of configure
21923# tests run on this system so they can be shared between configure
21924# scripts and configure runs, see configure's option --config-cache.
21925# It is not useful on other systems. If it contains results you don't
21926# want to keep, you may remove or edit it.
21927#
21928# config.status only pays attention to the cache file if you give it
21929# the --recheck option to rerun configure.
21930#
21931# `ac_cv_env_foo' variables (set or unset) will be overridden when
21932# loading this file, other *unset* `ac_cv_foo' will be assigned the
21933# following values.
21934
21935_ACEOF
21936
21937# The following way of writing the cache mishandles newlines in values,
21938# but we know of no workaround that is simple, portable, and efficient.
openvcdiffd1845782009-03-20 21:56:15 +000021939# So, we kill variables containing newlines.
openvcdiff311c7142008-08-26 19:29:25 +000021940# Ultrix sh set writes to stderr and can't be redirected directly,
21941# and sets the high bit in the cache file unless we assign to the vars.
openvcdiffd1845782009-03-20 21:56:15 +000021942(
21943 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21944 eval ac_val=\$$ac_var
21945 case $ac_val in #(
21946 *${as_nl}*)
21947 case $ac_var in #(
21948 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21949echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21950 esac
21951 case $ac_var in #(
21952 _ | IFS | as_nl) ;; #(
21953 *) $as_unset $ac_var ;;
21954 esac ;;
21955 esac
21956 done
21957
openvcdiff311c7142008-08-26 19:29:25 +000021958 (set) 2>&1 |
openvcdiffd1845782009-03-20 21:56:15 +000021959 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21960 *${as_nl}ac_space=\ *)
openvcdiff311c7142008-08-26 19:29:25 +000021961 # `set' does not quote correctly, so add quotes (double-quote
21962 # substitution turns \\\\ into \\, and sed turns \\ into \).
21963 sed -n \
21964 "s/'/'\\\\''/g;
21965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
openvcdiffd1845782009-03-20 21:56:15 +000021966 ;; #(
openvcdiff311c7142008-08-26 19:29:25 +000021967 *)
21968 # `set' quotes correctly as required by POSIX, so do not add quotes.
openvcdiffd1845782009-03-20 21:56:15 +000021969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
openvcdiff311c7142008-08-26 19:29:25 +000021970 ;;
openvcdiffd1845782009-03-20 21:56:15 +000021971 esac |
21972 sort
21973) |
openvcdiff311c7142008-08-26 19:29:25 +000021974 sed '
openvcdiffd1845782009-03-20 21:56:15 +000021975 /^ac_cv_env_/b end
openvcdiff311c7142008-08-26 19:29:25 +000021976 t clear
openvcdiffd1845782009-03-20 21:56:15 +000021977 :clear
openvcdiff311c7142008-08-26 19:29:25 +000021978 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21979 t end
openvcdiffd1845782009-03-20 21:56:15 +000021980 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21981 :end' >>confcache
21982if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21983 if test -w "$cache_file"; then
21984 test "x$cache_file" != "x/dev/null" &&
21985 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21986echo "$as_me: updating cache $cache_file" >&6;}
openvcdiff311c7142008-08-26 19:29:25 +000021987 cat confcache >$cache_file
21988 else
openvcdiffd1845782009-03-20 21:56:15 +000021989 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21990echo "$as_me: not updating unwritable cache $cache_file" >&6;}
openvcdiff311c7142008-08-26 19:29:25 +000021991 fi
21992fi
21993rm -f confcache
21994
21995test "x$prefix" = xNONE && prefix=$ac_default_prefix
21996# Let make expand exec_prefix.
21997test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21998
openvcdiff311c7142008-08-26 19:29:25 +000021999DEFS=-DHAVE_CONFIG_H
22000
22001ac_libobjs=
22002ac_ltlibobjs=
22003for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22004 # 1. Remove the extension, and $U if already installed.
openvcdiffd1845782009-03-20 21:56:15 +000022005 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22006 ac_i=`echo "$ac_i" | sed "$ac_script"`
22007 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22008 # will be set to the directory where LIBOBJS objects are built.
22009 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22010 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
openvcdiff311c7142008-08-26 19:29:25 +000022011done
22012LIBOBJS=$ac_libobjs
22013
22014LTLIBOBJS=$ac_ltlibobjs
22015
22016
22017if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22018 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22019Usually this means the macro was only invoked conditionally." >&5
22020echo "$as_me: error: conditional \"AMDEP\" was never defined.
22021Usually this means the macro was only invoked conditionally." >&2;}
22022 { (exit 1); exit 1; }; }
22023fi
22024if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22025 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22026Usually this means the macro was only invoked conditionally." >&5
22027echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22028Usually this means the macro was only invoked conditionally." >&2;}
22029 { (exit 1); exit 1; }; }
22030fi
22031if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22032 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22033Usually this means the macro was only invoked conditionally." >&5
22034echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22035Usually this means the macro was only invoked conditionally." >&2;}
22036 { (exit 1); exit 1; }; }
22037fi
22038if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
22039 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
22040Usually this means the macro was only invoked conditionally." >&5
22041echo "$as_me: error: conditional \"GCC\" was never defined.
22042Usually this means the macro was only invoked conditionally." >&2;}
22043 { (exit 1); exit 1; }; }
22044fi
22045
22046: ${CONFIG_STATUS=./config.status}
22047ac_clean_files_save=$ac_clean_files
22048ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22049{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22050echo "$as_me: creating $CONFIG_STATUS" >&6;}
22051cat >$CONFIG_STATUS <<_ACEOF
22052#! $SHELL
22053# Generated by $as_me.
22054# Run this file to recreate the current configuration.
22055# Compiler output produced by configure, useful for debugging
22056# configure, is in config.log if it exists.
22057
22058debug=false
22059ac_cs_recheck=false
22060ac_cs_silent=false
22061SHELL=\${CONFIG_SHELL-$SHELL}
22062_ACEOF
22063
22064cat >>$CONFIG_STATUS <<\_ACEOF
22065## --------------------- ##
22066## M4sh Initialization. ##
22067## --------------------- ##
22068
openvcdiffd1845782009-03-20 21:56:15 +000022069# Be more Bourne compatible
22070DUALCASE=1; export DUALCASE # for MKS sh
openvcdiff311c7142008-08-26 19:29:25 +000022071if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22072 emulate sh
22073 NULLCMD=:
22074 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22075 # is contrary to our usage. Disable this feature.
22076 alias -g '${1+"$@"}'='"$@"'
openvcdiffd1845782009-03-20 21:56:15 +000022077 setopt NO_GLOB_SUBST
openvcdiff311c7142008-08-26 19:29:25 +000022078else
openvcdiffd1845782009-03-20 21:56:15 +000022079 case `(set -o) 2>/dev/null` in
22080 *posix*) set -o posix ;;
22081esac
22082
openvcdiff311c7142008-08-26 19:29:25 +000022083fi
22084
22085
openvcdiff311c7142008-08-26 19:29:25 +000022086
22087
openvcdiffd1845782009-03-20 21:56:15 +000022088# PATH needs CR
openvcdiff311c7142008-08-26 19:29:25 +000022089# Avoid depending upon Character Ranges.
22090as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22091as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22092as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22093as_cr_digits='0123456789'
22094as_cr_alnum=$as_cr_Letters$as_cr_digits
22095
22096# The user is always right.
22097if test "${PATH_SEPARATOR+set}" != set; then
22098 echo "#! /bin/sh" >conf$$.sh
22099 echo "exit 0" >>conf$$.sh
22100 chmod +x conf$$.sh
22101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22102 PATH_SEPARATOR=';'
22103 else
22104 PATH_SEPARATOR=:
22105 fi
22106 rm -f conf$$.sh
22107fi
22108
openvcdiffd1845782009-03-20 21:56:15 +000022109# Support unset when possible.
22110if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22111 as_unset=unset
22112else
22113 as_unset=false
22114fi
openvcdiff311c7142008-08-26 19:29:25 +000022115
openvcdiffd1845782009-03-20 21:56:15 +000022116
22117# IFS
22118# We need space, tab and new line, in precisely that order. Quoting is
22119# there to prevent editors from complaining about space-tab.
22120# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22121# splitting by setting IFS to empty value.)
22122as_nl='
22123'
22124IFS=" "" $as_nl"
22125
22126# Find who we are. Look in the path if we contain no directory separator.
22127case $0 in
22128 *[\\/]* ) as_myself=$0 ;;
22129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
openvcdiff311c7142008-08-26 19:29:25 +000022130for as_dir in $PATH
22131do
22132 IFS=$as_save_IFS
22133 test -z "$as_dir" && as_dir=.
22134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22135done
openvcdiffd1845782009-03-20 21:56:15 +000022136IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +000022137
openvcdiffd1845782009-03-20 21:56:15 +000022138 ;;
22139esac
22140# We did not find ourselves, most probably we were run as `sh COMMAND'
22141# in which case we are not to be found in the path.
22142if test "x$as_myself" = x; then
22143 as_myself=$0
22144fi
22145if test ! -f "$as_myself"; then
22146 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22147 { (exit 1); exit 1; }
22148fi
22149
22150# Work around bugs in pre-3.0 UWIN ksh.
22151for as_var in ENV MAIL MAILPATH
22152do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22153done
22154PS1='$ '
22155PS2='> '
22156PS4='+ '
22157
22158# NLS nuisances.
22159for as_var in \
22160 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22161 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22162 LC_TELEPHONE LC_TIME
openvcdiff311c7142008-08-26 19:29:25 +000022163do
openvcdiffd1845782009-03-20 21:56:15 +000022164 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22165 eval $as_var=C; export $as_var
22166 else
22167 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22168 fi
22169done
22170
22171# Required to use basename.
22172if expr a : '\(a\)' >/dev/null 2>&1 &&
22173 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22174 as_expr=expr
22175else
22176 as_expr=false
22177fi
22178
22179if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22180 as_basename=basename
22181else
22182 as_basename=false
22183fi
22184
22185
22186# Name of the executable.
22187as_me=`$as_basename -- "$0" ||
22188$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22189 X"$0" : 'X\(//\)$' \| \
22190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22191echo X/"$0" |
22192 sed '/^.*\/\([^/][^/]*\)\/*$/{
22193 s//\1/
22194 q
22195 }
22196 /^X\/\(\/\/\)$/{
22197 s//\1/
22198 q
22199 }
22200 /^X\/\(\/\).*/{
22201 s//\1/
22202 q
22203 }
22204 s/.*/./; q'`
22205
22206# CDPATH.
22207$as_unset CDPATH
22208
22209
22210
openvcdiff311c7142008-08-26 19:29:25 +000022211 as_lineno_1=$LINENO
22212 as_lineno_2=$LINENO
openvcdiff311c7142008-08-26 19:29:25 +000022213 test "x$as_lineno_1" != "x$as_lineno_2" &&
openvcdiffd1845782009-03-20 21:56:15 +000022214 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
openvcdiff311c7142008-08-26 19:29:25 +000022215
22216 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22217 # uniformly replaced by the line number. The first 'sed' inserts a
openvcdiffd1845782009-03-20 21:56:15 +000022218 # line-number line after each line using $LINENO; the second 'sed'
22219 # does the real work. The second script uses 'N' to pair each
22220 # line-number line with the line containing $LINENO, and appends
22221 # trailing '-' during substitution so that $LINENO is not a special
22222 # case at line end.
openvcdiff311c7142008-08-26 19:29:25 +000022223 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
openvcdiffd1845782009-03-20 21:56:15 +000022224 # scripts with optimization help from Paolo Bonzini. Blame Lee
22225 # E. McMahon (1931-1989) for sed's syntax. :-)
22226 sed -n '
22227 p
22228 /[$]LINENO/=
22229 ' <$as_myself |
openvcdiff311c7142008-08-26 19:29:25 +000022230 sed '
openvcdiffd1845782009-03-20 21:56:15 +000022231 s/[$]LINENO.*/&-/
22232 t lineno
22233 b
22234 :lineno
openvcdiff311c7142008-08-26 19:29:25 +000022235 N
openvcdiffd1845782009-03-20 21:56:15 +000022236 :loop
22237 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
openvcdiff311c7142008-08-26 19:29:25 +000022238 t loop
openvcdiffd1845782009-03-20 21:56:15 +000022239 s/-\n.*//
openvcdiff311c7142008-08-26 19:29:25 +000022240 ' >$as_me.lineno &&
openvcdiffd1845782009-03-20 21:56:15 +000022241 chmod +x "$as_me.lineno" ||
22242 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
openvcdiff311c7142008-08-26 19:29:25 +000022243 { (exit 1); exit 1; }; }
22244
22245 # Don't try to exec as it changes $[0], causing all sort of problems
22246 # (the dirname of $[0] is not the place where we might find the
openvcdiffd1845782009-03-20 21:56:15 +000022247 # original and so on. Autoconf is especially sensitive to this).
22248 . "./$as_me.lineno"
openvcdiff311c7142008-08-26 19:29:25 +000022249 # Exit status is that of the last command.
22250 exit
22251}
22252
22253
openvcdiffd1845782009-03-20 21:56:15 +000022254if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22255 as_dirname=dirname
22256else
22257 as_dirname=false
22258fi
22259
22260ECHO_C= ECHO_N= ECHO_T=
22261case `echo -n x` in
22262-n*)
22263 case `echo 'x\c'` in
22264 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22265 *) ECHO_C='\c';;
22266 esac;;
22267*)
22268 ECHO_N='-n';;
openvcdiff311c7142008-08-26 19:29:25 +000022269esac
22270
openvcdiffd1845782009-03-20 21:56:15 +000022271if expr a : '\(a\)' >/dev/null 2>&1 &&
22272 test "X`expr 00001 : '.*\(...\)'`" = X001; then
openvcdiff311c7142008-08-26 19:29:25 +000022273 as_expr=expr
22274else
22275 as_expr=false
22276fi
22277
22278rm -f conf$$ conf$$.exe conf$$.file
openvcdiffd1845782009-03-20 21:56:15 +000022279if test -d conf$$.dir; then
22280 rm -f conf$$.dir/conf$$.file
22281else
22282 rm -f conf$$.dir
22283 mkdir conf$$.dir
22284fi
openvcdiff311c7142008-08-26 19:29:25 +000022285echo >conf$$.file
22286if ln -s conf$$.file conf$$ 2>/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +000022287 as_ln_s='ln -s'
22288 # ... but there are two gotchas:
22289 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22290 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22291 # In both cases, we have to default to `cp -p'.
22292 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
openvcdiff311c7142008-08-26 19:29:25 +000022293 as_ln_s='cp -p'
openvcdiff311c7142008-08-26 19:29:25 +000022294elif ln conf$$.file conf$$ 2>/dev/null; then
22295 as_ln_s=ln
22296else
22297 as_ln_s='cp -p'
22298fi
openvcdiffd1845782009-03-20 21:56:15 +000022299rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22300rmdir conf$$.dir 2>/dev/null
openvcdiff311c7142008-08-26 19:29:25 +000022301
22302if mkdir -p . 2>/dev/null; then
22303 as_mkdir_p=:
22304else
22305 test -d ./-p && rmdir ./-p
22306 as_mkdir_p=false
22307fi
22308
openvcdiffd1845782009-03-20 21:56:15 +000022309if test -x / >/dev/null 2>&1; then
22310 as_test_x='test -x'
22311else
22312 if ls -dL / >/dev/null 2>&1; then
22313 as_ls_L_option=L
22314 else
22315 as_ls_L_option=
22316 fi
22317 as_test_x='
22318 eval sh -c '\''
22319 if test -d "$1"; then
22320 test -d "$1/.";
22321 else
22322 case $1 in
22323 -*)set "./$1";;
22324 esac;
22325 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22326 ???[sx]*):;;*)false;;esac;fi
22327 '\'' sh
22328 '
22329fi
22330as_executable_p=$as_test_x
openvcdiff311c7142008-08-26 19:29:25 +000022331
22332# Sed expression to map a string onto a valid CPP name.
22333as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22334
22335# Sed expression to map a string onto a valid variable name.
22336as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22337
22338
openvcdiff311c7142008-08-26 19:29:25 +000022339exec 6>&1
22340
openvcdiffd1845782009-03-20 21:56:15 +000022341# Save the log message, to keep $[0] and so on meaningful, and to
openvcdiff311c7142008-08-26 19:29:25 +000022342# report actual input values of CONFIG_FILES etc. instead of their
openvcdiffd1845782009-03-20 21:56:15 +000022343# values after options handling.
22344ac_log="
openvcdiff@gmail.comf1dd9332009-10-09 22:40:32 +000022345This file was extended by open-vcdiff $as_me 0.7, which was
openvcdiffd1845782009-03-20 21:56:15 +000022346generated by GNU Autoconf 2.61. Invocation command line was
openvcdiff311c7142008-08-26 19:29:25 +000022347
22348 CONFIG_FILES = $CONFIG_FILES
22349 CONFIG_HEADERS = $CONFIG_HEADERS
22350 CONFIG_LINKS = $CONFIG_LINKS
22351 CONFIG_COMMANDS = $CONFIG_COMMANDS
22352 $ $0 $@
22353
openvcdiffd1845782009-03-20 21:56:15 +000022354on `(hostname || uname -n) 2>/dev/null | sed 1q`
22355"
22356
openvcdiff311c7142008-08-26 19:29:25 +000022357_ACEOF
22358
openvcdiffd1845782009-03-20 21:56:15 +000022359cat >>$CONFIG_STATUS <<_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +000022360# Files that config.status was made for.
openvcdiffd1845782009-03-20 21:56:15 +000022361config_files="$ac_config_files"
22362config_headers="$ac_config_headers"
22363config_commands="$ac_config_commands"
openvcdiff311c7142008-08-26 19:29:25 +000022364
openvcdiffd1845782009-03-20 21:56:15 +000022365_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +000022366
22367cat >>$CONFIG_STATUS <<\_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +000022368ac_cs_usage="\
22369\`$as_me' instantiates files from templates according to the
22370current configuration.
22371
22372Usage: $0 [OPTIONS] [FILE]...
22373
22374 -h, --help print this help, then exit
openvcdiffd1845782009-03-20 21:56:15 +000022375 -V, --version print version number and configuration settings, then exit
openvcdiff311c7142008-08-26 19:29:25 +000022376 -q, --quiet do not print progress messages
22377 -d, --debug don't remove temporary files
22378 --recheck update $as_me by reconfiguring in the same conditions
22379 --file=FILE[:TEMPLATE]
22380 instantiate the configuration file FILE
22381 --header=FILE[:TEMPLATE]
22382 instantiate the configuration header FILE
22383
22384Configuration files:
22385$config_files
22386
22387Configuration headers:
22388$config_headers
22389
22390Configuration commands:
22391$config_commands
22392
22393Report bugs to <bug-autoconf@gnu.org>."
openvcdiff311c7142008-08-26 19:29:25 +000022394
openvcdiffd1845782009-03-20 21:56:15 +000022395_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +000022396cat >>$CONFIG_STATUS <<_ACEOF
22397ac_cs_version="\\
openvcdiff@gmail.comf1dd9332009-10-09 22:40:32 +000022398open-vcdiff config.status 0.7
openvcdiffd1845782009-03-20 21:56:15 +000022399configured by $0, generated by GNU Autoconf 2.61,
22400 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
openvcdiff311c7142008-08-26 19:29:25 +000022401
openvcdiffd1845782009-03-20 21:56:15 +000022402Copyright (C) 2006 Free Software Foundation, Inc.
openvcdiff311c7142008-08-26 19:29:25 +000022403This config.status script is free software; the Free Software Foundation
22404gives unlimited permission to copy, distribute and modify it."
openvcdiffd1845782009-03-20 21:56:15 +000022405
22406ac_pwd='$ac_pwd'
22407srcdir='$srcdir'
22408INSTALL='$INSTALL'
22409MKDIR_P='$MKDIR_P'
openvcdiff311c7142008-08-26 19:29:25 +000022410_ACEOF
22411
22412cat >>$CONFIG_STATUS <<\_ACEOF
22413# If no file are specified by the user, then we need to provide default
22414# value. By we need to know if files were specified by the user.
22415ac_need_defaults=:
22416while test $# != 0
22417do
22418 case $1 in
22419 --*=*)
openvcdiffd1845782009-03-20 21:56:15 +000022420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22421 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
openvcdiff311c7142008-08-26 19:29:25 +000022422 ac_shift=:
22423 ;;
openvcdiffd1845782009-03-20 21:56:15 +000022424 *)
openvcdiff311c7142008-08-26 19:29:25 +000022425 ac_option=$1
22426 ac_optarg=$2
22427 ac_shift=shift
22428 ;;
openvcdiff311c7142008-08-26 19:29:25 +000022429 esac
22430
22431 case $ac_option in
22432 # Handling of the options.
openvcdiff311c7142008-08-26 19:29:25 +000022433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22434 ac_cs_recheck=: ;;
openvcdiffd1845782009-03-20 21:56:15 +000022435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22436 echo "$ac_cs_version"; exit ;;
22437 --debug | --debu | --deb | --de | --d | -d )
openvcdiff311c7142008-08-26 19:29:25 +000022438 debug=: ;;
22439 --file | --fil | --fi | --f )
22440 $ac_shift
22441 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22442 ac_need_defaults=false;;
22443 --header | --heade | --head | --hea )
22444 $ac_shift
22445 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22446 ac_need_defaults=false;;
openvcdiffd1845782009-03-20 21:56:15 +000022447 --he | --h)
22448 # Conflict between --help and --header
22449 { echo "$as_me: error: ambiguous option: $1
22450Try \`$0 --help' for more information." >&2
22451 { (exit 1); exit 1; }; };;
22452 --help | --hel | -h )
22453 echo "$ac_cs_usage"; exit ;;
openvcdiff311c7142008-08-26 19:29:25 +000022454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22455 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22456 ac_cs_silent=: ;;
22457
22458 # This is an error.
openvcdiffd1845782009-03-20 21:56:15 +000022459 -*) { echo "$as_me: error: unrecognized option: $1
22460Try \`$0 --help' for more information." >&2
openvcdiff311c7142008-08-26 19:29:25 +000022461 { (exit 1); exit 1; }; } ;;
22462
openvcdiffd1845782009-03-20 21:56:15 +000022463 *) ac_config_targets="$ac_config_targets $1"
22464 ac_need_defaults=false ;;
openvcdiff311c7142008-08-26 19:29:25 +000022465
22466 esac
22467 shift
22468done
22469
22470ac_configure_extra_args=
22471
22472if $ac_cs_silent; then
22473 exec 6>/dev/null
22474 ac_configure_extra_args="$ac_configure_extra_args --silent"
22475fi
22476
22477_ACEOF
22478cat >>$CONFIG_STATUS <<_ACEOF
22479if \$ac_cs_recheck; then
openvcdiffd1845782009-03-20 21:56:15 +000022480 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22481 CONFIG_SHELL=$SHELL
22482 export CONFIG_SHELL
22483 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
openvcdiff311c7142008-08-26 19:29:25 +000022484fi
22485
22486_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000022487cat >>$CONFIG_STATUS <<\_ACEOF
22488exec 5>>config.log
22489{
22490 echo
22491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22492## Running $as_me. ##
22493_ASBOX
22494 echo "$ac_log"
22495} >&5
openvcdiff311c7142008-08-26 19:29:25 +000022496
openvcdiffd1845782009-03-20 21:56:15 +000022497_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +000022498cat >>$CONFIG_STATUS <<_ACEOF
22499#
openvcdiffd1845782009-03-20 21:56:15 +000022500# INIT-COMMANDS
openvcdiff311c7142008-08-26 19:29:25 +000022501#
openvcdiff311c7142008-08-26 19:29:25 +000022502AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22503
22504_ACEOF
22505
openvcdiff311c7142008-08-26 19:29:25 +000022506cat >>$CONFIG_STATUS <<\_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000022507
22508# Handling of arguments.
openvcdiff311c7142008-08-26 19:29:25 +000022509for ac_config_target in $ac_config_targets
22510do
openvcdiffd1845782009-03-20 21:56:15 +000022511 case $ac_config_target in
22512 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22513 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22514 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22515
openvcdiff311c7142008-08-26 19:29:25 +000022516 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22517echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22518 { (exit 1); exit 1; }; };;
22519 esac
22520done
22521
openvcdiffd1845782009-03-20 21:56:15 +000022522
openvcdiff311c7142008-08-26 19:29:25 +000022523# If the user did not use the arguments to specify the items to instantiate,
22524# then the envvar interface is used. Set only those that are not.
22525# We use the long form for the default assignment because of an extremely
22526# bizarre bug on SunOS 4.1.3.
22527if $ac_need_defaults; then
22528 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22529 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22530 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22531fi
22532
22533# Have a temporary directory for convenience. Make it in the build tree
openvcdiffd1845782009-03-20 21:56:15 +000022534# simply because there is no reason against having it here, and in addition,
openvcdiff311c7142008-08-26 19:29:25 +000022535# creating and moving files from /tmp can sometimes cause problems.
openvcdiffd1845782009-03-20 21:56:15 +000022536# Hook for its removal unless debugging.
22537# Note that there is a small window in which the directory will not be cleaned:
22538# after its creation but before its name has been assigned to `$tmp'.
openvcdiff311c7142008-08-26 19:29:25 +000022539$debug ||
22540{
openvcdiffd1845782009-03-20 21:56:15 +000022541 tmp=
22542 trap 'exit_status=$?
22543 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22544' 0
openvcdiff311c7142008-08-26 19:29:25 +000022545 trap '{ (exit 1); exit 1; }' 1 2 13 15
22546}
openvcdiff311c7142008-08-26 19:29:25 +000022547# Create a (secure) tmp directory for tmp files.
22548
22549{
openvcdiffd1845782009-03-20 21:56:15 +000022550 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
openvcdiff311c7142008-08-26 19:29:25 +000022551 test -n "$tmp" && test -d "$tmp"
22552} ||
22553{
openvcdiffd1845782009-03-20 21:56:15 +000022554 tmp=./conf$$-$RANDOM
22555 (umask 077 && mkdir "$tmp")
openvcdiff311c7142008-08-26 19:29:25 +000022556} ||
22557{
22558 echo "$me: cannot create a temporary directory in ." >&2
22559 { (exit 1); exit 1; }
22560}
22561
openvcdiff311c7142008-08-26 19:29:25 +000022562#
openvcdiffd1845782009-03-20 21:56:15 +000022563# Set up the sed scripts for CONFIG_FILES section.
openvcdiff311c7142008-08-26 19:29:25 +000022564#
22565
22566# No need to generate the scripts if there are no CONFIG_FILES.
22567# This happens for instance when ./config.status config.h
openvcdiffd1845782009-03-20 21:56:15 +000022568if test -n "$CONFIG_FILES"; then
openvcdiff311c7142008-08-26 19:29:25 +000022569
22570_ACEOF
22571
openvcdiffd1845782009-03-20 21:56:15 +000022572
22573
22574ac_delim='%!_!# '
22575for ac_last_try in false false false false false :; do
22576 cat >conf$$subs.sed <<_ACEOF
22577SHELL!$SHELL$ac_delim
22578PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22579PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22580PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22581PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22582PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22583PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22584exec_prefix!$exec_prefix$ac_delim
22585prefix!$prefix$ac_delim
22586program_transform_name!$program_transform_name$ac_delim
22587bindir!$bindir$ac_delim
22588sbindir!$sbindir$ac_delim
22589libexecdir!$libexecdir$ac_delim
22590datarootdir!$datarootdir$ac_delim
22591datadir!$datadir$ac_delim
22592sysconfdir!$sysconfdir$ac_delim
22593sharedstatedir!$sharedstatedir$ac_delim
22594localstatedir!$localstatedir$ac_delim
22595includedir!$includedir$ac_delim
22596oldincludedir!$oldincludedir$ac_delim
22597docdir!$docdir$ac_delim
22598infodir!$infodir$ac_delim
22599htmldir!$htmldir$ac_delim
22600dvidir!$dvidir$ac_delim
22601pdfdir!$pdfdir$ac_delim
22602psdir!$psdir$ac_delim
22603libdir!$libdir$ac_delim
22604localedir!$localedir$ac_delim
22605mandir!$mandir$ac_delim
22606DEFS!$DEFS$ac_delim
22607ECHO_C!$ECHO_C$ac_delim
22608ECHO_N!$ECHO_N$ac_delim
22609ECHO_T!$ECHO_T$ac_delim
22610LIBS!$LIBS$ac_delim
22611build_alias!$build_alias$ac_delim
22612host_alias!$host_alias$ac_delim
22613target_alias!$target_alias$ac_delim
22614INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22615INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22616INSTALL_DATA!$INSTALL_DATA$ac_delim
22617am__isrc!$am__isrc$ac_delim
22618CYGPATH_W!$CYGPATH_W$ac_delim
22619PACKAGE!$PACKAGE$ac_delim
22620VERSION!$VERSION$ac_delim
22621ACLOCAL!$ACLOCAL$ac_delim
22622AUTOCONF!$AUTOCONF$ac_delim
22623AUTOMAKE!$AUTOMAKE$ac_delim
22624AUTOHEADER!$AUTOHEADER$ac_delim
22625MAKEINFO!$MAKEINFO$ac_delim
22626install_sh!$install_sh$ac_delim
22627STRIP!$STRIP$ac_delim
22628INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22629mkdir_p!$mkdir_p$ac_delim
22630AWK!$AWK$ac_delim
22631SET_MAKE!$SET_MAKE$ac_delim
22632am__leading_dot!$am__leading_dot$ac_delim
22633AMTAR!$AMTAR$ac_delim
22634am__tar!$am__tar$ac_delim
22635am__untar!$am__untar$ac_delim
22636CC!$CC$ac_delim
22637CFLAGS!$CFLAGS$ac_delim
22638LDFLAGS!$LDFLAGS$ac_delim
22639CPPFLAGS!$CPPFLAGS$ac_delim
22640ac_ct_CC!$ac_ct_CC$ac_delim
22641EXEEXT!$EXEEXT$ac_delim
22642OBJEXT!$OBJEXT$ac_delim
22643DEPDIR!$DEPDIR$ac_delim
22644am__include!$am__include$ac_delim
22645am__quote!$am__quote$ac_delim
22646AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22647AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22648AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22649CCDEPMODE!$CCDEPMODE$ac_delim
22650am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22651am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22652CPP!$CPP$ac_delim
22653CXX!$CXX$ac_delim
22654CXXFLAGS!$CXXFLAGS$ac_delim
22655ac_ct_CXX!$ac_ct_CXX$ac_delim
22656CXXDEPMODE!$CXXDEPMODE$ac_delim
22657am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22658am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22659GCC_TRUE!$GCC_TRUE$ac_delim
22660GCC_FALSE!$GCC_FALSE$ac_delim
22661build!$build$ac_delim
22662build_cpu!$build_cpu$ac_delim
22663build_vendor!$build_vendor$ac_delim
22664build_os!$build_os$ac_delim
22665host!$host$ac_delim
22666host_cpu!$host_cpu$ac_delim
22667host_vendor!$host_vendor$ac_delim
22668host_os!$host_os$ac_delim
22669SED!$SED$ac_delim
22670GREP!$GREP$ac_delim
22671EGREP!$EGREP$ac_delim
22672LN_S!$LN_S$ac_delim
22673ECHO!$ECHO$ac_delim
22674_ACEOF
22675
22676 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22677 break
22678 elif $ac_last_try; then
22679 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22680echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22681 { (exit 1); exit 1; }; }
22682 else
22683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
openvcdiff311c7142008-08-26 19:29:25 +000022684 fi
openvcdiffd1845782009-03-20 21:56:15 +000022685done
22686
22687ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22688if test -n "$ac_eof"; then
22689 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22690 ac_eof=`expr $ac_eof + 1`
22691fi
22692
22693cat >>$CONFIG_STATUS <<_ACEOF
22694cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22695/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22696_ACEOF
22697sed '
22698s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22699s/^/s,@/; s/!/@,|#_!!_#|/
22700:n
22701t n
22702s/'"$ac_delim"'$/,g/; t
22703s/$/\\/; p
22704N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22705' >>$CONFIG_STATUS <conf$$subs.sed
22706rm -f conf$$subs.sed
22707cat >>$CONFIG_STATUS <<_ACEOF
22708CEOF$ac_eof
22709_ACEOF
22710
22711
22712ac_delim='%!_!# '
22713for ac_last_try in false false false false false :; do
22714 cat >conf$$subs.sed <<_ACEOF
22715AR!$AR$ac_delim
22716RANLIB!$RANLIB$ac_delim
22717DSYMUTIL!$DSYMUTIL$ac_delim
22718NMEDIT!$NMEDIT$ac_delim
22719CXXCPP!$CXXCPP$ac_delim
22720F77!$F77$ac_delim
22721FFLAGS!$FFLAGS$ac_delim
22722ac_ct_F77!$ac_ct_F77$ac_delim
22723LIBTOOL!$LIBTOOL$ac_delim
22724LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22725LIBSTDCXX_LA_LINKER_FLAG!$LIBSTDCXX_LA_LINKER_FLAG$ac_delim
22726LIBOBJS!$LIBOBJS$ac_delim
22727LTLIBOBJS!$LTLIBOBJS$ac_delim
22728_ACEOF
22729
22730 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
22731 break
22732 elif $ac_last_try; then
22733 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22734echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22735 { (exit 1); exit 1; }; }
22736 else
22737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22738 fi
22739done
22740
22741ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22742if test -n "$ac_eof"; then
22743 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22744 ac_eof=`expr $ac_eof + 1`
22745fi
22746
22747cat >>$CONFIG_STATUS <<_ACEOF
22748cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22750_ACEOF
22751sed '
22752s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22753s/^/s,@/; s/!/@,|#_!!_#|/
22754:n
22755t n
22756s/'"$ac_delim"'$/,g/; t
22757s/$/\\/; p
22758N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22759' >>$CONFIG_STATUS <conf$$subs.sed
22760rm -f conf$$subs.sed
22761cat >>$CONFIG_STATUS <<_ACEOF
22762:end
22763s/|#_!!_#|//g
22764CEOF$ac_eof
22765_ACEOF
22766
22767
22768# VPATH may cause trouble with some makes, so we remove $(srcdir),
22769# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22770# trailing colons and then remove the whole line if VPATH becomes empty
22771# (actually we leave an empty line to preserve line numbers).
22772if test "x$srcdir" = x.; then
22773 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22774s/:*\$(srcdir):*/:/
22775s/:*\${srcdir}:*/:/
22776s/:*@srcdir@:*/:/
22777s/^\([^=]*=[ ]*\):*/\1/
22778s/:*$//
22779s/^[^=]*=[ ]*$//
22780}'
22781fi
22782
22783cat >>$CONFIG_STATUS <<\_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +000022784fi # test -n "$CONFIG_FILES"
22785
openvcdiffd1845782009-03-20 21:56:15 +000022786
22787for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22788do
22789 case $ac_tag in
22790 :[FHLC]) ac_mode=$ac_tag; continue;;
22791 esac
22792 case $ac_mode$ac_tag in
22793 :[FHL]*:*);;
22794 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22795echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22796 { (exit 1); exit 1; }; };;
22797 :[FH]-) ac_tag=-:-;;
22798 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22799 esac
22800 ac_save_IFS=$IFS
22801 IFS=:
22802 set x $ac_tag
22803 IFS=$ac_save_IFS
22804 shift
22805 ac_file=$1
22806 shift
22807
22808 case $ac_mode in
22809 :L) ac_source=$1;;
22810 :[FH])
22811 ac_file_inputs=
22812 for ac_f
22813 do
22814 case $ac_f in
22815 -) ac_f="$tmp/stdin";;
22816 *) # Look for the file first in the build tree, then in the source tree
22817 # (if the path is not absolute). The absolute path cannot be DOS-style,
22818 # because $ac_f cannot contain `:'.
22819 test -f "$ac_f" ||
22820 case $ac_f in
22821 [\\/$]*) false;;
22822 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22823 esac ||
22824 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22825echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22826 { (exit 1); exit 1; }; };;
22827 esac
22828 ac_file_inputs="$ac_file_inputs $ac_f"
22829 done
22830
22831 # Let's still pretend it is `configure' which instantiates (i.e., don't
22832 # use $as_me), people would be surprised to read:
22833 # /* config.h. Generated by config.status. */
22834 configure_input="Generated from "`IFS=:
22835 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22836 if test x"$ac_file" != x-; then
22837 configure_input="$ac_file. $configure_input"
22838 { echo "$as_me:$LINENO: creating $ac_file" >&5
22839echo "$as_me: creating $ac_file" >&6;}
22840 fi
22841
22842 case $ac_tag in
22843 *:-:* | *:-) cat >"$tmp/stdin";;
22844 esac
22845 ;;
openvcdiff311c7142008-08-26 19:29:25 +000022846 esac
22847
openvcdiffd1845782009-03-20 21:56:15 +000022848 ac_dir=`$as_dirname -- "$ac_file" ||
openvcdiff311c7142008-08-26 19:29:25 +000022849$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22850 X"$ac_file" : 'X\(//\)[^/]' \| \
22851 X"$ac_file" : 'X\(//\)$' \| \
openvcdiffd1845782009-03-20 21:56:15 +000022852 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff311c7142008-08-26 19:29:25 +000022853echo X"$ac_file" |
openvcdiffd1845782009-03-20 21:56:15 +000022854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22855 s//\1/
22856 q
22857 }
22858 /^X\(\/\/\)[^/].*/{
22859 s//\1/
22860 q
22861 }
22862 /^X\(\/\/\)$/{
22863 s//\1/
22864 q
22865 }
22866 /^X\(\/\).*/{
22867 s//\1/
22868 q
22869 }
22870 s/.*/./; q'`
22871 { as_dir="$ac_dir"
22872 case $as_dir in #(
22873 -*) as_dir=./$as_dir;;
22874 esac
22875 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
openvcdiff311c7142008-08-26 19:29:25 +000022876 as_dirs=
openvcdiffd1845782009-03-20 21:56:15 +000022877 while :; do
22878 case $as_dir in #(
22879 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22880 *) as_qdir=$as_dir;;
22881 esac
22882 as_dirs="'$as_qdir' $as_dirs"
22883 as_dir=`$as_dirname -- "$as_dir" ||
openvcdiff311c7142008-08-26 19:29:25 +000022884$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22885 X"$as_dir" : 'X\(//\)[^/]' \| \
22886 X"$as_dir" : 'X\(//\)$' \| \
openvcdiffd1845782009-03-20 21:56:15 +000022887 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff311c7142008-08-26 19:29:25 +000022888echo X"$as_dir" |
openvcdiffd1845782009-03-20 21:56:15 +000022889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22890 s//\1/
22891 q
22892 }
22893 /^X\(\/\/\)[^/].*/{
22894 s//\1/
22895 q
22896 }
22897 /^X\(\/\/\)$/{
22898 s//\1/
22899 q
22900 }
22901 /^X\(\/\).*/{
22902 s//\1/
22903 q
22904 }
22905 s/.*/./; q'`
22906 test -d "$as_dir" && break
openvcdiff311c7142008-08-26 19:29:25 +000022907 done
openvcdiffd1845782009-03-20 21:56:15 +000022908 test -z "$as_dirs" || eval "mkdir $as_dirs"
22909 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22910echo "$as_me: error: cannot create directory $as_dir" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +000022911 { (exit 1); exit 1; }; }; }
openvcdiff311c7142008-08-26 19:29:25 +000022912 ac_builddir=.
22913
openvcdiffd1845782009-03-20 21:56:15 +000022914case "$ac_dir" in
22915.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22916*)
openvcdiff311c7142008-08-26 19:29:25 +000022917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
openvcdiffd1845782009-03-20 21:56:15 +000022918 # A ".." for each directory in $ac_dir_suffix.
22919 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22920 case $ac_top_builddir_sub in
22921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22923 esac ;;
22924esac
22925ac_abs_top_builddir=$ac_pwd
22926ac_abs_builddir=$ac_pwd$ac_dir_suffix
22927# for backward compatibility:
22928ac_top_builddir=$ac_top_build_prefix
openvcdiff311c7142008-08-26 19:29:25 +000022929
22930case $srcdir in
openvcdiffd1845782009-03-20 21:56:15 +000022931 .) # We are building in place.
openvcdiff311c7142008-08-26 19:29:25 +000022932 ac_srcdir=.
openvcdiffd1845782009-03-20 21:56:15 +000022933 ac_top_srcdir=$ac_top_builddir_sub
22934 ac_abs_top_srcdir=$ac_pwd ;;
22935 [\\/]* | ?:[\\/]* ) # Absolute name.
openvcdiff311c7142008-08-26 19:29:25 +000022936 ac_srcdir=$srcdir$ac_dir_suffix;
openvcdiffd1845782009-03-20 21:56:15 +000022937 ac_top_srcdir=$srcdir
22938 ac_abs_top_srcdir=$srcdir ;;
22939 *) # Relative name.
22940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22941 ac_top_srcdir=$ac_top_build_prefix$srcdir
22942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
openvcdiff311c7142008-08-26 19:29:25 +000022943esac
openvcdiffd1845782009-03-20 21:56:15 +000022944ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
openvcdiff311c7142008-08-26 19:29:25 +000022945
openvcdiff311c7142008-08-26 19:29:25 +000022946
openvcdiffd1845782009-03-20 21:56:15 +000022947 case $ac_mode in
22948 :F)
22949 #
22950 # CONFIG_FILE
22951 #
openvcdiff311c7142008-08-26 19:29:25 +000022952
22953 case $INSTALL in
22954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
openvcdiffd1845782009-03-20 21:56:15 +000022955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
openvcdiff311c7142008-08-26 19:29:25 +000022956 esac
openvcdiffd1845782009-03-20 21:56:15 +000022957 ac_MKDIR_P=$MKDIR_P
22958 case $MKDIR_P in
22959 [\\/$]* | ?:[\\/]* ) ;;
22960 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22961 esac
openvcdiff311c7142008-08-26 19:29:25 +000022962_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000022963
22964cat >>$CONFIG_STATUS <<\_ACEOF
22965# If the template does not know about datarootdir, expand it.
22966# FIXME: This hack should be removed a few years after 2.60.
22967ac_datarootdir_hack=; ac_datarootdir_seen=
22968
22969case `sed -n '/datarootdir/ {
22970 p
22971 q
22972}
22973/@datadir@/p
22974/@docdir@/p
22975/@infodir@/p
22976/@localedir@/p
22977/@mandir@/p
22978' $ac_file_inputs` in
22979*datarootdir*) ac_datarootdir_seen=yes;;
22980*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22981 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22982echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22983_ACEOF
22984cat >>$CONFIG_STATUS <<_ACEOF
22985 ac_datarootdir_hack='
22986 s&@datadir@&$datadir&g
22987 s&@docdir@&$docdir&g
22988 s&@infodir@&$infodir&g
22989 s&@localedir@&$localedir&g
22990 s&@mandir@&$mandir&g
22991 s&\\\${datarootdir}&$datarootdir&g' ;;
22992esac
22993_ACEOF
22994
22995# Neutralize VPATH when `$srcdir' = `.'.
22996# Shell code in configure.ac might set extrasub.
22997# FIXME: do we really want to maintain this feature?
openvcdiff311c7142008-08-26 19:29:25 +000022998cat >>$CONFIG_STATUS <<_ACEOF
22999 sed "$ac_vpsub
23000$extrasub
23001_ACEOF
23002cat >>$CONFIG_STATUS <<\_ACEOF
23003:t
23004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
openvcdiffd1845782009-03-20 21:56:15 +000023005s&@configure_input@&$configure_input&;t t
23006s&@top_builddir@&$ac_top_builddir_sub&;t t
23007s&@srcdir@&$ac_srcdir&;t t
23008s&@abs_srcdir@&$ac_abs_srcdir&;t t
23009s&@top_srcdir@&$ac_top_srcdir&;t t
23010s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23011s&@builddir@&$ac_builddir&;t t
23012s&@abs_builddir@&$ac_abs_builddir&;t t
23013s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23014s&@INSTALL@&$ac_INSTALL&;t t
23015s&@MKDIR_P@&$ac_MKDIR_P&;t t
23016$ac_datarootdir_hack
23017" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
openvcdiff311c7142008-08-26 19:29:25 +000023018
openvcdiffd1845782009-03-20 21:56:15 +000023019test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23020 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23021 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23022 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23023which seems to be undefined. Please make sure it is defined." >&5
23024echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23025which seems to be undefined. Please make sure it is defined." >&2;}
openvcdiff311c7142008-08-26 19:29:25 +000023026
openvcdiffd1845782009-03-20 21:56:15 +000023027 rm -f "$tmp/stdin"
openvcdiff311c7142008-08-26 19:29:25 +000023028 case $ac_file in
openvcdiffd1845782009-03-20 21:56:15 +000023029 -) cat "$tmp/out"; rm -f "$tmp/out";;
23030 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
openvcdiff311c7142008-08-26 19:29:25 +000023031 esac
openvcdiffd1845782009-03-20 21:56:15 +000023032 ;;
23033 :H)
23034 #
23035 # CONFIG_HEADER
23036 #
openvcdiff311c7142008-08-26 19:29:25 +000023037_ACEOF
23038
openvcdiffd1845782009-03-20 21:56:15 +000023039# Transform confdefs.h into a sed script `conftest.defines', that
23040# substitutes the proper values into config.h.in to produce config.h.
23041rm -f conftest.defines conftest.tail
23042# First, append a space to every undef/define line, to ease matching.
23043echo 's/$/ /' >conftest.defines
23044# Then, protect against being on the right side of a sed subst, or in
23045# an unquoted here document, in config.status. If some macros were
23046# called several times there might be several #defines for the same
23047# symbol, which is useless. But do not sort them, since the last
23048# AC_DEFINE must be honored.
23049ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23050# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23051# NAME is the cpp macro being defined, VALUE is the value it is being given.
23052# PARAMS is the parameter list in the macro definition--in most cases, it's
23053# just an empty string.
23054ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23055ac_dB='\\)[ (].*,\\1define\\2'
23056ac_dC=' '
23057ac_dD=' ,'
openvcdiff311c7142008-08-26 19:29:25 +000023058
openvcdiffd1845782009-03-20 21:56:15 +000023059uniq confdefs.h |
23060 sed -n '
23061 t rset
23062 :rset
23063 s/^[ ]*#[ ]*define[ ][ ]*//
23064 t ok
23065 d
23066 :ok
23067 s/[\\&,]/\\&/g
23068 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23069 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23070 ' >>conftest.defines
23071
23072# Remove the space that was appended to ease matching.
23073# Then replace #undef with comments. This is necessary, for
openvcdiff311c7142008-08-26 19:29:25 +000023074# example, in the case of _POSIX_SOURCE, which is predefined and required
23075# on some systems where configure will not decide to define it.
openvcdiffd1845782009-03-20 21:56:15 +000023076# (The regexp can be short, since the line contains either #define or #undef.)
23077echo 's/ $//
23078s,^[ #]*u.*,/* & */,' >>conftest.defines
openvcdiff311c7142008-08-26 19:29:25 +000023079
openvcdiffd1845782009-03-20 21:56:15 +000023080# Break up conftest.defines:
23081ac_max_sed_lines=50
23082
23083# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23084# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23085# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23086# et cetera.
23087ac_in='$ac_file_inputs'
23088ac_out='"$tmp/out1"'
23089ac_nxt='"$tmp/out2"'
23090
23091while :
openvcdiff311c7142008-08-26 19:29:25 +000023092do
openvcdiffd1845782009-03-20 21:56:15 +000023093 # Write a here document:
23094 cat >>$CONFIG_STATUS <<_ACEOF
23095 # First, check the format of the line:
23096 cat >"\$tmp/defines.sed" <<\\CEOF
23097/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23098/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23099b
23100:def
23101_ACEOF
23102 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
openvcdiff311c7142008-08-26 19:29:25 +000023103 echo 'CEOF
openvcdiffd1845782009-03-20 21:56:15 +000023104 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23105 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23106 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23107 grep . conftest.tail >/dev/null || break
openvcdiff311c7142008-08-26 19:29:25 +000023108 rm -f conftest.defines
23109 mv conftest.tail conftest.defines
23110done
openvcdiffd1845782009-03-20 21:56:15 +000023111rm -f conftest.defines conftest.tail
openvcdiff311c7142008-08-26 19:29:25 +000023112
openvcdiffd1845782009-03-20 21:56:15 +000023113echo "ac_result=$ac_in" >>$CONFIG_STATUS
openvcdiff311c7142008-08-26 19:29:25 +000023114cat >>$CONFIG_STATUS <<\_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +000023115 if test x"$ac_file" != x-; then
openvcdiffd1845782009-03-20 21:56:15 +000023116 echo "/* $configure_input */" >"$tmp/config.h"
23117 cat "$ac_result" >>"$tmp/config.h"
23118 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
openvcdiff311c7142008-08-26 19:29:25 +000023119 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23120echo "$as_me: $ac_file is unchanged" >&6;}
23121 else
openvcdiff311c7142008-08-26 19:29:25 +000023122 rm -f $ac_file
openvcdiffd1845782009-03-20 21:56:15 +000023123 mv "$tmp/config.h" $ac_file
openvcdiff311c7142008-08-26 19:29:25 +000023124 fi
23125 else
openvcdiffd1845782009-03-20 21:56:15 +000023126 echo "/* $configure_input */"
23127 cat "$ac_result"
openvcdiff311c7142008-08-26 19:29:25 +000023128 fi
openvcdiffd1845782009-03-20 21:56:15 +000023129 rm -f "$tmp/out12"
openvcdiff311c7142008-08-26 19:29:25 +000023130# Compute $ac_file's index in $config_headers.
openvcdiffd1845782009-03-20 21:56:15 +000023131_am_arg=$ac_file
openvcdiff311c7142008-08-26 19:29:25 +000023132_am_stamp_count=1
23133for _am_header in $config_headers :; do
23134 case $_am_header in
openvcdiffd1845782009-03-20 21:56:15 +000023135 $_am_arg | $_am_arg:* )
openvcdiff311c7142008-08-26 19:29:25 +000023136 break ;;
23137 * )
23138 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23139 esac
23140done
openvcdiffd1845782009-03-20 21:56:15 +000023141echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23142$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23143 X"$_am_arg" : 'X\(//\)[^/]' \| \
23144 X"$_am_arg" : 'X\(//\)$' \| \
23145 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23146echo X"$_am_arg" |
23147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23148 s//\1/
23149 q
23150 }
23151 /^X\(\/\/\)[^/].*/{
23152 s//\1/
23153 q
23154 }
23155 /^X\(\/\/\)$/{
23156 s//\1/
23157 q
23158 }
23159 /^X\(\/\).*/{
23160 s//\1/
23161 q
23162 }
23163 s/.*/./; q'`/stamp-h$_am_stamp_count
23164 ;;
openvcdiff311c7142008-08-26 19:29:25 +000023165
openvcdiffd1845782009-03-20 21:56:15 +000023166 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23167echo "$as_me: executing $ac_file commands" >&6;}
23168 ;;
23169 esac
openvcdiff311c7142008-08-26 19:29:25 +000023170
23171
openvcdiffd1845782009-03-20 21:56:15 +000023172 case $ac_file$ac_mode in
23173 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
openvcdiff311c7142008-08-26 19:29:25 +000023174 # Strip MF so we end up with the name of the file.
23175 mf=`echo "$mf" | sed -e 's/:.*$//'`
23176 # Check whether this is an Automake generated Makefile or not.
23177 # We used to match only the files named `Makefile.in', but
23178 # some people rename them; so instead we look at the file content.
23179 # Grep'ing the first line is not enough: some people post-process
23180 # each Makefile.in and add a new line on top of each file to say so.
openvcdiffd1845782009-03-20 21:56:15 +000023181 # Grep'ing the whole file is not good either: AIX grep has a line
23182 # limit of 2048, but all sed's we know have understand at least 4000.
23183 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23184 dirpart=`$as_dirname -- "$mf" ||
openvcdiff311c7142008-08-26 19:29:25 +000023185$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23186 X"$mf" : 'X\(//\)[^/]' \| \
23187 X"$mf" : 'X\(//\)$' \| \
openvcdiffd1845782009-03-20 21:56:15 +000023188 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff311c7142008-08-26 19:29:25 +000023189echo X"$mf" |
openvcdiffd1845782009-03-20 21:56:15 +000023190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23191 s//\1/
23192 q
23193 }
23194 /^X\(\/\/\)[^/].*/{
23195 s//\1/
23196 q
23197 }
23198 /^X\(\/\/\)$/{
23199 s//\1/
23200 q
23201 }
23202 /^X\(\/\).*/{
23203 s//\1/
23204 q
23205 }
23206 s/.*/./; q'`
openvcdiff311c7142008-08-26 19:29:25 +000023207 else
23208 continue
23209 fi
23210 # Extract the definition of DEPDIR, am__include, and am__quote
23211 # from the Makefile without running `make'.
23212 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23213 test -z "$DEPDIR" && continue
23214 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23215 test -z "am__include" && continue
23216 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23217 # When using ansi2knr, U may be empty or an underscore; expand it
23218 U=`sed -n 's/^U = //p' < "$mf"`
23219 # Find all dependency output files, they are included files with
23220 # $(DEPDIR) in their names. We invoke sed twice because it is the
23221 # simplest approach to changing $(DEPDIR) to its actual value in the
23222 # expansion.
23223 for file in `sed -n "
23224 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23225 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23226 # Make sure the directory exists.
23227 test -f "$dirpart/$file" && continue
openvcdiffd1845782009-03-20 21:56:15 +000023228 fdir=`$as_dirname -- "$file" ||
openvcdiff311c7142008-08-26 19:29:25 +000023229$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23230 X"$file" : 'X\(//\)[^/]' \| \
23231 X"$file" : 'X\(//\)$' \| \
openvcdiffd1845782009-03-20 21:56:15 +000023232 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff311c7142008-08-26 19:29:25 +000023233echo X"$file" |
openvcdiffd1845782009-03-20 21:56:15 +000023234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23235 s//\1/
23236 q
23237 }
23238 /^X\(\/\/\)[^/].*/{
23239 s//\1/
23240 q
23241 }
23242 /^X\(\/\/\)$/{
23243 s//\1/
23244 q
23245 }
23246 /^X\(\/\).*/{
23247 s//\1/
23248 q
23249 }
23250 s/.*/./; q'`
23251 { as_dir=$dirpart/$fdir
23252 case $as_dir in #(
23253 -*) as_dir=./$as_dir;;
23254 esac
23255 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
openvcdiff311c7142008-08-26 19:29:25 +000023256 as_dirs=
openvcdiffd1845782009-03-20 21:56:15 +000023257 while :; do
23258 case $as_dir in #(
23259 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23260 *) as_qdir=$as_dir;;
23261 esac
23262 as_dirs="'$as_qdir' $as_dirs"
23263 as_dir=`$as_dirname -- "$as_dir" ||
openvcdiff311c7142008-08-26 19:29:25 +000023264$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23265 X"$as_dir" : 'X\(//\)[^/]' \| \
23266 X"$as_dir" : 'X\(//\)$' \| \
openvcdiffd1845782009-03-20 21:56:15 +000023267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff311c7142008-08-26 19:29:25 +000023268echo X"$as_dir" |
openvcdiffd1845782009-03-20 21:56:15 +000023269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23270 s//\1/
23271 q
23272 }
23273 /^X\(\/\/\)[^/].*/{
23274 s//\1/
23275 q
23276 }
23277 /^X\(\/\/\)$/{
23278 s//\1/
23279 q
23280 }
23281 /^X\(\/\).*/{
23282 s//\1/
23283 q
23284 }
23285 s/.*/./; q'`
23286 test -d "$as_dir" && break
openvcdiff311c7142008-08-26 19:29:25 +000023287 done
openvcdiffd1845782009-03-20 21:56:15 +000023288 test -z "$as_dirs" || eval "mkdir $as_dirs"
23289 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23290echo "$as_me: error: cannot create directory $as_dir" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +000023291 { (exit 1); exit 1; }; }; }
openvcdiff311c7142008-08-26 19:29:25 +000023292 # echo "creating $dirpart/$file"
23293 echo '# dummy' > "$dirpart/$file"
23294 done
23295done
23296 ;;
openvcdiff311c7142008-08-26 19:29:25 +000023297
openvcdiffd1845782009-03-20 21:56:15 +000023298 esac
23299done # for ac_tag
23300
openvcdiff311c7142008-08-26 19:29:25 +000023301
23302{ (exit 0); exit 0; }
23303_ACEOF
23304chmod +x $CONFIG_STATUS
23305ac_clean_files=$ac_clean_files_save
23306
23307
23308# configure is writing to config.log, and then calls config.status.
23309# config.status does its own redirection, appending to config.log.
23310# Unfortunately, on DOS this fails, as config.log is still kept open
23311# by configure, so config.status won't be able to write to it; its
23312# output is simply discarded. So we exec the FD to /dev/null,
23313# effectively closing config.log, so it can be properly (re)opened and
23314# appended to by config.status. When coming back to configure, we
23315# need to make the FD available again.
23316if test "$no_create" != yes; then
23317 ac_cs_success=:
23318 ac_config_status_args=
23319 test "$silent" = yes &&
23320 ac_config_status_args="$ac_config_status_args --quiet"
23321 exec 5>/dev/null
23322 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23323 exec 5>>config.log
23324 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23325 # would make configure fail if this is the last instruction.
23326 $ac_cs_success || { (exit 1); exit 1; }
23327fi
23328