blob: 3aa8d2b454c0611366d0bce8afb4396eb56f1f2d [file] [log] [blame]
openvcdiff311c7142008-08-26 19:29:25 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003# Generated by GNU Autoconf 2.65 for open-vcdiff 0.8.
openvcdiff311c7142008-08-26 19:29:25 +00004#
5# Report bugs to <opensource@google.com>.
6#
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00007#
openvcdiffd1845782009-03-20 21:56:15 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
openvcdiff311c7142008-08-26 19:29:25 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
openvcdiff311c7142008-08-26 19:29:25 +000018
openvcdiffd1845782009-03-20 21:56:15 +000019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
openvcdiff311c7142008-08-26 19:29:25 +000022 emulate sh
23 NULLCMD=:
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
openvcdiff311c7142008-08-26 19:29:25 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
openvcdiffd1845782009-03-20 21:56:15 +000027 setopt NO_GLOB_SUBST
openvcdiff311c7142008-08-26 19:29:25 +000028else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
openvcdiffd1845782009-03-20 21:56:15 +000034esac
openvcdiff311c7142008-08-26 19:29:25 +000035fi
36
37
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
openvcdiff311c7142008-08-26 19:29:25 +000075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
openvcdiffd1845782009-03-20 21:56:15 +000083fi
openvcdiff311c7142008-08-26 19:29:25 +000084
openvcdiffd1845782009-03-20 21:56:15 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
openvcdiffd1845782009-03-20 21:56:15 +000091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000094case $0 in #((
openvcdiffd1845782009-03-20 21:56:15 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
openvcdiff311c7142008-08-26 19:29:25 +000097for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
openvcdiffd1845782009-03-20 21:56:15 +0000103IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +0000104
openvcdiffd1845782009-03-20 21:56:15 +0000105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
openvcdiffd1845782009-03-20 21:56:15 +0000115fi
116
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
openvcdiffd1845782009-03-20 21:56:15 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
openvcdiffd1845782009-03-20 21:56:15 +0000134
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: opensource@google.com about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
openvcdiffd1845782009-03-20 21:56:15 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
openvcdiffd1845782009-03-20 21:56:15 +0000396
openvcdiffd1845782009-03-20 21:56:15 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000401$as_echo X/"$0" |
openvcdiffd1845782009-03-20 21:56:15 +0000402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
openvcdiffd1845782009-03-20 21:56:15 +0000422
423
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
openvcdiffd1845782009-03-20 21:56:15 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
openvcdiff311c7142008-08-26 19:29:25 +0000433 sed '
openvcdiffd1845782009-03-20 21:56:15 +0000434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
openvcdiff311c7142008-08-26 19:29:25 +0000438 N
openvcdiffd1845782009-03-20 21:56:15 +0000439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
openvcdiff311c7142008-08-26 19:29:25 +0000441 t loop
openvcdiffd1845782009-03-20 21:56:15 +0000442 s/-\n.*//
openvcdiff311c7142008-08-26 19:29:25 +0000443 ' >$as_me.lineno &&
openvcdiffd1845782009-03-20 21:56:15 +0000444 chmod +x "$as_me.lineno" ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
openvcdiff311c7142008-08-26 19:29:25 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
openvcdiffd1845782009-03-20 21:56:15 +0000449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
openvcdiff311c7142008-08-26 19:29:25 +0000451 # Exit status is that of the last command.
452 exit
453}
454
openvcdiffd1845782009-03-20 21:56:15 +0000455ECHO_C= ECHO_N= ECHO_T=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000456case `echo -n x` in #(((((
openvcdiffd1845782009-03-20 21:56:15 +0000457-n*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000458 case `echo 'xy\c'` in
openvcdiffd1845782009-03-20 21:56:15 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
openvcdiffd1845782009-03-20 21:56:15 +0000463 esac;;
464*)
465 ECHO_N='-n';;
openvcdiff311c7142008-08-26 19:29:25 +0000466esac
467
openvcdiff311c7142008-08-26 19:29:25 +0000468rm -f conf$$ conf$$.exe conf$$.file
openvcdiffd1845782009-03-20 21:56:15 +0000469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000473 mkdir conf$$.dir 2>/dev/null
openvcdiffd1845782009-03-20 21:56:15 +0000474fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
openvcdiff311c7142008-08-26 19:29:25 +0000487 as_ln_s='cp -p'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000488 fi
openvcdiff311c7142008-08-26 19:29:25 +0000489else
490 as_ln_s='cp -p'
491fi
openvcdiffd1845782009-03-20 21:56:15 +0000492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
openvcdiff311c7142008-08-26 19:29:25 +0000494
495if mkdir -p . 2>/dev/null; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
openvcdiff311c7142008-08-26 19:29:25 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
openvcdiffd1845782009-03-20 21:56:15 +0000502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000513 test -d "$1/.";
openvcdiffd1845782009-03-20 21:56:15 +0000514 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000515 case $1 in #(
516 -*)set "./$1";;
openvcdiffd1845782009-03-20 21:56:15 +0000517 esac;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
openvcdiffd1845782009-03-20 21:56:15 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
openvcdiff311c7142008-08-26 19:29:25 +0000524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
openvcdiff311c7142008-08-26 19:29:25 +0000532
openvcdiff311c7142008-08-26 19:29:25 +0000533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000536case X$lt_ECHO in
openvcdiff311c7142008-08-26 19:29:25 +0000537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
openvcdiff311c7142008-08-26 19:29:25 +0000540 ;;
541esac
542
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000543ECHO=${lt_ECHO-echo}
openvcdiff311c7142008-08-26 19:29:25 +0000544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
openvcdiff311c7142008-08-26 19:29:25 +0000552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000561 cat <<_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +0000562$*
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000563_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +0000564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
openvcdiff311c7142008-08-26 19:29:25 +0000583
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
openvcdiff311c7142008-08-26 19:29:25 +0000594
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
openvcdiff311c7142008-08-26 19:29:25 +0000606 IFS="$lt_save_ifs"
openvcdiff311c7142008-08-26 19:29:25 +0000607
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
openvcdiff311c7142008-08-26 19:29:25 +0000623 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
openvcdiff311c7142008-08-26 19:29:25 +0000648
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
openvcdiff311c7142008-08-26 19:29:25 +0000664 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000665 fi
openvcdiff311c7142008-08-26 19:29:25 +0000666 fi
667 fi
668 fi
669fi
openvcdiff311c7142008-08-26 19:29:25 +0000670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
openvcdiff311c7142008-08-26 19:29:25 +0000676fi
677
678
679
680
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
openvcdiffd1845782009-03-20 21:56:15 +0000683
openvcdiff311c7142008-08-26 19:29:25 +0000684# Name of the host.
685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
openvcdiff311c7142008-08-26 19:29:25 +0000689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
openvcdiffd1845782009-03-20 21:56:15 +0000693ac_clean_files=
openvcdiff311c7142008-08-26 19:29:25 +0000694ac_config_libobj_dir=.
openvcdiffd1845782009-03-20 21:56:15 +0000695LIBOBJS=
openvcdiff311c7142008-08-26 19:29:25 +0000696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
openvcdiff311c7142008-08-26 19:29:25 +0000700
openvcdiff311c7142008-08-26 19:29:25 +0000701# Identity of this package.
702PACKAGE_NAME='open-vcdiff'
703PACKAGE_TARNAME='open-vcdiff'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000704PACKAGE_VERSION='0.8'
705PACKAGE_STRING='open-vcdiff 0.8'
openvcdiff311c7142008-08-26 19:29:25 +0000706PACKAGE_BUGREPORT='opensource@google.com'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000707PACKAGE_URL=''
openvcdiff311c7142008-08-26 19:29:25 +0000708
709ac_unique_file="README"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
openvcdiffd1845782009-03-20 21:56:15 +0000713#ifdef HAVE_SYS_TYPES_H
openvcdiff311c7142008-08-26 19:29:25 +0000714# include <sys/types.h>
715#endif
openvcdiffd1845782009-03-20 21:56:15 +0000716#ifdef HAVE_SYS_STAT_H
openvcdiff311c7142008-08-26 19:29:25 +0000717# include <sys/stat.h>
718#endif
openvcdiffd1845782009-03-20 21:56:15 +0000719#ifdef STDC_HEADERS
openvcdiff311c7142008-08-26 19:29:25 +0000720# include <stdlib.h>
721# include <stddef.h>
722#else
openvcdiffd1845782009-03-20 21:56:15 +0000723# ifdef HAVE_STDLIB_H
openvcdiff311c7142008-08-26 19:29:25 +0000724# include <stdlib.h>
725# endif
726#endif
openvcdiffd1845782009-03-20 21:56:15 +0000727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
openvcdiff311c7142008-08-26 19:29:25 +0000729# include <memory.h>
730# endif
731# include <string.h>
732#endif
openvcdiffd1845782009-03-20 21:56:15 +0000733#ifdef HAVE_STRINGS_H
openvcdiff311c7142008-08-26 19:29:25 +0000734# include <strings.h>
735#endif
openvcdiffd1845782009-03-20 21:56:15 +0000736#ifdef HAVE_INTTYPES_H
openvcdiff311c7142008-08-26 19:29:25 +0000737# include <inttypes.h>
openvcdiff311c7142008-08-26 19:29:25 +0000738#endif
openvcdiffd1845782009-03-20 21:56:15 +0000739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
openvcdiff311c7142008-08-26 19:29:25 +0000743# include <unistd.h>
744#endif"
745
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
openvcdiffd1845782009-03-20 21:56:15 +0000749LIBOBJS
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000750LIBSTDCXX_LA_LINKER_FLAG
751ac_cv_have___int16
752ac_cv_have_u_int16_t
753ac_cv_have_uint16_t
754ac_cv_have_inttypes_h
755ac_cv_have_systypes_h
756ac_cv_have_stdint_h
757ac_cv___attribute__unused
758ac_google_namespace
759ac_google_end_namespace
760ac_google_start_namespace
761PTHREAD_CFLAGS
762PTHREAD_LIBS
763PTHREAD_CC
764acx_pthread_config
765LIBTOOL_DEPS
766CXXCPP
767OTOOL64
768OTOOL
769LIPO
770NMEDIT
771DSYMUTIL
772lt_ECHO
773RANLIB
774AR
775OBJDUMP
776LN_S
777NM
778ac_ct_DUMPBIN
779DUMPBIN
780LD
781FGREP
782EGREP
783GREP
784SED
785LIBTOOL
786host_os
787host_vendor
788host_cpu
789host
790build_os
791build_vendor
792build_cpu
793build
794GCC_FALSE
795GCC_TRUE
796am__fastdepCXX_FALSE
797am__fastdepCXX_TRUE
798CXXDEPMODE
799ac_ct_CXX
800CXXFLAGS
801CXX
802CPP
803am__fastdepCC_FALSE
804am__fastdepCC_TRUE
805CCDEPMODE
806AMDEPBACKSLASH
807AMDEP_FALSE
808AMDEP_TRUE
809am__quote
810am__include
811DEPDIR
812OBJEXT
813EXEEXT
814ac_ct_CC
815CPPFLAGS
816LDFLAGS
817CFLAGS
818CC
819am__untar
820am__tar
821AMTAR
822am__leading_dot
823SET_MAKE
824AWK
825mkdir_p
826MKDIR_P
827INSTALL_STRIP_PROGRAM
828STRIP
829install_sh
830MAKEINFO
831AUTOHEADER
832AUTOMAKE
833AUTOCONF
834ACLOCAL
835VERSION
836PACKAGE
837CYGPATH_W
838am__isrc
839INSTALL_DATA
840INSTALL_SCRIPT
841INSTALL_PROGRAM
842target_alias
843host_alias
844build_alias
845LIBS
846ECHO_T
847ECHO_N
848ECHO_C
849DEFS
850mandir
851localedir
852libdir
853psdir
854pdfdir
855dvidir
856htmldir
857infodir
858docdir
859oldincludedir
860includedir
861localstatedir
862sharedstatedir
863sysconfdir
864datadir
865datarootdir
866libexecdir
867sbindir
868bindir
869program_transform_name
870prefix
871exec_prefix
872PACKAGE_URL
873PACKAGE_BUGREPORT
874PACKAGE_STRING
875PACKAGE_VERSION
876PACKAGE_TARNAME
877PACKAGE_NAME
878PATH_SEPARATOR
879SHELL'
openvcdiff311c7142008-08-26 19:29:25 +0000880ac_subst_files=''
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000881ac_user_opts='
882enable_option_checking
883enable_dependency_tracking
884enable_fast_install
885enable_shared
886enable_static
887with_pic
888with_gnu_ld
889enable_libtool_lock
890enable_namespace
891'
openvcdiffd1845782009-03-20 21:56:15 +0000892 ac_precious_vars='build_alias
893host_alias
894target_alias
895CC
896CFLAGS
897LDFLAGS
898LIBS
899CPPFLAGS
900CPP
901CXX
902CXXFLAGS
903CCC
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000904CXXCPP'
openvcdiffd1845782009-03-20 21:56:15 +0000905
openvcdiff311c7142008-08-26 19:29:25 +0000906
907# Initialize some variables set by options.
908ac_init_help=
909ac_init_version=false
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +0000910ac_unrecognized_opts=
911ac_unrecognized_sep=
openvcdiff311c7142008-08-26 19:29:25 +0000912# The variables have the same names as the options, with
913# dashes changed to underlines.
914cache_file=/dev/null
915exec_prefix=NONE
916no_create=
917no_recursion=
918prefix=NONE
919program_prefix=NONE
920program_suffix=NONE
921program_transform_name=s,x,x,
922silent=
923site=
924srcdir=
925verbose=
926x_includes=NONE
927x_libraries=NONE
928
929# Installation directory options.
930# These are left unexpanded so users can "make install exec_prefix=/foo"
931# and all the variables that are supposed to be based on exec_prefix
932# by default will actually change.
933# Use braces instead of parens because sh, perl, etc. also accept them.
openvcdiffd1845782009-03-20 21:56:15 +0000934# (The list follows the same order as the GNU Coding Standards.)
openvcdiff311c7142008-08-26 19:29:25 +0000935bindir='${exec_prefix}/bin'
936sbindir='${exec_prefix}/sbin'
937libexecdir='${exec_prefix}/libexec'
openvcdiffd1845782009-03-20 21:56:15 +0000938datarootdir='${prefix}/share'
939datadir='${datarootdir}'
openvcdiff311c7142008-08-26 19:29:25 +0000940sysconfdir='${prefix}/etc'
941sharedstatedir='${prefix}/com'
942localstatedir='${prefix}/var'
openvcdiff311c7142008-08-26 19:29:25 +0000943includedir='${prefix}/include'
944oldincludedir='/usr/include'
openvcdiffd1845782009-03-20 21:56:15 +0000945docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946infodir='${datarootdir}/info'
947htmldir='${docdir}'
948dvidir='${docdir}'
949pdfdir='${docdir}'
950psdir='${docdir}'
951libdir='${exec_prefix}/lib'
952localedir='${datarootdir}/locale'
953mandir='${datarootdir}/man'
openvcdiff311c7142008-08-26 19:29:25 +0000954
955ac_prev=
openvcdiffd1845782009-03-20 21:56:15 +0000956ac_dashdash=
openvcdiff311c7142008-08-26 19:29:25 +0000957for ac_option
958do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
openvcdiffd1845782009-03-20 21:56:15 +0000961 eval $ac_prev=\$ac_option
openvcdiff311c7142008-08-26 19:29:25 +0000962 ac_prev=
963 continue
964 fi
965
openvcdiffd1845782009-03-20 21:56:15 +0000966 case $ac_option in
967 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *) ac_optarg=yes ;;
969 esac
openvcdiff311c7142008-08-26 19:29:25 +0000970
971 # Accept the important Cygnus configure options, so we can diagnose typos.
972
openvcdiffd1845782009-03-20 21:56:15 +0000973 case $ac_dashdash$ac_option in
974 --)
975 ac_dashdash=yes ;;
openvcdiff311c7142008-08-26 19:29:25 +0000976
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 bindir=$ac_optarg ;;
981
982 -build | --build | --buil | --bui | --bu)
983 ac_prev=build_alias ;;
984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985 build_alias=$ac_optarg ;;
986
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992 cache_file=$ac_optarg ;;
993
994 --config-cache | -C)
995 cache_file=config.cache ;;
996
openvcdiffd1845782009-03-20 21:56:15 +0000997 -datadir | --datadir | --datadi | --datad)
openvcdiff311c7142008-08-26 19:29:25 +0000998 ac_prev=datadir ;;
openvcdiffd1845782009-03-20 21:56:15 +0000999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
openvcdiff311c7142008-08-26 19:29:25 +00001000 datadir=$ac_optarg ;;
1001
openvcdiffd1845782009-03-20 21:56:15 +00001002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1008
openvcdiff311c7142008-08-26 19:29:25 +00001009 -disable-* | --disable-*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
openvcdiff311c7142008-08-26 19:29:25 +00001011 # Reject names that are not valid shell variable names.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=no ;;
openvcdiffd1845782009-03-20 21:56:15 +00001024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
openvcdiff311c7142008-08-26 19:29:25 +00001034
1035 -enable-* | --enable-*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
openvcdiff311c7142008-08-26 19:29:25 +00001037 # Reject names that are not valid shell variable names.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error "invalid feature name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044"enable_$ac_useropt"
1045"*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=\$ac_optarg ;;
openvcdiff311c7142008-08-26 19:29:25 +00001050
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
1058 exec_prefix=$ac_optarg ;;
1059
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1063
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
1070
1071 -host | --host | --hos | --ho)
1072 ac_prev=host_alias ;;
1073 -host=* | --host=* | --hos=* | --ho=*)
1074 host_alias=$ac_optarg ;;
1075
openvcdiffd1845782009-03-20 21:56:15 +00001076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1081
openvcdiff311c7142008-08-26 19:29:25 +00001082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
1087 includedir=$ac_optarg ;;
1088
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092 infodir=$ac_optarg ;;
1093
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097 libdir=$ac_optarg ;;
1098
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
1104 libexecdir=$ac_optarg ;;
1105
openvcdiffd1845782009-03-20 21:56:15 +00001106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1110
openvcdiff311c7142008-08-26 19:29:25 +00001111 -localstatedir | --localstatedir | --localstatedi | --localstated \
openvcdiffd1845782009-03-20 21:56:15 +00001112 | --localstate | --localstat | --localsta | --localst | --locals)
openvcdiff311c7142008-08-26 19:29:25 +00001113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
openvcdiffd1845782009-03-20 21:56:15 +00001115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
openvcdiff311c7142008-08-26 19:29:25 +00001116 localstatedir=$ac_optarg ;;
1117
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121 mandir=$ac_optarg ;;
1122
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1126
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128 | --no-cr | --no-c | -n)
1129 no_create=yes ;;
1130
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1134
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142 oldincludedir=$ac_optarg ;;
1143
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147 prefix=$ac_optarg ;;
1148
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154 program_prefix=$ac_optarg ;;
1155
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161 program_suffix=$ac_optarg ;;
1162
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
1178 program_transform_name=$ac_optarg ;;
1179
openvcdiffd1845782009-03-20 21:56:15 +00001180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1184
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1189
openvcdiff311c7142008-08-26 19:29:25 +00001190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1193
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
1198 sbindir=$ac_optarg ;;
1199
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
1209 sharedstatedir=$ac_optarg ;;
1210
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
1214 site=$ac_optarg ;;
1215
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219 srcdir=$ac_optarg ;;
1220
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226 sysconfdir=$ac_optarg ;;
1227
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1229 ac_prev=target_alias ;;
1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231 target_alias=$ac_optarg ;;
1232
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1235
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
1238
1239 -with-* | --with-*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
openvcdiff311c7142008-08-26 19:29:25 +00001241 # Reject names that are not valid shell variable names.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error "invalid package name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248"with_$ac_useropt"
1249"*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=\$ac_optarg ;;
openvcdiff311c7142008-08-26 19:29:25 +00001254
1255 -without-* | --without-*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
openvcdiff311c7142008-08-26 19:29:25 +00001257 # Reject names that are not valid shell variable names.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error "invalid package name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264"with_$ac_useropt"
1265"*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=no ;;
openvcdiff311c7142008-08-26 19:29:25 +00001270
1271 --x)
1272 # Obsolete; use --with-x.
1273 with_x=yes ;;
1274
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280 x_includes=$ac_optarg ;;
1281
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287 x_libraries=$ac_optarg ;;
1288
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001289 -*) as_fn_error "unrecognized option: \`$ac_option'
1290Try \`$0 --help' for more information."
openvcdiff311c7142008-08-26 19:29:25 +00001291 ;;
1292
1293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001296 case $ac_envvar in #(
1297 '' | [0-9]* | *[!_$as_cr_alnum]* )
1298 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1299 esac
openvcdiffd1845782009-03-20 21:56:15 +00001300 eval $ac_envvar=\$ac_optarg
openvcdiff311c7142008-08-26 19:29:25 +00001301 export $ac_envvar ;;
1302
1303 *)
1304 # FIXME: should be removed in autoconf 3.0.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
openvcdiff311c7142008-08-26 19:29:25 +00001306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
openvcdiff311c7142008-08-26 19:29:25 +00001308 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309 ;;
1310
1311 esac
1312done
1313
1314if test -n "$ac_prev"; then
1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001316 as_fn_error "missing argument to $ac_option"
openvcdiff311c7142008-08-26 19:29:25 +00001317fi
1318
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001319if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
1322 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 esac
1325fi
1326
1327# Check all directory arguments for consistency.
openvcdiffd1845782009-03-20 21:56:15 +00001328for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
openvcdiff311c7142008-08-26 19:29:25 +00001332do
openvcdiffd1845782009-03-20 21:56:15 +00001333 eval ac_val=\$$ac_var
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001334 # Remove trailing slashes.
1335 case $ac_val in
1336 */ )
1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\$ac_val;;
1339 esac
1340 # Be sure to have absolute directory names.
openvcdiff311c7142008-08-26 19:29:25 +00001341 case $ac_val in
openvcdiffd1845782009-03-20 21:56:15 +00001342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
openvcdiff311c7142008-08-26 19:29:25 +00001344 esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001345 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
openvcdiff311c7142008-08-26 19:29:25 +00001346done
1347
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
1354
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001359 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
openvcdiff311c7142008-08-26 19:29:25 +00001360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364fi
1365
1366ac_tool_prefix=
1367test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369test "$silent" = yes && exec 6>/dev/null
1370
1371
openvcdiffd1845782009-03-20 21:56:15 +00001372ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373ac_ls_di=`ls -di .` &&
1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001375 as_fn_error "working directory cannot be determined"
openvcdiffd1845782009-03-20 21:56:15 +00001376test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001377 as_fn_error "pwd does not report name of working directory"
openvcdiffd1845782009-03-20 21:56:15 +00001378
1379
openvcdiff311c7142008-08-26 19:29:25 +00001380# Find the source files, if location was not specified.
1381if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
openvcdiffd1845782009-03-20 21:56:15 +00001383 # Try the directory containing this script, then the parent directory.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001384 ac_confdir=`$as_dirname -- "$as_myself" ||
1385$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389$as_echo X"$as_myself" |
openvcdiffd1845782009-03-20 21:56:15 +00001390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\).*/{
1403 s//\1/
1404 q
1405 }
1406 s/.*/./; q'`
openvcdiff311c7142008-08-26 19:29:25 +00001407 srcdir=$ac_confdir
openvcdiffd1845782009-03-20 21:56:15 +00001408 if test ! -r "$srcdir/$ac_unique_file"; then
openvcdiff311c7142008-08-26 19:29:25 +00001409 srcdir=..
1410 fi
1411else
1412 ac_srcdir_defaulted=no
1413fi
openvcdiffd1845782009-03-20 21:56:15 +00001414if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001416 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
openvcdiff311c7142008-08-26 19:29:25 +00001417fi
openvcdiffd1845782009-03-20 21:56:15 +00001418ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419ac_abs_confdir=`(
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
openvcdiffd1845782009-03-20 21:56:15 +00001421 pwd)`
1422# When building in place, set srcdir=.
1423if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 srcdir=.
1425fi
1426# Remove unnecessary trailing slashes from srcdir.
1427# Double slashes in file names in object file debugging info
1428# mess up M-x gdb in Emacs.
1429case $srcdir in
1430*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431esac
1432for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437done
openvcdiff311c7142008-08-26 19:29:25 +00001438
1439#
1440# Report the --help message.
1441#
1442if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001446\`configure' configures open-vcdiff 0.8 to adapt to many kinds of systems.
openvcdiff311c7142008-08-26 19:29:25 +00001447
1448Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451VAR=VALUE. See below for descriptions of some of the useful variables.
1452
1453Defaults for the options are specified in brackets.
1454
1455Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465
openvcdiff311c7142008-08-26 19:29:25 +00001466Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001468 [$ac_default_prefix]
openvcdiff311c7142008-08-26 19:29:25 +00001469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001470 [PREFIX]
openvcdiff311c7142008-08-26 19:29:25 +00001471
1472By default, \`make install' will install all the files in
1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475for instance \`--prefix=\$HOME'.
1476
1477For better control, use the options below.
1478
1479Fine tuning of the installation directories:
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/open-vcdiff]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
openvcdiff311c7142008-08-26 19:29:25 +00001499_ACEOF
1500
1501 cat <<\_ACEOF
1502
1503Program names:
1504 --program-prefix=PREFIX prepend PREFIX to installed program names
1505 --program-suffix=SUFFIX append SUFFIX to installed program names
1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1507
1508System types:
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515 case $ac_init_help in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001516 short | recursive ) echo "Configuration of open-vcdiff 0.8:";;
openvcdiff311c7142008-08-26 19:29:25 +00001517 esac
1518 cat <<\_ACEOF
1519
1520Optional Features:
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001521 --disable-option-checking ignore unrecognized --enable/--with options
openvcdiff311c7142008-08-26 19:29:25 +00001522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1524 --disable-dependency-tracking speeds up one-time build
1525 --enable-dependency-tracking do not reject slow dependency extractors
openvcdiffbaf44ea2009-04-09 19:20:49 +00001526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=no]
openvcdiffd1845782009-03-20 21:56:15 +00001528 --enable-shared[=PKGS] build shared libraries [default=yes]
1529 --enable-static[=PKGS] build static libraries [default=yes]
openvcdiff311c7142008-08-26 19:29:25 +00001530 --disable-libtool-lock avoid locking (might break parallel builds)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001531 --enable-namespace=FOO to define these Google
1532 classes in the FOO namespace. --disable-namespace
1533 to define them in the global namespace. Default
1534 is to define them in namespace google.
openvcdiff311c7142008-08-26 19:29:25 +00001535
1536Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
openvcdiff311c7142008-08-26 19:29:25 +00001539 --with-pic try to use only PIC/non-PIC objects [default=use
1540 both]
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001541 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
openvcdiff311c7142008-08-26 19:29:25 +00001542
1543Some influential environment variables:
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1547 nonstandard directory <lib dir>
openvcdiffd1845782009-03-20 21:56:15 +00001548 LIBS libraries to pass to the linker, e.g. -l<library>
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001549 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
openvcdiffd1845782009-03-20 21:56:15 +00001550 you have headers in a nonstandard directory <include dir>
openvcdiff311c7142008-08-26 19:29:25 +00001551 CPP C preprocessor
1552 CXX C++ compiler command
1553 CXXFLAGS C++ compiler flags
1554 CXXCPP C++ preprocessor
openvcdiff311c7142008-08-26 19:29:25 +00001555
1556Use these variables to override the choices made by `configure' or to help
1557it to find libraries and programs with nonstandard names/locations.
1558
1559Report bugs to <opensource@google.com>.
1560_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00001561ac_status=$?
openvcdiff311c7142008-08-26 19:29:25 +00001562fi
1563
1564if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
openvcdiff311c7142008-08-26 19:29:25 +00001566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 continue
openvcdiff311c7142008-08-26 19:29:25 +00001570 ac_builddir=.
1571
openvcdiffd1845782009-03-20 21:56:15 +00001572case "$ac_dir" in
1573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
openvcdiffd1845782009-03-20 21:56:15 +00001576 # A ".." for each directory in $ac_dir_suffix.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
openvcdiffd1845782009-03-20 21:56:15 +00001578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 esac ;;
1582esac
1583ac_abs_top_builddir=$ac_pwd
1584ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585# for backward compatibility:
1586ac_top_builddir=$ac_top_build_prefix
openvcdiff311c7142008-08-26 19:29:25 +00001587
1588case $srcdir in
openvcdiffd1845782009-03-20 21:56:15 +00001589 .) # We are building in place.
openvcdiff311c7142008-08-26 19:29:25 +00001590 ac_srcdir=.
openvcdiffd1845782009-03-20 21:56:15 +00001591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
openvcdiff311c7142008-08-26 19:29:25 +00001594 ac_srcdir=$srcdir$ac_dir_suffix;
openvcdiffd1845782009-03-20 21:56:15 +00001595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1597 *) # Relative name.
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
openvcdiff311c7142008-08-26 19:29:25 +00001601esac
openvcdiffd1845782009-03-20 21:56:15 +00001602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
openvcdiff311c7142008-08-26 19:29:25 +00001603
openvcdiffd1845782009-03-20 21:56:15 +00001604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure" --help=recursive
openvcdiff311c7142008-08-26 19:29:25 +00001612 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
openvcdiffd1845782009-03-20 21:56:15 +00001614 fi || ac_status=$?
1615 cd "$ac_pwd" || { ac_status=$?; break; }
openvcdiff311c7142008-08-26 19:29:25 +00001616 done
1617fi
1618
openvcdiffd1845782009-03-20 21:56:15 +00001619test -n "$ac_init_help" && exit $ac_status
openvcdiff311c7142008-08-26 19:29:25 +00001620if $ac_init_version; then
1621 cat <<\_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001622open-vcdiff configure 0.8
1623generated by GNU Autoconf 2.65
openvcdiff311c7142008-08-26 19:29:25 +00001624
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001625Copyright (C) 2009 Free Software Foundation, Inc.
openvcdiff311c7142008-08-26 19:29:25 +00001626This configure script is free software; the Free Software Foundation
1627gives unlimited permission to copy, distribute and modify it.
1628_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00001629 exit
openvcdiff311c7142008-08-26 19:29:25 +00001630fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00001631
1632## ------------------------ ##
1633## Autoconf initialization. ##
1634## ------------------------ ##
1635
1636# ac_fn_c_try_compile LINENO
1637# --------------------------
1638# Try to compile conftest.$ac_ext, and return whether this succeeded.
1639ac_fn_c_try_compile ()
1640{
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1643 if { { ac_try="$ac_compile"
1644case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1662 ac_retval=0
1663else
1664 $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668fi
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 as_fn_set_status $ac_retval
1671
1672} # ac_fn_c_try_compile
1673
1674# ac_fn_c_try_cpp LINENO
1675# ----------------------
1676# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_cpp ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } >/dev/null && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 as_fn_set_status $ac_retval
1708
1709} # ac_fn_c_try_cpp
1710
1711# ac_fn_cxx_try_compile LINENO
1712# ----------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_cxx_try_compile ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_cxx_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 as_fn_set_status $ac_retval
1746
1747} # ac_fn_cxx_try_compile
1748
1749# ac_fn_c_try_link LINENO
1750# -----------------------
1751# Try to link conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_link ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext conftest$ac_exeext
1756 if { { ac_try="$ac_link"
1757case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest$ac_exeext && {
1775 test "$cross_compiling" = yes ||
1776 $as_test_x conftest$ac_exeext
1777 }; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784fi
1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787 # interfere with the next link command; also delete a directory that is
1788 # left behind by Apple's compiler. We do this before executing the actions.
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_link
1794
1795# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796# -------------------------------------------------------
1797# Tests whether HEADER exists and can be compiled using the include files in
1798# INCLUDES, setting the cache variable VAR accordingly.
1799ac_fn_c_check_header_compile ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803$as_echo_n "checking for $2... " >&6; }
1804if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805 $as_echo_n "(cached) " >&6
1806else
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h. */
1809$4
1810#include <$2>
1811_ACEOF
1812if ac_fn_c_try_compile "$LINENO"; then :
1813 eval "$3=yes"
1814else
1815 eval "$3=no"
1816fi
1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818fi
1819eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821$as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823
1824} # ac_fn_c_check_header_compile
1825
1826# ac_fn_c_try_run LINENO
1827# ----------------------
1828# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1829# that executables *can* be run.
1830ac_fn_c_try_run ()
1831{
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if { { ac_try="$ac_link"
1834case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_link") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1844 { { case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_try") 2>&5
1851 ac_status=$?
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; }; }; then :
1854 ac_retval=0
1855else
1856 $as_echo "$as_me: program exited with status $ac_status" >&5
1857 $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=$ac_status
1861fi
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 as_fn_set_status $ac_retval
1865
1866} # ac_fn_c_try_run
1867
1868# ac_fn_c_check_func LINENO FUNC VAR
1869# ----------------------------------
1870# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871ac_fn_c_check_func ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
1876if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877 $as_echo_n "(cached) " >&6
1878else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883#define $2 innocuous_$2
1884
1885/* System header to define __stub macros and hopefully few prototypes,
1886 which can conflict with char $2 (); below.
1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888 <limits.h> exists even on freestanding compilers. */
1889
1890#ifdef __STDC__
1891# include <limits.h>
1892#else
1893# include <assert.h>
1894#endif
1895
1896#undef $2
1897
1898/* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1901#ifdef __cplusplus
1902extern "C"
1903#endif
1904char $2 ();
1905/* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908#if defined __stub_$2 || defined __stub___$2
1909choke me
1910#endif
1911
1912int
1913main ()
1914{
1915return $2 ();
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_link "$LINENO"; then :
1921 eval "$3=yes"
1922else
1923 eval "$3=no"
1924fi
1925rm -f core conftest.err conftest.$ac_objext \
1926 conftest$ac_exeext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932
1933} # ac_fn_c_check_func
1934
1935# ac_fn_cxx_try_cpp LINENO
1936# ------------------------
1937# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938ac_fn_cxx_try_cpp ()
1939{
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_cpp conftest.$ac_ext"
1942case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945esac
1946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947$as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1954 fi
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } >/dev/null && {
1957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1958 test ! -s conftest.err
1959 }; then :
1960 ac_retval=0
1961else
1962 $as_echo "$as_me: failed program was:" >&5
1963sed 's/^/| /' conftest.$ac_ext >&5
1964
1965 ac_retval=1
1966fi
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 as_fn_set_status $ac_retval
1969
1970} # ac_fn_cxx_try_cpp
1971
1972# ac_fn_cxx_try_link LINENO
1973# -------------------------
1974# Try to link conftest.$ac_ext, and return whether this succeeded.
1975ac_fn_cxx_try_link ()
1976{
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 rm -f conftest.$ac_objext conftest$ac_exeext
1979 if { { ac_try="$ac_link"
1980case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983esac
1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985$as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>conftest.err
1987 ac_status=$?
1988 if test -s conftest.err; then
1989 grep -v '^ *+' conftest.err >conftest.er1
1990 cat conftest.er1 >&5
1991 mv -f conftest.er1 conftest.err
1992 fi
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; } && {
1995 test -z "$ac_cxx_werror_flag" ||
1996 test ! -s conftest.err
1997 } && test -s conftest$ac_exeext && {
1998 test "$cross_compiling" = yes ||
1999 $as_test_x conftest$ac_exeext
2000 }; then :
2001 ac_retval=0
2002else
2003 $as_echo "$as_me: failed program was:" >&5
2004sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=1
2007fi
2008 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2009 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2010 # interfere with the next link command; also delete a directory that is
2011 # left behind by Apple's compiler. We do this before executing the actions.
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 as_fn_set_status $ac_retval
2015
2016} # ac_fn_cxx_try_link
2017
2018# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2019# -------------------------------------------------------
2020# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2021# the include files in INCLUDES and setting the cache variable VAR
2022# accordingly.
2023ac_fn_c_check_header_mongrel ()
2024{
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028$as_echo_n "checking for $2... " >&6; }
2029if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030 $as_echo_n "(cached) " >&6
2031fi
2032eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034$as_echo "$ac_res" >&6; }
2035else
2036 # Is the header compilable?
2037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2038$as_echo_n "checking $2 usability... " >&6; }
2039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h. */
2041$4
2042#include <$2>
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_header_compiler=yes
2046else
2047 ac_header_compiler=no
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2051$as_echo "$ac_header_compiler" >&6; }
2052
2053# Is the header present?
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2055$as_echo_n "checking $2 presence... " >&6; }
2056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058#include <$2>
2059_ACEOF
2060if ac_fn_c_try_cpp "$LINENO"; then :
2061 ac_header_preproc=yes
2062else
2063 ac_header_preproc=no
2064fi
2065rm -f conftest.err conftest.$ac_ext
2066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2067$as_echo "$ac_header_preproc" >&6; }
2068
2069# So? What about this header?
2070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2071 yes:no: )
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2073$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076 ;;
2077 no:yes:* )
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2079$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2081$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2083$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2085$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2087$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2088( cat <<\_ASBOX
2089## ------------------------------------ ##
2090## Report this to opensource@google.com ##
2091## ------------------------------------ ##
2092_ASBOX
2093 ) | sed "s/^/$as_me: WARNING: /" >&2
2094 ;;
2095esac
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097$as_echo_n "checking for $2... " >&6; }
2098if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2099 $as_echo_n "(cached) " >&6
2100else
2101 eval "$3=\$ac_header_compiler"
2102fi
2103eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105$as_echo "$ac_res" >&6; }
2106fi
2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108
2109} # ac_fn_c_check_header_mongrel
2110
2111# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2112# -------------------------------------------
2113# Tests whether TYPE exists after having included INCLUDES, setting cache
2114# variable VAR accordingly.
2115ac_fn_c_check_type ()
2116{
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119$as_echo_n "checking for $2... " >&6; }
2120if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2121 $as_echo_n "(cached) " >&6
2122else
2123 eval "$3=no"
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h. */
2126$4
2127int
2128main ()
2129{
2130if (sizeof ($2))
2131 return 0;
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h. */
2139$4
2140int
2141main ()
2142{
2143if (sizeof (($2)))
2144 return 0;
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150
2151else
2152 eval "$3=yes"
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157fi
2158eval ac_res=\$$3
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160$as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2162
2163} # ac_fn_c_check_type
openvcdiffd1845782009-03-20 21:56:15 +00002164cat >config.log <<_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +00002165This file contains any messages produced by compilers while
2166running configure, to aid debugging if configure makes a mistake.
2167
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002168It was created by open-vcdiff $as_me 0.8, which was
2169generated by GNU Autoconf 2.65. Invocation command line was
openvcdiff311c7142008-08-26 19:29:25 +00002170
2171 $ $0 $@
2172
2173_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00002174exec 5>>config.log
openvcdiff311c7142008-08-26 19:29:25 +00002175{
2176cat <<_ASUNAME
2177## --------- ##
2178## Platform. ##
2179## --------- ##
2180
2181hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2182uname -m = `(uname -m) 2>/dev/null || echo unknown`
2183uname -r = `(uname -r) 2>/dev/null || echo unknown`
2184uname -s = `(uname -s) 2>/dev/null || echo unknown`
2185uname -v = `(uname -v) 2>/dev/null || echo unknown`
2186
2187/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2188/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2189
2190/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2191/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2192/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
openvcdiffd1845782009-03-20 21:56:15 +00002193/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
openvcdiff311c7142008-08-26 19:29:25 +00002194/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2195/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2196/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2197
2198_ASUNAME
2199
2200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201for as_dir in $PATH
2202do
2203 IFS=$as_save_IFS
2204 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002205 $as_echo "PATH: $as_dir"
2206 done
openvcdiffd1845782009-03-20 21:56:15 +00002207IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002208
2209} >&5
2210
2211cat >&5 <<_ACEOF
2212
2213
2214## ----------- ##
2215## Core tests. ##
2216## ----------- ##
2217
2218_ACEOF
2219
2220
2221# Keep a trace of the command line.
2222# Strip out --no-create and --no-recursion so they do not pile up.
2223# Strip out --silent because we don't want to record it for future runs.
2224# Also quote any args containing shell meta-characters.
2225# Make two passes to allow for proper duplicate-argument suppression.
2226ac_configure_args=
2227ac_configure_args0=
2228ac_configure_args1=
openvcdiff311c7142008-08-26 19:29:25 +00002229ac_must_keep_next=false
2230for ac_pass in 1 2
2231do
2232 for ac_arg
2233 do
2234 case $ac_arg in
2235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2237 | -silent | --silent | --silen | --sile | --sil)
2238 continue ;;
openvcdiffd1845782009-03-20 21:56:15 +00002239 *\'*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002240 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
openvcdiff311c7142008-08-26 19:29:25 +00002241 esac
2242 case $ac_pass in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002243 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
openvcdiff311c7142008-08-26 19:29:25 +00002244 2)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002245 as_fn_append ac_configure_args1 " '$ac_arg'"
openvcdiff311c7142008-08-26 19:29:25 +00002246 if test $ac_must_keep_next = true; then
2247 ac_must_keep_next=false # Got value, back to normal.
2248 else
2249 case $ac_arg in
2250 *=* | --config-cache | -C | -disable-* | --disable-* \
2251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2253 | -with-* | --with-* | -without-* | --without-* | --x)
2254 case "$ac_configure_args0 " in
2255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2256 esac
2257 ;;
2258 -* ) ac_must_keep_next=true ;;
2259 esac
2260 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002261 as_fn_append ac_configure_args " '$ac_arg'"
openvcdiff311c7142008-08-26 19:29:25 +00002262 ;;
2263 esac
2264 done
2265done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002266{ ac_configure_args0=; unset ac_configure_args0;}
2267{ ac_configure_args1=; unset ac_configure_args1;}
openvcdiff311c7142008-08-26 19:29:25 +00002268
2269# When interrupted or exit'd, cleanup temporary files, and complete
2270# config.log. We remove comments because anyway the quotes in there
2271# would cause problems or look ugly.
openvcdiffd1845782009-03-20 21:56:15 +00002272# WARNING: Use '\'' to represent an apostrophe within the trap.
2273# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
openvcdiff311c7142008-08-26 19:29:25 +00002274trap 'exit_status=$?
2275 # Save into config.log some information that might help in debugging.
2276 {
2277 echo
2278
2279 cat <<\_ASBOX
2280## ---------------- ##
2281## Cache variables. ##
2282## ---------------- ##
2283_ASBOX
2284 echo
2285 # The following way of writing the cache mishandles newlines in values,
openvcdiffd1845782009-03-20 21:56:15 +00002286(
2287 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2288 eval ac_val=\$$ac_var
2289 case $ac_val in #(
2290 *${as_nl}*)
2291 case $ac_var in #(
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002292 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2293$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
openvcdiffd1845782009-03-20 21:56:15 +00002294 esac
2295 case $ac_var in #(
2296 _ | IFS | as_nl) ;; #(
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002297 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2298 *) { eval $ac_var=; unset $ac_var;} ;;
openvcdiffd1845782009-03-20 21:56:15 +00002299 esac ;;
2300 esac
2301 done
openvcdiff311c7142008-08-26 19:29:25 +00002302 (set) 2>&1 |
openvcdiffd1845782009-03-20 21:56:15 +00002303 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2304 *${as_nl}ac_space=\ *)
openvcdiff311c7142008-08-26 19:29:25 +00002305 sed -n \
openvcdiffd1845782009-03-20 21:56:15 +00002306 "s/'\''/'\''\\\\'\'''\''/g;
2307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2308 ;; #(
openvcdiff311c7142008-08-26 19:29:25 +00002309 *)
openvcdiffd1845782009-03-20 21:56:15 +00002310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
openvcdiff311c7142008-08-26 19:29:25 +00002311 ;;
openvcdiffd1845782009-03-20 21:56:15 +00002312 esac |
2313 sort
2314)
openvcdiff311c7142008-08-26 19:29:25 +00002315 echo
2316
2317 cat <<\_ASBOX
2318## ----------------- ##
2319## Output variables. ##
2320## ----------------- ##
2321_ASBOX
2322 echo
2323 for ac_var in $ac_subst_vars
2324 do
openvcdiffd1845782009-03-20 21:56:15 +00002325 eval ac_val=\$$ac_var
2326 case $ac_val in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
openvcdiffd1845782009-03-20 21:56:15 +00002328 esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002329 $as_echo "$ac_var='\''$ac_val'\''"
openvcdiff311c7142008-08-26 19:29:25 +00002330 done | sort
2331 echo
2332
2333 if test -n "$ac_subst_files"; then
2334 cat <<\_ASBOX
openvcdiffd1845782009-03-20 21:56:15 +00002335## ------------------- ##
2336## File substitutions. ##
2337## ------------------- ##
openvcdiff311c7142008-08-26 19:29:25 +00002338_ASBOX
2339 echo
2340 for ac_var in $ac_subst_files
2341 do
openvcdiffd1845782009-03-20 21:56:15 +00002342 eval ac_val=\$$ac_var
2343 case $ac_val in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
openvcdiffd1845782009-03-20 21:56:15 +00002345 esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002346 $as_echo "$ac_var='\''$ac_val'\''"
openvcdiff311c7142008-08-26 19:29:25 +00002347 done | sort
2348 echo
2349 fi
2350
2351 if test -s confdefs.h; then
2352 cat <<\_ASBOX
2353## ----------- ##
2354## confdefs.h. ##
2355## ----------- ##
2356_ASBOX
2357 echo
openvcdiffd1845782009-03-20 21:56:15 +00002358 cat confdefs.h
openvcdiff311c7142008-08-26 19:29:25 +00002359 echo
2360 fi
2361 test "$ac_signal" != 0 &&
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002362 $as_echo "$as_me: caught signal $ac_signal"
2363 $as_echo "$as_me: exit $exit_status"
openvcdiff311c7142008-08-26 19:29:25 +00002364 } >&5
openvcdiffd1845782009-03-20 21:56:15 +00002365 rm -f core *.core core.conftest.* &&
2366 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
openvcdiff311c7142008-08-26 19:29:25 +00002367 exit $exit_status
openvcdiffd1845782009-03-20 21:56:15 +00002368' 0
openvcdiff311c7142008-08-26 19:29:25 +00002369for ac_signal in 1 2 13 15; do
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002370 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
openvcdiff311c7142008-08-26 19:29:25 +00002371done
2372ac_signal=0
2373
2374# confdefs.h avoids OS command line length limits that DEFS can exceed.
openvcdiffd1845782009-03-20 21:56:15 +00002375rm -f -r conftest* confdefs.h
openvcdiff311c7142008-08-26 19:29:25 +00002376
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002377$as_echo "/* confdefs.h */" > confdefs.h
2378
openvcdiff311c7142008-08-26 19:29:25 +00002379# Predefined preprocessor variables.
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_NAME "$PACKAGE_NAME"
2383_ACEOF
2384
openvcdiff311c7142008-08-26 19:29:25 +00002385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2387_ACEOF
2388
openvcdiff311c7142008-08-26 19:29:25 +00002389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_VERSION "$PACKAGE_VERSION"
2391_ACEOF
2392
openvcdiff311c7142008-08-26 19:29:25 +00002393cat >>confdefs.h <<_ACEOF
2394#define PACKAGE_STRING "$PACKAGE_STRING"
2395_ACEOF
2396
openvcdiff311c7142008-08-26 19:29:25 +00002397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2399_ACEOF
2400
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002401cat >>confdefs.h <<_ACEOF
2402#define PACKAGE_URL "$PACKAGE_URL"
2403_ACEOF
2404
openvcdiff311c7142008-08-26 19:29:25 +00002405
2406# Let the site file select an alternate cache file if it wants to.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002407# Prefer an explicitly selected file to automatically selected ones.
2408ac_site_file1=NONE
2409ac_site_file2=NONE
openvcdiffd1845782009-03-20 21:56:15 +00002410if test -n "$CONFIG_SITE"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002411 ac_site_file1=$CONFIG_SITE
openvcdiffd1845782009-03-20 21:56:15 +00002412elif test "x$prefix" != xNONE; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002413 ac_site_file1=$prefix/share/config.site
2414 ac_site_file2=$prefix/etc/config.site
openvcdiffd1845782009-03-20 21:56:15 +00002415else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002416 ac_site_file1=$ac_default_prefix/share/config.site
2417 ac_site_file2=$ac_default_prefix/etc/config.site
openvcdiff311c7142008-08-26 19:29:25 +00002418fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002419for ac_site_file in "$ac_site_file1" "$ac_site_file2"
openvcdiffd1845782009-03-20 21:56:15 +00002420do
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002421 test "x$ac_site_file" = xNONE && continue
2422 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2424$as_echo "$as_me: loading site script $ac_site_file" >&6;}
openvcdiff311c7142008-08-26 19:29:25 +00002425 sed 's/^/| /' "$ac_site_file" >&5
2426 . "$ac_site_file"
2427 fi
2428done
2429
2430if test -r "$cache_file"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002431 # Some versions of bash will fail to source /dev/null (special files
2432 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2433 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2435$as_echo "$as_me: loading cache $cache_file" >&6;}
openvcdiff311c7142008-08-26 19:29:25 +00002436 case $cache_file in
openvcdiffd1845782009-03-20 21:56:15 +00002437 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2438 *) . "./$cache_file";;
openvcdiff311c7142008-08-26 19:29:25 +00002439 esac
2440 fi
2441else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2443$as_echo "$as_me: creating cache $cache_file" >&6;}
openvcdiff311c7142008-08-26 19:29:25 +00002444 >$cache_file
2445fi
2446
2447# Check that the precious variables saved in the cache have kept the same
2448# value.
2449ac_cache_corrupted=false
openvcdiffd1845782009-03-20 21:56:15 +00002450for ac_var in $ac_precious_vars; do
openvcdiff311c7142008-08-26 19:29:25 +00002451 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2452 eval ac_new_set=\$ac_env_${ac_var}_set
openvcdiffd1845782009-03-20 21:56:15 +00002453 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2454 eval ac_new_val=\$ac_env_${ac_var}_value
openvcdiff311c7142008-08-26 19:29:25 +00002455 case $ac_old_set,$ac_new_set in
2456 set,)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2458$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +00002459 ac_cache_corrupted=: ;;
2460 ,set)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2462$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +00002463 ac_cache_corrupted=: ;;
2464 ,);;
2465 *)
2466 if test "x$ac_old_val" != "x$ac_new_val"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002467 # differences in whitespace do not lead to failure.
2468 ac_old_val_w=`echo x $ac_old_val`
2469 ac_new_val_w=`echo x $ac_new_val`
2470 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2472$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2473 ac_cache_corrupted=:
2474 else
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2476$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2477 eval $ac_var=\$ac_old_val
2478 fi
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2480$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2482$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +00002483 fi;;
2484 esac
2485 # Pass precious variables to config.status.
2486 if test "$ac_new_set" = set; then
2487 case $ac_new_val in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002488 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
openvcdiff311c7142008-08-26 19:29:25 +00002489 *) ac_arg=$ac_var=$ac_new_val ;;
2490 esac
2491 case " $ac_configure_args " in
2492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002493 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
openvcdiff311c7142008-08-26 19:29:25 +00002494 esac
2495 fi
2496done
2497if $ac_cache_corrupted; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2501$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2502 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +00002503fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002504## -------------------- ##
2505## Main body of script. ##
2506## -------------------- ##
openvcdiffd1845782009-03-20 21:56:15 +00002507
openvcdiff311c7142008-08-26 19:29:25 +00002508ac_ext=c
2509ac_cpp='$CPP $CPPFLAGS'
2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
2514
2515
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002516
2517am__api_version='1.11'
openvcdiff311c7142008-08-26 19:29:25 +00002518
openvcdiff311c7142008-08-26 19:29:25 +00002519ac_aux_dir=
openvcdiffd1845782009-03-20 21:56:15 +00002520for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002521 for ac_t in install-sh install.sh shtool; do
2522 if test -f "$ac_dir/$ac_t"; then
2523 ac_aux_dir=$ac_dir
2524 ac_install_sh="$ac_aux_dir/$ac_t -c"
2525 break 2
2526 fi
2527 done
openvcdiff311c7142008-08-26 19:29:25 +00002528done
2529if test -z "$ac_aux_dir"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002530 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +00002531fi
openvcdiffd1845782009-03-20 21:56:15 +00002532
2533# These three variables are undocumented and unsupported,
2534# and are intended to be withdrawn in a future Autoconf release.
2535# They can cause serious problems if a builder's source tree is in a directory
2536# whose full name contains unusual characters.
2537ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2538ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2539ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2540
openvcdiff311c7142008-08-26 19:29:25 +00002541
2542# Find a good install program. We prefer a C program (faster),
2543# so one script is as good as another. But avoid the broken or
2544# incompatible versions:
2545# SysV /etc/install, /usr/sbin/install
2546# SunOS /usr/etc/install
2547# IRIX /sbin/install
2548# AIX /bin/install
2549# AmigaOS /C/install, which installs bootblocks on floppy discs
2550# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2551# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2552# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2553# OS/2's system install, which has a completely different semantic
2554# ./install, which can be erroneously created by make from ./install.sh.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002555# Reject install programs that cannot install multiple files.
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2557$as_echo_n "checking for a BSD-compatible install... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002558if test -z "$INSTALL"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002559if test "${ac_cv_path_install+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00002561else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002567 # Account for people who put trailing slashes in PATH elements.
2568case $as_dir/ in #((
2569 ./ | .// | /[cC]/* | \
openvcdiff311c7142008-08-26 19:29:25 +00002570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002571 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
openvcdiff311c7142008-08-26 19:29:25 +00002572 /usr/ucb/* ) ;;
2573 *)
2574 # OSF1 and SCO ODT 3.0 have their own names for install.
2575 # Don't use installbsd from OSF since it installs stuff as root
2576 # by default.
2577 for ac_prog in ginstall scoinst install; do
2578 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002579 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 +00002580 if test $ac_prog = install &&
2581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # AIX install. It has an incompatible calling convention.
2583 :
2584 elif test $ac_prog = install &&
2585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # program-specific install script used by HP pwplus--don't use.
2587 :
2588 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002589 rm -rf conftest.one conftest.two conftest.dir
2590 echo one > conftest.one
2591 echo two > conftest.two
2592 mkdir conftest.dir
2593 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2594 test -s conftest.one && test -s conftest.two &&
2595 test -s conftest.dir/conftest.one &&
2596 test -s conftest.dir/conftest.two
2597 then
2598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2599 break 3
2600 fi
openvcdiff311c7142008-08-26 19:29:25 +00002601 fi
2602 fi
2603 done
2604 done
2605 ;;
2606esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002607
2608 done
openvcdiffd1845782009-03-20 21:56:15 +00002609IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002610
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002611rm -rf conftest.one conftest.two conftest.dir
openvcdiff311c7142008-08-26 19:29:25 +00002612
2613fi
2614 if test "${ac_cv_path_install+set}" = set; then
2615 INSTALL=$ac_cv_path_install
2616 else
openvcdiffd1845782009-03-20 21:56:15 +00002617 # As a last resort, use the slow shell script. Don't cache a
2618 # value for INSTALL within a source directory, because that will
openvcdiff311c7142008-08-26 19:29:25 +00002619 # break other packages using the cache if that directory is
openvcdiffd1845782009-03-20 21:56:15 +00002620 # removed, or if the value is a relative name.
openvcdiff311c7142008-08-26 19:29:25 +00002621 INSTALL=$ac_install_sh
2622 fi
2623fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2625$as_echo "$INSTALL" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002626
2627# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2628# It thinks the first close brace ends the variable substitution.
2629test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2630
2631test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2632
2633test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2634
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2636$as_echo_n "checking whether build environment is sane... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002637# Just in case
2638sleep 1
2639echo timestamp > conftest.file
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002640# Reject unsafe characters in $srcdir or the absolute working directory
2641# name. Accept space and tab only in the latter.
2642am_lf='
2643'
2644case `pwd` in
2645 *[\\\"\#\$\&\'\`$am_lf]*)
2646 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2647esac
2648case $srcdir in
2649 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2650 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2651esac
2652
openvcdiff311c7142008-08-26 19:29:25 +00002653# Do `set' in a subshell so we don't clobber the current shell's
2654# arguments. Must try -L first in case configure is actually a
2655# symlink; some systems play weird games with the mod time of symlinks
2656# (eg FreeBSD returns the mod time of the symlink's containing
2657# directory).
2658if (
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002659 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
openvcdiff311c7142008-08-26 19:29:25 +00002660 if test "$*" = "X"; then
2661 # -L didn't work.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002662 set X `ls -t "$srcdir/configure" conftest.file`
openvcdiff311c7142008-08-26 19:29:25 +00002663 fi
2664 rm -f conftest.file
2665 if test "$*" != "X $srcdir/configure conftest.file" \
2666 && test "$*" != "X conftest.file $srcdir/configure"; then
2667
2668 # If neither matched, then we have a broken ls. This can happen
2669 # if, for instance, CONFIG_SHELL is bash and it inherits a
2670 # broken ls alias from the environment. This has actually
2671 # happened. Such a system could not be considered "sane".
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002672 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2673alias in your environment" "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +00002674 fi
2675
2676 test "$2" = conftest.file
2677 )
2678then
2679 # Ok.
2680 :
2681else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002682 as_fn_error "newly created file is older than distributed files!
2683Check your system clock" "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +00002684fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2686$as_echo "yes" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002687test "$program_prefix" != NONE &&
openvcdiffd1845782009-03-20 21:56:15 +00002688 program_transform_name="s&^&$program_prefix&;$program_transform_name"
openvcdiff311c7142008-08-26 19:29:25 +00002689# Use a double $ so make ignores it.
2690test "$program_suffix" != NONE &&
openvcdiffd1845782009-03-20 21:56:15 +00002691 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002692# Double any \ or $.
openvcdiff311c7142008-08-26 19:29:25 +00002693# By default was `s,x,x', remove it if useless.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002694ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2695program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
openvcdiff311c7142008-08-26 19:29:25 +00002696
2697# expand $ac_aux_dir to an absolute path
2698am_aux_dir=`cd $ac_aux_dir && pwd`
2699
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002700if test x"${MISSING+set}" != xset; then
2701 case $am_aux_dir in
2702 *\ * | *\ *)
2703 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2704 *)
2705 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2706 esac
2707fi
openvcdiff311c7142008-08-26 19:29:25 +00002708# Use eval to expand $SHELL
2709if eval "$MISSING --run true"; then
2710 am_missing_run="$MISSING --run "
2711else
2712 am_missing_run=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2714$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +00002715fi
2716
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002717if test x"${install_sh}" != xset; then
2718 case $am_aux_dir in
2719 *\ * | *\ *)
2720 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2721 *)
2722 install_sh="\${SHELL} $am_aux_dir/install-sh"
2723 esac
2724fi
2725
2726# Installed binaries are usually stripped using `strip' when the user
2727# run `make install-strip'. However `strip' might not be the right
2728# tool to use in cross-compilation environments, therefore Automake
2729# will honor the `STRIP' environment variable to overrule this program.
2730if test "$cross_compiling" != no; then
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2733set dummy ${ac_tool_prefix}strip; ac_word=$2
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735$as_echo_n "checking for $ac_word... " >&6; }
2736if test "${ac_cv_prog_STRIP+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2738else
2739 if test -n "$STRIP"; then
2740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753done
2754 done
2755IFS=$as_save_IFS
2756
2757fi
2758fi
2759STRIP=$ac_cv_prog_STRIP
2760if test -n "$STRIP"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2762$as_echo "$STRIP" >&6; }
2763else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
2768
2769fi
2770if test -z "$ac_cv_prog_STRIP"; then
2771 ac_ct_STRIP=$STRIP
2772 # Extract the first word of "strip", so it can be a program name with args.
2773set dummy strip; ac_word=$2
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775$as_echo_n "checking for $ac_word... " >&6; }
2776if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2778else
2779 if test -n "$ac_ct_STRIP"; then
2780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_ac_ct_STRIP="strip"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793done
2794 done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2800if test -n "$ac_ct_STRIP"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2802$as_echo "$ac_ct_STRIP" >&6; }
2803else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805$as_echo "no" >&6; }
2806fi
2807
2808 if test "x$ac_ct_STRIP" = x; then
2809 STRIP=":"
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812yes:)
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815ac_tool_warned=yes ;;
2816esac
2817 STRIP=$ac_ct_STRIP
2818 fi
2819else
2820 STRIP="$ac_cv_prog_STRIP"
2821fi
2822
2823fi
2824INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2825
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2827$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
openvcdiffd1845782009-03-20 21:56:15 +00002828if test -z "$MKDIR_P"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002829 if test "${ac_cv_path_mkdir+set}" = set; then :
2830 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00002831else
openvcdiffd1845782009-03-20 21:56:15 +00002832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002837 for ac_prog in mkdir gmkdir; do
openvcdiffd1845782009-03-20 21:56:15 +00002838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2840 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2841 'mkdir (GNU coreutils) '* | \
2842 'mkdir (coreutils) '* | \
2843 'mkdir (fileutils) '4.1*)
2844 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2845 break 3;;
2846 esac
2847 done
2848 done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002849 done
openvcdiffd1845782009-03-20 21:56:15 +00002850IFS=$as_save_IFS
2851
2852fi
2853
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002854 test -d ./--version && rmdir ./--version
openvcdiffd1845782009-03-20 21:56:15 +00002855 if test "${ac_cv_path_mkdir+set}" = set; then
2856 MKDIR_P="$ac_cv_path_mkdir -p"
openvcdiff311c7142008-08-26 19:29:25 +00002857 else
openvcdiffd1845782009-03-20 21:56:15 +00002858 # As a last resort, use the slow shell script. Don't cache a
2859 # value for MKDIR_P within a source directory, because that will
2860 # break other packages using the cache if that directory is
2861 # removed, or if the value is a relative name.
openvcdiffd1845782009-03-20 21:56:15 +00002862 MKDIR_P="$ac_install_sh -d"
openvcdiff311c7142008-08-26 19:29:25 +00002863 fi
2864fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2866$as_echo "$MKDIR_P" >&6; }
openvcdiffd1845782009-03-20 21:56:15 +00002867
2868mkdir_p="$MKDIR_P"
2869case $mkdir_p in
2870 [\\/$]* | ?:[\\/]*) ;;
2871 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2872esac
openvcdiff311c7142008-08-26 19:29:25 +00002873
2874for ac_prog in gawk mawk nawk awk
2875do
2876 # Extract the first word of "$ac_prog", so it can be a program name with args.
2877set dummy $ac_prog; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879$as_echo_n "checking for $ac_word... " >&6; }
2880if test "${ac_cv_prog_AWK+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00002882else
2883 if test -n "$AWK"; then
2884 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002891 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00002892 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 +00002893 ac_cv_prog_AWK="$ac_prog"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00002895 break 2
2896 fi
2897done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002898 done
openvcdiffd1845782009-03-20 21:56:15 +00002899IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00002900
2901fi
2902fi
2903AWK=$ac_cv_prog_AWK
2904if test -n "$AWK"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2906$as_echo "$AWK" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002907else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002910fi
2911
openvcdiffd1845782009-03-20 21:56:15 +00002912
openvcdiff311c7142008-08-26 19:29:25 +00002913 test -n "$AWK" && break
2914done
2915
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2917$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2918set x ${MAKE-make}
2919ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2920if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2921 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00002922else
2923 cat >conftest.make <<\_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00002924SHELL = /bin/sh
openvcdiff311c7142008-08-26 19:29:25 +00002925all:
openvcdiffd1845782009-03-20 21:56:15 +00002926 @echo '@@@%%%=$(MAKE)=@@@%%%'
openvcdiff311c7142008-08-26 19:29:25 +00002927_ACEOF
2928# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
openvcdiffd1845782009-03-20 21:56:15 +00002929case `${MAKE-make} -f conftest.make 2>/dev/null` in
2930 *@@@%%%=?*=@@@%%%*)
2931 eval ac_cv_prog_make_${ac_make}_set=yes;;
2932 *)
2933 eval ac_cv_prog_make_${ac_make}_set=no;;
2934esac
openvcdiff311c7142008-08-26 19:29:25 +00002935rm -f conftest.make
2936fi
openvcdiffd1845782009-03-20 21:56:15 +00002937if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2939$as_echo "yes" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002940 SET_MAKE=
2941else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00002944 SET_MAKE="MAKE=${MAKE-make}"
2945fi
2946
2947rm -rf .tst 2>/dev/null
2948mkdir .tst 2>/dev/null
2949if test -d .tst; then
2950 am__leading_dot=.
2951else
2952 am__leading_dot=_
2953fi
2954rmdir .tst 2>/dev/null
2955
openvcdiffd1845782009-03-20 21:56:15 +00002956if test "`cd $srcdir && pwd`" != "`pwd`"; then
2957 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2958 # is not polluted with repeated "-I."
2959 am__isrc=' -I$(srcdir)'
2960 # test to see if srcdir already configured
2961 if test -f $srcdir/config.status; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002962 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
openvcdiffd1845782009-03-20 21:56:15 +00002963 fi
openvcdiff311c7142008-08-26 19:29:25 +00002964fi
2965
2966# test whether we have cygpath
2967if test -z "$CYGPATH_W"; then
2968 if (cygpath --version) >/dev/null 2>/dev/null; then
2969 CYGPATH_W='cygpath -w'
2970 else
2971 CYGPATH_W=echo
2972 fi
2973fi
2974
2975
2976# Define the identity of the package.
2977 PACKAGE='open-vcdiff'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00002978 VERSION='0.8'
openvcdiff311c7142008-08-26 19:29:25 +00002979
2980
2981cat >>confdefs.h <<_ACEOF
2982#define PACKAGE "$PACKAGE"
2983_ACEOF
2984
2985
2986cat >>confdefs.h <<_ACEOF
2987#define VERSION "$VERSION"
2988_ACEOF
2989
2990# Some tools Automake needs.
2991
2992ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2993
2994
2995AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2996
2997
2998AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2999
3000
3001AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3002
3003
3004MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3005
openvcdiff311c7142008-08-26 19:29:25 +00003006# We need awk for the "check" target. The system "awk" is bad on
3007# some platforms.
3008# Always define AMTAR for backward compatibility.
3009
3010AMTAR=${AMTAR-"${am_missing_run}tar"}
3011
3012am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3013
3014
3015
3016
3017
openvcdiffd1845782009-03-20 21:56:15 +00003018ac_config_headers="$ac_config_headers src/config.h"
openvcdiff311c7142008-08-26 19:29:25 +00003019
3020
3021# Checks for programs.
3022ac_ext=c
3023ac_cpp='$CPP $CPPFLAGS'
3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3029set dummy ${ac_tool_prefix}gcc; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031$as_echo_n "checking for $ac_word... " >&6; }
3032if test "${ac_cv_prog_CC+set}" = set; then :
3033 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00003034else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003043 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00003044 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 +00003045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00003047 break 2
3048 fi
3049done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003050 done
openvcdiffd1845782009-03-20 21:56:15 +00003051IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00003052
3053fi
3054fi
3055CC=$ac_cv_prog_CC
3056if test -n "$CC"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058$as_echo "$CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003059else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003062fi
3063
openvcdiffd1845782009-03-20 21:56:15 +00003064
openvcdiff311c7142008-08-26 19:29:25 +00003065fi
3066if test -z "$ac_cv_prog_CC"; then
3067 ac_ct_CC=$CC
3068 # Extract the first word of "gcc", so it can be a program name with args.
3069set dummy gcc; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071$as_echo_n "checking for $ac_word... " >&6; }
3072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3073 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00003074else
3075 if test -n "$ac_ct_CC"; then
3076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003083 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00003084 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 +00003085 ac_cv_prog_ac_ct_CC="gcc"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00003087 break 2
3088 fi
3089done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003090 done
openvcdiffd1845782009-03-20 21:56:15 +00003091IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00003092
3093fi
3094fi
3095ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096if test -n "$ac_ct_CC"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3098$as_echo "$ac_ct_CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003099else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003102fi
3103
openvcdiffd1845782009-03-20 21:56:15 +00003104 if test "x$ac_ct_CC" = x; then
3105 CC=""
3106 else
3107 case $cross_compiling:$ac_tool_warned in
3108yes:)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +00003111ac_tool_warned=yes ;;
3112esac
3113 CC=$ac_ct_CC
3114 fi
openvcdiff311c7142008-08-26 19:29:25 +00003115else
3116 CC="$ac_cv_prog_CC"
3117fi
3118
3119if test -z "$CC"; then
openvcdiffd1845782009-03-20 21:56:15 +00003120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
openvcdiff311c7142008-08-26 19:29:25 +00003122set dummy ${ac_tool_prefix}cc; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if test "${ac_cv_prog_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00003127else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003136 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00003137 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 +00003138 ac_cv_prog_CC="${ac_tool_prefix}cc"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00003140 break 2
3141 fi
3142done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003143 done
openvcdiffd1845782009-03-20 21:56:15 +00003144IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00003145
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151$as_echo "$CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003152else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003155fi
3156
openvcdiffd1845782009-03-20 21:56:15 +00003157
openvcdiff311c7142008-08-26 19:29:25 +00003158 fi
openvcdiff311c7142008-08-26 19:29:25 +00003159fi
3160if test -z "$CC"; then
3161 # Extract the first word of "cc", so it can be a program name with args.
3162set dummy cc; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164$as_echo_n "checking for $ac_word... " >&6; }
3165if test "${ac_cv_prog_CC+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00003167else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170else
3171 ac_prog_rejected=no
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003177 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00003178 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 +00003179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180 ac_prog_rejected=yes
3181 continue
3182 fi
3183 ac_cv_prog_CC="cc"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00003185 break 2
3186 fi
3187done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003188 done
openvcdiffd1845782009-03-20 21:56:15 +00003189IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00003190
3191if test $ac_prog_rejected = yes; then
3192 # We found a bogon in the path, so make sure we never use it.
3193 set dummy $ac_cv_prog_CC
3194 shift
3195 if test $# != 0; then
3196 # We chose a different compiler from the bogus one.
3197 # However, it has the same basename, so the bogon will be chosen
3198 # first if we set CC to just the basename; use the full file name.
3199 shift
3200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3201 fi
3202fi
3203fi
3204fi
3205CC=$ac_cv_prog_CC
3206if test -n "$CC"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208$as_echo "$CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003209else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003212fi
3213
openvcdiffd1845782009-03-20 21:56:15 +00003214
openvcdiff311c7142008-08-26 19:29:25 +00003215fi
3216if test -z "$CC"; then
3217 if test -n "$ac_tool_prefix"; then
openvcdiffd1845782009-03-20 21:56:15 +00003218 for ac_prog in cl.exe
openvcdiff311c7142008-08-26 19:29:25 +00003219 do
3220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223$as_echo_n "checking for $ac_word... " >&6; }
3224if test "${ac_cv_prog_CC+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00003226else
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003235 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00003236 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 +00003237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00003239 break 2
3240 fi
3241done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003242 done
openvcdiffd1845782009-03-20 21:56:15 +00003243IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00003244
3245fi
3246fi
3247CC=$ac_cv_prog_CC
3248if test -n "$CC"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3250$as_echo "$CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003251else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003254fi
3255
openvcdiffd1845782009-03-20 21:56:15 +00003256
openvcdiff311c7142008-08-26 19:29:25 +00003257 test -n "$CC" && break
3258 done
3259fi
3260if test -z "$CC"; then
3261 ac_ct_CC=$CC
openvcdiffd1845782009-03-20 21:56:15 +00003262 for ac_prog in cl.exe
openvcdiff311c7142008-08-26 19:29:25 +00003263do
3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3265set dummy $ac_prog; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267$as_echo_n "checking for $ac_word... " >&6; }
3268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00003270else
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003279 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00003280 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 +00003281 ac_cv_prog_ac_ct_CC="$ac_prog"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00003283 break 2
3284 fi
3285done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003286 done
openvcdiffd1845782009-03-20 21:56:15 +00003287IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00003288
3289fi
3290fi
3291ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292if test -n "$ac_ct_CC"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3294$as_echo "$ac_ct_CC" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003295else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003298fi
3299
openvcdiffd1845782009-03-20 21:56:15 +00003300
openvcdiff311c7142008-08-26 19:29:25 +00003301 test -n "$ac_ct_CC" && break
3302done
3303
openvcdiffd1845782009-03-20 21:56:15 +00003304 if test "x$ac_ct_CC" = x; then
3305 CC=""
3306 else
3307 case $cross_compiling:$ac_tool_warned in
3308yes:)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +00003311ac_tool_warned=yes ;;
3312esac
3313 CC=$ac_ct_CC
3314 fi
openvcdiff311c7142008-08-26 19:29:25 +00003315fi
3316
3317fi
3318
3319
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003320test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322as_fn_error "no acceptable C compiler found in \$PATH
3323See \`config.log' for more details." "$LINENO" 5; }
openvcdiff311c7142008-08-26 19:29:25 +00003324
3325# Provide some information about the compiler.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003326$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3327set X $ac_compile
3328ac_compiler=$2
3329for ac_option in --version -v -V -qversion; do
3330 { { ac_try="$ac_compiler $ac_option >&5"
openvcdiffd1845782009-03-20 21:56:15 +00003331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
openvcdiff311c7142008-08-26 19:29:25 +00003338 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003339 if test -s conftest.err; then
3340 sed '10a\
3341... rest of stderr output deleted ...
3342 10q' conftest.err >conftest.er1
3343 cat conftest.er1 >&5
3344 fi
3345 rm -f conftest.er1 conftest.err
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }
3348done
openvcdiff311c7142008-08-26 19:29:25 +00003349
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003351/* end confdefs.h. */
3352
3353int
3354main ()
3355{
3356
3357 ;
3358 return 0;
3359}
3360_ACEOF
3361ac_clean_files_save=$ac_clean_files
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003362ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
openvcdiff311c7142008-08-26 19:29:25 +00003363# Try to create an executable without -o first, disregard a.out.
3364# It will help us diagnose broken compilers, and finding out an intuition
3365# of exeext.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3367$as_echo_n "checking whether the C compiler works... " >&6; }
3368ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3369
3370# The possible output files:
3371ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3372
openvcdiffd1845782009-03-20 21:56:15 +00003373ac_rmfiles=
3374for ac_file in $ac_files
3375do
3376 case $ac_file in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
openvcdiffd1845782009-03-20 21:56:15 +00003378 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3379 esac
3380done
3381rm -f $ac_rmfiles
3382
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003383if { { ac_try="$ac_link_default"
openvcdiffd1845782009-03-20 21:56:15 +00003384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
openvcdiffd1845782009-03-20 21:56:15 +00003390 (eval "$ac_link_default") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00003391 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; then :
openvcdiffd1845782009-03-20 21:56:15 +00003394 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3395# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3396# in a Makefile. We should not override ac_cv_exeext if it was cached,
3397# so that the user can short-circuit this test for compilers unknown to
3398# Autoconf.
3399for ac_file in $ac_files ''
openvcdiff311c7142008-08-26 19:29:25 +00003400do
3401 test -f "$ac_file" || continue
3402 case $ac_file in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
openvcdiff311c7142008-08-26 19:29:25 +00003404 ;;
3405 [ab].out )
3406 # We found the default executable, but exeext='' is most
3407 # certainly right.
3408 break;;
3409 *.* )
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003410 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
openvcdiffd1845782009-03-20 21:56:15 +00003411 then :; else
3412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413 fi
3414 # We set ac_cv_exeext here because the later test for it is not
3415 # safe: cross compilers may not add the suffix if given an `-o'
3416 # argument, so we may need to know it at that point already.
3417 # Even if this section looks crufty: it has the advantage of
3418 # actually working.
openvcdiff311c7142008-08-26 19:29:25 +00003419 break;;
3420 * )
3421 break;;
3422 esac
3423done
openvcdiffd1845782009-03-20 21:56:15 +00003424test "$ac_cv_exeext" = no && ac_cv_exeext=
3425
openvcdiff311c7142008-08-26 19:29:25 +00003426else
openvcdiffd1845782009-03-20 21:56:15 +00003427 ac_file=''
3428fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003429if test -z "$ac_file"; then :
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431$as_echo "no" >&6; }
3432$as_echo "$as_me: failed program was:" >&5
openvcdiff311c7142008-08-26 19:29:25 +00003433sed 's/^/| /' conftest.$ac_ext >&5
3434
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003435{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437{ as_fn_set_status 77
3438as_fn_error "C compiler cannot create executables
3439See \`config.log' for more details." "$LINENO" 5; }; }
3440else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442$as_echo "yes" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003443fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3445$as_echo_n "checking for C compiler default output file name... " >&6; }
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3447$as_echo "$ac_file" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003448ac_exeext=$ac_cv_exeext
openvcdiff311c7142008-08-26 19:29:25 +00003449
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003450rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
openvcdiff311c7142008-08-26 19:29:25 +00003451ac_clean_files=$ac_clean_files_save
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3453$as_echo_n "checking for suffix of executables... " >&6; }
3454if { { ac_try="$ac_link"
openvcdiffd1845782009-03-20 21:56:15 +00003455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
openvcdiffd1845782009-03-20 21:56:15 +00003461 (eval "$ac_link") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00003462 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
openvcdiff311c7142008-08-26 19:29:25 +00003465 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3466# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3467# work properly (i.e., refer to `conftest.exe'), while it won't with
3468# `rm'.
3469for ac_file in conftest.exe conftest conftest.*; do
3470 test -f "$ac_file" || continue
3471 case $ac_file in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
openvcdiff311c7142008-08-26 19:29:25 +00003473 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
openvcdiff311c7142008-08-26 19:29:25 +00003474 break;;
3475 * ) break;;
3476 esac
3477done
3478else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481as_fn_error "cannot compute suffix of executables: cannot compile and link
3482See \`config.log' for more details." "$LINENO" 5; }
openvcdiff311c7142008-08-26 19:29:25 +00003483fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003484rm -f conftest conftest$ac_cv_exeext
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3486$as_echo "$ac_cv_exeext" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003487
3488rm -f conftest.$ac_ext
3489EXEEXT=$ac_cv_exeext
3490ac_exeext=$EXEEXT
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h. */
3493#include <stdio.h>
3494int
3495main ()
3496{
3497FILE *f = fopen ("conftest.out", "w");
3498 return ferror (f) || fclose (f) != 0;
3499
3500 ;
3501 return 0;
3502}
openvcdiff311c7142008-08-26 19:29:25 +00003503_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003504ac_clean_files="$ac_clean_files conftest.out"
3505# Check that the compiler produces executables we can run. If not, either
3506# the compiler is broken, or we cross compile.
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3508$as_echo_n "checking whether we are cross compiling... " >&6; }
3509if test "$cross_compiling" != yes; then
3510 { { ac_try="$ac_link"
3511case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514esac
3515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516$as_echo "$ac_try_echo"; } >&5
3517 (eval "$ac_link") 2>&5
3518 ac_status=$?
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }
3521 if { ac_try='./conftest$ac_cv_exeext'
3522 { { case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527$as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_try") 2>&5
3529 ac_status=$?
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; }; then
3532 cross_compiling=no
3533 else
3534 if test "$cross_compiling" = maybe; then
3535 cross_compiling=yes
3536 else
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539as_fn_error "cannot run C compiled programs.
3540If you meant to cross compile, use \`--host'.
3541See \`config.log' for more details." "$LINENO" 5; }
3542 fi
3543 fi
3544fi
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3546$as_echo "$cross_compiling" >&6; }
3547
3548rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3549ac_clean_files=$ac_clean_files_save
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3551$as_echo_n "checking for suffix of object files... " >&6; }
3552if test "${ac_cv_objext+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3554else
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003556/* end confdefs.h. */
3557
3558int
3559main ()
3560{
3561
3562 ;
3563 return 0;
3564}
3565_ACEOF
3566rm -f conftest.o conftest.obj
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003567if { { ac_try="$ac_compile"
openvcdiffd1845782009-03-20 21:56:15 +00003568case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573$as_echo "$ac_try_echo"; } >&5
openvcdiffd1845782009-03-20 21:56:15 +00003574 (eval "$ac_compile") 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00003575 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; then :
openvcdiffd1845782009-03-20 21:56:15 +00003578 for ac_file in conftest.o conftest.obj conftest.*; do
3579 test -f "$ac_file" || continue;
openvcdiff311c7142008-08-26 19:29:25 +00003580 case $ac_file in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
openvcdiff311c7142008-08-26 19:29:25 +00003582 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3583 break;;
3584 esac
3585done
3586else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003587 $as_echo "$as_me: failed program was:" >&5
openvcdiff311c7142008-08-26 19:29:25 +00003588sed 's/^/| /' conftest.$ac_ext >&5
3589
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003590{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592as_fn_error "cannot compute suffix of object files: cannot compile
3593See \`config.log' for more details." "$LINENO" 5; }
openvcdiff311c7142008-08-26 19:29:25 +00003594fi
openvcdiff311c7142008-08-26 19:29:25 +00003595rm -f conftest.$ac_cv_objext conftest.$ac_ext
3596fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3598$as_echo "$ac_cv_objext" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003599OBJEXT=$ac_cv_objext
3600ac_objext=$OBJEXT
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3602$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3603if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00003605else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003607/* end confdefs.h. */
3608
3609int
3610main ()
3611{
3612#ifndef __GNUC__
3613 choke me
3614#endif
3615
3616 ;
3617 return 0;
3618}
3619_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003620if ac_fn_c_try_compile "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +00003621 ac_compiler_gnu=yes
3622else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003623 ac_compiler_gnu=no
openvcdiff311c7142008-08-26 19:29:25 +00003624fi
openvcdiffd1845782009-03-20 21:56:15 +00003625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003626ac_cv_c_compiler_gnu=$ac_compiler_gnu
3627
3628fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3630$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3631if test $ac_compiler_gnu = yes; then
3632 GCC=yes
3633else
3634 GCC=
3635fi
openvcdiff311c7142008-08-26 19:29:25 +00003636ac_test_CFLAGS=${CFLAGS+set}
3637ac_save_CFLAGS=$CFLAGS
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3639$as_echo_n "checking whether $CC accepts -g... " >&6; }
3640if test "${ac_cv_prog_cc_g+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00003642else
openvcdiffd1845782009-03-20 21:56:15 +00003643 ac_save_c_werror_flag=$ac_c_werror_flag
3644 ac_c_werror_flag=yes
3645 ac_cv_prog_cc_g=no
3646 CFLAGS="-g"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003648/* end confdefs.h. */
3649
3650int
3651main ()
3652{
3653
3654 ;
3655 return 0;
3656}
3657_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003658if ac_fn_c_try_compile "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +00003659 ac_cv_prog_cc_g=yes
3660else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003661 CFLAGS=""
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +00003663/* end confdefs.h. */
3664
3665int
3666main ()
3667{
3668
3669 ;
3670 return 0;
3671}
3672_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003673if ac_fn_c_try_compile "$LINENO"; then :
openvcdiffd1845782009-03-20 21:56:15 +00003674
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003675else
3676 ac_c_werror_flag=$ac_save_c_werror_flag
openvcdiffd1845782009-03-20 21:56:15 +00003677 CFLAGS="-g"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +00003679/* end confdefs.h. */
3680
3681int
3682main ()
3683{
3684
3685 ;
3686 return 0;
3687}
3688_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003689if ac_fn_c_try_compile "$LINENO"; then :
openvcdiffd1845782009-03-20 21:56:15 +00003690 ac_cv_prog_cc_g=yes
openvcdiff311c7142008-08-26 19:29:25 +00003691fi
openvcdiffd1845782009-03-20 21:56:15 +00003692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003693fi
openvcdiffd1845782009-03-20 21:56:15 +00003694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695fi
openvcdiffd1845782009-03-20 21:56:15 +00003696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 ac_c_werror_flag=$ac_save_c_werror_flag
3698fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3700$as_echo "$ac_cv_prog_cc_g" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003701if test "$ac_test_CFLAGS" = set; then
3702 CFLAGS=$ac_save_CFLAGS
3703elif test $ac_cv_prog_cc_g = yes; then
3704 if test "$GCC" = yes; then
3705 CFLAGS="-g -O2"
3706 else
3707 CFLAGS="-g"
3708 fi
3709else
3710 if test "$GCC" = yes; then
3711 CFLAGS="-O2"
3712 else
3713 CFLAGS=
3714 fi
3715fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3717$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3718if test "${ac_cv_prog_cc_c89+set}" = set; then :
3719 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00003720else
openvcdiffd1845782009-03-20 21:56:15 +00003721 ac_cv_prog_cc_c89=no
openvcdiff311c7142008-08-26 19:29:25 +00003722ac_save_CC=$CC
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003724/* end confdefs.h. */
3725#include <stdarg.h>
3726#include <stdio.h>
3727#include <sys/types.h>
3728#include <sys/stat.h>
3729/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3730struct buf { int x; };
3731FILE * (*rcsopen) (struct buf *, struct stat *, int);
3732static char *e (p, i)
3733 char **p;
3734 int i;
3735{
3736 return p[i];
3737}
3738static char *f (char * (*g) (char **, int), char **p, ...)
3739{
3740 char *s;
3741 va_list v;
3742 va_start (v,p);
3743 s = g (p, va_arg (v,int));
3744 va_end (v);
3745 return s;
3746}
3747
3748/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3749 function prototypes and stuff, but not '\xHH' hex character constants.
3750 These don't provoke an error unfortunately, instead are silently treated
openvcdiffd1845782009-03-20 21:56:15 +00003751 as 'x'. The following induces an error, until -std is added to get
openvcdiff311c7142008-08-26 19:29:25 +00003752 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3753 array size at least. It's necessary to write '\x00'==0 to get something
openvcdiffd1845782009-03-20 21:56:15 +00003754 that's true only with -std. */
openvcdiff311c7142008-08-26 19:29:25 +00003755int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3756
openvcdiffd1845782009-03-20 21:56:15 +00003757/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3758 inside strings and character constants. */
3759#define FOO(x) 'x'
3760int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3761
openvcdiff311c7142008-08-26 19:29:25 +00003762int test (int i, double x);
3763struct s1 {int (*f) (int a);};
3764struct s2 {int (*f) (double a);};
3765int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766int argc;
3767char **argv;
3768int
3769main ()
3770{
3771return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3772 ;
3773 return 0;
3774}
3775_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +00003776for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3777 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
openvcdiff311c7142008-08-26 19:29:25 +00003778do
3779 CC="$ac_save_CC $ac_arg"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003780 if ac_fn_c_try_compile "$LINENO"; then :
openvcdiffd1845782009-03-20 21:56:15 +00003781 ac_cv_prog_cc_c89=$ac_arg
openvcdiff311c7142008-08-26 19:29:25 +00003782fi
openvcdiffd1845782009-03-20 21:56:15 +00003783rm -f core conftest.err conftest.$ac_objext
3784 test "x$ac_cv_prog_cc_c89" != "xno" && break
openvcdiff311c7142008-08-26 19:29:25 +00003785done
openvcdiffd1845782009-03-20 21:56:15 +00003786rm -f conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00003787CC=$ac_save_CC
3788
3789fi
openvcdiffd1845782009-03-20 21:56:15 +00003790# AC_CACHE_VAL
3791case "x$ac_cv_prog_cc_c89" in
3792 x)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3794$as_echo "none needed" >&6; } ;;
openvcdiffd1845782009-03-20 21:56:15 +00003795 xno)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3797$as_echo "unsupported" >&6; } ;;
openvcdiff311c7142008-08-26 19:29:25 +00003798 *)
openvcdiffd1845782009-03-20 21:56:15 +00003799 CC="$CC $ac_cv_prog_cc_c89"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3801$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
openvcdiff311c7142008-08-26 19:29:25 +00003802esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003803if test "x$ac_cv_prog_cc_c89" != xno; then :
openvcdiff311c7142008-08-26 19:29:25 +00003804
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003805fi
openvcdiff311c7142008-08-26 19:29:25 +00003806
openvcdiff311c7142008-08-26 19:29:25 +00003807ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812DEPDIR="${am__leading_dot}deps"
3813
openvcdiffd1845782009-03-20 21:56:15 +00003814ac_config_commands="$ac_config_commands depfiles"
openvcdiff311c7142008-08-26 19:29:25 +00003815
3816
3817am_make=${MAKE-make}
3818cat > confinc << 'END'
3819am__doit:
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003820 @echo this is the am__doit target
openvcdiff311c7142008-08-26 19:29:25 +00003821.PHONY: am__doit
3822END
3823# If we don't find an include directive, just comment out the code.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3825$as_echo_n "checking for style of include used by $am_make... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003826am__include="#"
3827am__quote=
3828_am_result=none
3829# First try GNU make style include.
3830echo "include confinc" > confmf
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003831# Ignore all kinds of additional output from `make'.
3832case `$am_make -s -f confmf 2> /dev/null` in #(
3833*the\ am__doit\ target*)
3834 am__include=include
3835 am__quote=
3836 _am_result=GNU
3837 ;;
3838esac
openvcdiff311c7142008-08-26 19:29:25 +00003839# Now try BSD make style include.
3840if test "$am__include" = "#"; then
3841 echo '.include "confinc"' > confmf
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003842 case `$am_make -s -f confmf 2> /dev/null` in #(
3843 *the\ am__doit\ target*)
3844 am__include=.include
3845 am__quote="\""
3846 _am_result=BSD
3847 ;;
3848 esac
openvcdiff311c7142008-08-26 19:29:25 +00003849fi
3850
3851
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3853$as_echo "$_am_result" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003854rm -f confinc confmf
3855
openvcdiffd1845782009-03-20 21:56:15 +00003856# Check whether --enable-dependency-tracking was given.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003857if test "${enable_dependency_tracking+set}" = set; then :
openvcdiffd1845782009-03-20 21:56:15 +00003858 enableval=$enable_dependency_tracking;
3859fi
openvcdiff311c7142008-08-26 19:29:25 +00003860
openvcdiff311c7142008-08-26 19:29:25 +00003861if test "x$enable_dependency_tracking" != xno; then
3862 am_depcomp="$ac_aux_dir/depcomp"
3863 AMDEPBACKSLASH='\'
3864fi
openvcdiffd1845782009-03-20 21:56:15 +00003865 if test "x$enable_dependency_tracking" != xno; then
openvcdiff311c7142008-08-26 19:29:25 +00003866 AMDEP_TRUE=
3867 AMDEP_FALSE='#'
3868else
3869 AMDEP_TRUE='#'
3870 AMDEP_FALSE=
3871fi
3872
3873
3874
openvcdiff311c7142008-08-26 19:29:25 +00003875depcc="$CC" am_compiler_list=
3876
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3878$as_echo_n "checking dependency style of $depcc... " >&6; }
3879if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00003881else
3882 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3883 # We make a subdir and do the tests there. Otherwise we can end up
3884 # making bogus files that we don't know about and never remove. For
3885 # instance it was reported that on HP-UX the gcc test will end up
3886 # making a dummy file named `D' -- because `-MD' means `put the output
3887 # in D'.
3888 mkdir conftest.dir
3889 # Copy depcomp to subdir because otherwise we won't find it if we're
3890 # using a relative directory.
3891 cp "$am_depcomp" conftest.dir
3892 cd conftest.dir
3893 # We will build objects and dependencies in a subdirectory because
3894 # it helps to detect inapplicable dependency modes. For instance
3895 # both Tru64's cc and ICC support -MD to output dependencies as a
3896 # side effect of compilation, but ICC will put the dependencies in
3897 # the current directory while Tru64 will put them in the object
3898 # directory.
3899 mkdir sub
3900
3901 am_cv_CC_dependencies_compiler_type=none
3902 if test "$am_compiler_list" = ""; then
3903 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3904 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003905 am__universal=false
3906 case " $depcc " in #(
3907 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3908 esac
3909
openvcdiff311c7142008-08-26 19:29:25 +00003910 for depmode in $am_compiler_list; do
3911 # Setup a source with many dependencies, because some compilers
3912 # like to wrap large dependency lists on column 80 (with \), and
3913 # we should not choose a depcomp mode which is confused by this.
3914 #
3915 # We need to recreate these files for each test, as the compiler may
3916 # overwrite some of them when testing with obscure command lines.
3917 # This happens at least with the AIX C compiler.
3918 : > sub/conftest.c
3919 for i in 1 2 3 4 5 6; do
3920 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3921 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3922 # Solaris 8's {/usr,}/bin/sh.
3923 touch sub/conftst$i.h
3924 done
3925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3926
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003927 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3928 # mode. It turns out that the SunPro C++ compiler does not properly
3929 # handle `-M -o', and we need to detect this. Also, some Intel
3930 # versions had trouble with output in subdirs
3931 am__obj=sub/conftest.${OBJEXT-o}
3932 am__minus_obj="-o $am__obj"
openvcdiff311c7142008-08-26 19:29:25 +00003933 case $depmode in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003934 gcc)
3935 # This depmode causes a compiler race in universal mode.
3936 test "$am__universal" = false || continue
3937 ;;
openvcdiff311c7142008-08-26 19:29:25 +00003938 nosideeffect)
3939 # after this tag, mechanisms are not by side-effect, so they'll
3940 # only be used when explicitly requested
3941 if test "x$enable_dependency_tracking" = xyes; then
3942 continue
3943 else
3944 break
3945 fi
3946 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003947 msvisualcpp | msvcmsys)
3948 # This compiler won't grok `-c -o', but also, the minuso test has
3949 # not run yet. These depmodes are late enough in the game, and
3950 # so weak that their functioning should not be impacted.
3951 am__obj=conftest.${OBJEXT-o}
3952 am__minus_obj=
3953 ;;
openvcdiff311c7142008-08-26 19:29:25 +00003954 none) break ;;
3955 esac
openvcdiff311c7142008-08-26 19:29:25 +00003956 if depmode=$depmode \
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003957 source=sub/conftest.c object=$am__obj \
openvcdiff311c7142008-08-26 19:29:25 +00003958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003959 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
openvcdiff311c7142008-08-26 19:29:25 +00003960 >/dev/null 2>conftest.err &&
openvcdiffd1845782009-03-20 21:56:15 +00003961 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
openvcdiff311c7142008-08-26 19:29:25 +00003962 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003963 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
openvcdiff311c7142008-08-26 19:29:25 +00003964 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3965 # icc doesn't choke on unknown options, it will just issue warnings
3966 # or remarks (even with -Werror). So we grep stderr for any message
3967 # that says an option was ignored or not supported.
3968 # When given -MP, icc 7.0 and 7.1 complain thusly:
3969 # icc: Command line warning: ignoring option '-M'; no argument required
3970 # The diagnosis changed in icc 8.0:
3971 # icc: Command line remark: option '-MP' not supported
3972 if (grep 'ignoring option' conftest.err ||
3973 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3974 am_cv_CC_dependencies_compiler_type=$depmode
3975 break
3976 fi
3977 fi
3978 done
3979
3980 cd ..
3981 rm -rf conftest.dir
3982else
3983 am_cv_CC_dependencies_compiler_type=none
3984fi
3985
3986fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00003987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3988$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00003989CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3990
openvcdiffd1845782009-03-20 21:56:15 +00003991 if
openvcdiff311c7142008-08-26 19:29:25 +00003992 test "x$enable_dependency_tracking" != xno \
3993 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3994 am__fastdepCC_TRUE=
3995 am__fastdepCC_FALSE='#'
3996else
3997 am__fastdepCC_TRUE='#'
3998 am__fastdepCC_FALSE=
3999fi
4000
4001
4002ac_ext=c
4003ac_cpp='$CPP $CPPFLAGS'
4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006ac_compiler_gnu=$ac_cv_c_compiler_gnu
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4008$as_echo_n "checking how to run the C preprocessor... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004009# On Suns, sometimes $CPP names a directory.
4010if test -n "$CPP" && test -d "$CPP"; then
4011 CPP=
4012fi
4013if test -z "$CPP"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004014 if test "${ac_cv_prog_CPP+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00004016else
4017 # Double quotes because CPP needs to be expanded
4018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4019 do
4020 ac_preproc_ok=false
4021for ac_c_preproc_warn_flag in '' yes
4022do
4023 # Use a header file that comes with gcc, so configuring glibc
4024 # with a fresh cross-compiler works.
4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026 # <limits.h> exists even on freestanding compilers.
4027 # On the NeXT, cc -E runs the code through the compiler's parser,
4028 # not just through cpp. "Syntax error" is here to catch this case.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00004030/* end confdefs.h. */
4031#ifdef __STDC__
4032# include <limits.h>
4033#else
4034# include <assert.h>
4035#endif
4036 Syntax error
4037_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004038if ac_fn_c_try_cpp "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +00004039
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004040else
openvcdiff311c7142008-08-26 19:29:25 +00004041 # Broken: fails on valid input.
4042continue
4043fi
4044rm -f conftest.err conftest.$ac_ext
4045
openvcdiffd1845782009-03-20 21:56:15 +00004046 # OK, works on sane cases. Now check whether nonexistent headers
openvcdiff311c7142008-08-26 19:29:25 +00004047 # can be detected and how.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00004049/* end confdefs.h. */
4050#include <ac_nonexistent.h>
4051_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004052if ac_fn_c_try_cpp "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +00004053 # Broken: success on invalid input.
4054continue
4055else
openvcdiff311c7142008-08-26 19:29:25 +00004056 # Passes both tests.
4057ac_preproc_ok=:
4058break
4059fi
4060rm -f conftest.err conftest.$ac_ext
4061
4062done
4063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064rm -f conftest.err conftest.$ac_ext
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004065if $ac_preproc_ok; then :
openvcdiff311c7142008-08-26 19:29:25 +00004066 break
4067fi
4068
4069 done
4070 ac_cv_prog_CPP=$CPP
4071
4072fi
4073 CPP=$ac_cv_prog_CPP
4074else
4075 ac_cv_prog_CPP=$CPP
4076fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4078$as_echo "$CPP" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004079ac_preproc_ok=false
4080for ac_c_preproc_warn_flag in '' yes
4081do
4082 # Use a header file that comes with gcc, so configuring glibc
4083 # with a fresh cross-compiler works.
4084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085 # <limits.h> exists even on freestanding compilers.
4086 # On the NeXT, cc -E runs the code through the compiler's parser,
4087 # not just through cpp. "Syntax error" is here to catch this case.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00004089/* end confdefs.h. */
4090#ifdef __STDC__
4091# include <limits.h>
4092#else
4093# include <assert.h>
4094#endif
4095 Syntax error
4096_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004097if ac_fn_c_try_cpp "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +00004098
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004099else
openvcdiff311c7142008-08-26 19:29:25 +00004100 # Broken: fails on valid input.
4101continue
4102fi
4103rm -f conftest.err conftest.$ac_ext
4104
openvcdiffd1845782009-03-20 21:56:15 +00004105 # OK, works on sane cases. Now check whether nonexistent headers
openvcdiff311c7142008-08-26 19:29:25 +00004106 # can be detected and how.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00004108/* end confdefs.h. */
4109#include <ac_nonexistent.h>
4110_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004111if ac_fn_c_try_cpp "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +00004112 # Broken: success on invalid input.
4113continue
4114else
openvcdiff311c7142008-08-26 19:29:25 +00004115 # Passes both tests.
4116ac_preproc_ok=:
4117break
4118fi
4119rm -f conftest.err conftest.$ac_ext
4120
4121done
4122# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123rm -f conftest.err conftest.$ac_ext
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004124if $ac_preproc_ok; then :
4125
openvcdiff311c7142008-08-26 19:29:25 +00004126else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129as_fn_error "C preprocessor \"$CPP\" fails sanity check
4130See \`config.log' for more details." "$LINENO" 5; }
openvcdiff311c7142008-08-26 19:29:25 +00004131fi
4132
4133ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
openvcdiffd1845782009-03-20 21:56:15 +00004139ac_ext=cpp
openvcdiff311c7142008-08-26 19:29:25 +00004140ac_cpp='$CXXCPP $CPPFLAGS'
4141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
openvcdiffd1845782009-03-20 21:56:15 +00004144if test -z "$CXX"; then
4145 if test -n "$CCC"; then
4146 CXX=$CCC
4147 else
4148 if test -n "$ac_tool_prefix"; then
4149 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 +00004150 do
4151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4152set dummy $ac_tool_prefix$ac_prog; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154$as_echo_n "checking for $ac_word... " >&6; }
4155if test "${ac_cv_prog_CXX+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00004157else
4158 if test -n "$CXX"; then
4159 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004166 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00004167 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 +00004168 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00004170 break 2
4171 fi
4172done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004173 done
openvcdiffd1845782009-03-20 21:56:15 +00004174IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00004175
4176fi
4177fi
4178CXX=$ac_cv_prog_CXX
4179if test -n "$CXX"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4181$as_echo "$CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004182else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004185fi
4186
openvcdiffd1845782009-03-20 21:56:15 +00004187
openvcdiff311c7142008-08-26 19:29:25 +00004188 test -n "$CXX" && break
4189 done
4190fi
4191if test -z "$CXX"; then
4192 ac_ct_CXX=$CXX
openvcdiffd1845782009-03-20 21:56:15 +00004193 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 +00004194do
4195 # Extract the first word of "$ac_prog", so it can be a program name with args.
4196set dummy $ac_prog; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198$as_echo_n "checking for $ac_word... " >&6; }
4199if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00004201else
4202 if test -n "$ac_ct_CXX"; then
4203 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4204else
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004210 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00004211 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 +00004212 ac_cv_prog_ac_ct_CXX="$ac_prog"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00004214 break 2
4215 fi
4216done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004217 done
openvcdiffd1845782009-03-20 21:56:15 +00004218IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00004219
4220fi
4221fi
4222ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4223if test -n "$ac_ct_CXX"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4225$as_echo "$ac_ct_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004226else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004229fi
4230
openvcdiffd1845782009-03-20 21:56:15 +00004231
openvcdiff311c7142008-08-26 19:29:25 +00004232 test -n "$ac_ct_CXX" && break
4233done
openvcdiff311c7142008-08-26 19:29:25 +00004234
openvcdiffd1845782009-03-20 21:56:15 +00004235 if test "x$ac_ct_CXX" = x; then
4236 CXX="g++"
4237 else
4238 case $cross_compiling:$ac_tool_warned in
4239yes:)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +00004242ac_tool_warned=yes ;;
4243esac
4244 CXX=$ac_ct_CXX
4245 fi
openvcdiff311c7142008-08-26 19:29:25 +00004246fi
4247
openvcdiffd1845782009-03-20 21:56:15 +00004248 fi
4249fi
openvcdiff311c7142008-08-26 19:29:25 +00004250# Provide some information about the compiler.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004251$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4252set X $ac_compile
4253ac_compiler=$2
4254for ac_option in --version -v -V -qversion; do
4255 { { ac_try="$ac_compiler $ac_option >&5"
openvcdiffd1845782009-03-20 21:56:15 +00004256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261$as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
openvcdiff311c7142008-08-26 19:29:25 +00004263 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004264 if test -s conftest.err; then
4265 sed '10a\
4266... rest of stderr output deleted ...
4267 10q' conftest.err >conftest.er1
4268 cat conftest.er1 >&5
4269 fi
4270 rm -f conftest.er1 conftest.err
4271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4272 test $ac_status = 0; }
4273done
openvcdiff311c7142008-08-26 19:29:25 +00004274
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4276$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4277if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00004279else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00004281/* end confdefs.h. */
4282
4283int
4284main ()
4285{
4286#ifndef __GNUC__
4287 choke me
4288#endif
4289
4290 ;
4291 return 0;
4292}
4293_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004294if ac_fn_cxx_try_compile "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +00004295 ac_compiler_gnu=yes
4296else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004297 ac_compiler_gnu=no
openvcdiff311c7142008-08-26 19:29:25 +00004298fi
openvcdiffd1845782009-03-20 21:56:15 +00004299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00004300ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4301
4302fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4304$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4305if test $ac_compiler_gnu = yes; then
4306 GXX=yes
4307else
4308 GXX=
4309fi
openvcdiff311c7142008-08-26 19:29:25 +00004310ac_test_CXXFLAGS=${CXXFLAGS+set}
4311ac_save_CXXFLAGS=$CXXFLAGS
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4313$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4314if test "${ac_cv_prog_cxx_g+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00004316else
openvcdiffd1845782009-03-20 21:56:15 +00004317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4318 ac_cxx_werror_flag=yes
4319 ac_cv_prog_cxx_g=no
4320 CXXFLAGS="-g"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00004322/* end confdefs.h. */
4323
4324int
4325main ()
4326{
4327
4328 ;
4329 return 0;
4330}
4331_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004332if ac_fn_cxx_try_compile "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +00004333 ac_cv_prog_cxx_g=yes
4334else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004335 CXXFLAGS=""
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +00004337/* end confdefs.h. */
4338
4339int
4340main ()
4341{
4342
4343 ;
4344 return 0;
4345}
4346_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004347if ac_fn_cxx_try_compile "$LINENO"; then :
openvcdiffd1845782009-03-20 21:56:15 +00004348
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004349else
4350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
openvcdiffd1845782009-03-20 21:56:15 +00004351 CXXFLAGS="-g"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +00004353/* end confdefs.h. */
4354
4355int
4356main ()
4357{
4358
4359 ;
4360 return 0;
4361}
4362_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004363if ac_fn_cxx_try_compile "$LINENO"; then :
openvcdiffd1845782009-03-20 21:56:15 +00004364 ac_cv_prog_cxx_g=yes
openvcdiff311c7142008-08-26 19:29:25 +00004365fi
openvcdiffd1845782009-03-20 21:56:15 +00004366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00004367fi
openvcdiffd1845782009-03-20 21:56:15 +00004368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369fi
openvcdiffd1845782009-03-20 21:56:15 +00004370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4372fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4374$as_echo "$ac_cv_prog_cxx_g" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004375if test "$ac_test_CXXFLAGS" = set; then
4376 CXXFLAGS=$ac_save_CXXFLAGS
4377elif test $ac_cv_prog_cxx_g = yes; then
4378 if test "$GXX" = yes; then
4379 CXXFLAGS="-g -O2"
4380 else
4381 CXXFLAGS="-g"
4382 fi
4383else
4384 if test "$GXX" = yes; then
4385 CXXFLAGS="-O2"
4386 else
4387 CXXFLAGS=
4388 fi
4389fi
openvcdiff311c7142008-08-26 19:29:25 +00004390ac_ext=c
4391ac_cpp='$CPP $CPPFLAGS'
4392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395
4396depcc="$CXX" am_compiler_list=
4397
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4399$as_echo_n "checking dependency style of $depcc... " >&6; }
4400if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00004402else
4403 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4404 # We make a subdir and do the tests there. Otherwise we can end up
4405 # making bogus files that we don't know about and never remove. For
4406 # instance it was reported that on HP-UX the gcc test will end up
4407 # making a dummy file named `D' -- because `-MD' means `put the output
4408 # in D'.
4409 mkdir conftest.dir
4410 # Copy depcomp to subdir because otherwise we won't find it if we're
4411 # using a relative directory.
4412 cp "$am_depcomp" conftest.dir
4413 cd conftest.dir
4414 # We will build objects and dependencies in a subdirectory because
4415 # it helps to detect inapplicable dependency modes. For instance
4416 # both Tru64's cc and ICC support -MD to output dependencies as a
4417 # side effect of compilation, but ICC will put the dependencies in
4418 # the current directory while Tru64 will put them in the object
4419 # directory.
4420 mkdir sub
4421
4422 am_cv_CXX_dependencies_compiler_type=none
4423 if test "$am_compiler_list" = ""; then
4424 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4425 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004426 am__universal=false
4427 case " $depcc " in #(
4428 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4429 esac
4430
openvcdiff311c7142008-08-26 19:29:25 +00004431 for depmode in $am_compiler_list; do
4432 # Setup a source with many dependencies, because some compilers
4433 # like to wrap large dependency lists on column 80 (with \), and
4434 # we should not choose a depcomp mode which is confused by this.
4435 #
4436 # We need to recreate these files for each test, as the compiler may
4437 # overwrite some of them when testing with obscure command lines.
4438 # This happens at least with the AIX C compiler.
4439 : > sub/conftest.c
4440 for i in 1 2 3 4 5 6; do
4441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4443 # Solaris 8's {/usr,}/bin/sh.
4444 touch sub/conftst$i.h
4445 done
4446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4447
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004448 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4449 # mode. It turns out that the SunPro C++ compiler does not properly
4450 # handle `-M -o', and we need to detect this. Also, some Intel
4451 # versions had trouble with output in subdirs
4452 am__obj=sub/conftest.${OBJEXT-o}
4453 am__minus_obj="-o $am__obj"
openvcdiff311c7142008-08-26 19:29:25 +00004454 case $depmode in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004455 gcc)
4456 # This depmode causes a compiler race in universal mode.
4457 test "$am__universal" = false || continue
4458 ;;
openvcdiff311c7142008-08-26 19:29:25 +00004459 nosideeffect)
4460 # after this tag, mechanisms are not by side-effect, so they'll
4461 # only be used when explicitly requested
4462 if test "x$enable_dependency_tracking" = xyes; then
4463 continue
4464 else
4465 break
4466 fi
4467 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004468 msvisualcpp | msvcmsys)
4469 # This compiler won't grok `-c -o', but also, the minuso test has
4470 # not run yet. These depmodes are late enough in the game, and
4471 # so weak that their functioning should not be impacted.
4472 am__obj=conftest.${OBJEXT-o}
4473 am__minus_obj=
4474 ;;
openvcdiff311c7142008-08-26 19:29:25 +00004475 none) break ;;
4476 esac
openvcdiff311c7142008-08-26 19:29:25 +00004477 if depmode=$depmode \
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004478 source=sub/conftest.c object=$am__obj \
openvcdiff311c7142008-08-26 19:29:25 +00004479 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004480 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
openvcdiff311c7142008-08-26 19:29:25 +00004481 >/dev/null 2>conftest.err &&
openvcdiffd1845782009-03-20 21:56:15 +00004482 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
openvcdiff311c7142008-08-26 19:29:25 +00004483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004484 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
openvcdiff311c7142008-08-26 19:29:25 +00004485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4486 # icc doesn't choke on unknown options, it will just issue warnings
4487 # or remarks (even with -Werror). So we grep stderr for any message
4488 # that says an option was ignored or not supported.
4489 # When given -MP, icc 7.0 and 7.1 complain thusly:
4490 # icc: Command line warning: ignoring option '-M'; no argument required
4491 # The diagnosis changed in icc 8.0:
4492 # icc: Command line remark: option '-MP' not supported
4493 if (grep 'ignoring option' conftest.err ||
4494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4495 am_cv_CXX_dependencies_compiler_type=$depmode
4496 break
4497 fi
4498 fi
4499 done
4500
4501 cd ..
4502 rm -rf conftest.dir
4503else
4504 am_cv_CXX_dependencies_compiler_type=none
4505fi
4506
4507fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4509$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004510CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4511
openvcdiffd1845782009-03-20 21:56:15 +00004512 if
openvcdiff311c7142008-08-26 19:29:25 +00004513 test "x$enable_dependency_tracking" != xno \
4514 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4515 am__fastdepCXX_TRUE=
4516 am__fastdepCXX_FALSE='#'
4517else
4518 am__fastdepCXX_TRUE='#'
4519 am__fastdepCXX_FALSE=
4520fi
4521
4522
openvcdiffd1845782009-03-20 21:56:15 +00004523 if test "$GCC" = yes; then
openvcdiff311c7142008-08-26 19:29:25 +00004524 GCC_TRUE=
4525 GCC_FALSE='#'
4526else
4527 GCC_TRUE='#'
4528 GCC_FALSE=
4529fi
4530 # let the Makefile know if we're gcc
4531# Make sure we can run config.sub.
openvcdiffd1845782009-03-20 21:56:15 +00004532$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004533 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +00004534
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4536$as_echo_n "checking build system type... " >&6; }
4537if test "${ac_cv_build+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00004539else
openvcdiffd1845782009-03-20 21:56:15 +00004540 ac_build_alias=$build_alias
4541test "x$ac_build_alias" = x &&
4542 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4543test "x$ac_build_alias" = x &&
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004544 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
openvcdiffd1845782009-03-20 21:56:15 +00004545ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004546 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +00004547
4548fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4550$as_echo "$ac_cv_build" >&6; }
openvcdiffd1845782009-03-20 21:56:15 +00004551case $ac_cv_build in
4552*-*-*) ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004553*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
openvcdiffd1845782009-03-20 21:56:15 +00004554esac
openvcdiff311c7142008-08-26 19:29:25 +00004555build=$ac_cv_build
openvcdiffd1845782009-03-20 21:56:15 +00004556ac_save_IFS=$IFS; IFS='-'
4557set x $ac_cv_build
4558shift
4559build_cpu=$1
4560build_vendor=$2
4561shift; shift
4562# Remember, the first character of IFS is used to create $*,
4563# except with old shells:
4564build_os=$*
4565IFS=$ac_save_IFS
4566case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
openvcdiff311c7142008-08-26 19:29:25 +00004567
4568
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4570$as_echo_n "checking host system type... " >&6; }
4571if test "${ac_cv_host+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00004573else
openvcdiffd1845782009-03-20 21:56:15 +00004574 if test "x$host_alias" = x; then
4575 ac_cv_host=$ac_cv_build
4576else
4577 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004578 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
openvcdiffd1845782009-03-20 21:56:15 +00004579fi
openvcdiff311c7142008-08-26 19:29:25 +00004580
4581fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4583$as_echo "$ac_cv_host" >&6; }
openvcdiffd1845782009-03-20 21:56:15 +00004584case $ac_cv_host in
4585*-*-*) ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004586*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
openvcdiffd1845782009-03-20 21:56:15 +00004587esac
openvcdiff311c7142008-08-26 19:29:25 +00004588host=$ac_cv_host
openvcdiffd1845782009-03-20 21:56:15 +00004589ac_save_IFS=$IFS; IFS='-'
4590set x $ac_cv_host
4591shift
4592host_cpu=$1
4593host_vendor=$2
4594shift; shift
4595# Remember, the first character of IFS is used to create $*,
4596# except with old shells:
4597host_os=$*
4598IFS=$ac_save_IFS
4599case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
openvcdiff311c7142008-08-26 19:29:25 +00004600
4601
4602
openvcdiffbaf44ea2009-04-09 19:20:49 +00004603# Issue #21: Fail to test on MinGW 5.1.4
4604# Disabling fast install keeps libtool from creating wrapper scripts around
4605# the executables it builds. Such scripts have caused failures on MinGW.
4606# Using this option means an extra link step is executed during "make install".
4607# Check whether --enable-fast-install was given.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004608if test "${enable_fast_install+set}" = set; then :
openvcdiffbaf44ea2009-04-09 19:20:49 +00004609 enableval=$enable_fast_install; p=${PACKAGE-default}
4610 case $enableval in
4611 yes) enable_fast_install=yes ;;
4612 no) enable_fast_install=no ;;
4613 *)
4614 enable_fast_install=no
4615 # Look at the argument we got. We use all the common list separators.
4616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4617 for pkg in $enableval; do
4618 IFS="$lt_save_ifs"
4619 if test "X$pkg" = "X$p"; then
4620 enable_fast_install=yes
4621 fi
4622 done
4623 IFS="$lt_save_ifs"
4624 ;;
4625 esac
4626else
4627 enable_fast_install=no
4628fi
4629
4630
4631
4632
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004633
4634
4635
4636
4637
4638
4639case `pwd` in
4640 *\ * | *\ *)
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4642$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4643esac
4644
4645
4646
4647macro_version='2.2.6b'
4648macro_revision='1.3017'
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662ltmain="$ac_aux_dir/ltmain.sh"
4663
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4665$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4666if test "${ac_cv_path_SED+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00004668else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4670 for ac_i in 1 2 3 4 5 6 7; do
4671 ac_script="$ac_script$as_nl$ac_script"
4672 done
4673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4674 { ac_script=; unset ac_script;}
4675 if test -z "$SED"; then
4676 ac_path_SED_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
openvcdiff311c7142008-08-26 19:29:25 +00004679for as_dir in $PATH
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004683 for ac_prog in sed gsed; do
openvcdiff311c7142008-08-26 19:29:25 +00004684 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4686 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4687# Check for GNU ac_path_SED and select it if it is found.
4688 # Check for GNU $ac_path_SED
4689case `"$ac_path_SED" --version 2>&1` in
4690*GNU*)
4691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4692*)
4693 ac_count=0
4694 $as_echo_n 0123456789 >"conftest.in"
4695 while :
4696 do
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo '' >> "conftest.nl"
4701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_SED_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_SED="$ac_path_SED"
4707 ac_path_SED_max=$ac_count
4708 fi
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4711 done
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713esac
4714
4715 $ac_path_SED_found && break 3
openvcdiff311c7142008-08-26 19:29:25 +00004716 done
4717 done
openvcdiff311c7142008-08-26 19:29:25 +00004718 done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004719IFS=$as_save_IFS
4720 if test -z "$ac_cv_path_SED"; then
4721 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4722 fi
4723else
4724 ac_cv_path_SED=$SED
openvcdiff311c7142008-08-26 19:29:25 +00004725fi
4726
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004727fi
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4729$as_echo "$ac_cv_path_SED" >&6; }
4730 SED="$ac_cv_path_SED"
4731 rm -f conftest.sed
openvcdiff311c7142008-08-26 19:29:25 +00004732
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004733test -z "$SED" && SED=sed
4734Xsed="$SED -e 1s/^X//"
openvcdiffd1845782009-03-20 21:56:15 +00004735
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4747$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4748if test "${ac_cv_path_GREP+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00004750else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004751 if test -z "$GREP"; then
openvcdiffd1845782009-03-20 21:56:15 +00004752 ac_path_GREP_found=false
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004753 # Loop through the user's path and test for each of PROGNAME-LIST
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
openvcdiffd1845782009-03-20 21:56:15 +00004755for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004759 for ac_prog in grep ggrep; do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4762 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4763# Check for GNU ac_path_GREP and select it if it is found.
openvcdiffd1845782009-03-20 21:56:15 +00004764 # Check for GNU $ac_path_GREP
4765case `"$ac_path_GREP" --version 2>&1` in
4766*GNU*)
4767 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4768*)
4769 ac_count=0
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004770 $as_echo_n 0123456789 >"conftest.in"
openvcdiffd1845782009-03-20 21:56:15 +00004771 while :
4772 do
4773 cat "conftest.in" "conftest.in" >"conftest.tmp"
4774 mv "conftest.tmp" "conftest.in"
4775 cp "conftest.in" "conftest.nl"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004776 $as_echo 'GREP' >> "conftest.nl"
openvcdiffd1845782009-03-20 21:56:15 +00004777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004779 as_fn_arith $ac_count + 1 && ac_count=$as_val
openvcdiffd1845782009-03-20 21:56:15 +00004780 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4781 # Best one so far, save it but keep looking for a better one
4782 ac_cv_path_GREP="$ac_path_GREP"
4783 ac_path_GREP_max=$ac_count
openvcdiff311c7142008-08-26 19:29:25 +00004784 fi
openvcdiffd1845782009-03-20 21:56:15 +00004785 # 10*(2^10) chars as input seems more than enough
4786 test $ac_count -gt 10 && break
4787 done
4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789esac
4790
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004791 $ac_path_GREP_found && break 3
4792 done
openvcdiffd1845782009-03-20 21:56:15 +00004793 done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004794 done
openvcdiffd1845782009-03-20 21:56:15 +00004795IFS=$as_save_IFS
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004796 if test -z "$ac_cv_path_GREP"; then
4797 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798 fi
openvcdiffd1845782009-03-20 21:56:15 +00004799else
4800 ac_cv_path_GREP=$GREP
4801fi
4802
openvcdiffd1845782009-03-20 21:56:15 +00004803fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4805$as_echo "$ac_cv_path_GREP" >&6; }
openvcdiffd1845782009-03-20 21:56:15 +00004806 GREP="$ac_cv_path_GREP"
4807
4808
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4810$as_echo_n "checking for egrep... " >&6; }
4811if test "${ac_cv_path_EGREP+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
openvcdiffd1845782009-03-20 21:56:15 +00004813else
4814 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4815 then ac_cv_path_EGREP="$GREP -E"
4816 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004817 if test -z "$EGREP"; then
openvcdiffd1845782009-03-20 21:56:15 +00004818 ac_path_EGREP_found=false
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
openvcdiffd1845782009-03-20 21:56:15 +00004821for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004825 for ac_prog in egrep; do
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4828 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4829# Check for GNU ac_path_EGREP and select it if it is found.
openvcdiffd1845782009-03-20 21:56:15 +00004830 # Check for GNU $ac_path_EGREP
4831case `"$ac_path_EGREP" --version 2>&1` in
4832*GNU*)
4833 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4834*)
4835 ac_count=0
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004836 $as_echo_n 0123456789 >"conftest.in"
openvcdiffd1845782009-03-20 21:56:15 +00004837 while :
4838 do
4839 cat "conftest.in" "conftest.in" >"conftest.tmp"
4840 mv "conftest.tmp" "conftest.in"
4841 cp "conftest.in" "conftest.nl"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004842 $as_echo 'EGREP' >> "conftest.nl"
openvcdiffd1845782009-03-20 21:56:15 +00004843 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004845 as_fn_arith $ac_count + 1 && ac_count=$as_val
openvcdiffd1845782009-03-20 21:56:15 +00004846 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4847 # Best one so far, save it but keep looking for a better one
4848 ac_cv_path_EGREP="$ac_path_EGREP"
4849 ac_path_EGREP_max=$ac_count
4850 fi
4851 # 10*(2^10) chars as input seems more than enough
4852 test $ac_count -gt 10 && break
4853 done
4854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4855esac
4856
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004857 $ac_path_EGREP_found && break 3
4858 done
openvcdiffd1845782009-03-20 21:56:15 +00004859 done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004860 done
openvcdiffd1845782009-03-20 21:56:15 +00004861IFS=$as_save_IFS
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004862 if test -z "$ac_cv_path_EGREP"; then
4863 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4864 fi
openvcdiffd1845782009-03-20 21:56:15 +00004865else
4866 ac_cv_path_EGREP=$EGREP
4867fi
4868
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004869 fi
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4872$as_echo "$ac_cv_path_EGREP" >&6; }
4873 EGREP="$ac_cv_path_EGREP"
4874
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4877$as_echo_n "checking for fgrep... " >&6; }
4878if test "${ac_cv_path_FGREP+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880else
4881 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4882 then ac_cv_path_FGREP="$GREP -F"
4883 else
4884 if test -z "$FGREP"; then
4885 ac_path_FGREP_found=false
4886 # Loop through the user's path and test for each of PROGNAME-LIST
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4889do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_prog in fgrep; do
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4895 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4896# Check for GNU ac_path_FGREP and select it if it is found.
4897 # Check for GNU $ac_path_FGREP
4898case `"$ac_path_FGREP" --version 2>&1` in
4899*GNU*)
4900 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4901*)
4902 ac_count=0
4903 $as_echo_n 0123456789 >"conftest.in"
4904 while :
4905 do
4906 cat "conftest.in" "conftest.in" >"conftest.tmp"
4907 mv "conftest.tmp" "conftest.in"
4908 cp "conftest.in" "conftest.nl"
4909 $as_echo 'FGREP' >> "conftest.nl"
4910 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4912 as_fn_arith $ac_count + 1 && ac_count=$as_val
4913 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4914 # Best one so far, save it but keep looking for a better one
4915 ac_cv_path_FGREP="$ac_path_FGREP"
4916 ac_path_FGREP_max=$ac_count
4917 fi
4918 # 10*(2^10) chars as input seems more than enough
4919 test $ac_count -gt 10 && break
4920 done
4921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4922esac
4923
4924 $ac_path_FGREP_found && break 3
4925 done
4926 done
4927 done
4928IFS=$as_save_IFS
4929 if test -z "$ac_cv_path_FGREP"; then
4930 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4931 fi
4932else
4933 ac_cv_path_FGREP=$FGREP
4934fi
openvcdiffd1845782009-03-20 21:56:15 +00004935
4936 fi
4937fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4939$as_echo "$ac_cv_path_FGREP" >&6; }
4940 FGREP="$ac_cv_path_FGREP"
4941
4942
4943test -z "$GREP" && GREP=grep
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
openvcdiff311c7142008-08-26 19:29:25 +00004960
4961
4962
openvcdiffd1845782009-03-20 21:56:15 +00004963# Check whether --with-gnu-ld was given.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004964if test "${with_gnu_ld+set}" = set; then :
openvcdiffd1845782009-03-20 21:56:15 +00004965 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
openvcdiff311c7142008-08-26 19:29:25 +00004966else
4967 with_gnu_ld=no
openvcdiffd1845782009-03-20 21:56:15 +00004968fi
4969
openvcdiff311c7142008-08-26 19:29:25 +00004970ac_prog=ld
4971if test "$GCC" = yes; then
4972 # Check if gcc -print-prog-name=ld gives a path.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4974$as_echo_n "checking for ld used by $CC... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00004975 case $host in
4976 *-*-mingw*)
4977 # gcc leaves a trailing carriage return which upsets mingw
4978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4979 *)
4980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4981 esac
4982 case $ac_prog in
4983 # Accept absolute paths.
4984 [\\/]* | ?:[\\/]*)
4985 re_direlt='/[^/][^/]*/\.\./'
4986 # Canonicalize the pathname of ld
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00004987 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4988 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4989 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
openvcdiff311c7142008-08-26 19:29:25 +00004990 done
4991 test -z "$LD" && LD="$ac_prog"
4992 ;;
4993 "")
4994 # If it fails, then pretend we aren't using GCC.
4995 ac_prog=ld
4996 ;;
4997 *)
4998 # If it is relative, then search for the first ld in PATH.
4999 with_gnu_ld=unknown
5000 ;;
5001 esac
5002elif test "$with_gnu_ld" = yes; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5004$as_echo_n "checking for GNU ld... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005005else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5007$as_echo_n "checking for non-GNU ld... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005008fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005009if test "${lt_cv_path_LD+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00005011else
5012 if test -z "$LD"; then
5013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5014 for ac_dir in $PATH; do
5015 IFS="$lt_save_ifs"
5016 test -z "$ac_dir" && ac_dir=.
5017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5018 lt_cv_path_LD="$ac_dir/$ac_prog"
5019 # Check to see if the program is GNU ld. I'd rather use --version,
5020 # but apparently some variants of GNU ld only accept -v.
5021 # Break only if it was the GNU/non-GNU ld that we prefer.
5022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5023 *GNU* | *'with BFD'*)
5024 test "$with_gnu_ld" != no && break
5025 ;;
5026 *)
5027 test "$with_gnu_ld" != yes && break
5028 ;;
5029 esac
5030 fi
5031 done
5032 IFS="$lt_save_ifs"
5033else
5034 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5035fi
5036fi
5037
5038LD="$lt_cv_path_LD"
5039if test -n "$LD"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5041$as_echo "$LD" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005042else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005045fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005046test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5048$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5049if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00005051else
5052 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5053case `$LD -v 2>&1 </dev/null` in
5054*GNU* | *'with BFD'*)
5055 lt_cv_prog_gnu_ld=yes
5056 ;;
5057*)
5058 lt_cv_prog_gnu_ld=no
5059 ;;
5060esac
5061fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5063$as_echo "$lt_cv_prog_gnu_ld" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005064with_gnu_ld=$lt_cv_prog_gnu_ld
5065
5066
openvcdiff311c7142008-08-26 19:29:25 +00005067
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005068
5069
5070
5071
5072
5073
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5075$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5076if test "${lt_cv_path_NM+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00005078else
5079 if test -n "$NM"; then
5080 # Let the user override the test.
5081 lt_cv_path_NM="$NM"
5082else
5083 lt_nm_to_check="${ac_tool_prefix}nm"
5084 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5085 lt_nm_to_check="$lt_nm_to_check nm"
5086 fi
5087 for lt_tmp_nm in $lt_nm_to_check; do
5088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5089 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5090 IFS="$lt_save_ifs"
5091 test -z "$ac_dir" && ac_dir=.
5092 tmp_nm="$ac_dir/$lt_tmp_nm"
5093 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5094 # Check to see if the nm accepts a BSD-compat flag.
5095 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5096 # nm: unknown option "B" ignored
5097 # Tru64's nm complains that /dev/null is an invalid object file
5098 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5099 */dev/null* | *'Invalid file or object type'*)
5100 lt_cv_path_NM="$tmp_nm -B"
5101 break
5102 ;;
5103 *)
5104 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5105 */dev/null*)
5106 lt_cv_path_NM="$tmp_nm -p"
5107 break
5108 ;;
5109 *)
5110 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5111 continue # so that we can try to find one that supports BSD flags
5112 ;;
5113 esac
5114 ;;
5115 esac
5116 fi
5117 done
5118 IFS="$lt_save_ifs"
5119 done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005120 : ${lt_cv_path_NM=no}
openvcdiff311c7142008-08-26 19:29:25 +00005121fi
5122fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5124$as_echo "$lt_cv_path_NM" >&6; }
5125if test "$lt_cv_path_NM" != "no"; then
5126 NM="$lt_cv_path_NM"
openvcdiff311c7142008-08-26 19:29:25 +00005127else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005128 # Didn't find any BSD compatible name lister, look for dumpbin.
5129 if test -n "$ac_tool_prefix"; then
5130 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
openvcdiff311c7142008-08-26 19:29:25 +00005131 do
5132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5133set dummy $ac_tool_prefix$ac_prog; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00005138else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005139 if test -n "$DUMPBIN"; then
5140 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
openvcdiff311c7142008-08-26 19:29:25 +00005141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005147 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00005148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005149 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00005151 break 2
5152 fi
5153done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005154 done
openvcdiffd1845782009-03-20 21:56:15 +00005155IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00005156
5157fi
5158fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005159DUMPBIN=$ac_cv_prog_DUMPBIN
5160if test -n "$DUMPBIN"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5162$as_echo "$DUMPBIN" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005163else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005166fi
5167
openvcdiffd1845782009-03-20 21:56:15 +00005168
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005169 test -n "$DUMPBIN" && break
openvcdiff311c7142008-08-26 19:29:25 +00005170 done
5171fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005172if test -z "$DUMPBIN"; then
5173 ac_ct_DUMPBIN=$DUMPBIN
5174 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
openvcdiff311c7142008-08-26 19:29:25 +00005175do
5176 # Extract the first word of "$ac_prog", so it can be a program name with args.
5177set dummy $ac_prog; ac_word=$2
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179$as_echo_n "checking for $ac_word... " >&6; }
5180if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00005182else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005183 if test -n "$ac_ct_DUMPBIN"; then
5184 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
openvcdiff311c7142008-08-26 19:29:25 +00005185else
5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
5188do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005191 for ac_exec_ext in '' $ac_executable_extensions; do
openvcdiffd1845782009-03-20 21:56:15 +00005192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005193 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
openvcdiff311c7142008-08-26 19:29:25 +00005195 break 2
5196 fi
5197done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005198 done
openvcdiffd1845782009-03-20 21:56:15 +00005199IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +00005200
5201fi
5202fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005203ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5204if test -n "$ac_ct_DUMPBIN"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5206$as_echo "$ac_ct_DUMPBIN" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005207else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005210fi
5211
openvcdiffd1845782009-03-20 21:56:15 +00005212
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005213 test -n "$ac_ct_DUMPBIN" && break
openvcdiff311c7142008-08-26 19:29:25 +00005214done
5215
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005216 if test "x$ac_ct_DUMPBIN" = x; then
5217 DUMPBIN=":"
openvcdiffd1845782009-03-20 21:56:15 +00005218 else
5219 case $cross_compiling:$ac_tool_warned in
5220yes:)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +00005223ac_tool_warned=yes ;;
5224esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005225 DUMPBIN=$ac_ct_DUMPBIN
openvcdiffd1845782009-03-20 21:56:15 +00005226 fi
openvcdiff311c7142008-08-26 19:29:25 +00005227fi
5228
5229
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005230 if test "$DUMPBIN" != ":"; then
5231 NM="$DUMPBIN"
5232 fi
5233fi
5234test -z "$NM" && NM=nm
openvcdiff311c7142008-08-26 19:29:25 +00005235
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005236
5237
5238
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5242$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5243if test "${lt_cv_nm_interface+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00005245else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005246 lt_cv_nm_interface="BSD nm"
5247 echo "int some_variable = 0;" > conftest.$ac_ext
5248 (eval echo "\"\$as_me:5248: $ac_compile\"" >&5)
5249 (eval "$ac_compile" 2>conftest.err)
openvcdiff311c7142008-08-26 19:29:25 +00005250 cat conftest.err >&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005251 (eval echo "\"\$as_me:5251: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5252 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
openvcdiff311c7142008-08-26 19:29:25 +00005253 cat conftest.err >&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005254 (eval echo "\"\$as_me:5254: output\"" >&5)
5255 cat conftest.out >&5
5256 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5257 lt_cv_nm_interface="MS dumpbin"
openvcdiff311c7142008-08-26 19:29:25 +00005258 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005259 rm -f conftest*
5260fi
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5262$as_echo "$lt_cv_nm_interface" >&6; }
5263
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5265$as_echo_n "checking whether ln -s works... " >&6; }
5266LN_S=$as_ln_s
5267if test "$LN_S" = "ln -s"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5269$as_echo "yes" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005270else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5272$as_echo "no, using $LN_S" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005273fi
5274
openvcdiff311c7142008-08-26 19:29:25 +00005275# find the maximum length of command line arguments
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5277$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5278if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00005280else
5281 i=0
5282 teststring="ABCD"
5283
5284 case $build_os in
5285 msdosdjgpp*)
5286 # On DJGPP, this test can blow up pretty badly due to problems in libc
5287 # (any single argument exceeding 2000 bytes causes a buffer overrun
5288 # during glob expansion). Even if it were fixed, the result of this
5289 # check would be larger than it should be.
5290 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5291 ;;
5292
5293 gnu*)
5294 # Under GNU Hurd, this test is not required because there is
5295 # no limit to the length of command line arguments.
5296 # Libtool will interpret -1 as no limit whatsoever
5297 lt_cv_sys_max_cmd_len=-1;
5298 ;;
5299
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005300 cygwin* | mingw* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +00005301 # On Win9x/ME, this test blows up -- it succeeds, but takes
5302 # about 5 minutes as the teststring grows exponentially.
5303 # Worse, since 9x/ME are not pre-emptively multitasking,
5304 # you end up with a "frozen" computer, even though with patience
5305 # the test eventually succeeds (with a max line length of 256k).
5306 # Instead, let's just punt: use the minimum linelength reported by
5307 # all of the supported platforms: 8192 (on NT/2K/XP).
5308 lt_cv_sys_max_cmd_len=8192;
5309 ;;
5310
5311 amigaos*)
5312 # On AmigaOS with pdksh, this test takes hours, literally.
5313 # So we just punt and use a minimum line length of 8192.
5314 lt_cv_sys_max_cmd_len=8192;
5315 ;;
5316
5317 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5318 # This has been around since 386BSD, at least. Likely further.
5319 if test -x /sbin/sysctl; then
5320 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5321 elif test -x /usr/sbin/sysctl; then
5322 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5323 else
5324 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5325 fi
5326 # And add a safety zone
5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5329 ;;
5330
5331 interix*)
5332 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5333 lt_cv_sys_max_cmd_len=196608
5334 ;;
5335
5336 osf*)
5337 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5338 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5339 # nice to cause kernel panics so lets avoid the loop below.
5340 # First set a reasonable default.
5341 lt_cv_sys_max_cmd_len=16384
5342 #
5343 if test -x /sbin/sysconfig; then
5344 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5345 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5346 esac
5347 fi
5348 ;;
5349 sco3.2v5*)
5350 lt_cv_sys_max_cmd_len=102400
5351 ;;
5352 sysv5* | sco5v6* | sysv4.2uw2*)
5353 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5354 if test -n "$kargmax"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005355 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
openvcdiff311c7142008-08-26 19:29:25 +00005356 else
5357 lt_cv_sys_max_cmd_len=32768
5358 fi
5359 ;;
5360 *)
openvcdiffd1845782009-03-20 21:56:15 +00005361 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5362 if test -n "$lt_cv_sys_max_cmd_len"; then
5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5365 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005366 # Make teststring a little bigger before we do anything with it.
5367 # a 1K string should be a reasonable start.
5368 for i in 1 2 3 4 5 6 7 8 ; do
5369 teststring=$teststring$teststring
5370 done
openvcdiffd1845782009-03-20 21:56:15 +00005371 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005372 # If test is not a shell built-in, we'll probably end up computing a
5373 # maximum length that is only half of the actual maximum length, but
5374 # we can't tell.
5375 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5376 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
openvcdiffd1845782009-03-20 21:56:15 +00005377 test $i != 17 # 1/2 MB should be enough
5378 do
5379 i=`expr $i + 1`
5380 teststring=$teststring$teststring
5381 done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005382 # Only check the string length outside the loop.
5383 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
openvcdiffd1845782009-03-20 21:56:15 +00005384 teststring=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005385 # Add a significant safety factor because C++ compilers can tack on
5386 # massive amounts of additional arguments before passing them to the
5387 # linker. It appears as though 1/2 is a usable value.
openvcdiffd1845782009-03-20 21:56:15 +00005388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5389 fi
openvcdiff311c7142008-08-26 19:29:25 +00005390 ;;
5391 esac
5392
5393fi
5394
5395if test -n $lt_cv_sys_max_cmd_len ; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5397$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00005398else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5400$as_echo "none" >&6; }
5401fi
5402max_cmd_len=$lt_cv_sys_max_cmd_len
5403
5404
5405
5406
5407
5408
5409: ${CP="cp -f"}
5410: ${MV="mv -f"}
5411: ${RM="rm -f"}
5412
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5414$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5415# Try some XSI features
5416xsi_shell=no
5417( _lt_dummy="a/b/c"
5418 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5419 = c,a/b,, \
5420 && eval 'test $(( 1 + 1 )) -eq 2 \
5421 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5422 && xsi_shell=yes
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5424$as_echo "$xsi_shell" >&6; }
5425
5426
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5428$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5429lt_shell_append=no
5430( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5431 >/dev/null 2>&1 \
5432 && lt_shell_append=yes
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5434$as_echo "$lt_shell_append" >&6; }
5435
5436
5437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5438 lt_unset=unset
5439else
5440 lt_unset=false
openvcdiff311c7142008-08-26 19:29:25 +00005441fi
5442
5443
5444
5445
openvcdiffd1845782009-03-20 21:56:15 +00005446
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00005447# test EBCDIC or ASCII
5448case `echo X|tr X '\101'` in
5449 A) # ASCII based system
5450 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5451 lt_SP2NL='tr \040 \012'
5452 lt_NL2SP='tr \015\012 \040\040'
5453 ;;
5454 *) # EBCDIC based system
5455 lt_SP2NL='tr \100 \n'
5456 lt_NL2SP='tr \r\n \100\100'
5457 ;;
5458esac
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5469$as_echo_n "checking for $LD option to reload object files... " >&6; }
5470if test "${lt_cv_ld_reload_flag+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5472else
5473 lt_cv_ld_reload_flag='-r'
5474fi
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5476$as_echo "$lt_cv_ld_reload_flag" >&6; }
5477reload_flag=$lt_cv_ld_reload_flag
5478case $reload_flag in
5479"" | " "*) ;;
5480*) reload_flag=" $reload_flag" ;;
5481esac
5482reload_cmds='$LD$reload_flag -o $output$reload_objs'
5483case $host_os in
5484 darwin*)
5485 if test "$GCC" = yes; then
5486 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5487 else
5488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5489 fi
5490 ;;
5491esac
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5503set dummy ${ac_tool_prefix}objdump; ac_word=$2
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
5506if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
5508else
5509 if test -n "$OBJDUMP"; then
5510 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523done
5524 done
5525IFS=$as_save_IFS
5526
5527fi
5528fi
5529OBJDUMP=$ac_cv_prog_OBJDUMP
5530if test -n "$OBJDUMP"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5532$as_echo "$OBJDUMP" >&6; }
5533else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5536fi
5537
5538
5539fi
5540if test -z "$ac_cv_prog_OBJDUMP"; then
5541 ac_ct_OBJDUMP=$OBJDUMP
5542 # Extract the first word of "objdump", so it can be a program name with args.
5543set dummy objdump; ac_word=$2
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545$as_echo_n "checking for $ac_word... " >&6; }
5546if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548else
5549 if test -n "$ac_ct_OBJDUMP"; then
5550 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5551else
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5562 fi
5563done
5564 done
5565IFS=$as_save_IFS
5566
5567fi
5568fi
5569ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5570if test -n "$ac_ct_OBJDUMP"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5572$as_echo "$ac_ct_OBJDUMP" >&6; }
5573else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5576fi
5577
5578 if test "x$ac_ct_OBJDUMP" = x; then
5579 OBJDUMP="false"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582yes:)
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585ac_tool_warned=yes ;;
5586esac
5587 OBJDUMP=$ac_ct_OBJDUMP
5588 fi
5589else
5590 OBJDUMP="$ac_cv_prog_OBJDUMP"
5591fi
5592
5593test -z "$OBJDUMP" && OBJDUMP=objdump
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5604$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5605if test "${lt_cv_deplibs_check_method+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607else
5608 lt_cv_file_magic_cmd='$MAGIC_CMD'
5609lt_cv_file_magic_test_file=
5610lt_cv_deplibs_check_method='unknown'
5611# Need to set the preceding variable on all platforms that support
5612# interlibrary dependencies.
5613# 'none' -- dependencies not supported.
5614# `unknown' -- same as none, but documents that we really don't know.
5615# 'pass_all' -- all dependencies passed with no checks.
5616# 'test_compile' -- check by making test program.
5617# 'file_magic [[regex]]' -- check by looking for files in library path
5618# which responds to the $file_magic_cmd with a given extended regex.
5619# If you have `file' or equivalent on your system and you're not sure
5620# whether `pass_all' will *always* work, you probably want this one.
5621
5622case $host_os in
5623aix[4-9]*)
5624 lt_cv_deplibs_check_method=pass_all
5625 ;;
5626
5627beos*)
5628 lt_cv_deplibs_check_method=pass_all
5629 ;;
5630
5631bsdi[45]*)
5632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5633 lt_cv_file_magic_cmd='/usr/bin/file -L'
5634 lt_cv_file_magic_test_file=/shlib/libc.so
5635 ;;
5636
5637cygwin*)
5638 # func_win32_libid is a shell function defined in ltmain.sh
5639 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5640 lt_cv_file_magic_cmd='func_win32_libid'
5641 ;;
5642
5643mingw* | pw32*)
5644 # Base MSYS/MinGW do not provide the 'file' command needed by
5645 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5646 # unless we find 'file', for example because we are cross-compiling.
5647 if ( file / ) >/dev/null 2>&1; then
5648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5649 lt_cv_file_magic_cmd='func_win32_libid'
5650 else
5651 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5652 lt_cv_file_magic_cmd='$OBJDUMP -f'
5653 fi
5654 ;;
5655
5656cegcc)
5657 # use the weaker test based on 'objdump'. See mingw*.
5658 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5659 lt_cv_file_magic_cmd='$OBJDUMP -f'
5660 ;;
5661
5662darwin* | rhapsody*)
5663 lt_cv_deplibs_check_method=pass_all
5664 ;;
5665
5666freebsd* | dragonfly*)
5667 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5668 case $host_cpu in
5669 i*86 )
5670 # Not sure whether the presence of OpenBSD here was a mistake.
5671 # Let's accept both of them until this is cleared up.
5672 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5673 lt_cv_file_magic_cmd=/usr/bin/file
5674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5675 ;;
5676 esac
5677 else
5678 lt_cv_deplibs_check_method=pass_all
5679 fi
5680 ;;
5681
5682gnu*)
5683 lt_cv_deplibs_check_method=pass_all
5684 ;;
5685
5686hpux10.20* | hpux11*)
5687 lt_cv_file_magic_cmd=/usr/bin/file
5688 case $host_cpu in
5689 ia64*)
5690 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5691 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5692 ;;
5693 hppa*64*)
5694 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]'
5695 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5696 ;;
5697 *)
5698 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5699 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5700 ;;
5701 esac
5702 ;;
5703
5704interix[3-9]*)
5705 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5707 ;;
5708
5709irix5* | irix6* | nonstopux*)
5710 case $LD in
5711 *-32|*"-32 ") libmagic=32-bit;;
5712 *-n32|*"-n32 ") libmagic=N32;;
5713 *-64|*"-64 ") libmagic=64-bit;;
5714 *) libmagic=never-match;;
5715 esac
5716 lt_cv_deplibs_check_method=pass_all
5717 ;;
5718
5719# This must be Linux ELF.
5720linux* | k*bsd*-gnu | kopensolaris*-gnu)
5721 lt_cv_deplibs_check_method=pass_all
5722 ;;
5723
5724netbsd* | netbsdelf*-gnu)
5725 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5727 else
5728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5729 fi
5730 ;;
5731
5732newos6*)
5733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5734 lt_cv_file_magic_cmd=/usr/bin/file
5735 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5736 ;;
5737
5738*nto* | *qnx*)
5739 lt_cv_deplibs_check_method=pass_all
5740 ;;
5741
5742openbsd*)
5743 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5745 else
5746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5747 fi
5748 ;;
5749
5750osf3* | osf4* | osf5*)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754rdos*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758solaris*)
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761
5762sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5763 lt_cv_deplibs_check_method=pass_all
5764 ;;
5765
5766sysv4 | sysv4.3*)
5767 case $host_vendor in
5768 motorola)
5769 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]'
5770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5771 ;;
5772 ncr)
5773 lt_cv_deplibs_check_method=pass_all
5774 ;;
5775 sequent)
5776 lt_cv_file_magic_cmd='/bin/file'
5777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5778 ;;
5779 sni)
5780 lt_cv_file_magic_cmd='/bin/file'
5781 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5782 lt_cv_file_magic_test_file=/lib/libc.so
5783 ;;
5784 siemens)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787 pc)
5788 lt_cv_deplibs_check_method=pass_all
5789 ;;
5790 esac
5791 ;;
5792
5793tpf*)
5794 lt_cv_deplibs_check_method=pass_all
5795 ;;
5796esac
5797
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5800$as_echo "$lt_cv_deplibs_check_method" >&6; }
5801file_magic_cmd=$lt_cv_file_magic_cmd
5802deplibs_check_method=$lt_cv_deplibs_check_method
5803test -z "$deplibs_check_method" && deplibs_check_method=unknown
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816if test -n "$ac_tool_prefix"; then
5817 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5818set dummy ${ac_tool_prefix}ar; ac_word=$2
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820$as_echo_n "checking for $ac_word... " >&6; }
5821if test "${ac_cv_prog_AR+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823else
5824 if test -n "$AR"; then
5825 ac_cv_prog_AR="$AR" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 ac_cv_prog_AR="${ac_tool_prefix}ar"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5837 fi
5838done
5839 done
5840IFS=$as_save_IFS
5841
5842fi
5843fi
5844AR=$ac_cv_prog_AR
5845if test -n "$AR"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5847$as_echo "$AR" >&6; }
5848else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851fi
5852
5853
5854fi
5855if test -z "$ac_cv_prog_AR"; then
5856 ac_ct_AR=$AR
5857 # Extract the first word of "ar", so it can be a program name with args.
5858set dummy ar; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863else
5864 if test -n "$ac_ct_AR"; then
5865 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_ac_ct_AR="ar"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879 done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884ac_ct_AR=$ac_cv_prog_ac_ct_AR
5885if test -n "$ac_ct_AR"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5887$as_echo "$ac_ct_AR" >&6; }
5888else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893 if test "x$ac_ct_AR" = x; then
5894 AR="false"
5895 else
5896 case $cross_compiling:$ac_tool_warned in
5897yes:)
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900ac_tool_warned=yes ;;
5901esac
5902 AR=$ac_ct_AR
5903 fi
5904else
5905 AR="$ac_cv_prog_AR"
5906fi
5907
5908test -z "$AR" && AR=ar
5909test -z "$AR_FLAGS" && AR_FLAGS=cru
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921if test -n "$ac_tool_prefix"; then
5922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5923set dummy ${ac_tool_prefix}strip; ac_word=$2
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925$as_echo_n "checking for $ac_word... " >&6; }
5926if test "${ac_cv_prog_STRIP+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
5928else
5929 if test -n "$STRIP"; then
5930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944 done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949STRIP=$ac_cv_prog_STRIP
5950if test -n "$STRIP"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5952$as_echo "$STRIP" >&6; }
5953else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958
5959fi
5960if test -z "$ac_cv_prog_STRIP"; then
5961 ac_ct_STRIP=$STRIP
5962 # Extract the first word of "strip", so it can be a program name with args.
5963set dummy strip; ac_word=$2
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965$as_echo_n "checking for $ac_word... " >&6; }
5966if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5967 $as_echo_n "(cached) " >&6
5968else
5969 if test -n "$ac_ct_STRIP"; then
5970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5979 ac_cv_prog_ac_ct_STRIP="strip"
5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983done
5984 done
5985IFS=$as_save_IFS
5986
5987fi
5988fi
5989ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5990if test -n "$ac_ct_STRIP"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5992$as_echo "$ac_ct_STRIP" >&6; }
5993else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
5996fi
5997
5998 if test "x$ac_ct_STRIP" = x; then
5999 STRIP=":"
6000 else
6001 case $cross_compiling:$ac_tool_warned in
6002yes:)
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005ac_tool_warned=yes ;;
6006esac
6007 STRIP=$ac_ct_STRIP
6008 fi
6009else
6010 STRIP="$ac_cv_prog_STRIP"
6011fi
6012
6013test -z "$STRIP" && STRIP=:
6014
6015
6016
6017
6018
6019
6020if test -n "$ac_tool_prefix"; then
6021 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6022set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024$as_echo_n "checking for $ac_word... " >&6; }
6025if test "${ac_cv_prog_RANLIB+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6027else
6028 if test -n "$RANLIB"; then
6029 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6030else
6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032for as_dir in $PATH
6033do
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6041 fi
6042done
6043 done
6044IFS=$as_save_IFS
6045
6046fi
6047fi
6048RANLIB=$ac_cv_prog_RANLIB
6049if test -n "$RANLIB"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6051$as_echo "$RANLIB" >&6; }
6052else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054$as_echo "no" >&6; }
6055fi
6056
6057
6058fi
6059if test -z "$ac_cv_prog_RANLIB"; then
6060 ac_ct_RANLIB=$RANLIB
6061 # Extract the first word of "ranlib", so it can be a program name with args.
6062set dummy ranlib; ac_word=$2
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064$as_echo_n "checking for $ac_word... " >&6; }
6065if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067else
6068 if test -n "$ac_ct_RANLIB"; then
6069 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_ac_ct_RANLIB="ranlib"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082done
6083 done
6084IFS=$as_save_IFS
6085
6086fi
6087fi
6088ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6089if test -n "$ac_ct_RANLIB"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6091$as_echo "$ac_ct_RANLIB" >&6; }
6092else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094$as_echo "no" >&6; }
6095fi
6096
6097 if test "x$ac_ct_RANLIB" = x; then
6098 RANLIB=":"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101yes:)
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104ac_tool_warned=yes ;;
6105esac
6106 RANLIB=$ac_ct_RANLIB
6107 fi
6108else
6109 RANLIB="$ac_cv_prog_RANLIB"
6110fi
6111
6112test -z "$RANLIB" && RANLIB=:
6113
6114
6115
6116
6117
6118
6119# Determine commands to create old-style static archives.
6120old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6121old_postinstall_cmds='chmod 644 $oldlib'
6122old_postuninstall_cmds=
6123
6124if test -n "$RANLIB"; then
6125 case $host_os in
6126 openbsd*)
6127 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6128 ;;
6129 *)
6130 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6131 ;;
6132 esac
6133 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6134fi
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169# If no C compiler was specified, use CC.
6170LTCC=${LTCC-"$CC"}
6171
6172# If no C compiler flags were specified, use CFLAGS.
6173LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6174
6175# Allow CC to be a program name with arguments.
6176compiler=$CC
6177
6178
openvcdiff311c7142008-08-26 19:29:25 +00006179# Check for command to grab the raw symbol name followed by C symbol from nm.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6181$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6182if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00006184else
6185
6186# These are sane defaults that work on at least a few old systems.
6187# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6188
6189# Character class describing NM global symbol codes.
6190symcode='[BCDEGRST]'
6191
6192# Regexp to match symbols that can be accessed directly from C.
6193sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6194
openvcdiff311c7142008-08-26 19:29:25 +00006195# Define system-specific variables.
6196case $host_os in
6197aix*)
6198 symcode='[BCDT]'
6199 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006200cygwin* | mingw* | pw32* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +00006201 symcode='[ABCDGISTW]'
6202 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006203hpux*)
openvcdiff311c7142008-08-26 19:29:25 +00006204 if test "$host_cpu" = ia64; then
6205 symcode='[ABCDEGRST]'
6206 fi
openvcdiff311c7142008-08-26 19:29:25 +00006207 ;;
6208irix* | nonstopux*)
6209 symcode='[BCDEGRST]'
6210 ;;
6211osf*)
6212 symcode='[BCDEGQRST]'
6213 ;;
6214solaris*)
6215 symcode='[BDRT]'
6216 ;;
6217sco3.2v5*)
6218 symcode='[DT]'
6219 ;;
6220sysv4.2uw2*)
6221 symcode='[DT]'
6222 ;;
6223sysv5* | sco5v6* | unixware* | OpenUNIX*)
6224 symcode='[ABDT]'
6225 ;;
6226sysv4)
6227 symcode='[DFNSTU]'
6228 ;;
6229esac
6230
openvcdiff311c7142008-08-26 19:29:25 +00006231# If we're using GNU nm, then use its standard symbol codes.
6232case `$NM -V 2>&1` in
6233*GNU* | *'with BFD'*)
6234 symcode='[ABCDGIRSTW]' ;;
6235esac
6236
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006237# Transform an extracted symbol line into a proper C declaration.
6238# Some systems (esp. on ia64) link data and code symbols differently,
6239# so use this general approach.
6240lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6241
6242# Transform an extracted symbol line into symbol name and symbol address
6243lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6244lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6245
6246# Handle CRLF in mingw tool chain
6247opt_cr=
6248case $build_os in
6249mingw*)
6250 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6251 ;;
6252esac
6253
6254# Try without a prefix underscore, then with it.
openvcdiff311c7142008-08-26 19:29:25 +00006255for ac_symprfx in "" "_"; do
6256
6257 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6258 symxfrm="\\1 $ac_symprfx\\2 \\2"
6259
6260 # Write the raw and C identifiers.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006261 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6262 # Fake it for dumpbin and say T for any non-static function
6263 # and D for any global variable.
6264 # Also find C++ and __fastcall symbols from MSVC++,
6265 # which start with @ or ?.
6266 lt_cv_sys_global_symbol_pipe="$AWK '"\
6267" {last_section=section; section=\$ 3};"\
6268" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6269" \$ 0!~/External *\|/{next};"\
6270" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6271" {if(hide[section]) next};"\
6272" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6273" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6274" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6275" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6276" ' prfx=^$ac_symprfx"
6277 else
6278 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6279 fi
openvcdiff311c7142008-08-26 19:29:25 +00006280
6281 # Check to see that the pipe works correctly.
6282 pipe_works=no
6283
6284 rm -f conftest*
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006285 cat > conftest.$ac_ext <<_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +00006286#ifdef __cplusplus
6287extern "C" {
6288#endif
6289char nm_test_var;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006290void nm_test_func(void);
6291void nm_test_func(void){}
openvcdiff311c7142008-08-26 19:29:25 +00006292#ifdef __cplusplus
6293}
6294#endif
6295int main(){nm_test_var='a';nm_test_func();return(0);}
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006296_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +00006297
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
openvcdiff311c7142008-08-26 19:29:25 +00006299 (eval $ac_compile) 2>&5
6300 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302 test $ac_status = 0; }; then
openvcdiff311c7142008-08-26 19:29:25 +00006303 # Now try to grab the symbols.
6304 nlist=conftest.nm
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
openvcdiff311c7142008-08-26 19:29:25 +00006306 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6307 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; } && test -s "$nlist"; then
openvcdiff311c7142008-08-26 19:29:25 +00006310 # Try sorting and uniquifying the output.
6311 if sort "$nlist" | uniq > "$nlist"T; then
6312 mv -f "$nlist"T "$nlist"
6313 else
6314 rm -f "$nlist"T
6315 fi
6316
6317 # Make sure that we snagged all the symbols we need.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006318 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6319 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6320 cat <<_LT_EOF > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00006321#ifdef __cplusplus
6322extern "C" {
6323#endif
6324
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006325_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +00006326 # Now generate the symbol file.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006327 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
openvcdiff311c7142008-08-26 19:29:25 +00006328
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006329 cat <<_LT_EOF >> conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00006330
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006331/* The mapping between symbol names and symbols. */
openvcdiff311c7142008-08-26 19:29:25 +00006332const struct {
6333 const char *name;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006334 void *address;
openvcdiff311c7142008-08-26 19:29:25 +00006335}
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006336lt__PROGRAM__LTX_preloaded_symbols[] =
openvcdiff311c7142008-08-26 19:29:25 +00006337{
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006338 { "@PROGRAM@", (void *) 0 },
6339_LT_EOF
6340 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6341 cat <<\_LT_EOF >> conftest.$ac_ext
6342 {0, (void *) 0}
openvcdiff311c7142008-08-26 19:29:25 +00006343};
6344
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006345/* This works around a problem in FreeBSD linker */
6346#ifdef FREEBSD_WORKAROUND
6347static const void *lt_preloaded_setup() {
6348 return lt__PROGRAM__LTX_preloaded_symbols;
6349}
6350#endif
6351
openvcdiff311c7142008-08-26 19:29:25 +00006352#ifdef __cplusplus
6353}
6354#endif
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006355_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +00006356 # Now try linking the two files.
6357 mv conftest.$ac_objext conftstm.$ac_objext
6358 lt_save_LIBS="$LIBS"
6359 lt_save_CFLAGS="$CFLAGS"
6360 LIBS="conftstm.$ac_objext"
6361 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
openvcdiff311c7142008-08-26 19:29:25 +00006363 (eval $ac_link) 2>&5
6364 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
openvcdiff311c7142008-08-26 19:29:25 +00006367 pipe_works=yes
6368 fi
6369 LIBS="$lt_save_LIBS"
6370 CFLAGS="$lt_save_CFLAGS"
6371 else
6372 echo "cannot find nm_test_func in $nlist" >&5
6373 fi
6374 else
6375 echo "cannot find nm_test_var in $nlist" >&5
6376 fi
6377 else
6378 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6379 fi
6380 else
6381 echo "$progname: failed program was:" >&5
6382 cat conftest.$ac_ext >&5
6383 fi
openvcdiffd1845782009-03-20 21:56:15 +00006384 rm -rf conftest* conftst*
openvcdiff311c7142008-08-26 19:29:25 +00006385
6386 # Do not use the global_symbol_pipe unless it works.
6387 if test "$pipe_works" = yes; then
6388 break
6389 else
6390 lt_cv_sys_global_symbol_pipe=
6391 fi
6392done
6393
6394fi
6395
6396if test -z "$lt_cv_sys_global_symbol_pipe"; then
6397 lt_cv_sys_global_symbol_to_cdecl=
6398fi
6399if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6401$as_echo "failed" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006402else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6404$as_echo "ok" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00006405fi
6406
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00006407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429# Check whether --enable-libtool-lock was given.
6430if test "${enable_libtool_lock+set}" = set; then :
6431 enableval=$enable_libtool_lock;
6432fi
6433
6434test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6435
6436# Some flags need to be propagated to the compiler or linker for good
6437# libtool support.
6438case $host in
6439ia64-*-hpux*)
6440 # Find out which ABI we are using.
6441 echo 'int i;' > conftest.$ac_ext
6442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6443 (eval $ac_compile) 2>&5
6444 ac_status=$?
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; }; then
6447 case `/usr/bin/file conftest.$ac_objext` in
6448 *ELF-32*)
6449 HPUX_IA64_MODE="32"
6450 ;;
6451 *ELF-64*)
6452 HPUX_IA64_MODE="64"
6453 ;;
6454 esac
6455 fi
6456 rm -rf conftest*
6457 ;;
6458*-*-irix6*)
6459 # Find out which ABI we are using.
6460 echo '#line 6460 "configure"' > conftest.$ac_ext
6461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462 (eval $ac_compile) 2>&5
6463 ac_status=$?
6464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465 test $ac_status = 0; }; then
6466 if test "$lt_cv_prog_gnu_ld" = yes; then
6467 case `/usr/bin/file conftest.$ac_objext` in
6468 *32-bit*)
6469 LD="${LD-ld} -melf32bsmip"
6470 ;;
6471 *N32*)
6472 LD="${LD-ld} -melf32bmipn32"
6473 ;;
6474 *64-bit*)
6475 LD="${LD-ld} -melf64bmip"
6476 ;;
6477 esac
6478 else
6479 case `/usr/bin/file conftest.$ac_objext` in
6480 *32-bit*)
6481 LD="${LD-ld} -32"
6482 ;;
6483 *N32*)
6484 LD="${LD-ld} -n32"
6485 ;;
6486 *64-bit*)
6487 LD="${LD-ld} -64"
6488 ;;
6489 esac
6490 fi
6491 fi
6492 rm -rf conftest*
6493 ;;
6494
6495x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6496s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6497 # Find out which ABI we are using.
6498 echo 'int i;' > conftest.$ac_ext
6499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500 (eval $ac_compile) 2>&5
6501 ac_status=$?
6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503 test $ac_status = 0; }; then
6504 case `/usr/bin/file conftest.o` in
6505 *32-bit*)
6506 case $host in
6507 x86_64-*kfreebsd*-gnu)
6508 LD="${LD-ld} -m elf_i386_fbsd"
6509 ;;
6510 x86_64-*linux*)
6511 LD="${LD-ld} -m elf_i386"
6512 ;;
6513 ppc64-*linux*|powerpc64-*linux*)
6514 LD="${LD-ld} -m elf32ppclinux"
6515 ;;
6516 s390x-*linux*)
6517 LD="${LD-ld} -m elf_s390"
6518 ;;
6519 sparc64-*linux*)
6520 LD="${LD-ld} -m elf32_sparc"
6521 ;;
6522 esac
6523 ;;
6524 *64-bit*)
6525 case $host in
6526 x86_64-*kfreebsd*-gnu)
6527 LD="${LD-ld} -m elf_x86_64_fbsd"
6528 ;;
6529 x86_64-*linux*)
6530 LD="${LD-ld} -m elf_x86_64"
6531 ;;
6532 ppc*-*linux*|powerpc*-*linux*)
6533 LD="${LD-ld} -m elf64ppc"
6534 ;;
6535 s390*-*linux*|s390*-*tpf*)
6536 LD="${LD-ld} -m elf64_s390"
6537 ;;
6538 sparc*-*linux*)
6539 LD="${LD-ld} -m elf64_sparc"
6540 ;;
6541 esac
6542 ;;
6543 esac
6544 fi
6545 rm -rf conftest*
6546 ;;
6547
6548*-*-sco3.2v5*)
6549 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6550 SAVE_CFLAGS="$CFLAGS"
6551 CFLAGS="$CFLAGS -belf"
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6553$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6554if test "${lt_cv_cc_needs_belf+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6556else
6557 ac_ext=c
6558ac_cpp='$CPP $CPPFLAGS'
6559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h. */
6565
6566int
6567main ()
6568{
6569
6570 ;
6571 return 0;
6572}
6573_ACEOF
6574if ac_fn_c_try_link "$LINENO"; then :
6575 lt_cv_cc_needs_belf=yes
6576else
6577 lt_cv_cc_needs_belf=no
6578fi
6579rm -f core conftest.err conftest.$ac_objext \
6580 conftest$ac_exeext conftest.$ac_ext
6581 ac_ext=c
6582ac_cpp='$CPP $CPPFLAGS'
6583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585ac_compiler_gnu=$ac_cv_c_compiler_gnu
6586
6587fi
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6589$as_echo "$lt_cv_cc_needs_belf" >&6; }
6590 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6591 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6592 CFLAGS="$SAVE_CFLAGS"
6593 fi
6594 ;;
6595sparc*-*solaris*)
6596 # Find out which ABI we are using.
6597 echo 'int i;' > conftest.$ac_ext
6598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6599 (eval $ac_compile) 2>&5
6600 ac_status=$?
6601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6602 test $ac_status = 0; }; then
6603 case `/usr/bin/file conftest.o` in
6604 *64-bit*)
6605 case $lt_cv_prog_gnu_ld in
6606 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6607 *)
6608 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6609 LD="${LD-ld} -64"
6610 fi
6611 ;;
6612 esac
6613 ;;
6614 esac
6615 fi
6616 rm -rf conftest*
6617 ;;
6618esac
6619
6620need_locks="$enable_libtool_lock"
6621
6622
6623 case $host_os in
6624 rhapsody* | darwin*)
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6627set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629$as_echo_n "checking for $ac_word... " >&6; }
6630if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6631 $as_echo_n "(cached) " >&6
6632else
6633 if test -n "$DSYMUTIL"; then
6634 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647done
6648 done
6649IFS=$as_save_IFS
6650
6651fi
6652fi
6653DSYMUTIL=$ac_cv_prog_DSYMUTIL
6654if test -n "$DSYMUTIL"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6656$as_echo "$DSYMUTIL" >&6; }
6657else
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659$as_echo "no" >&6; }
6660fi
6661
6662
6663fi
6664if test -z "$ac_cv_prog_DSYMUTIL"; then
6665 ac_ct_DSYMUTIL=$DSYMUTIL
6666 # Extract the first word of "dsymutil", so it can be a program name with args.
6667set dummy dsymutil; ac_word=$2
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669$as_echo_n "checking for $ac_word... " >&6; }
6670if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672else
6673 if test -n "$ac_ct_DSYMUTIL"; then
6674 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687done
6688 done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6694if test -n "$ac_ct_DSYMUTIL"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6696$as_echo "$ac_ct_DSYMUTIL" >&6; }
6697else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702 if test "x$ac_ct_DSYMUTIL" = x; then
6703 DSYMUTIL=":"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706yes:)
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709ac_tool_warned=yes ;;
6710esac
6711 DSYMUTIL=$ac_ct_DSYMUTIL
6712 fi
6713else
6714 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6715fi
6716
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6719set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721$as_echo_n "checking for $ac_word... " >&6; }
6722if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6723 $as_echo_n "(cached) " >&6
6724else
6725 if test -n "$NMEDIT"; then
6726 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6727else
6728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739done
6740 done
6741IFS=$as_save_IFS
6742
6743fi
6744fi
6745NMEDIT=$ac_cv_prog_NMEDIT
6746if test -n "$NMEDIT"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6748$as_echo "$NMEDIT" >&6; }
6749else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751$as_echo "no" >&6; }
6752fi
6753
6754
6755fi
6756if test -z "$ac_cv_prog_NMEDIT"; then
6757 ac_ct_NMEDIT=$NMEDIT
6758 # Extract the first word of "nmedit", so it can be a program name with args.
6759set dummy nmedit; ac_word=$2
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761$as_echo_n "checking for $ac_word... " >&6; }
6762if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6763 $as_echo_n "(cached) " >&6
6764else
6765 if test -n "$ac_ct_NMEDIT"; then
6766 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779done
6780 done
6781IFS=$as_save_IFS
6782
6783fi
6784fi
6785ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6786if test -n "$ac_ct_NMEDIT"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6788$as_echo "$ac_ct_NMEDIT" >&6; }
6789else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791$as_echo "no" >&6; }
6792fi
6793
6794 if test "x$ac_ct_NMEDIT" = x; then
6795 NMEDIT=":"
6796 else
6797 case $cross_compiling:$ac_tool_warned in
6798yes:)
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801ac_tool_warned=yes ;;
6802esac
6803 NMEDIT=$ac_ct_NMEDIT
6804 fi
6805else
6806 NMEDIT="$ac_cv_prog_NMEDIT"
6807fi
6808
6809 if test -n "$ac_tool_prefix"; then
6810 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6811set dummy ${ac_tool_prefix}lipo; ac_word=$2
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813$as_echo_n "checking for $ac_word... " >&6; }
6814if test "${ac_cv_prog_LIPO+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6816else
6817 if test -n "$LIPO"; then
6818 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6819else
6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831done
6832 done
6833IFS=$as_save_IFS
6834
6835fi
6836fi
6837LIPO=$ac_cv_prog_LIPO
6838if test -n "$LIPO"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6840$as_echo "$LIPO" >&6; }
6841else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843$as_echo "no" >&6; }
6844fi
6845
6846
6847fi
6848if test -z "$ac_cv_prog_LIPO"; then
6849 ac_ct_LIPO=$LIPO
6850 # Extract the first word of "lipo", so it can be a program name with args.
6851set dummy lipo; ac_word=$2
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853$as_echo_n "checking for $ac_word... " >&6; }
6854if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856else
6857 if test -n "$ac_ct_LIPO"; then
6858 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6859else
6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_prog_ac_ct_LIPO="lipo"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871done
6872 done
6873IFS=$as_save_IFS
6874
6875fi
6876fi
6877ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6878if test -n "$ac_ct_LIPO"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6880$as_echo "$ac_ct_LIPO" >&6; }
6881else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883$as_echo "no" >&6; }
6884fi
6885
6886 if test "x$ac_ct_LIPO" = x; then
6887 LIPO=":"
6888 else
6889 case $cross_compiling:$ac_tool_warned in
6890yes:)
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893ac_tool_warned=yes ;;
6894esac
6895 LIPO=$ac_ct_LIPO
6896 fi
6897else
6898 LIPO="$ac_cv_prog_LIPO"
6899fi
6900
6901 if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6903set dummy ${ac_tool_prefix}otool; ac_word=$2
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905$as_echo_n "checking for $ac_word... " >&6; }
6906if test "${ac_cv_prog_OTOOL+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6908else
6909 if test -n "$OTOOL"; then
6910 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6911else
6912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923done
6924 done
6925IFS=$as_save_IFS
6926
6927fi
6928fi
6929OTOOL=$ac_cv_prog_OTOOL
6930if test -n "$OTOOL"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6932$as_echo "$OTOOL" >&6; }
6933else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935$as_echo "no" >&6; }
6936fi
6937
6938
6939fi
6940if test -z "$ac_cv_prog_OTOOL"; then
6941 ac_ct_OTOOL=$OTOOL
6942 # Extract the first word of "otool", so it can be a program name with args.
6943set dummy otool; ac_word=$2
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945$as_echo_n "checking for $ac_word... " >&6; }
6946if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6948else
6949 if test -n "$ac_ct_OTOOL"; then
6950 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_ac_ct_OTOOL="otool"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963done
6964 done
6965IFS=$as_save_IFS
6966
6967fi
6968fi
6969ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6970if test -n "$ac_ct_OTOOL"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6972$as_echo "$ac_ct_OTOOL" >&6; }
6973else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975$as_echo "no" >&6; }
6976fi
6977
6978 if test "x$ac_ct_OTOOL" = x; then
6979 OTOOL=":"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982yes:)
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985ac_tool_warned=yes ;;
6986esac
6987 OTOOL=$ac_ct_OTOOL
6988 fi
6989else
6990 OTOOL="$ac_cv_prog_OTOOL"
6991fi
6992
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6995set dummy ${ac_tool_prefix}otool64; ac_word=$2
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997$as_echo_n "checking for $ac_word... " >&6; }
6998if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7000else
7001 if test -n "$OTOOL64"; then
7002 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7003else
7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015done
7016 done
7017IFS=$as_save_IFS
7018
7019fi
7020fi
7021OTOOL64=$ac_cv_prog_OTOOL64
7022if test -n "$OTOOL64"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7024$as_echo "$OTOOL64" >&6; }
7025else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027$as_echo "no" >&6; }
7028fi
7029
7030
7031fi
7032if test -z "$ac_cv_prog_OTOOL64"; then
7033 ac_ct_OTOOL64=$OTOOL64
7034 # Extract the first word of "otool64", so it can be a program name with args.
7035set dummy otool64; ac_word=$2
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037$as_echo_n "checking for $ac_word... " >&6; }
7038if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7040else
7041 if test -n "$ac_ct_OTOOL64"; then
7042 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_ac_ct_OTOOL64="otool64"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055done
7056 done
7057IFS=$as_save_IFS
7058
7059fi
7060fi
7061ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7062if test -n "$ac_ct_OTOOL64"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7064$as_echo "$ac_ct_OTOOL64" >&6; }
7065else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067$as_echo "no" >&6; }
7068fi
7069
7070 if test "x$ac_ct_OTOOL64" = x; then
7071 OTOOL64=":"
7072 else
7073 case $cross_compiling:$ac_tool_warned in
7074yes:)
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077ac_tool_warned=yes ;;
7078esac
7079 OTOOL64=$ac_ct_OTOOL64
7080 fi
7081else
7082 OTOOL64="$ac_cv_prog_OTOOL64"
7083fi
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7112$as_echo_n "checking for -single_module linker flag... " >&6; }
7113if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7114 $as_echo_n "(cached) " >&6
7115else
7116 lt_cv_apple_cc_single_mod=no
7117 if test -z "${LT_MULTI_MODULE}"; then
7118 # By default we will add the -single_module flag. You can override
7119 # by either setting the environment variable LT_MULTI_MODULE
7120 # non-empty at configure time, or by adding -multi_module to the
7121 # link flags.
7122 rm -rf libconftest.dylib*
7123 echo "int foo(void){return 1;}" > conftest.c
7124 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7125-dynamiclib -Wl,-single_module conftest.c" >&5
7126 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7127 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7128 _lt_result=$?
7129 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7130 lt_cv_apple_cc_single_mod=yes
7131 else
7132 cat conftest.err >&5
7133 fi
7134 rm -rf libconftest.dylib*
7135 rm -f conftest.*
7136 fi
7137fi
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7139$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7141$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7142if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7144else
7145 lt_cv_ld_exported_symbols_list=no
7146 save_LDFLAGS=$LDFLAGS
7147 echo "_main" > conftest.sym
7148 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150/* end confdefs.h. */
7151
7152int
7153main ()
7154{
7155
7156 ;
7157 return 0;
7158}
7159_ACEOF
7160if ac_fn_c_try_link "$LINENO"; then :
7161 lt_cv_ld_exported_symbols_list=yes
7162else
7163 lt_cv_ld_exported_symbols_list=no
7164fi
7165rm -f core conftest.err conftest.$ac_objext \
7166 conftest$ac_exeext conftest.$ac_ext
7167 LDFLAGS="$save_LDFLAGS"
7168
7169fi
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7171$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7172 case $host_os in
7173 rhapsody* | darwin1.[012])
7174 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7175 darwin1.*)
7176 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7177 darwin*) # darwin 5.x on
7178 # if running on 10.5 or later, the deployment target defaults
7179 # to the OS version, if on x86, and 10.4, the deployment
7180 # target defaults to 10.4. Don't you love it?
7181 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7182 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7183 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7184 10.[012]*)
7185 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7186 10.*)
7187 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7188 esac
7189 ;;
7190 esac
7191 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7192 _lt_dar_single_mod='$single_module'
7193 fi
7194 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7195 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7196 else
7197 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7198 fi
7199 if test "$DSYMUTIL" != ":"; then
7200 _lt_dsymutil='~$DSYMUTIL $lib || :'
7201 else
7202 _lt_dsymutil=
7203 fi
7204 ;;
7205 esac
7206
7207
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7209$as_echo_n "checking for ANSI C header files... " >&6; }
7210if test "${ac_cv_header_stdc+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7212else
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214/* end confdefs.h. */
7215#include <stdlib.h>
7216#include <stdarg.h>
7217#include <string.h>
7218#include <float.h>
7219
7220int
7221main ()
7222{
7223
7224 ;
7225 return 0;
7226}
7227_ACEOF
7228if ac_fn_c_try_compile "$LINENO"; then :
7229 ac_cv_header_stdc=yes
7230else
7231 ac_cv_header_stdc=no
7232fi
7233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234
7235if test $ac_cv_header_stdc = yes; then
7236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h. */
7239#include <string.h>
7240
7241_ACEOF
7242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7243 $EGREP "memchr" >/dev/null 2>&1; then :
7244
7245else
7246 ac_cv_header_stdc=no
7247fi
7248rm -f conftest*
7249
7250fi
7251
7252if test $ac_cv_header_stdc = yes; then
7253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h. */
7256#include <stdlib.h>
7257
7258_ACEOF
7259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7260 $EGREP "free" >/dev/null 2>&1; then :
7261
7262else
7263 ac_cv_header_stdc=no
7264fi
7265rm -f conftest*
7266
7267fi
7268
7269if test $ac_cv_header_stdc = yes; then
7270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7271 if test "$cross_compiling" = yes; then :
7272 :
7273else
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275/* end confdefs.h. */
7276#include <ctype.h>
7277#include <stdlib.h>
7278#if ((' ' & 0x0FF) == 0x020)
7279# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7280# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7281#else
7282# define ISLOWER(c) \
7283 (('a' <= (c) && (c) <= 'i') \
7284 || ('j' <= (c) && (c) <= 'r') \
7285 || ('s' <= (c) && (c) <= 'z'))
7286# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7287#endif
7288
7289#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7290int
7291main ()
7292{
7293 int i;
7294 for (i = 0; i < 256; i++)
7295 if (XOR (islower (i), ISLOWER (i))
7296 || toupper (i) != TOUPPER (i))
7297 return 2;
7298 return 0;
7299}
7300_ACEOF
7301if ac_fn_c_try_run "$LINENO"; then :
7302
7303else
7304 ac_cv_header_stdc=no
7305fi
7306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7307 conftest.$ac_objext conftest.beam conftest.$ac_ext
7308fi
7309
7310fi
7311fi
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7313$as_echo "$ac_cv_header_stdc" >&6; }
7314if test $ac_cv_header_stdc = yes; then
7315
7316$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7317
7318fi
7319
7320# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7322 inttypes.h stdint.h unistd.h
7323do :
7324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7325ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7326"
7327eval as_val=\$$as_ac_Header
7328 if test "x$as_val" = x""yes; then :
7329 cat >>confdefs.h <<_ACEOF
7330#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7331_ACEOF
7332
7333fi
7334
7335done
7336
7337
7338for ac_header in dlfcn.h
7339do :
7340 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7341"
7342if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7343 cat >>confdefs.h <<_ACEOF
7344#define HAVE_DLFCN_H 1
7345_ACEOF
7346
7347fi
7348
7349done
7350
7351
7352
7353ac_ext=cpp
7354ac_cpp='$CXXCPP $CPPFLAGS'
7355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7358if test -z "$CXX"; then
7359 if test -n "$CCC"; then
7360 CXX=$CCC
7361 else
7362 if test -n "$ac_tool_prefix"; then
7363 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7364 do
7365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7366set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368$as_echo_n "checking for $ac_word... " >&6; }
7369if test "${ac_cv_prog_CXX+set}" = set; then :
7370 $as_echo_n "(cached) " >&6
7371else
7372 if test -n "$CXX"; then
7373 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7374else
7375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376for as_dir in $PATH
7377do
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7385 fi
7386done
7387 done
7388IFS=$as_save_IFS
7389
7390fi
7391fi
7392CXX=$ac_cv_prog_CXX
7393if test -n "$CXX"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7395$as_echo "$CXX" >&6; }
7396else
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398$as_echo "no" >&6; }
7399fi
7400
7401
7402 test -n "$CXX" && break
7403 done
7404fi
7405if test -z "$CXX"; then
7406 ac_ct_CXX=$CXX
7407 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7408do
7409 # Extract the first word of "$ac_prog", so it can be a program name with args.
7410set dummy $ac_prog; ac_word=$2
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412$as_echo_n "checking for $ac_word... " >&6; }
7413if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415else
7416 if test -n "$ac_ct_CXX"; then
7417 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7418else
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_prog_ac_ct_CXX="$ac_prog"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7429 fi
7430done
7431 done
7432IFS=$as_save_IFS
7433
7434fi
7435fi
7436ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7437if test -n "$ac_ct_CXX"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7439$as_echo "$ac_ct_CXX" >&6; }
7440else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442$as_echo "no" >&6; }
7443fi
7444
7445
7446 test -n "$ac_ct_CXX" && break
7447done
7448
7449 if test "x$ac_ct_CXX" = x; then
7450 CXX="g++"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453yes:)
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456ac_tool_warned=yes ;;
7457esac
7458 CXX=$ac_ct_CXX
7459 fi
7460fi
7461
7462 fi
7463fi
7464# Provide some information about the compiler.
7465$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7466set X $ac_compile
7467ac_compiler=$2
7468for ac_option in --version -v -V -qversion; do
7469 { { ac_try="$ac_compiler $ac_option >&5"
7470case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473esac
7474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7475$as_echo "$ac_try_echo"; } >&5
7476 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7477 ac_status=$?
7478 if test -s conftest.err; then
7479 sed '10a\
7480... rest of stderr output deleted ...
7481 10q' conftest.err >conftest.er1
7482 cat conftest.er1 >&5
7483 fi
7484 rm -f conftest.er1 conftest.err
7485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7486 test $ac_status = 0; }
7487done
7488
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7490$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7491if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7493else
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h. */
7496
7497int
7498main ()
7499{
7500#ifndef __GNUC__
7501 choke me
7502#endif
7503
7504 ;
7505 return 0;
7506}
7507_ACEOF
7508if ac_fn_cxx_try_compile "$LINENO"; then :
7509 ac_compiler_gnu=yes
7510else
7511 ac_compiler_gnu=no
7512fi
7513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7515
7516fi
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7518$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7519if test $ac_compiler_gnu = yes; then
7520 GXX=yes
7521else
7522 GXX=
7523fi
7524ac_test_CXXFLAGS=${CXXFLAGS+set}
7525ac_save_CXXFLAGS=$CXXFLAGS
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7527$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7528if test "${ac_cv_prog_cxx_g+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530else
7531 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7532 ac_cxx_werror_flag=yes
7533 ac_cv_prog_cxx_g=no
7534 CXXFLAGS="-g"
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536/* end confdefs.h. */
7537
7538int
7539main ()
7540{
7541
7542 ;
7543 return 0;
7544}
7545_ACEOF
7546if ac_fn_cxx_try_compile "$LINENO"; then :
7547 ac_cv_prog_cxx_g=yes
7548else
7549 CXXFLAGS=""
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551/* end confdefs.h. */
7552
7553int
7554main ()
7555{
7556
7557 ;
7558 return 0;
7559}
7560_ACEOF
7561if ac_fn_cxx_try_compile "$LINENO"; then :
7562
7563else
7564 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7565 CXXFLAGS="-g"
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567/* end confdefs.h. */
7568
7569int
7570main ()
7571{
7572
7573 ;
7574 return 0;
7575}
7576_ACEOF
7577if ac_fn_cxx_try_compile "$LINENO"; then :
7578 ac_cv_prog_cxx_g=yes
7579fi
7580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581fi
7582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583fi
7584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7588$as_echo "$ac_cv_prog_cxx_g" >&6; }
7589if test "$ac_test_CXXFLAGS" = set; then
7590 CXXFLAGS=$ac_save_CXXFLAGS
7591elif test $ac_cv_prog_cxx_g = yes; then
7592 if test "$GXX" = yes; then
7593 CXXFLAGS="-g -O2"
7594 else
7595 CXXFLAGS="-g"
7596 fi
7597else
7598 if test "$GXX" = yes; then
7599 CXXFLAGS="-O2"
7600 else
7601 CXXFLAGS=
7602 fi
7603fi
7604ac_ext=c
7605ac_cpp='$CPP $CPPFLAGS'
7606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7608ac_compiler_gnu=$ac_cv_c_compiler_gnu
7609
7610depcc="$CXX" am_compiler_list=
7611
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7613$as_echo_n "checking dependency style of $depcc... " >&6; }
7614if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7615 $as_echo_n "(cached) " >&6
7616else
7617 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7618 # We make a subdir and do the tests there. Otherwise we can end up
7619 # making bogus files that we don't know about and never remove. For
7620 # instance it was reported that on HP-UX the gcc test will end up
7621 # making a dummy file named `D' -- because `-MD' means `put the output
7622 # in D'.
7623 mkdir conftest.dir
7624 # Copy depcomp to subdir because otherwise we won't find it if we're
7625 # using a relative directory.
7626 cp "$am_depcomp" conftest.dir
7627 cd conftest.dir
7628 # We will build objects and dependencies in a subdirectory because
7629 # it helps to detect inapplicable dependency modes. For instance
7630 # both Tru64's cc and ICC support -MD to output dependencies as a
7631 # side effect of compilation, but ICC will put the dependencies in
7632 # the current directory while Tru64 will put them in the object
7633 # directory.
7634 mkdir sub
7635
7636 am_cv_CXX_dependencies_compiler_type=none
7637 if test "$am_compiler_list" = ""; then
7638 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7639 fi
7640 am__universal=false
7641 case " $depcc " in #(
7642 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7643 esac
7644
7645 for depmode in $am_compiler_list; do
7646 # Setup a source with many dependencies, because some compilers
7647 # like to wrap large dependency lists on column 80 (with \), and
7648 # we should not choose a depcomp mode which is confused by this.
7649 #
7650 # We need to recreate these files for each test, as the compiler may
7651 # overwrite some of them when testing with obscure command lines.
7652 # This happens at least with the AIX C compiler.
7653 : > sub/conftest.c
7654 for i in 1 2 3 4 5 6; do
7655 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7656 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7657 # Solaris 8's {/usr,}/bin/sh.
7658 touch sub/conftst$i.h
7659 done
7660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7661
7662 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7663 # mode. It turns out that the SunPro C++ compiler does not properly
7664 # handle `-M -o', and we need to detect this. Also, some Intel
7665 # versions had trouble with output in subdirs
7666 am__obj=sub/conftest.${OBJEXT-o}
7667 am__minus_obj="-o $am__obj"
7668 case $depmode in
7669 gcc)
7670 # This depmode causes a compiler race in universal mode.
7671 test "$am__universal" = false || continue
7672 ;;
7673 nosideeffect)
7674 # after this tag, mechanisms are not by side-effect, so they'll
7675 # only be used when explicitly requested
7676 if test "x$enable_dependency_tracking" = xyes; then
7677 continue
7678 else
7679 break
7680 fi
7681 ;;
7682 msvisualcpp | msvcmsys)
7683 # This compiler won't grok `-c -o', but also, the minuso test has
7684 # not run yet. These depmodes are late enough in the game, and
7685 # so weak that their functioning should not be impacted.
7686 am__obj=conftest.${OBJEXT-o}
7687 am__minus_obj=
7688 ;;
7689 none) break ;;
7690 esac
7691 if depmode=$depmode \
7692 source=sub/conftest.c object=$am__obj \
7693 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7694 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7695 >/dev/null 2>conftest.err &&
7696 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7697 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7698 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7699 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7700 # icc doesn't choke on unknown options, it will just issue warnings
7701 # or remarks (even with -Werror). So we grep stderr for any message
7702 # that says an option was ignored or not supported.
7703 # When given -MP, icc 7.0 and 7.1 complain thusly:
7704 # icc: Command line warning: ignoring option '-M'; no argument required
7705 # The diagnosis changed in icc 8.0:
7706 # icc: Command line remark: option '-MP' not supported
7707 if (grep 'ignoring option' conftest.err ||
7708 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7709 am_cv_CXX_dependencies_compiler_type=$depmode
7710 break
7711 fi
7712 fi
7713 done
7714
7715 cd ..
7716 rm -rf conftest.dir
7717else
7718 am_cv_CXX_dependencies_compiler_type=none
7719fi
7720
7721fi
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7723$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7724CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7725
7726 if
7727 test "x$enable_dependency_tracking" != xno \
7728 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7729 am__fastdepCXX_TRUE=
7730 am__fastdepCXX_FALSE='#'
7731else
7732 am__fastdepCXX_TRUE='#'
7733 am__fastdepCXX_FALSE=
7734fi
7735
7736
7737if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7738 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7739 (test "X$CXX" != "Xg++"))) ; then
7740 ac_ext=cpp
7741ac_cpp='$CXXCPP $CPPFLAGS'
7742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7746$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7747if test -z "$CXXCPP"; then
7748 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
7750else
7751 # Double quotes because CXXCPP needs to be expanded
7752 for CXXCPP in "$CXX -E" "/lib/cpp"
7753 do
7754 ac_preproc_ok=false
7755for ac_cxx_preproc_warn_flag in '' yes
7756do
7757 # Use a header file that comes with gcc, so configuring glibc
7758 # with a fresh cross-compiler works.
7759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7760 # <limits.h> exists even on freestanding compilers.
7761 # On the NeXT, cc -E runs the code through the compiler's parser,
7762 # not just through cpp. "Syntax error" is here to catch this case.
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h. */
7765#ifdef __STDC__
7766# include <limits.h>
7767#else
7768# include <assert.h>
7769#endif
7770 Syntax error
7771_ACEOF
7772if ac_fn_cxx_try_cpp "$LINENO"; then :
7773
7774else
7775 # Broken: fails on valid input.
7776continue
7777fi
7778rm -f conftest.err conftest.$ac_ext
7779
7780 # OK, works on sane cases. Now check whether nonexistent headers
7781 # can be detected and how.
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783/* end confdefs.h. */
7784#include <ac_nonexistent.h>
7785_ACEOF
7786if ac_fn_cxx_try_cpp "$LINENO"; then :
7787 # Broken: success on invalid input.
7788continue
7789else
7790 # Passes both tests.
7791ac_preproc_ok=:
7792break
7793fi
7794rm -f conftest.err conftest.$ac_ext
7795
7796done
7797# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7798rm -f conftest.err conftest.$ac_ext
7799if $ac_preproc_ok; then :
7800 break
7801fi
7802
7803 done
7804 ac_cv_prog_CXXCPP=$CXXCPP
7805
7806fi
7807 CXXCPP=$ac_cv_prog_CXXCPP
7808else
7809 ac_cv_prog_CXXCPP=$CXXCPP
7810fi
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7812$as_echo "$CXXCPP" >&6; }
7813ac_preproc_ok=false
7814for ac_cxx_preproc_warn_flag in '' yes
7815do
7816 # Use a header file that comes with gcc, so configuring glibc
7817 # with a fresh cross-compiler works.
7818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7819 # <limits.h> exists even on freestanding compilers.
7820 # On the NeXT, cc -E runs the code through the compiler's parser,
7821 # not just through cpp. "Syntax error" is here to catch this case.
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823/* end confdefs.h. */
7824#ifdef __STDC__
7825# include <limits.h>
7826#else
7827# include <assert.h>
7828#endif
7829 Syntax error
7830_ACEOF
7831if ac_fn_cxx_try_cpp "$LINENO"; then :
7832
7833else
7834 # Broken: fails on valid input.
7835continue
7836fi
7837rm -f conftest.err conftest.$ac_ext
7838
7839 # OK, works on sane cases. Now check whether nonexistent headers
7840 # can be detected and how.
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842/* end confdefs.h. */
7843#include <ac_nonexistent.h>
7844_ACEOF
7845if ac_fn_cxx_try_cpp "$LINENO"; then :
7846 # Broken: success on invalid input.
7847continue
7848else
7849 # Passes both tests.
7850ac_preproc_ok=:
7851break
7852fi
7853rm -f conftest.err conftest.$ac_ext
7854
7855done
7856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7857rm -f conftest.err conftest.$ac_ext
7858if $ac_preproc_ok; then :
7859
7860else
7861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7863_lt_caught_CXX_error=yes; }
7864fi
7865
7866ac_ext=c
7867ac_cpp='$CPP $CPPFLAGS'
7868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7870ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871
7872else
7873 _lt_caught_CXX_error=yes
7874fi
7875
7876
7877
7878
7879
7880# Set options
7881
7882
7883
7884 enable_dlopen=no
7885
7886
7887 enable_win32_dll=no
7888
7889
7890 # Check whether --enable-shared was given.
7891if test "${enable_shared+set}" = set; then :
7892 enableval=$enable_shared; p=${PACKAGE-default}
7893 case $enableval in
7894 yes) enable_shared=yes ;;
7895 no) enable_shared=no ;;
7896 *)
7897 enable_shared=no
7898 # Look at the argument we got. We use all the common list separators.
7899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7900 for pkg in $enableval; do
7901 IFS="$lt_save_ifs"
7902 if test "X$pkg" = "X$p"; then
7903 enable_shared=yes
7904 fi
7905 done
7906 IFS="$lt_save_ifs"
7907 ;;
7908 esac
7909else
7910 enable_shared=yes
7911fi
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921 # Check whether --enable-static was given.
7922if test "${enable_static+set}" = set; then :
7923 enableval=$enable_static; p=${PACKAGE-default}
7924 case $enableval in
7925 yes) enable_static=yes ;;
7926 no) enable_static=no ;;
7927 *)
7928 enable_static=no
7929 # Look at the argument we got. We use all the common list separators.
7930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7931 for pkg in $enableval; do
7932 IFS="$lt_save_ifs"
7933 if test "X$pkg" = "X$p"; then
7934 enable_static=yes
7935 fi
7936 done
7937 IFS="$lt_save_ifs"
7938 ;;
7939 esac
7940else
7941 enable_static=yes
7942fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953# Check whether --with-pic was given.
7954if test "${with_pic+set}" = set; then :
7955 withval=$with_pic; pic_mode="$withval"
7956else
7957 pic_mode=default
7958fi
7959
7960
7961test -z "$pic_mode" && pic_mode=default
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973# This can be used to rebuild libtool when needed
7974LIBTOOL_DEPS="$ltmain"
7975
7976# Always use our own libtool.
7977LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003test -z "$LN_S" && LN_S="ln -s"
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018if test -n "${ZSH_VERSION+set}" ; then
8019 setopt NO_GLOB_SUBST
8020fi
8021
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8023$as_echo_n "checking for objdir... " >&6; }
8024if test "${lt_cv_objdir+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00008026else
8027 rm -f .libs 2>/dev/null
8028mkdir .libs 2>/dev/null
8029if test -d .libs; then
8030 lt_cv_objdir=.libs
8031else
8032 # MS-DOS does not allow filenames that begin with a dot.
8033 lt_cv_objdir=_libs
8034fi
8035rmdir .libs 2>/dev/null
8036fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8038$as_echo "$lt_cv_objdir" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008039objdir=$lt_cv_objdir
8040
8041
8042
8043
8044
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008045cat >>confdefs.h <<_ACEOF
8046#define LT_OBJDIR "$lt_cv_objdir/"
8047_ACEOF
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
openvcdiff311c7142008-08-26 19:29:25 +00008065case $host_os in
8066aix3*)
8067 # AIX sometimes has problems with the GCC collect2 program. For some
8068 # reason, if we set the COLLECT_NAMES environment variable, the problems
8069 # vanish in a puff of smoke.
8070 if test "X${COLLECT_NAMES+set}" != Xset; then
8071 COLLECT_NAMES=
8072 export COLLECT_NAMES
8073 fi
8074 ;;
8075esac
8076
8077# Sed substitution that helps us do robust quoting. It backslashifies
8078# metacharacters that are still active within double-quoted strings.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008079sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
openvcdiff311c7142008-08-26 19:29:25 +00008080
8081# Same as above, but do not quote variable references.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008082double_quote_subst='s/\(["`\\]\)/\\\1/g'
openvcdiff311c7142008-08-26 19:29:25 +00008083
8084# Sed substitution to delay expansion of an escaped shell variable in a
8085# double_quote_subst'ed string.
8086delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8087
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008088# Sed substitution to delay expansion of an escaped single quote.
8089delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8090
openvcdiff311c7142008-08-26 19:29:25 +00008091# Sed substitution to avoid accidental globbing in evaled expressions
8092no_glob_subst='s/\*/\\\*/g'
8093
openvcdiff311c7142008-08-26 19:29:25 +00008094# Global variables:
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008095ofile=libtool
openvcdiff311c7142008-08-26 19:29:25 +00008096can_build_shared=yes
8097
8098# All known linkers require a `.a' archive for static linking (except MSVC,
8099# which needs '.lib').
8100libext=a
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008101
openvcdiff311c7142008-08-26 19:29:25 +00008102with_gnu_ld="$lt_cv_prog_gnu_ld"
8103
openvcdiff311c7142008-08-26 19:29:25 +00008104old_CC="$CC"
8105old_CFLAGS="$CFLAGS"
8106
8107# Set sane defaults for various variables
openvcdiff311c7142008-08-26 19:29:25 +00008108test -z "$CC" && CC=cc
8109test -z "$LTCC" && LTCC=$CC
8110test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
openvcdiff311c7142008-08-26 19:29:25 +00008111test -z "$LD" && LD=ld
openvcdiff311c7142008-08-26 19:29:25 +00008112test -z "$ac_objext" && ac_objext=o
8113
openvcdiff311c7142008-08-26 19:29:25 +00008114for cc_temp in $compiler""; do
8115 case $cc_temp in
8116 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8117 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8118 \-*) ;;
8119 *) break;;
8120 esac
8121done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008122cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
openvcdiff311c7142008-08-26 19:29:25 +00008123
8124
8125# Only perform the check for file, if the check method requires it
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008126test -z "$MAGIC_CMD" && MAGIC_CMD=file
openvcdiff311c7142008-08-26 19:29:25 +00008127case $deplibs_check_method in
8128file_magic*)
8129 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8131$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8132if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00008134else
8135 case $MAGIC_CMD in
8136[\\/*] | ?:[\\/]*)
8137 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8138 ;;
8139*)
8140 lt_save_MAGIC_CMD="$MAGIC_CMD"
8141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8142 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8143 for ac_dir in $ac_dummy; do
8144 IFS="$lt_save_ifs"
8145 test -z "$ac_dir" && ac_dir=.
8146 if test -f $ac_dir/${ac_tool_prefix}file; then
8147 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8148 if test -n "$file_magic_test_file"; then
8149 case $deplibs_check_method in
8150 "file_magic "*)
8151 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8154 $EGREP "$file_magic_regex" > /dev/null; then
8155 :
8156 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008157 cat <<_LT_EOF 1>&2
openvcdiff311c7142008-08-26 19:29:25 +00008158
8159*** Warning: the command libtool uses to detect shared libraries,
8160*** $file_magic_cmd, produces output that libtool cannot recognize.
8161*** The result is that libtool may fail to recognize shared libraries
8162*** as such. This will affect the creation of libtool libraries that
8163*** depend on shared libraries, but programs linked with such libtool
8164*** libraries will work regardless of this problem. Nevertheless, you
8165*** may want to report the problem to your system manager and/or to
8166*** bug-libtool@gnu.org
8167
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008168_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +00008169 fi ;;
8170 esac
8171 fi
8172 break
8173 fi
8174 done
8175 IFS="$lt_save_ifs"
8176 MAGIC_CMD="$lt_save_MAGIC_CMD"
8177 ;;
8178esac
8179fi
8180
8181MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8182if test -n "$MAGIC_CMD"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8184$as_echo "$MAGIC_CMD" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008185else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008188fi
8189
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008190
8191
8192
8193
openvcdiff311c7142008-08-26 19:29:25 +00008194if test -z "$lt_cv_path_MAGIC_CMD"; then
8195 if test -n "$ac_tool_prefix"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8197$as_echo_n "checking for file... " >&6; }
8198if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00008200else
8201 case $MAGIC_CMD in
8202[\\/*] | ?:[\\/]*)
8203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8204 ;;
8205*)
8206 lt_save_MAGIC_CMD="$MAGIC_CMD"
8207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8209 for ac_dir in $ac_dummy; do
8210 IFS="$lt_save_ifs"
8211 test -z "$ac_dir" && ac_dir=.
8212 if test -f $ac_dir/file; then
8213 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8214 if test -n "$file_magic_test_file"; then
8215 case $deplibs_check_method in
8216 "file_magic "*)
8217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8220 $EGREP "$file_magic_regex" > /dev/null; then
8221 :
8222 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008223 cat <<_LT_EOF 1>&2
openvcdiff311c7142008-08-26 19:29:25 +00008224
8225*** Warning: the command libtool uses to detect shared libraries,
8226*** $file_magic_cmd, produces output that libtool cannot recognize.
8227*** The result is that libtool may fail to recognize shared libraries
8228*** as such. This will affect the creation of libtool libraries that
8229*** depend on shared libraries, but programs linked with such libtool
8230*** libraries will work regardless of this problem. Nevertheless, you
8231*** may want to report the problem to your system manager and/or to
8232*** bug-libtool@gnu.org
8233
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008234_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +00008235 fi ;;
8236 esac
8237 fi
8238 break
8239 fi
8240 done
8241 IFS="$lt_save_ifs"
8242 MAGIC_CMD="$lt_save_MAGIC_CMD"
8243 ;;
8244esac
8245fi
8246
8247MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8248if test -n "$MAGIC_CMD"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8250$as_echo "$MAGIC_CMD" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008251else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008254fi
8255
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008256
openvcdiff311c7142008-08-26 19:29:25 +00008257 else
8258 MAGIC_CMD=:
8259 fi
8260fi
8261
8262 fi
8263 ;;
8264esac
8265
openvcdiff311c7142008-08-26 19:29:25 +00008266# Use C for the default configuration in the libtool script
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008267
openvcdiff311c7142008-08-26 19:29:25 +00008268lt_save_CC="$CC"
8269ac_ext=c
8270ac_cpp='$CPP $CPPFLAGS'
8271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8273ac_compiler_gnu=$ac_cv_c_compiler_gnu
8274
8275
8276# Source file extension for C test sources.
8277ac_ext=c
8278
8279# Object file extension for compiled C test sources.
8280objext=o
8281objext=$objext
8282
8283# Code to be used in simple compile tests
openvcdiffd1845782009-03-20 21:56:15 +00008284lt_simple_compile_test_code="int some_variable = 0;"
openvcdiff311c7142008-08-26 19:29:25 +00008285
8286# Code to be used in simple link tests
openvcdiffd1845782009-03-20 21:56:15 +00008287lt_simple_link_test_code='int main(){return(0);}'
openvcdiff311c7142008-08-26 19:29:25 +00008288
8289
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008290
8291
8292
8293
8294
openvcdiff311c7142008-08-26 19:29:25 +00008295# If no C compiler was specified, use CC.
8296LTCC=${LTCC-"$CC"}
8297
8298# If no C compiler flags were specified, use CFLAGS.
8299LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8300
8301# Allow CC to be a program name with arguments.
8302compiler=$CC
8303
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008304# Save the default compiler, since it gets overwritten when the other
8305# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8306compiler_DEFAULT=$CC
openvcdiff311c7142008-08-26 19:29:25 +00008307
8308# save warnings/boilerplate of simple test code
8309ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00008310echo "$lt_simple_compile_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00008311eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8312_lt_compiler_boilerplate=`cat conftest.err`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008313$RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +00008314
8315ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00008316echo "$lt_simple_link_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00008317eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8318_lt_linker_boilerplate=`cat conftest.err`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008319$RM -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +00008320
8321
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008322## CAVEAT EMPTOR:
8323## There is no encapsulation within the following macros, do not change
8324## the running order or otherwise move them around unless you know exactly
8325## what you are doing...
8326if test -n "$compiler"; then
openvcdiff311c7142008-08-26 19:29:25 +00008327
8328lt_prog_compiler_no_builtin_flag=
8329
8330if test "$GCC" = yes; then
8331 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8332
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8334$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8335if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00008337else
8338 lt_cv_prog_compiler_rtti_exceptions=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008339 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00008340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00008341 lt_compiler_flag="-fno-rtti -fno-exceptions"
8342 # Insert the option either (1) after the last *FLAGS variable, or
8343 # (2) before a word containing "conftest.", or (3) at the end.
8344 # Note that $ac_compile itself does not contain backslashes and begins
8345 # with a dollar sign (not a hyphen), so the echo should work correctly.
8346 # The option is referenced via a variable to avoid confusing sed.
8347 lt_compile=`echo "$ac_compile" | $SED \
8348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8350 -e 's:$: $lt_compiler_flag:'`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008351 (eval echo "\"\$as_me:8351: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +00008352 (eval "$lt_compile" 2>conftest.err)
8353 ac_status=$?
8354 cat conftest.err >&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008355 echo "$as_me:8355: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +00008356 if (exit $ac_status) && test -s "$ac_outfile"; then
8357 # The compiler can only warn and ignore the option if not recognized
8358 # So say no if there are warnings other than the usual output.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008359 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
openvcdiff311c7142008-08-26 19:29:25 +00008360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8362 lt_cv_prog_compiler_rtti_exceptions=yes
8363 fi
8364 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008365 $RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +00008366
8367fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8369$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008370
8371if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8372 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8373else
8374 :
8375fi
8376
8377fi
8378
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008379
8380
8381
8382
8383
8384 lt_prog_compiler_wl=
openvcdiff311c7142008-08-26 19:29:25 +00008385lt_prog_compiler_pic=
8386lt_prog_compiler_static=
8387
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8389$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008390
8391 if test "$GCC" = yes; then
8392 lt_prog_compiler_wl='-Wl,'
8393 lt_prog_compiler_static='-static'
8394
8395 case $host_os in
8396 aix*)
8397 # All AIX code is PIC.
8398 if test "$host_cpu" = ia64; then
8399 # AIX 5 now supports IA64 processor
8400 lt_prog_compiler_static='-Bstatic'
8401 fi
8402 ;;
8403
8404 amigaos*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008405 case $host_cpu in
8406 powerpc)
8407 # see comment about AmigaOS4 .so support
8408 lt_prog_compiler_pic='-fPIC'
8409 ;;
8410 m68k)
8411 # FIXME: we need at least 68020 code to build shared libraries, but
8412 # adding the `-m68020' flag to GCC prevents building anything better,
8413 # like `-m68040'.
8414 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8415 ;;
8416 esac
openvcdiff311c7142008-08-26 19:29:25 +00008417 ;;
8418
openvcdiffd1845782009-03-20 21:56:15 +00008419 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
openvcdiff311c7142008-08-26 19:29:25 +00008420 # PIC is the default for these OSes.
8421 ;;
8422
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008423 mingw* | cygwin* | pw32* | os2* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +00008424 # This hack is so that the source file can tell whether it is being
8425 # built for inclusion in a dll (and should export symbols for example).
openvcdiffd1845782009-03-20 21:56:15 +00008426 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8427 # (--disable-auto-import) libraries
openvcdiff311c7142008-08-26 19:29:25 +00008428 lt_prog_compiler_pic='-DDLL_EXPORT'
8429 ;;
8430
8431 darwin* | rhapsody*)
8432 # PIC is the default on this platform
8433 # Common symbols not allowed in MH_DYLIB files
8434 lt_prog_compiler_pic='-fno-common'
8435 ;;
8436
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008437 hpux*)
8438 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8439 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8440 # sets the default TLS model and affects inlining.
8441 case $host_cpu in
8442 hppa*64*)
8443 # +Z the default
8444 ;;
8445 *)
8446 lt_prog_compiler_pic='-fPIC'
8447 ;;
8448 esac
8449 ;;
8450
openvcdiffd1845782009-03-20 21:56:15 +00008451 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00008452 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8453 # Instead, we relocate shared libraries at runtime.
8454 ;;
8455
8456 msdosdjgpp*)
8457 # Just because we use GCC doesn't mean we suddenly get shared libraries
8458 # on systems that don't support them.
8459 lt_prog_compiler_can_build_shared=no
8460 enable_shared=no
8461 ;;
8462
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008463 *nto* | *qnx*)
8464 # QNX uses GNU C++, but need to define -shared option too, otherwise
8465 # it will coredump.
8466 lt_prog_compiler_pic='-fPIC -shared'
8467 ;;
8468
openvcdiff311c7142008-08-26 19:29:25 +00008469 sysv4*MP*)
8470 if test -d /usr/nec; then
8471 lt_prog_compiler_pic=-Kconform_pic
8472 fi
8473 ;;
8474
openvcdiff311c7142008-08-26 19:29:25 +00008475 *)
8476 lt_prog_compiler_pic='-fPIC'
8477 ;;
8478 esac
8479 else
8480 # PORTME Check for flag to pass linker flags through the system compiler.
8481 case $host_os in
8482 aix*)
8483 lt_prog_compiler_wl='-Wl,'
8484 if test "$host_cpu" = ia64; then
8485 # AIX 5 now supports IA64 processor
8486 lt_prog_compiler_static='-Bstatic'
8487 else
8488 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8489 fi
8490 ;;
openvcdiff311c7142008-08-26 19:29:25 +00008491
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008492 mingw* | cygwin* | pw32* | os2* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +00008493 # This hack is so that the source file can tell whether it is being
8494 # built for inclusion in a dll (and should export symbols for example).
8495 lt_prog_compiler_pic='-DDLL_EXPORT'
8496 ;;
8497
8498 hpux9* | hpux10* | hpux11*)
8499 lt_prog_compiler_wl='-Wl,'
8500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8501 # not for PA HP-UX.
8502 case $host_cpu in
8503 hppa*64*|ia64*)
8504 # +Z the default
8505 ;;
8506 *)
8507 lt_prog_compiler_pic='+Z'
8508 ;;
8509 esac
8510 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8511 lt_prog_compiler_static='${wl}-a ${wl}archive'
8512 ;;
8513
8514 irix5* | irix6* | nonstopux*)
8515 lt_prog_compiler_wl='-Wl,'
8516 # PIC (with -KPIC) is the default.
8517 lt_prog_compiler_static='-non_shared'
8518 ;;
8519
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008520 linux* | k*bsd*-gnu | kopensolaris*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +00008521 case $cc_basename in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008522 # old Intel for x86_64 which still supported -KPIC.
8523 ecc*)
openvcdiff311c7142008-08-26 19:29:25 +00008524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-static'
8527 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008528 # icc used to be incompatible with GCC.
8529 # ICC 10 doesn't accept -KPIC any more.
8530 icc* | ifort*)
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_pic='-fPIC'
8533 lt_prog_compiler_static='-static'
8534 ;;
8535 # Lahey Fortran 8.1.
8536 lf95*)
8537 lt_prog_compiler_wl='-Wl,'
8538 lt_prog_compiler_pic='--shared'
8539 lt_prog_compiler_static='--static'
8540 ;;
openvcdiff311c7142008-08-26 19:29:25 +00008541 pgcc* | pgf77* | pgf90* | pgf95*)
8542 # Portland Group compilers (*not* the Pentium gcc compiler,
8543 # which looks to be a dead project)
8544 lt_prog_compiler_wl='-Wl,'
8545 lt_prog_compiler_pic='-fpic'
8546 lt_prog_compiler_static='-Bstatic'
8547 ;;
8548 ccc*)
8549 lt_prog_compiler_wl='-Wl,'
8550 # All Alpha code is PIC.
8551 lt_prog_compiler_static='-non_shared'
8552 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008553 xl*)
8554 # IBM XL C 8.0/Fortran 10.1 on PPC
8555 lt_prog_compiler_wl='-Wl,'
8556 lt_prog_compiler_pic='-qpic'
8557 lt_prog_compiler_static='-qstaticlink'
8558 ;;
openvcdiffd1845782009-03-20 21:56:15 +00008559 *)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008560 case `$CC -V 2>&1 | sed 5q` in
openvcdiffd1845782009-03-20 21:56:15 +00008561 *Sun\ C*)
8562 # Sun C 5.9
8563 lt_prog_compiler_pic='-KPIC'
8564 lt_prog_compiler_static='-Bstatic'
8565 lt_prog_compiler_wl='-Wl,'
8566 ;;
8567 *Sun\ F*)
8568 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8569 lt_prog_compiler_pic='-KPIC'
8570 lt_prog_compiler_static='-Bstatic'
8571 lt_prog_compiler_wl=''
8572 ;;
8573 esac
8574 ;;
openvcdiff311c7142008-08-26 19:29:25 +00008575 esac
8576 ;;
8577
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008578 newsos6)
8579 lt_prog_compiler_pic='-KPIC'
8580 lt_prog_compiler_static='-Bstatic'
8581 ;;
8582
8583 *nto* | *qnx*)
8584 # QNX uses GNU C++, but need to define -shared option too, otherwise
8585 # it will coredump.
8586 lt_prog_compiler_pic='-fPIC -shared'
8587 ;;
8588
openvcdiff311c7142008-08-26 19:29:25 +00008589 osf3* | osf4* | osf5*)
8590 lt_prog_compiler_wl='-Wl,'
8591 # All OSF/1 code is PIC.
8592 lt_prog_compiler_static='-non_shared'
8593 ;;
8594
openvcdiffd1845782009-03-20 21:56:15 +00008595 rdos*)
8596 lt_prog_compiler_static='-non_shared'
8597 ;;
8598
openvcdiff311c7142008-08-26 19:29:25 +00008599 solaris*)
8600 lt_prog_compiler_pic='-KPIC'
8601 lt_prog_compiler_static='-Bstatic'
8602 case $cc_basename in
8603 f77* | f90* | f95*)
8604 lt_prog_compiler_wl='-Qoption ld ';;
8605 *)
8606 lt_prog_compiler_wl='-Wl,';;
8607 esac
8608 ;;
8609
8610 sunos4*)
8611 lt_prog_compiler_wl='-Qoption ld '
8612 lt_prog_compiler_pic='-PIC'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615
8616 sysv4 | sysv4.2uw2* | sysv4.3*)
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-KPIC'
8619 lt_prog_compiler_static='-Bstatic'
8620 ;;
8621
8622 sysv4*MP*)
8623 if test -d /usr/nec ;then
8624 lt_prog_compiler_pic='-Kconform_pic'
8625 lt_prog_compiler_static='-Bstatic'
8626 fi
8627 ;;
8628
8629 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 ;;
8634
8635 unicos*)
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_can_build_shared=no
8638 ;;
8639
8640 uts4*)
8641 lt_prog_compiler_pic='-pic'
8642 lt_prog_compiler_static='-Bstatic'
8643 ;;
8644
8645 *)
8646 lt_prog_compiler_can_build_shared=no
8647 ;;
8648 esac
8649 fi
8650
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008651case $host_os in
8652 # For platforms which do not support PIC, -DPIC is meaningless:
8653 *djgpp*)
8654 lt_prog_compiler_pic=
8655 ;;
8656 *)
8657 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8658 ;;
8659esac
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8661$as_echo "$lt_prog_compiler_pic" >&6; }
8662
8663
8664
8665
8666
openvcdiff311c7142008-08-26 19:29:25 +00008667
8668#
8669# Check to make sure the PIC flag actually works.
8670#
8671if test -n "$lt_prog_compiler_pic"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8673$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8674if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00008676else
openvcdiffd1845782009-03-20 21:56:15 +00008677 lt_cv_prog_compiler_pic_works=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008678 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +00008679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00008680 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8681 # Insert the option either (1) after the last *FLAGS variable, or
8682 # (2) before a word containing "conftest.", or (3) at the end.
8683 # Note that $ac_compile itself does not contain backslashes and begins
8684 # with a dollar sign (not a hyphen), so the echo should work correctly.
8685 # The option is referenced via a variable to avoid confusing sed.
8686 lt_compile=`echo "$ac_compile" | $SED \
8687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8689 -e 's:$: $lt_compiler_flag:'`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008690 (eval echo "\"\$as_me:8690: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +00008691 (eval "$lt_compile" 2>conftest.err)
8692 ac_status=$?
8693 cat conftest.err >&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008694 echo "$as_me:8694: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +00008695 if (exit $ac_status) && test -s "$ac_outfile"; then
8696 # The compiler can only warn and ignore the option if not recognized
8697 # So say no if there are warnings other than the usual output.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008698 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
openvcdiff311c7142008-08-26 19:29:25 +00008699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8700 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +00008701 lt_cv_prog_compiler_pic_works=yes
openvcdiff311c7142008-08-26 19:29:25 +00008702 fi
8703 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008704 $RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +00008705
8706fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8708$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008709
openvcdiffd1845782009-03-20 21:56:15 +00008710if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +00008711 case $lt_prog_compiler_pic in
8712 "" | " "*) ;;
8713 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8714 esac
8715else
8716 lt_prog_compiler_pic=
8717 lt_prog_compiler_can_build_shared=no
8718fi
8719
8720fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008721
8722
8723
8724
8725
openvcdiff311c7142008-08-26 19:29:25 +00008726
8727#
8728# Check to make sure the static flag actually works.
8729#
8730wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8732$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8733if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8734 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00008735else
openvcdiffd1845782009-03-20 21:56:15 +00008736 lt_cv_prog_compiler_static_works=no
openvcdiff311c7142008-08-26 19:29:25 +00008737 save_LDFLAGS="$LDFLAGS"
8738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
openvcdiffd1845782009-03-20 21:56:15 +00008739 echo "$lt_simple_link_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00008740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8741 # The linker can only warn and ignore the option if not recognized
8742 # So say no if there are warnings
8743 if test -s conftest.err; then
8744 # Append any errors to the config.log.
8745 cat conftest.err 1>&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008746 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
openvcdiff311c7142008-08-26 19:29:25 +00008747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748 if diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +00008749 lt_cv_prog_compiler_static_works=yes
openvcdiff311c7142008-08-26 19:29:25 +00008750 fi
8751 else
openvcdiffd1845782009-03-20 21:56:15 +00008752 lt_cv_prog_compiler_static_works=yes
openvcdiff311c7142008-08-26 19:29:25 +00008753 fi
8754 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008755 $RM -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +00008756 LDFLAGS="$save_LDFLAGS"
8757
8758fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8760$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008761
openvcdiffd1845782009-03-20 21:56:15 +00008762if test x"$lt_cv_prog_compiler_static_works" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +00008763 :
8764else
8765 lt_prog_compiler_static=
8766fi
8767
8768
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008769
8770
8771
8772
8773
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8775$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8776if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +00008778else
8779 lt_cv_prog_compiler_c_o=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008780 $RM -r conftest 2>/dev/null
openvcdiff311c7142008-08-26 19:29:25 +00008781 mkdir conftest
8782 cd conftest
8783 mkdir out
openvcdiffd1845782009-03-20 21:56:15 +00008784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00008785
8786 lt_compiler_flag="-o out/conftest2.$ac_objext"
8787 # Insert the option either (1) after the last *FLAGS variable, or
8788 # (2) before a word containing "conftest.", or (3) at the end.
8789 # Note that $ac_compile itself does not contain backslashes and begins
8790 # with a dollar sign (not a hyphen), so the echo should work correctly.
8791 lt_compile=`echo "$ac_compile" | $SED \
8792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8794 -e 's:$: $lt_compiler_flag:'`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008795 (eval echo "\"\$as_me:8795: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +00008796 (eval "$lt_compile" 2>out/conftest.err)
8797 ac_status=$?
8798 cat out/conftest.err >&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008799 echo "$as_me:8799: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +00008800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8801 then
8802 # The compiler can only warn and ignore the option if not recognized
8803 # So say no if there are warnings
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008804 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
openvcdiff311c7142008-08-26 19:29:25 +00008805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8807 lt_cv_prog_compiler_c_o=yes
8808 fi
8809 fi
8810 chmod u+w . 2>&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008811 $RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +00008812 # SGI C++ compiler will create directory out/ii_files/ for
8813 # template instantiation
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8815 $RM out/* && rmdir out
openvcdiff311c7142008-08-26 19:29:25 +00008816 cd ..
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008817 $RM -r conftest
8818 $RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +00008819
8820fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8822$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8823
8824
8825
8826
8827
8828
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8830$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8831if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8832 $as_echo_n "(cached) " >&6
8833else
8834 lt_cv_prog_compiler_c_o=no
8835 $RM -r conftest 2>/dev/null
8836 mkdir conftest
8837 cd conftest
8838 mkdir out
8839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8840
8841 lt_compiler_flag="-o out/conftest2.$ac_objext"
8842 # Insert the option either (1) after the last *FLAGS variable, or
8843 # (2) before a word containing "conftest.", or (3) at the end.
8844 # Note that $ac_compile itself does not contain backslashes and begins
8845 # with a dollar sign (not a hyphen), so the echo should work correctly.
8846 lt_compile=`echo "$ac_compile" | $SED \
8847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8849 -e 's:$: $lt_compiler_flag:'`
8850 (eval echo "\"\$as_me:8850: $lt_compile\"" >&5)
8851 (eval "$lt_compile" 2>out/conftest.err)
8852 ac_status=$?
8853 cat out/conftest.err >&5
8854 echo "$as_me:8854: \$? = $ac_status" >&5
8855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8856 then
8857 # The compiler can only warn and ignore the option if not recognized
8858 # So say no if there are warnings
8859 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8862 lt_cv_prog_compiler_c_o=yes
8863 fi
8864 fi
8865 chmod u+w . 2>&5
8866 $RM conftest*
8867 # SGI C++ compiler will create directory out/ii_files/ for
8868 # template instantiation
8869 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8870 $RM out/* && rmdir out
8871 cd ..
8872 $RM -r conftest
8873 $RM conftest*
8874
8875fi
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8877$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8878
8879
openvcdiff311c7142008-08-26 19:29:25 +00008880
8881
8882hard_links="nottested"
8883if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8884 # do not overwrite the value of need_locks provided by the user
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8886$as_echo_n "checking if we can lock with hard links... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008887 hard_links=yes
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008888 $RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +00008889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8890 touch conftest.a
8891 ln conftest.a conftest.b 2>&5 || hard_links=no
8892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8894$as_echo "$hard_links" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008895 if test "$hard_links" = no; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8897$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +00008898 need_locks=warn
8899 fi
8900else
8901 need_locks=no
8902fi
8903
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008904
8905
8906
8907
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8910$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00008911
8912 runpath_var=
8913 allow_undefined_flag=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008914 always_export_symbols=no
openvcdiff311c7142008-08-26 19:29:25 +00008915 archive_cmds=
8916 archive_expsym_cmds=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008917 compiler_needs_object=no
8918 enable_shared_with_static_runtimes=no
openvcdiff311c7142008-08-26 19:29:25 +00008919 export_dynamic_flag_spec=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008920 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8921 hardcode_automatic=no
8922 hardcode_direct=no
8923 hardcode_direct_absolute=no
openvcdiff311c7142008-08-26 19:29:25 +00008924 hardcode_libdir_flag_spec=
8925 hardcode_libdir_flag_spec_ld=
8926 hardcode_libdir_separator=
openvcdiff311c7142008-08-26 19:29:25 +00008927 hardcode_minus_L=no
8928 hardcode_shlibpath_var=unsupported
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008929 inherit_rpath=no
openvcdiff311c7142008-08-26 19:29:25 +00008930 link_all_deplibs=unknown
openvcdiff311c7142008-08-26 19:29:25 +00008931 module_cmds=
8932 module_expsym_cmds=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008933 old_archive_from_new_cmds=
8934 old_archive_from_expsyms_cmds=
8935 thread_safe_flag_spec=
8936 whole_archive_flag_spec=
openvcdiff311c7142008-08-26 19:29:25 +00008937 # include_expsyms should be a list of space-separated symbols to be *always*
8938 # included in the symbol list
8939 include_expsyms=
8940 # exclude_expsyms can be an extended regexp of symbols to exclude
8941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8943 # as well as any symbol that contains `d'.
openvcdiffd1845782009-03-20 21:56:15 +00008944 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
openvcdiff311c7142008-08-26 19:29:25 +00008945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8946 # platforms (ab)use it in PIC code, but their linkers get confused if
8947 # the symbol is explicitly referenced. Since portable code cannot
8948 # rely on this symbol name, it's probably fine to never include it in
8949 # preloaded symbol tables.
openvcdiffd1845782009-03-20 21:56:15 +00008950 # Exclude shared library initialization/finalization symbols.
openvcdiff311c7142008-08-26 19:29:25 +00008951 extract_expsyms_cmds=
openvcdiff311c7142008-08-26 19:29:25 +00008952
8953 case $host_os in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008954 cygwin* | mingw* | pw32* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +00008955 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8956 # When not using gcc, we currently assume that we are using
8957 # Microsoft Visual C++.
8958 if test "$GCC" != yes; then
8959 with_gnu_ld=no
8960 fi
8961 ;;
8962 interix*)
8963 # we just hope/assume this is gcc and not c89 (= MSVC++)
8964 with_gnu_ld=yes
8965 ;;
8966 openbsd*)
8967 with_gnu_ld=no
8968 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008969 linux* | k*bsd*-gnu)
8970 link_all_deplibs=no
8971 ;;
openvcdiff311c7142008-08-26 19:29:25 +00008972 esac
8973
8974 ld_shlibs=yes
8975 if test "$with_gnu_ld" = yes; then
8976 # If archive_cmds runs LD, not CC, wlarc should be empty
8977 wlarc='${wl}'
8978
8979 # Set some defaults for GNU ld with shared library support. These
8980 # are reset later if shared libraries are not supported. Putting them
8981 # here allows them to be overridden if necessary.
8982 runpath_var=LD_RUN_PATH
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
openvcdiff311c7142008-08-26 19:29:25 +00008984 export_dynamic_flag_spec='${wl}--export-dynamic'
8985 # ancient GNU ld didn't support --whole-archive et. al.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008986 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8987 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8988 else
8989 whole_archive_flag_spec=
openvcdiff311c7142008-08-26 19:29:25 +00008990 fi
8991 supports_anon_versioning=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00008992 case `$LD -v 2>&1` in
8993 *GNU\ gold*) supports_anon_versioning=yes ;;
openvcdiff311c7142008-08-26 19:29:25 +00008994 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8995 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8996 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8997 *\ 2.11.*) ;; # other 2.11 versions
8998 *) supports_anon_versioning=yes ;;
8999 esac
9000
9001 # See if GNU ld supports shared libraries.
9002 case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +00009003 aix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00009004 # On AIX/PPC, the GNU linker is very broken
9005 if test "$host_cpu" != ia64; then
9006 ld_shlibs=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009007 cat <<_LT_EOF 1>&2
openvcdiff311c7142008-08-26 19:29:25 +00009008
9009*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9010*** to be unable to reliably create shared libraries on AIX.
9011*** Therefore, libtool is disabling shared libraries support. If you
9012*** really care for shared libraries, you may want to modify your PATH
9013*** so that a non-GNU linker is found, and then restart.
9014
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009015_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +00009016 fi
9017 ;;
9018
9019 amigaos*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009020 case $host_cpu in
9021 powerpc)
9022 # see comment about AmigaOS4 .so support
9023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024 archive_expsym_cmds=''
9025 ;;
9026 m68k)
9027 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)'
9028 hardcode_libdir_flag_spec='-L$libdir'
9029 hardcode_minus_L=yes
9030 ;;
9031 esac
openvcdiff311c7142008-08-26 19:29:25 +00009032 ;;
9033
9034 beos*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009035 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +00009036 allow_undefined_flag=unsupported
9037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9038 # support --undefined. This deserves some investigation. FIXME
9039 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040 else
9041 ld_shlibs=no
9042 fi
9043 ;;
9044
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009045 cygwin* | mingw* | pw32* | cegcc*)
9046 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
openvcdiff311c7142008-08-26 19:29:25 +00009047 # as there is no search path for DLLs.
9048 hardcode_libdir_flag_spec='-L$libdir'
9049 allow_undefined_flag=unsupported
9050 always_export_symbols=no
9051 enable_shared_with_static_runtimes=yes
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
openvcdiff311c7142008-08-26 19:29:25 +00009053
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009054 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +00009055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9056 # If the export-symbols file already is a .def file (1st line
9057 # is EXPORTS), use it as is; otherwise, prepend...
9058 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9059 cp $export_symbols $output_objdir/$soname.def;
9060 else
9061 echo EXPORTS > $output_objdir/$soname.def;
9062 cat $export_symbols >> $output_objdir/$soname.def;
9063 fi~
9064 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9065 else
9066 ld_shlibs=no
9067 fi
9068 ;;
9069
openvcdiffd1845782009-03-20 21:56:15 +00009070 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00009071 hardcode_direct=no
9072 hardcode_shlibpath_var=no
9073 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9074 export_dynamic_flag_spec='${wl}-E'
9075 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9076 # Instead, shared libraries are loaded at an image base (0x10000000 by
9077 # default) and relocated if they conflict, which is a slow very memory
9078 # consuming and fragmenting process. To avoid this, we pick a random,
9079 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9080 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9082 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'
9083 ;;
9084
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009085 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9086 tmp_diet=no
9087 if test "$host_os" = linux-dietlibc; then
9088 case $cc_basename in
9089 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9090 esac
9091 fi
9092 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9093 && test "$tmp_diet" = no
9094 then
openvcdiff311c7142008-08-26 19:29:25 +00009095 tmp_addflag=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009096 tmp_sharedflag='-shared'
openvcdiff311c7142008-08-26 19:29:25 +00009097 case $cc_basename,$host_cpu in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009098 pgcc*) # Portland Group C compiler
9099 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'
openvcdiff311c7142008-08-26 19:29:25 +00009100 tmp_addflag=' $pic_flag'
9101 ;;
9102 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009103 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'
openvcdiff311c7142008-08-26 19:29:25 +00009104 tmp_addflag=' $pic_flag -Mnomain' ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009105 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
openvcdiff311c7142008-08-26 19:29:25 +00009106 tmp_addflag=' -i_dynamic' ;;
9107 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9108 tmp_addflag=' -i_dynamic -nofor_main' ;;
9109 ifc* | ifort*) # Intel Fortran compiler
9110 tmp_addflag=' -nofor_main' ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009111 lf95*) # Lahey Fortran 8.1
9112 whole_archive_flag_spec=
9113 tmp_sharedflag='--shared' ;;
9114 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9115 tmp_sharedflag='-qmkshrobj'
9116 tmp_addflag= ;;
openvcdiff311c7142008-08-26 19:29:25 +00009117 esac
openvcdiffd1845782009-03-20 21:56:15 +00009118 case `$CC -V 2>&1 | sed 5q` in
9119 *Sun\ C*) # Sun C 5.9
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009120 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'
9121 compiler_needs_object=yes
openvcdiffd1845782009-03-20 21:56:15 +00009122 tmp_sharedflag='-G' ;;
9123 *Sun\ F*) # Sun Fortran 8.3
9124 tmp_sharedflag='-G' ;;
openvcdiffd1845782009-03-20 21:56:15 +00009125 esac
9126 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +00009127
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009128 if test "x$supports_anon_versioning" = xyes; then
9129 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9131 echo "local: *; };" >> $output_objdir/$libname.ver~
9132 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9133 fi
9134
9135 case $cc_basename in
9136 xlf*)
9137 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9138 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9139 hardcode_libdir_flag_spec=
9140 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9141 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9142 if test "x$supports_anon_versioning" = xyes; then
9143 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9144 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9145 echo "local: *; };" >> $output_objdir/$libname.ver~
9146 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9147 fi
9148 ;;
9149 esac
openvcdiff311c7142008-08-26 19:29:25 +00009150 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009151 ld_shlibs=no
openvcdiff311c7142008-08-26 19:29:25 +00009152 fi
9153 ;;
9154
openvcdiffd1845782009-03-20 21:56:15 +00009155 netbsd* | netbsdelf*-gnu)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +00009157 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9158 wlarc=
9159 else
9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9162 fi
9163 ;;
9164
9165 solaris*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009166 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +00009167 ld_shlibs=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009168 cat <<_LT_EOF 1>&2
openvcdiff311c7142008-08-26 19:29:25 +00009169
9170*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9171*** create shared libraries on Solaris systems. Therefore, libtool
9172*** is disabling shared libraries support. We urge you to upgrade GNU
9173*** binutils to release 2.9.1 or newer. Another option is to modify
9174*** your PATH or compiler configuration so that the native linker is
9175*** used, and then restart.
9176
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009177_LT_EOF
9178 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +00009179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9181 else
9182 ld_shlibs=no
9183 fi
9184 ;;
9185
9186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9187 case `$LD -v 2>&1` in
9188 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9189 ld_shlibs=no
9190 cat <<_LT_EOF 1>&2
9191
9192*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9193*** reliably create shared libraries on SCO systems. Therefore, libtool
9194*** is disabling shared libraries support. We urge you to upgrade GNU
9195*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9196*** your PATH or compiler configuration so that the native linker is
9197*** used, and then restart.
9198
9199_LT_EOF
9200 ;;
9201 *)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009202 # For security reasons, it is highly recommended that you always
9203 # use absolute paths for naming shared libraries, and exclude the
9204 # DT_RUNPATH tag from executables and libraries. But doing so
9205 # requires that you compile everything twice, which is a pain.
9206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +00009210 else
9211 ld_shlibs=no
9212 fi
9213 ;;
9214 esac
9215 ;;
9216
9217 sunos4*)
9218 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9219 wlarc=
9220 hardcode_direct=yes
9221 hardcode_shlibpath_var=no
9222 ;;
9223
9224 *)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009225 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +00009226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9228 else
9229 ld_shlibs=no
9230 fi
9231 ;;
9232 esac
9233
9234 if test "$ld_shlibs" = no; then
9235 runpath_var=
9236 hardcode_libdir_flag_spec=
9237 export_dynamic_flag_spec=
9238 whole_archive_flag_spec=
9239 fi
9240 else
9241 # PORTME fill in a description of your system's linker (not GNU ld)
9242 case $host_os in
9243 aix3*)
9244 allow_undefined_flag=unsupported
9245 always_export_symbols=yes
9246 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'
9247 # Note: this linker hardcodes the directories in LIBPATH if there
9248 # are no directories specified by -L.
9249 hardcode_minus_L=yes
9250 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9251 # Neither direct hardcoding nor static linking is supported with a
9252 # broken collect2.
9253 hardcode_direct=unsupported
9254 fi
9255 ;;
9256
openvcdiffd1845782009-03-20 21:56:15 +00009257 aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00009258 if test "$host_cpu" = ia64; then
9259 # On IA64, the linker does run time linking by default, so we don't
9260 # have to do anything special.
9261 aix_use_runtimelinking=no
9262 exp_sym_flag='-Bexport'
9263 no_entry_flag=""
9264 else
9265 # If we're using GNU nm, then we don't want the "-C" option.
9266 # -C means demangle to AIX nm, but means don't demangle with GNU nm
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009267 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9268 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'
openvcdiff311c7142008-08-26 19:29:25 +00009269 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009270 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'
openvcdiff311c7142008-08-26 19:29:25 +00009271 fi
9272 aix_use_runtimelinking=no
9273
9274 # Test if we are trying to use run time linking or normal
9275 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9276 # need to do runtime linking.
openvcdiffd1845782009-03-20 21:56:15 +00009277 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
openvcdiff311c7142008-08-26 19:29:25 +00009278 for ld_flag in $LDFLAGS; do
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009279 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9280 aix_use_runtimelinking=yes
9281 break
9282 fi
openvcdiff311c7142008-08-26 19:29:25 +00009283 done
9284 ;;
9285 esac
9286
9287 exp_sym_flag='-bexport'
9288 no_entry_flag='-bnoentry'
9289 fi
9290
9291 # When large executables or shared objects are built, AIX ld can
9292 # have problems creating the table of contents. If linking a library
9293 # or program results in "error TOC overflow" add -mminimal-toc to
9294 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9295 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9296
9297 archive_cmds=''
9298 hardcode_direct=yes
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009299 hardcode_direct_absolute=yes
openvcdiff311c7142008-08-26 19:29:25 +00009300 hardcode_libdir_separator=':'
9301 link_all_deplibs=yes
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009302 file_list_spec='${wl}-f,'
openvcdiff311c7142008-08-26 19:29:25 +00009303
9304 if test "$GCC" = yes; then
9305 case $host_os in aix4.[012]|aix4.[012].*)
9306 # We only want to do this on AIX 4.2 and lower, the check
9307 # below for broken collect2 doesn't work under 4.3+
9308 collect2name=`${CC} -print-prog-name=collect2`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009309 if test -f "$collect2name" &&
9310 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
openvcdiff311c7142008-08-26 19:29:25 +00009311 then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009312 # We have reworked collect2
9313 :
openvcdiff311c7142008-08-26 19:29:25 +00009314 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009315 # We have old collect2
9316 hardcode_direct=unsupported
9317 # It fails to find uninstalled libraries when the uninstalled
9318 # path is not listed in the libpath. Setting hardcode_minus_L
9319 # to unsupported forces relinking
9320 hardcode_minus_L=yes
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_libdir_separator=
openvcdiff311c7142008-08-26 19:29:25 +00009323 fi
9324 ;;
9325 esac
9326 shared_flag='-shared'
9327 if test "$aix_use_runtimelinking" = yes; then
9328 shared_flag="$shared_flag "'${wl}-G'
9329 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009330 link_all_deplibs=no
openvcdiff311c7142008-08-26 19:29:25 +00009331 else
9332 # not using gcc
9333 if test "$host_cpu" = ia64; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9335 # chokes on -Wl,-G. The following line is correct:
openvcdiff311c7142008-08-26 19:29:25 +00009336 shared_flag='-G'
9337 else
9338 if test "$aix_use_runtimelinking" = yes; then
9339 shared_flag='${wl}-G'
9340 else
9341 shared_flag='${wl}-bM:SRE'
9342 fi
9343 fi
9344 fi
9345
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009346 export_dynamic_flag_spec='${wl}-bexpall'
openvcdiff311c7142008-08-26 19:29:25 +00009347 # It seems that -bexpall does not export symbols beginning with
9348 # underscore (_), so it is better to generate a list of symbols to export.
9349 always_export_symbols=yes
9350 if test "$aix_use_runtimelinking" = yes; then
9351 # Warning - without using the other runtime loading flags (-brtl),
9352 # -berok will link without error, but may produce a broken library.
9353 allow_undefined_flag='-berok'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009354 # Determine the default libpath from the value encoded in an
9355 # empty executable.
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00009357/* end confdefs.h. */
9358
9359int
9360main ()
9361{
9362
9363 ;
9364 return 0;
9365}
9366_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009367if ac_fn_c_try_link "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +00009368
openvcdiffd1845782009-03-20 21:56:15 +00009369lt_aix_libpath_sed='
9370 /Import File Strings/,/^$/ {
9371 /^0/ {
9372 s/^0 *\(.*\)$/\1/
9373 p
9374 }
9375 }'
9376aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
openvcdiff311c7142008-08-26 19:29:25 +00009377# Check for a 64-bit object if we didn't find anything.
openvcdiffd1845782009-03-20 21:56:15 +00009378if test -z "$aix_libpath"; then
9379 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9380fi
openvcdiff311c7142008-08-26 19:29:25 +00009381fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009382rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00009384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9385
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9387 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9388 else
openvcdiff311c7142008-08-26 19:29:25 +00009389 if test "$host_cpu" = ia64; then
9390 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9391 allow_undefined_flag="-z nodefs"
9392 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"
9393 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009394 # Determine the default libpath from the value encoded in an
9395 # empty executable.
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00009397/* end confdefs.h. */
9398
9399int
9400main ()
9401{
9402
9403 ;
9404 return 0;
9405}
9406_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009407if ac_fn_c_try_link "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +00009408
openvcdiffd1845782009-03-20 21:56:15 +00009409lt_aix_libpath_sed='
9410 /Import File Strings/,/^$/ {
9411 /^0/ {
9412 s/^0 *\(.*\)$/\1/
9413 p
9414 }
9415 }'
9416aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
openvcdiff311c7142008-08-26 19:29:25 +00009417# Check for a 64-bit object if we didn't find anything.
openvcdiffd1845782009-03-20 21:56:15 +00009418if test -z "$aix_libpath"; then
9419 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9420fi
openvcdiff311c7142008-08-26 19:29:25 +00009421fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009422rm -f core conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00009424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9425
9426 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9427 # Warning - without using the other run time loading flags,
9428 # -berok will link without error, but may produce a broken library.
9429 no_undefined_flag=' ${wl}-bernotok'
9430 allow_undefined_flag=' ${wl}-berok'
9431 # Exported symbols can be pulled into shared objects from archives
9432 whole_archive_flag_spec='$convenience'
9433 archive_cmds_need_lc=yes
9434 # This is similar to how AIX traditionally builds its shared libraries.
9435 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'
9436 fi
9437 fi
9438 ;;
9439
9440 amigaos*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009441 case $host_cpu in
9442 powerpc)
9443 # see comment about AmigaOS4 .so support
9444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9445 archive_expsym_cmds=''
9446 ;;
9447 m68k)
9448 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)'
9449 hardcode_libdir_flag_spec='-L$libdir'
9450 hardcode_minus_L=yes
9451 ;;
9452 esac
openvcdiff311c7142008-08-26 19:29:25 +00009453 ;;
9454
9455 bsdi[45]*)
9456 export_dynamic_flag_spec=-rdynamic
9457 ;;
9458
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009459 cygwin* | mingw* | pw32* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +00009460 # When not using gcc, we currently assume that we are using
9461 # Microsoft Visual C++.
9462 # hardcode_libdir_flag_spec is actually meaningless, as there is
9463 # no search path for DLLs.
9464 hardcode_libdir_flag_spec=' '
9465 allow_undefined_flag=unsupported
9466 # Tell ltmain to make .lib files, not .a files.
9467 libext=lib
9468 # Tell ltmain to make .dll files, not .so files.
9469 shrext_cmds=".dll"
9470 # FIXME: Setting linknames here is a bad hack.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009471 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
openvcdiff311c7142008-08-26 19:29:25 +00009472 # The linker will automatically build a .lib file if we build a DLL.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009473 old_archive_from_new_cmds='true'
openvcdiff311c7142008-08-26 19:29:25 +00009474 # FIXME: Should let the user specify the lib program.
openvcdiffd1845782009-03-20 21:56:15 +00009475 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
openvcdiff311c7142008-08-26 19:29:25 +00009476 fix_srcfile_path='`cygpath -w "$srcfile"`'
9477 enable_shared_with_static_runtimes=yes
9478 ;;
9479
9480 darwin* | rhapsody*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009481
9482
9483 archive_cmds_need_lc=no
9484 hardcode_direct=no
9485 hardcode_automatic=yes
9486 hardcode_shlibpath_var=unsupported
9487 whole_archive_flag_spec=''
9488 link_all_deplibs=yes
9489 allow_undefined_flag="$_lt_dar_allow_undefined"
9490 case $cc_basename in
9491 ifort*) _lt_dar_can_shared=yes ;;
9492 *) _lt_dar_can_shared=$GCC ;;
9493 esac
9494 if test "$_lt_dar_can_shared" = "yes"; then
9495 output_verbose_link_cmd=echo
9496 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9497 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9498 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}"
9499 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}"
9500
9501 else
9502 ld_shlibs=no
9503 fi
9504
openvcdiff311c7142008-08-26 19:29:25 +00009505 ;;
9506
9507 dgux*)
9508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9509 hardcode_libdir_flag_spec='-L$libdir'
9510 hardcode_shlibpath_var=no
9511 ;;
9512
9513 freebsd1*)
9514 ld_shlibs=no
9515 ;;
9516
9517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9518 # support. Future versions do this automatically, but an explicit c++rt0.o
9519 # does not break anything, and helps significantly (at the cost of a little
9520 # extra space).
9521 freebsd2.2*)
9522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9523 hardcode_libdir_flag_spec='-R$libdir'
9524 hardcode_direct=yes
9525 hardcode_shlibpath_var=no
9526 ;;
9527
9528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9529 freebsd2*)
9530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_direct=yes
9532 hardcode_minus_L=yes
9533 hardcode_shlibpath_var=no
9534 ;;
9535
9536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9537 freebsd* | dragonfly*)
9538 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9539 hardcode_libdir_flag_spec='-R$libdir'
9540 hardcode_direct=yes
9541 hardcode_shlibpath_var=no
9542 ;;
9543
openvcdiff311c7142008-08-26 19:29:25 +00009544 hpux9*)
9545 if test "$GCC" = yes; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009546 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'
openvcdiff311c7142008-08-26 19:29:25 +00009547 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009548 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'
openvcdiff311c7142008-08-26 19:29:25 +00009549 fi
9550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551 hardcode_libdir_separator=:
9552 hardcode_direct=yes
9553
9554 # hardcode_minus_L: Not really in the search PATH,
9555 # but as the default location of the library.
9556 hardcode_minus_L=yes
9557 export_dynamic_flag_spec='${wl}-E'
9558 ;;
9559
9560 hpux10*)
9561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9563 else
9564 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9565 fi
9566 if test "$with_gnu_ld" = no; then
9567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009568 hardcode_libdir_flag_spec_ld='+b $libdir'
openvcdiff311c7142008-08-26 19:29:25 +00009569 hardcode_libdir_separator=:
openvcdiff311c7142008-08-26 19:29:25 +00009570 hardcode_direct=yes
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009571 hardcode_direct_absolute=yes
openvcdiff311c7142008-08-26 19:29:25 +00009572 export_dynamic_flag_spec='${wl}-E'
openvcdiff311c7142008-08-26 19:29:25 +00009573 # hardcode_minus_L: Not really in the search PATH,
9574 # but as the default location of the library.
9575 hardcode_minus_L=yes
9576 fi
9577 ;;
9578
9579 hpux11*)
9580 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9581 case $host_cpu in
9582 hppa*64*)
9583 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9584 ;;
9585 ia64*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009586 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
openvcdiff311c7142008-08-26 19:29:25 +00009587 ;;
9588 *)
9589 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9590 ;;
9591 esac
9592 else
9593 case $host_cpu in
9594 hppa*64*)
9595 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9596 ;;
9597 ia64*)
9598 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9599 ;;
9600 *)
9601 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9602 ;;
9603 esac
9604 fi
9605 if test "$with_gnu_ld" = no; then
9606 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9607 hardcode_libdir_separator=:
9608
9609 case $host_cpu in
9610 hppa*64*|ia64*)
openvcdiff311c7142008-08-26 19:29:25 +00009611 hardcode_direct=no
9612 hardcode_shlibpath_var=no
9613 ;;
9614 *)
9615 hardcode_direct=yes
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009616 hardcode_direct_absolute=yes
openvcdiff311c7142008-08-26 19:29:25 +00009617 export_dynamic_flag_spec='${wl}-E'
9618
9619 # hardcode_minus_L: Not really in the search PATH,
9620 # but as the default location of the library.
9621 hardcode_minus_L=yes
9622 ;;
9623 esac
9624 fi
9625 ;;
9626
9627 irix5* | irix6* | nonstopux*)
9628 if test "$GCC" = yes; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9630 # Try to use the -exported_symbol ld option, if it does not
9631 # work, assume that -exports_file does not work either and
9632 # implicitly export all symbols.
9633 save_LDFLAGS="$LDFLAGS"
9634 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h. */
9637int foo(void) {}
9638_ACEOF
9639if ac_fn_c_try_link "$LINENO"; then :
9640 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9641
9642fi
9643rm -f core conftest.err conftest.$ac_objext \
9644 conftest$ac_exeext conftest.$ac_ext
9645 LDFLAGS="$save_LDFLAGS"
openvcdiff311c7142008-08-26 19:29:25 +00009646 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +00009649 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009650 archive_cmds_need_lc='no'
openvcdiff311c7142008-08-26 19:29:25 +00009651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9652 hardcode_libdir_separator=:
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009653 inherit_rpath=yes
openvcdiff311c7142008-08-26 19:29:25 +00009654 link_all_deplibs=yes
9655 ;;
9656
openvcdiffd1845782009-03-20 21:56:15 +00009657 netbsd* | netbsdelf*-gnu)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009658 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +00009659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9660 else
9661 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9662 fi
9663 hardcode_libdir_flag_spec='-R$libdir'
9664 hardcode_direct=yes
9665 hardcode_shlibpath_var=no
9666 ;;
9667
9668 newsos6)
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_direct=yes
9671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9672 hardcode_libdir_separator=:
9673 hardcode_shlibpath_var=no
9674 ;;
9675
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009676 *nto* | *qnx*)
9677 ;;
9678
openvcdiff311c7142008-08-26 19:29:25 +00009679 openbsd*)
openvcdiffd1845782009-03-20 21:56:15 +00009680 if test -f /usr/libexec/ld.so; then
9681 hardcode_direct=yes
9682 hardcode_shlibpath_var=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009683 hardcode_direct_absolute=yes
9684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
openvcdiffd1845782009-03-20 21:56:15 +00009685 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9686 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9688 export_dynamic_flag_spec='${wl}-E'
9689 else
9690 case $host_os in
9691 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_libdir_flag_spec='-R$libdir'
9694 ;;
9695 *)
9696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9697 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9698 ;;
9699 esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009700 fi
openvcdiff311c7142008-08-26 19:29:25 +00009701 else
openvcdiffd1845782009-03-20 21:56:15 +00009702 ld_shlibs=no
openvcdiff311c7142008-08-26 19:29:25 +00009703 fi
9704 ;;
9705
9706 os2*)
9707 hardcode_libdir_flag_spec='-L$libdir'
9708 hardcode_minus_L=yes
9709 allow_undefined_flag=unsupported
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009710 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'
9711 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
openvcdiff311c7142008-08-26 19:29:25 +00009712 ;;
9713
9714 osf3*)
9715 if test "$GCC" = yes; then
9716 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009717 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +00009718 else
9719 allow_undefined_flag=' -expect_unresolved \*'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009720 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +00009721 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009722 archive_cmds_need_lc='no'
openvcdiff311c7142008-08-26 19:29:25 +00009723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9724 hardcode_libdir_separator=:
9725 ;;
9726
9727 osf4* | osf5*) # as osf3* with the addition of -msym flag
9728 if test "$GCC" = yes; then
9729 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009730 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +00009731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9732 else
9733 allow_undefined_flag=' -expect_unresolved \*'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009734 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9735 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9736 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
openvcdiff311c7142008-08-26 19:29:25 +00009737
9738 # Both c and cxx compiler support -rpath directly
9739 hardcode_libdir_flag_spec='-rpath $libdir'
9740 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009741 archive_cmds_need_lc='no'
openvcdiff311c7142008-08-26 19:29:25 +00009742 hardcode_libdir_separator=:
9743 ;;
9744
9745 solaris*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009746 no_undefined_flag=' -z defs'
openvcdiff311c7142008-08-26 19:29:25 +00009747 if test "$GCC" = yes; then
9748 wlarc='${wl}'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009749 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9751 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
openvcdiff311c7142008-08-26 19:29:25 +00009752 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009753 case `$CC -V 2>&1` in
9754 *"Compilers 5.0"*)
9755 wlarc=''
9756 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9758 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9759 ;;
9760 *)
9761 wlarc='${wl}'
9762 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9763 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9764 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9765 ;;
9766 esac
openvcdiff311c7142008-08-26 19:29:25 +00009767 fi
9768 hardcode_libdir_flag_spec='-R$libdir'
9769 hardcode_shlibpath_var=no
9770 case $host_os in
9771 solaris2.[0-5] | solaris2.[0-5].*) ;;
9772 *)
openvcdiffd1845782009-03-20 21:56:15 +00009773 # The compiler driver will combine and reorder linker options,
9774 # but understands `-z linker_flag'. GCC discards it without `$wl',
9775 # but is careful enough not to reorder.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009776 # Supported since Solaris 2.6 (maybe 2.5.1?)
openvcdiffd1845782009-03-20 21:56:15 +00009777 if test "$GCC" = yes; then
9778 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9779 else
9780 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9781 fi
9782 ;;
openvcdiff311c7142008-08-26 19:29:25 +00009783 esac
9784 link_all_deplibs=yes
9785 ;;
9786
9787 sunos4*)
9788 if test "x$host_vendor" = xsequent; then
9789 # Use $CC to link under sequent, because it throws in some extra .o
9790 # files that make .init and .fini sections work.
9791 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9792 else
9793 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9794 fi
9795 hardcode_libdir_flag_spec='-L$libdir'
9796 hardcode_direct=yes
9797 hardcode_minus_L=yes
9798 hardcode_shlibpath_var=no
9799 ;;
9800
9801 sysv4)
9802 case $host_vendor in
9803 sni)
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_direct=yes # is this really true???
9806 ;;
9807 siemens)
9808 ## LD is ld it makes a PLAMLIB
9809 ## CC just makes a GrossModule.
9810 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9811 reload_cmds='$CC -r -o $output$reload_objs'
9812 hardcode_direct=no
9813 ;;
9814 motorola)
9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9817 ;;
9818 esac
9819 runpath_var='LD_RUN_PATH'
9820 hardcode_shlibpath_var=no
9821 ;;
9822
9823 sysv4.3*)
9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_shlibpath_var=no
9826 export_dynamic_flag_spec='-Bexport'
9827 ;;
9828
9829 sysv4*MP*)
9830 if test -d /usr/nec; then
9831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832 hardcode_shlibpath_var=no
9833 runpath_var=LD_RUN_PATH
9834 hardcode_runpath_var=yes
9835 ld_shlibs=yes
9836 fi
9837 ;;
9838
openvcdiffd1845782009-03-20 21:56:15 +00009839 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
openvcdiff311c7142008-08-26 19:29:25 +00009840 no_undefined_flag='${wl}-z,text'
9841 archive_cmds_need_lc=no
9842 hardcode_shlibpath_var=no
9843 runpath_var='LD_RUN_PATH'
9844
9845 if test "$GCC" = yes; then
9846 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9848 else
9849 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851 fi
9852 ;;
9853
9854 sysv5* | sco3.2v5* | sco5v6*)
9855 # Note: We can NOT use -z defs as we might desire, because we do not
9856 # link with -lc, and that would cause any symbols used from libc to
9857 # always be unresolved, which means just about no library would
9858 # ever link correctly. If we're not using GNU ld we use -z text
9859 # though, which does catch some bad symbols but isn't as heavy-handed
9860 # as -z defs.
9861 no_undefined_flag='${wl}-z,text'
9862 allow_undefined_flag='${wl}-z,nodefs'
9863 archive_cmds_need_lc=no
9864 hardcode_shlibpath_var=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009865 hardcode_libdir_flag_spec='${wl}-R,$libdir'
openvcdiff311c7142008-08-26 19:29:25 +00009866 hardcode_libdir_separator=':'
9867 link_all_deplibs=yes
9868 export_dynamic_flag_spec='${wl}-Bexport'
9869 runpath_var='LD_RUN_PATH'
9870
9871 if test "$GCC" = yes; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009872 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9873 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
openvcdiff311c7142008-08-26 19:29:25 +00009874 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009875 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9876 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
openvcdiff311c7142008-08-26 19:29:25 +00009877 fi
9878 ;;
9879
9880 uts4*)
9881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 hardcode_shlibpath_var=no
9884 ;;
9885
9886 *)
9887 ld_shlibs=no
9888 ;;
9889 esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009890
9891 if test x$host_vendor = xsni; then
9892 case $host in
9893 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9894 export_dynamic_flag_spec='${wl}-Blargedynsym'
9895 ;;
9896 esac
9897 fi
openvcdiff311c7142008-08-26 19:29:25 +00009898 fi
9899
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9901$as_echo "$ld_shlibs" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009902test "$ld_shlibs" = no && can_build_shared=no
9903
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009904with_gnu_ld=$with_gnu_ld
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
openvcdiff311c7142008-08-26 19:29:25 +00009920#
9921# Do we need to explicitly link libc?
9922#
9923case "x$archive_cmds_need_lc" in
9924x|xyes)
9925 # Assume -lc should be added
9926 archive_cmds_need_lc=yes
9927
9928 if test "$enable_shared" = yes && test "$GCC" = yes; then
9929 case $archive_cmds in
9930 *'~'*)
9931 # FIXME: we may have to deal with multi-command sequences.
9932 ;;
9933 '$CC '*)
9934 # Test whether the compiler implicitly links with -lc since on some
9935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9936 # to ld, don't add -lc before -lgcc.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9938$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9939 $RM conftest*
openvcdiffd1845782009-03-20 21:56:15 +00009940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +00009941
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
openvcdiff311c7142008-08-26 19:29:25 +00009943 (eval $ac_compile) 2>&5
9944 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9946 test $ac_status = 0; } 2>conftest.err; then
openvcdiff311c7142008-08-26 19:29:25 +00009947 soname=conftest
9948 lib=conftest
9949 libobjs=conftest.$ac_objext
9950 deplibs=
9951 wl=$lt_prog_compiler_wl
9952 pic_flag=$lt_prog_compiler_pic
9953 compiler_flags=-v
9954 linker_flags=-v
9955 verstring=
9956 output_objdir=.
9957 libname=conftest
9958 lt_save_allow_undefined_flag=$allow_undefined_flag
9959 allow_undefined_flag=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9961 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
openvcdiff311c7142008-08-26 19:29:25 +00009962 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9964 test $ac_status = 0; }
openvcdiff311c7142008-08-26 19:29:25 +00009965 then
9966 archive_cmds_need_lc=no
9967 else
9968 archive_cmds_need_lc=yes
9969 fi
9970 allow_undefined_flag=$lt_save_allow_undefined_flag
9971 else
9972 cat conftest.err 1>&5
9973 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009974 $RM conftest*
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9976$as_echo "$archive_cmds_need_lc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +00009977 ;;
9978 esac
9979 fi
9980 ;;
9981esac
9982
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +00009983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10140$as_echo_n "checking dynamic linker characteristics... " >&6; }
openvcdiffd1845782009-03-20 21:56:15 +000010141
openvcdiff311c7142008-08-26 19:29:25 +000010142if test "$GCC" = yes; then
openvcdiffd1845782009-03-20 21:56:15 +000010143 case $host_os in
10144 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10145 *) lt_awk_arg="/^libraries:/" ;;
10146 esac
10147 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010148 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
openvcdiff311c7142008-08-26 19:29:25 +000010149 # if the path contains ";" then we assume it to be the separator
10150 # otherwise default to the standard path separator (i.e. ":") - it is
10151 # assumed that no part of a normal pathname contains ";" but that should
10152 # okay in the real world where ";" in dirpaths is itself problematic.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010153 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
openvcdiff311c7142008-08-26 19:29:25 +000010154 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010155 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
openvcdiff311c7142008-08-26 19:29:25 +000010156 fi
openvcdiffd1845782009-03-20 21:56:15 +000010157 # Ok, now we have the path, separated by spaces, we can step through it
10158 # and add multilib dir if necessary.
10159 lt_tmp_lt_search_path_spec=
10160 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10161 for lt_sys_path in $lt_search_path_spec; do
10162 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10163 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10164 else
10165 test -d "$lt_sys_path" && \
10166 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10167 fi
10168 done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010169 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
openvcdiffd1845782009-03-20 21:56:15 +000010170BEGIN {RS=" "; FS="/|\n";} {
10171 lt_foo="";
10172 lt_count=0;
10173 for (lt_i = NF; lt_i > 0; lt_i--) {
10174 if ($lt_i != "" && $lt_i != ".") {
10175 if ($lt_i == "..") {
10176 lt_count++;
10177 } else {
10178 if (lt_count == 0) {
10179 lt_foo="/" $lt_i lt_foo;
10180 } else {
10181 lt_count--;
10182 }
10183 }
10184 }
10185 }
10186 if (lt_foo != "") { lt_freq[lt_foo]++; }
10187 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10188}'`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010189 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
openvcdiff311c7142008-08-26 19:29:25 +000010190else
10191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10192fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010193library_names_spec=
10194libname_spec='lib$name'
10195soname_spec=
10196shrext_cmds=".so"
10197postinstall_cmds=
10198postuninstall_cmds=
10199finish_cmds=
10200finish_eval=
10201shlibpath_var=
10202shlibpath_overrides_runpath=unknown
10203version_type=none
10204dynamic_linker="$host_os ld.so"
10205sys_lib_dlsearch_path_spec="/lib /usr/lib"
openvcdiff311c7142008-08-26 19:29:25 +000010206need_lib_prefix=unknown
10207hardcode_into_libs=no
10208
10209# when you set need_version to no, make sure it does not cause -set_version
10210# flags to be left without arguments
10211need_version=unknown
10212
10213case $host_os in
10214aix3*)
10215 version_type=linux
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10217 shlibpath_var=LIBPATH
10218
10219 # AIX 3 has no versioning support, so we append a major version to the name.
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 ;;
10222
openvcdiffd1845782009-03-20 21:56:15 +000010223aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000010224 version_type=linux
10225 need_lib_prefix=no
10226 need_version=no
10227 hardcode_into_libs=yes
10228 if test "$host_cpu" = ia64; then
10229 # AIX 5 supports IA64
10230 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10231 shlibpath_var=LD_LIBRARY_PATH
10232 else
10233 # With GCC up to 2.95.x, collect2 would create an import file
10234 # for dependence libraries. The import file would start with
10235 # the line `#! .'. This would cause the generated library to
10236 # depend on `.', always an invalid library. This was fixed in
10237 # development snapshots of GCC prior to 3.0.
10238 case $host_os in
10239 aix4 | aix4.[01] | aix4.[01].*)
10240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10241 echo ' yes '
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010242 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +000010243 :
10244 else
10245 can_build_shared=no
10246 fi
10247 ;;
10248 esac
10249 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10250 # soname into executable. Probably we can add versioning support to
10251 # collect2, so additional links can be useful in future.
10252 if test "$aix_use_runtimelinking" = yes; then
10253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10254 # instead of lib<name>.a to let people know that these are not
10255 # typical AIX shared libraries.
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 else
10258 # We preserve .a as extension for shared libraries through AIX4.2
10259 # and later when we are not doing run time linking.
10260 library_names_spec='${libname}${release}.a $libname.a'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 fi
10263 shlibpath_var=LIBPATH
10264 fi
10265 ;;
10266
10267amigaos*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010268 case $host_cpu in
10269 powerpc)
10270 # Since July 2007 AmigaOS4 officially supports .so libraries.
10271 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273 ;;
10274 m68k)
10275 library_names_spec='$libname.ixlibrary $libname.a'
10276 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10277 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'
10278 ;;
10279 esac
openvcdiff311c7142008-08-26 19:29:25 +000010280 ;;
10281
10282beos*)
10283 library_names_spec='${libname}${shared_ext}'
10284 dynamic_linker="$host_os ld.so"
10285 shlibpath_var=LIBRARY_PATH
10286 ;;
10287
10288bsdi[45]*)
10289 version_type=linux
10290 need_version=no
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10297 # the default ld.so.conf also contains /usr/contrib/lib and
10298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10299 # libtool to hard-code these into programs
10300 ;;
10301
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010302cygwin* | mingw* | pw32* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +000010303 version_type=windows
10304 shrext_cmds=".dll"
10305 need_version=no
10306 need_lib_prefix=no
10307
10308 case $GCC,$host_os in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010309 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +000010310 library_names_spec='$libname.dll.a'
10311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10312 postinstall_cmds='base_file=`basename \${file}`~
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
openvcdiff311c7142008-08-26 19:29:25 +000010314 dldir=$destdir/`dirname \$dlpath`~
10315 test -d \$dldir || mkdir -p \$dldir~
10316 $install_prog $dir/$dlname \$dldir/$dlname~
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010317 chmod a+x \$dldir/$dlname~
10318 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10319 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10320 fi'
openvcdiff311c7142008-08-26 19:29:25 +000010321 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10322 dlpath=$dir/\$dldll~
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010323 $RM \$dlpath'
openvcdiff311c7142008-08-26 19:29:25 +000010324 shlibpath_overrides_runpath=yes
10325
10326 case $host_os in
10327 cygwin*)
10328 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10329 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10330 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10331 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010332 mingw* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +000010333 # MinGW DLLs use traditional 'lib' prefix
10334 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010335 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10336 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +000010337 # It is most probably a Windows format PATH printed by
10338 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10339 # path with ; separators, and with drive letters. We can handle the
10340 # drive letters (cygwin fileutils understands them), so leave them,
10341 # especially as we might pass files found there to a mingw objdump,
10342 # which wouldn't understand a cygwinified path. Ahh.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010343 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
openvcdiff311c7142008-08-26 19:29:25 +000010344 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010345 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
openvcdiff311c7142008-08-26 19:29:25 +000010346 fi
10347 ;;
10348 pw32*)
10349 # pw32 DLLs use 'pw' prefix rather than 'lib'
10350 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10351 ;;
10352 esac
10353 ;;
10354
10355 *)
10356 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10357 ;;
10358 esac
10359 dynamic_linker='Win32 ld.exe'
10360 # FIXME: first we should search . and the directory the executable is in
10361 shlibpath_var=PATH
10362 ;;
10363
10364darwin* | rhapsody*)
10365 dynamic_linker="$host_os dyld"
10366 version_type=darwin
10367 need_lib_prefix=no
10368 need_version=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010369 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
openvcdiff311c7142008-08-26 19:29:25 +000010370 soname_spec='${libname}${release}${major}$shared_ext'
10371 shlibpath_overrides_runpath=yes
10372 shlibpath_var=DYLD_LIBRARY_PATH
10373 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
openvcdiffd1845782009-03-20 21:56:15 +000010374
10375 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
openvcdiff311c7142008-08-26 19:29:25 +000010376 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10377 ;;
10378
10379dgux*)
10380 version_type=linux
10381 need_lib_prefix=no
10382 need_version=no
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 ;;
10387
10388freebsd1*)
10389 dynamic_linker=no
10390 ;;
10391
openvcdiff311c7142008-08-26 19:29:25 +000010392freebsd* | dragonfly*)
10393 # DragonFly does not have aout. When/if they implement a new
10394 # versioning mechanism, adjust this.
10395 if test -x /usr/bin/objformat; then
10396 objformat=`/usr/bin/objformat`
10397 else
10398 case $host_os in
10399 freebsd[123]*) objformat=aout ;;
10400 *) objformat=elf ;;
10401 esac
10402 fi
10403 version_type=freebsd-$objformat
10404 case $version_type in
10405 freebsd-elf*)
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10407 need_version=no
10408 need_lib_prefix=no
10409 ;;
10410 freebsd-*)
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10412 need_version=yes
10413 ;;
10414 esac
10415 shlibpath_var=LD_LIBRARY_PATH
10416 case $host_os in
10417 freebsd2*)
10418 shlibpath_overrides_runpath=yes
10419 ;;
10420 freebsd3.[01]* | freebsdelf3.[01]*)
10421 shlibpath_overrides_runpath=yes
10422 hardcode_into_libs=yes
10423 ;;
10424 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10425 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10426 shlibpath_overrides_runpath=no
10427 hardcode_into_libs=yes
10428 ;;
openvcdiffd1845782009-03-20 21:56:15 +000010429 *) # from 4.6 on, and DragonFly
openvcdiff311c7142008-08-26 19:29:25 +000010430 shlibpath_overrides_runpath=yes
10431 hardcode_into_libs=yes
10432 ;;
10433 esac
10434 ;;
10435
10436gnu*)
10437 version_type=linux
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 hardcode_into_libs=yes
10444 ;;
10445
10446hpux9* | hpux10* | hpux11*)
10447 # Give a soname corresponding to the major version so that dld.sl refuses to
10448 # link against other versions.
10449 version_type=sunos
10450 need_lib_prefix=no
10451 need_version=no
10452 case $host_cpu in
10453 ia64*)
10454 shrext_cmds='.so'
10455 hardcode_into_libs=yes
10456 dynamic_linker="$host_os dld.so"
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460 soname_spec='${libname}${release}${shared_ext}$major'
10461 if test "X$HPUX_IA64_MODE" = X32; then
10462 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10463 else
10464 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10465 fi
10466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10467 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010468 hppa*64*)
10469 shrext_cmds='.sl'
10470 hardcode_into_libs=yes
10471 dynamic_linker="$host_os dld.sl"
10472 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10478 ;;
10479 *)
openvcdiff311c7142008-08-26 19:29:25 +000010480 shrext_cmds='.sl'
10481 dynamic_linker="$host_os dld.sl"
10482 shlibpath_var=SHLIB_PATH
10483 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10485 soname_spec='${libname}${release}${shared_ext}$major'
10486 ;;
10487 esac
10488 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10489 postinstall_cmds='chmod 555 $lib'
10490 ;;
10491
openvcdiffd1845782009-03-20 21:56:15 +000010492interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000010493 version_type=linux
10494 need_lib_prefix=no
10495 need_version=no
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=no
10501 hardcode_into_libs=yes
10502 ;;
10503
10504irix5* | irix6* | nonstopux*)
10505 case $host_os in
10506 nonstopux*) version_type=nonstopux ;;
10507 *)
10508 if test "$lt_cv_prog_gnu_ld" = yes; then
10509 version_type=linux
10510 else
10511 version_type=irix
10512 fi ;;
10513 esac
10514 need_lib_prefix=no
10515 need_version=no
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10518 case $host_os in
10519 irix5* | nonstopux*)
10520 libsuff= shlibsuff=
10521 ;;
10522 *)
10523 case $LD in # libtool.m4 will add one of these switches to LD
10524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10525 libsuff= shlibsuff= libmagic=32-bit;;
10526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10527 libsuff=32 shlibsuff=N32 libmagic=N32;;
10528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10529 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10530 *) libsuff= shlibsuff= libmagic=never-match;;
10531 esac
10532 ;;
10533 esac
10534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10535 shlibpath_overrides_runpath=no
10536 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10537 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10538 hardcode_into_libs=yes
10539 ;;
10540
10541# No shared lib support for Linux oldld, aout, or coff.
10542linux*oldld* | linux*aout* | linux*coff*)
10543 dynamic_linker=no
10544 ;;
10545
10546# This must be Linux ELF.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010547linux* | k*bsd*-gnu | kopensolaris*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000010548 version_type=linux
10549 need_lib_prefix=no
10550 need_version=no
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 shlibpath_overrides_runpath=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010556 # Some binutils ld are patched to set DT_RUNPATH
10557 save_LDFLAGS=$LDFLAGS
10558 save_libdir=$libdir
10559 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10560 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562/* end confdefs.h. */
10563
10564int
10565main ()
10566{
10567
10568 ;
10569 return 0;
10570}
10571_ACEOF
10572if ac_fn_c_try_link "$LINENO"; then :
10573 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10574 shlibpath_overrides_runpath=yes
10575fi
10576fi
10577rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10579 LDFLAGS=$save_LDFLAGS
10580 libdir=$save_libdir
10581
openvcdiff311c7142008-08-26 19:29:25 +000010582 # This implies no fast_install, which is unacceptable.
10583 # Some rework will be needed to allow for fast_install
10584 # before this can be enabled.
10585 hardcode_into_libs=yes
10586
10587 # Append ld.so.conf contents to the search path
10588 if test -f /etc/ld.so.conf; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010589 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 +000010590 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10591 fi
10592
10593 # We used to test for /lib/ld.so.1 and disable shared libraries on
10594 # powerpc, because MkLinux only supported shared libraries with the
10595 # GNU dynamic linker. Since this was broken with cross compilers,
10596 # most powerpc-linux boxes support dynamic linking these days and
10597 # people can always --disable-shared, the test was removed, and we
10598 # assume the GNU/Linux dynamic linker is in use.
10599 dynamic_linker='GNU/Linux ld.so'
10600 ;;
10601
10602netbsdelf*-gnu)
10603 version_type=linux
10604 need_lib_prefix=no
10605 need_version=no
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=no
10610 hardcode_into_libs=yes
10611 dynamic_linker='NetBSD ld.elf_so'
10612 ;;
10613
openvcdiff311c7142008-08-26 19:29:25 +000010614netbsd*)
10615 version_type=sunos
10616 need_lib_prefix=no
10617 need_version=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +000010619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10621 dynamic_linker='NetBSD (a.out) ld.so'
10622 else
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 dynamic_linker='NetBSD ld.elf_so'
10626 fi
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10630 ;;
10631
10632newsos6)
10633 version_type=linux
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10637 ;;
10638
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010639*nto* | *qnx*)
10640 version_type=qnx
openvcdiff311c7142008-08-26 19:29:25 +000010641 need_lib_prefix=no
10642 need_version=no
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 shlibpath_var=LD_LIBRARY_PATH
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010646 shlibpath_overrides_runpath=no
10647 hardcode_into_libs=yes
10648 dynamic_linker='ldqnx.so'
openvcdiff311c7142008-08-26 19:29:25 +000010649 ;;
10650
10651openbsd*)
10652 version_type=sunos
10653 sys_lib_dlsearch_path_spec="/usr/lib"
10654 need_lib_prefix=no
10655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10656 case $host_os in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010657 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10658 *) need_version=no ;;
openvcdiff311c7142008-08-26 19:29:25 +000010659 esac
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10662 shlibpath_var=LD_LIBRARY_PATH
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
openvcdiff311c7142008-08-26 19:29:25 +000010664 case $host_os in
10665 openbsd2.[89] | openbsd2.[89].*)
10666 shlibpath_overrides_runpath=no
10667 ;;
10668 *)
10669 shlibpath_overrides_runpath=yes
10670 ;;
10671 esac
10672 else
10673 shlibpath_overrides_runpath=yes
10674 fi
10675 ;;
10676
10677os2*)
10678 libname_spec='$name'
10679 shrext_cmds=".dll"
10680 need_lib_prefix=no
10681 library_names_spec='$libname${shared_ext} $libname.a'
10682 dynamic_linker='OS/2 ld.exe'
10683 shlibpath_var=LIBPATH
10684 ;;
10685
10686osf3* | osf4* | osf5*)
10687 version_type=osf
10688 need_lib_prefix=no
10689 need_version=no
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10695 ;;
10696
openvcdiffd1845782009-03-20 21:56:15 +000010697rdos*)
10698 dynamic_linker=no
10699 ;;
10700
openvcdiff311c7142008-08-26 19:29:25 +000010701solaris*)
10702 version_type=linux
10703 need_lib_prefix=no
10704 need_version=no
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 soname_spec='${libname}${release}${shared_ext}$major'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=yes
10709 hardcode_into_libs=yes
10710 # ldd complains unless libraries are executable
10711 postinstall_cmds='chmod +x $lib'
10712 ;;
10713
10714sunos4*)
10715 version_type=sunos
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 shlibpath_overrides_runpath=yes
10720 if test "$with_gnu_ld" = yes; then
10721 need_lib_prefix=no
10722 fi
10723 need_version=yes
10724 ;;
10725
10726sysv4 | sysv4.3*)
10727 version_type=linux
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 case $host_vendor in
10732 sni)
10733 shlibpath_overrides_runpath=no
10734 need_lib_prefix=no
openvcdiff311c7142008-08-26 19:29:25 +000010735 runpath_var=LD_RUN_PATH
10736 ;;
10737 siemens)
10738 need_lib_prefix=no
10739 ;;
10740 motorola)
10741 need_lib_prefix=no
10742 need_version=no
10743 shlibpath_overrides_runpath=no
10744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10745 ;;
10746 esac
10747 ;;
10748
10749sysv4*MP*)
10750 if test -d /usr/nec ;then
10751 version_type=linux
10752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10753 soname_spec='$libname${shared_ext}.$major'
10754 shlibpath_var=LD_LIBRARY_PATH
10755 fi
10756 ;;
10757
10758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10759 version_type=freebsd-elf
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LD_LIBRARY_PATH
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010765 shlibpath_overrides_runpath=yes
openvcdiff311c7142008-08-26 19:29:25 +000010766 hardcode_into_libs=yes
10767 if test "$with_gnu_ld" = yes; then
10768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
openvcdiff311c7142008-08-26 19:29:25 +000010769 else
10770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
openvcdiff311c7142008-08-26 19:29:25 +000010771 case $host_os in
10772 sco3.2v5*)
10773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10774 ;;
10775 esac
10776 fi
10777 sys_lib_dlsearch_path_spec='/usr/lib'
10778 ;;
10779
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010780tpf*)
10781 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10782 version_type=linux
10783 need_lib_prefix=no
10784 need_version=no
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10789 ;;
10790
openvcdiff311c7142008-08-26 19:29:25 +000010791uts4*)
10792 version_type=linux
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 ;;
10797
10798*)
10799 dynamic_linker=no
10800 ;;
10801esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10803$as_echo "$dynamic_linker" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010804test "$dynamic_linker" = no && can_build_shared=no
10805
10806variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10807if test "$GCC" = yes; then
10808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10809fi
10810
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010811if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10812 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10813fi
10814if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10815 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10816fi
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10905$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010906hardcode_action=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010907if test -n "$hardcode_libdir_flag_spec" ||
10908 test -n "$runpath_var" ||
openvcdiff311c7142008-08-26 19:29:25 +000010909 test "X$hardcode_automatic" = "Xyes" ; then
10910
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010911 # We can hardcode non-existent directories.
openvcdiff311c7142008-08-26 19:29:25 +000010912 if test "$hardcode_direct" != no &&
10913 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10914 # have to relink, otherwise we might link with an installed library
10915 # when we should be linking with a yet-to-be-installed one
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010916 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
openvcdiff311c7142008-08-26 19:29:25 +000010917 test "$hardcode_minus_L" != no; then
10918 # Linking always hardcodes the temporary library directory.
10919 hardcode_action=relink
10920 else
10921 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10922 hardcode_action=immediate
10923 fi
10924else
10925 # We cannot hardcode anything, or else we can only hardcode existing
10926 # directories.
10927 hardcode_action=unsupported
10928fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10930$as_echo "$hardcode_action" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000010931
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010932if test "$hardcode_action" = relink ||
10933 test "$inherit_rpath" = yes; then
openvcdiff311c7142008-08-26 19:29:25 +000010934 # Fast installation is not supported
10935 enable_fast_install=no
10936elif test "$shlibpath_overrides_runpath" = yes ||
10937 test "$enable_shared" = no; then
10938 # Fast installation is not necessary
10939 enable_fast_install=needless
10940fi
10941
openvcdiff311c7142008-08-26 19:29:25 +000010942
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010943
10944
10945
10946
10947 if test "x$enable_dlopen" != xyes; then
openvcdiff311c7142008-08-26 19:29:25 +000010948 enable_dlopen=unknown
10949 enable_dlopen_self=unknown
10950 enable_dlopen_self_static=unknown
10951else
10952 lt_cv_dlopen=no
10953 lt_cv_dlopen_libs=
10954
10955 case $host_os in
10956 beos*)
10957 lt_cv_dlopen="load_add_on"
10958 lt_cv_dlopen_libs=
10959 lt_cv_dlopen_self=yes
10960 ;;
10961
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010962 mingw* | pw32* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +000010963 lt_cv_dlopen="LoadLibrary"
10964 lt_cv_dlopen_libs=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010965 ;;
openvcdiff311c7142008-08-26 19:29:25 +000010966
10967 cygwin*)
10968 lt_cv_dlopen="dlopen"
10969 lt_cv_dlopen_libs=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010970 ;;
openvcdiff311c7142008-08-26 19:29:25 +000010971
10972 darwin*)
10973 # if libdl is installed we need to link against it
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10975$as_echo_n "checking for dlopen in -ldl... " >&6; }
10976if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000010978else
10979 ac_check_lib_save_LIBS=$LIBS
10980LIBS="-ldl $LIBS"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000010982/* end confdefs.h. */
10983
openvcdiffd1845782009-03-20 21:56:15 +000010984/* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000010987#ifdef __cplusplus
10988extern "C"
10989#endif
openvcdiff311c7142008-08-26 19:29:25 +000010990char dlopen ();
10991int
10992main ()
10993{
openvcdiffd1845782009-03-20 21:56:15 +000010994return dlopen ();
openvcdiff311c7142008-08-26 19:29:25 +000010995 ;
10996 return 0;
10997}
10998_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000010999if ac_fn_c_try_link "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +000011000 ac_cv_lib_dl_dlopen=yes
11001else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011002 ac_cv_lib_dl_dlopen=no
openvcdiff311c7142008-08-26 19:29:25 +000011003fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011004rm -f core conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011006LIBS=$ac_check_lib_save_LIBS
11007fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11009$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11010if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000011011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11012else
11013
11014 lt_cv_dlopen="dyld"
11015 lt_cv_dlopen_libs=
11016 lt_cv_dlopen_self=yes
11017
11018fi
11019
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011020 ;;
openvcdiff311c7142008-08-26 19:29:25 +000011021
11022 *)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011023 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11024if test "x$ac_cv_func_shl_load" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000011025 lt_cv_dlopen="shl_load"
11026else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11028$as_echo_n "checking for shl_load in -ldld... " >&6; }
11029if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000011031else
11032 ac_check_lib_save_LIBS=$LIBS
11033LIBS="-ldld $LIBS"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011035/* end confdefs.h. */
11036
openvcdiffd1845782009-03-20 21:56:15 +000011037/* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000011040#ifdef __cplusplus
11041extern "C"
11042#endif
openvcdiff311c7142008-08-26 19:29:25 +000011043char shl_load ();
11044int
11045main ()
11046{
openvcdiffd1845782009-03-20 21:56:15 +000011047return shl_load ();
openvcdiff311c7142008-08-26 19:29:25 +000011048 ;
11049 return 0;
11050}
11051_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011052if ac_fn_c_try_link "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +000011053 ac_cv_lib_dld_shl_load=yes
11054else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011055 ac_cv_lib_dld_shl_load=no
openvcdiff311c7142008-08-26 19:29:25 +000011056fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011057rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011059LIBS=$ac_check_lib_save_LIBS
11060fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11062$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11063if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
openvcdiffd1845782009-03-20 21:56:15 +000011064 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
openvcdiff311c7142008-08-26 19:29:25 +000011065else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011066 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11067if test "x$ac_cv_func_dlopen" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000011068 lt_cv_dlopen="dlopen"
11069else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11071$as_echo_n "checking for dlopen in -ldl... " >&6; }
11072if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000011074else
11075 ac_check_lib_save_LIBS=$LIBS
11076LIBS="-ldl $LIBS"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011078/* end confdefs.h. */
11079
openvcdiffd1845782009-03-20 21:56:15 +000011080/* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000011083#ifdef __cplusplus
11084extern "C"
11085#endif
openvcdiff311c7142008-08-26 19:29:25 +000011086char dlopen ();
11087int
11088main ()
11089{
openvcdiffd1845782009-03-20 21:56:15 +000011090return dlopen ();
openvcdiff311c7142008-08-26 19:29:25 +000011091 ;
11092 return 0;
11093}
11094_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011095if ac_fn_c_try_link "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +000011096 ac_cv_lib_dl_dlopen=yes
11097else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011098 ac_cv_lib_dl_dlopen=no
openvcdiff311c7142008-08-26 19:29:25 +000011099fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011100rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011102LIBS=$ac_check_lib_save_LIBS
11103fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11105$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11106if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000011107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11108else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11110$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11111if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000011113else
11114 ac_check_lib_save_LIBS=$LIBS
11115LIBS="-lsvld $LIBS"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011117/* end confdefs.h. */
11118
openvcdiffd1845782009-03-20 21:56:15 +000011119/* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000011122#ifdef __cplusplus
11123extern "C"
11124#endif
openvcdiff311c7142008-08-26 19:29:25 +000011125char dlopen ();
11126int
11127main ()
11128{
openvcdiffd1845782009-03-20 21:56:15 +000011129return dlopen ();
openvcdiff311c7142008-08-26 19:29:25 +000011130 ;
11131 return 0;
11132}
11133_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011134if ac_fn_c_try_link "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +000011135 ac_cv_lib_svld_dlopen=yes
11136else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011137 ac_cv_lib_svld_dlopen=no
openvcdiff311c7142008-08-26 19:29:25 +000011138fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011139rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011141LIBS=$ac_check_lib_save_LIBS
11142fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11144$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11145if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000011146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11147else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11149$as_echo_n "checking for dld_link in -ldld... " >&6; }
11150if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000011152else
11153 ac_check_lib_save_LIBS=$LIBS
11154LIBS="-ldld $LIBS"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011156/* end confdefs.h. */
11157
openvcdiffd1845782009-03-20 21:56:15 +000011158/* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
openvcdiff311c7142008-08-26 19:29:25 +000011161#ifdef __cplusplus
11162extern "C"
11163#endif
openvcdiff311c7142008-08-26 19:29:25 +000011164char dld_link ();
11165int
11166main ()
11167{
openvcdiffd1845782009-03-20 21:56:15 +000011168return dld_link ();
openvcdiff311c7142008-08-26 19:29:25 +000011169 ;
11170 return 0;
11171}
11172_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011173if ac_fn_c_try_link "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +000011174 ac_cv_lib_dld_dld_link=yes
11175else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011176 ac_cv_lib_dld_dld_link=no
openvcdiff311c7142008-08-26 19:29:25 +000011177fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011178rm -f core conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011180LIBS=$ac_check_lib_save_LIBS
11181fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11183$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11184if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
openvcdiffd1845782009-03-20 21:56:15 +000011185 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
openvcdiff311c7142008-08-26 19:29:25 +000011186fi
11187
11188
11189fi
11190
11191
11192fi
11193
11194
11195fi
11196
11197
11198fi
11199
11200
11201fi
11202
11203 ;;
11204 esac
11205
11206 if test "x$lt_cv_dlopen" != xno; then
11207 enable_dlopen=yes
11208 else
11209 enable_dlopen=no
11210 fi
11211
11212 case $lt_cv_dlopen in
11213 dlopen)
11214 save_CPPFLAGS="$CPPFLAGS"
11215 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11216
11217 save_LDFLAGS="$LDFLAGS"
11218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11219
11220 save_LIBS="$LIBS"
11221 LIBS="$lt_cv_dlopen_libs $LIBS"
11222
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11224$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11225if test "${lt_cv_dlopen_self+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000011227else
11228 if test "$cross_compiling" = yes; then :
11229 lt_cv_dlopen_self=cross
11230else
11231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11232 lt_status=$lt_dlunknown
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011233 cat > conftest.$ac_ext <<_LT_EOF
11234#line 11234 "configure"
openvcdiff311c7142008-08-26 19:29:25 +000011235#include "confdefs.h"
11236
11237#if HAVE_DLFCN_H
11238#include <dlfcn.h>
11239#endif
11240
11241#include <stdio.h>
11242
11243#ifdef RTLD_GLOBAL
11244# define LT_DLGLOBAL RTLD_GLOBAL
11245#else
11246# ifdef DL_GLOBAL
11247# define LT_DLGLOBAL DL_GLOBAL
11248# else
11249# define LT_DLGLOBAL 0
11250# endif
11251#endif
11252
11253/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11254 find out it does not work in some platform. */
11255#ifndef LT_DLLAZY_OR_NOW
11256# ifdef RTLD_LAZY
11257# define LT_DLLAZY_OR_NOW RTLD_LAZY
11258# else
11259# ifdef DL_LAZY
11260# define LT_DLLAZY_OR_NOW DL_LAZY
11261# else
11262# ifdef RTLD_NOW
11263# define LT_DLLAZY_OR_NOW RTLD_NOW
11264# else
11265# ifdef DL_NOW
11266# define LT_DLLAZY_OR_NOW DL_NOW
11267# else
11268# define LT_DLLAZY_OR_NOW 0
11269# endif
11270# endif
11271# endif
11272# endif
11273#endif
11274
openvcdiff311c7142008-08-26 19:29:25 +000011275void fnord() { int i=42;}
11276int main ()
11277{
11278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11279 int status = $lt_dlunknown;
11280
11281 if (self)
11282 {
11283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11284 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11285 /* dlclose (self); */
11286 }
11287 else
11288 puts (dlerror ());
11289
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011290 return status;
openvcdiff311c7142008-08-26 19:29:25 +000011291}
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011292_LT_EOF
11293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
openvcdiff311c7142008-08-26 19:29:25 +000011294 (eval $ac_link) 2>&5
11295 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11297 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +000011298 (./conftest; exit; ) >&5 2>/dev/null
11299 lt_status=$?
11300 case x$lt_status in
11301 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11302 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11303 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11304 esac
11305 else :
11306 # compilation failed
11307 lt_cv_dlopen_self=no
11308 fi
11309fi
11310rm -fr conftest*
11311
11312
11313fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11315$as_echo "$lt_cv_dlopen_self" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011316
11317 if test "x$lt_cv_dlopen_self" = xyes; then
11318 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11320$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11321if test "${lt_cv_dlopen_self_static+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000011323else
11324 if test "$cross_compiling" = yes; then :
11325 lt_cv_dlopen_self_static=cross
11326else
11327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11328 lt_status=$lt_dlunknown
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011329 cat > conftest.$ac_ext <<_LT_EOF
11330#line 11330 "configure"
openvcdiff311c7142008-08-26 19:29:25 +000011331#include "confdefs.h"
11332
11333#if HAVE_DLFCN_H
11334#include <dlfcn.h>
11335#endif
11336
11337#include <stdio.h>
11338
11339#ifdef RTLD_GLOBAL
11340# define LT_DLGLOBAL RTLD_GLOBAL
11341#else
11342# ifdef DL_GLOBAL
11343# define LT_DLGLOBAL DL_GLOBAL
11344# else
11345# define LT_DLGLOBAL 0
11346# endif
11347#endif
11348
11349/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11350 find out it does not work in some platform. */
11351#ifndef LT_DLLAZY_OR_NOW
11352# ifdef RTLD_LAZY
11353# define LT_DLLAZY_OR_NOW RTLD_LAZY
11354# else
11355# ifdef DL_LAZY
11356# define LT_DLLAZY_OR_NOW DL_LAZY
11357# else
11358# ifdef RTLD_NOW
11359# define LT_DLLAZY_OR_NOW RTLD_NOW
11360# else
11361# ifdef DL_NOW
11362# define LT_DLLAZY_OR_NOW DL_NOW
11363# else
11364# define LT_DLLAZY_OR_NOW 0
11365# endif
11366# endif
11367# endif
11368# endif
11369#endif
11370
openvcdiff311c7142008-08-26 19:29:25 +000011371void fnord() { int i=42;}
11372int main ()
11373{
11374 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11375 int status = $lt_dlunknown;
11376
11377 if (self)
11378 {
11379 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11380 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11381 /* dlclose (self); */
11382 }
11383 else
11384 puts (dlerror ());
11385
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011386 return status;
openvcdiff311c7142008-08-26 19:29:25 +000011387}
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011388_LT_EOF
11389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
openvcdiff311c7142008-08-26 19:29:25 +000011390 (eval $ac_link) 2>&5
11391 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11393 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +000011394 (./conftest; exit; ) >&5 2>/dev/null
11395 lt_status=$?
11396 case x$lt_status in
11397 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11398 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11399 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11400 esac
11401 else :
11402 # compilation failed
11403 lt_cv_dlopen_self_static=no
11404 fi
11405fi
11406rm -fr conftest*
11407
11408
11409fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11411$as_echo "$lt_cv_dlopen_self_static" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011412 fi
11413
11414 CPPFLAGS="$save_CPPFLAGS"
11415 LDFLAGS="$save_LDFLAGS"
11416 LIBS="$save_LIBS"
11417 ;;
11418 esac
11419
11420 case $lt_cv_dlopen_self in
11421 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11422 *) enable_dlopen_self=unknown ;;
11423 esac
11424
11425 case $lt_cv_dlopen_self_static in
11426 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11427 *) enable_dlopen_self_static=unknown ;;
11428 esac
11429fi
11430
11431
openvcdiff311c7142008-08-26 19:29:25 +000011432
openvcdiff311c7142008-08-26 19:29:25 +000011433
openvcdiff311c7142008-08-26 19:29:25 +000011434
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447striplib=
11448old_striplib=
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11450$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11451if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11452 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11453 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11455$as_echo "yes" >&6; }
11456else
11457# FIXME - insert some real tests, host_os isn't really good enough
11458 case $host_os in
11459 darwin*)
11460 if test -n "$STRIP" ; then
11461 striplib="$STRIP -x"
11462 old_striplib="$STRIP -S"
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11464$as_echo "yes" >&6; }
11465 else
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467$as_echo "no" >&6; }
11468 fi
openvcdiff311c7142008-08-26 19:29:25 +000011469 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011470 *)
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011473 ;;
11474 esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011475fi
openvcdiff311c7142008-08-26 19:29:25 +000011476
openvcdiff311c7142008-08-26 19:29:25 +000011477
openvcdiff311c7142008-08-26 19:29:25 +000011478
openvcdiff311c7142008-08-26 19:29:25 +000011479
openvcdiff311c7142008-08-26 19:29:25 +000011480
openvcdiff311c7142008-08-26 19:29:25 +000011481
openvcdiff311c7142008-08-26 19:29:25 +000011482
openvcdiff311c7142008-08-26 19:29:25 +000011483
openvcdiff311c7142008-08-26 19:29:25 +000011484
openvcdiff311c7142008-08-26 19:29:25 +000011485
openvcdiff311c7142008-08-26 19:29:25 +000011486
openvcdiff311c7142008-08-26 19:29:25 +000011487
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011488 # Report which library types will actually be built
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11490$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11492$as_echo "$can_build_shared" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011493
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11495$as_echo_n "checking whether to build shared libraries... " >&6; }
11496 test "$can_build_shared" = "no" && enable_shared=no
openvcdiff311c7142008-08-26 19:29:25 +000011497
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011498 # On AIX, shared libraries and static libraries use the same namespace, and
11499 # are all built from PIC.
openvcdiff311c7142008-08-26 19:29:25 +000011500 case $host_os in
11501 aix3*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011502 test "$enable_shared" = yes && enable_static=no
11503 if test -n "$RANLIB"; then
11504 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11505 postinstall_cmds='$RANLIB $lib'
11506 fi
11507 ;;
openvcdiff311c7142008-08-26 19:29:25 +000011508
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011509 aix[4-9]*)
11510 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11511 test "$enable_shared" = yes && enable_static=no
11512 fi
openvcdiff311c7142008-08-26 19:29:25 +000011513 ;;
11514 esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11516$as_echo "$enable_shared" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011517
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11519$as_echo_n "checking whether to build static libraries... " >&6; }
11520 # Make sure either enable_shared or enable_static is yes.
11521 test "$enable_shared" = yes || enable_static=yes
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11523$as_echo "$enable_static" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011524
openvcdiff311c7142008-08-26 19:29:25 +000011525
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011526
11527
openvcdiff311c7142008-08-26 19:29:25 +000011528fi
openvcdiff311c7142008-08-26 19:29:25 +000011529ac_ext=c
11530ac_cpp='$CPP $CPPFLAGS'
11531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11533ac_compiler_gnu=$ac_cv_c_compiler_gnu
11534
11535CC="$lt_save_CC"
11536
11537
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011538ac_ext=cpp
openvcdiff311c7142008-08-26 19:29:25 +000011539ac_cpp='$CXXCPP $CPPFLAGS'
11540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11543
openvcdiff311c7142008-08-26 19:29:25 +000011544archive_cmds_need_lc_CXX=no
11545allow_undefined_flag_CXX=
11546always_export_symbols_CXX=no
11547archive_expsym_cmds_CXX=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011548compiler_needs_object_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000011549export_dynamic_flag_spec_CXX=
11550hardcode_direct_CXX=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011551hardcode_direct_absolute_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000011552hardcode_libdir_flag_spec_CXX=
11553hardcode_libdir_flag_spec_ld_CXX=
11554hardcode_libdir_separator_CXX=
11555hardcode_minus_L_CXX=no
11556hardcode_shlibpath_var_CXX=unsupported
11557hardcode_automatic_CXX=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011558inherit_rpath_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000011559module_cmds_CXX=
11560module_expsym_cmds_CXX=
11561link_all_deplibs_CXX=unknown
11562old_archive_cmds_CXX=$old_archive_cmds
11563no_undefined_flag_CXX=
11564whole_archive_flag_spec_CXX=
11565enable_shared_with_static_runtimes_CXX=no
11566
openvcdiff311c7142008-08-26 19:29:25 +000011567# Source file extension for C++ test sources.
11568ac_ext=cpp
11569
11570# Object file extension for compiled C++ test sources.
11571objext=o
11572objext_CXX=$objext
11573
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011574# No sense in running all these tests if we already determined that
11575# the CXX compiler isn't working. Some variables (like enable_shared)
11576# are currently assumed to apply to all compilers on this platform,
11577# and will be corrupted by setting them based on a non-working compiler.
11578if test "$_lt_caught_CXX_error" != yes; then
11579 # Code to be used in simple compile tests
11580 lt_simple_compile_test_code="int some_variable = 0;"
openvcdiff311c7142008-08-26 19:29:25 +000011581
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011582 # Code to be used in simple link tests
11583 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
openvcdiff311c7142008-08-26 19:29:25 +000011584
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011585 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11586
11587
11588
11589
11590
openvcdiff311c7142008-08-26 19:29:25 +000011591
11592# If no C compiler was specified, use CC.
11593LTCC=${LTCC-"$CC"}
11594
11595# If no C compiler flags were specified, use CFLAGS.
11596LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11597
11598# Allow CC to be a program name with arguments.
11599compiler=$CC
11600
11601
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011602 # save warnings/boilerplate of simple test code
11603 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000011604echo "$lt_simple_compile_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011605eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11606_lt_compiler_boilerplate=`cat conftest.err`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011607$RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +000011608
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011609 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000011610echo "$lt_simple_link_test_code" >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000011611eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11612_lt_linker_boilerplate=`cat conftest.err`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011613$RM -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +000011614
11615
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011616 # Allow CC to be a program name with arguments.
11617 lt_save_CC=$CC
11618 lt_save_LD=$LD
11619 lt_save_GCC=$GCC
11620 GCC=$GXX
11621 lt_save_with_gnu_ld=$with_gnu_ld
11622 lt_save_path_LD=$lt_cv_path_LD
11623 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11624 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11625 else
11626 $as_unset lt_cv_prog_gnu_ld
11627 fi
11628 if test -n "${lt_cv_path_LDCXX+set}"; then
11629 lt_cv_path_LD=$lt_cv_path_LDCXX
11630 else
11631 $as_unset lt_cv_path_LD
11632 fi
11633 test -z "${LDCXX+set}" || LD=$LDCXX
11634 CC=${CXX-"c++"}
11635 compiler=$CC
11636 compiler_CXX=$CC
11637 for cc_temp in $compiler""; do
openvcdiff311c7142008-08-26 19:29:25 +000011638 case $cc_temp in
11639 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11640 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11641 \-*) ;;
11642 *) break;;
11643 esac
11644done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011645cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
openvcdiff311c7142008-08-26 19:29:25 +000011646
11647
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011648 if test -n "$compiler"; then
11649 # We don't want -fno-exception when compiling C++ code, so set the
11650 # no_builtin_flag separately
11651 if test "$GXX" = yes; then
11652 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11653 else
11654 lt_prog_compiler_no_builtin_flag_CXX=
11655 fi
openvcdiff311c7142008-08-26 19:29:25 +000011656
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011657 if test "$GXX" = yes; then
11658 # Set up default GNU C++ configuration
11659
openvcdiff311c7142008-08-26 19:29:25 +000011660
11661
openvcdiffd1845782009-03-20 21:56:15 +000011662# Check whether --with-gnu-ld was given.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011663if test "${with_gnu_ld+set}" = set; then :
openvcdiffd1845782009-03-20 21:56:15 +000011664 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
openvcdiff311c7142008-08-26 19:29:25 +000011665else
11666 with_gnu_ld=no
openvcdiffd1845782009-03-20 21:56:15 +000011667fi
11668
openvcdiff311c7142008-08-26 19:29:25 +000011669ac_prog=ld
11670if test "$GCC" = yes; then
11671 # Check if gcc -print-prog-name=ld gives a path.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11673$as_echo_n "checking for ld used by $CC... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011674 case $host in
11675 *-*-mingw*)
11676 # gcc leaves a trailing carriage return which upsets mingw
11677 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11678 *)
11679 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11680 esac
11681 case $ac_prog in
11682 # Accept absolute paths.
11683 [\\/]* | ?:[\\/]*)
11684 re_direlt='/[^/][^/]*/\.\./'
11685 # Canonicalize the pathname of ld
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011686 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11687 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11688 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
openvcdiff311c7142008-08-26 19:29:25 +000011689 done
11690 test -z "$LD" && LD="$ac_prog"
11691 ;;
11692 "")
11693 # If it fails, then pretend we aren't using GCC.
11694 ac_prog=ld
11695 ;;
11696 *)
11697 # If it is relative, then search for the first ld in PATH.
11698 with_gnu_ld=unknown
11699 ;;
11700 esac
11701elif test "$with_gnu_ld" = yes; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11703$as_echo_n "checking for GNU ld... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011704else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11706$as_echo_n "checking for non-GNU ld... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011707fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011708if test "${lt_cv_path_LD+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000011710else
11711 if test -z "$LD"; then
11712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11713 for ac_dir in $PATH; do
11714 IFS="$lt_save_ifs"
11715 test -z "$ac_dir" && ac_dir=.
11716 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11717 lt_cv_path_LD="$ac_dir/$ac_prog"
11718 # Check to see if the program is GNU ld. I'd rather use --version,
11719 # but apparently some variants of GNU ld only accept -v.
11720 # Break only if it was the GNU/non-GNU ld that we prefer.
11721 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11722 *GNU* | *'with BFD'*)
11723 test "$with_gnu_ld" != no && break
11724 ;;
11725 *)
11726 test "$with_gnu_ld" != yes && break
11727 ;;
11728 esac
11729 fi
11730 done
11731 IFS="$lt_save_ifs"
11732else
11733 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11734fi
11735fi
11736
11737LD="$lt_cv_path_LD"
11738if test -n "$LD"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11740$as_echo "$LD" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011741else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743$as_echo "no" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011744fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011745test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11747$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11748if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000011750else
11751 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11752case `$LD -v 2>&1 </dev/null` in
11753*GNU* | *'with BFD'*)
11754 lt_cv_prog_gnu_ld=yes
11755 ;;
11756*)
11757 lt_cv_prog_gnu_ld=no
11758 ;;
11759esac
11760fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11762$as_echo "$lt_cv_prog_gnu_ld" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000011763with_gnu_ld=$lt_cv_prog_gnu_ld
11764
11765
11766
openvcdiff311c7142008-08-26 19:29:25 +000011767
openvcdiff311c7142008-08-26 19:29:25 +000011768
openvcdiff311c7142008-08-26 19:29:25 +000011769
openvcdiff311c7142008-08-26 19:29:25 +000011770
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011771 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11772 # archiving commands below assume that GNU ld is being used.
11773 if test "$with_gnu_ld" = yes; then
11774 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11775 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'
openvcdiff311c7142008-08-26 19:29:25 +000011776
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11778 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
openvcdiff311c7142008-08-26 19:29:25 +000011779
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011780 # If archive_cmds runs LD, not CC, wlarc should be empty
11781 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11782 # investigate it a little bit more. (MM)
11783 wlarc='${wl}'
openvcdiff311c7142008-08-26 19:29:25 +000011784
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011785 # ancient GNU ld didn't support --whole-archive et. al.
11786 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11787 $GREP 'no-whole-archive' > /dev/null; then
11788 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11789 else
11790 whole_archive_flag_spec_CXX=
11791 fi
openvcdiff311c7142008-08-26 19:29:25 +000011792 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011793 with_gnu_ld=no
11794 wlarc=
11795
11796 # A generic and very simple default shared library creation
11797 # command for GNU C++ for the case where it uses the native
11798 # linker, instead of GNU ld. If possible, this setting should
11799 # overridden to take advantage of the native linker features on
11800 # the platform it is being used on.
11801 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +000011802 fi
openvcdiff311c7142008-08-26 19:29:25 +000011803
openvcdiff311c7142008-08-26 19:29:25 +000011804 # Commands to make compiler produce verbose output that lists
11805 # what "hidden" libraries, object files and flags are used when
11806 # linking a shared library.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11808
11809 else
11810 GXX=no
11811 with_gnu_ld=no
11812 wlarc=
11813 fi
11814
11815 # PORTME: fill in a description of your system's C++ link characteristics
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11817$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11818 ld_shlibs_CXX=yes
11819 case $host_os in
11820 aix3*)
openvcdiff311c7142008-08-26 19:29:25 +000011821 # FIXME: insert proper C++ library support
11822 ld_shlibs_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000011823 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011824 aix[4-9]*)
11825 if test "$host_cpu" = ia64; then
11826 # On IA64, the linker does run time linking by default, so we don't
11827 # have to do anything special.
11828 aix_use_runtimelinking=no
11829 exp_sym_flag='-Bexport'
11830 no_entry_flag=""
11831 else
11832 aix_use_runtimelinking=no
openvcdiff311c7142008-08-26 19:29:25 +000011833
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000011834 # Test if we are trying to use run time linking or normal
11835 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11836 # need to do runtime linking.
11837 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11838 for ld_flag in $LDFLAGS; do
11839 case $ld_flag in
11840 *-brtl*)
11841 aix_use_runtimelinking=yes
11842 break
11843 ;;
11844 esac
11845 done
11846 ;;
11847 esac
11848
11849 exp_sym_flag='-bexport'
11850 no_entry_flag='-bnoentry'
11851 fi
11852
11853 # When large executables or shared objects are built, AIX ld can
11854 # have problems creating the table of contents. If linking a library
11855 # or program results in "error TOC overflow" add -mminimal-toc to
11856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11858
11859 archive_cmds_CXX=''
11860 hardcode_direct_CXX=yes
11861 hardcode_direct_absolute_CXX=yes
11862 hardcode_libdir_separator_CXX=':'
11863 link_all_deplibs_CXX=yes
11864 file_list_spec_CXX='${wl}-f,'
11865
11866 if test "$GXX" = yes; then
11867 case $host_os in aix4.[012]|aix4.[012].*)
11868 # We only want to do this on AIX 4.2 and lower, the check
11869 # below for broken collect2 doesn't work under 4.3+
11870 collect2name=`${CC} -print-prog-name=collect2`
11871 if test -f "$collect2name" &&
11872 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11873 then
11874 # We have reworked collect2
11875 :
11876 else
11877 # We have old collect2
11878 hardcode_direct_CXX=unsupported
11879 # It fails to find uninstalled libraries when the uninstalled
11880 # path is not listed in the libpath. Setting hardcode_minus_L
11881 # to unsupported forces relinking
11882 hardcode_minus_L_CXX=yes
11883 hardcode_libdir_flag_spec_CXX='-L$libdir'
11884 hardcode_libdir_separator_CXX=
11885 fi
11886 esac
11887 shared_flag='-shared'
11888 if test "$aix_use_runtimelinking" = yes; then
11889 shared_flag="$shared_flag "'${wl}-G'
11890 fi
11891 else
11892 # not using gcc
11893 if test "$host_cpu" = ia64; then
11894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11895 # chokes on -Wl,-G. The following line is correct:
11896 shared_flag='-G'
11897 else
11898 if test "$aix_use_runtimelinking" = yes; then
11899 shared_flag='${wl}-G'
11900 else
11901 shared_flag='${wl}-bM:SRE'
11902 fi
11903 fi
11904 fi
11905
11906 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11907 # It seems that -bexpall does not export symbols beginning with
11908 # underscore (_), so it is better to generate a list of symbols to
11909 # export.
11910 always_export_symbols_CXX=yes
11911 if test "$aix_use_runtimelinking" = yes; then
11912 # Warning - without using the other runtime loading flags (-brtl),
11913 # -berok will link without error, but may produce a broken library.
11914 allow_undefined_flag_CXX='-berok'
11915 # Determine the default libpath from the value encoded in an empty
11916 # executable.
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918/* end confdefs.h. */
11919
11920int
11921main ()
11922{
11923
11924 ;
11925 return 0;
11926}
11927_ACEOF
11928if ac_fn_cxx_try_link "$LINENO"; then :
11929
11930lt_aix_libpath_sed='
11931 /Import File Strings/,/^$/ {
11932 /^0/ {
11933 s/^0 *\(.*\)$/\1/
11934 p
11935 }
11936 }'
11937aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11938# Check for a 64-bit object if we didn't find anything.
11939if test -z "$aix_libpath"; then
11940 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11941fi
11942fi
11943rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11946
11947 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11948
11949 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11950 else
11951 if test "$host_cpu" = ia64; then
11952 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11953 allow_undefined_flag_CXX="-z nodefs"
11954 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"
11955 else
11956 # Determine the default libpath from the value encoded in an
11957 # empty executable.
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959/* end confdefs.h. */
11960
11961int
11962main ()
11963{
11964
11965 ;
11966 return 0;
11967}
11968_ACEOF
11969if ac_fn_cxx_try_link "$LINENO"; then :
11970
11971lt_aix_libpath_sed='
11972 /Import File Strings/,/^$/ {
11973 /^0/ {
11974 s/^0 *\(.*\)$/\1/
11975 p
11976 }
11977 }'
11978aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11979# Check for a 64-bit object if we didn't find anything.
11980if test -z "$aix_libpath"; then
11981 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11982fi
11983fi
11984rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11987
11988 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11989 # Warning - without using the other run time loading flags,
11990 # -berok will link without error, but may produce a broken library.
11991 no_undefined_flag_CXX=' ${wl}-bernotok'
11992 allow_undefined_flag_CXX=' ${wl}-berok'
11993 # Exported symbols can be pulled into shared objects from archives
11994 whole_archive_flag_spec_CXX='$convenience'
11995 archive_cmds_need_lc_CXX=yes
11996 # This is similar to how AIX traditionally builds its shared
11997 # libraries.
11998 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'
11999 fi
12000 fi
12001 ;;
12002
12003 beos*)
12004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12005 allow_undefined_flag_CXX=unsupported
12006 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12007 # support --undefined. This deserves some investigation. FIXME
12008 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12009 else
12010 ld_shlibs_CXX=no
12011 fi
openvcdiff311c7142008-08-26 19:29:25 +000012012 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012013
12014 chorus*)
12015 case $cc_basename in
12016 *)
12017 # FIXME: insert proper C++ library support
12018 ld_shlibs_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000012019 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012020 esac
12021 ;;
12022
12023 cygwin* | mingw* | pw32* | cegcc*)
12024 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12025 # as there is no search path for DLLs.
12026 hardcode_libdir_flag_spec_CXX='-L$libdir'
12027 allow_undefined_flag_CXX=unsupported
12028 always_export_symbols_CXX=no
12029 enable_shared_with_static_runtimes_CXX=yes
12030
12031 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12032 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'
12033 # If the export-symbols file already is a .def file (1st line
12034 # is EXPORTS), use it as is; otherwise, prepend...
12035 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12036 cp $export_symbols $output_objdir/$soname.def;
12037 else
12038 echo EXPORTS > $output_objdir/$soname.def;
12039 cat $export_symbols >> $output_objdir/$soname.def;
12040 fi~
12041 $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'
12042 else
12043 ld_shlibs_CXX=no
12044 fi
12045 ;;
12046 darwin* | rhapsody*)
12047
12048
12049 archive_cmds_need_lc_CXX=no
12050 hardcode_direct_CXX=no
12051 hardcode_automatic_CXX=yes
12052 hardcode_shlibpath_var_CXX=unsupported
12053 whole_archive_flag_spec_CXX=''
12054 link_all_deplibs_CXX=yes
12055 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12056 case $cc_basename in
12057 ifort*) _lt_dar_can_shared=yes ;;
12058 *) _lt_dar_can_shared=$GCC ;;
12059 esac
12060 if test "$_lt_dar_can_shared" = "yes"; then
12061 output_verbose_link_cmd=echo
12062 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}"
12063 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12064 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}"
12065 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}"
12066 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12067 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}"
12068 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}"
12069 fi
12070
12071 else
12072 ld_shlibs_CXX=no
12073 fi
12074
openvcdiff311c7142008-08-26 19:29:25 +000012075 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012076
12077 dgux*)
12078 case $cc_basename in
12079 ec++*)
12080 # FIXME: insert proper C++ library support
12081 ld_shlibs_CXX=no
12082 ;;
12083 ghcx*)
12084 # Green Hills C++ Compiler
12085 # FIXME: insert proper C++ library support
12086 ld_shlibs_CXX=no
12087 ;;
12088 *)
12089 # FIXME: insert proper C++ library support
12090 ld_shlibs_CXX=no
12091 ;;
12092 esac
12093 ;;
12094
12095 freebsd[12]*)
12096 # C++ shared libraries reported to be fairly broken before
12097 # switch to ELF
12098 ld_shlibs_CXX=no
12099 ;;
12100
12101 freebsd-elf*)
12102 archive_cmds_need_lc_CXX=no
12103 ;;
12104
12105 freebsd* | dragonfly*)
12106 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12107 # conventions
12108 ld_shlibs_CXX=yes
12109 ;;
12110
12111 gnu*)
12112 ;;
12113
12114 hpux9*)
12115 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12116 hardcode_libdir_separator_CXX=:
12117 export_dynamic_flag_spec_CXX='${wl}-E'
12118 hardcode_direct_CXX=yes
12119 hardcode_minus_L_CXX=yes # Not in the search PATH,
12120 # but as the default
12121 # location of the library.
12122
12123 case $cc_basename in
12124 CC*)
12125 # FIXME: insert proper C++ library support
12126 ld_shlibs_CXX=no
12127 ;;
12128 aCC*)
12129 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'
12130 # Commands to make compiler produce verbose output that lists
12131 # what "hidden" libraries, object files and flags are used when
12132 # linking a shared library.
12133 #
12134 # There doesn't appear to be a way to prevent this compiler from
12135 # explicitly linking system object files so we need to strip them
12136 # from the output so that they don't get included in the library
12137 # dependencies.
12138 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12139 ;;
12140 *)
12141 if test "$GXX" = yes; then
12142 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'
12143 else
12144 # FIXME: insert proper C++ library support
12145 ld_shlibs_CXX=no
12146 fi
12147 ;;
12148 esac
12149 ;;
12150
12151 hpux10*|hpux11*)
12152 if test $with_gnu_ld = no; then
12153 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12154 hardcode_libdir_separator_CXX=:
12155
12156 case $host_cpu in
12157 hppa*64*|ia64*)
12158 ;;
12159 *)
12160 export_dynamic_flag_spec_CXX='${wl}-E'
12161 ;;
12162 esac
12163 fi
12164 case $host_cpu in
12165 hppa*64*|ia64*)
12166 hardcode_direct_CXX=no
12167 hardcode_shlibpath_var_CXX=no
12168 ;;
12169 *)
12170 hardcode_direct_CXX=yes
12171 hardcode_direct_absolute_CXX=yes
12172 hardcode_minus_L_CXX=yes # Not in the search PATH,
12173 # but as the default
12174 # location of the library.
12175 ;;
12176 esac
12177
12178 case $cc_basename in
12179 CC*)
12180 # FIXME: insert proper C++ library support
12181 ld_shlibs_CXX=no
12182 ;;
12183 aCC*)
openvcdiff311c7142008-08-26 19:29:25 +000012184 case $host_cpu in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012185 hppa*64*)
12186 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12187 ;;
12188 ia64*)
12189 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12190 ;;
12191 *)
12192 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12193 ;;
12194 esac
12195 # Commands to make compiler produce verbose output that lists
12196 # what "hidden" libraries, object files and flags are used when
12197 # linking a shared library.
12198 #
12199 # There doesn't appear to be a way to prevent this compiler from
12200 # explicitly linking system object files so we need to strip them
12201 # from the output so that they don't get included in the library
12202 # dependencies.
12203 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 "X$list" | $Xsed'
12204 ;;
12205 *)
12206 if test "$GXX" = yes; then
12207 if test $with_gnu_ld = no; then
12208 case $host_cpu in
12209 hppa*64*)
12210 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12211 ;;
12212 ia64*)
12213 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12214 ;;
12215 *)
12216 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'
12217 ;;
12218 esac
12219 fi
12220 else
12221 # FIXME: insert proper C++ library support
12222 ld_shlibs_CXX=no
12223 fi
12224 ;;
12225 esac
12226 ;;
12227
12228 interix[3-9]*)
12229 hardcode_direct_CXX=no
12230 hardcode_shlibpath_var_CXX=no
12231 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12232 export_dynamic_flag_spec_CXX='${wl}-E'
12233 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12234 # Instead, shared libraries are loaded at an image base (0x10000000 by
12235 # default) and relocated if they conflict, which is a slow very memory
12236 # consuming and fragmenting process. To avoid this, we pick a random,
12237 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12238 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12239 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'
12240 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'
12241 ;;
12242 irix5* | irix6*)
12243 case $cc_basename in
12244 CC*)
12245 # SGI C++
12246 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12247
12248 # Archives containing C++ object files must be created using
12249 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12250 # necessary to make sure instantiated templates are included
12251 # in the archive.
12252 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12253 ;;
12254 *)
12255 if test "$GXX" = yes; then
12256 if test "$with_gnu_ld" = no; then
12257 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12258 else
12259 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12260 fi
12261 fi
12262 link_all_deplibs_CXX=yes
12263 ;;
12264 esac
12265 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12266 hardcode_libdir_separator_CXX=:
12267 inherit_rpath_CXX=yes
12268 ;;
12269
12270 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12271 case $cc_basename in
12272 KCC*)
12273 # Kuck and Associates, Inc. (KAI) C++ Compiler
12274
12275 # KCC will only create a shared library if the output file
12276 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12277 # to its proper name (with version) after linking.
12278 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'
12279 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'
12280 # Commands to make compiler produce verbose output that lists
12281 # what "hidden" libraries, object files and flags are used when
12282 # linking a shared library.
12283 #
12284 # There doesn't appear to be a way to prevent this compiler from
12285 # explicitly linking system object files so we need to strip them
12286 # from the output so that they don't get included in the library
12287 # dependencies.
12288 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 "X$list" | $Xsed'
12289
12290 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12291 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12292
12293 # Archives containing C++ object files must be created using
12294 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12295 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12296 ;;
12297 icpc* | ecpc* )
12298 # Intel C++
12299 with_gnu_ld=yes
12300 # version 8.0 and above of icpc choke on multiply defined symbols
12301 # if we add $predep_objects and $postdep_objects, however 7.1 and
12302 # earlier do not add the objects themselves.
12303 case `$CC -V 2>&1` in
12304 *"Version 7."*)
12305 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12306 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'
12307 ;;
12308 *) # Version 8.0 or newer
12309 tmp_idyn=
12310 case $host_cpu in
12311 ia64*) tmp_idyn=' -i_dynamic';;
12312 esac
12313 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12314 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'
12315 ;;
12316 esac
12317 archive_cmds_need_lc_CXX=no
12318 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12319 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12320 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12321 ;;
12322 pgCC* | pgcpp*)
12323 # Portland Group C++ compiler
12324 case `$CC -V` in
12325 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12326 prelink_cmds_CXX='tpldir=Template.dir~
12327 rm -rf $tpldir~
12328 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12329 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12330 old_archive_cmds_CXX='tpldir=Template.dir~
12331 rm -rf $tpldir~
12332 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12333 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12334 $RANLIB $oldlib'
12335 archive_cmds_CXX='tpldir=Template.dir~
12336 rm -rf $tpldir~
12337 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12338 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12339 archive_expsym_cmds_CXX='tpldir=Template.dir~
12340 rm -rf $tpldir~
12341 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12342 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
openvcdiff311c7142008-08-26 19:29:25 +000012343 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012344 *) # Version 6 will use weak symbols
12345 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12346 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'
openvcdiff311c7142008-08-26 19:29:25 +000012347 ;;
12348 esac
openvcdiff311c7142008-08-26 19:29:25 +000012349
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012350 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12352 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'
12353 ;;
12354 cxx*)
12355 # Compaq C++
12356 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12357 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'
openvcdiff311c7142008-08-26 19:29:25 +000012358
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012359 runpath_var=LD_RUN_PATH
12360 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12361 hardcode_libdir_separator_CXX=:
openvcdiff311c7142008-08-26 19:29:25 +000012362
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012363 # Commands to make compiler produce verbose output that lists
12364 # what "hidden" libraries, object files and flags are used when
12365 # linking a shared library.
12366 #
12367 # There doesn't appear to be a way to prevent this compiler from
12368 # explicitly linking system object files so we need to strip them
12369 # from the output so that they don't get included in the library
12370 # dependencies.
12371 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12372 ;;
12373 xl*)
12374 # IBM XL 8.0 on PPC, with GNU ld
12375 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12377 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12378 if test "x$supports_anon_versioning" = xyes; then
12379 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12380 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12381 echo "local: *; };" >> $output_objdir/$libname.ver~
12382 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12383 fi
12384 ;;
12385 *)
12386 case `$CC -V 2>&1 | sed 5q` in
12387 *Sun\ C*)
12388 # Sun C++ 5.9
12389 no_undefined_flag_CXX=' -zdefs'
12390 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12391 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'
12392 hardcode_libdir_flag_spec_CXX='-R$libdir'
12393 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'
12394 compiler_needs_object_CXX=yes
openvcdiff311c7142008-08-26 19:29:25 +000012395
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012396 # Not sure whether something based on
12397 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12398 # would be better.
12399 output_verbose_link_cmd='echo'
12400
12401 # Archives containing C++ object files must be created using
12402 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12403 # necessary to make sure instantiated templates are included
12404 # in the archive.
12405 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12406 ;;
12407 esac
12408 ;;
openvcdiff311c7142008-08-26 19:29:25 +000012409 esac
openvcdiff311c7142008-08-26 19:29:25 +000012410 ;;
openvcdiff311c7142008-08-26 19:29:25 +000012411
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012412 lynxos*)
12413 # FIXME: insert proper C++ library support
12414 ld_shlibs_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000012415 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012416
12417 m88k*)
12418 # FIXME: insert proper C++ library support
12419 ld_shlibs_CXX=no
12420 ;;
12421
12422 mvs*)
12423 case $cc_basename in
12424 cxx*)
12425 # FIXME: insert proper C++ library support
12426 ld_shlibs_CXX=no
12427 ;;
12428 *)
12429 # FIXME: insert proper C++ library support
12430 ld_shlibs_CXX=no
12431 ;;
12432 esac
12433 ;;
12434
12435 netbsd*)
12436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12437 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12438 wlarc=
openvcdiffd1845782009-03-20 21:56:15 +000012439 hardcode_libdir_flag_spec_CXX='-R$libdir'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012440 hardcode_direct_CXX=yes
12441 hardcode_shlibpath_var_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000012442 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012443 # Workaround some broken pre-1.5 toolchains
12444 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
openvcdiff311c7142008-08-26 19:29:25 +000012445 ;;
openvcdiff311c7142008-08-26 19:29:25 +000012446
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012447 *nto* | *qnx*)
12448 ld_shlibs_CXX=yes
openvcdiff311c7142008-08-26 19:29:25 +000012449 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012450
12451 openbsd2*)
12452 # C++ shared libraries are fairly broken
openvcdiff311c7142008-08-26 19:29:25 +000012453 ld_shlibs_CXX=no
12454 ;;
openvcdiff311c7142008-08-26 19:29:25 +000012455
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012456 openbsd*)
12457 if test -f /usr/libexec/ld.so; then
12458 hardcode_direct_CXX=yes
12459 hardcode_shlibpath_var_CXX=no
12460 hardcode_direct_absolute_CXX=yes
12461 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12464 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12465 export_dynamic_flag_spec_CXX='${wl}-E'
12466 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
openvcdiff311c7142008-08-26 19:29:25 +000012467 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012468 output_verbose_link_cmd=echo
12469 else
12470 ld_shlibs_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000012471 fi
12472 ;;
openvcdiff311c7142008-08-26 19:29:25 +000012473
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012474 osf3* | osf4* | osf5*)
12475 case $cc_basename in
12476 KCC*)
12477 # Kuck and Associates, Inc. (KAI) C++ Compiler
12478
12479 # KCC will only create a shared library if the output file
12480 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12481 # to its proper name (with version) after linking.
12482 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'
12483
12484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12485 hardcode_libdir_separator_CXX=:
12486
12487 # Archives containing C++ object files must be created using
12488 # the KAI C++ compiler.
12489 case $host in
12490 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12491 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12492 esac
12493 ;;
12494 RCC*)
12495 # Rational C++ 2.4.1
12496 # FIXME: insert proper C++ library support
12497 ld_shlibs_CXX=no
12498 ;;
12499 cxx*)
12500 case $host in
12501 osf3*)
12502 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12503 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12505 ;;
12506 *)
12507 allow_undefined_flag_CXX=' -expect_unresolved \*'
12508 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12509 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12510 echo "-hidden">> $lib.exp~
12511 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12512 $RM $lib.exp'
12513 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12514 ;;
12515 esac
12516
12517 hardcode_libdir_separator_CXX=:
12518
12519 # Commands to make compiler produce verbose output that lists
12520 # what "hidden" libraries, object files and flags are used when
12521 # linking a shared library.
12522 #
12523 # There doesn't appear to be a way to prevent this compiler from
12524 # explicitly linking system object files so we need to strip them
12525 # from the output so that they don't get included in the library
12526 # dependencies.
12527 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12528 ;;
12529 *)
12530 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12531 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12532 case $host in
12533 osf3*)
12534 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12535 ;;
12536 *)
12537 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12538 ;;
12539 esac
12540
12541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12542 hardcode_libdir_separator_CXX=:
12543
12544 # Commands to make compiler produce verbose output that lists
12545 # what "hidden" libraries, object files and flags are used when
12546 # linking a shared library.
12547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12548
12549 else
12550 # FIXME: insert proper C++ library support
12551 ld_shlibs_CXX=no
12552 fi
12553 ;;
12554 esac
12555 ;;
12556
12557 psos*)
12558 # FIXME: insert proper C++ library support
12559 ld_shlibs_CXX=no
12560 ;;
12561
12562 sunos4*)
12563 case $cc_basename in
12564 CC*)
12565 # Sun C++ 4.x
12566 # FIXME: insert proper C++ library support
12567 ld_shlibs_CXX=no
12568 ;;
12569 lcc*)
12570 # Lucid
12571 # FIXME: insert proper C++ library support
12572 ld_shlibs_CXX=no
12573 ;;
12574 *)
12575 # FIXME: insert proper C++ library support
12576 ld_shlibs_CXX=no
12577 ;;
12578 esac
12579 ;;
12580
12581 solaris*)
12582 case $cc_basename in
12583 CC*)
12584 # Sun C++ 4.2, 5.x and Centerline C++
12585 archive_cmds_need_lc_CXX=yes
12586 no_undefined_flag_CXX=' -zdefs'
12587 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12588 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12589 $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'
12590
12591 hardcode_libdir_flag_spec_CXX='-R$libdir'
12592 hardcode_shlibpath_var_CXX=no
12593 case $host_os in
12594 solaris2.[0-5] | solaris2.[0-5].*) ;;
12595 *)
12596 # The compiler driver will combine and reorder linker options,
12597 # but understands `-z linker_flag'.
12598 # Supported since Solaris 2.6 (maybe 2.5.1?)
12599 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12600 ;;
12601 esac
12602 link_all_deplibs_CXX=yes
12603
12604 output_verbose_link_cmd='echo'
12605
12606 # Archives containing C++ object files must be created using
12607 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12608 # necessary to make sure instantiated templates are included
12609 # in the archive.
12610 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12611 ;;
12612 gcx*)
12613 # Green Hills C++ Compiler
12614 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12615
12616 # The C++ compiler must be used to create the archive.
12617 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12618 ;;
12619 *)
12620 # GNU C++ compiler with Solaris linker
12621 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12622 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12623 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12624 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12625 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12626 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12627
12628 # Commands to make compiler produce verbose output that lists
12629 # what "hidden" libraries, object files and flags are used when
12630 # linking a shared library.
12631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12632 else
12633 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12634 # platform.
12635 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12636 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12637 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12638
12639 # Commands to make compiler produce verbose output that lists
12640 # what "hidden" libraries, object files and flags are used when
12641 # linking a shared library.
12642 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12643 fi
12644
12645 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12646 case $host_os in
12647 solaris2.[0-5] | solaris2.[0-5].*) ;;
12648 *)
12649 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12650 ;;
12651 esac
12652 fi
12653 ;;
12654 esac
12655 ;;
12656
12657 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12658 no_undefined_flag_CXX='${wl}-z,text'
12659 archive_cmds_need_lc_CXX=no
12660 hardcode_shlibpath_var_CXX=no
12661 runpath_var='LD_RUN_PATH'
12662
12663 case $cc_basename in
12664 CC*)
12665 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12666 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12667 ;;
12668 *)
12669 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12670 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12671 ;;
12672 esac
12673 ;;
12674
12675 sysv5* | sco3.2v5* | sco5v6*)
12676 # Note: We can NOT use -z defs as we might desire, because we do not
12677 # link with -lc, and that would cause any symbols used from libc to
12678 # always be unresolved, which means just about no library would
12679 # ever link correctly. If we're not using GNU ld we use -z text
12680 # though, which does catch some bad symbols but isn't as heavy-handed
12681 # as -z defs.
12682 no_undefined_flag_CXX='${wl}-z,text'
12683 allow_undefined_flag_CXX='${wl}-z,nodefs'
12684 archive_cmds_need_lc_CXX=no
12685 hardcode_shlibpath_var_CXX=no
12686 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12687 hardcode_libdir_separator_CXX=':'
12688 link_all_deplibs_CXX=yes
12689 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12690 runpath_var='LD_RUN_PATH'
12691
12692 case $cc_basename in
12693 CC*)
12694 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12695 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12696 ;;
12697 *)
12698 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12699 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12700 ;;
12701 esac
12702 ;;
12703
12704 tandem*)
12705 case $cc_basename in
12706 NCC*)
12707 # NonStop-UX NCC 3.20
12708 # FIXME: insert proper C++ library support
12709 ld_shlibs_CXX=no
12710 ;;
12711 *)
12712 # FIXME: insert proper C++ library support
12713 ld_shlibs_CXX=no
12714 ;;
12715 esac
12716 ;;
12717
12718 vxworks*)
12719 # FIXME: insert proper C++ library support
12720 ld_shlibs_CXX=no
12721 ;;
12722
openvcdiff311c7142008-08-26 19:29:25 +000012723 *)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012724 # FIXME: insert proper C++ library support
12725 ld_shlibs_CXX=no
12726 ;;
openvcdiff311c7142008-08-26 19:29:25 +000012727 esac
openvcdiff311c7142008-08-26 19:29:25 +000012728
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12730$as_echo "$ld_shlibs_CXX" >&6; }
12731 test "$ld_shlibs_CXX" = no && can_build_shared=no
openvcdiff311c7142008-08-26 19:29:25 +000012732
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012733 GCC_CXX="$GXX"
12734 LD_CXX="$LD"
openvcdiff311c7142008-08-26 19:29:25 +000012735
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012736 ## CAVEAT EMPTOR:
12737 ## There is no encapsulation within the following macros, do not change
12738 ## the running order or otherwise move them around unless you know exactly
12739 ## what you are doing...
12740 # Dependencies to place before and after the object being linked:
12741predep_objects_CXX=
12742postdep_objects_CXX=
12743predeps_CXX=
12744postdeps_CXX=
12745compiler_lib_search_path_CXX=
12746
12747cat > conftest.$ac_ext <<_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +000012748class Foo
12749{
12750public:
12751 Foo (void) { a = 0; }
12752private:
12753 int a;
12754};
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012755_LT_EOF
openvcdiff311c7142008-08-26 19:29:25 +000012756
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012757if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
openvcdiff311c7142008-08-26 19:29:25 +000012758 (eval $ac_compile) 2>&5
12759 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12761 test $ac_status = 0; }; then
openvcdiff311c7142008-08-26 19:29:25 +000012762 # Parse the compiler output and extract the necessary
12763 # objects, libraries and library flags.
12764
12765 # Sentinel used to keep track of whether or not we are before
12766 # the conftest object file.
12767 pre_test_object_deps_done=no
12768
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012769 for p in `eval "$output_verbose_link_cmd"`; do
openvcdiff311c7142008-08-26 19:29:25 +000012770 case $p in
12771
12772 -L* | -R* | -l*)
12773 # Some compilers place space between "-{L,R}" and the path.
12774 # Remove the space.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012775 if test $p = "-L" ||
12776 test $p = "-R"; then
openvcdiff311c7142008-08-26 19:29:25 +000012777 prev=$p
12778 continue
12779 else
12780 prev=
12781 fi
12782
12783 if test "$pre_test_object_deps_done" = no; then
12784 case $p in
12785 -L* | -R*)
12786 # Internal compiler library paths should come after those
12787 # provided the user. The postdeps already come after the
12788 # user supplied libs so there is no need to process them.
12789 if test -z "$compiler_lib_search_path_CXX"; then
12790 compiler_lib_search_path_CXX="${prev}${p}"
12791 else
12792 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12793 fi
12794 ;;
12795 # The "-l" case would never come before the object being
12796 # linked, so don't bother handling this case.
12797 esac
12798 else
12799 if test -z "$postdeps_CXX"; then
12800 postdeps_CXX="${prev}${p}"
12801 else
12802 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12803 fi
12804 fi
12805 ;;
12806
12807 *.$objext)
12808 # This assumes that the test object file only shows up
12809 # once in the compiler output.
12810 if test "$p" = "conftest.$objext"; then
12811 pre_test_object_deps_done=yes
12812 continue
12813 fi
12814
12815 if test "$pre_test_object_deps_done" = no; then
12816 if test -z "$predep_objects_CXX"; then
12817 predep_objects_CXX="$p"
12818 else
12819 predep_objects_CXX="$predep_objects_CXX $p"
12820 fi
12821 else
12822 if test -z "$postdep_objects_CXX"; then
12823 postdep_objects_CXX="$p"
12824 else
12825 postdep_objects_CXX="$postdep_objects_CXX $p"
12826 fi
12827 fi
12828 ;;
12829
12830 *) ;; # Ignore the rest.
12831
12832 esac
12833 done
12834
12835 # Clean up.
12836 rm -f a.out a.exe
12837else
12838 echo "libtool.m4: error: problem compiling CXX test program"
12839fi
12840
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012841$RM -f confest.$objext
openvcdiffd1845782009-03-20 21:56:15 +000012842
openvcdiff311c7142008-08-26 19:29:25 +000012843# PORTME: override above test on systems where it is broken
12844case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +000012845interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000012846 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12847 # hack all around it, let's just trust "g++" to DTRT.
12848 predep_objects_CXX=
12849 postdep_objects_CXX=
12850 postdeps_CXX=
12851 ;;
12852
openvcdiffd1845782009-03-20 21:56:15 +000012853linux*)
12854 case `$CC -V 2>&1 | sed 5q` in
12855 *Sun\ C*)
12856 # Sun C++ 5.9
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012857
openvcdiffd1845782009-03-20 21:56:15 +000012858 # The more standards-conforming stlport4 library is
12859 # incompatible with the Cstd library. Avoid specifying
12860 # it if it's in CXXFLAGS. Ignore libCrun as
12861 # -library=stlport4 depends on it.
12862 case " $CXX $CXXFLAGS " in
12863 *" -library=stlport4 "*)
12864 solaris_use_stlport4=yes
12865 ;;
12866 esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012867
openvcdiffd1845782009-03-20 21:56:15 +000012868 if test "$solaris_use_stlport4" != yes; then
12869 postdeps_CXX='-library=Cstd -library=Crun'
12870 fi
12871 ;;
12872 esac
12873 ;;
12874
openvcdiff311c7142008-08-26 19:29:25 +000012875solaris*)
12876 case $cc_basename in
12877 CC*)
openvcdiffd1845782009-03-20 21:56:15 +000012878 # The more standards-conforming stlport4 library is
12879 # incompatible with the Cstd library. Avoid specifying
12880 # it if it's in CXXFLAGS. Ignore libCrun as
12881 # -library=stlport4 depends on it.
12882 case " $CXX $CXXFLAGS " in
12883 *" -library=stlport4 "*)
12884 solaris_use_stlport4=yes
12885 ;;
12886 esac
12887
openvcdiff311c7142008-08-26 19:29:25 +000012888 # Adding this requires a known-good setup of shared libraries for
12889 # Sun compiler versions before 5.6, else PIC objects from an old
12890 # archive will be linked into the output, leading to subtle bugs.
openvcdiffd1845782009-03-20 21:56:15 +000012891 if test "$solaris_use_stlport4" != yes; then
12892 postdeps_CXX='-library=Cstd -library=Crun'
12893 fi
openvcdiff311c7142008-08-26 19:29:25 +000012894 ;;
12895 esac
12896 ;;
12897esac
12898
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012899
openvcdiff311c7142008-08-26 19:29:25 +000012900case " $postdeps_CXX " in
12901*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12902esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012903 compiler_lib_search_dirs_CXX=
12904if test -n "${compiler_lib_search_path_CXX}"; then
12905 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12906fi
openvcdiff311c7142008-08-26 19:29:25 +000012907
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938 lt_prog_compiler_wl_CXX=
openvcdiff311c7142008-08-26 19:29:25 +000012939lt_prog_compiler_pic_CXX=
12940lt_prog_compiler_static_CXX=
12941
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12943$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000012944
12945 # C++ specific cases for pic, static, wl, etc.
12946 if test "$GXX" = yes; then
12947 lt_prog_compiler_wl_CXX='-Wl,'
12948 lt_prog_compiler_static_CXX='-static'
12949
12950 case $host_os in
12951 aix*)
12952 # All AIX code is PIC.
12953 if test "$host_cpu" = ia64; then
12954 # AIX 5 now supports IA64 processor
12955 lt_prog_compiler_static_CXX='-Bstatic'
12956 fi
12957 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012958
openvcdiff311c7142008-08-26 19:29:25 +000012959 amigaos*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012960 case $host_cpu in
12961 powerpc)
12962 # see comment about AmigaOS4 .so support
12963 lt_prog_compiler_pic_CXX='-fPIC'
12964 ;;
12965 m68k)
12966 # FIXME: we need at least 68020 code to build shared libraries, but
12967 # adding the `-m68020' flag to GCC prevents building anything better,
12968 # like `-m68040'.
12969 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12970 ;;
12971 esac
openvcdiff311c7142008-08-26 19:29:25 +000012972 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012973
openvcdiffd1845782009-03-20 21:56:15 +000012974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
openvcdiff311c7142008-08-26 19:29:25 +000012975 # PIC is the default for these OSes.
12976 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000012977 mingw* | cygwin* | os2* | pw32* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +000012978 # This hack is so that the source file can tell whether it is being
12979 # built for inclusion in a dll (and should export symbols for example).
openvcdiffd1845782009-03-20 21:56:15 +000012980 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12981 # (--disable-auto-import) libraries
openvcdiff311c7142008-08-26 19:29:25 +000012982 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12983 ;;
12984 darwin* | rhapsody*)
12985 # PIC is the default on this platform
12986 # Common symbols not allowed in MH_DYLIB files
12987 lt_prog_compiler_pic_CXX='-fno-common'
12988 ;;
12989 *djgpp*)
12990 # DJGPP does not support shared libraries at all
12991 lt_prog_compiler_pic_CXX=
12992 ;;
openvcdiffd1845782009-03-20 21:56:15 +000012993 interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000012994 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12995 # Instead, we relocate shared libraries at runtime.
12996 ;;
12997 sysv4*MP*)
12998 if test -d /usr/nec; then
12999 lt_prog_compiler_pic_CXX=-Kconform_pic
13000 fi
13001 ;;
13002 hpux*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013003 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13004 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13005 # sets the default TLS model and affects inlining.
openvcdiff311c7142008-08-26 19:29:25 +000013006 case $host_cpu in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013007 hppa*64*)
openvcdiff311c7142008-08-26 19:29:25 +000013008 ;;
13009 *)
13010 lt_prog_compiler_pic_CXX='-fPIC'
13011 ;;
13012 esac
13013 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013014 *qnx* | *nto*)
13015 # QNX uses GNU C++, but need to define -shared option too, otherwise
13016 # it will coredump.
13017 lt_prog_compiler_pic_CXX='-fPIC -shared'
13018 ;;
openvcdiff311c7142008-08-26 19:29:25 +000013019 *)
13020 lt_prog_compiler_pic_CXX='-fPIC'
13021 ;;
13022 esac
13023 else
13024 case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +000013025 aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000013026 # All AIX code is PIC.
13027 if test "$host_cpu" = ia64; then
13028 # AIX 5 now supports IA64 processor
13029 lt_prog_compiler_static_CXX='-Bstatic'
13030 else
13031 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13032 fi
13033 ;;
13034 chorus*)
13035 case $cc_basename in
13036 cxch68*)
13037 # Green Hills C++ Compiler
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013038 # _LT_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"
openvcdiff311c7142008-08-26 19:29:25 +000013039 ;;
13040 esac
13041 ;;
openvcdiff311c7142008-08-26 19:29:25 +000013042 dgux*)
13043 case $cc_basename in
13044 ec++*)
13045 lt_prog_compiler_pic_CXX='-KPIC'
13046 ;;
13047 ghcx*)
13048 # Green Hills C++ Compiler
13049 lt_prog_compiler_pic_CXX='-pic'
13050 ;;
13051 *)
13052 ;;
13053 esac
13054 ;;
openvcdiffd1845782009-03-20 21:56:15 +000013055 freebsd* | dragonfly*)
openvcdiff311c7142008-08-26 19:29:25 +000013056 # FreeBSD uses GNU C++
13057 ;;
13058 hpux9* | hpux10* | hpux11*)
13059 case $cc_basename in
13060 CC*)
13061 lt_prog_compiler_wl_CXX='-Wl,'
13062 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13063 if test "$host_cpu" != ia64; then
13064 lt_prog_compiler_pic_CXX='+Z'
13065 fi
13066 ;;
13067 aCC*)
13068 lt_prog_compiler_wl_CXX='-Wl,'
13069 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13070 case $host_cpu in
13071 hppa*64*|ia64*)
13072 # +Z the default
13073 ;;
13074 *)
13075 lt_prog_compiler_pic_CXX='+Z'
13076 ;;
13077 esac
13078 ;;
13079 *)
13080 ;;
13081 esac
13082 ;;
13083 interix*)
13084 # This is c89, which is MS Visual C++ (no shared libs)
13085 # Anyone wants to do a port?
13086 ;;
13087 irix5* | irix6* | nonstopux*)
13088 case $cc_basename in
13089 CC*)
13090 lt_prog_compiler_wl_CXX='-Wl,'
13091 lt_prog_compiler_static_CXX='-non_shared'
13092 # CC pic flag -KPIC is the default.
13093 ;;
13094 *)
13095 ;;
13096 esac
13097 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000013099 case $cc_basename in
13100 KCC*)
13101 # KAI C++ Compiler
13102 lt_prog_compiler_wl_CXX='--backend -Wl,'
13103 lt_prog_compiler_pic_CXX='-fPIC'
13104 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013105 ecpc* )
13106 # old Intel C++ for x86_64 which still supported -KPIC.
openvcdiff311c7142008-08-26 19:29:25 +000013107 lt_prog_compiler_wl_CXX='-Wl,'
13108 lt_prog_compiler_pic_CXX='-KPIC'
13109 lt_prog_compiler_static_CXX='-static'
13110 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013111 icpc* )
13112 # Intel C++, used to be incompatible with GCC.
13113 # ICC 10 doesn't accept -KPIC any more.
13114 lt_prog_compiler_wl_CXX='-Wl,'
13115 lt_prog_compiler_pic_CXX='-fPIC'
13116 lt_prog_compiler_static_CXX='-static'
13117 ;;
openvcdiffd1845782009-03-20 21:56:15 +000013118 pgCC* | pgcpp*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013119 # Portland Group C++ compiler
openvcdiff311c7142008-08-26 19:29:25 +000013120 lt_prog_compiler_wl_CXX='-Wl,'
13121 lt_prog_compiler_pic_CXX='-fpic'
13122 lt_prog_compiler_static_CXX='-Bstatic'
13123 ;;
13124 cxx*)
13125 # Compaq C++
13126 # Make sure the PIC flag is empty. It appears that all Alpha
13127 # Linux and Compaq Tru64 Unix objects are PIC.
13128 lt_prog_compiler_pic_CXX=
13129 lt_prog_compiler_static_CXX='-non_shared'
13130 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013131 xlc* | xlC*)
13132 # IBM XL 8.0 on PPC
13133 lt_prog_compiler_wl_CXX='-Wl,'
13134 lt_prog_compiler_pic_CXX='-qpic'
13135 lt_prog_compiler_static_CXX='-qstaticlink'
13136 ;;
openvcdiff311c7142008-08-26 19:29:25 +000013137 *)
openvcdiffd1845782009-03-20 21:56:15 +000013138 case `$CC -V 2>&1 | sed 5q` in
13139 *Sun\ C*)
13140 # Sun C++ 5.9
13141 lt_prog_compiler_pic_CXX='-KPIC'
13142 lt_prog_compiler_static_CXX='-Bstatic'
13143 lt_prog_compiler_wl_CXX='-Qoption ld '
13144 ;;
13145 esac
openvcdiff311c7142008-08-26 19:29:25 +000013146 ;;
13147 esac
13148 ;;
13149 lynxos*)
13150 ;;
13151 m88k*)
13152 ;;
13153 mvs*)
13154 case $cc_basename in
13155 cxx*)
13156 lt_prog_compiler_pic_CXX='-W c,exportall'
13157 ;;
13158 *)
13159 ;;
13160 esac
13161 ;;
openvcdiffd1845782009-03-20 21:56:15 +000013162 netbsd* | netbsdelf*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000013163 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013164 *qnx* | *nto*)
13165 # QNX uses GNU C++, but need to define -shared option too, otherwise
13166 # it will coredump.
13167 lt_prog_compiler_pic_CXX='-fPIC -shared'
13168 ;;
openvcdiff311c7142008-08-26 19:29:25 +000013169 osf3* | osf4* | osf5*)
13170 case $cc_basename in
13171 KCC*)
13172 lt_prog_compiler_wl_CXX='--backend -Wl,'
13173 ;;
13174 RCC*)
13175 # Rational C++ 2.4.1
13176 lt_prog_compiler_pic_CXX='-pic'
13177 ;;
13178 cxx*)
13179 # Digital/Compaq C++
13180 lt_prog_compiler_wl_CXX='-Wl,'
13181 # Make sure the PIC flag is empty. It appears that all Alpha
13182 # Linux and Compaq Tru64 Unix objects are PIC.
13183 lt_prog_compiler_pic_CXX=
13184 lt_prog_compiler_static_CXX='-non_shared'
13185 ;;
13186 *)
13187 ;;
13188 esac
13189 ;;
13190 psos*)
13191 ;;
13192 solaris*)
13193 case $cc_basename in
13194 CC*)
13195 # Sun C++ 4.2, 5.x and Centerline C++
13196 lt_prog_compiler_pic_CXX='-KPIC'
13197 lt_prog_compiler_static_CXX='-Bstatic'
13198 lt_prog_compiler_wl_CXX='-Qoption ld '
13199 ;;
13200 gcx*)
13201 # Green Hills C++ Compiler
13202 lt_prog_compiler_pic_CXX='-PIC'
13203 ;;
13204 *)
13205 ;;
13206 esac
13207 ;;
13208 sunos4*)
13209 case $cc_basename in
13210 CC*)
13211 # Sun C++ 4.x
13212 lt_prog_compiler_pic_CXX='-pic'
13213 lt_prog_compiler_static_CXX='-Bstatic'
13214 ;;
13215 lcc*)
13216 # Lucid
13217 lt_prog_compiler_pic_CXX='-pic'
13218 ;;
13219 *)
13220 ;;
13221 esac
13222 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013223 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13224 case $cc_basename in
13225 CC*)
13226 lt_prog_compiler_wl_CXX='-Wl,'
13227 lt_prog_compiler_pic_CXX='-KPIC'
13228 lt_prog_compiler_static_CXX='-Bstatic'
13229 ;;
13230 esac
13231 ;;
openvcdiff311c7142008-08-26 19:29:25 +000013232 tandem*)
13233 case $cc_basename in
13234 NCC*)
13235 # NonStop-UX NCC 3.20
13236 lt_prog_compiler_pic_CXX='-KPIC'
13237 ;;
13238 *)
13239 ;;
13240 esac
13241 ;;
openvcdiff311c7142008-08-26 19:29:25 +000013242 vxworks*)
13243 ;;
13244 *)
13245 lt_prog_compiler_can_build_shared_CXX=no
13246 ;;
13247 esac
13248 fi
13249
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013250case $host_os in
13251 # For platforms which do not support PIC, -DPIC is meaningless:
13252 *djgpp*)
13253 lt_prog_compiler_pic_CXX=
13254 ;;
13255 *)
13256 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13257 ;;
13258esac
13259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13260$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13261
13262
openvcdiff311c7142008-08-26 19:29:25 +000013263
13264#
13265# Check to make sure the PIC flag actually works.
13266#
13267if test -n "$lt_prog_compiler_pic_CXX"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13269$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13270if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13271 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000013272else
openvcdiffd1845782009-03-20 21:56:15 +000013273 lt_cv_prog_compiler_pic_works_CXX=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013274 ac_outfile=conftest.$ac_objext
openvcdiffd1845782009-03-20 21:56:15 +000013275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000013276 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13277 # Insert the option either (1) after the last *FLAGS variable, or
13278 # (2) before a word containing "conftest.", or (3) at the end.
13279 # Note that $ac_compile itself does not contain backslashes and begins
13280 # with a dollar sign (not a hyphen), so the echo should work correctly.
13281 # The option is referenced via a variable to avoid confusing sed.
13282 lt_compile=`echo "$ac_compile" | $SED \
13283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13285 -e 's:$: $lt_compiler_flag:'`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013286 (eval echo "\"\$as_me:13286: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +000013287 (eval "$lt_compile" 2>conftest.err)
13288 ac_status=$?
13289 cat conftest.err >&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013290 echo "$as_me:13290: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +000013291 if (exit $ac_status) && test -s "$ac_outfile"; then
13292 # The compiler can only warn and ignore the option if not recognized
13293 # So say no if there are warnings other than the usual output.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013294 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
openvcdiff311c7142008-08-26 19:29:25 +000013295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +000013297 lt_cv_prog_compiler_pic_works_CXX=yes
openvcdiff311c7142008-08-26 19:29:25 +000013298 fi
13299 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013300 $RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +000013301
13302fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13304$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000013305
openvcdiffd1845782009-03-20 21:56:15 +000013306if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +000013307 case $lt_prog_compiler_pic_CXX in
13308 "" | " "*) ;;
13309 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13310 esac
13311else
13312 lt_prog_compiler_pic_CXX=
13313 lt_prog_compiler_can_build_shared_CXX=no
13314fi
13315
13316fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013317
13318
openvcdiff311c7142008-08-26 19:29:25 +000013319
13320#
13321# Check to make sure the static flag actually works.
13322#
13323wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13325$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13326if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000013328else
openvcdiffd1845782009-03-20 21:56:15 +000013329 lt_cv_prog_compiler_static_works_CXX=no
openvcdiff311c7142008-08-26 19:29:25 +000013330 save_LDFLAGS="$LDFLAGS"
13331 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
openvcdiffd1845782009-03-20 21:56:15 +000013332 echo "$lt_simple_link_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000013333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13334 # The linker can only warn and ignore the option if not recognized
13335 # So say no if there are warnings
13336 if test -s conftest.err; then
13337 # Append any errors to the config.log.
13338 cat conftest.err 1>&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013339 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
openvcdiff311c7142008-08-26 19:29:25 +000013340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13341 if diff conftest.exp conftest.er2 >/dev/null; then
openvcdiffd1845782009-03-20 21:56:15 +000013342 lt_cv_prog_compiler_static_works_CXX=yes
openvcdiff311c7142008-08-26 19:29:25 +000013343 fi
13344 else
openvcdiffd1845782009-03-20 21:56:15 +000013345 lt_cv_prog_compiler_static_works_CXX=yes
openvcdiff311c7142008-08-26 19:29:25 +000013346 fi
13347 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013348 $RM -r conftest*
openvcdiff311c7142008-08-26 19:29:25 +000013349 LDFLAGS="$save_LDFLAGS"
13350
13351fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13353$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000013354
openvcdiffd1845782009-03-20 21:56:15 +000013355if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
openvcdiff311c7142008-08-26 19:29:25 +000013356 :
13357else
13358 lt_prog_compiler_static_CXX=
13359fi
13360
13361
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013362
13363
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13365$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13366if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13367 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000013368else
13369 lt_cv_prog_compiler_c_o_CXX=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013370 $RM -r conftest 2>/dev/null
openvcdiff311c7142008-08-26 19:29:25 +000013371 mkdir conftest
13372 cd conftest
13373 mkdir out
openvcdiffd1845782009-03-20 21:56:15 +000013374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000013375
13376 lt_compiler_flag="-o out/conftest2.$ac_objext"
13377 # Insert the option either (1) after the last *FLAGS variable, or
13378 # (2) before a word containing "conftest.", or (3) at the end.
13379 # Note that $ac_compile itself does not contain backslashes and begins
13380 # with a dollar sign (not a hyphen), so the echo should work correctly.
13381 lt_compile=`echo "$ac_compile" | $SED \
13382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13384 -e 's:$: $lt_compiler_flag:'`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013385 (eval echo "\"\$as_me:13385: $lt_compile\"" >&5)
openvcdiff311c7142008-08-26 19:29:25 +000013386 (eval "$lt_compile" 2>out/conftest.err)
13387 ac_status=$?
13388 cat out/conftest.err >&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013389 echo "$as_me:13389: \$? = $ac_status" >&5
openvcdiff311c7142008-08-26 19:29:25 +000013390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13391 then
13392 # The compiler can only warn and ignore the option if not recognized
13393 # So say no if there are warnings
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013394 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
openvcdiff311c7142008-08-26 19:29:25 +000013395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13397 lt_cv_prog_compiler_c_o_CXX=yes
13398 fi
13399 fi
13400 chmod u+w . 2>&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013401 $RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +000013402 # SGI C++ compiler will create directory out/ii_files/ for
13403 # template instantiation
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013404 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13405 $RM out/* && rmdir out
openvcdiff311c7142008-08-26 19:29:25 +000013406 cd ..
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013407 $RM -r conftest
13408 $RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +000013409
13410fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13412$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13413
13414
13415
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13417$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13418if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
13420else
13421 lt_cv_prog_compiler_c_o_CXX=no
13422 $RM -r conftest 2>/dev/null
13423 mkdir conftest
13424 cd conftest
13425 mkdir out
13426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13427
13428 lt_compiler_flag="-o out/conftest2.$ac_objext"
13429 # Insert the option either (1) after the last *FLAGS variable, or
13430 # (2) before a word containing "conftest.", or (3) at the end.
13431 # Note that $ac_compile itself does not contain backslashes and begins
13432 # with a dollar sign (not a hyphen), so the echo should work correctly.
13433 lt_compile=`echo "$ac_compile" | $SED \
13434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13436 -e 's:$: $lt_compiler_flag:'`
13437 (eval echo "\"\$as_me:13437: $lt_compile\"" >&5)
13438 (eval "$lt_compile" 2>out/conftest.err)
13439 ac_status=$?
13440 cat out/conftest.err >&5
13441 echo "$as_me:13441: \$? = $ac_status" >&5
13442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13443 then
13444 # The compiler can only warn and ignore the option if not recognized
13445 # So say no if there are warnings
13446 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13449 lt_cv_prog_compiler_c_o_CXX=yes
13450 fi
13451 fi
13452 chmod u+w . 2>&5
13453 $RM conftest*
13454 # SGI C++ compiler will create directory out/ii_files/ for
13455 # template instantiation
13456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13457 $RM out/* && rmdir out
13458 cd ..
13459 $RM -r conftest
13460 $RM conftest*
13461
13462fi
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13464$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13465
13466
openvcdiff311c7142008-08-26 19:29:25 +000013467
13468
13469hard_links="nottested"
13470if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13471 # do not overwrite the value of need_locks provided by the user
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13473$as_echo_n "checking if we can lock with hard links... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000013474 hard_links=yes
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013475 $RM conftest*
openvcdiff311c7142008-08-26 19:29:25 +000013476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13477 touch conftest.a
13478 ln conftest.a conftest.b 2>&5 || hard_links=no
13479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13481$as_echo "$hard_links" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000013482 if test "$hard_links" = no; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13484$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +000013485 need_locks=warn
13486 fi
13487else
13488 need_locks=no
13489fi
13490
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013491
13492
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13494$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000013495
13496 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13497 case $host_os in
openvcdiffd1845782009-03-20 21:56:15 +000013498 aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000013499 # If we're using GNU nm, then we don't want the "-C" option.
13500 # -C means demangle to AIX nm, but means don't demangle with GNU nm
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013501 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13502 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'
openvcdiff311c7142008-08-26 19:29:25 +000013503 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013504 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'
openvcdiff311c7142008-08-26 19:29:25 +000013505 fi
13506 ;;
13507 pw32*)
13508 export_symbols_cmds_CXX="$ltdll_cmds"
13509 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013510 cygwin* | mingw* | cegcc*)
13511 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 +000013512 ;;
openvcdiffd1845782009-03-20 21:56:15 +000013513 linux* | k*bsd*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000013514 link_all_deplibs_CXX=no
13515 ;;
13516 *)
13517 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13518 ;;
13519 esac
openvcdiffd1845782009-03-20 21:56:15 +000013520 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
openvcdiff311c7142008-08-26 19:29:25 +000013521
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13523$as_echo "$ld_shlibs_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000013524test "$ld_shlibs_CXX" = no && can_build_shared=no
13525
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013526with_gnu_ld_CXX=$with_gnu_ld
13527
13528
13529
13530
13531
13532
openvcdiff311c7142008-08-26 19:29:25 +000013533#
13534# Do we need to explicitly link libc?
13535#
13536case "x$archive_cmds_need_lc_CXX" in
13537x|xyes)
13538 # Assume -lc should be added
13539 archive_cmds_need_lc_CXX=yes
13540
13541 if test "$enable_shared" = yes && test "$GCC" = yes; then
13542 case $archive_cmds_CXX in
13543 *'~'*)
13544 # FIXME: we may have to deal with multi-command sequences.
13545 ;;
13546 '$CC '*)
13547 # Test whether the compiler implicitly links with -lc since on some
13548 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13549 # to ld, don't add -lc before -lgcc.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13551$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13552 $RM conftest*
openvcdiffd1845782009-03-20 21:56:15 +000013553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000013554
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
openvcdiff311c7142008-08-26 19:29:25 +000013556 (eval $ac_compile) 2>&5
13557 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13559 test $ac_status = 0; } 2>conftest.err; then
openvcdiff311c7142008-08-26 19:29:25 +000013560 soname=conftest
13561 lib=conftest
13562 libobjs=conftest.$ac_objext
13563 deplibs=
13564 wl=$lt_prog_compiler_wl_CXX
13565 pic_flag=$lt_prog_compiler_pic_CXX
13566 compiler_flags=-v
13567 linker_flags=-v
13568 verstring=
13569 output_objdir=.
13570 libname=conftest
13571 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13572 allow_undefined_flag_CXX=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13574 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
openvcdiff311c7142008-08-26 19:29:25 +000013575 ac_status=$?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13577 test $ac_status = 0; }
openvcdiff311c7142008-08-26 19:29:25 +000013578 then
13579 archive_cmds_need_lc_CXX=no
13580 else
13581 archive_cmds_need_lc_CXX=yes
13582 fi
13583 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13584 else
13585 cat conftest.err 1>&5
13586 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013587 $RM conftest*
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13589$as_echo "$archive_cmds_need_lc_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000013590 ;;
13591 esac
13592 fi
13593 ;;
13594esac
13595
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13660$as_echo_n "checking dynamic linker characteristics... " >&6; }
13661
openvcdiff311c7142008-08-26 19:29:25 +000013662library_names_spec=
13663libname_spec='lib$name'
13664soname_spec=
13665shrext_cmds=".so"
13666postinstall_cmds=
13667postuninstall_cmds=
13668finish_cmds=
13669finish_eval=
13670shlibpath_var=
13671shlibpath_overrides_runpath=unknown
13672version_type=none
13673dynamic_linker="$host_os ld.so"
13674sys_lib_dlsearch_path_spec="/lib /usr/lib"
openvcdiff311c7142008-08-26 19:29:25 +000013675need_lib_prefix=unknown
13676hardcode_into_libs=no
13677
13678# when you set need_version to no, make sure it does not cause -set_version
13679# flags to be left without arguments
13680need_version=unknown
13681
13682case $host_os in
13683aix3*)
13684 version_type=linux
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13686 shlibpath_var=LIBPATH
13687
13688 # AIX 3 has no versioning support, so we append a major version to the name.
13689 soname_spec='${libname}${release}${shared_ext}$major'
13690 ;;
13691
openvcdiffd1845782009-03-20 21:56:15 +000013692aix[4-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000013693 version_type=linux
13694 need_lib_prefix=no
13695 need_version=no
13696 hardcode_into_libs=yes
13697 if test "$host_cpu" = ia64; then
13698 # AIX 5 supports IA64
13699 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13700 shlibpath_var=LD_LIBRARY_PATH
13701 else
13702 # With GCC up to 2.95.x, collect2 would create an import file
13703 # for dependence libraries. The import file would start with
13704 # the line `#! .'. This would cause the generated library to
13705 # depend on `.', always an invalid library. This was fixed in
13706 # development snapshots of GCC prior to 3.0.
13707 case $host_os in
13708 aix4 | aix4.[01] | aix4.[01].*)
13709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13710 echo ' yes '
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013711 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +000013712 :
13713 else
13714 can_build_shared=no
13715 fi
13716 ;;
13717 esac
13718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13719 # soname into executable. Probably we can add versioning support to
13720 # collect2, so additional links can be useful in future.
13721 if test "$aix_use_runtimelinking" = yes; then
13722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13723 # instead of lib<name>.a to let people know that these are not
13724 # typical AIX shared libraries.
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726 else
13727 # We preserve .a as extension for shared libraries through AIX4.2
13728 # and later when we are not doing run time linking.
13729 library_names_spec='${libname}${release}.a $libname.a'
13730 soname_spec='${libname}${release}${shared_ext}$major'
13731 fi
13732 shlibpath_var=LIBPATH
13733 fi
13734 ;;
13735
13736amigaos*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013737 case $host_cpu in
13738 powerpc)
13739 # Since July 2007 AmigaOS4 officially supports .so libraries.
13740 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13742 ;;
13743 m68k)
13744 library_names_spec='$libname.ixlibrary $libname.a'
13745 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13746 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'
13747 ;;
13748 esac
openvcdiff311c7142008-08-26 19:29:25 +000013749 ;;
13750
13751beos*)
13752 library_names_spec='${libname}${shared_ext}'
13753 dynamic_linker="$host_os ld.so"
13754 shlibpath_var=LIBRARY_PATH
13755 ;;
13756
13757bsdi[45]*)
13758 version_type=linux
13759 need_version=no
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13761 soname_spec='${libname}${release}${shared_ext}$major'
13762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13763 shlibpath_var=LD_LIBRARY_PATH
13764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13766 # the default ld.so.conf also contains /usr/contrib/lib and
13767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13768 # libtool to hard-code these into programs
13769 ;;
13770
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013771cygwin* | mingw* | pw32* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +000013772 version_type=windows
13773 shrext_cmds=".dll"
13774 need_version=no
13775 need_lib_prefix=no
13776
13777 case $GCC,$host_os in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013778 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +000013779 library_names_spec='$libname.dll.a'
13780 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13781 postinstall_cmds='base_file=`basename \${file}`~
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
openvcdiff311c7142008-08-26 19:29:25 +000013783 dldir=$destdir/`dirname \$dlpath`~
13784 test -d \$dldir || mkdir -p \$dldir~
13785 $install_prog $dir/$dlname \$dldir/$dlname~
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013786 chmod a+x \$dldir/$dlname~
13787 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13788 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13789 fi'
openvcdiff311c7142008-08-26 19:29:25 +000013790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13791 dlpath=$dir/\$dldll~
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013792 $RM \$dlpath'
openvcdiff311c7142008-08-26 19:29:25 +000013793 shlibpath_overrides_runpath=yes
13794
13795 case $host_os in
13796 cygwin*)
13797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13798 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13799 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13800 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013801 mingw* | cegcc*)
openvcdiff311c7142008-08-26 19:29:25 +000013802 # MinGW DLLs use traditional 'lib' prefix
13803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013804 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13805 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +000013806 # It is most probably a Windows format PATH printed by
13807 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13808 # path with ; separators, and with drive letters. We can handle the
13809 # drive letters (cygwin fileutils understands them), so leave them,
13810 # especially as we might pass files found there to a mingw objdump,
13811 # which wouldn't understand a cygwinified path. Ahh.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
openvcdiff311c7142008-08-26 19:29:25 +000013813 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013814 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
openvcdiff311c7142008-08-26 19:29:25 +000013815 fi
13816 ;;
13817 pw32*)
13818 # pw32 DLLs use 'pw' prefix rather than 'lib'
13819 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13820 ;;
13821 esac
13822 ;;
13823
13824 *)
13825 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13826 ;;
13827 esac
13828 dynamic_linker='Win32 ld.exe'
13829 # FIXME: first we should search . and the directory the executable is in
13830 shlibpath_var=PATH
13831 ;;
13832
13833darwin* | rhapsody*)
13834 dynamic_linker="$host_os dyld"
13835 version_type=darwin
13836 need_lib_prefix=no
13837 need_version=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013838 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
openvcdiff311c7142008-08-26 19:29:25 +000013839 soname_spec='${libname}${release}${major}$shared_ext'
13840 shlibpath_overrides_runpath=yes
13841 shlibpath_var=DYLD_LIBRARY_PATH
13842 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
openvcdiffd1845782009-03-20 21:56:15 +000013843
openvcdiff311c7142008-08-26 19:29:25 +000013844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13845 ;;
13846
13847dgux*)
13848 version_type=linux
13849 need_lib_prefix=no
13850 need_version=no
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 shlibpath_var=LD_LIBRARY_PATH
13854 ;;
13855
13856freebsd1*)
13857 dynamic_linker=no
13858 ;;
13859
openvcdiff311c7142008-08-26 19:29:25 +000013860freebsd* | dragonfly*)
13861 # DragonFly does not have aout. When/if they implement a new
13862 # versioning mechanism, adjust this.
13863 if test -x /usr/bin/objformat; then
13864 objformat=`/usr/bin/objformat`
13865 else
13866 case $host_os in
13867 freebsd[123]*) objformat=aout ;;
13868 *) objformat=elf ;;
13869 esac
13870 fi
13871 version_type=freebsd-$objformat
13872 case $version_type in
13873 freebsd-elf*)
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13875 need_version=no
13876 need_lib_prefix=no
13877 ;;
13878 freebsd-*)
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13880 need_version=yes
13881 ;;
13882 esac
13883 shlibpath_var=LD_LIBRARY_PATH
13884 case $host_os in
13885 freebsd2*)
13886 shlibpath_overrides_runpath=yes
13887 ;;
13888 freebsd3.[01]* | freebsdelf3.[01]*)
13889 shlibpath_overrides_runpath=yes
13890 hardcode_into_libs=yes
13891 ;;
13892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13894 shlibpath_overrides_runpath=no
13895 hardcode_into_libs=yes
13896 ;;
openvcdiffd1845782009-03-20 21:56:15 +000013897 *) # from 4.6 on, and DragonFly
openvcdiff311c7142008-08-26 19:29:25 +000013898 shlibpath_overrides_runpath=yes
13899 hardcode_into_libs=yes
13900 ;;
13901 esac
13902 ;;
13903
13904gnu*)
13905 version_type=linux
13906 need_lib_prefix=no
13907 need_version=no
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13909 soname_spec='${libname}${release}${shared_ext}$major'
13910 shlibpath_var=LD_LIBRARY_PATH
13911 hardcode_into_libs=yes
13912 ;;
13913
13914hpux9* | hpux10* | hpux11*)
13915 # Give a soname corresponding to the major version so that dld.sl refuses to
13916 # link against other versions.
13917 version_type=sunos
13918 need_lib_prefix=no
13919 need_version=no
13920 case $host_cpu in
13921 ia64*)
13922 shrext_cmds='.so'
13923 hardcode_into_libs=yes
13924 dynamic_linker="$host_os dld.so"
13925 shlibpath_var=LD_LIBRARY_PATH
13926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13928 soname_spec='${libname}${release}${shared_ext}$major'
13929 if test "X$HPUX_IA64_MODE" = X32; then
13930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13931 else
13932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13933 fi
13934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13935 ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000013936 hppa*64*)
13937 shrext_cmds='.sl'
13938 hardcode_into_libs=yes
13939 dynamic_linker="$host_os dld.sl"
13940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13943 soname_spec='${libname}${release}${shared_ext}$major'
13944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13946 ;;
13947 *)
openvcdiff311c7142008-08-26 19:29:25 +000013948 shrext_cmds='.sl'
13949 dynamic_linker="$host_os dld.sl"
13950 shlibpath_var=SHLIB_PATH
13951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953 soname_spec='${libname}${release}${shared_ext}$major'
13954 ;;
13955 esac
13956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13957 postinstall_cmds='chmod 555 $lib'
13958 ;;
13959
openvcdiffd1845782009-03-20 21:56:15 +000013960interix[3-9]*)
openvcdiff311c7142008-08-26 19:29:25 +000013961 version_type=linux
13962 need_lib_prefix=no
13963 need_version=no
13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13965 soname_spec='${libname}${release}${shared_ext}$major'
13966 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13967 shlibpath_var=LD_LIBRARY_PATH
13968 shlibpath_overrides_runpath=no
13969 hardcode_into_libs=yes
13970 ;;
13971
13972irix5* | irix6* | nonstopux*)
13973 case $host_os in
13974 nonstopux*) version_type=nonstopux ;;
13975 *)
13976 if test "$lt_cv_prog_gnu_ld" = yes; then
13977 version_type=linux
13978 else
13979 version_type=irix
13980 fi ;;
13981 esac
13982 need_lib_prefix=no
13983 need_version=no
13984 soname_spec='${libname}${release}${shared_ext}$major'
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13986 case $host_os in
13987 irix5* | nonstopux*)
13988 libsuff= shlibsuff=
13989 ;;
13990 *)
13991 case $LD in # libtool.m4 will add one of these switches to LD
13992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13993 libsuff= shlibsuff= libmagic=32-bit;;
13994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13995 libsuff=32 shlibsuff=N32 libmagic=N32;;
13996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13998 *) libsuff= shlibsuff= libmagic=never-match;;
13999 esac
14000 ;;
14001 esac
14002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14003 shlibpath_overrides_runpath=no
14004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14006 hardcode_into_libs=yes
14007 ;;
14008
14009# No shared lib support for Linux oldld, aout, or coff.
14010linux*oldld* | linux*aout* | linux*coff*)
14011 dynamic_linker=no
14012 ;;
14013
14014# This must be Linux ELF.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014015linux* | k*bsd*-gnu | kopensolaris*-gnu)
openvcdiff311c7142008-08-26 19:29:25 +000014016 version_type=linux
14017 need_lib_prefix=no
14018 need_version=no
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14020 soname_spec='${libname}${release}${shared_ext}$major'
14021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14022 shlibpath_var=LD_LIBRARY_PATH
14023 shlibpath_overrides_runpath=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014024 # Some binutils ld are patched to set DT_RUNPATH
14025 save_LDFLAGS=$LDFLAGS
14026 save_libdir=$libdir
14027 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14028 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030/* end confdefs.h. */
14031
14032int
14033main ()
14034{
14035
14036 ;
14037 return 0;
14038}
14039_ACEOF
14040if ac_fn_cxx_try_link "$LINENO"; then :
14041 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14042 shlibpath_overrides_runpath=yes
14043fi
14044fi
14045rm -f core conftest.err conftest.$ac_objext \
14046 conftest$ac_exeext conftest.$ac_ext
14047 LDFLAGS=$save_LDFLAGS
14048 libdir=$save_libdir
14049
openvcdiff311c7142008-08-26 19:29:25 +000014050 # This implies no fast_install, which is unacceptable.
14051 # Some rework will be needed to allow for fast_install
14052 # before this can be enabled.
14053 hardcode_into_libs=yes
14054
14055 # Append ld.so.conf contents to the search path
14056 if test -f /etc/ld.so.conf; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014057 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 +000014058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14059 fi
14060
14061 # We used to test for /lib/ld.so.1 and disable shared libraries on
14062 # powerpc, because MkLinux only supported shared libraries with the
14063 # GNU dynamic linker. Since this was broken with cross compilers,
14064 # most powerpc-linux boxes support dynamic linking these days and
14065 # people can always --disable-shared, the test was removed, and we
14066 # assume the GNU/Linux dynamic linker is in use.
14067 dynamic_linker='GNU/Linux ld.so'
14068 ;;
14069
14070netbsdelf*-gnu)
14071 version_type=linux
14072 need_lib_prefix=no
14073 need_version=no
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14075 soname_spec='${libname}${release}${shared_ext}$major'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 shlibpath_overrides_runpath=no
14078 hardcode_into_libs=yes
14079 dynamic_linker='NetBSD ld.elf_so'
14080 ;;
14081
openvcdiff311c7142008-08-26 19:29:25 +000014082netbsd*)
14083 version_type=sunos
14084 need_lib_prefix=no
14085 need_version=no
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
openvcdiff311c7142008-08-26 19:29:25 +000014087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14089 dynamic_linker='NetBSD (a.out) ld.so'
14090 else
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 dynamic_linker='NetBSD ld.elf_so'
14094 fi
14095 shlibpath_var=LD_LIBRARY_PATH
14096 shlibpath_overrides_runpath=yes
14097 hardcode_into_libs=yes
14098 ;;
14099
14100newsos6)
14101 version_type=linux
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 shlibpath_var=LD_LIBRARY_PATH
14104 shlibpath_overrides_runpath=yes
14105 ;;
14106
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014107*nto* | *qnx*)
14108 version_type=qnx
openvcdiff311c7142008-08-26 19:29:25 +000014109 need_lib_prefix=no
14110 need_version=no
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 shlibpath_var=LD_LIBRARY_PATH
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014114 shlibpath_overrides_runpath=no
14115 hardcode_into_libs=yes
14116 dynamic_linker='ldqnx.so'
openvcdiff311c7142008-08-26 19:29:25 +000014117 ;;
14118
14119openbsd*)
14120 version_type=sunos
14121 sys_lib_dlsearch_path_spec="/usr/lib"
14122 need_lib_prefix=no
14123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14124 case $host_os in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14126 *) need_version=no ;;
openvcdiff311c7142008-08-26 19:29:25 +000014127 esac
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14130 shlibpath_var=LD_LIBRARY_PATH
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
openvcdiff311c7142008-08-26 19:29:25 +000014132 case $host_os in
14133 openbsd2.[89] | openbsd2.[89].*)
14134 shlibpath_overrides_runpath=no
14135 ;;
14136 *)
14137 shlibpath_overrides_runpath=yes
14138 ;;
14139 esac
14140 else
14141 shlibpath_overrides_runpath=yes
14142 fi
14143 ;;
14144
14145os2*)
14146 libname_spec='$name'
14147 shrext_cmds=".dll"
14148 need_lib_prefix=no
14149 library_names_spec='$libname${shared_ext} $libname.a'
14150 dynamic_linker='OS/2 ld.exe'
14151 shlibpath_var=LIBPATH
14152 ;;
14153
14154osf3* | osf4* | osf5*)
14155 version_type=osf
14156 need_lib_prefix=no
14157 need_version=no
14158 soname_spec='${libname}${release}${shared_ext}$major'
14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160 shlibpath_var=LD_LIBRARY_PATH
14161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14163 ;;
14164
openvcdiffd1845782009-03-20 21:56:15 +000014165rdos*)
14166 dynamic_linker=no
14167 ;;
14168
openvcdiff311c7142008-08-26 19:29:25 +000014169solaris*)
14170 version_type=linux
14171 need_lib_prefix=no
14172 need_version=no
14173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14174 soname_spec='${libname}${release}${shared_ext}$major'
14175 shlibpath_var=LD_LIBRARY_PATH
14176 shlibpath_overrides_runpath=yes
14177 hardcode_into_libs=yes
14178 # ldd complains unless libraries are executable
14179 postinstall_cmds='chmod +x $lib'
14180 ;;
14181
14182sunos4*)
14183 version_type=sunos
14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 shlibpath_overrides_runpath=yes
14188 if test "$with_gnu_ld" = yes; then
14189 need_lib_prefix=no
14190 fi
14191 need_version=yes
14192 ;;
14193
14194sysv4 | sysv4.3*)
14195 version_type=linux
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197 soname_spec='${libname}${release}${shared_ext}$major'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 case $host_vendor in
14200 sni)
14201 shlibpath_overrides_runpath=no
14202 need_lib_prefix=no
openvcdiff311c7142008-08-26 19:29:25 +000014203 runpath_var=LD_RUN_PATH
14204 ;;
14205 siemens)
14206 need_lib_prefix=no
14207 ;;
14208 motorola)
14209 need_lib_prefix=no
14210 need_version=no
14211 shlibpath_overrides_runpath=no
14212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14213 ;;
14214 esac
14215 ;;
14216
14217sysv4*MP*)
14218 if test -d /usr/nec ;then
14219 version_type=linux
14220 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14221 soname_spec='$libname${shared_ext}.$major'
14222 shlibpath_var=LD_LIBRARY_PATH
14223 fi
14224 ;;
14225
14226sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14227 version_type=freebsd-elf
14228 need_lib_prefix=no
14229 need_version=no
14230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14231 soname_spec='${libname}${release}${shared_ext}$major'
14232 shlibpath_var=LD_LIBRARY_PATH
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014233 shlibpath_overrides_runpath=yes
openvcdiff311c7142008-08-26 19:29:25 +000014234 hardcode_into_libs=yes
14235 if test "$with_gnu_ld" = yes; then
14236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
openvcdiff311c7142008-08-26 19:29:25 +000014237 else
14238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
openvcdiff311c7142008-08-26 19:29:25 +000014239 case $host_os in
14240 sco3.2v5*)
14241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14242 ;;
14243 esac
14244 fi
14245 sys_lib_dlsearch_path_spec='/usr/lib'
14246 ;;
14247
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014248tpf*)
14249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14250 version_type=linux
14251 need_lib_prefix=no
14252 need_version=no
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 shlibpath_overrides_runpath=no
14256 hardcode_into_libs=yes
14257 ;;
14258
openvcdiff311c7142008-08-26 19:29:25 +000014259uts4*)
14260 version_type=linux
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 shlibpath_var=LD_LIBRARY_PATH
14264 ;;
14265
14266*)
14267 dynamic_linker=no
14268 ;;
14269esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14271$as_echo "$dynamic_linker" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014272test "$dynamic_linker" = no && can_build_shared=no
14273
14274variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14275if test "$GCC" = yes; then
14276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14277fi
14278
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014279if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14280 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14281fi
14282if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14283 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14284fi
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14322$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014323hardcode_action_CXX=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014324if test -n "$hardcode_libdir_flag_spec_CXX" ||
14325 test -n "$runpath_var_CXX" ||
openvcdiff311c7142008-08-26 19:29:25 +000014326 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14327
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014328 # We can hardcode non-existent directories.
openvcdiff311c7142008-08-26 19:29:25 +000014329 if test "$hardcode_direct_CXX" != no &&
14330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14331 # have to relink, otherwise we might link with an installed library
14332 # when we should be linking with a yet-to-be-installed one
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014333 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
openvcdiff311c7142008-08-26 19:29:25 +000014334 test "$hardcode_minus_L_CXX" != no; then
14335 # Linking always hardcodes the temporary library directory.
14336 hardcode_action_CXX=relink
14337 else
14338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14339 hardcode_action_CXX=immediate
14340 fi
14341else
14342 # We cannot hardcode anything, or else we can only hardcode existing
14343 # directories.
14344 hardcode_action_CXX=unsupported
14345fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14347$as_echo "$hardcode_action_CXX" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014348
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014349if test "$hardcode_action_CXX" = relink ||
14350 test "$inherit_rpath_CXX" = yes; then
openvcdiff311c7142008-08-26 19:29:25 +000014351 # Fast installation is not supported
14352 enable_fast_install=no
14353elif test "$shlibpath_overrides_runpath" = yes ||
14354 test "$enable_shared" = no; then
14355 # Fast installation is not necessary
14356 enable_fast_install=needless
14357fi
14358
14359
openvcdiff311c7142008-08-26 19:29:25 +000014360
openvcdiff311c7142008-08-26 19:29:25 +000014361
openvcdiff311c7142008-08-26 19:29:25 +000014362
openvcdiff311c7142008-08-26 19:29:25 +000014363
openvcdiff311c7142008-08-26 19:29:25 +000014364
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014365 fi # test -n "$compiler"
openvcdiff311c7142008-08-26 19:29:25 +000014366
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014367 CC=$lt_save_CC
14368 LDCXX=$LD
14369 LD=$lt_save_LD
14370 GCC=$lt_save_GCC
14371 with_gnu_ld=$lt_save_with_gnu_ld
14372 lt_cv_path_LDCXX=$lt_cv_path_LD
14373 lt_cv_path_LD=$lt_save_path_LD
14374 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14375 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14376fi # test "$_lt_caught_CXX_error" != yes
openvcdiff311c7142008-08-26 19:29:25 +000014377
14378ac_ext=c
14379ac_cpp='$CPP $CPPFLAGS'
14380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14382ac_compiler_gnu=$ac_cv_c_compiler_gnu
14383
openvcdiff311c7142008-08-26 19:29:25 +000014384
openvcdiff311c7142008-08-26 19:29:25 +000014385
openvcdiff311c7142008-08-26 19:29:25 +000014386
openvcdiff311c7142008-08-26 19:29:25 +000014387
14388
openvcdiff311c7142008-08-26 19:29:25 +000014389
openvcdiff311c7142008-08-26 19:29:25 +000014390
openvcdiff311c7142008-08-26 19:29:25 +000014391
openvcdiff311c7142008-08-26 19:29:25 +000014392
openvcdiff311c7142008-08-26 19:29:25 +000014393
openvcdiff311c7142008-08-26 19:29:25 +000014394
openvcdiff311c7142008-08-26 19:29:25 +000014395
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014396 ac_config_commands="$ac_config_commands libtool"
openvcdiff311c7142008-08-26 19:29:25 +000014397
openvcdiff311c7142008-08-26 19:29:25 +000014398
14399
openvcdiff311c7142008-08-26 19:29:25 +000014400
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014401# Only expand once:
openvcdiff311c7142008-08-26 19:29:25 +000014402
14403
14404
14405
14406
14407# Check whether some low-level functions/files are available
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14409$as_echo_n "checking for ANSI C header files... " >&6; }
14410if test "${ac_cv_header_stdc+set}" = set; then :
14411 $as_echo_n "(cached) " >&6
openvcdiff311c7142008-08-26 19:29:25 +000014412else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000014414/* end confdefs.h. */
14415#include <stdlib.h>
14416#include <stdarg.h>
14417#include <string.h>
14418#include <float.h>
14419
14420int
14421main ()
14422{
14423
14424 ;
14425 return 0;
14426}
14427_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014428if ac_fn_c_try_compile "$LINENO"; then :
openvcdiff311c7142008-08-26 19:29:25 +000014429 ac_cv_header_stdc=yes
14430else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014431 ac_cv_header_stdc=no
openvcdiff311c7142008-08-26 19:29:25 +000014432fi
openvcdiffd1845782009-03-20 21:56:15 +000014433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000014434
14435if test $ac_cv_header_stdc = yes; then
14436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000014438/* end confdefs.h. */
14439#include <string.h>
14440
14441_ACEOF
14442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014443 $EGREP "memchr" >/dev/null 2>&1; then :
14444
openvcdiff311c7142008-08-26 19:29:25 +000014445else
14446 ac_cv_header_stdc=no
14447fi
14448rm -f conftest*
14449
14450fi
14451
14452if test $ac_cv_header_stdc = yes; then
14453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000014455/* end confdefs.h. */
14456#include <stdlib.h>
14457
14458_ACEOF
14459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014460 $EGREP "free" >/dev/null 2>&1; then :
14461
openvcdiff311c7142008-08-26 19:29:25 +000014462else
14463 ac_cv_header_stdc=no
14464fi
14465rm -f conftest*
14466
14467fi
14468
14469if test $ac_cv_header_stdc = yes; then
14470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014471 if test "$cross_compiling" = yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014472 :
14473else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiff311c7142008-08-26 19:29:25 +000014475/* end confdefs.h. */
14476#include <ctype.h>
openvcdiffd1845782009-03-20 21:56:15 +000014477#include <stdlib.h>
openvcdiff311c7142008-08-26 19:29:25 +000014478#if ((' ' & 0x0FF) == 0x020)
14479# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14480# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14481#else
14482# define ISLOWER(c) \
14483 (('a' <= (c) && (c) <= 'i') \
14484 || ('j' <= (c) && (c) <= 'r') \
14485 || ('s' <= (c) && (c) <= 'z'))
14486# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14487#endif
14488
14489#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14490int
14491main ()
14492{
14493 int i;
14494 for (i = 0; i < 256; i++)
14495 if (XOR (islower (i), ISLOWER (i))
14496 || toupper (i) != TOUPPER (i))
openvcdiffd1845782009-03-20 21:56:15 +000014497 return 2;
14498 return 0;
openvcdiff311c7142008-08-26 19:29:25 +000014499}
14500_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014501if ac_fn_c_try_run "$LINENO"; then :
14502
openvcdiff311c7142008-08-26 19:29:25 +000014503else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014504 ac_cv_header_stdc=no
openvcdiff311c7142008-08-26 19:29:25 +000014505fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14507 conftest.$ac_objext conftest.beam conftest.$ac_ext
openvcdiffd1845782009-03-20 21:56:15 +000014508fi
14509
openvcdiff311c7142008-08-26 19:29:25 +000014510fi
14511fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14513$as_echo "$ac_cv_header_stdc" >&6; }
openvcdiff311c7142008-08-26 19:29:25 +000014514if test $ac_cv_header_stdc = yes; then
14515
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014516$as_echo "#define STDC_HEADERS 1" >>confdefs.h
openvcdiff311c7142008-08-26 19:29:25 +000014517
14518fi
14519
14520
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014521# Built-in memcmp can be inefficient when gcc compiles for x86 or PowerPC
14522# processors. In those cases, use an alternative function instead of memcmp.
openvcdiff28db8072008-10-10 23:29:11 +000014523case $host_cpu in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014524 *86*|powerpc*)
openvcdiff28db8072008-10-10 23:29:11 +000014525 if test "$GCC" = "yes"; then
openvcdiffd4832872008-09-02 18:21:13 +000014526
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014527$as_echo "#define VCDIFF_USE_BLOCK_COMPARE_WORDS 1" >>confdefs.h
openvcdiff311c7142008-08-26 19:29:25 +000014528
openvcdiff28db8072008-10-10 23:29:11 +000014529 fi
openvcdiffd4832872008-09-02 18:21:13 +000014530 ;;
openvcdiff311c7142008-08-26 19:29:25 +000014531esac
14532
openvcdiff311c7142008-08-26 19:29:25 +000014533for ac_header in ext/rope
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014534do :
14535 ac_fn_c_check_header_mongrel "$LINENO" "ext/rope" "ac_cv_header_ext_rope" "$ac_includes_default"
14536if test "x$ac_cv_header_ext_rope" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014537 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014538#define HAVE_EXT_ROPE 1
openvcdiff311c7142008-08-26 19:29:25 +000014539_ACEOF
14540
14541fi
14542
14543done
14544
openvcdiff311c7142008-08-26 19:29:25 +000014545for ac_header in getopt.h
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014546do :
14547 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14548if test "x$ac_cv_header_getopt_h" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014549 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014550#define HAVE_GETOPT_H 1
openvcdiff311c7142008-08-26 19:29:25 +000014551_ACEOF
14552
14553fi
14554
14555done
14556
openvcdiff311c7142008-08-26 19:29:25 +000014557for ac_header in malloc.h
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014558do :
14559 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
14560if test "x$ac_cv_header_malloc_h" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014561 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014562#define HAVE_MALLOC_H 1
openvcdiff311c7142008-08-26 19:29:25 +000014563_ACEOF
14564
14565fi
14566
14567done
14568
openvcdiff311c7142008-08-26 19:29:25 +000014569for ac_header in sys/mman.h
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014570do :
14571 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14572if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014573 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014574#define HAVE_SYS_MMAN_H 1
openvcdiff311c7142008-08-26 19:29:25 +000014575_ACEOF
14576
14577fi
14578
14579done
14580
openvcdiff311c7142008-08-26 19:29:25 +000014581for ac_header in sys/time.h
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014582do :
14583 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14584if test "x$ac_cv_header_sys_time_h" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014585 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014586#define HAVE_SYS_TIME_H 1
openvcdiff311c7142008-08-26 19:29:25 +000014587_ACEOF
14588
14589fi
14590
14591done
14592
openvcdiff311c7142008-08-26 19:29:25 +000014593for ac_header in unistd.h
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014594do :
14595 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14596if test "x$ac_cv_header_unistd_h" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014597 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014598#define HAVE_UNISTD_H 1
openvcdiff311c7142008-08-26 19:29:25 +000014599_ACEOF
14600
14601fi
14602
14603done
14604
openvcdiff311c7142008-08-26 19:29:25 +000014605for ac_header in windows.h
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014606do :
14607 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14608if test "x$ac_cv_header_windows_h" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014609 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014610#define HAVE_WINDOWS_H 1
openvcdiff311c7142008-08-26 19:29:25 +000014611_ACEOF
14612
14613fi
14614
14615done
14616
openvcdiff311c7142008-08-26 19:29:25 +000014617for ac_func in gettimeofday QueryPerformanceCounter
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014618do :
14619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14620ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14621eval as_val=\$$as_ac_var
14622 if test "x$as_val" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014623 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014624#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
openvcdiff311c7142008-08-26 19:29:25 +000014625_ACEOF
14626
14627fi
14628done
14629
openvcdiff311c7142008-08-26 19:29:25 +000014630for ac_func in memalign posix_memalign
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014631do :
14632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14633ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14634eval as_val=\$$as_ac_var
14635 if test "x$as_val" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014636 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014637#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
openvcdiff311c7142008-08-26 19:29:25 +000014638_ACEOF
14639
14640fi
14641done
14642
openvcdiff311c7142008-08-26 19:29:25 +000014643for ac_func in mprotect
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014644do :
14645 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
14646if test "x$ac_cv_func_mprotect" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014647 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014648#define HAVE_MPROTECT 1
openvcdiff311c7142008-08-26 19:29:25 +000014649_ACEOF
14650
14651fi
14652done
14653
14654
14655# Start of definitions needed by gflags package
14656
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014657# These are tested for by AC_HEADER_STDC, but I check again to set the var
14658ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14659if test "x$ac_cv_header_stdint_h" = x""yes; then :
14660 ac_cv_have_stdint_h=1
openvcdiff311c7142008-08-26 19:29:25 +000014661else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014662 ac_cv_have_stdint_h=0
14663fi
14664
14665
14666ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14667if test "x$ac_cv_header_sys_types_h" = x""yes; then :
14668 ac_cv_have_systypes_h=1
openvcdiff311c7142008-08-26 19:29:25 +000014669else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014670 ac_cv_have_systypes_h=0
openvcdiff311c7142008-08-26 19:29:25 +000014671fi
openvcdiffd1845782009-03-20 21:56:15 +000014672
openvcdiff311c7142008-08-26 19:29:25 +000014673
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014674ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14675if test "x$ac_cv_header_inttypes_h" = x""yes; then :
14676 ac_cv_have_inttypes_h=1
openvcdiff311c7142008-08-26 19:29:25 +000014677else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014678 ac_cv_have_inttypes_h=0
openvcdiff311c7142008-08-26 19:29:25 +000014679fi
openvcdiffd1845782009-03-20 21:56:15 +000014680
openvcdiff311c7142008-08-26 19:29:25 +000014681
14682for ac_header in fnmatch.h
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014683do :
14684 ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
14685if test "x$ac_cv_header_fnmatch_h" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014686 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014687#define HAVE_FNMATCH_H 1
openvcdiff311c7142008-08-26 19:29:25 +000014688_ACEOF
14689
14690fi
14691
14692done
14693
14694
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014695# These are the types I need. We look for them in either stdint.h,
14696# sys/types.h, or inttypes.h, all of which are part of the default-includes.
14697ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14698if test "x$ac_cv_type_uint16_t" = x""yes; then :
14699 ac_cv_have_uint16_t=1
14700else
14701 ac_cv_have_uint16_t=0
14702fi
14703
14704ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
14705if test "x$ac_cv_type_u_int16_t" = x""yes; then :
14706 ac_cv_have_u_int16_t=1
14707else
14708 ac_cv_have_u_int16_t=0
14709fi
14710
14711ac_fn_c_check_type "$LINENO" "__int16" "ac_cv_type___int16" "$ac_includes_default"
14712if test "x$ac_cv_type___int16" = x""yes; then :
14713 ac_cv_have___int16=1
14714else
14715 ac_cv_have___int16=0
14716fi
14717
openvcdiff311c7142008-08-26 19:29:25 +000014718
14719for ac_func in strtoll strtoq
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014720do :
14721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14722ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14723eval as_val=\$$as_ac_var
14724 if test "x$as_val" = x""yes; then :
openvcdiff311c7142008-08-26 19:29:25 +000014725 cat >>confdefs.h <<_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014726#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
openvcdiff311c7142008-08-26 19:29:25 +000014727_ACEOF
14728
14729fi
14730done
14731
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014732for ac_func in setenv putenv
14733do :
14734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14735ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14736eval as_val=\$$as_ac_var
14737 if test "x$as_val" = x""yes; then :
14738 cat >>confdefs.h <<_ACEOF
14739#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
openvcdiff311c7142008-08-26 19:29:25 +000014740_ACEOF
14741
openvcdiff311c7142008-08-26 19:29:25 +000014742fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014743done
14744 # MinGW has putenv but not setenv
openvcdiff311c7142008-08-26 19:29:25 +000014745
14746
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
14748$as_echo_n "checking for __attribute__... " >&6; }
14749 if test "${ac_cv___attribute__+set}" = set; then :
14750 $as_echo_n "(cached) " >&6
openvcdiffbaf44ea2009-04-09 19:20:49 +000014751else
14752
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
openvcdiffbaf44ea2009-04-09 19:20:49 +000014754/* end confdefs.h. */
14755#include <stdlib.h>
14756 static void foo(void) __attribute__ ((unused));
14757 void foo(void) { exit(1); }
14758int
14759main ()
14760{
14761
14762 ;
14763 return 0;
14764}
14765_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014766if ac_fn_c_try_compile "$LINENO"; then :
openvcdiffbaf44ea2009-04-09 19:20:49 +000014767 ac_cv___attribute__=yes
14768else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014769 ac_cv___attribute__=no
openvcdiffbaf44ea2009-04-09 19:20:49 +000014770
14771fi
openvcdiffbaf44ea2009-04-09 19:20:49 +000014772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773fi
14774
14775 if test "$ac_cv___attribute__" = "yes"; then
14776
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014777$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
openvcdiffbaf44ea2009-04-09 19:20:49 +000014778
14779 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000014780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
14781$as_echo "$ac_cv___attribute__" >&6; }
14782
14783# We only care about __attribute__ ((unused))
14784if test x"$ac_cv___attribute__" = x"yes"; then
14785 ac_cv___attribute__unused="__attribute__ ((unused))"
14786else
14787 ac_cv___attribute__unused=
14788fi
14789
14790
14791
14792
14793ac_ext=c
14794ac_cpp='$CPP $CPPFLAGS'
14795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14797ac_compiler_gnu=$ac_cv_c_compiler_gnu
14798
14799acx_pthread_ok=no
14800
14801# We used to check for pthread.h first, but this fails if pthread.h
14802# requires special compiler flags (e.g. on True64 or Sequent).
14803# It gets checked for in the link test anyway.
14804
14805# First of all, check if the user has set any of the PTHREAD_LIBS,
14806# etcetera environment variables, and if threads linking works using
14807# them:
14808if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14809 save_CFLAGS="$CFLAGS"
14810 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14811 save_LIBS="$LIBS"
14812 LIBS="$PTHREAD_LIBS $LIBS"
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14814$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816/* end confdefs.h. */
14817
14818/* Override any GCC internal prototype to avoid an error.
14819 Use char because int might match the return type of a GCC
14820 builtin and then its argument prototype would still apply. */
14821#ifdef __cplusplus
14822extern "C"
14823#endif
14824char pthread_join ();
14825int
14826main ()
14827{
14828return pthread_join ();
14829 ;
14830 return 0;
14831}
14832_ACEOF
14833if ac_fn_c_try_link "$LINENO"; then :
14834 acx_pthread_ok=yes
14835fi
14836rm -f core conftest.err conftest.$ac_objext \
14837 conftest$ac_exeext conftest.$ac_ext
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14839$as_echo "$acx_pthread_ok" >&6; }
14840 if test x"$acx_pthread_ok" = xno; then
14841 PTHREAD_LIBS=""
14842 PTHREAD_CFLAGS=""
14843 fi
14844 LIBS="$save_LIBS"
14845 CFLAGS="$save_CFLAGS"
14846fi
14847
14848# We must check for the threads library under a number of different
14849# names; the ordering is very important because some systems
14850# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14851# libraries is broken (non-POSIX).
14852
14853# Create a list of thread flags to try. Items starting with a "-" are
14854# C compiler flags, and other items are library names, except for "none"
14855# which indicates that we try without any flags at all, and "pthread-config"
14856# which is a program returning the flags for the Pth emulation library.
14857
14858acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14859
14860# The ordering *is* (sometimes) important. Some notes on the
14861# individual items follow:
14862
14863# pthreads: AIX (must check this before -lpthread)
14864# none: in case threads are in libc; should be tried before -Kthread and
14865# other compiler flags to prevent continual compiler warnings
14866# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14867# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14868# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14869# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14870# -pthreads: Solaris/gcc
14871# -mthreads: Mingw32/gcc, Lynx/gcc
14872# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14873# doesn't hurt to check since this sometimes defines pthreads too;
14874# also defines -D_REENTRANT)
14875# ... -mt is also the pthreads flag for HP/aCC
14876# pthread: Linux, etcetera
14877# --thread-safe: KAI C++
14878# pthread-config: use pthread-config program (for GNU Pth library)
14879
14880case "${host_cpu}-${host_os}" in
14881 *solaris*)
14882
14883 # On Solaris (at least, for some versions), libc contains stubbed
14884 # (non-functional) versions of the pthreads routines, so link-based
14885 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14886 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14887 # a function called by this macro, so we could check for that, but
14888 # who knows whether they'll stub that too in a future libc.) So,
14889 # we'll just look for -pthreads and -lpthread first:
14890
14891 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14892 ;;
14893esac
14894
14895if test x"$acx_pthread_ok" = xno; then
14896for flag in $acx_pthread_flags; do
14897
14898 case $flag in
14899 none)
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14901$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14902 ;;
14903
14904 -*)
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14906$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14907 PTHREAD_CFLAGS="$flag"
14908 ;;
14909
14910 pthread-config)
14911 # Extract the first word of "pthread-config", so it can be a program name with args.
14912set dummy pthread-config; ac_word=$2
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14914$as_echo_n "checking for $ac_word... " >&6; }
14915if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
14916 $as_echo_n "(cached) " >&6
14917else
14918 if test -n "$acx_pthread_config"; then
14919 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14920else
14921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922for as_dir in $PATH
14923do
14924 IFS=$as_save_IFS
14925 test -z "$as_dir" && as_dir=.
14926 for ac_exec_ext in '' $ac_executable_extensions; do
14927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14928 ac_cv_prog_acx_pthread_config="yes"
14929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14930 break 2
14931 fi
14932done
14933 done
14934IFS=$as_save_IFS
14935
14936 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14937fi
14938fi
14939acx_pthread_config=$ac_cv_prog_acx_pthread_config
14940if test -n "$acx_pthread_config"; then
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14942$as_echo "$acx_pthread_config" >&6; }
14943else
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14945$as_echo "no" >&6; }
14946fi
14947
14948
14949 if test x"$acx_pthread_config" = xno; then continue; fi
14950 PTHREAD_CFLAGS="`pthread-config --cflags`"
14951 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14952 ;;
14953
14954 *)
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14956$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14957 PTHREAD_LIBS="-l$flag"
14958 ;;
14959 esac
14960
14961 save_LIBS="$LIBS"
14962 save_CFLAGS="$CFLAGS"
14963 LIBS="$PTHREAD_LIBS $LIBS"
14964 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14965
14966 # Check for various functions. We must include pthread.h,
14967 # since some functions may be macros. (On the Sequent, we
14968 # need a special flag -Kthread to make this header compile.)
14969 # We check for pthread_join because it is in -lpthread on IRIX
14970 # while pthread_create is in libc. We check for pthread_attr_init
14971 # due to DEC craziness with -lpthreads. We check for
14972 # pthread_cleanup_push because it is one of the few pthread
14973 # functions on Solaris that doesn't have a non-functional libc stub.
14974 # We try pthread_create on general principles.
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976/* end confdefs.h. */
14977#include <pthread.h>
14978int
14979main ()
14980{
14981pthread_t th; pthread_join(th, 0);
14982 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14983 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14984 ;
14985 return 0;
14986}
14987_ACEOF
14988if ac_fn_c_try_link "$LINENO"; then :
14989 acx_pthread_ok=yes
14990fi
14991rm -f core conftest.err conftest.$ac_objext \
14992 conftest$ac_exeext conftest.$ac_ext
14993
14994 LIBS="$save_LIBS"
14995 CFLAGS="$save_CFLAGS"
14996
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14998$as_echo "$acx_pthread_ok" >&6; }
14999 if test "x$acx_pthread_ok" = xyes; then
15000 break;
15001 fi
15002
15003 PTHREAD_LIBS=""
15004 PTHREAD_CFLAGS=""
15005done
15006fi
15007
15008# Various other checks:
15009if test "x$acx_pthread_ok" = xyes; then
15010 save_LIBS="$LIBS"
15011 LIBS="$PTHREAD_LIBS $LIBS"
15012 save_CFLAGS="$CFLAGS"
15013 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15014
15015 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15017$as_echo_n "checking for joinable pthread attribute... " >&6; }
15018 attr_name=unknown
15019 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h. */
15022#include <pthread.h>
15023int
15024main ()
15025{
15026int attr=$attr; return attr;
15027 ;
15028 return 0;
15029}
15030_ACEOF
15031if ac_fn_c_try_link "$LINENO"; then :
15032 attr_name=$attr; break
15033fi
15034rm -f core conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15036 done
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15038$as_echo "$attr_name" >&6; }
15039 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15040
15041cat >>confdefs.h <<_ACEOF
15042#define PTHREAD_CREATE_JOINABLE $attr_name
15043_ACEOF
15044
15045 fi
15046
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15048$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15049 flag=no
15050 case "${host_cpu}-${host_os}" in
15051 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15052 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15053 esac
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15055$as_echo "${flag}" >&6; }
15056 if test "x$flag" != xno; then
15057 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15058 fi
15059
15060 LIBS="$save_LIBS"
15061 CFLAGS="$save_CFLAGS"
15062 # More AIX lossage: must compile with xlc_r or cc_r
15063 if test x"$GCC" != xyes; then
15064 for ac_prog in xlc_r cc_r
15065do
15066 # Extract the first word of "$ac_prog", so it can be a program name with args.
15067set dummy $ac_prog; ac_word=$2
15068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15069$as_echo_n "checking for $ac_word... " >&6; }
15070if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
15071 $as_echo_n "(cached) " >&6
15072else
15073 if test -n "$PTHREAD_CC"; then
15074 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15075else
15076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15077for as_dir in $PATH
15078do
15079 IFS=$as_save_IFS
15080 test -z "$as_dir" && as_dir=.
15081 for ac_exec_ext in '' $ac_executable_extensions; do
15082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15083 ac_cv_prog_PTHREAD_CC="$ac_prog"
15084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15085 break 2
15086 fi
15087done
15088 done
15089IFS=$as_save_IFS
15090
15091fi
15092fi
15093PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15094if test -n "$PTHREAD_CC"; then
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15096$as_echo "$PTHREAD_CC" >&6; }
15097else
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15099$as_echo "no" >&6; }
15100fi
15101
15102
15103 test -n "$PTHREAD_CC" && break
15104done
15105test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15106
15107 else
15108 PTHREAD_CC=$CC
15109 fi
15110
15111 # The next part tries to detect GCC inconsistency with -shared on some
15112 # architectures and systems. The problem is that in certain
15113 # configurations, when -shared is specified, GCC "forgets" to
15114 # internally use various flags which are still necessary.
15115
15116 #
15117 # Prepare the flags
15118 #
15119 save_CFLAGS="$CFLAGS"
15120 save_LIBS="$LIBS"
15121 save_CC="$CC"
15122
15123 # Try with the flags determined by the earlier checks.
15124 #
15125 # -Wl,-z,defs forces link-time symbol resolution, so that the
15126 # linking checks with -shared actually have any value
15127 #
15128 # FIXME: -fPIC is required for -shared on many architectures,
15129 # so we specify it here, but the right way would probably be to
15130 # properly detect whether it is actually required.
15131 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15132 LIBS="$PTHREAD_LIBS $LIBS"
15133 CC="$PTHREAD_CC"
15134
15135 # In order not to create several levels of indentation, we test
15136 # the value of "$done" until we find the cure or run out of ideas.
15137 done="no"
15138
15139 # First, make sure the CFLAGS we added are actually accepted by our
15140 # compiler. If not (and OS X's ld, for instance, does not accept -z),
15141 # then we can't do this test.
15142 if test x"$done" = xno; then
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15144$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146/* end confdefs.h. */
15147
15148int
15149main ()
15150{
15151
15152 ;
15153 return 0;
15154}
15155_ACEOF
15156if ac_fn_c_try_link "$LINENO"; then :
15157
15158else
15159 done=yes
15160fi
15161rm -f core conftest.err conftest.$ac_objext \
15162 conftest$ac_exeext conftest.$ac_ext
15163
15164 if test "x$done" = xyes ; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15166$as_echo "no" >&6; }
15167 else
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15169$as_echo "yes" >&6; }
15170 fi
15171 fi
15172
15173 if test x"$done" = xno; then
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15175$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177/* end confdefs.h. */
15178#include <pthread.h>
15179int
15180main ()
15181{
15182pthread_t th; pthread_join(th, 0);
15183 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15184 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15185 ;
15186 return 0;
15187}
15188_ACEOF
15189if ac_fn_c_try_link "$LINENO"; then :
15190 done=yes
15191fi
15192rm -f core conftest.err conftest.$ac_objext \
15193 conftest$ac_exeext conftest.$ac_ext
15194
15195 if test "x$done" = xyes; then
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15197$as_echo "yes" >&6; }
15198 else
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15200$as_echo "no" >&6; }
15201 fi
15202 fi
15203
15204 #
15205 # Linux gcc on some architectures such as mips/mipsel forgets
15206 # about -lpthread
15207 #
15208 if test x"$done" = xno; then
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15210$as_echo_n "checking whether -lpthread fixes that... " >&6; }
15211 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213/* end confdefs.h. */
15214#include <pthread.h>
15215int
15216main ()
15217{
15218pthread_t th; pthread_join(th, 0);
15219 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15220 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15221 ;
15222 return 0;
15223}
15224_ACEOF
15225if ac_fn_c_try_link "$LINENO"; then :
15226 done=yes
15227fi
15228rm -f core conftest.err conftest.$ac_objext \
15229 conftest$ac_exeext conftest.$ac_ext
15230
15231 if test "x$done" = xyes; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15233$as_echo "yes" >&6; }
15234 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15235 else
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15237$as_echo "no" >&6; }
15238 fi
15239 fi
15240 #
15241 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15242 #
15243 if test x"$done" = xno; then
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15245$as_echo_n "checking whether -lc_r fixes that... " >&6; }
15246 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248/* end confdefs.h. */
15249#include <pthread.h>
15250int
15251main ()
15252{
15253pthread_t th; pthread_join(th, 0);
15254 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15255 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15256 ;
15257 return 0;
15258}
15259_ACEOF
15260if ac_fn_c_try_link "$LINENO"; then :
15261 done=yes
15262fi
15263rm -f core conftest.err conftest.$ac_objext \
15264 conftest$ac_exeext conftest.$ac_ext
15265
15266 if test "x$done" = xyes; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15268$as_echo "yes" >&6; }
15269 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15270 else
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15272$as_echo "no" >&6; }
15273 fi
15274 fi
15275 if test x"$done" = xno; then
15276 # OK, we have run out of ideas
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15278$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15279
15280 # so it's not safe to assume that we may use pthreads
15281 acx_pthread_ok=no
15282 fi
15283
15284 CFLAGS="$save_CFLAGS"
15285 LIBS="$save_LIBS"
15286 CC="$save_CC"
15287else
15288 PTHREAD_CC="$CC"
15289fi
15290
15291
15292
15293
15294
15295# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15296if test x"$acx_pthread_ok" = xyes; then
15297
15298$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15299
15300 :
15301else
15302 acx_pthread_ok=no
15303
15304fi
15305ac_ext=c
15306ac_cpp='$CPP $CPPFLAGS'
15307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15309ac_compiler_gnu=$ac_cv_c_compiler_gnu
15310
15311
15312
15313# Find out what namespace 'normal' STL code lives in, and also what namespace
15314# the user wants our classes to be defined in
15315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
15316$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
15317if test "${ac_cv_cxx_namespaces+set}" = set; then :
15318 $as_echo_n "(cached) " >&6
15319else
15320
15321 ac_ext=cpp
15322ac_cpp='$CXXCPP $CPPFLAGS'
15323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15326
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328/* end confdefs.h. */
15329namespace Outer {
15330 namespace Inner { int i = 0; }}
15331int
15332main ()
15333{
15334using namespace Outer::Inner; return i;
15335 ;
15336 return 0;
15337}
15338_ACEOF
15339if ac_fn_cxx_try_compile "$LINENO"; then :
15340 ac_cv_cxx_namespaces=yes
15341else
15342 ac_cv_cxx_namespaces=no
15343fi
15344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345 ac_ext=c
15346ac_cpp='$CPP $CPPFLAGS'
15347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15349ac_compiler_gnu=$ac_cv_c_compiler_gnu
15350
15351fi
15352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
15353$as_echo "$ac_cv_cxx_namespaces" >&6; }
15354 if test "$ac_cv_cxx_namespaces" = yes; then
15355
15356$as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
15357
15358 fi
15359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
15360$as_echo_n "checking what namespace STL code is in... " >&6; }
15361if test "${ac_cv_cxx_stl_namespace+set}" = set; then :
15362 $as_echo_n "(cached) " >&6
15363else
15364
15365
15366 ac_ext=cpp
15367ac_cpp='$CXXCPP $CPPFLAGS'
15368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15371
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373/* end confdefs.h. */
15374#include <vector>
15375int
15376main ()
15377{
15378vector<int> t; return 0;
15379 ;
15380 return 0;
15381}
15382_ACEOF
15383if ac_fn_cxx_try_compile "$LINENO"; then :
15384 ac_cv_cxx_stl_namespace=none
15385fi
15386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388/* end confdefs.h. */
15389#include <vector>
15390int
15391main ()
15392{
15393std::vector<int> t; return 0;
15394 ;
15395 return 0;
15396}
15397_ACEOF
15398if ac_fn_cxx_try_compile "$LINENO"; then :
15399 ac_cv_cxx_stl_namespace=std
15400fi
15401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402 ac_ext=c
15403ac_cpp='$CPP $CPPFLAGS'
15404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15406ac_compiler_gnu=$ac_cv_c_compiler_gnu
15407
15408fi
15409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
15410$as_echo "$ac_cv_cxx_stl_namespace" >&6; }
15411 if test "$ac_cv_cxx_stl_namespace" = none; then
15412
15413$as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
15414
15415 fi
15416 if test "$ac_cv_cxx_stl_namespace" = std; then
15417
15418$as_echo "#define STL_NAMESPACE std" >>confdefs.h
15419
15420 fi
15421
15422google_namespace_default=google
15423 # Check whether --enable-namespace was given.
15424if test "${enable_namespace+set}" = set; then :
15425 enableval=$enable_namespace; case "$enableval" in
15426 yes) google_namespace="$google_namespace_default" ;;
15427 no) google_namespace="" ;;
15428 *) google_namespace="$enableval" ;;
15429 esac
15430else
15431 google_namespace="$google_namespace_default"
15432fi
15433
15434 if test -n "$google_namespace"; then
15435 ac_google_namespace="::$google_namespace"
15436 ac_google_start_namespace="namespace $google_namespace {"
15437 ac_google_end_namespace="}"
15438 else
15439 ac_google_namespace=""
15440 ac_google_start_namespace=""
15441 ac_google_end_namespace=""
15442 fi
15443
15444cat >>confdefs.h <<_ACEOF
15445#define GOOGLE_NAMESPACE $ac_google_namespace
15446_ACEOF
15447
15448
15449cat >>confdefs.h <<_ACEOF
15450#define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
15451_ACEOF
15452
15453
15454cat >>confdefs.h <<_ACEOF
15455#define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
15456_ACEOF
15457
15458
15459
15460# These are what's needed by gflags.h.in
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472# For windows, this has a non-trivial value (__declspec(export)), but any
15473# system that uses configure wants this to be the empty string.
15474
15475$as_echo "#define GFLAGS_DLL_DECL /**/" >>confdefs.h
openvcdiffbaf44ea2009-04-09 19:20:49 +000015476
openvcdiff311c7142008-08-26 19:29:25 +000015477
openvcdiff311c7142008-08-26 19:29:25 +000015478# End of definitions needed by gflags package
15479
openvcdiffd1845782009-03-20 21:56:15 +000015480# Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
15481# If so, we replace it with our own version.
15482LIBSTDCXX_LA_LINKER_FLAG=
15483if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
15484then
15485 LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
15486fi
15487
15488
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015489ac_config_files="$ac_config_files Makefile gflags/src/gflags/gflags.h gflags/src/gflags/gflags_completions.h"
openvcdiff311c7142008-08-26 19:29:25 +000015490
15491cat >confcache <<\_ACEOF
15492# This file is a shell script that caches the results of configure
15493# tests run on this system so they can be shared between configure
15494# scripts and configure runs, see configure's option --config-cache.
15495# It is not useful on other systems. If it contains results you don't
15496# want to keep, you may remove or edit it.
15497#
15498# config.status only pays attention to the cache file if you give it
15499# the --recheck option to rerun configure.
15500#
15501# `ac_cv_env_foo' variables (set or unset) will be overridden when
15502# loading this file, other *unset* `ac_cv_foo' will be assigned the
15503# following values.
15504
15505_ACEOF
15506
15507# The following way of writing the cache mishandles newlines in values,
15508# but we know of no workaround that is simple, portable, and efficient.
openvcdiffd1845782009-03-20 21:56:15 +000015509# So, we kill variables containing newlines.
openvcdiff311c7142008-08-26 19:29:25 +000015510# Ultrix sh set writes to stderr and can't be redirected directly,
15511# and sets the high bit in the cache file unless we assign to the vars.
openvcdiffd1845782009-03-20 21:56:15 +000015512(
15513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15514 eval ac_val=\$$ac_var
15515 case $ac_val in #(
15516 *${as_nl}*)
15517 case $ac_var in #(
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015518 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15519$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
openvcdiffd1845782009-03-20 21:56:15 +000015520 esac
15521 case $ac_var in #(
15522 _ | IFS | as_nl) ;; #(
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015523 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15524 *) { eval $ac_var=; unset $ac_var;} ;;
openvcdiffd1845782009-03-20 21:56:15 +000015525 esac ;;
15526 esac
15527 done
15528
openvcdiff311c7142008-08-26 19:29:25 +000015529 (set) 2>&1 |
openvcdiffd1845782009-03-20 21:56:15 +000015530 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15531 *${as_nl}ac_space=\ *)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015532 # `set' does not quote correctly, so add quotes: double-quote
15533 # substitution turns \\\\ into \\, and sed turns \\ into \.
openvcdiff311c7142008-08-26 19:29:25 +000015534 sed -n \
15535 "s/'/'\\\\''/g;
15536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
openvcdiffd1845782009-03-20 21:56:15 +000015537 ;; #(
openvcdiff311c7142008-08-26 19:29:25 +000015538 *)
15539 # `set' quotes correctly as required by POSIX, so do not add quotes.
openvcdiffd1845782009-03-20 21:56:15 +000015540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
openvcdiff311c7142008-08-26 19:29:25 +000015541 ;;
openvcdiffd1845782009-03-20 21:56:15 +000015542 esac |
15543 sort
15544) |
openvcdiff311c7142008-08-26 19:29:25 +000015545 sed '
openvcdiffd1845782009-03-20 21:56:15 +000015546 /^ac_cv_env_/b end
openvcdiff311c7142008-08-26 19:29:25 +000015547 t clear
openvcdiffd1845782009-03-20 21:56:15 +000015548 :clear
openvcdiff311c7142008-08-26 19:29:25 +000015549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15550 t end
openvcdiffd1845782009-03-20 21:56:15 +000015551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15552 :end' >>confcache
15553if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15554 if test -w "$cache_file"; then
15555 test "x$cache_file" != "x/dev/null" &&
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15557$as_echo "$as_me: updating cache $cache_file" >&6;}
openvcdiff311c7142008-08-26 19:29:25 +000015558 cat confcache >$cache_file
15559 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015560 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15561$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
openvcdiff311c7142008-08-26 19:29:25 +000015562 fi
15563fi
15564rm -f confcache
15565
15566test "x$prefix" = xNONE && prefix=$ac_default_prefix
15567# Let make expand exec_prefix.
15568test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15569
openvcdiff311c7142008-08-26 19:29:25 +000015570DEFS=-DHAVE_CONFIG_H
15571
15572ac_libobjs=
15573ac_ltlibobjs=
15574for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15575 # 1. Remove the extension, and $U if already installed.
openvcdiffd1845782009-03-20 21:56:15 +000015576 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015577 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
openvcdiffd1845782009-03-20 21:56:15 +000015578 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15579 # will be set to the directory where LIBOBJS objects are built.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015580 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15581 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
openvcdiff311c7142008-08-26 19:29:25 +000015582done
15583LIBOBJS=$ac_libobjs
15584
15585LTLIBOBJS=$ac_ltlibobjs
15586
15587
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015588 if test -n "$EXEEXT"; then
15589 am__EXEEXT_TRUE=
15590 am__EXEEXT_FALSE='#'
15591else
15592 am__EXEEXT_TRUE='#'
15593 am__EXEEXT_FALSE=
15594fi
15595
openvcdiff311c7142008-08-26 19:29:25 +000015596if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015597 as_fn_error "conditional \"AMDEP\" was never defined.
15598Usually this means the macro was only invoked conditionally." "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +000015599fi
15600if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015601 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15602Usually this means the macro was only invoked conditionally." "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +000015603fi
15604if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015605 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15606Usually this means the macro was only invoked conditionally." "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +000015607fi
15608if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015609 as_fn_error "conditional \"GCC\" was never defined.
15610Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611fi
15612if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15613 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15614Usually this means the macro was only invoked conditionally." "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +000015615fi
15616
15617: ${CONFIG_STATUS=./config.status}
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015618ac_write_fail=0
openvcdiff311c7142008-08-26 19:29:25 +000015619ac_clean_files_save=$ac_clean_files
15620ac_clean_files="$ac_clean_files $CONFIG_STATUS"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015621{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15622$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15623as_write_fail=0
15624cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
openvcdiff311c7142008-08-26 19:29:25 +000015625#! $SHELL
15626# Generated by $as_me.
15627# Run this file to recreate the current configuration.
15628# Compiler output produced by configure, useful for debugging
15629# configure, is in config.log if it exists.
15630
15631debug=false
15632ac_cs_recheck=false
15633ac_cs_silent=false
openvcdiff311c7142008-08-26 19:29:25 +000015634
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015635SHELL=\${CONFIG_SHELL-$SHELL}
15636export SHELL
15637_ASEOF
15638cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15639## -------------------- ##
15640## M4sh Initialization. ##
15641## -------------------- ##
openvcdiff311c7142008-08-26 19:29:25 +000015642
openvcdiffd1845782009-03-20 21:56:15 +000015643# Be more Bourne compatible
15644DUALCASE=1; export DUALCASE # for MKS sh
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015645if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
openvcdiff311c7142008-08-26 19:29:25 +000015646 emulate sh
15647 NULLCMD=:
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
openvcdiff311c7142008-08-26 19:29:25 +000015649 # is contrary to our usage. Disable this feature.
15650 alias -g '${1+"$@"}'='"$@"'
openvcdiffd1845782009-03-20 21:56:15 +000015651 setopt NO_GLOB_SUBST
openvcdiff311c7142008-08-26 19:29:25 +000015652else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015653 case `(set -o) 2>/dev/null` in #(
15654 *posix*) :
15655 set -o posix ;; #(
15656 *) :
15657 ;;
openvcdiffd1845782009-03-20 21:56:15 +000015658esac
openvcdiff311c7142008-08-26 19:29:25 +000015659fi
15660
15661
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015662as_nl='
15663'
15664export as_nl
15665# Printing a long string crashes Solaris 7 /usr/bin/printf.
15666as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15668as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15669# Prefer a ksh shell builtin over an external printf program on Solaris,
15670# but without wasting forks for bash or zsh.
15671if test -z "$BASH_VERSION$ZSH_VERSION" \
15672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15673 as_echo='print -r --'
15674 as_echo_n='print -rn --'
15675elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15676 as_echo='printf %s\n'
15677 as_echo_n='printf %s'
15678else
15679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15681 as_echo_n='/usr/ucb/echo -n'
15682 else
15683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15684 as_echo_n_body='eval
15685 arg=$1;
15686 case $arg in #(
15687 *"$as_nl"*)
15688 expr "X$arg" : "X\\(.*\\)$as_nl";
15689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15690 esac;
15691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15692 '
15693 export as_echo_n_body
15694 as_echo_n='sh -c $as_echo_n_body as_echo'
15695 fi
15696 export as_echo_body
15697 as_echo='sh -c $as_echo_body as_echo'
15698fi
openvcdiff311c7142008-08-26 19:29:25 +000015699
15700# The user is always right.
15701if test "${PATH_SEPARATOR+set}" != set; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015702 PATH_SEPARATOR=:
15703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15705 PATH_SEPARATOR=';'
15706 }
openvcdiffd1845782009-03-20 21:56:15 +000015707fi
openvcdiff311c7142008-08-26 19:29:25 +000015708
openvcdiffd1845782009-03-20 21:56:15 +000015709
15710# IFS
15711# We need space, tab and new line, in precisely that order. Quoting is
15712# there to prevent editors from complaining about space-tab.
15713# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15714# splitting by setting IFS to empty value.)
openvcdiffd1845782009-03-20 21:56:15 +000015715IFS=" "" $as_nl"
15716
15717# Find who we are. Look in the path if we contain no directory separator.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015718case $0 in #((
openvcdiffd1845782009-03-20 21:56:15 +000015719 *[\\/]* ) as_myself=$0 ;;
15720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
openvcdiff311c7142008-08-26 19:29:25 +000015721for as_dir in $PATH
15722do
15723 IFS=$as_save_IFS
15724 test -z "$as_dir" && as_dir=.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15726 done
openvcdiffd1845782009-03-20 21:56:15 +000015727IFS=$as_save_IFS
openvcdiff311c7142008-08-26 19:29:25 +000015728
openvcdiffd1845782009-03-20 21:56:15 +000015729 ;;
15730esac
15731# We did not find ourselves, most probably we were run as `sh COMMAND'
15732# in which case we are not to be found in the path.
15733if test "x$as_myself" = x; then
15734 as_myself=$0
15735fi
15736if test ! -f "$as_myself"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15738 exit 1
openvcdiffd1845782009-03-20 21:56:15 +000015739fi
15740
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015741# Unset variables that we do not need and which cause bugs (e.g. in
15742# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15743# suppresses any "Segmentation fault" message there. '((' could
15744# trigger a bug in pdksh 5.2.14.
15745for as_var in BASH_ENV ENV MAIL MAILPATH
15746do eval test x\${$as_var+set} = xset \
15747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
openvcdiffd1845782009-03-20 21:56:15 +000015748done
15749PS1='$ '
15750PS2='> '
15751PS4='+ '
15752
15753# NLS nuisances.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015754LC_ALL=C
15755export LC_ALL
15756LANGUAGE=C
15757export LANGUAGE
openvcdiffd1845782009-03-20 21:56:15 +000015758
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015759# CDPATH.
15760(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15761
15762
15763# as_fn_error ERROR [LINENO LOG_FD]
15764# ---------------------------------
15765# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15766# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15767# script with status $?, using 1 if that was 0.
15768as_fn_error ()
15769{
15770 as_status=$?; test $as_status -eq 0 && as_status=1
15771 if test "$3"; then
15772 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15774 fi
15775 $as_echo "$as_me: error: $1" >&2
15776 as_fn_exit $as_status
15777} # as_fn_error
15778
15779
15780# as_fn_set_status STATUS
15781# -----------------------
15782# Set $? to STATUS, without forking.
15783as_fn_set_status ()
15784{
15785 return $1
15786} # as_fn_set_status
15787
15788# as_fn_exit STATUS
15789# -----------------
15790# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15791as_fn_exit ()
15792{
15793 set +e
15794 as_fn_set_status $1
15795 exit $1
15796} # as_fn_exit
15797
15798# as_fn_unset VAR
15799# ---------------
15800# Portably unset VAR.
15801as_fn_unset ()
15802{
15803 { eval $1=; unset $1;}
15804}
15805as_unset=as_fn_unset
15806# as_fn_append VAR VALUE
15807# ----------------------
15808# Append the text in VALUE to the end of the definition contained in VAR. Take
15809# advantage of any shell optimizations that allow amortized linear growth over
15810# repeated appends, instead of the typical quadratic growth present in naive
15811# implementations.
15812if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15813 eval 'as_fn_append ()
15814 {
15815 eval $1+=\$2
15816 }'
15817else
15818 as_fn_append ()
15819 {
15820 eval $1=\$$1\$2
15821 }
15822fi # as_fn_append
15823
15824# as_fn_arith ARG...
15825# ------------------
15826# Perform arithmetic evaluation on the ARGs, and store the result in the
15827# global $as_val. Take advantage of shells that can avoid forks. The arguments
15828# must be portable across $(()) and expr.
15829if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15830 eval 'as_fn_arith ()
15831 {
15832 as_val=$(( $* ))
15833 }'
15834else
15835 as_fn_arith ()
15836 {
15837 as_val=`expr "$@" || test $? -eq 1`
15838 }
15839fi # as_fn_arith
15840
15841
openvcdiffd1845782009-03-20 21:56:15 +000015842if expr a : '\(a\)' >/dev/null 2>&1 &&
15843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15844 as_expr=expr
15845else
15846 as_expr=false
15847fi
15848
15849if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15850 as_basename=basename
15851else
15852 as_basename=false
15853fi
15854
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015855if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15856 as_dirname=dirname
15857else
15858 as_dirname=false
15859fi
openvcdiffd1845782009-03-20 21:56:15 +000015860
openvcdiffd1845782009-03-20 21:56:15 +000015861as_me=`$as_basename -- "$0" ||
15862$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15863 X"$0" : 'X\(//\)$' \| \
15864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015865$as_echo X/"$0" |
openvcdiffd1845782009-03-20 21:56:15 +000015866 sed '/^.*\/\([^/][^/]*\)\/*$/{
15867 s//\1/
15868 q
15869 }
15870 /^X\/\(\/\/\)$/{
15871 s//\1/
15872 q
15873 }
15874 /^X\/\(\/\).*/{
15875 s//\1/
15876 q
15877 }
15878 s/.*/./; q'`
15879
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015880# Avoid depending upon Character Ranges.
15881as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15882as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15883as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15884as_cr_digits='0123456789'
15885as_cr_alnum=$as_cr_Letters$as_cr_digits
openvcdiffd1845782009-03-20 21:56:15 +000015886
15887ECHO_C= ECHO_N= ECHO_T=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015888case `echo -n x` in #(((((
openvcdiffd1845782009-03-20 21:56:15 +000015889-n*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015890 case `echo 'xy\c'` in
openvcdiffd1845782009-03-20 21:56:15 +000015891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015892 xy) ECHO_C='\c';;
15893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15894 ECHO_T=' ';;
openvcdiffd1845782009-03-20 21:56:15 +000015895 esac;;
15896*)
15897 ECHO_N='-n';;
openvcdiff311c7142008-08-26 19:29:25 +000015898esac
15899
openvcdiff311c7142008-08-26 19:29:25 +000015900rm -f conf$$ conf$$.exe conf$$.file
openvcdiffd1845782009-03-20 21:56:15 +000015901if test -d conf$$.dir; then
15902 rm -f conf$$.dir/conf$$.file
15903else
15904 rm -f conf$$.dir
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015905 mkdir conf$$.dir 2>/dev/null
openvcdiffd1845782009-03-20 21:56:15 +000015906fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015907if (echo >conf$$.file) 2>/dev/null; then
15908 if ln -s conf$$.file conf$$ 2>/dev/null; then
15909 as_ln_s='ln -s'
15910 # ... but there are two gotchas:
15911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15913 # In both cases, we have to default to `cp -p'.
15914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15915 as_ln_s='cp -p'
15916 elif ln conf$$.file conf$$ 2>/dev/null; then
15917 as_ln_s=ln
15918 else
openvcdiff311c7142008-08-26 19:29:25 +000015919 as_ln_s='cp -p'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015920 fi
openvcdiff311c7142008-08-26 19:29:25 +000015921else
15922 as_ln_s='cp -p'
15923fi
openvcdiffd1845782009-03-20 21:56:15 +000015924rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15925rmdir conf$$.dir 2>/dev/null
openvcdiff311c7142008-08-26 19:29:25 +000015926
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015927
15928# as_fn_mkdir_p
15929# -------------
15930# Create "$as_dir" as a directory, including parents if necessary.
15931as_fn_mkdir_p ()
15932{
15933
15934 case $as_dir in #(
15935 -*) as_dir=./$as_dir;;
15936 esac
15937 test -d "$as_dir" || eval $as_mkdir_p || {
15938 as_dirs=
15939 while :; do
15940 case $as_dir in #(
15941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15942 *) as_qdir=$as_dir;;
15943 esac
15944 as_dirs="'$as_qdir' $as_dirs"
15945 as_dir=`$as_dirname -- "$as_dir" ||
15946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15947 X"$as_dir" : 'X\(//\)[^/]' \| \
15948 X"$as_dir" : 'X\(//\)$' \| \
15949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15950$as_echo X"$as_dir" |
15951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15952 s//\1/
15953 q
15954 }
15955 /^X\(\/\/\)[^/].*/{
15956 s//\1/
15957 q
15958 }
15959 /^X\(\/\/\)$/{
15960 s//\1/
15961 q
15962 }
15963 /^X\(\/\).*/{
15964 s//\1/
15965 q
15966 }
15967 s/.*/./; q'`
15968 test -d "$as_dir" && break
15969 done
15970 test -z "$as_dirs" || eval "mkdir $as_dirs"
15971 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15972
15973
15974} # as_fn_mkdir_p
openvcdiff311c7142008-08-26 19:29:25 +000015975if mkdir -p . 2>/dev/null; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015976 as_mkdir_p='mkdir -p "$as_dir"'
openvcdiff311c7142008-08-26 19:29:25 +000015977else
15978 test -d ./-p && rmdir ./-p
15979 as_mkdir_p=false
15980fi
15981
openvcdiffd1845782009-03-20 21:56:15 +000015982if test -x / >/dev/null 2>&1; then
15983 as_test_x='test -x'
15984else
15985 if ls -dL / >/dev/null 2>&1; then
15986 as_ls_L_option=L
15987 else
15988 as_ls_L_option=
15989 fi
15990 as_test_x='
15991 eval sh -c '\''
15992 if test -d "$1"; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015993 test -d "$1/.";
openvcdiffd1845782009-03-20 21:56:15 +000015994 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015995 case $1 in #(
15996 -*)set "./$1";;
openvcdiffd1845782009-03-20 21:56:15 +000015997 esac;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000015998 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
openvcdiffd1845782009-03-20 21:56:15 +000015999 ???[sx]*):;;*)false;;esac;fi
16000 '\'' sh
16001 '
16002fi
16003as_executable_p=$as_test_x
openvcdiff311c7142008-08-26 19:29:25 +000016004
16005# Sed expression to map a string onto a valid CPP name.
16006as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16007
16008# Sed expression to map a string onto a valid variable name.
16009as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16010
16011
openvcdiff311c7142008-08-26 19:29:25 +000016012exec 6>&1
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016013## ----------------------------------- ##
16014## Main body of $CONFIG_STATUS script. ##
16015## ----------------------------------- ##
16016_ASEOF
16017test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
openvcdiff311c7142008-08-26 19:29:25 +000016018
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020# Save the log message, to keep $0 and so on meaningful, and to
openvcdiff311c7142008-08-26 19:29:25 +000016021# report actual input values of CONFIG_FILES etc. instead of their
openvcdiffd1845782009-03-20 21:56:15 +000016022# values after options handling.
16023ac_log="
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016024This file was extended by open-vcdiff $as_me 0.8, which was
16025generated by GNU Autoconf 2.65. Invocation command line was
openvcdiff311c7142008-08-26 19:29:25 +000016026
16027 CONFIG_FILES = $CONFIG_FILES
16028 CONFIG_HEADERS = $CONFIG_HEADERS
16029 CONFIG_LINKS = $CONFIG_LINKS
16030 CONFIG_COMMANDS = $CONFIG_COMMANDS
16031 $ $0 $@
16032
openvcdiffd1845782009-03-20 21:56:15 +000016033on `(hostname || uname -n) 2>/dev/null | sed 1q`
16034"
16035
openvcdiff311c7142008-08-26 19:29:25 +000016036_ACEOF
16037
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016038case $ac_config_files in *"
16039"*) set x $ac_config_files; shift; ac_config_files=$*;;
16040esac
16041
16042case $ac_config_headers in *"
16043"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16044esac
16045
16046
16047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
openvcdiff311c7142008-08-26 19:29:25 +000016048# Files that config.status was made for.
openvcdiffd1845782009-03-20 21:56:15 +000016049config_files="$ac_config_files"
16050config_headers="$ac_config_headers"
16051config_commands="$ac_config_commands"
openvcdiff311c7142008-08-26 19:29:25 +000016052
openvcdiffd1845782009-03-20 21:56:15 +000016053_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +000016054
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
openvcdiff311c7142008-08-26 19:29:25 +000016056ac_cs_usage="\
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016057\`$as_me' instantiates files and other configuration actions
16058from templates according to the current configuration. Unless the files
16059and actions are specified as TAGs, all are instantiated by default.
openvcdiff311c7142008-08-26 19:29:25 +000016060
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016061Usage: $0 [OPTION]... [TAG]...
openvcdiff311c7142008-08-26 19:29:25 +000016062
16063 -h, --help print this help, then exit
openvcdiffd1845782009-03-20 21:56:15 +000016064 -V, --version print version number and configuration settings, then exit
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016065 --config print configuration, then exit
16066 -q, --quiet, --silent
16067 do not print progress messages
openvcdiff311c7142008-08-26 19:29:25 +000016068 -d, --debug don't remove temporary files
16069 --recheck update $as_me by reconfiguring in the same conditions
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016070 --file=FILE[:TEMPLATE]
16071 instantiate the configuration file FILE
16072 --header=FILE[:TEMPLATE]
16073 instantiate the configuration header FILE
openvcdiff311c7142008-08-26 19:29:25 +000016074
16075Configuration files:
16076$config_files
16077
16078Configuration headers:
16079$config_headers
16080
16081Configuration commands:
16082$config_commands
16083
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016084Report bugs to <opensource@google.com>."
openvcdiff311c7142008-08-26 19:29:25 +000016085
openvcdiffd1845782009-03-20 21:56:15 +000016086_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16088ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
openvcdiff311c7142008-08-26 19:29:25 +000016089ac_cs_version="\\
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016090open-vcdiff config.status 0.8
16091configured by $0, generated by GNU Autoconf 2.65,
16092 with options \\"\$ac_cs_config\\"
openvcdiff311c7142008-08-26 19:29:25 +000016093
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016094Copyright (C) 2009 Free Software Foundation, Inc.
openvcdiff311c7142008-08-26 19:29:25 +000016095This config.status script is free software; the Free Software Foundation
16096gives unlimited permission to copy, distribute and modify it."
openvcdiffd1845782009-03-20 21:56:15 +000016097
16098ac_pwd='$ac_pwd'
16099srcdir='$srcdir'
16100INSTALL='$INSTALL'
16101MKDIR_P='$MKDIR_P'
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016102AWK='$AWK'
16103test -n "\$AWK" || AWK=awk
openvcdiff311c7142008-08-26 19:29:25 +000016104_ACEOF
16105
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16107# The default lists apply if the user does not specify any file.
openvcdiff311c7142008-08-26 19:29:25 +000016108ac_need_defaults=:
16109while test $# != 0
16110do
16111 case $1 in
16112 --*=*)
openvcdiffd1845782009-03-20 21:56:15 +000016113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
openvcdiff311c7142008-08-26 19:29:25 +000016115 ac_shift=:
16116 ;;
openvcdiffd1845782009-03-20 21:56:15 +000016117 *)
openvcdiff311c7142008-08-26 19:29:25 +000016118 ac_option=$1
16119 ac_optarg=$2
16120 ac_shift=shift
16121 ;;
openvcdiff311c7142008-08-26 19:29:25 +000016122 esac
16123
16124 case $ac_option in
16125 # Handling of the options.
openvcdiff311c7142008-08-26 19:29:25 +000016126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16127 ac_cs_recheck=: ;;
openvcdiffd1845782009-03-20 21:56:15 +000016128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016129 $as_echo "$ac_cs_version"; exit ;;
16130 --config | --confi | --conf | --con | --co | --c )
16131 $as_echo "$ac_cs_config"; exit ;;
openvcdiffd1845782009-03-20 21:56:15 +000016132 --debug | --debu | --deb | --de | --d | -d )
openvcdiff311c7142008-08-26 19:29:25 +000016133 debug=: ;;
16134 --file | --fil | --fi | --f )
16135 $ac_shift
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016136 case $ac_optarg in
16137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16138 esac
16139 as_fn_append CONFIG_FILES " '$ac_optarg'"
openvcdiff311c7142008-08-26 19:29:25 +000016140 ac_need_defaults=false;;
16141 --header | --heade | --head | --hea )
16142 $ac_shift
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016143 case $ac_optarg in
16144 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16145 esac
16146 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
openvcdiff311c7142008-08-26 19:29:25 +000016147 ac_need_defaults=false;;
openvcdiffd1845782009-03-20 21:56:15 +000016148 --he | --h)
16149 # Conflict between --help and --header
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016150 as_fn_error "ambiguous option: \`$1'
16151Try \`$0 --help' for more information.";;
openvcdiffd1845782009-03-20 21:56:15 +000016152 --help | --hel | -h )
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016153 $as_echo "$ac_cs_usage"; exit ;;
openvcdiff311c7142008-08-26 19:29:25 +000016154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16155 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16156 ac_cs_silent=: ;;
16157
16158 # This is an error.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016159 -*) as_fn_error "unrecognized option: \`$1'
16160Try \`$0 --help' for more information." ;;
openvcdiff311c7142008-08-26 19:29:25 +000016161
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016162 *) as_fn_append ac_config_targets " $1"
openvcdiffd1845782009-03-20 21:56:15 +000016163 ac_need_defaults=false ;;
openvcdiff311c7142008-08-26 19:29:25 +000016164
16165 esac
16166 shift
16167done
16168
16169ac_configure_extra_args=
16170
16171if $ac_cs_silent; then
16172 exec 6>/dev/null
16173 ac_configure_extra_args="$ac_configure_extra_args --silent"
16174fi
16175
16176_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
openvcdiff311c7142008-08-26 19:29:25 +000016178if \$ac_cs_recheck; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016179 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16180 shift
16181 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16182 CONFIG_SHELL='$SHELL'
openvcdiffd1845782009-03-20 21:56:15 +000016183 export CONFIG_SHELL
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016184 exec "\$@"
openvcdiff311c7142008-08-26 19:29:25 +000016185fi
16186
16187_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
openvcdiffd1845782009-03-20 21:56:15 +000016189exec 5>>config.log
16190{
16191 echo
16192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16193## Running $as_me. ##
16194_ASBOX
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016195 $as_echo "$ac_log"
openvcdiffd1845782009-03-20 21:56:15 +000016196} >&5
openvcdiff311c7142008-08-26 19:29:25 +000016197
openvcdiffd1845782009-03-20 21:56:15 +000016198_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
openvcdiff311c7142008-08-26 19:29:25 +000016200#
openvcdiffd1845782009-03-20 21:56:15 +000016201# INIT-COMMANDS
openvcdiff311c7142008-08-26 19:29:25 +000016202#
openvcdiff311c7142008-08-26 19:29:25 +000016203AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16204
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016205
16206# The HP-UX ksh and POSIX shell print the target directory to stdout
16207# if CDPATH is set.
16208(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16209
16210sed_quote_subst='$sed_quote_subst'
16211double_quote_subst='$double_quote_subst'
16212delay_variable_subst='$delay_variable_subst'
16213enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16214macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16215macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16216enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16217enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16218pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16219host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16220host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16221host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16222build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16223build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16224build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16225SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16226Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16227GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16228EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16229FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16230LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16231NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16232LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16233max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16234ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16235exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16236lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16237lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16238lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16239reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16240reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16241OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16242deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16243file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16244AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16245AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16246STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16247RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16248old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16249old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16250old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16251CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16252CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16253compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16254GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16255lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16256lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16257lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16258lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16259objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16260SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16261ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16262MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16263lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16264lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16265lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16266lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16267lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16268need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16269DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16270NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16271LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16272OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16273OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16274libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16275shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16276extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16277archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16278enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16279export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16280whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16281compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16282old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16283old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16284archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16285archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16286module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16287module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16288with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16289allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16290no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16291hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16292hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16293hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16294hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16295hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16296hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16297hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16298hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16299inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16300link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16301fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16302always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16303export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16304exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16305include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16306prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16307file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16308variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16309need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16310need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16311version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16312runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16313shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16314shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16315libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16316library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16317soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16318postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16319postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16320finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16321finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16322hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16323sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16324sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16325hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16326enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16327enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16328enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16329old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16330striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16331compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16332predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16333postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16334predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16335postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16336compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16337LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16338old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16339compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16340GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16341lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16342lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16343lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16344lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16345lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16346archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16347enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16348export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16349whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16350compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16351old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16352old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16353archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16354archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16355module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16356module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16357with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16358allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16359no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16360hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16361hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16362hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16363hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16364hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16365hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16366hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16367hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16368inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16369link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16370fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16371always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16372export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16373exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16374include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16375prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16376file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16377hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16378compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16379predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16380postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16381predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16382postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16383compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16384
16385LTCC='$LTCC'
16386LTCFLAGS='$LTCFLAGS'
16387compiler='$compiler_DEFAULT'
16388
16389# Quote evaled strings.
16390for var in SED \
16391GREP \
16392EGREP \
16393FGREP \
16394LD \
16395NM \
16396LN_S \
16397lt_SP2NL \
16398lt_NL2SP \
16399reload_flag \
16400OBJDUMP \
16401deplibs_check_method \
16402file_magic_cmd \
16403AR \
16404AR_FLAGS \
16405STRIP \
16406RANLIB \
16407CC \
16408CFLAGS \
16409compiler \
16410lt_cv_sys_global_symbol_pipe \
16411lt_cv_sys_global_symbol_to_cdecl \
16412lt_cv_sys_global_symbol_to_c_name_address \
16413lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16414SHELL \
16415ECHO \
16416lt_prog_compiler_no_builtin_flag \
16417lt_prog_compiler_wl \
16418lt_prog_compiler_pic \
16419lt_prog_compiler_static \
16420lt_cv_prog_compiler_c_o \
16421need_locks \
16422DSYMUTIL \
16423NMEDIT \
16424LIPO \
16425OTOOL \
16426OTOOL64 \
16427shrext_cmds \
16428export_dynamic_flag_spec \
16429whole_archive_flag_spec \
16430compiler_needs_object \
16431with_gnu_ld \
16432allow_undefined_flag \
16433no_undefined_flag \
16434hardcode_libdir_flag_spec \
16435hardcode_libdir_flag_spec_ld \
16436hardcode_libdir_separator \
16437fix_srcfile_path \
16438exclude_expsyms \
16439include_expsyms \
16440file_list_spec \
16441variables_saved_for_relink \
16442libname_spec \
16443library_names_spec \
16444soname_spec \
16445finish_eval \
16446old_striplib \
16447striplib \
16448compiler_lib_search_dirs \
16449predep_objects \
16450postdep_objects \
16451predeps \
16452postdeps \
16453compiler_lib_search_path \
16454LD_CXX \
16455compiler_CXX \
16456lt_prog_compiler_no_builtin_flag_CXX \
16457lt_prog_compiler_wl_CXX \
16458lt_prog_compiler_pic_CXX \
16459lt_prog_compiler_static_CXX \
16460lt_cv_prog_compiler_c_o_CXX \
16461export_dynamic_flag_spec_CXX \
16462whole_archive_flag_spec_CXX \
16463compiler_needs_object_CXX \
16464with_gnu_ld_CXX \
16465allow_undefined_flag_CXX \
16466no_undefined_flag_CXX \
16467hardcode_libdir_flag_spec_CXX \
16468hardcode_libdir_flag_spec_ld_CXX \
16469hardcode_libdir_separator_CXX \
16470fix_srcfile_path_CXX \
16471exclude_expsyms_CXX \
16472include_expsyms_CXX \
16473file_list_spec_CXX \
16474compiler_lib_search_dirs_CXX \
16475predep_objects_CXX \
16476postdep_objects_CXX \
16477predeps_CXX \
16478postdeps_CXX \
16479compiler_lib_search_path_CXX; do
16480 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16481 *[\\\\\\\`\\"\\\$]*)
16482 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16483 ;;
16484 *)
16485 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16486 ;;
16487 esac
16488done
16489
16490# Double-quote double-evaled strings.
16491for var in reload_cmds \
16492old_postinstall_cmds \
16493old_postuninstall_cmds \
16494old_archive_cmds \
16495extract_expsyms_cmds \
16496old_archive_from_new_cmds \
16497old_archive_from_expsyms_cmds \
16498archive_cmds \
16499archive_expsym_cmds \
16500module_cmds \
16501module_expsym_cmds \
16502export_symbols_cmds \
16503prelink_cmds \
16504postinstall_cmds \
16505postuninstall_cmds \
16506finish_cmds \
16507sys_lib_search_path_spec \
16508sys_lib_dlsearch_path_spec \
16509old_archive_cmds_CXX \
16510old_archive_from_new_cmds_CXX \
16511old_archive_from_expsyms_cmds_CXX \
16512archive_cmds_CXX \
16513archive_expsym_cmds_CXX \
16514module_cmds_CXX \
16515module_expsym_cmds_CXX \
16516export_symbols_cmds_CXX \
16517prelink_cmds_CXX; do
16518 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16519 *[\\\\\\\`\\"\\\$]*)
16520 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16521 ;;
16522 *)
16523 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16524 ;;
16525 esac
16526done
16527
16528# Fix-up fallback echo if it was mangled by the above quoting rules.
16529case \$lt_ECHO in
16530*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16531 ;;
16532esac
16533
16534ac_aux_dir='$ac_aux_dir'
16535xsi_shell='$xsi_shell'
16536lt_shell_append='$lt_shell_append'
16537
16538# See if we are running on zsh, and set the options which allow our
16539# commands through without removal of \ escapes INIT.
16540if test -n "\${ZSH_VERSION+set}" ; then
16541 setopt NO_GLOB_SUBST
16542fi
16543
16544
16545 PACKAGE='$PACKAGE'
16546 VERSION='$VERSION'
16547 TIMESTAMP='$TIMESTAMP'
16548 RM='$RM'
16549 ofile='$ofile'
16550
16551
16552
16553
16554
16555
openvcdiff311c7142008-08-26 19:29:25 +000016556_ACEOF
16557
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
openvcdiffd1845782009-03-20 21:56:15 +000016559
16560# Handling of arguments.
openvcdiff311c7142008-08-26 19:29:25 +000016561for ac_config_target in $ac_config_targets
16562do
openvcdiffd1845782009-03-20 21:56:15 +000016563 case $ac_config_target in
16564 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16565 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016566 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
openvcdiffd1845782009-03-20 21:56:15 +000016567 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016568 "gflags/src/gflags/gflags.h") CONFIG_FILES="$CONFIG_FILES gflags/src/gflags/gflags.h" ;;
16569 "gflags/src/gflags/gflags_completions.h") CONFIG_FILES="$CONFIG_FILES gflags/src/gflags/gflags_completions.h" ;;
openvcdiffd1845782009-03-20 21:56:15 +000016570
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016571 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
openvcdiff311c7142008-08-26 19:29:25 +000016572 esac
16573done
16574
openvcdiffd1845782009-03-20 21:56:15 +000016575
openvcdiff311c7142008-08-26 19:29:25 +000016576# If the user did not use the arguments to specify the items to instantiate,
16577# then the envvar interface is used. Set only those that are not.
16578# We use the long form for the default assignment because of an extremely
16579# bizarre bug on SunOS 4.1.3.
16580if $ac_need_defaults; then
16581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16583 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16584fi
16585
16586# Have a temporary directory for convenience. Make it in the build tree
openvcdiffd1845782009-03-20 21:56:15 +000016587# simply because there is no reason against having it here, and in addition,
openvcdiff311c7142008-08-26 19:29:25 +000016588# creating and moving files from /tmp can sometimes cause problems.
openvcdiffd1845782009-03-20 21:56:15 +000016589# Hook for its removal unless debugging.
16590# Note that there is a small window in which the directory will not be cleaned:
16591# after its creation but before its name has been assigned to `$tmp'.
openvcdiff311c7142008-08-26 19:29:25 +000016592$debug ||
16593{
openvcdiffd1845782009-03-20 21:56:15 +000016594 tmp=
16595 trap 'exit_status=$?
16596 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16597' 0
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016598 trap 'as_fn_exit 1' 1 2 13 15
openvcdiff311c7142008-08-26 19:29:25 +000016599}
openvcdiff311c7142008-08-26 19:29:25 +000016600# Create a (secure) tmp directory for tmp files.
16601
16602{
openvcdiffd1845782009-03-20 21:56:15 +000016603 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
openvcdiff311c7142008-08-26 19:29:25 +000016604 test -n "$tmp" && test -d "$tmp"
16605} ||
16606{
openvcdiffd1845782009-03-20 21:56:15 +000016607 tmp=./conf$$-$RANDOM
16608 (umask 077 && mkdir "$tmp")
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016609} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +000016610
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016611# Set up the scripts for CONFIG_FILES section.
16612# No need to generate them if there are no CONFIG_FILES.
16613# This happens for instance with `./config.status config.h'.
openvcdiffd1845782009-03-20 21:56:15 +000016614if test -n "$CONFIG_FILES"; then
openvcdiff311c7142008-08-26 19:29:25 +000016615
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016616
16617ac_cr=`echo X | tr X '\015'`
16618# On cygwin, bash can eat \r inside `` if the user requested igncr.
16619# But we know of no other shell where ac_cr would be empty at this
16620# point, so we can use a bashism as a fallback.
16621if test "x$ac_cr" = x; then
16622 eval ac_cr=\$\'\\r\'
16623fi
16624ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16625if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16626 ac_cs_awk_cr='\r'
16627else
16628 ac_cs_awk_cr=$ac_cr
16629fi
16630
16631echo 'BEGIN {' >"$tmp/subs1.awk" &&
openvcdiff311c7142008-08-26 19:29:25 +000016632_ACEOF
16633
openvcdiffd1845782009-03-20 21:56:15 +000016634
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016635{
16636 echo "cat >conf$$subs.awk <<_ACEOF" &&
16637 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16638 echo "_ACEOF"
16639} >conf$$subs.sh ||
16640 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16641ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
openvcdiffd1845782009-03-20 21:56:15 +000016642ac_delim='%!_!# '
16643for ac_last_try in false false false false false :; do
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016644 . ./conf$$subs.sh ||
16645 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
openvcdiffd1845782009-03-20 21:56:15 +000016646
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016647 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16648 if test $ac_delim_n = $ac_delim_num; then
openvcdiffd1845782009-03-20 21:56:15 +000016649 break
16650 elif $ac_last_try; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016651 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
openvcdiffd1845782009-03-20 21:56:15 +000016652 else
16653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
openvcdiff311c7142008-08-26 19:29:25 +000016654 fi
openvcdiffd1845782009-03-20 21:56:15 +000016655done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016656rm -f conf$$subs.sh
openvcdiffd1845782009-03-20 21:56:15 +000016657
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16659cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
openvcdiffd1845782009-03-20 21:56:15 +000016660_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016661sed -n '
16662h
16663s/^/S["/; s/!.*/"]=/
16664p
16665g
16666s/^[^!]*!//
16667:repl
16668t repl
16669s/'"$ac_delim"'$//
16670t delim
16671:nl
16672h
16673s/\(.\{148\}\)..*/\1/
16674t more1
16675s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16676p
16677n
16678b repl
16679:more1
16680s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16681p
16682g
16683s/.\{148\}//
16684t nl
16685:delim
16686h
16687s/\(.\{148\}\)..*/\1/
16688t more2
16689s/["\\]/\\&/g; s/^/"/; s/$/"/
16690p
16691b
16692:more2
16693s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16694p
16695g
16696s/.\{148\}//
16697t delim
16698' <conf$$subs.awk | sed '
16699/^[^""]/{
16700 N
16701 s/\n//
16702}
16703' >>$CONFIG_STATUS || ac_write_fail=1
16704rm -f conf$$subs.awk
16705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16706_ACAWK
16707cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16708 for (key in S) S_is_set[key] = 1
16709 FS = ""
16710
16711}
16712{
16713 line = $ 0
16714 nfields = split(line, field, "@")
16715 substed = 0
16716 len = length(field[1])
16717 for (i = 2; i < nfields; i++) {
16718 key = field[i]
16719 keylen = length(key)
16720 if (S_is_set[key]) {
16721 value = S[key]
16722 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16723 len += length(value) + length(field[++i])
16724 substed = 1
16725 } else
16726 len += 1 + keylen
16727 }
16728
16729 print line
16730}
16731
16732_ACAWK
openvcdiffd1845782009-03-20 21:56:15 +000016733_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16735if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16736 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16737else
16738 cat
16739fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16740 || as_fn_error "could not setup config files machinery" "$LINENO" 5
openvcdiffd1845782009-03-20 21:56:15 +000016741_ACEOF
16742
openvcdiffd1845782009-03-20 21:56:15 +000016743# VPATH may cause trouble with some makes, so we remove $(srcdir),
16744# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16745# trailing colons and then remove the whole line if VPATH becomes empty
16746# (actually we leave an empty line to preserve line numbers).
16747if test "x$srcdir" = x.; then
16748 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16749s/:*\$(srcdir):*/:/
16750s/:*\${srcdir}:*/:/
16751s/:*@srcdir@:*/:/
16752s/^\([^=]*=[ ]*\):*/\1/
16753s/:*$//
16754s/^[^=]*=[ ]*$//
16755}'
16756fi
16757
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
openvcdiff311c7142008-08-26 19:29:25 +000016759fi # test -n "$CONFIG_FILES"
16760
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016761# Set up the scripts for CONFIG_HEADERS section.
16762# No need to generate them if there are no CONFIG_HEADERS.
16763# This happens for instance with `./config.status Makefile'.
16764if test -n "$CONFIG_HEADERS"; then
16765cat >"$tmp/defines.awk" <<\_ACAWK ||
16766BEGIN {
16767_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000016768
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016769# Transform confdefs.h into an awk script `defines.awk', embedded as
16770# here-document in config.status, that substitutes the proper values into
16771# config.h.in to produce config.h.
16772
16773# Create a delimiter string that does not exist in confdefs.h, to ease
16774# handling of long lines.
16775ac_delim='%!_!# '
16776for ac_last_try in false false :; do
16777 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16778 if test -z "$ac_t"; then
16779 break
16780 elif $ac_last_try; then
16781 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16782 else
16783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16784 fi
16785done
16786
16787# For the awk script, D is an array of macro values keyed by name,
16788# likewise P contains macro parameters if any. Preserve backslash
16789# newline sequences.
16790
16791ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16792sed -n '
16793s/.\{148\}/&'"$ac_delim"'/g
16794t rset
16795:rset
16796s/^[ ]*#[ ]*define[ ][ ]*/ /
16797t def
16798d
16799:def
16800s/\\$//
16801t bsnl
16802s/["\\]/\\&/g
16803s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16804D["\1"]=" \3"/p
16805s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16806d
16807:bsnl
16808s/["\\]/\\&/g
16809s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16810D["\1"]=" \3\\\\\\n"\\/p
16811t cont
16812s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16813t cont
16814d
16815:cont
16816n
16817s/.\{148\}/&'"$ac_delim"'/g
16818t clear
16819:clear
16820s/\\$//
16821t bsnlc
16822s/["\\]/\\&/g; s/^/"/; s/$/"/p
16823d
16824:bsnlc
16825s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16826b cont
16827' <confdefs.h | sed '
16828s/'"$ac_delim"'/"\\\
16829"/g' >>$CONFIG_STATUS || ac_write_fail=1
16830
16831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16832 for (key in D) D_is_set[key] = 1
16833 FS = ""
16834}
16835/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16836 line = \$ 0
16837 split(line, arg, " ")
16838 if (arg[1] == "#") {
16839 defundef = arg[2]
16840 mac1 = arg[3]
16841 } else {
16842 defundef = substr(arg[1], 2)
16843 mac1 = arg[2]
16844 }
16845 split(mac1, mac2, "(") #)
16846 macro = mac2[1]
16847 prefix = substr(line, 1, index(line, defundef) - 1)
16848 if (D_is_set[macro]) {
16849 # Preserve the white space surrounding the "#".
16850 print prefix "define", macro P[macro] D[macro]
16851 next
16852 } else {
16853 # Replace #undef with comments. This is necessary, for example,
16854 # in the case of _POSIX_SOURCE, which is predefined and required
16855 # on some systems where configure will not decide to define it.
16856 if (defundef == "undef") {
16857 print "/*", prefix defundef, macro, "*/"
16858 next
16859 }
16860 }
16861}
16862{ print }
16863_ACAWK
16864_ACEOF
16865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16866 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16867fi # test -n "$CONFIG_HEADERS"
16868
16869
16870eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16871shift
16872for ac_tag
openvcdiffd1845782009-03-20 21:56:15 +000016873do
16874 case $ac_tag in
16875 :[FHLC]) ac_mode=$ac_tag; continue;;
16876 esac
16877 case $ac_mode$ac_tag in
16878 :[FHL]*:*);;
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016879 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
openvcdiffd1845782009-03-20 21:56:15 +000016880 :[FH]-) ac_tag=-:-;;
16881 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16882 esac
16883 ac_save_IFS=$IFS
16884 IFS=:
16885 set x $ac_tag
16886 IFS=$ac_save_IFS
16887 shift
16888 ac_file=$1
16889 shift
16890
16891 case $ac_mode in
16892 :L) ac_source=$1;;
16893 :[FH])
16894 ac_file_inputs=
16895 for ac_f
16896 do
16897 case $ac_f in
16898 -) ac_f="$tmp/stdin";;
16899 *) # Look for the file first in the build tree, then in the source tree
16900 # (if the path is not absolute). The absolute path cannot be DOS-style,
16901 # because $ac_f cannot contain `:'.
16902 test -f "$ac_f" ||
16903 case $ac_f in
16904 [\\/$]*) false;;
16905 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16906 esac ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016907 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
openvcdiffd1845782009-03-20 21:56:15 +000016908 esac
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016909 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16910 as_fn_append ac_file_inputs " '$ac_f'"
openvcdiffd1845782009-03-20 21:56:15 +000016911 done
16912
16913 # Let's still pretend it is `configure' which instantiates (i.e., don't
16914 # use $as_me), people would be surprised to read:
16915 # /* config.h. Generated by config.status. */
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016916 configure_input='Generated from '`
16917 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16918 `' by configure.'
openvcdiffd1845782009-03-20 21:56:15 +000016919 if test x"$ac_file" != x-; then
16920 configure_input="$ac_file. $configure_input"
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16922$as_echo "$as_me: creating $ac_file" >&6;}
openvcdiffd1845782009-03-20 21:56:15 +000016923 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016924 # Neutralize special characters interpreted by sed in replacement strings.
16925 case $configure_input in #(
16926 *\&* | *\|* | *\\* )
16927 ac_sed_conf_input=`$as_echo "$configure_input" |
16928 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16929 *) ac_sed_conf_input=$configure_input;;
16930 esac
openvcdiffd1845782009-03-20 21:56:15 +000016931
16932 case $ac_tag in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016933 *:-:* | *:-) cat >"$tmp/stdin" \
16934 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
openvcdiffd1845782009-03-20 21:56:15 +000016935 esac
16936 ;;
openvcdiff311c7142008-08-26 19:29:25 +000016937 esac
16938
openvcdiffd1845782009-03-20 21:56:15 +000016939 ac_dir=`$as_dirname -- "$ac_file" ||
openvcdiff311c7142008-08-26 19:29:25 +000016940$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16941 X"$ac_file" : 'X\(//\)[^/]' \| \
16942 X"$ac_file" : 'X\(//\)$' \| \
openvcdiffd1845782009-03-20 21:56:15 +000016943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016944$as_echo X"$ac_file" |
openvcdiffd1845782009-03-20 21:56:15 +000016945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16946 s//\1/
16947 q
16948 }
16949 /^X\(\/\/\)[^/].*/{
16950 s//\1/
16951 q
16952 }
16953 /^X\(\/\/\)$/{
16954 s//\1/
16955 q
16956 }
16957 /^X\(\/\).*/{
16958 s//\1/
16959 q
16960 }
16961 s/.*/./; q'`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016962 as_dir="$ac_dir"; as_fn_mkdir_p
openvcdiff311c7142008-08-26 19:29:25 +000016963 ac_builddir=.
16964
openvcdiffd1845782009-03-20 21:56:15 +000016965case "$ac_dir" in
16966.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16967*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016968 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
openvcdiffd1845782009-03-20 21:56:15 +000016969 # A ".." for each directory in $ac_dir_suffix.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000016970 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
openvcdiffd1845782009-03-20 21:56:15 +000016971 case $ac_top_builddir_sub in
16972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16974 esac ;;
16975esac
16976ac_abs_top_builddir=$ac_pwd
16977ac_abs_builddir=$ac_pwd$ac_dir_suffix
16978# for backward compatibility:
16979ac_top_builddir=$ac_top_build_prefix
openvcdiff311c7142008-08-26 19:29:25 +000016980
16981case $srcdir in
openvcdiffd1845782009-03-20 21:56:15 +000016982 .) # We are building in place.
openvcdiff311c7142008-08-26 19:29:25 +000016983 ac_srcdir=.
openvcdiffd1845782009-03-20 21:56:15 +000016984 ac_top_srcdir=$ac_top_builddir_sub
16985 ac_abs_top_srcdir=$ac_pwd ;;
16986 [\\/]* | ?:[\\/]* ) # Absolute name.
openvcdiff311c7142008-08-26 19:29:25 +000016987 ac_srcdir=$srcdir$ac_dir_suffix;
openvcdiffd1845782009-03-20 21:56:15 +000016988 ac_top_srcdir=$srcdir
16989 ac_abs_top_srcdir=$srcdir ;;
16990 *) # Relative name.
16991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16992 ac_top_srcdir=$ac_top_build_prefix$srcdir
16993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
openvcdiff311c7142008-08-26 19:29:25 +000016994esac
openvcdiffd1845782009-03-20 21:56:15 +000016995ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
openvcdiff311c7142008-08-26 19:29:25 +000016996
openvcdiff311c7142008-08-26 19:29:25 +000016997
openvcdiffd1845782009-03-20 21:56:15 +000016998 case $ac_mode in
16999 :F)
17000 #
17001 # CONFIG_FILE
17002 #
openvcdiff311c7142008-08-26 19:29:25 +000017003
17004 case $INSTALL in
17005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
openvcdiffd1845782009-03-20 21:56:15 +000017006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
openvcdiff311c7142008-08-26 19:29:25 +000017007 esac
openvcdiffd1845782009-03-20 21:56:15 +000017008 ac_MKDIR_P=$MKDIR_P
17009 case $MKDIR_P in
17010 [\\/$]* | ?:[\\/]* ) ;;
17011 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17012 esac
openvcdiff311c7142008-08-26 19:29:25 +000017013_ACEOF
openvcdiffd1845782009-03-20 21:56:15 +000017014
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
openvcdiffd1845782009-03-20 21:56:15 +000017016# If the template does not know about datarootdir, expand it.
17017# FIXME: This hack should be removed a few years after 2.60.
17018ac_datarootdir_hack=; ac_datarootdir_seen=
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017019ac_sed_dataroot='
17020/datarootdir/ {
openvcdiffd1845782009-03-20 21:56:15 +000017021 p
17022 q
17023}
17024/@datadir@/p
17025/@docdir@/p
17026/@infodir@/p
17027/@localedir@/p
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017028/@mandir@/p'
17029case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
openvcdiffd1845782009-03-20 21:56:15 +000017030*datarootdir*) ac_datarootdir_seen=yes;;
17031*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17033$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
openvcdiffd1845782009-03-20 21:56:15 +000017034_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
openvcdiffd1845782009-03-20 21:56:15 +000017036 ac_datarootdir_hack='
17037 s&@datadir@&$datadir&g
17038 s&@docdir@&$docdir&g
17039 s&@infodir@&$infodir&g
17040 s&@localedir@&$localedir&g
17041 s&@mandir@&$mandir&g
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017042 s&\\\${datarootdir}&$datarootdir&g' ;;
openvcdiffd1845782009-03-20 21:56:15 +000017043esac
17044_ACEOF
17045
17046# Neutralize VPATH when `$srcdir' = `.'.
17047# Shell code in configure.ac might set extrasub.
17048# FIXME: do we really want to maintain this feature?
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17050ac_sed_extra="$ac_vpsub
openvcdiff311c7142008-08-26 19:29:25 +000017051$extrasub
17052_ACEOF
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
openvcdiff311c7142008-08-26 19:29:25 +000017054:t
17055/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017056s|@configure_input@|$ac_sed_conf_input|;t t
openvcdiffd1845782009-03-20 21:56:15 +000017057s&@top_builddir@&$ac_top_builddir_sub&;t t
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017058s&@top_build_prefix@&$ac_top_build_prefix&;t t
openvcdiffd1845782009-03-20 21:56:15 +000017059s&@srcdir@&$ac_srcdir&;t t
17060s&@abs_srcdir@&$ac_abs_srcdir&;t t
17061s&@top_srcdir@&$ac_top_srcdir&;t t
17062s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17063s&@builddir@&$ac_builddir&;t t
17064s&@abs_builddir@&$ac_abs_builddir&;t t
17065s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17066s&@INSTALL@&$ac_INSTALL&;t t
17067s&@MKDIR_P@&$ac_MKDIR_P&;t t
17068$ac_datarootdir_hack
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017069"
17070eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17071 || as_fn_error "could not create $ac_file" "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +000017072
openvcdiffd1845782009-03-20 21:56:15 +000017073test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17074 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
openvcdiffd1845782009-03-20 21:56:15 +000017077which seems to be undefined. Please make sure it is defined." >&5
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017078$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
openvcdiffd1845782009-03-20 21:56:15 +000017079which seems to be undefined. Please make sure it is defined." >&2;}
openvcdiff311c7142008-08-26 19:29:25 +000017080
openvcdiffd1845782009-03-20 21:56:15 +000017081 rm -f "$tmp/stdin"
openvcdiff311c7142008-08-26 19:29:25 +000017082 case $ac_file in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017083 -) cat "$tmp/out" && rm -f "$tmp/out";;
17084 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17085 esac \
17086 || as_fn_error "could not create $ac_file" "$LINENO" 5
openvcdiffd1845782009-03-20 21:56:15 +000017087 ;;
17088 :H)
17089 #
17090 # CONFIG_HEADER
17091 #
openvcdiff311c7142008-08-26 19:29:25 +000017092 if test x"$ac_file" != x-; then
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017093 {
17094 $as_echo "/* $configure_input */" \
17095 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17096 } >"$tmp/config.h" \
17097 || as_fn_error "could not create $ac_file" "$LINENO" 5
17098 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17100$as_echo "$as_me: $ac_file is unchanged" >&6;}
openvcdiff311c7142008-08-26 19:29:25 +000017101 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017102 rm -f "$ac_file"
17103 mv "$tmp/config.h" "$ac_file" \
17104 || as_fn_error "could not create $ac_file" "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +000017105 fi
17106 else
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017107 $as_echo "/* $configure_input */" \
17108 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17109 || as_fn_error "could not create -" "$LINENO" 5
openvcdiff311c7142008-08-26 19:29:25 +000017110 fi
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017111# Compute "$ac_file"'s index in $config_headers.
17112_am_arg="$ac_file"
openvcdiff311c7142008-08-26 19:29:25 +000017113_am_stamp_count=1
17114for _am_header in $config_headers :; do
17115 case $_am_header in
openvcdiffd1845782009-03-20 21:56:15 +000017116 $_am_arg | $_am_arg:* )
openvcdiff311c7142008-08-26 19:29:25 +000017117 break ;;
17118 * )
17119 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17120 esac
17121done
openvcdiffd1845782009-03-20 21:56:15 +000017122echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17123$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17124 X"$_am_arg" : 'X\(//\)[^/]' \| \
17125 X"$_am_arg" : 'X\(//\)$' \| \
17126 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017127$as_echo X"$_am_arg" |
openvcdiffd1845782009-03-20 21:56:15 +000017128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17129 s//\1/
17130 q
17131 }
17132 /^X\(\/\/\)[^/].*/{
17133 s//\1/
17134 q
17135 }
17136 /^X\(\/\/\)$/{
17137 s//\1/
17138 q
17139 }
17140 /^X\(\/\).*/{
17141 s//\1/
17142 q
17143 }
17144 s/.*/./; q'`/stamp-h$_am_stamp_count
17145 ;;
openvcdiff311c7142008-08-26 19:29:25 +000017146
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017147 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17148$as_echo "$as_me: executing $ac_file commands" >&6;}
openvcdiffd1845782009-03-20 21:56:15 +000017149 ;;
17150 esac
openvcdiff311c7142008-08-26 19:29:25 +000017151
17152
openvcdiffd1845782009-03-20 21:56:15 +000017153 case $ac_file$ac_mode in
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017154 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17155 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17156 # are listed without --file. Let's play safe and only enable the eval
17157 # if we detect the quoting.
17158 case $CONFIG_FILES in
17159 *\'*) eval set x "$CONFIG_FILES" ;;
17160 *) set x $CONFIG_FILES ;;
17161 esac
17162 shift
17163 for mf
17164 do
17165 # Strip MF so we end up with the name of the file.
17166 mf=`echo "$mf" | sed -e 's/:.*$//'`
17167 # Check whether this is an Automake generated Makefile or not.
17168 # We used to match only the files named `Makefile.in', but
17169 # some people rename them; so instead we look at the file content.
17170 # Grep'ing the first line is not enough: some people post-process
17171 # each Makefile.in and add a new line on top of each file to say so.
17172 # Grep'ing the whole file is not good either: AIX grep has a line
17173 # limit of 2048, but all sed's we know have understand at least 4000.
17174 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17175 dirpart=`$as_dirname -- "$mf" ||
openvcdiff311c7142008-08-26 19:29:25 +000017176$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17177 X"$mf" : 'X\(//\)[^/]' \| \
17178 X"$mf" : 'X\(//\)$' \| \
openvcdiffd1845782009-03-20 21:56:15 +000017179 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017180$as_echo X"$mf" |
openvcdiffd1845782009-03-20 21:56:15 +000017181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17182 s//\1/
17183 q
17184 }
17185 /^X\(\/\/\)[^/].*/{
17186 s//\1/
17187 q
17188 }
17189 /^X\(\/\/\)$/{
17190 s//\1/
17191 q
17192 }
17193 /^X\(\/\).*/{
17194 s//\1/
17195 q
17196 }
17197 s/.*/./; q'`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017198 else
17199 continue
17200 fi
17201 # Extract the definition of DEPDIR, am__include, and am__quote
17202 # from the Makefile without running `make'.
17203 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17204 test -z "$DEPDIR" && continue
17205 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17206 test -z "am__include" && continue
17207 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17208 # When using ansi2knr, U may be empty or an underscore; expand it
17209 U=`sed -n 's/^U = //p' < "$mf"`
17210 # Find all dependency output files, they are included files with
17211 # $(DEPDIR) in their names. We invoke sed twice because it is the
17212 # simplest approach to changing $(DEPDIR) to its actual value in the
17213 # expansion.
17214 for file in `sed -n "
17215 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17216 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17217 # Make sure the directory exists.
17218 test -f "$dirpart/$file" && continue
17219 fdir=`$as_dirname -- "$file" ||
openvcdiff311c7142008-08-26 19:29:25 +000017220$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17221 X"$file" : 'X\(//\)[^/]' \| \
17222 X"$file" : 'X\(//\)$' \| \
openvcdiffd1845782009-03-20 21:56:15 +000017223 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017224$as_echo X"$file" |
openvcdiffd1845782009-03-20 21:56:15 +000017225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17226 s//\1/
17227 q
17228 }
17229 /^X\(\/\/\)[^/].*/{
17230 s//\1/
17231 q
17232 }
17233 /^X\(\/\/\)$/{
17234 s//\1/
17235 q
17236 }
17237 /^X\(\/\).*/{
17238 s//\1/
17239 q
17240 }
17241 s/.*/./; q'`
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017242 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17243 # echo "creating $dirpart/$file"
17244 echo '# dummy' > "$dirpart/$file"
openvcdiff311c7142008-08-26 19:29:25 +000017245 done
openvcdiff311c7142008-08-26 19:29:25 +000017246 done
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000017247}
17248 ;;
17249 "libtool":C)
17250
17251 # See if we are running on zsh, and set the options which allow our
17252 # commands through without removal of \ escapes.
17253 if test -n "${ZSH_VERSION+set}" ; then
17254 setopt NO_GLOB_SUBST
17255 fi
17256
17257 cfgfile="${ofile}T"
17258 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17259 $RM "$cfgfile"
17260
17261 cat <<_LT_EOF >> "$cfgfile"
17262#! $SHELL
17263
17264# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17265# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17266# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17267# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17268#
17269# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17270# 2006, 2007, 2008 Free Software Foundation, Inc.
17271# Written by Gordon Matzigkeit, 1996
17272#
17273# This file is part of GNU Libtool.
17274#
17275# GNU Libtool is free software; you can redistribute it and/or
17276# modify it under the terms of the GNU General Public License as
17277# published by the Free Software Foundation; either version 2 of
17278# the License, or (at your option) any later version.
17279#
17280# As a special exception to the GNU General Public License,
17281# if you distribute this file as part of a program or library that
17282# is built using GNU Libtool, you may include this file under the
17283# same distribution terms that you use for the rest of that program.
17284#
17285# GNU Libtool is distributed in the hope that it will be useful,
17286# but WITHOUT ANY WARRANTY; without even the implied warranty of
17287# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17288# GNU General Public License for more details.
17289#
17290# You should have received a copy of the GNU General Public License
17291# along with GNU Libtool; see the file COPYING. If not, a copy
17292# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17293# obtained by writing to the Free Software Foundation, Inc.,
17294# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17295
17296
17297# The names of the tagged configurations supported by this script.
17298available_tags="CXX "
17299
17300# ### BEGIN LIBTOOL CONFIG
17301
17302# Whether or not to optimize for fast installation.
17303fast_install=$enable_fast_install
17304
17305# Which release of libtool.m4 was used?
17306macro_version=$macro_version
17307macro_revision=$macro_revision
17308
17309# Whether or not to build shared libraries.
17310build_libtool_libs=$enable_shared
17311
17312# Whether or not to build static libraries.
17313build_old_libs=$enable_static
17314
17315# What type of objects to build.
17316pic_mode=$pic_mode
17317
17318# The host system.
17319host_alias=$host_alias
17320host=$host
17321host_os=$host_os
17322
17323# The build system.
17324build_alias=$build_alias
17325build=$build
17326build_os=$build_os
17327
17328# A sed program that does not truncate output.
17329SED=$lt_SED
17330
17331# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17332Xsed="\$SED -e 1s/^X//"
17333
17334# A grep program that handles long lines.
17335GREP=$lt_GREP
17336
17337# An ERE matcher.
17338EGREP=$lt_EGREP
17339
17340# A literal string matcher.
17341FGREP=$lt_FGREP
17342
17343# A BSD- or MS-compatible name lister.
17344NM=$lt_NM
17345
17346# Whether we need soft or hard links.
17347LN_S=$lt_LN_S
17348
17349# What is the maximum length of a command?
17350max_cmd_len=$max_cmd_len
17351
17352# Object file suffix (normally "o").
17353objext=$ac_objext
17354
17355# Executable file suffix (normally "").
17356exeext=$exeext
17357
17358# whether the shell understands "unset".
17359lt_unset=$lt_unset
17360
17361# turn spaces into newlines.
17362SP2NL=$lt_lt_SP2NL
17363
17364# turn newlines into spaces.
17365NL2SP=$lt_lt_NL2SP
17366
17367# How to create reloadable object files.
17368reload_flag=$lt_reload_flag
17369reload_cmds=$lt_reload_cmds
17370
17371# An object symbol dumper.
17372OBJDUMP=$lt_OBJDUMP
17373
17374# Method to check whether dependent libraries are shared objects.
17375deplibs_check_method=$lt_deplibs_check_method
17376
17377# Command to use when deplibs_check_method == "file_magic".
17378file_magic_cmd=$lt_file_magic_cmd
17379
17380# The archiver.
17381AR=$lt_AR
17382AR_FLAGS=$lt_AR_FLAGS
17383
17384# A symbol stripping program.
17385STRIP=$lt_STRIP
17386
17387# Commands used to install an old-style archive.
17388RANLIB=$lt_RANLIB
17389old_postinstall_cmds=$lt_old_postinstall_cmds
17390old_postuninstall_cmds=$lt_old_postuninstall_cmds
17391
17392# A C compiler.
17393LTCC=$lt_CC
17394
17395# LTCC compiler flags.
17396LTCFLAGS=$lt_CFLAGS
17397
17398# Take the output of nm and produce a listing of raw symbols and C names.
17399global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17400
17401# Transform the output of nm in a proper C declaration.
17402global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17403
17404# Transform the output of nm in a C name address pair.
17405global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17406
17407# Transform the output of nm in a C name address pair when lib prefix is needed.
17408global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17409
17410# The name of the directory that contains temporary libtool files.
17411objdir=$objdir
17412
17413# Shell to use when invoking shell scripts.
17414SHELL=$lt_SHELL
17415
17416# An echo program that does not interpret backslashes.
17417ECHO=$lt_ECHO
17418
17419# Used to examine libraries when file_magic_cmd begins with "file".
17420MAGIC_CMD=$MAGIC_CMD
17421
17422# Must we lock files when doing compilation?
17423need_locks=$lt_need_locks
17424
17425# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17426DSYMUTIL=$lt_DSYMUTIL
17427
17428# Tool to change global to local symbols on Mac OS X.
17429NMEDIT=$lt_NMEDIT
17430
17431# Tool to manipulate fat objects and archives on Mac OS X.
17432LIPO=$lt_LIPO
17433
17434# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17435OTOOL=$lt_OTOOL
17436
17437# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17438OTOOL64=$lt_OTOOL64
17439
17440# Old archive suffix (normally "a").
17441libext=$libext
17442
17443# Shared library suffix (normally ".so").
17444shrext_cmds=$lt_shrext_cmds
17445
17446# The commands to extract the exported symbol list from a shared archive.
17447extract_expsyms_cmds=$lt_extract_expsyms_cmds
17448
17449# Variables whose values should be saved in libtool wrapper scripts and
17450# restored at link time.
17451variables_saved_for_relink=$lt_variables_saved_for_relink
17452
17453# Do we need the "lib" prefix for modules?
17454need_lib_prefix=$need_lib_prefix
17455
17456# Do we need a version for libraries?
17457need_version=$need_version
17458
17459# Library versioning type.
17460version_type=$version_type
17461
17462# Shared library runtime path variable.
17463runpath_var=$runpath_var
17464
17465# Shared library path variable.
17466shlibpath_var=$shlibpath_var
17467
17468# Is shlibpath searched before the hard-coded library search path?
17469shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17470
17471# Format of library name prefix.
17472libname_spec=$lt_libname_spec
17473
17474# List of archive names. First name is the real one, the rest are links.
17475# The last name is the one that the linker finds with -lNAME
17476library_names_spec=$lt_library_names_spec
17477
17478# The coded name of the library, if different from the real name.
17479soname_spec=$lt_soname_spec
17480
17481# Command to use after installation of a shared archive.
17482postinstall_cmds=$lt_postinstall_cmds
17483
17484# Command to use after uninstallation of a shared archive.
17485postuninstall_cmds=$lt_postuninstall_cmds
17486
17487# Commands used to finish a libtool library installation in a directory.
17488finish_cmds=$lt_finish_cmds
17489
17490# As "finish_cmds", except a single script fragment to be evaled but
17491# not shown.
17492finish_eval=$lt_finish_eval
17493
17494# Whether we should hardcode library paths into libraries.
17495hardcode_into_libs=$hardcode_into_libs
17496
17497# Compile-time system search path for libraries.
17498sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17499
17500# Run-time system search path for libraries.
17501sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17502
17503# Whether dlopen is supported.
17504dlopen_support=$enable_dlopen
17505
17506# Whether dlopen of programs is supported.
17507dlopen_self=$enable_dlopen_self
17508
17509# Whether dlopen of statically linked programs is supported.
17510dlopen_self_static=$enable_dlopen_self_static
17511
17512# Commands to strip libraries.
17513old_striplib=$lt_old_striplib
17514striplib=$lt_striplib
17515
17516
17517# The linker used to build libraries.
17518LD=$lt_LD
17519
17520# Commands used to build an old-style archive.
17521old_archive_cmds=$lt_old_archive_cmds
17522
17523# A language specific compiler.
17524CC=$lt_compiler
17525
17526# Is the compiler the GNU compiler?
17527with_gcc=$GCC
17528
17529# Compiler flag to turn off builtin functions.
17530no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17531
17532# How to pass a linker flag through the compiler.
17533wl=$lt_lt_prog_compiler_wl
17534
17535# Additional compiler flags for building library objects.
17536pic_flag=$lt_lt_prog_compiler_pic
17537
17538# Compiler flag to prevent dynamic linking.
17539link_static_flag=$lt_lt_prog_compiler_static
17540
17541# Does compiler simultaneously support -c and -o options?
17542compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17543
17544# Whether or not to add -lc for building shared libraries.
17545build_libtool_need_lc=$archive_cmds_need_lc
17546
17547# Whether or not to disallow shared libs when runtime libs are static.
17548allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17549
17550# Compiler flag to allow reflexive dlopens.
17551export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17552
17553# Compiler flag to generate shared objects directly from archives.
17554whole_archive_flag_spec=$lt_whole_archive_flag_spec
17555
17556# Whether the compiler copes with passing no objects directly.
17557compiler_needs_object=$lt_compiler_needs_object
17558
17559# Create an old-style archive from a shared archive.
17560old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17561
17562# Create a temporary old-style archive to link instead of a shared archive.
17563old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17564
17565# Commands used to build a shared archive.
17566archive_cmds=$lt_archive_cmds
17567archive_expsym_cmds=$lt_archive_expsym_cmds
17568
17569# Commands used to build a loadable module if different from building
17570# a shared archive.
17571module_cmds=$lt_module_cmds
17572module_expsym_cmds=$lt_module_expsym_cmds
17573
17574# Whether we are building with GNU ld or not.
17575with_gnu_ld=$lt_with_gnu_ld
17576
17577# Flag that allows shared libraries with undefined symbols to be built.
17578allow_undefined_flag=$lt_allow_undefined_flag
17579
17580# Flag that enforces no undefined symbols.
17581no_undefined_flag=$lt_no_undefined_flag
17582
17583# Flag to hardcode \$libdir into a binary during linking.
17584# This must work even if \$libdir does not exist
17585hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17586
17587# If ld is used when linking, flag to hardcode \$libdir into a binary
17588# during linking. This must work even if \$libdir does not exist.
17589hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17590
17591# Whether we need a single "-rpath" flag with a separated argument.
17592hardcode_libdir_separator=$lt_hardcode_libdir_separator
17593
17594# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17595# DIR into the resulting binary.
17596hardcode_direct=$hardcode_direct
17597
17598# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17599# DIR into the resulting binary and the resulting library dependency is
17600# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17601# library is relocated.
17602hardcode_direct_absolute=$hardcode_direct_absolute
17603
17604# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17605# into the resulting binary.
17606hardcode_minus_L=$hardcode_minus_L
17607
17608# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17609# into the resulting binary.
17610hardcode_shlibpath_var=$hardcode_shlibpath_var
17611
17612# Set to "yes" if building a shared library automatically hardcodes DIR
17613# into the library and all subsequent libraries and executables linked
17614# against it.
17615hardcode_automatic=$hardcode_automatic
17616
17617# Set to yes if linker adds runtime paths of dependent libraries
17618# to runtime path list.
17619inherit_rpath=$inherit_rpath
17620
17621# Whether libtool must link a program against all its dependency libraries.
17622link_all_deplibs=$link_all_deplibs
17623
17624# Fix the shell variable \$srcfile for the compiler.
17625fix_srcfile_path=$lt_fix_srcfile_path
17626
17627# Set to "yes" if exported symbols are required.
17628always_export_symbols=$always_export_symbols
17629
17630# The commands to list exported symbols.
17631export_symbols_cmds=$lt_export_symbols_cmds
17632
17633# Symbols that should not be listed in the preloaded symbols.
17634exclude_expsyms=$lt_exclude_expsyms
17635
17636# Symbols that must always be exported.
17637include_expsyms=$lt_include_expsyms
17638
17639# Commands necessary for linking programs (against libraries) with templates.
17640prelink_cmds=$lt_prelink_cmds
17641
17642# Specify filename containing input files.
17643file_list_spec=$lt_file_list_spec
17644
17645# How to hardcode a shared library path into an executable.
17646hardcode_action=$hardcode_action
17647
17648# The directories searched by this compiler when creating a shared library.
17649compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17650
17651# Dependencies to place before and after the objects being linked to
17652# create a shared library.
17653predep_objects=$lt_predep_objects
17654postdep_objects=$lt_postdep_objects
17655predeps=$lt_predeps
17656postdeps=$lt_postdeps
17657
17658# The library search path used internally by the compiler when linking
17659# a shared library.
17660compiler_lib_search_path=$lt_compiler_lib_search_path
17661
17662# ### END LIBTOOL CONFIG
17663
17664_LT_EOF
17665
17666 case $host_os in
17667 aix3*)
17668 cat <<\_LT_EOF >> "$cfgfile"
17669# AIX sometimes has problems with the GCC collect2 program. For some
17670# reason, if we set the COLLECT_NAMES environment variable, the problems
17671# vanish in a puff of smoke.
17672if test "X${COLLECT_NAMES+set}" != Xset; then
17673 COLLECT_NAMES=
17674 export COLLECT_NAMES
17675fi
17676_LT_EOF
17677 ;;
17678 esac
17679
17680
17681ltmain="$ac_aux_dir/ltmain.sh"
17682
17683
17684 # We use sed instead of cat because bash on DJGPP gets confused if
17685 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17686 # text mode, it properly converts lines to CR/LF. This bash problem
17687 # is reportedly fixed, but why not run on old versions too?
17688 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17689 || (rm -f "$cfgfile"; exit 1)
17690
17691 case $xsi_shell in
17692 yes)
17693 cat << \_LT_EOF >> "$cfgfile"
17694
17695# func_dirname file append nondir_replacement
17696# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17697# otherwise set result to NONDIR_REPLACEMENT.
17698func_dirname ()
17699{
17700 case ${1} in
17701 */*) func_dirname_result="${1%/*}${2}" ;;
17702 * ) func_dirname_result="${3}" ;;
17703 esac
17704}
17705
17706# func_basename file
17707func_basename ()
17708{
17709 func_basename_result="${1##*/}"
17710}
17711
17712# func_dirname_and_basename file append nondir_replacement
17713# perform func_basename and func_dirname in a single function
17714# call:
17715# dirname: Compute the dirname of FILE. If nonempty,
17716# add APPEND to the result, otherwise set result
17717# to NONDIR_REPLACEMENT.
17718# value returned in "$func_dirname_result"
17719# basename: Compute filename of FILE.
17720# value retuned in "$func_basename_result"
17721# Implementation must be kept synchronized with func_dirname
17722# and func_basename. For efficiency, we do not delegate to
17723# those functions but instead duplicate the functionality here.
17724func_dirname_and_basename ()
17725{
17726 case ${1} in
17727 */*) func_dirname_result="${1%/*}${2}" ;;
17728 * ) func_dirname_result="${3}" ;;
17729 esac
17730 func_basename_result="${1##*/}"
17731}
17732
17733# func_stripname prefix suffix name
17734# strip PREFIX and SUFFIX off of NAME.
17735# PREFIX and SUFFIX must not contain globbing or regex special
17736# characters, hashes, percent signs, but SUFFIX may contain a leading
17737# dot (in which case that matches only a dot).
17738func_stripname ()
17739{
17740 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17741 # positional parameters, so assign one to ordinary parameter first.
17742 func_stripname_result=${3}
17743 func_stripname_result=${func_stripname_result#"${1}"}
17744 func_stripname_result=${func_stripname_result%"${2}"}
17745}
17746
17747# func_opt_split
17748func_opt_split ()
17749{
17750 func_opt_split_opt=${1%%=*}
17751 func_opt_split_arg=${1#*=}
17752}
17753
17754# func_lo2o object
17755func_lo2o ()
17756{
17757 case ${1} in
17758 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17759 *) func_lo2o_result=${1} ;;
17760 esac
17761}
17762
17763# func_xform libobj-or-source
17764func_xform ()
17765{
17766 func_xform_result=${1%.*}.lo
17767}
17768
17769# func_arith arithmetic-term...
17770func_arith ()
17771{
17772 func_arith_result=$(( $* ))
17773}
17774
17775# func_len string
17776# STRING may not start with a hyphen.
17777func_len ()
17778{
17779 func_len_result=${#1}
17780}
17781
17782_LT_EOF
17783 ;;
17784 *) # Bourne compatible functions.
17785 cat << \_LT_EOF >> "$cfgfile"
17786
17787# func_dirname file append nondir_replacement
17788# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17789# otherwise set result to NONDIR_REPLACEMENT.
17790func_dirname ()
17791{
17792 # Extract subdirectory from the argument.
17793 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17794 if test "X$func_dirname_result" = "X${1}"; then
17795 func_dirname_result="${3}"
17796 else
17797 func_dirname_result="$func_dirname_result${2}"
17798 fi
17799}
17800
17801# func_basename file
17802func_basename ()
17803{
17804 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17805}
17806
17807
17808# func_stripname prefix suffix name
17809# strip PREFIX and SUFFIX off of NAME.
17810# PREFIX and SUFFIX must not contain globbing or regex special
17811# characters, hashes, percent signs, but SUFFIX may contain a leading
17812# dot (in which case that matches only a dot).
17813# func_strip_suffix prefix name
17814func_stripname ()
17815{
17816 case ${2} in
17817 .*) func_stripname_result=`$ECHO "X${3}" \
17818 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17819 *) func_stripname_result=`$ECHO "X${3}" \
17820 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17821 esac
17822}
17823
17824# sed scripts:
17825my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17826my_sed_long_arg='1s/^-[^=]*=//'
17827
17828# func_opt_split
17829func_opt_split ()
17830{
17831 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17832 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17833}
17834
17835# func_lo2o object
17836func_lo2o ()
17837{
17838 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17839}
17840
17841# func_xform libobj-or-source
17842func_xform ()
17843{
17844 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17845}
17846
17847# func_arith arithmetic-term...
17848func_arith ()
17849{
17850 func_arith_result=`expr "$@"`
17851}
17852
17853# func_len string
17854# STRING may not start with a hyphen.
17855func_len ()
17856{
17857 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17858}
17859
17860_LT_EOF
17861esac
17862
17863case $lt_shell_append in
17864 yes)
17865 cat << \_LT_EOF >> "$cfgfile"
17866
17867# func_append var value
17868# Append VALUE to the end of shell variable VAR.
17869func_append ()
17870{
17871 eval "$1+=\$2"
17872}
17873_LT_EOF
17874 ;;
17875 *)
17876 cat << \_LT_EOF >> "$cfgfile"
17877
17878# func_append var value
17879# Append VALUE to the end of shell variable VAR.
17880func_append ()
17881{
17882 eval "$1=\$$1\$2"
17883}
17884
17885_LT_EOF
17886 ;;
17887 esac
17888
17889
17890 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17891 || (rm -f "$cfgfile"; exit 1)
17892
17893 mv -f "$cfgfile" "$ofile" ||
17894 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17895 chmod +x "$ofile"
17896
17897
17898 cat <<_LT_EOF >> "$ofile"
17899
17900# ### BEGIN LIBTOOL TAG CONFIG: CXX
17901
17902# The linker used to build libraries.
17903LD=$lt_LD_CXX
17904
17905# Commands used to build an old-style archive.
17906old_archive_cmds=$lt_old_archive_cmds_CXX
17907
17908# A language specific compiler.
17909CC=$lt_compiler_CXX
17910
17911# Is the compiler the GNU compiler?
17912with_gcc=$GCC_CXX
17913
17914# Compiler flag to turn off builtin functions.
17915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17916
17917# How to pass a linker flag through the compiler.
17918wl=$lt_lt_prog_compiler_wl_CXX
17919
17920# Additional compiler flags for building library objects.
17921pic_flag=$lt_lt_prog_compiler_pic_CXX
17922
17923# Compiler flag to prevent dynamic linking.
17924link_static_flag=$lt_lt_prog_compiler_static_CXX
17925
17926# Does compiler simultaneously support -c and -o options?
17927compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17928
17929# Whether or not to add -lc for building shared libraries.
17930build_libtool_need_lc=$archive_cmds_need_lc_CXX
17931
17932# Whether or not to disallow shared libs when runtime libs are static.
17933allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17934
17935# Compiler flag to allow reflexive dlopens.
17936export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17937
17938# Compiler flag to generate shared objects directly from archives.
17939whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17940
17941# Whether the compiler copes with passing no objects directly.
17942compiler_needs_object=$lt_compiler_needs_object_CXX
17943
17944# Create an old-style archive from a shared archive.
17945old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17946
17947# Create a temporary old-style archive to link instead of a shared archive.
17948old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17949
17950# Commands used to build a shared archive.
17951archive_cmds=$lt_archive_cmds_CXX
17952archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17953
17954# Commands used to build a loadable module if different from building
17955# a shared archive.
17956module_cmds=$lt_module_cmds_CXX
17957module_expsym_cmds=$lt_module_expsym_cmds_CXX
17958
17959# Whether we are building with GNU ld or not.
17960with_gnu_ld=$lt_with_gnu_ld_CXX
17961
17962# Flag that allows shared libraries with undefined symbols to be built.
17963allow_undefined_flag=$lt_allow_undefined_flag_CXX
17964
17965# Flag that enforces no undefined symbols.
17966no_undefined_flag=$lt_no_undefined_flag_CXX
17967
17968# Flag to hardcode \$libdir into a binary during linking.
17969# This must work even if \$libdir does not exist
17970hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17971
17972# If ld is used when linking, flag to hardcode \$libdir into a binary
17973# during linking. This must work even if \$libdir does not exist.
17974hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17975
17976# Whether we need a single "-rpath" flag with a separated argument.
17977hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17978
17979# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17980# DIR into the resulting binary.
17981hardcode_direct=$hardcode_direct_CXX
17982
17983# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17984# DIR into the resulting binary and the resulting library dependency is
17985# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17986# library is relocated.
17987hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17988
17989# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17990# into the resulting binary.
17991hardcode_minus_L=$hardcode_minus_L_CXX
17992
17993# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17994# into the resulting binary.
17995hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17996
17997# Set to "yes" if building a shared library automatically hardcodes DIR
17998# into the library and all subsequent libraries and executables linked
17999# against it.
18000hardcode_automatic=$hardcode_automatic_CXX
18001
18002# Set to yes if linker adds runtime paths of dependent libraries
18003# to runtime path list.
18004inherit_rpath=$inherit_rpath_CXX
18005
18006# Whether libtool must link a program against all its dependency libraries.
18007link_all_deplibs=$link_all_deplibs_CXX
18008
18009# Fix the shell variable \$srcfile for the compiler.
18010fix_srcfile_path=$lt_fix_srcfile_path_CXX
18011
18012# Set to "yes" if exported symbols are required.
18013always_export_symbols=$always_export_symbols_CXX
18014
18015# The commands to list exported symbols.
18016export_symbols_cmds=$lt_export_symbols_cmds_CXX
18017
18018# Symbols that should not be listed in the preloaded symbols.
18019exclude_expsyms=$lt_exclude_expsyms_CXX
18020
18021# Symbols that must always be exported.
18022include_expsyms=$lt_include_expsyms_CXX
18023
18024# Commands necessary for linking programs (against libraries) with templates.
18025prelink_cmds=$lt_prelink_cmds_CXX
18026
18027# Specify filename containing input files.
18028file_list_spec=$lt_file_list_spec_CXX
18029
18030# How to hardcode a shared library path into an executable.
18031hardcode_action=$hardcode_action_CXX
18032
18033# The directories searched by this compiler when creating a shared library.
18034compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18035
18036# Dependencies to place before and after the objects being linked to
18037# create a shared library.
18038predep_objects=$lt_predep_objects_CXX
18039postdep_objects=$lt_postdep_objects_CXX
18040predeps=$lt_predeps_CXX
18041postdeps=$lt_postdeps_CXX
18042
18043# The library search path used internally by the compiler when linking
18044# a shared library.
18045compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18046
18047# ### END LIBTOOL TAG CONFIG: CXX
18048_LT_EOF
18049
openvcdiff311c7142008-08-26 19:29:25 +000018050 ;;
openvcdiff311c7142008-08-26 19:29:25 +000018051
openvcdiffd1845782009-03-20 21:56:15 +000018052 esac
18053done # for ac_tag
18054
openvcdiff311c7142008-08-26 19:29:25 +000018055
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000018056as_fn_exit 0
openvcdiff311c7142008-08-26 19:29:25 +000018057_ACEOF
openvcdiff311c7142008-08-26 19:29:25 +000018058ac_clean_files=$ac_clean_files_save
18059
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000018060test $ac_write_fail = 0 ||
18061 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18062
openvcdiff311c7142008-08-26 19:29:25 +000018063
18064# configure is writing to config.log, and then calls config.status.
18065# config.status does its own redirection, appending to config.log.
18066# Unfortunately, on DOS this fails, as config.log is still kept open
18067# by configure, so config.status won't be able to write to it; its
18068# output is simply discarded. So we exec the FD to /dev/null,
18069# effectively closing config.log, so it can be properly (re)opened and
18070# appended to by config.status. When coming back to configure, we
18071# need to make the FD available again.
18072if test "$no_create" != yes; then
18073 ac_cs_success=:
18074 ac_config_status_args=
18075 test "$silent" = yes &&
18076 ac_config_status_args="$ac_config_status_args --quiet"
18077 exec 5>/dev/null
18078 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18079 exec 5>>config.log
18080 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18081 # would make configure fail if this is the last instruction.
openvcdiff@gmail.com732fff22010-08-04 18:00:00 +000018082 $ac_cs_success || as_fn_exit $?
18083fi
18084if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18086$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
openvcdiff311c7142008-08-26 19:29:25 +000018087fi
18088