libtool.m4: fix the NM="/nm/over/here -B/option/with/path" case
[binutils-gdb.git] / gprofng / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gprofng 2.38.50.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='gprofng'
589 PACKAGE_TARNAME='gprofng'
590 PACKAGE_VERSION='2.38.50'
591 PACKAGE_STRING='gprofng 2.38.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 enable_option_checking=no
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 BUILD_SUBDIRS
637 CLOCK_GETTIME_LINK
638 GPROFNG_CPPFLAGS
639 GPROFNG_CFLAGS
640 LD_NO_AS_NEEDED
641 BUILD_MAN_FALSE
642 BUILD_MAN_TRUE
643 HELP2MAN
644 TCL_TRY_FALSE
645 TCL_TRY_TRUE
646 EXPECT
647 jdk_inc
648 GPROFNG_BROKEN_JAVAC
649 JAVA
650 JAVAC
651 PTHREAD_CFLAGS
652 PTHREAD_LIBS
653 PTHREAD_CC
654 ax_pthread_config
655 RUN_TESTS_FALSE
656 RUN_TESTS_TRUE
657 subdirs
658 BUILD_SRC_FALSE
659 BUILD_SRC_TRUE
660 BUILD_COLLECTOR_FALSE
661 BUILD_COLLECTOR_TRUE
662 GPROFNG_NO_SWITCH_CFLAGS
663 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
664 gprofng_cflags
665 WERROR
666 GPROFNG_LIBADD
667 CXXCPP
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 OBJDUMP
674 LN_S
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 SED
681 LIBTOOL
682 ac_ct_AR
683 AR
684 RANLIB
685 am__fastdepCXX_FALSE
686 am__fastdepCXX_TRUE
687 CXXDEPMODE
688 ac_ct_CXX
689 CXXFLAGS
690 CXX
691 EGREP
692 GREP
693 CPP
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_os
742 target_vendor
743 target_cpu
744 target
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 enable_libtool_lock
803 enable_werror_always
804 enable_gprofng_tools
805 with_jdk
806 enable_gprofng_debug
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP
817 CXX
818 CXXFLAGS
819 CCC
820 CXXCPP'
821 ac_subdirs_all='libcollector'
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 ac_unrecognized_opts=
827 ac_unrecognized_sep=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 # Accept the important Cygnus configure options, so we can diagnose typos.
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1116
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1127
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1132
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1137
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1144
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1149
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1152
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1155
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1171
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1187
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1191
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1198
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1205
1206 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1208 ;;
1209
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 esac
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1219
1220 *)
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 ;;
1227
1228 esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $? "missing argument to $ac_option"
1234 fi
1235
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1242 fi
1243
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1249 do
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 done
1264
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1268 build=$build_alias
1269 host=$host_alias
1270 target=$target_alias
1271
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures gprofng 2.38.50 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 --target=TARGET configure for building compilers for TARGET [HOST]
1427 _ACEOF
1428 fi
1429
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of gprofng 2.38.50:";;
1433 esac
1434 cat <<\_ACEOF
1435
1436 Optional Features:
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-silent-rules less verbose build output (undo: "make V=1")
1441 --disable-silent-rules verbose build output (undo: "make V=0")
1442 --enable-maintainer-mode
1443 enable make rules and dependencies not useful (and
1444 sometimes confusing) to the casual installer
1445 --enable-dependency-tracking
1446 do not reject slow dependency extractors
1447 --disable-dependency-tracking
1448 speeds up one-time build
1449 --enable-shared[=PKGS] build shared libraries [default=no]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454 --enable-werror-always enable -Werror despite compiler version
1455 --disable-gprofng-tools do not build gprofng/src directory
1456 --enable-gprofng-debug Enable debugging output [default=no]
1457
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-pic try to use only PIC/non-PIC objects [default=use
1462 both]
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-jdk=PATH specify prefix directory for installed JDK.
1465
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CPP C preprocessor
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
1477 CXXCPP C++ preprocessor
1478
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1481
1482 Report bugs to the package provider.
1483 _ACEOF
1484 ac_status=$?
1485 fi
1486
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" ||
1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 continue
1493 ac_builddir=.
1494
1495 case "$ac_dir" in
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *)
1498 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 esac ;;
1505 esac
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1510
1511 case $srcdir in
1512 .) # We are building in place.
1513 ac_srcdir=.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1520 *) # Relative name.
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 esac
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1535 else
1536 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 fi || ac_status=$?
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1539 done
1540 fi
1541
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1544 cat <<\_ACEOF
1545 gprofng configure 2.38.50
1546 generated by GNU Autoconf 2.69
1547
1548 Copyright (C) 2012 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1551 _ACEOF
1552 exit
1553 fi
1554
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1558
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext
1566 if { { ac_try="$ac_compile"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_cpp ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if { { ac_try="$ac_cpp conftest.$ac_ext"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } > conftest.i && {
1619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1
1628 fi
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_cpp
1633
1634 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1637 # the include files in INCLUDES and setting the cache variable VAR
1638 # accordingly.
1639 ac_fn_c_check_header_mongrel ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if eval \${$3+:} false; then :
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 fi
1648 eval ac_res=\$$3
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1651 else
1652 # Is the header compilable?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1654 $as_echo_n "checking $2 usability... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 $4
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 ac_header_compiler=yes
1662 else
1663 ac_header_compiler=no
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1667 $as_echo "$ac_header_compiler" >&6; }
1668
1669 # Is the header present?
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1671 $as_echo_n "checking $2 presence... " >&6; }
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_cpp "$LINENO"; then :
1677 ac_header_preproc=yes
1678 else
1679 ac_header_preproc=no
1680 fi
1681 rm -f conftest.err conftest.i conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1683 $as_echo "$ac_header_preproc" >&6; }
1684
1685 # So? What about this header?
1686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1687 yes:no: )
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1689 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 ;;
1693 no:yes:* )
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1695 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1697 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1699 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1701 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 ;;
1705 esac
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1710 else
1711 eval "$3=\$ac_header_compiler"
1712 fi
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 fi
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_c_check_header_mongrel
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=$ac_status
1756 fi
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 $4
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 eval "$3=yes"
1782 else
1783 eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_compile
1793
1794 # ac_fn_cxx_try_compile LINENO
1795 # ----------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_cxx_try_compile ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext
1801 if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_compile") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_cxx_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest.$ac_objext; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826 fi
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1829
1830 } # ac_fn_cxx_try_compile
1831
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_link ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867 fi
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_link
1877
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1888 else
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1894
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1899
1900 #ifdef __STDC__
1901 # include <limits.h>
1902 #else
1903 # include <assert.h>
1904 #endif
1905
1906 #undef $2
1907
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1911 #ifdef __cplusplus
1912 extern "C"
1913 #endif
1914 char $2 ();
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1919 choke me
1920 #endif
1921
1922 int
1923 main ()
1924 {
1925 return $2 ();
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_link "$LINENO"; then :
1931 eval "$3=yes"
1932 else
1933 eval "$3=no"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_func
1944
1945 # ac_fn_cxx_try_cpp LINENO
1946 # ------------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_cxx_try_cpp ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_cpp conftest.$ac_ext"
1952 case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959 ac_status=$?
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1964 fi
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } > conftest.i && {
1967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1968 test ! -s conftest.err
1969 }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_retval=1
1976 fi
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1979
1980 } # ac_fn_cxx_try_cpp
1981
1982 # ac_fn_cxx_try_link LINENO
1983 # -------------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded.
1985 ac_fn_cxx_try_link ()
1986 {
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 rm -f conftest.$ac_objext conftest$ac_exeext
1989 if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>conftest.err
1997 ac_status=$?
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2002 fi
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && {
2005 test -z "$ac_cxx_werror_flag" ||
2006 test ! -s conftest.err
2007 } && test -s conftest$ac_exeext && {
2008 test "$cross_compiling" = yes ||
2009 test -x conftest$ac_exeext
2010 }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_retval=1
2017 fi
2018 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020 # interfere with the next link command; also delete a directory that is
2021 # left behind by Apple's compiler. We do this before executing the actions.
2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2025
2026 } # ac_fn_cxx_try_link
2027
2028 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2029 # ---------------------------------------------
2030 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2031 # accordingly.
2032 ac_fn_c_check_decl ()
2033 {
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 as_decl_name=`echo $2|sed 's/ *(.*//'`
2036 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2038 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2041 else
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 $4
2045 int
2046 main ()
2047 {
2048 #ifndef $as_decl_name
2049 #ifdef __cplusplus
2050 (void) $as_decl_use;
2051 #else
2052 (void) $as_decl_name;
2053 #endif
2054 #endif
2055
2056 ;
2057 return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 eval "$3=yes"
2062 else
2063 eval "$3=no"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 fi
2067 eval ac_res=\$$3
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071
2072 } # ac_fn_c_check_decl
2073 cat >config.log <<_ACEOF
2074 This file contains any messages produced by compilers while
2075 running configure, to aid debugging if configure makes a mistake.
2076
2077 It was created by gprofng $as_me 2.38.50, which was
2078 generated by GNU Autoconf 2.69. Invocation command line was
2079
2080 $ $0 $@
2081
2082 _ACEOF
2083 exec 5>>config.log
2084 {
2085 cat <<_ASUNAME
2086 ## --------- ##
2087 ## Platform. ##
2088 ## --------- ##
2089
2090 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2091 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2092 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2093 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2094 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2095
2096 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2097 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2098
2099 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2100 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2101 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2102 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2103 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2104 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2105 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2106
2107 _ASUNAME
2108
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 $as_echo "PATH: $as_dir"
2115 done
2116 IFS=$as_save_IFS
2117
2118 } >&5
2119
2120 cat >&5 <<_ACEOF
2121
2122
2123 ## ----------- ##
2124 ## Core tests. ##
2125 ## ----------- ##
2126
2127 _ACEOF
2128
2129
2130 # Keep a trace of the command line.
2131 # Strip out --no-create and --no-recursion so they do not pile up.
2132 # Strip out --silent because we don't want to record it for future runs.
2133 # Also quote any args containing shell meta-characters.
2134 # Make two passes to allow for proper duplicate-argument suppression.
2135 ac_configure_args=
2136 ac_configure_args0=
2137 ac_configure_args1=
2138 ac_must_keep_next=false
2139 for ac_pass in 1 2
2140 do
2141 for ac_arg
2142 do
2143 case $ac_arg in
2144 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2146 | -silent | --silent | --silen | --sile | --sil)
2147 continue ;;
2148 *\'*)
2149 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2150 esac
2151 case $ac_pass in
2152 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2153 2)
2154 as_fn_append ac_configure_args1 " '$ac_arg'"
2155 if test $ac_must_keep_next = true; then
2156 ac_must_keep_next=false # Got value, back to normal.
2157 else
2158 case $ac_arg in
2159 *=* | --config-cache | -C | -disable-* | --disable-* \
2160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2162 | -with-* | --with-* | -without-* | --without-* | --x)
2163 case "$ac_configure_args0 " in
2164 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2165 esac
2166 ;;
2167 -* ) ac_must_keep_next=true ;;
2168 esac
2169 fi
2170 as_fn_append ac_configure_args " '$ac_arg'"
2171 ;;
2172 esac
2173 done
2174 done
2175 { ac_configure_args0=; unset ac_configure_args0;}
2176 { ac_configure_args1=; unset ac_configure_args1;}
2177
2178 # When interrupted or exit'd, cleanup temporary files, and complete
2179 # config.log. We remove comments because anyway the quotes in there
2180 # would cause problems or look ugly.
2181 # WARNING: Use '\'' to represent an apostrophe within the trap.
2182 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2183 trap 'exit_status=$?
2184 # Save into config.log some information that might help in debugging.
2185 {
2186 echo
2187
2188 $as_echo "## ---------------- ##
2189 ## Cache variables. ##
2190 ## ---------------- ##"
2191 echo
2192 # The following way of writing the cache mishandles newlines in values,
2193 (
2194 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2195 eval ac_val=\$$ac_var
2196 case $ac_val in #(
2197 *${as_nl}*)
2198 case $ac_var in #(
2199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2201 esac
2202 case $ac_var in #(
2203 _ | IFS | as_nl) ;; #(
2204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2205 *) { eval $ac_var=; unset $ac_var;} ;;
2206 esac ;;
2207 esac
2208 done
2209 (set) 2>&1 |
2210 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2211 *${as_nl}ac_space=\ *)
2212 sed -n \
2213 "s/'\''/'\''\\\\'\'''\''/g;
2214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2215 ;; #(
2216 *)
2217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2218 ;;
2219 esac |
2220 sort
2221 )
2222 echo
2223
2224 $as_echo "## ----------------- ##
2225 ## Output variables. ##
2226 ## ----------------- ##"
2227 echo
2228 for ac_var in $ac_subst_vars
2229 do
2230 eval ac_val=\$$ac_var
2231 case $ac_val in
2232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233 esac
2234 $as_echo "$ac_var='\''$ac_val'\''"
2235 done | sort
2236 echo
2237
2238 if test -n "$ac_subst_files"; then
2239 $as_echo "## ------------------- ##
2240 ## File substitutions. ##
2241 ## ------------------- ##"
2242 echo
2243 for ac_var in $ac_subst_files
2244 do
2245 eval ac_val=\$$ac_var
2246 case $ac_val in
2247 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2248 esac
2249 $as_echo "$ac_var='\''$ac_val'\''"
2250 done | sort
2251 echo
2252 fi
2253
2254 if test -s confdefs.h; then
2255 $as_echo "## ----------- ##
2256 ## confdefs.h. ##
2257 ## ----------- ##"
2258 echo
2259 cat confdefs.h
2260 echo
2261 fi
2262 test "$ac_signal" != 0 &&
2263 $as_echo "$as_me: caught signal $ac_signal"
2264 $as_echo "$as_me: exit $exit_status"
2265 } >&5
2266 rm -f core *.core core.conftest.* &&
2267 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2268 exit $exit_status
2269 ' 0
2270 for ac_signal in 1 2 13 15; do
2271 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2272 done
2273 ac_signal=0
2274
2275 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2276 rm -f -r conftest* confdefs.h
2277
2278 $as_echo "/* confdefs.h */" > confdefs.h
2279
2280 # Predefined preprocessor variables.
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_NAME "$PACKAGE_NAME"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_STRING "$PACKAGE_STRING"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_URL "$PACKAGE_URL"
2304 _ACEOF
2305
2306
2307 # Let the site file select an alternate cache file if it wants to.
2308 # Prefer an explicitly selected file to automatically selected ones.
2309 ac_site_file1=NONE
2310 ac_site_file2=NONE
2311 if test -n "$CONFIG_SITE"; then
2312 # We do not want a PATH search for config.site.
2313 case $CONFIG_SITE in #((
2314 -*) ac_site_file1=./$CONFIG_SITE;;
2315 */*) ac_site_file1=$CONFIG_SITE;;
2316 *) ac_site_file1=./$CONFIG_SITE;;
2317 esac
2318 elif test "x$prefix" != xNONE; then
2319 ac_site_file1=$prefix/share/config.site
2320 ac_site_file2=$prefix/etc/config.site
2321 else
2322 ac_site_file1=$ac_default_prefix/share/config.site
2323 ac_site_file2=$ac_default_prefix/etc/config.site
2324 fi
2325 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2326 do
2327 test "x$ac_site_file" = xNONE && continue
2328 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2330 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2331 sed 's/^/| /' "$ac_site_file" >&5
2332 . "$ac_site_file" \
2333 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 as_fn_error $? "failed to load site script $ac_site_file
2336 See \`config.log' for more details" "$LINENO" 5; }
2337 fi
2338 done
2339
2340 if test -r "$cache_file"; then
2341 # Some versions of bash will fail to source /dev/null (special files
2342 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2343 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2345 $as_echo "$as_me: loading cache $cache_file" >&6;}
2346 case $cache_file in
2347 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2348 *) . "./$cache_file";;
2349 esac
2350 fi
2351 else
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2353 $as_echo "$as_me: creating cache $cache_file" >&6;}
2354 >$cache_file
2355 fi
2356
2357 # Check that the precious variables saved in the cache have kept the same
2358 # value.
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
2365 case $ac_old_set,$ac_new_set in
2366 set,)
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2370 ,set)
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2374 ,);;
2375 *)
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
2377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x $ac_old_val`
2379 ac_new_val_w=`echo x $ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383 ac_cache_corrupted=:
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2388 fi
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2390 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2393 fi;;
2394 esac
2395 # Pass precious variables to config.status.
2396 if test "$ac_new_set" = set; then
2397 case $ac_new_val in
2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 *) ac_arg=$ac_var=$ac_new_val ;;
2400 esac
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2404 esac
2405 fi
2406 done
2407 if $ac_cache_corrupted; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2413 fi
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2417
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423
2424
2425 ac_aux_dir=
2426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2427 if test -f "$ac_dir/install-sh"; then
2428 ac_aux_dir=$ac_dir
2429 ac_install_sh="$ac_aux_dir/install-sh -c"
2430 break
2431 elif test -f "$ac_dir/install.sh"; then
2432 ac_aux_dir=$ac_dir
2433 ac_install_sh="$ac_aux_dir/install.sh -c"
2434 break
2435 elif test -f "$ac_dir/shtool"; then
2436 ac_aux_dir=$ac_dir
2437 ac_install_sh="$ac_aux_dir/shtool install -c"
2438 break
2439 fi
2440 done
2441 if test -z "$ac_aux_dir"; then
2442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2443 fi
2444
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2452
2453
2454 # Make sure we can run config.sub.
2455 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2456 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2459 $as_echo_n "checking build system type... " >&6; }
2460 if ${ac_cv_build+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 ac_build_alias=$build_alias
2464 test "x$ac_build_alias" = x &&
2465 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2466 test "x$ac_build_alias" = x &&
2467 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2468 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2470
2471 fi
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2473 $as_echo "$ac_cv_build" >&6; }
2474 case $ac_cv_build in
2475 *-*-*) ;;
2476 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2477 esac
2478 build=$ac_cv_build
2479 ac_save_IFS=$IFS; IFS='-'
2480 set x $ac_cv_build
2481 shift
2482 build_cpu=$1
2483 build_vendor=$2
2484 shift; shift
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2487 build_os=$*
2488 IFS=$ac_save_IFS
2489 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2490
2491
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2493 $as_echo_n "checking host system type... " >&6; }
2494 if ${ac_cv_host+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test "x$host_alias" = x; then
2498 ac_cv_host=$ac_cv_build
2499 else
2500 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2501 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2502 fi
2503
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2506 $as_echo "$ac_cv_host" >&6; }
2507 case $ac_cv_host in
2508 *-*-*) ;;
2509 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2510 esac
2511 host=$ac_cv_host
2512 ac_save_IFS=$IFS; IFS='-'
2513 set x $ac_cv_host
2514 shift
2515 host_cpu=$1
2516 host_vendor=$2
2517 shift; shift
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2520 host_os=$*
2521 IFS=$ac_save_IFS
2522 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2523
2524
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2526 $as_echo_n "checking target system type... " >&6; }
2527 if ${ac_cv_target+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 if test "x$target_alias" = x; then
2531 ac_cv_target=$ac_cv_host
2532 else
2533 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2535 fi
2536
2537 fi
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2539 $as_echo "$ac_cv_target" >&6; }
2540 case $ac_cv_target in
2541 *-*-*) ;;
2542 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2543 esac
2544 target=$ac_cv_target
2545 ac_save_IFS=$IFS; IFS='-'
2546 set x $ac_cv_target
2547 shift
2548 target_cpu=$1
2549 target_vendor=$2
2550 shift; shift
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2553 target_os=$*
2554 IFS=$ac_save_IFS
2555 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2556
2557
2558 # The aliases save the names the user supplied, while $host etc.
2559 # will get canonicalized.
2560 test -n "$target_alias" &&
2561 test "$program_prefix$program_suffix$program_transform_name" = \
2562 NONENONEs,x,x, &&
2563 program_prefix=${target_alias}-
2564 am__api_version='1.15'
2565
2566 # Find a good install program. We prefer a C program (faster),
2567 # so one script is as good as another. But avoid the broken or
2568 # incompatible versions:
2569 # SysV /etc/install, /usr/sbin/install
2570 # SunOS /usr/etc/install
2571 # IRIX /sbin/install
2572 # AIX /bin/install
2573 # AmigaOS /C/install, which installs bootblocks on floppy discs
2574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2577 # OS/2's system install, which has a completely different semantic
2578 # ./install, which can be erroneously created by make from ./install.sh.
2579 # Reject install programs that cannot install multiple files.
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2581 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2582 if test -z "$INSTALL"; then
2583 if ${ac_cv_path_install+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 # Account for people who put trailing slashes in PATH elements.
2592 case $as_dir/ in #((
2593 ./ | .// | /[cC]/* | \
2594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2595 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2596 /usr/ucb/* ) ;;
2597 *)
2598 # OSF1 and SCO ODT 3.0 have their own names for install.
2599 # Don't use installbsd from OSF since it installs stuff as root
2600 # by default.
2601 for ac_prog in ginstall scoinst install; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2604 if test $ac_prog = install &&
2605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # AIX install. It has an incompatible calling convention.
2607 :
2608 elif test $ac_prog = install &&
2609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2610 # program-specific install script used by HP pwplus--don't use.
2611 :
2612 else
2613 rm -rf conftest.one conftest.two conftest.dir
2614 echo one > conftest.one
2615 echo two > conftest.two
2616 mkdir conftest.dir
2617 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2618 test -s conftest.one && test -s conftest.two &&
2619 test -s conftest.dir/conftest.one &&
2620 test -s conftest.dir/conftest.two
2621 then
2622 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2623 break 3
2624 fi
2625 fi
2626 fi
2627 done
2628 done
2629 ;;
2630 esac
2631
2632 done
2633 IFS=$as_save_IFS
2634
2635 rm -rf conftest.one conftest.two conftest.dir
2636
2637 fi
2638 if test "${ac_cv_path_install+set}" = set; then
2639 INSTALL=$ac_cv_path_install
2640 else
2641 # As a last resort, use the slow shell script. Don't cache a
2642 # value for INSTALL within a source directory, because that will
2643 # break other packages using the cache if that directory is
2644 # removed, or if the value is a relative name.
2645 INSTALL=$ac_install_sh
2646 fi
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2649 $as_echo "$INSTALL" >&6; }
2650
2651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2652 # It thinks the first close brace ends the variable substitution.
2653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2654
2655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2656
2657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2660 $as_echo_n "checking whether build environment is sane... " >&6; }
2661 # Reject unsafe characters in $srcdir or the absolute working directory
2662 # name. Accept space and tab only in the latter.
2663 am_lf='
2664 '
2665 case `pwd` in
2666 *[\\\"\#\$\&\'\`$am_lf]*)
2667 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2668 esac
2669 case $srcdir in
2670 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2671 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2672 esac
2673
2674 # Do 'set' in a subshell so we don't clobber the current shell's
2675 # arguments. Must try -L first in case configure is actually a
2676 # symlink; some systems play weird games with the mod time of symlinks
2677 # (eg FreeBSD returns the mod time of the symlink's containing
2678 # directory).
2679 if (
2680 am_has_slept=no
2681 for am_try in 1 2; do
2682 echo "timestamp, slept: $am_has_slept" > conftest.file
2683 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2684 if test "$*" = "X"; then
2685 # -L didn't work.
2686 set X `ls -t "$srcdir/configure" conftest.file`
2687 fi
2688 if test "$*" != "X $srcdir/configure conftest.file" \
2689 && test "$*" != "X conftest.file $srcdir/configure"; then
2690
2691 # If neither matched, then we have a broken ls. This can happen
2692 # if, for instance, CONFIG_SHELL is bash and it inherits a
2693 # broken ls alias from the environment. This has actually
2694 # happened. Such a system could not be considered "sane".
2695 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2696 alias in your environment" "$LINENO" 5
2697 fi
2698 if test "$2" = conftest.file || test $am_try -eq 2; then
2699 break
2700 fi
2701 # Just in case.
2702 sleep 1
2703 am_has_slept=yes
2704 done
2705 test "$2" = conftest.file
2706 )
2707 then
2708 # Ok.
2709 :
2710 else
2711 as_fn_error $? "newly created file is older than distributed files!
2712 Check your system clock" "$LINENO" 5
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715 $as_echo "yes" >&6; }
2716 # If we didn't sleep, we still need to ensure time stamps of config.status and
2717 # generated files are strictly newer.
2718 am_sleep_pid=
2719 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2720 ( sleep 1 ) &
2721 am_sleep_pid=$!
2722 fi
2723
2724 rm -f conftest.file
2725
2726 test "$program_prefix" != NONE &&
2727 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2728 # Use a double $ so make ignores it.
2729 test "$program_suffix" != NONE &&
2730 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2731 # Double any \ or $.
2732 # By default was `s,x,x', remove it if useless.
2733 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2734 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2735
2736 # Expand $ac_aux_dir to an absolute path.
2737 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2738
2739 if test x"${MISSING+set}" != xset; then
2740 case $am_aux_dir in
2741 *\ * | *\ *)
2742 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2743 *)
2744 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2745 esac
2746 fi
2747 # Use eval to expand $SHELL
2748 if eval "$MISSING --is-lightweight"; then
2749 am_missing_run="$MISSING "
2750 else
2751 am_missing_run=
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2753 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2754 fi
2755
2756 if test x"${install_sh+set}" != xset; then
2757 case $am_aux_dir in
2758 *\ * | *\ *)
2759 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2760 *)
2761 install_sh="\${SHELL} $am_aux_dir/install-sh"
2762 esac
2763 fi
2764
2765 # Installed binaries are usually stripped using 'strip' when the user
2766 # run "make install-strip". However 'strip' might not be the right
2767 # tool to use in cross-compilation environments, therefore Automake
2768 # will honor the 'STRIP' environment variable to overrule this program.
2769 if test "$cross_compiling" != no; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}strip; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_STRIP+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 STRIP=$ac_cv_prog_STRIP
2799 if test -n "$STRIP"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2801 $as_echo "$STRIP" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 fi
2809 if test -z "$ac_cv_prog_STRIP"; then
2810 ac_ct_STRIP=$STRIP
2811 # Extract the first word of "strip", so it can be a program name with args.
2812 set dummy strip; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$ac_ct_STRIP"; then
2819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_ac_ct_STRIP="strip"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2839 if test -n "$ac_ct_STRIP"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2841 $as_echo "$ac_ct_STRIP" >&6; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847 if test "x$ac_ct_STRIP" = x; then
2848 STRIP=":"
2849 else
2850 case $cross_compiling:$ac_tool_warned in
2851 yes:)
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854 ac_tool_warned=yes ;;
2855 esac
2856 STRIP=$ac_ct_STRIP
2857 fi
2858 else
2859 STRIP="$ac_cv_prog_STRIP"
2860 fi
2861
2862 fi
2863 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2864
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2866 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2867 if test -z "$MKDIR_P"; then
2868 if ${ac_cv_path_mkdir+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_prog in mkdir gmkdir; do
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2879 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2880 'mkdir (GNU coreutils) '* | \
2881 'mkdir (coreutils) '* | \
2882 'mkdir (fileutils) '4.1*)
2883 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2884 break 3;;
2885 esac
2886 done
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 fi
2892
2893 test -d ./--version && rmdir ./--version
2894 if test "${ac_cv_path_mkdir+set}" = set; then
2895 MKDIR_P="$ac_cv_path_mkdir -p"
2896 else
2897 # As a last resort, use the slow shell script. Don't cache a
2898 # value for MKDIR_P within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the value is a relative name.
2901 MKDIR_P="$ac_install_sh -d"
2902 fi
2903 fi
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2905 $as_echo "$MKDIR_P" >&6; }
2906
2907 for ac_prog in gawk mawk nawk awk
2908 do
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_AWK+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$AWK"; then
2917 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_AWK="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 AWK=$ac_cv_prog_AWK
2937 if test -n "$AWK"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2939 $as_echo "$AWK" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 test -n "$AWK" && break
2947 done
2948
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2950 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2951 set x ${MAKE-make}
2952 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2953 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 cat >conftest.make <<\_ACEOF
2957 SHELL = /bin/sh
2958 all:
2959 @echo '@@@%%%=$(MAKE)=@@@%%%'
2960 _ACEOF
2961 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2962 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963 *@@@%%%=?*=@@@%%%*)
2964 eval ac_cv_prog_make_${ac_make}_set=yes;;
2965 *)
2966 eval ac_cv_prog_make_${ac_make}_set=no;;
2967 esac
2968 rm -f conftest.make
2969 fi
2970 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2973 SET_MAKE=
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 SET_MAKE="MAKE=${MAKE-make}"
2978 fi
2979
2980 rm -rf .tst 2>/dev/null
2981 mkdir .tst 2>/dev/null
2982 if test -d .tst; then
2983 am__leading_dot=.
2984 else
2985 am__leading_dot=_
2986 fi
2987 rmdir .tst 2>/dev/null
2988
2989 # Check whether --enable-silent-rules was given.
2990 if test "${enable_silent_rules+set}" = set; then :
2991 enableval=$enable_silent_rules;
2992 fi
2993
2994 case $enable_silent_rules in # (((
2995 yes) AM_DEFAULT_VERBOSITY=0;;
2996 no) AM_DEFAULT_VERBOSITY=1;;
2997 *) AM_DEFAULT_VERBOSITY=1;;
2998 esac
2999 am_make=${MAKE-make}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3001 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3002 if ${am_cv_make_support_nested_variables+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if $as_echo 'TRUE=$(BAR$(V))
3006 BAR0=false
3007 BAR1=true
3008 V=1
3009 am__doit:
3010 @$(TRUE)
3011 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3012 am_cv_make_support_nested_variables=yes
3013 else
3014 am_cv_make_support_nested_variables=no
3015 fi
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3018 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3019 if test $am_cv_make_support_nested_variables = yes; then
3020 AM_V='$(V)'
3021 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3022 else
3023 AM_V=$AM_DEFAULT_VERBOSITY
3024 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3025 fi
3026 AM_BACKSLASH='\'
3027
3028 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3029 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3030 # is not polluted with repeated "-I."
3031 am__isrc=' -I$(srcdir)'
3032 # test to see if srcdir already configured
3033 if test -f $srcdir/config.status; then
3034 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3035 fi
3036 fi
3037
3038 # test whether we have cygpath
3039 if test -z "$CYGPATH_W"; then
3040 if (cygpath --version) >/dev/null 2>/dev/null; then
3041 CYGPATH_W='cygpath -w'
3042 else
3043 CYGPATH_W=echo
3044 fi
3045 fi
3046
3047
3048 # Define the identity of the package.
3049 PACKAGE='gprofng'
3050 VERSION='2.38.50'
3051
3052
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE "$PACKAGE"
3055 _ACEOF
3056
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define VERSION "$VERSION"
3060 _ACEOF
3061
3062 # Some tools Automake needs.
3063
3064 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3065
3066
3067 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3068
3069
3070 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3071
3072
3073 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3074
3075
3076 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3077
3078 # For better backward compatibility. To be removed once Automake 1.9.x
3079 # dies out for good. For more background, see:
3080 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3081 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3082 mkdir_p='$(MKDIR_P)'
3083
3084 # We need awk for the "check" target (and possibly the TAP driver). The
3085 # system "awk" is bad on some platforms.
3086 # Always define AMTAR for backward compatibility. Yes, it's still used
3087 # in the wild :-( We should find a proper way to deprecate it ...
3088 AMTAR='$${TAR-tar}'
3089
3090
3091 # We'll loop over all known methods to create a tar archive until one works.
3092 _am_tools='gnutar pax cpio none'
3093
3094 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3095
3096
3097
3098
3099
3100
3101 # POSIX will say in a future version that running "rm -f" with no argument
3102 # is OK; and we want to be able to make that assumption in our Makefile
3103 # recipes. So use an aggressive probe to check that the usage we want is
3104 # actually supported "in the wild" to an acceptable degree.
3105 # See automake bug#10828.
3106 # To make any issue more visible, cause the running configure to be aborted
3107 # by default if the 'rm' program in use doesn't match our expectations; the
3108 # user can still override this though.
3109 if rm -f && rm -fr && rm -rf; then : OK; else
3110 cat >&2 <<'END'
3111 Oops!
3112
3113 Your 'rm' program seems unable to run without file operands specified
3114 on the command line, even when the '-f' option is present. This is contrary
3115 to the behaviour of most rm programs out there, and not conforming with
3116 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3117
3118 Please tell bug-automake@gnu.org about your system, including the value
3119 of your $PATH and any error possibly output before this message. This
3120 can help us improve future automake versions.
3121
3122 END
3123 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3124 echo 'Configuration will proceed anyway, since you have set the' >&2
3125 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3126 echo >&2
3127 else
3128 cat >&2 <<'END'
3129 Aborting the configuration process, to ensure you take notice of the issue.
3130
3131 You can download and install GNU coreutils to get an 'rm' implementation
3132 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3133
3134 If you want to complete the configuration process using your problematic
3135 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3136 to "yes", and re-run configure.
3137
3138 END
3139 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3140 fi
3141 fi
3142
3143
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3145 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3146 # Check whether --enable-maintainer-mode was given.
3147 if test "${enable_maintainer_mode+set}" = set; then :
3148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3149 else
3150 USE_MAINTAINER_MODE=no
3151 fi
3152
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3154 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3155 if test $USE_MAINTAINER_MODE = yes; then
3156 MAINTAINER_MODE_TRUE=
3157 MAINTAINER_MODE_FALSE='#'
3158 else
3159 MAINTAINER_MODE_TRUE='#'
3160 MAINTAINER_MODE_FALSE=
3161 fi
3162
3163 MAINT=$MAINTAINER_MODE_TRUE
3164
3165
3166
3167 DEPDIR="${am__leading_dot}deps"
3168
3169 ac_config_commands="$ac_config_commands depfiles"
3170
3171
3172 am_make=${MAKE-make}
3173 cat > confinc << 'END'
3174 am__doit:
3175 @echo this is the am__doit target
3176 .PHONY: am__doit
3177 END
3178 # If we don't find an include directive, just comment out the code.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3180 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3181 am__include="#"
3182 am__quote=
3183 _am_result=none
3184 # First try GNU make style include.
3185 echo "include confinc" > confmf
3186 # Ignore all kinds of additional output from 'make'.
3187 case `$am_make -s -f confmf 2> /dev/null` in #(
3188 *the\ am__doit\ target*)
3189 am__include=include
3190 am__quote=
3191 _am_result=GNU
3192 ;;
3193 esac
3194 # Now try BSD make style include.
3195 if test "$am__include" = "#"; then
3196 echo '.include "confinc"' > confmf
3197 case `$am_make -s -f confmf 2> /dev/null` in #(
3198 *the\ am__doit\ target*)
3199 am__include=.include
3200 am__quote="\""
3201 _am_result=BSD
3202 ;;
3203 esac
3204 fi
3205
3206
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3208 $as_echo "$_am_result" >&6; }
3209 rm -f confinc confmf
3210
3211 # Check whether --enable-dependency-tracking was given.
3212 if test "${enable_dependency_tracking+set}" = set; then :
3213 enableval=$enable_dependency_tracking;
3214 fi
3215
3216 if test "x$enable_dependency_tracking" != xno; then
3217 am_depcomp="$ac_aux_dir/depcomp"
3218 AMDEPBACKSLASH='\'
3219 am__nodep='_no'
3220 fi
3221 if test "x$enable_dependency_tracking" != xno; then
3222 AMDEP_TRUE=
3223 AMDEP_FALSE='#'
3224 else
3225 AMDEP_TRUE='#'
3226 AMDEP_FALSE=
3227 fi
3228
3229
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 fi
3274 if test -z "$ac_cv_prog_CC"; then
3275 ac_ct_CC=$CC
3276 # Extract the first word of "gcc", so it can be a program name with args.
3277 set dummy gcc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if test -n "$ac_ct_CC"; then
3284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_CC="gcc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297 done
3298 done
3299 IFS=$as_save_IFS
3300
3301 fi
3302 fi
3303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3306 $as_echo "$ac_ct_CC" >&6; }
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 fi
3311
3312 if test "x$ac_ct_CC" = x; then
3313 CC=""
3314 else
3315 case $cross_compiling:$ac_tool_warned in
3316 yes:)
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319 ac_tool_warned=yes ;;
3320 esac
3321 CC=$ac_ct_CC
3322 fi
3323 else
3324 CC="$ac_cv_prog_CC"
3325 fi
3326
3327 if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}cc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC="${ac_tool_prefix}cc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 CC=$ac_cv_prog_CC
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366 fi
3367 fi
3368 if test -z "$CC"; then
3369 # Extract the first word of "cc", so it can be a program name with args.
3370 set dummy cc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_CC+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 if test -n "$CC"; then
3377 ac_cv_prog_CC="$CC" # Let the user override the test.
3378 else
3379 ac_prog_rejected=no
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3388 ac_prog_rejected=yes
3389 continue
3390 fi
3391 ac_cv_prog_CC="cc"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3394 fi
3395 done
3396 done
3397 IFS=$as_save_IFS
3398
3399 if test $ac_prog_rejected = yes; then
3400 # We found a bogon in the path, so make sure we never use it.
3401 set dummy $ac_cv_prog_CC
3402 shift
3403 if test $# != 0; then
3404 # We chose a different compiler from the bogus one.
3405 # However, it has the same basename, so the bogon will be chosen
3406 # first if we set CC to just the basename; use the full file name.
3407 shift
3408 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3409 fi
3410 fi
3411 fi
3412 fi
3413 CC=$ac_cv_prog_CC
3414 if test -n "$CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3417 else
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 fi
3421
3422
3423 fi
3424 if test -z "$CC"; then
3425 if test -n "$ac_tool_prefix"; then
3426 for ac_prog in cl.exe
3427 do
3428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449 done
3450 done
3451 IFS=$as_save_IFS
3452
3453 fi
3454 fi
3455 CC=$ac_cv_prog_CC
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 fi
3463
3464
3465 test -n "$CC" && break
3466 done
3467 fi
3468 if test -z "$CC"; then
3469 ac_ct_CC=$CC
3470 for ac_prog in cl.exe
3471 do
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy $ac_prog; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 if test -n "$ac_ct_CC"; then
3480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_ac_ct_CC="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3492 fi
3493 done
3494 done
3495 IFS=$as_save_IFS
3496
3497 fi
3498 fi
3499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3500 if test -n "$ac_ct_CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3502 $as_echo "$ac_ct_CC" >&6; }
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 fi
3507
3508
3509 test -n "$ac_ct_CC" && break
3510 done
3511
3512 if test "x$ac_ct_CC" = x; then
3513 CC=""
3514 else
3515 case $cross_compiling:$ac_tool_warned in
3516 yes:)
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3519 ac_tool_warned=yes ;;
3520 esac
3521 CC=$ac_ct_CC
3522 fi
3523 fi
3524
3525 fi
3526
3527
3528 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $? "no acceptable C compiler found in \$PATH
3531 See \`config.log' for more details" "$LINENO" 5; }
3532
3533 # Provide some information about the compiler.
3534 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3535 set X $ac_compile
3536 ac_compiler=$2
3537 for ac_option in --version -v -V -qversion; do
3538 { { ac_try="$ac_compiler $ac_option >&5"
3539 case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3546 ac_status=$?
3547 if test -s conftest.err; then
3548 sed '10a\
3549 ... rest of stderr output deleted ...
3550 10q' conftest.err >conftest.er1
3551 cat conftest.er1 >&5
3552 fi
3553 rm -f conftest.er1 conftest.err
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }
3556 done
3557
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560
3561 int
3562 main ()
3563 {
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 ac_clean_files_save=$ac_clean_files
3570 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3571 # Try to create an executable without -o first, disregard a.out.
3572 # It will help us diagnose broken compilers, and finding out an intuition
3573 # of exeext.
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3575 $as_echo_n "checking whether the C compiler works... " >&6; }
3576 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3577
3578 # The possible output files:
3579 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3580
3581 ac_rmfiles=
3582 for ac_file in $ac_files
3583 do
3584 case $ac_file in
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3586 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3587 esac
3588 done
3589 rm -f $ac_rmfiles
3590
3591 if { { ac_try="$ac_link_default"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_link_default") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; then :
3602 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3603 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3604 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3605 # so that the user can short-circuit this test for compilers unknown to
3606 # Autoconf.
3607 for ac_file in $ac_files ''
3608 do
3609 test -f "$ac_file" || continue
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3612 ;;
3613 [ab].out )
3614 # We found the default executable, but exeext='' is most
3615 # certainly right.
3616 break;;
3617 *.* )
3618 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3619 then :; else
3620 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621 fi
3622 # We set ac_cv_exeext here because the later test for it is not
3623 # safe: cross compilers may not add the suffix if given an `-o'
3624 # argument, so we may need to know it at that point already.
3625 # Even if this section looks crufty: it has the advantage of
3626 # actually working.
3627 break;;
3628 * )
3629 break;;
3630 esac
3631 done
3632 test "$ac_cv_exeext" = no && ac_cv_exeext=
3633
3634 else
3635 ac_file=''
3636 fi
3637 if test -z "$ac_file"; then :
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error 77 "C compiler cannot create executables
3646 See \`config.log' for more details" "$LINENO" 5; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3652 $as_echo_n "checking for C compiler default output file name... " >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3654 $as_echo "$ac_file" >&6; }
3655 ac_exeext=$ac_cv_exeext
3656
3657 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3660 $as_echo_n "checking for suffix of executables... " >&6; }
3661 if { { ac_try="$ac_link"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3673 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3674 # work properly (i.e., refer to `conftest.exe'), while it won't with
3675 # `rm'.
3676 for ac_file in conftest.exe conftest conftest.*; do
3677 test -f "$ac_file" || continue
3678 case $ac_file in
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3680 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3681 break;;
3682 * ) break;;
3683 esac
3684 done
3685 else
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3689 See \`config.log' for more details" "$LINENO" 5; }
3690 fi
3691 rm -f conftest conftest$ac_cv_exeext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3693 $as_echo "$ac_cv_exeext" >&6; }
3694
3695 rm -f conftest.$ac_ext
3696 EXEEXT=$ac_cv_exeext
3697 ac_exeext=$EXEEXT
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700 #include <stdio.h>
3701 int
3702 main ()
3703 {
3704 FILE *f = fopen ("conftest.out", "w");
3705 return ferror (f) || fclose (f) != 0;
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 ac_clean_files="$ac_clean_files conftest.out"
3712 # Check that the compiler produces executables we can run. If not, either
3713 # the compiler is broken, or we cross compile.
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3715 $as_echo_n "checking whether we are cross compiling... " >&6; }
3716 if test "$cross_compiling" != yes; then
3717 { { ac_try="$ac_link"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link") 2>&5
3725 ac_status=$?
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }
3728 if { ac_try='./conftest$ac_cv_exeext'
3729 { { case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_try") 2>&5
3736 ac_status=$?
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }; }; then
3739 cross_compiling=no
3740 else
3741 if test "$cross_compiling" = maybe; then
3742 cross_compiling=yes
3743 else
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error $? "cannot run C compiled programs.
3747 If you meant to cross compile, use \`--host'.
3748 See \`config.log' for more details" "$LINENO" 5; }
3749 fi
3750 fi
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3753 $as_echo "$cross_compiling" >&6; }
3754
3755 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3756 ac_clean_files=$ac_clean_files_save
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3758 $as_echo_n "checking for suffix of object files... " >&6; }
3759 if ${ac_cv_objext+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764
3765 int
3766 main ()
3767 {
3768
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 rm -f conftest.o conftest.obj
3774 if { { ac_try="$ac_compile"
3775 case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_compile") 2>&5
3782 ac_status=$?
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 for ac_file in conftest.o conftest.obj conftest.*; do
3786 test -f "$ac_file" || continue;
3787 case $ac_file in
3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3790 break;;
3791 esac
3792 done
3793 else
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error $? "cannot compute suffix of object files: cannot compile
3800 See \`config.log' for more details" "$LINENO" 5; }
3801 fi
3802 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3805 $as_echo "$ac_cv_objext" >&6; }
3806 OBJEXT=$ac_cv_objext
3807 ac_objext=$OBJEXT
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3810 if ${ac_cv_c_compiler_gnu+:} false; then :
3811 $as_echo_n "(cached) " >&6
3812 else
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819 #ifndef __GNUC__
3820 choke me
3821 #endif
3822
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_compiler_gnu=yes
3829 else
3830 ac_compiler_gnu=no
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3834
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3838 if test $ac_compiler_gnu = yes; then
3839 GCC=yes
3840 else
3841 GCC=
3842 fi
3843 ac_test_CFLAGS=${CFLAGS+set}
3844 ac_save_CFLAGS=$CFLAGS
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3847 if ${ac_cv_prog_cc_g+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 ac_save_c_werror_flag=$ac_c_werror_flag
3851 ac_c_werror_flag=yes
3852 ac_cv_prog_cc_g=no
3853 CFLAGS="-g"
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856
3857 int
3858 main ()
3859 {
3860
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 if ac_fn_c_try_compile "$LINENO"; then :
3866 ac_cv_prog_cc_g=yes
3867 else
3868 CFLAGS=""
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871
3872 int
3873 main ()
3874 {
3875
3876 ;
3877 return 0;
3878 }
3879 _ACEOF
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881
3882 else
3883 ac_c_werror_flag=$ac_save_c_werror_flag
3884 CFLAGS="-g"
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887
3888 int
3889 main ()
3890 {
3891
3892 ;
3893 return 0;
3894 }
3895 _ACEOF
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_prog_cc_g=yes
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3907 $as_echo "$ac_cv_prog_cc_g" >&6; }
3908 if test "$ac_test_CFLAGS" = set; then
3909 CFLAGS=$ac_save_CFLAGS
3910 elif test $ac_cv_prog_cc_g = yes; then
3911 if test "$GCC" = yes; then
3912 CFLAGS="-g -O2"
3913 else
3914 CFLAGS="-g"
3915 fi
3916 else
3917 if test "$GCC" = yes; then
3918 CFLAGS="-O2"
3919 else
3920 CFLAGS=
3921 fi
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3925 if ${ac_cv_prog_cc_c89+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 ac_cv_prog_cc_c89=no
3929 ac_save_CC=$CC
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3932 #include <stdarg.h>
3933 #include <stdio.h>
3934 struct stat;
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3939 char **p;
3940 int i;
3941 {
3942 return p[i];
3943 }
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3945 {
3946 char *s;
3947 va_list v;
3948 va_start (v,p);
3949 s = g (p, va_arg (v,int));
3950 va_end (v);
3951 return s;
3952 }
3953
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3955 function prototypes and stuff, but not '\xHH' hex character constants.
3956 These don't provoke an error unfortunately, instead are silently treated
3957 as 'x'. The following induces an error, until -std is added to get
3958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3959 array size at least. It's necessary to write '\x00'==0 to get something
3960 that's true only with -std. */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3962
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964 inside strings and character constants. */
3965 #define FOO(x) 'x'
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3967
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3972 int argc;
3973 char **argv;
3974 int
3975 main ()
3976 {
3977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3984 do
3985 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_prog_cc_c89=$ac_arg
3988 fi
3989 rm -f core conftest.err conftest.$ac_objext
3990 test "x$ac_cv_prog_cc_c89" != "xno" && break
3991 done
3992 rm -f conftest.$ac_ext
3993 CC=$ac_save_CC
3994
3995 fi
3996 # AC_CACHE_VAL
3997 case "x$ac_cv_prog_cc_c89" in
3998 x)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4001 xno)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4004 *)
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 esac
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4010
4011 fi
4012
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018
4019 ac_ext=c
4020 ac_cpp='$CPP $CPPFLAGS'
4021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4025 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4026 if ${am_cv_prog_cc_c_o+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031
4032 int
4033 main ()
4034 {
4035
4036 ;
4037 return 0;
4038 }
4039 _ACEOF
4040 # Make sure it works both with $CC and with simple cc.
4041 # Following AC_PROG_CC_C_O, we do the test twice because some
4042 # compilers refuse to overwrite an existing .o file with -o,
4043 # though they will create one.
4044 am_cv_prog_cc_c_o=yes
4045 for am_i in 1 2; do
4046 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4047 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } \
4051 && test -f conftest2.$ac_objext; then
4052 : OK
4053 else
4054 am_cv_prog_cc_c_o=no
4055 break
4056 fi
4057 done
4058 rm -f core conftest*
4059 unset am_i
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4062 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4063 if test "$am_cv_prog_cc_c_o" != yes; then
4064 # Losing compiler, so override with the script.
4065 # FIXME: It is wrong to rewrite CC.
4066 # But if we don't then we get into trouble of one sort or another.
4067 # A longer-term fix would be to have automake use am__CC in this case,
4068 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4069 CC="$am_aux_dir/compile $CC"
4070 fi
4071 ac_ext=c
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077
4078 depcc="$CC" am_compiler_list=
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4081 $as_echo_n "checking dependency style of $depcc... " >&6; }
4082 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4086 # We make a subdir and do the tests there. Otherwise we can end up
4087 # making bogus files that we don't know about and never remove. For
4088 # instance it was reported that on HP-UX the gcc test will end up
4089 # making a dummy file named 'D' -- because '-MD' means "put the output
4090 # in D".
4091 rm -rf conftest.dir
4092 mkdir conftest.dir
4093 # Copy depcomp to subdir because otherwise we won't find it if we're
4094 # using a relative directory.
4095 cp "$am_depcomp" conftest.dir
4096 cd conftest.dir
4097 # We will build objects and dependencies in a subdirectory because
4098 # it helps to detect inapplicable dependency modes. For instance
4099 # both Tru64's cc and ICC support -MD to output dependencies as a
4100 # side effect of compilation, but ICC will put the dependencies in
4101 # the current directory while Tru64 will put them in the object
4102 # directory.
4103 mkdir sub
4104
4105 am_cv_CC_dependencies_compiler_type=none
4106 if test "$am_compiler_list" = ""; then
4107 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4108 fi
4109 am__universal=false
4110 case " $depcc " in #(
4111 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4112 esac
4113
4114 for depmode in $am_compiler_list; do
4115 # Setup a source with many dependencies, because some compilers
4116 # like to wrap large dependency lists on column 80 (with \), and
4117 # we should not choose a depcomp mode which is confused by this.
4118 #
4119 # We need to recreate these files for each test, as the compiler may
4120 # overwrite some of them when testing with obscure command lines.
4121 # This happens at least with the AIX C compiler.
4122 : > sub/conftest.c
4123 for i in 1 2 3 4 5 6; do
4124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4125 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4126 # Solaris 10 /bin/sh.
4127 echo '/* dummy */' > sub/conftst$i.h
4128 done
4129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4130
4131 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4132 # mode. It turns out that the SunPro C++ compiler does not properly
4133 # handle '-M -o', and we need to detect this. Also, some Intel
4134 # versions had trouble with output in subdirs.
4135 am__obj=sub/conftest.${OBJEXT-o}
4136 am__minus_obj="-o $am__obj"
4137 case $depmode in
4138 gcc)
4139 # This depmode causes a compiler race in universal mode.
4140 test "$am__universal" = false || continue
4141 ;;
4142 nosideeffect)
4143 # After this tag, mechanisms are not by side-effect, so they'll
4144 # only be used when explicitly requested.
4145 if test "x$enable_dependency_tracking" = xyes; then
4146 continue
4147 else
4148 break
4149 fi
4150 ;;
4151 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4152 # This compiler won't grok '-c -o', but also, the minuso test has
4153 # not run yet. These depmodes are late enough in the game, and
4154 # so weak that their functioning should not be impacted.
4155 am__obj=conftest.${OBJEXT-o}
4156 am__minus_obj=
4157 ;;
4158 none) break ;;
4159 esac
4160 if depmode=$depmode \
4161 source=sub/conftest.c object=$am__obj \
4162 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4163 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4164 >/dev/null 2>conftest.err &&
4165 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4168 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4169 # icc doesn't choke on unknown options, it will just issue warnings
4170 # or remarks (even with -Werror). So we grep stderr for any message
4171 # that says an option was ignored or not supported.
4172 # When given -MP, icc 7.0 and 7.1 complain thusly:
4173 # icc: Command line warning: ignoring option '-M'; no argument required
4174 # The diagnosis changed in icc 8.0:
4175 # icc: Command line remark: option '-MP' not supported
4176 if (grep 'ignoring option' conftest.err ||
4177 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4178 am_cv_CC_dependencies_compiler_type=$depmode
4179 break
4180 fi
4181 fi
4182 done
4183
4184 cd ..
4185 rm -rf conftest.dir
4186 else
4187 am_cv_CC_dependencies_compiler_type=none
4188 fi
4189
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4193 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4194
4195 if
4196 test "x$enable_dependency_tracking" != xno \
4197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4198 am__fastdepCC_TRUE=
4199 am__fastdepCC_FALSE='#'
4200 else
4201 am__fastdepCC_TRUE='#'
4202 am__fastdepCC_FALSE=
4203 fi
4204
4205
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4213 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4214 # On Suns, sometimes $CPP names a directory.
4215 if test -n "$CPP" && test -d "$CPP"; then
4216 CPP=
4217 fi
4218 if test -z "$CPP"; then
4219 if ${ac_cv_prog_CPP+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 # Double quotes because CPP needs to be expanded
4223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4224 do
4225 ac_preproc_ok=false
4226 for ac_c_preproc_warn_flag in '' yes
4227 do
4228 # Use a header file that comes with gcc, so configuring glibc
4229 # with a fresh cross-compiler works.
4230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4231 # <limits.h> exists even on freestanding compilers.
4232 # On the NeXT, cc -E runs the code through the compiler's parser,
4233 # not just through cpp. "Syntax error" is here to catch this case.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #ifdef __STDC__
4237 # include <limits.h>
4238 #else
4239 # include <assert.h>
4240 #endif
4241 Syntax error
4242 _ACEOF
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244
4245 else
4246 # Broken: fails on valid input.
4247 continue
4248 fi
4249 rm -f conftest.err conftest.i conftest.$ac_ext
4250
4251 # OK, works on sane cases. Now check whether nonexistent headers
4252 # can be detected and how.
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #include <ac_nonexistent.h>
4256 _ACEOF
4257 if ac_fn_c_try_cpp "$LINENO"; then :
4258 # Broken: success on invalid input.
4259 continue
4260 else
4261 # Passes both tests.
4262 ac_preproc_ok=:
4263 break
4264 fi
4265 rm -f conftest.err conftest.i conftest.$ac_ext
4266
4267 done
4268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269 rm -f conftest.i conftest.err conftest.$ac_ext
4270 if $ac_preproc_ok; then :
4271 break
4272 fi
4273
4274 done
4275 ac_cv_prog_CPP=$CPP
4276
4277 fi
4278 CPP=$ac_cv_prog_CPP
4279 else
4280 ac_cv_prog_CPP=$CPP
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4283 $as_echo "$CPP" >&6; }
4284 ac_preproc_ok=false
4285 for ac_c_preproc_warn_flag in '' yes
4286 do
4287 # Use a header file that comes with gcc, so configuring glibc
4288 # with a fresh cross-compiler works.
4289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4290 # <limits.h> exists even on freestanding compilers.
4291 # On the NeXT, cc -E runs the code through the compiler's parser,
4292 # not just through cpp. "Syntax error" is here to catch this case.
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295 #ifdef __STDC__
4296 # include <limits.h>
4297 #else
4298 # include <assert.h>
4299 #endif
4300 Syntax error
4301 _ACEOF
4302 if ac_fn_c_try_cpp "$LINENO"; then :
4303
4304 else
4305 # Broken: fails on valid input.
4306 continue
4307 fi
4308 rm -f conftest.err conftest.i conftest.$ac_ext
4309
4310 # OK, works on sane cases. Now check whether nonexistent headers
4311 # can be detected and how.
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <ac_nonexistent.h>
4315 _ACEOF
4316 if ac_fn_c_try_cpp "$LINENO"; then :
4317 # Broken: success on invalid input.
4318 continue
4319 else
4320 # Passes both tests.
4321 ac_preproc_ok=:
4322 break
4323 fi
4324 rm -f conftest.err conftest.i conftest.$ac_ext
4325
4326 done
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.i conftest.err conftest.$ac_ext
4329 if $ac_preproc_ok; then :
4330
4331 else
4332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4335 See \`config.log' for more details" "$LINENO" 5; }
4336 fi
4337
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4346 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4347 if ${ac_cv_path_GREP+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -z "$GREP"; then
4351 ac_path_GREP_found=false
4352 # Loop through the user's path and test for each of PROGNAME-LIST
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_prog in grep ggrep; do
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4361 as_fn_executable_p "$ac_path_GREP" || continue
4362 # Check for GNU ac_path_GREP and select it if it is found.
4363 # Check for GNU $ac_path_GREP
4364 case `"$ac_path_GREP" --version 2>&1` in
4365 *GNU*)
4366 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4367 *)
4368 ac_count=0
4369 $as_echo_n 0123456789 >"conftest.in"
4370 while :
4371 do
4372 cat "conftest.in" "conftest.in" >"conftest.tmp"
4373 mv "conftest.tmp" "conftest.in"
4374 cp "conftest.in" "conftest.nl"
4375 $as_echo 'GREP' >> "conftest.nl"
4376 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4378 as_fn_arith $ac_count + 1 && ac_count=$as_val
4379 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4380 # Best one so far, save it but keep looking for a better one
4381 ac_cv_path_GREP="$ac_path_GREP"
4382 ac_path_GREP_max=$ac_count
4383 fi
4384 # 10*(2^10) chars as input seems more than enough
4385 test $ac_count -gt 10 && break
4386 done
4387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 esac
4389
4390 $ac_path_GREP_found && break 3
4391 done
4392 done
4393 done
4394 IFS=$as_save_IFS
4395 if test -z "$ac_cv_path_GREP"; then
4396 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 fi
4398 else
4399 ac_cv_path_GREP=$GREP
4400 fi
4401
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4404 $as_echo "$ac_cv_path_GREP" >&6; }
4405 GREP="$ac_cv_path_GREP"
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4409 $as_echo_n "checking for egrep... " >&6; }
4410 if ${ac_cv_path_EGREP+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4414 then ac_cv_path_EGREP="$GREP -E"
4415 else
4416 if test -z "$EGREP"; then
4417 ac_path_EGREP_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_prog in egrep; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4427 as_fn_executable_p "$ac_path_EGREP" || continue
4428 # Check for GNU ac_path_EGREP and select it if it is found.
4429 # Check for GNU $ac_path_EGREP
4430 case `"$ac_path_EGREP" --version 2>&1` in
4431 *GNU*)
4432 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4433 *)
4434 ac_count=0
4435 $as_echo_n 0123456789 >"conftest.in"
4436 while :
4437 do
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 $as_echo 'EGREP' >> "conftest.nl"
4442 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444 as_fn_arith $ac_count + 1 && ac_count=$as_val
4445 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_EGREP="$ac_path_EGREP"
4448 ac_path_EGREP_max=$ac_count
4449 fi
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4452 done
4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 esac
4455
4456 $ac_path_EGREP_found && break 3
4457 done
4458 done
4459 done
4460 IFS=$as_save_IFS
4461 if test -z "$ac_cv_path_EGREP"; then
4462 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4463 fi
4464 else
4465 ac_cv_path_EGREP=$EGREP
4466 fi
4467
4468 fi
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4471 $as_echo "$ac_cv_path_EGREP" >&6; }
4472 EGREP="$ac_cv_path_EGREP"
4473
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4476 $as_echo_n "checking for ANSI C header files... " >&6; }
4477 if ${ac_cv_header_stdc+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 #include <stdlib.h>
4483 #include <stdarg.h>
4484 #include <string.h>
4485 #include <float.h>
4486
4487 int
4488 main ()
4489 {
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_cv_header_stdc=yes
4497 else
4498 ac_cv_header_stdc=no
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501
4502 if test $ac_cv_header_stdc = yes; then
4503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #include <string.h>
4507
4508 _ACEOF
4509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510 $EGREP "memchr" >/dev/null 2>&1; then :
4511
4512 else
4513 ac_cv_header_stdc=no
4514 fi
4515 rm -f conftest*
4516
4517 fi
4518
4519 if test $ac_cv_header_stdc = yes; then
4520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <stdlib.h>
4524
4525 _ACEOF
4526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4527 $EGREP "free" >/dev/null 2>&1; then :
4528
4529 else
4530 ac_cv_header_stdc=no
4531 fi
4532 rm -f conftest*
4533
4534 fi
4535
4536 if test $ac_cv_header_stdc = yes; then
4537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4538 if test "$cross_compiling" = yes; then :
4539 :
4540 else
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <ctype.h>
4544 #include <stdlib.h>
4545 #if ((' ' & 0x0FF) == 0x020)
4546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4548 #else
4549 # define ISLOWER(c) \
4550 (('a' <= (c) && (c) <= 'i') \
4551 || ('j' <= (c) && (c) <= 'r') \
4552 || ('s' <= (c) && (c) <= 'z'))
4553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4554 #endif
4555
4556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557 int
4558 main ()
4559 {
4560 int i;
4561 for (i = 0; i < 256; i++)
4562 if (XOR (islower (i), ISLOWER (i))
4563 || toupper (i) != TOUPPER (i))
4564 return 2;
4565 return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_run "$LINENO"; then :
4569
4570 else
4571 ac_cv_header_stdc=no
4572 fi
4573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4574 conftest.$ac_objext conftest.beam conftest.$ac_ext
4575 fi
4576
4577 fi
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4580 $as_echo "$ac_cv_header_stdc" >&6; }
4581 if test $ac_cv_header_stdc = yes; then
4582
4583 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4584
4585 fi
4586
4587 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4589 inttypes.h stdint.h unistd.h
4590 do :
4591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4592 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4593 "
4594 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4595 cat >>confdefs.h <<_ACEOF
4596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 _ACEOF
4598
4599 fi
4600
4601 done
4602
4603
4604
4605 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4606 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4607 MINIX=yes
4608 else
4609 MINIX=
4610 fi
4611
4612
4613 if test "$MINIX" = yes; then
4614
4615 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4616
4617
4618 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4619
4620
4621 $as_echo "#define _MINIX 1" >>confdefs.h
4622
4623 fi
4624
4625
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4627 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4628 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633
4634 # define __EXTENSIONS__ 1
4635 $ac_includes_default
4636 int
4637 main ()
4638 {
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 if ac_fn_c_try_compile "$LINENO"; then :
4645 ac_cv_safe_to_define___extensions__=yes
4646 else
4647 ac_cv_safe_to_define___extensions__=no
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4652 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4653 test $ac_cv_safe_to_define___extensions__ = yes &&
4654 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4655
4656 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4657
4658 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4659
4660 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4661
4662 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4663
4664
4665 ac_ext=c
4666 ac_cpp='$CPP $CPPFLAGS'
4667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_CC+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC="$CC" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4691 fi
4692 done
4693 done
4694 IFS=$as_save_IFS
4695
4696 fi
4697 fi
4698 CC=$ac_cv_prog_CC
4699 if test -n "$CC"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701 $as_echo "$CC" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4705 fi
4706
4707
4708 fi
4709 if test -z "$ac_cv_prog_CC"; then
4710 ac_ct_CC=$CC
4711 # Extract the first word of "gcc", so it can be a program name with args.
4712 set dummy gcc; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$ac_ct_CC"; then
4719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_ac_ct_CC="gcc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4739 if test -n "$ac_ct_CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4741 $as_echo "$ac_ct_CC" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747 if test "x$ac_ct_CC" = x; then
4748 CC=""
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756 CC=$ac_ct_CC
4757 fi
4758 else
4759 CC="$ac_cv_prog_CC"
4760 fi
4761
4762 if test -z "$CC"; then
4763 if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4765 set dummy ${ac_tool_prefix}cc; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_CC+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 if test -n "$CC"; then
4772 ac_cv_prog_CC="$CC" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_CC="${ac_tool_prefix}cc"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4784 fi
4785 done
4786 done
4787 IFS=$as_save_IFS
4788
4789 fi
4790 fi
4791 CC=$ac_cv_prog_CC
4792 if test -n "$CC"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4794 $as_echo "$CC" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799
4800
4801 fi
4802 fi
4803 if test -z "$CC"; then
4804 # Extract the first word of "cc", so it can be a program name with args.
4805 set dummy cc; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_CC+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC="$CC" # Let the user override the test.
4813 else
4814 ac_prog_rejected=no
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4823 ac_prog_rejected=yes
4824 continue
4825 fi
4826 ac_cv_prog_CC="cc"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 if test $ac_prog_rejected = yes; then
4835 # We found a bogon in the path, so make sure we never use it.
4836 set dummy $ac_cv_prog_CC
4837 shift
4838 if test $# != 0; then
4839 # We chose a different compiler from the bogus one.
4840 # However, it has the same basename, so the bogon will be chosen
4841 # first if we set CC to just the basename; use the full file name.
4842 shift
4843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4844 fi
4845 fi
4846 fi
4847 fi
4848 CC=$ac_cv_prog_CC
4849 if test -n "$CC"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 $as_echo "$CC" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4855 fi
4856
4857
4858 fi
4859 if test -z "$CC"; then
4860 if test -n "$ac_tool_prefix"; then
4861 for ac_prog in cl.exe
4862 do
4863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_CC+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$CC"; then
4871 ac_cv_prog_CC="$CC" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 CC=$ac_cv_prog_CC
4891 if test -n "$CC"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4893 $as_echo "$CC" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898
4899
4900 test -n "$CC" && break
4901 done
4902 fi
4903 if test -z "$CC"; then
4904 ac_ct_CC=$CC
4905 for ac_prog in cl.exe
4906 do
4907 # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy $ac_prog; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$ac_ct_CC"; then
4915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_ac_ct_CC="$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4935 if test -n "$ac_ct_CC"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4937 $as_echo "$ac_ct_CC" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943
4944 test -n "$ac_ct_CC" && break
4945 done
4946
4947 if test "x$ac_ct_CC" = x; then
4948 CC=""
4949 else
4950 case $cross_compiling:$ac_tool_warned in
4951 yes:)
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954 ac_tool_warned=yes ;;
4955 esac
4956 CC=$ac_ct_CC
4957 fi
4958 fi
4959
4960 fi
4961
4962
4963 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965 as_fn_error $? "no acceptable C compiler found in \$PATH
4966 See \`config.log' for more details" "$LINENO" 5; }
4967
4968 # Provide some information about the compiler.
4969 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4970 set X $ac_compile
4971 ac_compiler=$2
4972 for ac_option in --version -v -V -qversion; do
4973 { { ac_try="$ac_compiler $ac_option >&5"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4981 ac_status=$?
4982 if test -s conftest.err; then
4983 sed '10a\
4984 ... rest of stderr output deleted ...
4985 10q' conftest.err >conftest.er1
4986 cat conftest.er1 >&5
4987 fi
4988 rm -f conftest.er1 conftest.err
4989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }
4991 done
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4994 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4995 if ${ac_cv_c_compiler_gnu+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000
5001 int
5002 main ()
5003 {
5004 #ifndef __GNUC__
5005 choke me
5006 #endif
5007
5008 ;
5009 return 0;
5010 }
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013 ac_compiler_gnu=yes
5014 else
5015 ac_compiler_gnu=no
5016 fi
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5019
5020 fi
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5023 if test $ac_compiler_gnu = yes; then
5024 GCC=yes
5025 else
5026 GCC=
5027 fi
5028 ac_test_CFLAGS=${CFLAGS+set}
5029 ac_save_CFLAGS=$CFLAGS
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5032 if ${ac_cv_prog_cc_g+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 ac_save_c_werror_flag=$ac_c_werror_flag
5036 ac_c_werror_flag=yes
5037 ac_cv_prog_cc_g=no
5038 CFLAGS="-g"
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041
5042 int
5043 main ()
5044 {
5045
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 ac_cv_prog_cc_g=yes
5052 else
5053 CFLAGS=""
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056
5057 int
5058 main ()
5059 {
5060
5061 ;
5062 return 0;
5063 }
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"; then :
5066
5067 else
5068 ac_c_werror_flag=$ac_save_c_werror_flag
5069 CFLAGS="-g"
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072
5073 int
5074 main ()
5075 {
5076
5077 ;
5078 return 0;
5079 }
5080 _ACEOF
5081 if ac_fn_c_try_compile "$LINENO"; then :
5082 ac_cv_prog_cc_g=yes
5083 fi
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 ac_c_werror_flag=$ac_save_c_werror_flag
5090 fi
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5092 $as_echo "$ac_cv_prog_cc_g" >&6; }
5093 if test "$ac_test_CFLAGS" = set; then
5094 CFLAGS=$ac_save_CFLAGS
5095 elif test $ac_cv_prog_cc_g = yes; then
5096 if test "$GCC" = yes; then
5097 CFLAGS="-g -O2"
5098 else
5099 CFLAGS="-g"
5100 fi
5101 else
5102 if test "$GCC" = yes; then
5103 CFLAGS="-O2"
5104 else
5105 CFLAGS=
5106 fi
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5109 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5110 if ${ac_cv_prog_cc_c89+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 ac_cv_prog_cc_c89=no
5114 ac_save_CC=$CC
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 #include <stdarg.h>
5118 #include <stdio.h>
5119 struct stat;
5120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5121 struct buf { int x; };
5122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5123 static char *e (p, i)
5124 char **p;
5125 int i;
5126 {
5127 return p[i];
5128 }
5129 static char *f (char * (*g) (char **, int), char **p, ...)
5130 {
5131 char *s;
5132 va_list v;
5133 va_start (v,p);
5134 s = g (p, va_arg (v,int));
5135 va_end (v);
5136 return s;
5137 }
5138
5139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5140 function prototypes and stuff, but not '\xHH' hex character constants.
5141 These don't provoke an error unfortunately, instead are silently treated
5142 as 'x'. The following induces an error, until -std is added to get
5143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5144 array size at least. It's necessary to write '\x00'==0 to get something
5145 that's true only with -std. */
5146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5147
5148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5149 inside strings and character constants. */
5150 #define FOO(x) 'x'
5151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5152
5153 int test (int i, double x);
5154 struct s1 {int (*f) (int a);};
5155 struct s2 {int (*f) (double a);};
5156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5157 int argc;
5158 char **argv;
5159 int
5160 main ()
5161 {
5162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5163 ;
5164 return 0;
5165 }
5166 _ACEOF
5167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5169 do
5170 CC="$ac_save_CC $ac_arg"
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 ac_cv_prog_cc_c89=$ac_arg
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext
5175 test "x$ac_cv_prog_cc_c89" != "xno" && break
5176 done
5177 rm -f conftest.$ac_ext
5178 CC=$ac_save_CC
5179
5180 fi
5181 # AC_CACHE_VAL
5182 case "x$ac_cv_prog_cc_c89" in
5183 x)
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5185 $as_echo "none needed" >&6; } ;;
5186 xno)
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5188 $as_echo "unsupported" >&6; } ;;
5189 *)
5190 CC="$CC $ac_cv_prog_cc_c89"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5193 esac
5194 if test "x$ac_cv_prog_cc_c89" != xno; then :
5195
5196 fi
5197
5198 ac_ext=c
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
5204 ac_ext=c
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5210 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5211 if ${am_cv_prog_cc_c_o+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216
5217 int
5218 main ()
5219 {
5220
5221 ;
5222 return 0;
5223 }
5224 _ACEOF
5225 # Make sure it works both with $CC and with simple cc.
5226 # Following AC_PROG_CC_C_O, we do the test twice because some
5227 # compilers refuse to overwrite an existing .o file with -o,
5228 # though they will create one.
5229 am_cv_prog_cc_c_o=yes
5230 for am_i in 1 2; do
5231 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5232 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } \
5236 && test -f conftest2.$ac_objext; then
5237 : OK
5238 else
5239 am_cv_prog_cc_c_o=no
5240 break
5241 fi
5242 done
5243 rm -f core conftest*
5244 unset am_i
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5247 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5248 if test "$am_cv_prog_cc_c_o" != yes; then
5249 # Losing compiler, so override with the script.
5250 # FIXME: It is wrong to rewrite CC.
5251 # But if we don't then we get into trouble of one sort or another.
5252 # A longer-term fix would be to have automake use am__CC in this case,
5253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5254 CC="$am_aux_dir/compile $CC"
5255 fi
5256 ac_ext=c
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
5262
5263 depcc="$CC" am_compiler_list=
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5266 $as_echo_n "checking dependency style of $depcc... " >&6; }
5267 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5271 # We make a subdir and do the tests there. Otherwise we can end up
5272 # making bogus files that we don't know about and never remove. For
5273 # instance it was reported that on HP-UX the gcc test will end up
5274 # making a dummy file named 'D' -- because '-MD' means "put the output
5275 # in D".
5276 rm -rf conftest.dir
5277 mkdir conftest.dir
5278 # Copy depcomp to subdir because otherwise we won't find it if we're
5279 # using a relative directory.
5280 cp "$am_depcomp" conftest.dir
5281 cd conftest.dir
5282 # We will build objects and dependencies in a subdirectory because
5283 # it helps to detect inapplicable dependency modes. For instance
5284 # both Tru64's cc and ICC support -MD to output dependencies as a
5285 # side effect of compilation, but ICC will put the dependencies in
5286 # the current directory while Tru64 will put them in the object
5287 # directory.
5288 mkdir sub
5289
5290 am_cv_CC_dependencies_compiler_type=none
5291 if test "$am_compiler_list" = ""; then
5292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5293 fi
5294 am__universal=false
5295 case " $depcc " in #(
5296 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5297 esac
5298
5299 for depmode in $am_compiler_list; do
5300 # Setup a source with many dependencies, because some compilers
5301 # like to wrap large dependency lists on column 80 (with \), and
5302 # we should not choose a depcomp mode which is confused by this.
5303 #
5304 # We need to recreate these files for each test, as the compiler may
5305 # overwrite some of them when testing with obscure command lines.
5306 # This happens at least with the AIX C compiler.
5307 : > sub/conftest.c
5308 for i in 1 2 3 4 5 6; do
5309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5310 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5311 # Solaris 10 /bin/sh.
5312 echo '/* dummy */' > sub/conftst$i.h
5313 done
5314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5315
5316 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5317 # mode. It turns out that the SunPro C++ compiler does not properly
5318 # handle '-M -o', and we need to detect this. Also, some Intel
5319 # versions had trouble with output in subdirs.
5320 am__obj=sub/conftest.${OBJEXT-o}
5321 am__minus_obj="-o $am__obj"
5322 case $depmode in
5323 gcc)
5324 # This depmode causes a compiler race in universal mode.
5325 test "$am__universal" = false || continue
5326 ;;
5327 nosideeffect)
5328 # After this tag, mechanisms are not by side-effect, so they'll
5329 # only be used when explicitly requested.
5330 if test "x$enable_dependency_tracking" = xyes; then
5331 continue
5332 else
5333 break
5334 fi
5335 ;;
5336 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5337 # This compiler won't grok '-c -o', but also, the minuso test has
5338 # not run yet. These depmodes are late enough in the game, and
5339 # so weak that their functioning should not be impacted.
5340 am__obj=conftest.${OBJEXT-o}
5341 am__minus_obj=
5342 ;;
5343 none) break ;;
5344 esac
5345 if depmode=$depmode \
5346 source=sub/conftest.c object=$am__obj \
5347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5349 >/dev/null 2>conftest.err &&
5350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5354 # icc doesn't choke on unknown options, it will just issue warnings
5355 # or remarks (even with -Werror). So we grep stderr for any message
5356 # that says an option was ignored or not supported.
5357 # When given -MP, icc 7.0 and 7.1 complain thusly:
5358 # icc: Command line warning: ignoring option '-M'; no argument required
5359 # The diagnosis changed in icc 8.0:
5360 # icc: Command line remark: option '-MP' not supported
5361 if (grep 'ignoring option' conftest.err ||
5362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5363 am_cv_CC_dependencies_compiler_type=$depmode
5364 break
5365 fi
5366 fi
5367 done
5368
5369 cd ..
5370 rm -rf conftest.dir
5371 else
5372 am_cv_CC_dependencies_compiler_type=none
5373 fi
5374
5375 fi
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5377 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5378 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5379
5380 if
5381 test "x$enable_dependency_tracking" != xno \
5382 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5383 am__fastdepCC_TRUE=
5384 am__fastdepCC_FALSE='#'
5385 else
5386 am__fastdepCC_TRUE='#'
5387 am__fastdepCC_FALSE=
5388 fi
5389
5390
5391 ac_ext=cpp
5392 ac_cpp='$CXXCPP $CPPFLAGS'
5393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5396 if test -z "$CXX"; then
5397 if test -n "$CCC"; then
5398 CXX=$CCC
5399 else
5400 if test -n "$ac_tool_prefix"; then
5401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5402 do
5403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_prog_CXX+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$CXX"; then
5411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5423 fi
5424 done
5425 done
5426 IFS=$as_save_IFS
5427
5428 fi
5429 fi
5430 CXX=$ac_cv_prog_CXX
5431 if test -n "$CXX"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5433 $as_echo "$CXX" >&6; }
5434 else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5437 fi
5438
5439
5440 test -n "$CXX" && break
5441 done
5442 fi
5443 if test -z "$CXX"; then
5444 ac_ct_CXX=$CXX
5445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5446 do
5447 # Extract the first word of "$ac_prog", so it can be a program name with args.
5448 set dummy $ac_prog; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$ac_ct_CXX"; then
5455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_ac_ct_CXX="$ac_prog"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5475 if test -n "$ac_ct_CXX"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5477 $as_echo "$ac_ct_CXX" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 test -n "$ac_ct_CXX" && break
5485 done
5486
5487 if test "x$ac_ct_CXX" = x; then
5488 CXX="g++"
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491 yes:)
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494 ac_tool_warned=yes ;;
5495 esac
5496 CXX=$ac_ct_CXX
5497 fi
5498 fi
5499
5500 fi
5501 fi
5502 # Provide some information about the compiler.
5503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5504 set X $ac_compile
5505 ac_compiler=$2
5506 for ac_option in --version -v -V -qversion; do
5507 { { ac_try="$ac_compiler $ac_option >&5"
5508 case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5513 $as_echo "$ac_try_echo"; } >&5
5514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5515 ac_status=$?
5516 if test -s conftest.err; then
5517 sed '10a\
5518 ... rest of stderr output deleted ...
5519 10q' conftest.err >conftest.er1
5520 cat conftest.er1 >&5
5521 fi
5522 rm -f conftest.er1 conftest.err
5523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5524 test $ac_status = 0; }
5525 done
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5529 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534
5535 int
5536 main ()
5537 {
5538 #ifndef __GNUC__
5539 choke me
5540 #endif
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_cxx_try_compile "$LINENO"; then :
5547 ac_compiler_gnu=yes
5548 else
5549 ac_compiler_gnu=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5553
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5557 if test $ac_compiler_gnu = yes; then
5558 GXX=yes
5559 else
5560 GXX=
5561 fi
5562 ac_test_CXXFLAGS=${CXXFLAGS+set}
5563 ac_save_CXXFLAGS=$CXXFLAGS
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5566 if ${ac_cv_prog_cxx_g+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5570 ac_cxx_werror_flag=yes
5571 ac_cv_prog_cxx_g=no
5572 CXXFLAGS="-g"
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575
5576 int
5577 main ()
5578 {
5579
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 if ac_fn_cxx_try_compile "$LINENO"; then :
5585 ac_cv_prog_cxx_g=yes
5586 else
5587 CXXFLAGS=""
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590
5591 int
5592 main ()
5593 {
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 if ac_fn_cxx_try_compile "$LINENO"; then :
5600
5601 else
5602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5603 CXXFLAGS="-g"
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606
5607 int
5608 main ()
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_cxx_try_compile "$LINENO"; then :
5616 ac_cv_prog_cxx_g=yes
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5624 fi
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5627 if test "$ac_test_CXXFLAGS" = set; then
5628 CXXFLAGS=$ac_save_CXXFLAGS
5629 elif test $ac_cv_prog_cxx_g = yes; then
5630 if test "$GXX" = yes; then
5631 CXXFLAGS="-g -O2"
5632 else
5633 CXXFLAGS="-g"
5634 fi
5635 else
5636 if test "$GXX" = yes; then
5637 CXXFLAGS="-O2"
5638 else
5639 CXXFLAGS=
5640 fi
5641 fi
5642 ac_ext=c
5643 ac_cpp='$CPP $CPPFLAGS'
5644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647
5648 depcc="$CXX" am_compiler_list=
5649
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5651 $as_echo_n "checking dependency style of $depcc... " >&6; }
5652 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5656 # We make a subdir and do the tests there. Otherwise we can end up
5657 # making bogus files that we don't know about and never remove. For
5658 # instance it was reported that on HP-UX the gcc test will end up
5659 # making a dummy file named 'D' -- because '-MD' means "put the output
5660 # in D".
5661 rm -rf conftest.dir
5662 mkdir conftest.dir
5663 # Copy depcomp to subdir because otherwise we won't find it if we're
5664 # using a relative directory.
5665 cp "$am_depcomp" conftest.dir
5666 cd conftest.dir
5667 # We will build objects and dependencies in a subdirectory because
5668 # it helps to detect inapplicable dependency modes. For instance
5669 # both Tru64's cc and ICC support -MD to output dependencies as a
5670 # side effect of compilation, but ICC will put the dependencies in
5671 # the current directory while Tru64 will put them in the object
5672 # directory.
5673 mkdir sub
5674
5675 am_cv_CXX_dependencies_compiler_type=none
5676 if test "$am_compiler_list" = ""; then
5677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5678 fi
5679 am__universal=false
5680 case " $depcc " in #(
5681 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5682 esac
5683
5684 for depmode in $am_compiler_list; do
5685 # Setup a source with many dependencies, because some compilers
5686 # like to wrap large dependency lists on column 80 (with \), and
5687 # we should not choose a depcomp mode which is confused by this.
5688 #
5689 # We need to recreate these files for each test, as the compiler may
5690 # overwrite some of them when testing with obscure command lines.
5691 # This happens at least with the AIX C compiler.
5692 : > sub/conftest.c
5693 for i in 1 2 3 4 5 6; do
5694 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5695 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5696 # Solaris 10 /bin/sh.
5697 echo '/* dummy */' > sub/conftst$i.h
5698 done
5699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5700
5701 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5702 # mode. It turns out that the SunPro C++ compiler does not properly
5703 # handle '-M -o', and we need to detect this. Also, some Intel
5704 # versions had trouble with output in subdirs.
5705 am__obj=sub/conftest.${OBJEXT-o}
5706 am__minus_obj="-o $am__obj"
5707 case $depmode in
5708 gcc)
5709 # This depmode causes a compiler race in universal mode.
5710 test "$am__universal" = false || continue
5711 ;;
5712 nosideeffect)
5713 # After this tag, mechanisms are not by side-effect, so they'll
5714 # only be used when explicitly requested.
5715 if test "x$enable_dependency_tracking" = xyes; then
5716 continue
5717 else
5718 break
5719 fi
5720 ;;
5721 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5722 # This compiler won't grok '-c -o', but also, the minuso test has
5723 # not run yet. These depmodes are late enough in the game, and
5724 # so weak that their functioning should not be impacted.
5725 am__obj=conftest.${OBJEXT-o}
5726 am__minus_obj=
5727 ;;
5728 none) break ;;
5729 esac
5730 if depmode=$depmode \
5731 source=sub/conftest.c object=$am__obj \
5732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5733 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5734 >/dev/null 2>conftest.err &&
5735 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5737 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5739 # icc doesn't choke on unknown options, it will just issue warnings
5740 # or remarks (even with -Werror). So we grep stderr for any message
5741 # that says an option was ignored or not supported.
5742 # When given -MP, icc 7.0 and 7.1 complain thusly:
5743 # icc: Command line warning: ignoring option '-M'; no argument required
5744 # The diagnosis changed in icc 8.0:
5745 # icc: Command line remark: option '-MP' not supported
5746 if (grep 'ignoring option' conftest.err ||
5747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5748 am_cv_CXX_dependencies_compiler_type=$depmode
5749 break
5750 fi
5751 fi
5752 done
5753
5754 cd ..
5755 rm -rf conftest.dir
5756 else
5757 am_cv_CXX_dependencies_compiler_type=none
5758 fi
5759
5760 fi
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5762 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5763 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5764
5765 if
5766 test "x$enable_dependency_tracking" != xno \
5767 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5768 am__fastdepCXX_TRUE=
5769 am__fastdepCXX_FALSE='#'
5770 else
5771 am__fastdepCXX_TRUE='#'
5772 am__fastdepCXX_FALSE=
5773 fi
5774
5775
5776
5777 if test -n "$ac_tool_prefix"; then
5778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5779 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_RANLIB+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if test -n "$RANLIB"; then
5786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799 done
5800 done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 RANLIB=$ac_cv_prog_RANLIB
5806 if test -n "$RANLIB"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5808 $as_echo "$RANLIB" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813
5814
5815 fi
5816 if test -z "$ac_cv_prog_RANLIB"; then
5817 ac_ct_RANLIB=$RANLIB
5818 # Extract the first word of "ranlib", so it can be a program name with args.
5819 set dummy ranlib; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$ac_ct_RANLIB"; then
5826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_ac_ct_RANLIB="ranlib"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5846 if test -n "$ac_ct_RANLIB"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5848 $as_echo "$ac_ct_RANLIB" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854 if test "x$ac_ct_RANLIB" = x; then
5855 RANLIB=":"
5856 else
5857 case $cross_compiling:$ac_tool_warned in
5858 yes:)
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861 ac_tool_warned=yes ;;
5862 esac
5863 RANLIB=$ac_ct_RANLIB
5864 fi
5865 else
5866 RANLIB="$ac_cv_prog_RANLIB"
5867 fi
5868
5869 if test -n "$ac_tool_prefix"; then
5870 for ac_prog in ar lib "link -lib"
5871 do
5872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_AR+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$AR"; then
5880 ac_cv_prog_AR="$AR" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 AR=$ac_cv_prog_AR
5900 if test -n "$AR"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5902 $as_echo "$AR" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908
5909 test -n "$AR" && break
5910 done
5911 fi
5912 if test -z "$AR"; then
5913 ac_ct_AR=$AR
5914 for ac_prog in ar lib "link -lib"
5915 do
5916 # Extract the first word of "$ac_prog", so it can be a program name with args.
5917 set dummy $ac_prog; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$ac_ct_AR"; then
5924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_ac_ct_AR="$ac_prog"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5944 if test -n "$ac_ct_AR"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5946 $as_echo "$ac_ct_AR" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5950 fi
5951
5952
5953 test -n "$ac_ct_AR" && break
5954 done
5955
5956 if test "x$ac_ct_AR" = x; then
5957 AR="false"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965 AR=$ac_ct_AR
5966 fi
5967 fi
5968
5969 : ${AR=ar}
5970
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5972 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5973 if ${am_cv_ar_interface+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 ac_ext=c
5977 ac_cpp='$CPP $CPPFLAGS'
5978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5981
5982 am_cv_ar_interface=ar
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 int some_variable = 0;
5986 _ACEOF
5987 if ac_fn_c_try_compile "$LINENO"; then :
5988 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5990 (eval $am_ar_try) 2>&5
5991 ac_status=$?
5992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993 test $ac_status = 0; }
5994 if test "$ac_status" -eq 0; then
5995 am_cv_ar_interface=ar
5996 else
5997 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5999 (eval $am_ar_try) 2>&5
6000 ac_status=$?
6001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002 test $ac_status = 0; }
6003 if test "$ac_status" -eq 0; then
6004 am_cv_ar_interface=lib
6005 else
6006 am_cv_ar_interface=unknown
6007 fi
6008 fi
6009 rm -f conftest.lib libconftest.a
6010
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 ac_ext=c
6014 ac_cpp='$CPP $CPPFLAGS'
6015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018
6019 fi
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6021 $as_echo "$am_cv_ar_interface" >&6; }
6022
6023 case $am_cv_ar_interface in
6024 ar)
6025 ;;
6026 lib)
6027 # Microsoft lib, so override with the ar-lib wrapper script.
6028 # FIXME: It is wrong to rewrite AR.
6029 # But if we don't then we get into trouble of one sort or another.
6030 # A longer-term fix would be to have automake use am__AR in this case,
6031 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6032 # similar.
6033 AR="$am_aux_dir/ar-lib $AR"
6034 ;;
6035 unknown)
6036 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6037 ;;
6038 esac
6039
6040
6041 # Check whether --enable-shared was given.
6042 if test "${enable_shared+set}" = set; then :
6043 enableval=$enable_shared; p=${PACKAGE-default}
6044 case $enableval in
6045 yes) enable_shared=yes ;;
6046 no) enable_shared=no ;;
6047 *)
6048 enable_shared=no
6049 # Look at the argument we got. We use all the common list separators.
6050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6051 for pkg in $enableval; do
6052 IFS="$lt_save_ifs"
6053 if test "X$pkg" = "X$p"; then
6054 enable_shared=yes
6055 fi
6056 done
6057 IFS="$lt_save_ifs"
6058 ;;
6059 esac
6060 else
6061 enable_shared=no
6062 fi
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 case `pwd` in
6073 *\ * | *\ *)
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6075 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6076 esac
6077
6078
6079
6080 macro_version='2.2.7a'
6081 macro_revision='1.3134'
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 ltmain="$ac_aux_dir/ltmain.sh"
6096
6097 # Backslashify metacharacters that are still active within
6098 # double-quoted strings.
6099 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6100
6101 # Same as above, but do not quote variable references.
6102 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6103
6104 # Sed substitution to delay expansion of an escaped shell variable in a
6105 # double_quote_subst'ed string.
6106 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6107
6108 # Sed substitution to delay expansion of an escaped single quote.
6109 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6110
6111 # Sed substitution to avoid accidental globbing in evaled expressions
6112 no_glob_subst='s/\*/\\\*/g'
6113
6114 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6115 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6116 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6119 $as_echo_n "checking how to print strings... " >&6; }
6120 # Test print first, because it will be a builtin if present.
6121 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6122 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6123 ECHO='print -r --'
6124 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6125 ECHO='printf %s\n'
6126 else
6127 # Use this function as a fallback that always works.
6128 func_fallback_echo ()
6129 {
6130 eval 'cat <<_LTECHO_EOF
6131 $1
6132 _LTECHO_EOF'
6133 }
6134 ECHO='func_fallback_echo'
6135 fi
6136
6137 # func_echo_all arg...
6138 # Invoke $ECHO with all args, space-separated.
6139 func_echo_all ()
6140 {
6141 $ECHO ""
6142 }
6143
6144 case "$ECHO" in
6145 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6146 $as_echo "printf" >&6; } ;;
6147 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6148 $as_echo "print -r" >&6; } ;;
6149 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6150 $as_echo "cat" >&6; } ;;
6151 esac
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6167 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6168 if ${ac_cv_path_SED+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6172 for ac_i in 1 2 3 4 5 6 7; do
6173 ac_script="$ac_script$as_nl$ac_script"
6174 done
6175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6176 { ac_script=; unset ac_script;}
6177 if test -z "$SED"; then
6178 ac_path_SED_found=false
6179 # Loop through the user's path and test for each of PROGNAME-LIST
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_prog in sed gsed; do
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6188 as_fn_executable_p "$ac_path_SED" || continue
6189 # Check for GNU ac_path_SED and select it if it is found.
6190 # Check for GNU $ac_path_SED
6191 case `"$ac_path_SED" --version 2>&1` in
6192 *GNU*)
6193 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6194 *)
6195 ac_count=0
6196 $as_echo_n 0123456789 >"conftest.in"
6197 while :
6198 do
6199 cat "conftest.in" "conftest.in" >"conftest.tmp"
6200 mv "conftest.tmp" "conftest.in"
6201 cp "conftest.in" "conftest.nl"
6202 $as_echo '' >> "conftest.nl"
6203 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6205 as_fn_arith $ac_count + 1 && ac_count=$as_val
6206 if test $ac_count -gt ${ac_path_SED_max-0}; then
6207 # Best one so far, save it but keep looking for a better one
6208 ac_cv_path_SED="$ac_path_SED"
6209 ac_path_SED_max=$ac_count
6210 fi
6211 # 10*(2^10) chars as input seems more than enough
6212 test $ac_count -gt 10 && break
6213 done
6214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6215 esac
6216
6217 $ac_path_SED_found && break 3
6218 done
6219 done
6220 done
6221 IFS=$as_save_IFS
6222 if test -z "$ac_cv_path_SED"; then
6223 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6224 fi
6225 else
6226 ac_cv_path_SED=$SED
6227 fi
6228
6229 fi
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6231 $as_echo "$ac_cv_path_SED" >&6; }
6232 SED="$ac_cv_path_SED"
6233 rm -f conftest.sed
6234
6235 test -z "$SED" && SED=sed
6236 Xsed="$SED -e 1s/^X//"
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6249 $as_echo_n "checking for fgrep... " >&6; }
6250 if ${ac_cv_path_FGREP+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6254 then ac_cv_path_FGREP="$GREP -F"
6255 else
6256 if test -z "$FGREP"; then
6257 ac_path_FGREP_found=false
6258 # Loop through the user's path and test for each of PROGNAME-LIST
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6261 do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_prog in fgrep; do
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6267 as_fn_executable_p "$ac_path_FGREP" || continue
6268 # Check for GNU ac_path_FGREP and select it if it is found.
6269 # Check for GNU $ac_path_FGREP
6270 case `"$ac_path_FGREP" --version 2>&1` in
6271 *GNU*)
6272 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6273 *)
6274 ac_count=0
6275 $as_echo_n 0123456789 >"conftest.in"
6276 while :
6277 do
6278 cat "conftest.in" "conftest.in" >"conftest.tmp"
6279 mv "conftest.tmp" "conftest.in"
6280 cp "conftest.in" "conftest.nl"
6281 $as_echo 'FGREP' >> "conftest.nl"
6282 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6284 as_fn_arith $ac_count + 1 && ac_count=$as_val
6285 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6286 # Best one so far, save it but keep looking for a better one
6287 ac_cv_path_FGREP="$ac_path_FGREP"
6288 ac_path_FGREP_max=$ac_count
6289 fi
6290 # 10*(2^10) chars as input seems more than enough
6291 test $ac_count -gt 10 && break
6292 done
6293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6294 esac
6295
6296 $ac_path_FGREP_found && break 3
6297 done
6298 done
6299 done
6300 IFS=$as_save_IFS
6301 if test -z "$ac_cv_path_FGREP"; then
6302 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6303 fi
6304 else
6305 ac_cv_path_FGREP=$FGREP
6306 fi
6307
6308 fi
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6311 $as_echo "$ac_cv_path_FGREP" >&6; }
6312 FGREP="$ac_cv_path_FGREP"
6313
6314
6315 test -z "$GREP" && GREP=grep
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 # Check whether --with-gnu-ld was given.
6336 if test "${with_gnu_ld+set}" = set; then :
6337 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6338 else
6339 with_gnu_ld=no
6340 fi
6341
6342 ac_prog=ld
6343 if test "$GCC" = yes; then
6344 # Check if gcc -print-prog-name=ld gives a path.
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6346 $as_echo_n "checking for ld used by $CC... " >&6; }
6347 case $host in
6348 *-*-mingw*)
6349 # gcc leaves a trailing carriage return which upsets mingw
6350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6351 *)
6352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6353 esac
6354 case $ac_prog in
6355 # Accept absolute paths.
6356 [\\/]* | ?:[\\/]*)
6357 re_direlt='/[^/][^/]*/\.\./'
6358 # Canonicalize the pathname of ld
6359 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6360 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6361 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6362 done
6363 test -z "$LD" && LD="$ac_prog"
6364 ;;
6365 "")
6366 # If it fails, then pretend we aren't using GCC.
6367 ac_prog=ld
6368 ;;
6369 *)
6370 # If it is relative, then search for the first ld in PATH.
6371 with_gnu_ld=unknown
6372 ;;
6373 esac
6374 elif test "$with_gnu_ld" = yes; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6376 $as_echo_n "checking for GNU ld... " >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6379 $as_echo_n "checking for non-GNU ld... " >&6; }
6380 fi
6381 if ${lt_cv_path_LD+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -z "$LD"; then
6385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6386 for ac_dir in $PATH; do
6387 IFS="$lt_save_ifs"
6388 test -z "$ac_dir" && ac_dir=.
6389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6390 lt_cv_path_LD="$ac_dir/$ac_prog"
6391 # Check to see if the program is GNU ld. I'd rather use --version,
6392 # but apparently some variants of GNU ld only accept -v.
6393 # Break only if it was the GNU/non-GNU ld that we prefer.
6394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6395 *GNU* | *'with BFD'*)
6396 test "$with_gnu_ld" != no && break
6397 ;;
6398 *)
6399 test "$with_gnu_ld" != yes && break
6400 ;;
6401 esac
6402 fi
6403 done
6404 IFS="$lt_save_ifs"
6405 else
6406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6407 fi
6408 fi
6409
6410 LD="$lt_cv_path_LD"
6411 if test -n "$LD"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6413 $as_echo "$LD" >&6; }
6414 else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6420 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6421 if ${lt_cv_prog_gnu_ld+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6425 case `$LD -v 2>&1 </dev/null` in
6426 *GNU* | *'with BFD'*)
6427 lt_cv_prog_gnu_ld=yes
6428 ;;
6429 *)
6430 lt_cv_prog_gnu_ld=no
6431 ;;
6432 esac
6433 fi
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6435 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6436 with_gnu_ld=$lt_cv_prog_gnu_ld
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6447 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6448 if ${lt_cv_path_NM+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$NM"; then
6452 # Let the user override the nm to test.
6453 lt_nm_to_check="$NM"
6454 else
6455 lt_nm_to_check="${ac_tool_prefix}nm"
6456 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6457 lt_nm_to_check="$lt_nm_to_check nm"
6458 fi
6459 fi
6460 for lt_tmp_nm in "$lt_nm_to_check"; do
6461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6462 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6463 IFS="$lt_save_ifs"
6464 test -z "$ac_dir" && ac_dir=.
6465 # Strip out any user-provided options from the nm to test twice,
6466 # the first time to test to see if nm (rather than its options) has
6467 # an explicit path, the second time to yield a file which can be
6468 # nm'ed itself.
6469 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6470 case "$tmp_nm_path" in
6471 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6472 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6473 esac
6474 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6475 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6476 # Check to see if the nm accepts a BSD-compat flag.
6477 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6478 # nm: unknown option "B" ignored
6479 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6480 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6481 break
6482 ;;
6483 *)
6484 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6485 *$tmp_nm*)
6486 lt_cv_path_NM="$tmp_nm -p"
6487 break
6488 ;;
6489 *)
6490 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6491 continue # so that we can try to find one that supports BSD flags
6492 ;;
6493 esac
6494 ;;
6495 esac
6496 fi
6497 done
6498 IFS="$lt_save_ifs"
6499 done
6500 : ${lt_cv_path_NM=no}
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6503 $as_echo "$lt_cv_path_NM" >&6; }
6504 if test "$lt_cv_path_NM" != "no"; then
6505 NM="$lt_cv_path_NM"
6506 else
6507 # Didn't find any BSD compatible name lister, look for dumpbin.
6508 if test -n "$DUMPBIN"; then :
6509 # Let the user override the test.
6510 else
6511 if test -n "$ac_tool_prefix"; then
6512 for ac_prog in dumpbin "link -dump"
6513 do
6514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_DUMPBIN+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$DUMPBIN"; then
6522 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 DUMPBIN=$ac_cv_prog_DUMPBIN
6542 if test -n "$DUMPBIN"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6544 $as_echo "$DUMPBIN" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550
6551 test -n "$DUMPBIN" && break
6552 done
6553 fi
6554 if test -z "$DUMPBIN"; then
6555 ac_ct_DUMPBIN=$DUMPBIN
6556 for ac_prog in dumpbin "link -dump"
6557 do
6558 # Extract the first word of "$ac_prog", so it can be a program name with args.
6559 set dummy $ac_prog; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if test -n "$ac_ct_DUMPBIN"; then
6566 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6578 fi
6579 done
6580 done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6586 if test -n "$ac_ct_DUMPBIN"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6588 $as_echo "$ac_ct_DUMPBIN" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594
6595 test -n "$ac_ct_DUMPBIN" && break
6596 done
6597
6598 if test "x$ac_ct_DUMPBIN" = x; then
6599 DUMPBIN=":"
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607 DUMPBIN=$ac_ct_DUMPBIN
6608 fi
6609 fi
6610
6611 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6612 *COFF*)
6613 DUMPBIN="$DUMPBIN -symbols"
6614 ;;
6615 *)
6616 DUMPBIN=:
6617 ;;
6618 esac
6619 fi
6620
6621 if test "$DUMPBIN" != ":"; then
6622 NM="$DUMPBIN"
6623 fi
6624 fi
6625 test -z "$NM" && NM=nm
6626
6627
6628
6629
6630
6631
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6633 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6634 if ${lt_cv_nm_interface+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 lt_cv_nm_interface="BSD nm"
6638 echo "int some_variable = 0;" > conftest.$ac_ext
6639 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6640 (eval "$ac_compile" 2>conftest.err)
6641 cat conftest.err >&5
6642 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6643 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6644 cat conftest.err >&5
6645 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6646 cat conftest.out >&5
6647 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6648 lt_cv_nm_interface="MS dumpbin"
6649 fi
6650 rm -f conftest*
6651 fi
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6653 $as_echo "$lt_cv_nm_interface" >&6; }
6654
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6656 $as_echo_n "checking whether ln -s works... " >&6; }
6657 LN_S=$as_ln_s
6658 if test "$LN_S" = "ln -s"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6660 $as_echo "yes" >&6; }
6661 else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6663 $as_echo "no, using $LN_S" >&6; }
6664 fi
6665
6666 # find the maximum length of command line arguments
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6668 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6669 if ${lt_cv_sys_max_cmd_len+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 i=0
6673 teststring="ABCD"
6674
6675 case $build_os in
6676 msdosdjgpp*)
6677 # On DJGPP, this test can blow up pretty badly due to problems in libc
6678 # (any single argument exceeding 2000 bytes causes a buffer overrun
6679 # during glob expansion). Even if it were fixed, the result of this
6680 # check would be larger than it should be.
6681 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6682 ;;
6683
6684 gnu*)
6685 # Under GNU Hurd, this test is not required because there is
6686 # no limit to the length of command line arguments.
6687 # Libtool will interpret -1 as no limit whatsoever
6688 lt_cv_sys_max_cmd_len=-1;
6689 ;;
6690
6691 cygwin* | mingw* | cegcc*)
6692 # On Win9x/ME, this test blows up -- it succeeds, but takes
6693 # about 5 minutes as the teststring grows exponentially.
6694 # Worse, since 9x/ME are not pre-emptively multitasking,
6695 # you end up with a "frozen" computer, even though with patience
6696 # the test eventually succeeds (with a max line length of 256k).
6697 # Instead, let's just punt: use the minimum linelength reported by
6698 # all of the supported platforms: 8192 (on NT/2K/XP).
6699 lt_cv_sys_max_cmd_len=8192;
6700 ;;
6701
6702 mint*)
6703 # On MiNT this can take a long time and run out of memory.
6704 lt_cv_sys_max_cmd_len=8192;
6705 ;;
6706
6707 amigaos*)
6708 # On AmigaOS with pdksh, this test takes hours, literally.
6709 # So we just punt and use a minimum line length of 8192.
6710 lt_cv_sys_max_cmd_len=8192;
6711 ;;
6712
6713 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6714 # This has been around since 386BSD, at least. Likely further.
6715 if test -x /sbin/sysctl; then
6716 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6717 elif test -x /usr/sbin/sysctl; then
6718 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6719 else
6720 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6721 fi
6722 # And add a safety zone
6723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6725 ;;
6726
6727 interix*)
6728 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6729 lt_cv_sys_max_cmd_len=196608
6730 ;;
6731
6732 osf*)
6733 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6734 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6735 # nice to cause kernel panics so lets avoid the loop below.
6736 # First set a reasonable default.
6737 lt_cv_sys_max_cmd_len=16384
6738 #
6739 if test -x /sbin/sysconfig; then
6740 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6741 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6742 esac
6743 fi
6744 ;;
6745 sco3.2v5*)
6746 lt_cv_sys_max_cmd_len=102400
6747 ;;
6748 sysv5* | sco5v6* | sysv4.2uw2*)
6749 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6750 if test -n "$kargmax"; then
6751 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6752 else
6753 lt_cv_sys_max_cmd_len=32768
6754 fi
6755 ;;
6756 *)
6757 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6758 if test -n "$lt_cv_sys_max_cmd_len"; then
6759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6761 else
6762 # Make teststring a little bigger before we do anything with it.
6763 # a 1K string should be a reasonable start.
6764 for i in 1 2 3 4 5 6 7 8 ; do
6765 teststring=$teststring$teststring
6766 done
6767 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6768 # If test is not a shell built-in, we'll probably end up computing a
6769 # maximum length that is only half of the actual maximum length, but
6770 # we can't tell.
6771 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6772 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6773 test $i != 17 # 1/2 MB should be enough
6774 do
6775 i=`expr $i + 1`
6776 teststring=$teststring$teststring
6777 done
6778 # Only check the string length outside the loop.
6779 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6780 teststring=
6781 # Add a significant safety factor because C++ compilers can tack on
6782 # massive amounts of additional arguments before passing them to the
6783 # linker. It appears as though 1/2 is a usable value.
6784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6785 fi
6786 ;;
6787 esac
6788
6789 fi
6790
6791 if test -n $lt_cv_sys_max_cmd_len ; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6793 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6796 $as_echo "none" >&6; }
6797 fi
6798 max_cmd_len=$lt_cv_sys_max_cmd_len
6799
6800
6801
6802
6803
6804
6805 : ${CP="cp -f"}
6806 : ${MV="mv -f"}
6807 : ${RM="rm -f"}
6808
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6810 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6811 # Try some XSI features
6812 xsi_shell=no
6813 ( _lt_dummy="a/b/c"
6814 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6815 = c,a/b,, \
6816 && eval 'test $(( 1 + 1 )) -eq 2 \
6817 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6818 && xsi_shell=yes
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6820 $as_echo "$xsi_shell" >&6; }
6821
6822
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6824 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6825 lt_shell_append=no
6826 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6827 >/dev/null 2>&1 \
6828 && lt_shell_append=yes
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6830 $as_echo "$lt_shell_append" >&6; }
6831
6832
6833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6834 lt_unset=unset
6835 else
6836 lt_unset=false
6837 fi
6838
6839
6840
6841
6842
6843 # test EBCDIC or ASCII
6844 case `echo X|tr X '\101'` in
6845 A) # ASCII based system
6846 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6847 lt_SP2NL='tr \040 \012'
6848 lt_NL2SP='tr \015\012 \040\040'
6849 ;;
6850 *) # EBCDIC based system
6851 lt_SP2NL='tr \100 \n'
6852 lt_NL2SP='tr \r\n \100\100'
6853 ;;
6854 esac
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6865 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6866 if ${lt_cv_ld_reload_flag+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 lt_cv_ld_reload_flag='-r'
6870 fi
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6872 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6873 reload_flag=$lt_cv_ld_reload_flag
6874 case $reload_flag in
6875 "" | " "*) ;;
6876 *) reload_flag=" $reload_flag" ;;
6877 esac
6878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6879 case $host_os in
6880 darwin*)
6881 if test "$GCC" = yes; then
6882 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6883 else
6884 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6885 fi
6886 ;;
6887 esac
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897 if test -n "$ac_tool_prefix"; then
6898 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if ${ac_cv_prog_OBJDUMP+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 if test -n "$OBJDUMP"; then
6906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919 done
6920 done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 OBJDUMP=$ac_cv_prog_OBJDUMP
6926 if test -n "$OBJDUMP"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6928 $as_echo "$OBJDUMP" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935 fi
6936 if test -z "$ac_cv_prog_OBJDUMP"; then
6937 ac_ct_OBJDUMP=$OBJDUMP
6938 # Extract the first word of "objdump", so it can be a program name with args.
6939 set dummy objdump; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$ac_ct_OBJDUMP"; then
6946 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6966 if test -n "$ac_ct_OBJDUMP"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6968 $as_echo "$ac_ct_OBJDUMP" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974 if test "x$ac_ct_OBJDUMP" = x; then
6975 OBJDUMP="false"
6976 else
6977 case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983 OBJDUMP=$ac_ct_OBJDUMP
6984 fi
6985 else
6986 OBJDUMP="$ac_cv_prog_OBJDUMP"
6987 fi
6988
6989 test -z "$OBJDUMP" && OBJDUMP=objdump
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7000 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7001 if ${lt_cv_deplibs_check_method+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 lt_cv_file_magic_cmd='$MAGIC_CMD'
7005 lt_cv_file_magic_test_file=
7006 lt_cv_deplibs_check_method='unknown'
7007 # Need to set the preceding variable on all platforms that support
7008 # interlibrary dependencies.
7009 # 'none' -- dependencies not supported.
7010 # `unknown' -- same as none, but documents that we really don't know.
7011 # 'pass_all' -- all dependencies passed with no checks.
7012 # 'test_compile' -- check by making test program.
7013 # 'file_magic [[regex]]' -- check by looking for files in library path
7014 # which responds to the $file_magic_cmd with a given extended regex.
7015 # If you have `file' or equivalent on your system and you're not sure
7016 # whether `pass_all' will *always* work, you probably want this one.
7017
7018 case $host_os in
7019 aix[4-9]*)
7020 lt_cv_deplibs_check_method=pass_all
7021 ;;
7022
7023 beos*)
7024 lt_cv_deplibs_check_method=pass_all
7025 ;;
7026
7027 bsdi[45]*)
7028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7029 lt_cv_file_magic_cmd='/usr/bin/file -L'
7030 lt_cv_file_magic_test_file=/shlib/libc.so
7031 ;;
7032
7033 cygwin*)
7034 # func_win32_libid is a shell function defined in ltmain.sh
7035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7036 lt_cv_file_magic_cmd='func_win32_libid'
7037 ;;
7038
7039 mingw* | pw32*)
7040 # Base MSYS/MinGW do not provide the 'file' command needed by
7041 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7042 # unless we find 'file', for example because we are cross-compiling.
7043 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7044 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7046 lt_cv_file_magic_cmd='func_win32_libid'
7047 else
7048 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7049 lt_cv_file_magic_cmd='$OBJDUMP -f'
7050 fi
7051 ;;
7052
7053 cegcc*)
7054 # use the weaker test based on 'objdump'. See mingw*.
7055 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7056 lt_cv_file_magic_cmd='$OBJDUMP -f'
7057 ;;
7058
7059 darwin* | rhapsody*)
7060 lt_cv_deplibs_check_method=pass_all
7061 ;;
7062
7063 freebsd* | dragonfly*)
7064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7065 case $host_cpu in
7066 i*86 )
7067 # Not sure whether the presence of OpenBSD here was a mistake.
7068 # Let's accept both of them until this is cleared up.
7069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7070 lt_cv_file_magic_cmd=/usr/bin/file
7071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7072 ;;
7073 esac
7074 else
7075 lt_cv_deplibs_check_method=pass_all
7076 fi
7077 ;;
7078
7079 gnu*)
7080 lt_cv_deplibs_check_method=pass_all
7081 ;;
7082
7083 haiku*)
7084 lt_cv_deplibs_check_method=pass_all
7085 ;;
7086
7087 hpux10.20* | hpux11*)
7088 lt_cv_file_magic_cmd=/usr/bin/file
7089 case $host_cpu in
7090 ia64*)
7091 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7092 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7093 ;;
7094 hppa*64*)
7095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7096 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7097 ;;
7098 *)
7099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7100 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7101 ;;
7102 esac
7103 ;;
7104
7105 interix[3-9]*)
7106 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7108 ;;
7109
7110 irix5* | irix6* | nonstopux*)
7111 case $LD in
7112 *-32|*"-32 ") libmagic=32-bit;;
7113 *-n32|*"-n32 ") libmagic=N32;;
7114 *-64|*"-64 ") libmagic=64-bit;;
7115 *) libmagic=never-match;;
7116 esac
7117 lt_cv_deplibs_check_method=pass_all
7118 ;;
7119
7120 # This must be Linux ELF.
7121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7122 lt_cv_deplibs_check_method=pass_all
7123 ;;
7124
7125 netbsd*)
7126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7128 else
7129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7130 fi
7131 ;;
7132
7133 newos6*)
7134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7135 lt_cv_file_magic_cmd=/usr/bin/file
7136 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7137 ;;
7138
7139 *nto* | *qnx*)
7140 lt_cv_deplibs_check_method=pass_all
7141 ;;
7142
7143 openbsd*)
7144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7146 else
7147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7148 fi
7149 ;;
7150
7151 osf3* | osf4* | osf5*)
7152 lt_cv_deplibs_check_method=pass_all
7153 ;;
7154
7155 rdos*)
7156 lt_cv_deplibs_check_method=pass_all
7157 ;;
7158
7159 solaris*)
7160 lt_cv_deplibs_check_method=pass_all
7161 ;;
7162
7163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7164 lt_cv_deplibs_check_method=pass_all
7165 ;;
7166
7167 sysv4 | sysv4.3*)
7168 case $host_vendor in
7169 motorola)
7170 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]'
7171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7172 ;;
7173 ncr)
7174 lt_cv_deplibs_check_method=pass_all
7175 ;;
7176 sequent)
7177 lt_cv_file_magic_cmd='/bin/file'
7178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7179 ;;
7180 sni)
7181 lt_cv_file_magic_cmd='/bin/file'
7182 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7183 lt_cv_file_magic_test_file=/lib/libc.so
7184 ;;
7185 siemens)
7186 lt_cv_deplibs_check_method=pass_all
7187 ;;
7188 pc)
7189 lt_cv_deplibs_check_method=pass_all
7190 ;;
7191 esac
7192 ;;
7193
7194 tpf*)
7195 lt_cv_deplibs_check_method=pass_all
7196 ;;
7197 esac
7198
7199 fi
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7201 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7202 file_magic_cmd=$lt_cv_file_magic_cmd
7203 deplibs_check_method=$lt_cv_deplibs_check_method
7204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217 plugin_option=
7218 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7219 for plugin in $plugin_names; do
7220 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7221 if test x$plugin_so = x$plugin; then
7222 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7223 fi
7224 if test x$plugin_so != x$plugin; then
7225 plugin_option="--plugin $plugin_so"
7226 break
7227 fi
7228 done
7229
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}ar; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if ${ac_cv_prog_AR+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if test -n "$AR"; then
7239 ac_cv_prog_AR="$AR" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_AR="${ac_tool_prefix}ar"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 AR=$ac_cv_prog_AR
7259 if test -n "$AR"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7261 $as_echo "$AR" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266
7267
7268 fi
7269 if test -z "$ac_cv_prog_AR"; then
7270 ac_ct_AR=$AR
7271 # Extract the first word of "ar", so it can be a program name with args.
7272 set dummy ar; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$ac_ct_AR"; then
7279 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_ac_ct_AR="ar"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7299 if test -n "$ac_ct_AR"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7301 $as_echo "$ac_ct_AR" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307 if test "x$ac_ct_AR" = x; then
7308 AR="false"
7309 else
7310 case $cross_compiling:$ac_tool_warned in
7311 yes:)
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314 ac_tool_warned=yes ;;
7315 esac
7316 AR=$ac_ct_AR
7317 fi
7318 else
7319 AR="$ac_cv_prog_AR"
7320 fi
7321
7322 test -z "$AR" && AR=ar
7323 if test -n "$plugin_option"; then
7324 if $AR --help 2>&1 | grep -q "\--plugin"; then
7325 touch conftest.c
7326 $AR $plugin_option rc conftest.a conftest.c
7327 if test "$?" != 0; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7329 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7330 else
7331 AR="$AR $plugin_option"
7332 fi
7333 rm -f conftest.*
7334 fi
7335 fi
7336 test -z "$AR_FLAGS" && AR_FLAGS=cru
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348 if test -n "$ac_tool_prefix"; then
7349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}strip; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_STRIP+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 if test -n "$STRIP"; then
7357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370 done
7371 done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 STRIP=$ac_cv_prog_STRIP
7377 if test -n "$STRIP"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7379 $as_echo "$STRIP" >&6; }
7380 else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385
7386 fi
7387 if test -z "$ac_cv_prog_STRIP"; then
7388 ac_ct_STRIP=$STRIP
7389 # Extract the first word of "strip", so it can be a program name with args.
7390 set dummy strip; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 if test -n "$ac_ct_STRIP"; then
7397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_ac_ct_STRIP="strip"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410 done
7411 done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7417 if test -n "$ac_ct_STRIP"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7419 $as_echo "$ac_ct_STRIP" >&6; }
7420 else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424
7425 if test "x$ac_ct_STRIP" = x; then
7426 STRIP=":"
7427 else
7428 case $cross_compiling:$ac_tool_warned in
7429 yes:)
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7432 ac_tool_warned=yes ;;
7433 esac
7434 STRIP=$ac_ct_STRIP
7435 fi
7436 else
7437 STRIP="$ac_cv_prog_STRIP"
7438 fi
7439
7440 test -z "$STRIP" && STRIP=:
7441
7442
7443
7444
7445
7446
7447 if test -n "$ac_tool_prefix"; then
7448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_RANLIB+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 if test -n "$RANLIB"; then
7456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7468 fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473 fi
7474 fi
7475 RANLIB=$ac_cv_prog_RANLIB
7476 if test -n "$RANLIB"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7478 $as_echo "$RANLIB" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7482 fi
7483
7484
7485 fi
7486 if test -z "$ac_cv_prog_RANLIB"; then
7487 ac_ct_RANLIB=$RANLIB
7488 # Extract the first word of "ranlib", so it can be a program name with args.
7489 set dummy ranlib; ac_word=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 if test -n "$ac_ct_RANLIB"; then
7496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7497 else
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_prog_ac_ct_RANLIB="ranlib"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513 fi
7514 fi
7515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7516 if test -n "$ac_ct_RANLIB"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7518 $as_echo "$ac_ct_RANLIB" >&6; }
7519 else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7522 fi
7523
7524 if test "x$ac_ct_RANLIB" = x; then
7525 RANLIB=":"
7526 else
7527 case $cross_compiling:$ac_tool_warned in
7528 yes:)
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7531 ac_tool_warned=yes ;;
7532 esac
7533 RANLIB=$ac_ct_RANLIB
7534 fi
7535 else
7536 RANLIB="$ac_cv_prog_RANLIB"
7537 fi
7538
7539 test -z "$RANLIB" && RANLIB=:
7540 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7541 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7542 RANLIB="$RANLIB $plugin_option"
7543 fi
7544 fi
7545
7546
7547
7548
7549
7550
7551 # Determine commands to create old-style static archives.
7552 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7553 old_postinstall_cmds='chmod 644 $oldlib'
7554 old_postuninstall_cmds=
7555
7556 if test -n "$RANLIB"; then
7557 case $host_os in
7558 openbsd*)
7559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7560 ;;
7561 *)
7562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7563 ;;
7564 esac
7565 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7566 fi
7567
7568 case $host_os in
7569 darwin*)
7570 lock_old_archive_extraction=yes ;;
7571 *)
7572 lock_old_archive_extraction=no ;;
7573 esac
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613 # If no C compiler was specified, use CC.
7614 LTCC=${LTCC-"$CC"}
7615
7616 # If no C compiler flags were specified, use CFLAGS.
7617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7618
7619 # Allow CC to be a program name with arguments.
7620 compiler=$CC
7621
7622
7623 # Check for command to grab the raw symbol name followed by C symbol from nm.
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7625 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7626 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629
7630 # These are sane defaults that work on at least a few old systems.
7631 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7632
7633 # Character class describing NM global symbol codes.
7634 symcode='[BCDEGRST]'
7635
7636 # Regexp to match symbols that can be accessed directly from C.
7637 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7638
7639 # Define system-specific variables.
7640 case $host_os in
7641 aix*)
7642 symcode='[BCDT]'
7643 ;;
7644 cygwin* | mingw* | pw32* | cegcc*)
7645 symcode='[ABCDGISTW]'
7646 ;;
7647 hpux*)
7648 if test "$host_cpu" = ia64; then
7649 symcode='[ABCDEGRST]'
7650 fi
7651 ;;
7652 irix* | nonstopux*)
7653 symcode='[BCDEGRST]'
7654 ;;
7655 osf*)
7656 symcode='[BCDEGQRST]'
7657 ;;
7658 solaris*)
7659 symcode='[BCDRT]'
7660 ;;
7661 sco3.2v5*)
7662 symcode='[DT]'
7663 ;;
7664 sysv4.2uw2*)
7665 symcode='[DT]'
7666 ;;
7667 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7668 symcode='[ABDT]'
7669 ;;
7670 sysv4)
7671 symcode='[DFNSTU]'
7672 ;;
7673 esac
7674
7675 # If we're using GNU nm, then use its standard symbol codes.
7676 case `$NM -V 2>&1` in
7677 *GNU* | *'with BFD'*)
7678 symcode='[ABCDGIRSTW]' ;;
7679 esac
7680
7681 # Transform an extracted symbol line into a proper C declaration.
7682 # Some systems (esp. on ia64) link data and code symbols differently,
7683 # so use this general approach.
7684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7685
7686 # Transform an extracted symbol line into symbol name and symbol address
7687 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7688 lt_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'"
7689
7690 # Handle CRLF in mingw tool chain
7691 opt_cr=
7692 case $build_os in
7693 mingw*)
7694 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7695 ;;
7696 esac
7697
7698 # Try without a prefix underscore, then with it.
7699 for ac_symprfx in "" "_"; do
7700
7701 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7702 symxfrm="\\1 $ac_symprfx\\2 \\2"
7703
7704 # Write the raw and C identifiers.
7705 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7706 # Fake it for dumpbin and say T for any non-static function
7707 # and D for any global variable.
7708 # Also find C++ and __fastcall symbols from MSVC++,
7709 # which start with @ or ?.
7710 lt_cv_sys_global_symbol_pipe="$AWK '"\
7711 " {last_section=section; section=\$ 3};"\
7712 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7713 " \$ 0!~/External *\|/{next};"\
7714 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7715 " {if(hide[section]) next};"\
7716 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7717 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7718 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7719 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7720 " ' prfx=^$ac_symprfx"
7721 else
7722 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7723 fi
7724
7725 # Check to see that the pipe works correctly.
7726 pipe_works=no
7727
7728 rm -f conftest*
7729 cat > conftest.$ac_ext <<_LT_EOF
7730 #ifdef __cplusplus
7731 extern "C" {
7732 #endif
7733 char nm_test_var;
7734 void nm_test_func(void);
7735 void nm_test_func(void){}
7736 #ifdef __cplusplus
7737 }
7738 #endif
7739 int main(){nm_test_var='a';nm_test_func();return(0);}
7740 _LT_EOF
7741
7742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7743 (eval $ac_compile) 2>&5
7744 ac_status=$?
7745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7746 test $ac_status = 0; }; then
7747 # Now try to grab the symbols.
7748 nlist=conftest.nm
7749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7750 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7751 ac_status=$?
7752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7753 test $ac_status = 0; } && test -s "$nlist"; then
7754 # Try sorting and uniquifying the output.
7755 if sort "$nlist" | uniq > "$nlist"T; then
7756 mv -f "$nlist"T "$nlist"
7757 else
7758 rm -f "$nlist"T
7759 fi
7760
7761 # Make sure that we snagged all the symbols we need.
7762 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7763 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7764 cat <<_LT_EOF > conftest.$ac_ext
7765 #ifdef __cplusplus
7766 extern "C" {
7767 #endif
7768
7769 _LT_EOF
7770 # Now generate the symbol file.
7771 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7772
7773 cat <<_LT_EOF >> conftest.$ac_ext
7774
7775 /* The mapping between symbol names and symbols. */
7776 const struct {
7777 const char *name;
7778 void *address;
7779 }
7780 lt__PROGRAM__LTX_preloaded_symbols[] =
7781 {
7782 { "@PROGRAM@", (void *) 0 },
7783 _LT_EOF
7784 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7785 cat <<\_LT_EOF >> conftest.$ac_ext
7786 {0, (void *) 0}
7787 };
7788
7789 /* This works around a problem in FreeBSD linker */
7790 #ifdef FREEBSD_WORKAROUND
7791 static const void *lt_preloaded_setup() {
7792 return lt__PROGRAM__LTX_preloaded_symbols;
7793 }
7794 #endif
7795
7796 #ifdef __cplusplus
7797 }
7798 #endif
7799 _LT_EOF
7800 # Now try linking the two files.
7801 mv conftest.$ac_objext conftstm.$ac_objext
7802 lt_save_LIBS="$LIBS"
7803 lt_save_CFLAGS="$CFLAGS"
7804 LIBS="conftstm.$ac_objext"
7805 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7807 (eval $ac_link) 2>&5
7808 ac_status=$?
7809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7810 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7811 pipe_works=yes
7812 fi
7813 LIBS="$lt_save_LIBS"
7814 CFLAGS="$lt_save_CFLAGS"
7815 else
7816 echo "cannot find nm_test_func in $nlist" >&5
7817 fi
7818 else
7819 echo "cannot find nm_test_var in $nlist" >&5
7820 fi
7821 else
7822 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7823 fi
7824 else
7825 echo "$progname: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 fi
7828 rm -rf conftest* conftst*
7829
7830 # Do not use the global_symbol_pipe unless it works.
7831 if test "$pipe_works" = yes; then
7832 break
7833 else
7834 lt_cv_sys_global_symbol_pipe=
7835 fi
7836 done
7837
7838 fi
7839
7840 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7841 lt_cv_sys_global_symbol_to_cdecl=
7842 fi
7843 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7845 $as_echo "failed" >&6; }
7846 else
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7848 $as_echo "ok" >&6; }
7849 fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872 # Check whether --enable-libtool-lock was given.
7873 if test "${enable_libtool_lock+set}" = set; then :
7874 enableval=$enable_libtool_lock;
7875 fi
7876
7877 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7878
7879 # Some flags need to be propagated to the compiler or linker for good
7880 # libtool support.
7881 case $host in
7882 ia64-*-hpux*)
7883 # Find out which ABI we are using.
7884 echo 'int i;' > conftest.$ac_ext
7885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7886 (eval $ac_compile) 2>&5
7887 ac_status=$?
7888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7889 test $ac_status = 0; }; then
7890 case `/usr/bin/file conftest.$ac_objext` in
7891 *ELF-32*)
7892 HPUX_IA64_MODE="32"
7893 ;;
7894 *ELF-64*)
7895 HPUX_IA64_MODE="64"
7896 ;;
7897 esac
7898 fi
7899 rm -rf conftest*
7900 ;;
7901 *-*-irix6*)
7902 # Find out which ABI we are using.
7903 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7905 (eval $ac_compile) 2>&5
7906 ac_status=$?
7907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7908 test $ac_status = 0; }; then
7909 if test "$lt_cv_prog_gnu_ld" = yes; then
7910 case `/usr/bin/file conftest.$ac_objext` in
7911 *32-bit*)
7912 LD="${LD-ld} -melf32bsmip"
7913 ;;
7914 *N32*)
7915 LD="${LD-ld} -melf32bmipn32"
7916 ;;
7917 *64-bit*)
7918 LD="${LD-ld} -melf64bmip"
7919 ;;
7920 esac
7921 else
7922 case `/usr/bin/file conftest.$ac_objext` in
7923 *32-bit*)
7924 LD="${LD-ld} -32"
7925 ;;
7926 *N32*)
7927 LD="${LD-ld} -n32"
7928 ;;
7929 *64-bit*)
7930 LD="${LD-ld} -64"
7931 ;;
7932 esac
7933 fi
7934 fi
7935 rm -rf conftest*
7936 ;;
7937
7938 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7939 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7940 # Find out which ABI we are using.
7941 echo 'int i;' > conftest.$ac_ext
7942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7943 (eval $ac_compile) 2>&5
7944 ac_status=$?
7945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7946 test $ac_status = 0; }; then
7947 case `/usr/bin/file conftest.o` in
7948 *32-bit*)
7949 case $host in
7950 x86_64-*kfreebsd*-gnu)
7951 LD="${LD-ld} -m elf_i386_fbsd"
7952 ;;
7953 x86_64-*linux*)
7954 case `/usr/bin/file conftest.o` in
7955 *x86-64*)
7956 LD="${LD-ld} -m elf32_x86_64"
7957 ;;
7958 *)
7959 LD="${LD-ld} -m elf_i386"
7960 ;;
7961 esac
7962 ;;
7963 powerpc64le-*linux*)
7964 LD="${LD-ld} -m elf32lppclinux"
7965 ;;
7966 powerpc64-*linux*)
7967 LD="${LD-ld} -m elf32ppclinux"
7968 ;;
7969 s390x-*linux*)
7970 LD="${LD-ld} -m elf_s390"
7971 ;;
7972 sparc64-*linux*)
7973 LD="${LD-ld} -m elf32_sparc"
7974 ;;
7975 esac
7976 ;;
7977 *64-bit*)
7978 case $host in
7979 x86_64-*kfreebsd*-gnu)
7980 LD="${LD-ld} -m elf_x86_64_fbsd"
7981 ;;
7982 x86_64-*linux*)
7983 LD="${LD-ld} -m elf_x86_64"
7984 ;;
7985 powerpcle-*linux*)
7986 LD="${LD-ld} -m elf64lppc"
7987 ;;
7988 powerpc-*linux*)
7989 LD="${LD-ld} -m elf64ppc"
7990 ;;
7991 s390*-*linux*|s390*-*tpf*)
7992 LD="${LD-ld} -m elf64_s390"
7993 ;;
7994 sparc*-*linux*)
7995 LD="${LD-ld} -m elf64_sparc"
7996 ;;
7997 esac
7998 ;;
7999 esac
8000 fi
8001 rm -rf conftest*
8002 ;;
8003
8004 *-*-sco3.2v5*)
8005 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8006 SAVE_CFLAGS="$CFLAGS"
8007 CFLAGS="$CFLAGS -belf"
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8009 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8010 if ${lt_cv_cc_needs_belf+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 ac_ext=c
8014 ac_cpp='$CPP $CPPFLAGS'
8015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8018
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021
8022 int
8023 main ()
8024 {
8025
8026 ;
8027 return 0;
8028 }
8029 _ACEOF
8030 if ac_fn_c_try_link "$LINENO"; then :
8031 lt_cv_cc_needs_belf=yes
8032 else
8033 lt_cv_cc_needs_belf=no
8034 fi
8035 rm -f core conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8037 ac_ext=c
8038 ac_cpp='$CPP $CPPFLAGS'
8039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8042
8043 fi
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8045 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8046 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8047 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8048 CFLAGS="$SAVE_CFLAGS"
8049 fi
8050 ;;
8051 sparc*-*solaris*)
8052 # Find out which ABI we are using.
8053 echo 'int i;' > conftest.$ac_ext
8054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8055 (eval $ac_compile) 2>&5
8056 ac_status=$?
8057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058 test $ac_status = 0; }; then
8059 case `/usr/bin/file conftest.o` in
8060 *64-bit*)
8061 case $lt_cv_prog_gnu_ld in
8062 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8063 *)
8064 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8065 LD="${LD-ld} -64"
8066 fi
8067 ;;
8068 esac
8069 ;;
8070 esac
8071 fi
8072 rm -rf conftest*
8073 ;;
8074 esac
8075
8076 need_locks="$enable_libtool_lock"
8077
8078
8079 case $host_os in
8080 rhapsody* | darwin*)
8081 if test -n "$ac_tool_prefix"; then
8082 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8083 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085 $as_echo_n "checking for $ac_word... " >&6; }
8086 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 if test -n "$DSYMUTIL"; then
8090 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8091 else
8092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093 for as_dir in $PATH
8094 do
8095 IFS=$as_save_IFS
8096 test -z "$as_dir" && as_dir=.
8097 for ac_exec_ext in '' $ac_executable_extensions; do
8098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8099 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 break 2
8102 fi
8103 done
8104 done
8105 IFS=$as_save_IFS
8106
8107 fi
8108 fi
8109 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8110 if test -n "$DSYMUTIL"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8112 $as_echo "$DSYMUTIL" >&6; }
8113 else
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8116 fi
8117
8118
8119 fi
8120 if test -z "$ac_cv_prog_DSYMUTIL"; then
8121 ac_ct_DSYMUTIL=$DSYMUTIL
8122 # Extract the first word of "dsymutil", so it can be a program name with args.
8123 set dummy dsymutil; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 if test -n "$ac_ct_DSYMUTIL"; then
8130 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8134 do
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8139 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2
8142 fi
8143 done
8144 done
8145 IFS=$as_save_IFS
8146
8147 fi
8148 fi
8149 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8150 if test -n "$ac_ct_DSYMUTIL"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8152 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8153 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8156 fi
8157
8158 if test "x$ac_ct_DSYMUTIL" = x; then
8159 DSYMUTIL=":"
8160 else
8161 case $cross_compiling:$ac_tool_warned in
8162 yes:)
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8165 ac_tool_warned=yes ;;
8166 esac
8167 DSYMUTIL=$ac_ct_DSYMUTIL
8168 fi
8169 else
8170 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8171 fi
8172
8173 if test -n "$ac_tool_prefix"; then
8174 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8175 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if ${ac_cv_prog_NMEDIT+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 if test -n "$NMEDIT"; then
8182 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8183 else
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8186 do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8194 fi
8195 done
8196 done
8197 IFS=$as_save_IFS
8198
8199 fi
8200 fi
8201 NMEDIT=$ac_cv_prog_NMEDIT
8202 if test -n "$NMEDIT"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8204 $as_echo "$NMEDIT" >&6; }
8205 else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8208 fi
8209
8210
8211 fi
8212 if test -z "$ac_cv_prog_NMEDIT"; then
8213 ac_ct_NMEDIT=$NMEDIT
8214 # Extract the first word of "nmedit", so it can be a program name with args.
8215 set dummy nmedit; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 if test -n "$ac_ct_NMEDIT"; then
8222 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8234 fi
8235 done
8236 done
8237 IFS=$as_save_IFS
8238
8239 fi
8240 fi
8241 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8242 if test -n "$ac_ct_NMEDIT"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8244 $as_echo "$ac_ct_NMEDIT" >&6; }
8245 else
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249
8250 if test "x$ac_ct_NMEDIT" = x; then
8251 NMEDIT=":"
8252 else
8253 case $cross_compiling:$ac_tool_warned in
8254 yes:)
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8257 ac_tool_warned=yes ;;
8258 esac
8259 NMEDIT=$ac_ct_NMEDIT
8260 fi
8261 else
8262 NMEDIT="$ac_cv_prog_NMEDIT"
8263 fi
8264
8265 if test -n "$ac_tool_prefix"; then
8266 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8267 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if ${ac_cv_prog_LIPO+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 if test -n "$LIPO"; then
8274 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279 IFS=$as_save_IFS
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 break 2
8286 fi
8287 done
8288 done
8289 IFS=$as_save_IFS
8290
8291 fi
8292 fi
8293 LIPO=$ac_cv_prog_LIPO
8294 if test -n "$LIPO"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8296 $as_echo "$LIPO" >&6; }
8297 else
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8300 fi
8301
8302
8303 fi
8304 if test -z "$ac_cv_prog_LIPO"; then
8305 ac_ct_LIPO=$LIPO
8306 # Extract the first word of "lipo", so it can be a program name with args.
8307 set dummy lipo; ac_word=$2
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 if test -n "$ac_ct_LIPO"; then
8314 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8315 else
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_prog_ac_ct_LIPO="lipo"
8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8326 fi
8327 done
8328 done
8329 IFS=$as_save_IFS
8330
8331 fi
8332 fi
8333 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8334 if test -n "$ac_ct_LIPO"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8336 $as_echo "$ac_ct_LIPO" >&6; }
8337 else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342 if test "x$ac_ct_LIPO" = x; then
8343 LIPO=":"
8344 else
8345 case $cross_compiling:$ac_tool_warned in
8346 yes:)
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8349 ac_tool_warned=yes ;;
8350 esac
8351 LIPO=$ac_ct_LIPO
8352 fi
8353 else
8354 LIPO="$ac_cv_prog_LIPO"
8355 fi
8356
8357 if test -n "$ac_tool_prefix"; then
8358 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8359 set dummy ${ac_tool_prefix}otool; ac_word=$2
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361 $as_echo_n "checking for $ac_word... " >&6; }
8362 if ${ac_cv_prog_OTOOL+:} false; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 if test -n "$OTOOL"; then
8366 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8367 else
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8370 do
8371 IFS=$as_save_IFS
8372 test -z "$as_dir" && as_dir=.
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8375 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 break 2
8378 fi
8379 done
8380 done
8381 IFS=$as_save_IFS
8382
8383 fi
8384 fi
8385 OTOOL=$ac_cv_prog_OTOOL
8386 if test -n "$OTOOL"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8388 $as_echo "$OTOOL" >&6; }
8389 else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8392 fi
8393
8394
8395 fi
8396 if test -z "$ac_cv_prog_OTOOL"; then
8397 ac_ct_OTOOL=$OTOOL
8398 # Extract the first word of "otool", so it can be a program name with args.
8399 set dummy otool; ac_word=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 $as_echo_n "checking for $ac_word... " >&6; }
8402 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 if test -n "$ac_ct_OTOOL"; then
8406 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411 IFS=$as_save_IFS
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8415 ac_cv_prog_ac_ct_OTOOL="otool"
8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 break 2
8418 fi
8419 done
8420 done
8421 IFS=$as_save_IFS
8422
8423 fi
8424 fi
8425 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8426 if test -n "$ac_ct_OTOOL"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8428 $as_echo "$ac_ct_OTOOL" >&6; }
8429 else
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8432 fi
8433
8434 if test "x$ac_ct_OTOOL" = x; then
8435 OTOOL=":"
8436 else
8437 case $cross_compiling:$ac_tool_warned in
8438 yes:)
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8441 ac_tool_warned=yes ;;
8442 esac
8443 OTOOL=$ac_ct_OTOOL
8444 fi
8445 else
8446 OTOOL="$ac_cv_prog_OTOOL"
8447 fi
8448
8449 if test -n "$ac_tool_prefix"; then
8450 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8451 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if ${ac_cv_prog_OTOOL64+:} false; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 if test -n "$OTOOL64"; then
8458 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8459 else
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8462 do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8467 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8470 fi
8471 done
8472 done
8473 IFS=$as_save_IFS
8474
8475 fi
8476 fi
8477 OTOOL64=$ac_cv_prog_OTOOL64
8478 if test -n "$OTOOL64"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8480 $as_echo "$OTOOL64" >&6; }
8481 else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8484 fi
8485
8486
8487 fi
8488 if test -z "$ac_cv_prog_OTOOL64"; then
8489 ac_ct_OTOOL64=$OTOOL64
8490 # Extract the first word of "otool64", so it can be a program name with args.
8491 set dummy otool64; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 if test -n "$ac_ct_OTOOL64"; then
8498 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8502 do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_ac_ct_OTOOL64="otool64"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8510 fi
8511 done
8512 done
8513 IFS=$as_save_IFS
8514
8515 fi
8516 fi
8517 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8518 if test -n "$ac_ct_OTOOL64"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8520 $as_echo "$ac_ct_OTOOL64" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8524 fi
8525
8526 if test "x$ac_ct_OTOOL64" = x; then
8527 OTOOL64=":"
8528 else
8529 case $cross_compiling:$ac_tool_warned in
8530 yes:)
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8533 ac_tool_warned=yes ;;
8534 esac
8535 OTOOL64=$ac_ct_OTOOL64
8536 fi
8537 else
8538 OTOOL64="$ac_cv_prog_OTOOL64"
8539 fi
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8568 $as_echo_n "checking for -single_module linker flag... " >&6; }
8569 if ${lt_cv_apple_cc_single_mod+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 lt_cv_apple_cc_single_mod=no
8573 if test -z "${LT_MULTI_MODULE}"; then
8574 # By default we will add the -single_module flag. You can override
8575 # by either setting the environment variable LT_MULTI_MODULE
8576 # non-empty at configure time, or by adding -multi_module to the
8577 # link flags.
8578 rm -rf libconftest.dylib*
8579 echo "int foo(void){return 1;}" > conftest.c
8580 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8581 -dynamiclib -Wl,-single_module conftest.c" >&5
8582 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8583 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8584 _lt_result=$?
8585 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8586 lt_cv_apple_cc_single_mod=yes
8587 else
8588 cat conftest.err >&5
8589 fi
8590 rm -rf libconftest.dylib*
8591 rm -f conftest.*
8592 fi
8593 fi
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8595 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8597 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8598 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 lt_cv_ld_exported_symbols_list=no
8602 save_LDFLAGS=$LDFLAGS
8603 echo "_main" > conftest.sym
8604 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8607
8608 int
8609 main ()
8610 {
8611
8612 ;
8613 return 0;
8614 }
8615 _ACEOF
8616 if ac_fn_c_try_link "$LINENO"; then :
8617 lt_cv_ld_exported_symbols_list=yes
8618 else
8619 lt_cv_ld_exported_symbols_list=no
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext \
8622 conftest$ac_exeext conftest.$ac_ext
8623 LDFLAGS="$save_LDFLAGS"
8624
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8627 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8629 $as_echo_n "checking for -force_load linker flag... " >&6; }
8630 if ${lt_cv_ld_force_load+:} false; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 lt_cv_ld_force_load=no
8634 cat > conftest.c << _LT_EOF
8635 int forced_loaded() { return 2;}
8636 _LT_EOF
8637 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8638 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8639 echo "$AR cru libconftest.a conftest.o" >&5
8640 $AR cru libconftest.a conftest.o 2>&5
8641 cat > conftest.c << _LT_EOF
8642 int main() { return 0;}
8643 _LT_EOF
8644 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8645 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8646 _lt_result=$?
8647 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8648 lt_cv_ld_force_load=yes
8649 else
8650 cat conftest.err >&5
8651 fi
8652 rm -f conftest.err libconftest.a conftest conftest.c
8653 rm -rf conftest.dSYM
8654
8655 fi
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8657 $as_echo "$lt_cv_ld_force_load" >&6; }
8658 case $host_os in
8659 rhapsody* | darwin1.[012])
8660 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8661 darwin1.*)
8662 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8663 darwin*) # darwin 5.x on
8664 # if running on 10.5 or later, the deployment target defaults
8665 # to the OS version, if on x86, and 10.4, the deployment
8666 # target defaults to 10.4. Don't you love it?
8667 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8668 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8669 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8670 10.[012][,.]*)
8671 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8672 10.*)
8673 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8674 esac
8675 ;;
8676 esac
8677 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8678 _lt_dar_single_mod='$single_module'
8679 fi
8680 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8681 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8682 else
8683 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8684 fi
8685 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8686 _lt_dsymutil='~$DSYMUTIL $lib || :'
8687 else
8688 _lt_dsymutil=
8689 fi
8690 ;;
8691 esac
8692
8693 for ac_header in dlfcn.h
8694 do :
8695 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8696 "
8697 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8698 cat >>confdefs.h <<_ACEOF
8699 #define HAVE_DLFCN_H 1
8700 _ACEOF
8701
8702 fi
8703
8704 done
8705
8706
8707
8708
8709
8710
8711 # Set options
8712
8713
8714
8715 enable_dlopen=no
8716
8717
8718 enable_win32_dll=no
8719
8720
8721
8722 # Check whether --enable-static was given.
8723 if test "${enable_static+set}" = set; then :
8724 enableval=$enable_static; p=${PACKAGE-default}
8725 case $enableval in
8726 yes) enable_static=yes ;;
8727 no) enable_static=no ;;
8728 *)
8729 enable_static=no
8730 # Look at the argument we got. We use all the common list separators.
8731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8732 for pkg in $enableval; do
8733 IFS="$lt_save_ifs"
8734 if test "X$pkg" = "X$p"; then
8735 enable_static=yes
8736 fi
8737 done
8738 IFS="$lt_save_ifs"
8739 ;;
8740 esac
8741 else
8742 enable_static=yes
8743 fi
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754 # Check whether --with-pic was given.
8755 if test "${with_pic+set}" = set; then :
8756 withval=$with_pic; pic_mode="$withval"
8757 else
8758 pic_mode=default
8759 fi
8760
8761
8762 test -z "$pic_mode" && pic_mode=default
8763
8764
8765
8766
8767
8768
8769
8770 # Check whether --enable-fast-install was given.
8771 if test "${enable_fast_install+set}" = set; then :
8772 enableval=$enable_fast_install; p=${PACKAGE-default}
8773 case $enableval in
8774 yes) enable_fast_install=yes ;;
8775 no) enable_fast_install=no ;;
8776 *)
8777 enable_fast_install=no
8778 # Look at the argument we got. We use all the common list separators.
8779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8780 for pkg in $enableval; do
8781 IFS="$lt_save_ifs"
8782 if test "X$pkg" = "X$p"; then
8783 enable_fast_install=yes
8784 fi
8785 done
8786 IFS="$lt_save_ifs"
8787 ;;
8788 esac
8789 else
8790 enable_fast_install=yes
8791 fi
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803 # This can be used to rebuild libtool when needed
8804 LIBTOOL_DEPS="$ltmain"
8805
8806 # Always use our own libtool.
8807 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834 test -z "$LN_S" && LN_S="ln -s"
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849 if test -n "${ZSH_VERSION+set}" ; then
8850 setopt NO_GLOB_SUBST
8851 fi
8852
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8854 $as_echo_n "checking for objdir... " >&6; }
8855 if ${lt_cv_objdir+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 rm -f .libs 2>/dev/null
8859 mkdir .libs 2>/dev/null
8860 if test -d .libs; then
8861 lt_cv_objdir=.libs
8862 else
8863 # MS-DOS does not allow filenames that begin with a dot.
8864 lt_cv_objdir=_libs
8865 fi
8866 rmdir .libs 2>/dev/null
8867 fi
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8869 $as_echo "$lt_cv_objdir" >&6; }
8870 objdir=$lt_cv_objdir
8871
8872
8873
8874
8875
8876 cat >>confdefs.h <<_ACEOF
8877 #define LT_OBJDIR "$lt_cv_objdir/"
8878 _ACEOF
8879
8880
8881
8882
8883 case $host_os in
8884 aix3*)
8885 # AIX sometimes has problems with the GCC collect2 program. For some
8886 # reason, if we set the COLLECT_NAMES environment variable, the problems
8887 # vanish in a puff of smoke.
8888 if test "X${COLLECT_NAMES+set}" != Xset; then
8889 COLLECT_NAMES=
8890 export COLLECT_NAMES
8891 fi
8892 ;;
8893 esac
8894
8895 # Global variables:
8896 ofile=libtool
8897 can_build_shared=yes
8898
8899 # All known linkers require a `.a' archive for static linking (except MSVC,
8900 # which needs '.lib').
8901 libext=a
8902
8903 with_gnu_ld="$lt_cv_prog_gnu_ld"
8904
8905 old_CC="$CC"
8906 old_CFLAGS="$CFLAGS"
8907
8908 # Set sane defaults for various variables
8909 test -z "$CC" && CC=cc
8910 test -z "$LTCC" && LTCC=$CC
8911 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8912 test -z "$LD" && LD=ld
8913 test -z "$ac_objext" && ac_objext=o
8914
8915 for cc_temp in $compiler""; do
8916 case $cc_temp in
8917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8919 \-*) ;;
8920 *) break;;
8921 esac
8922 done
8923 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8924
8925
8926 # Only perform the check for file, if the check method requires it
8927 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8928 case $deplibs_check_method in
8929 file_magic*)
8930 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8932 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8933 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 case $MAGIC_CMD in
8937 [\\/*] | ?:[\\/]*)
8938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8939 ;;
8940 *)
8941 lt_save_MAGIC_CMD="$MAGIC_CMD"
8942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8943 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8944 for ac_dir in $ac_dummy; do
8945 IFS="$lt_save_ifs"
8946 test -z "$ac_dir" && ac_dir=.
8947 if test -f $ac_dir/${ac_tool_prefix}file; then
8948 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8949 if test -n "$file_magic_test_file"; then
8950 case $deplibs_check_method in
8951 "file_magic "*)
8952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8955 $EGREP "$file_magic_regex" > /dev/null; then
8956 :
8957 else
8958 cat <<_LT_EOF 1>&2
8959
8960 *** Warning: the command libtool uses to detect shared libraries,
8961 *** $file_magic_cmd, produces output that libtool cannot recognize.
8962 *** The result is that libtool may fail to recognize shared libraries
8963 *** as such. This will affect the creation of libtool libraries that
8964 *** depend on shared libraries, but programs linked with such libtool
8965 *** libraries will work regardless of this problem. Nevertheless, you
8966 *** may want to report the problem to your system manager and/or to
8967 *** bug-libtool@gnu.org
8968
8969 _LT_EOF
8970 fi ;;
8971 esac
8972 fi
8973 break
8974 fi
8975 done
8976 IFS="$lt_save_ifs"
8977 MAGIC_CMD="$lt_save_MAGIC_CMD"
8978 ;;
8979 esac
8980 fi
8981
8982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8983 if test -n "$MAGIC_CMD"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8985 $as_echo "$MAGIC_CMD" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8989 fi
8990
8991
8992
8993
8994
8995 if test -z "$lt_cv_path_MAGIC_CMD"; then
8996 if test -n "$ac_tool_prefix"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8998 $as_echo_n "checking for file... " >&6; }
8999 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 case $MAGIC_CMD in
9003 [\\/*] | ?:[\\/]*)
9004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9005 ;;
9006 *)
9007 lt_save_MAGIC_CMD="$MAGIC_CMD"
9008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9010 for ac_dir in $ac_dummy; do
9011 IFS="$lt_save_ifs"
9012 test -z "$ac_dir" && ac_dir=.
9013 if test -f $ac_dir/file; then
9014 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9015 if test -n "$file_magic_test_file"; then
9016 case $deplibs_check_method in
9017 "file_magic "*)
9018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9021 $EGREP "$file_magic_regex" > /dev/null; then
9022 :
9023 else
9024 cat <<_LT_EOF 1>&2
9025
9026 *** Warning: the command libtool uses to detect shared libraries,
9027 *** $file_magic_cmd, produces output that libtool cannot recognize.
9028 *** The result is that libtool may fail to recognize shared libraries
9029 *** as such. This will affect the creation of libtool libraries that
9030 *** depend on shared libraries, but programs linked with such libtool
9031 *** libraries will work regardless of this problem. Nevertheless, you
9032 *** may want to report the problem to your system manager and/or to
9033 *** bug-libtool@gnu.org
9034
9035 _LT_EOF
9036 fi ;;
9037 esac
9038 fi
9039 break
9040 fi
9041 done
9042 IFS="$lt_save_ifs"
9043 MAGIC_CMD="$lt_save_MAGIC_CMD"
9044 ;;
9045 esac
9046 fi
9047
9048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9049 if test -n "$MAGIC_CMD"; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9051 $as_echo "$MAGIC_CMD" >&6; }
9052 else
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054 $as_echo "no" >&6; }
9055 fi
9056
9057
9058 else
9059 MAGIC_CMD=:
9060 fi
9061 fi
9062
9063 fi
9064 ;;
9065 esac
9066
9067 # Use C for the default configuration in the libtool script
9068
9069 lt_save_CC="$CC"
9070 ac_ext=c
9071 ac_cpp='$CPP $CPPFLAGS'
9072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9075
9076
9077 # Source file extension for C test sources.
9078 ac_ext=c
9079
9080 # Object file extension for compiled C test sources.
9081 objext=o
9082 objext=$objext
9083
9084 # Code to be used in simple compile tests
9085 lt_simple_compile_test_code="int some_variable = 0;"
9086
9087 # Code to be used in simple link tests
9088 lt_simple_link_test_code='int main(){return(0);}'
9089
9090
9091
9092
9093
9094
9095
9096 # If no C compiler was specified, use CC.
9097 LTCC=${LTCC-"$CC"}
9098
9099 # If no C compiler flags were specified, use CFLAGS.
9100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9101
9102 # Allow CC to be a program name with arguments.
9103 compiler=$CC
9104
9105 # Save the default compiler, since it gets overwritten when the other
9106 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9107 compiler_DEFAULT=$CC
9108
9109 # save warnings/boilerplate of simple test code
9110 ac_outfile=conftest.$ac_objext
9111 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9112 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9113 _lt_compiler_boilerplate=`cat conftest.err`
9114 $RM conftest*
9115
9116 ac_outfile=conftest.$ac_objext
9117 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9118 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9119 _lt_linker_boilerplate=`cat conftest.err`
9120 $RM -r conftest*
9121
9122
9123 ## CAVEAT EMPTOR:
9124 ## There is no encapsulation within the following macros, do not change
9125 ## the running order or otherwise move them around unless you know exactly
9126 ## what you are doing...
9127 if test -n "$compiler"; then
9128
9129 lt_prog_compiler_no_builtin_flag=
9130
9131 if test "$GCC" = yes; then
9132 case $cc_basename in
9133 nvcc*)
9134 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9135 *)
9136 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9137 esac
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9140 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9141 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 lt_cv_prog_compiler_rtti_exceptions=no
9145 ac_outfile=conftest.$ac_objext
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147 lt_compiler_flag="-fno-rtti -fno-exceptions"
9148 # Insert the option either (1) after the last *FLAGS variable, or
9149 # (2) before a word containing "conftest.", or (3) at the end.
9150 # Note that $ac_compile itself does not contain backslashes and begins
9151 # with a dollar sign (not a hyphen), so the echo should work correctly.
9152 # The option is referenced via a variable to avoid confusing sed.
9153 lt_compile=`echo "$ac_compile" | $SED \
9154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9156 -e 's:$: $lt_compiler_flag:'`
9157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9158 (eval "$lt_compile" 2>conftest.err)
9159 ac_status=$?
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 if (exit $ac_status) && test -s "$ac_outfile"; then
9163 # The compiler can only warn and ignore the option if not recognized
9164 # So say no if there are warnings other than the usual output.
9165 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9168 lt_cv_prog_compiler_rtti_exceptions=yes
9169 fi
9170 fi
9171 $RM conftest*
9172
9173 fi
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9175 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9176
9177 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9178 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9179 else
9180 :
9181 fi
9182
9183 fi
9184
9185
9186
9187
9188
9189
9190 lt_prog_compiler_wl=
9191 lt_prog_compiler_pic=
9192 lt_prog_compiler_static=
9193
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9195 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9196
9197 if test "$GCC" = yes; then
9198 lt_prog_compiler_wl='-Wl,'
9199 lt_prog_compiler_static='-static'
9200
9201 case $host_os in
9202 aix*)
9203 # All AIX code is PIC.
9204 if test "$host_cpu" = ia64; then
9205 # AIX 5 now supports IA64 processor
9206 lt_prog_compiler_static='-Bstatic'
9207 fi
9208 lt_prog_compiler_pic='-fPIC'
9209 ;;
9210
9211 amigaos*)
9212 case $host_cpu in
9213 powerpc)
9214 # see comment about AmigaOS4 .so support
9215 lt_prog_compiler_pic='-fPIC'
9216 ;;
9217 m68k)
9218 # FIXME: we need at least 68020 code to build shared libraries, but
9219 # adding the `-m68020' flag to GCC prevents building anything better,
9220 # like `-m68040'.
9221 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9222 ;;
9223 esac
9224 ;;
9225
9226 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9227 # PIC is the default for these OSes.
9228 ;;
9229
9230 mingw* | cygwin* | pw32* | os2* | cegcc*)
9231 # This hack is so that the source file can tell whether it is being
9232 # built for inclusion in a dll (and should export symbols for example).
9233 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9234 # (--disable-auto-import) libraries
9235 lt_prog_compiler_pic='-DDLL_EXPORT'
9236 ;;
9237
9238 darwin* | rhapsody*)
9239 # PIC is the default on this platform
9240 # Common symbols not allowed in MH_DYLIB files
9241 lt_prog_compiler_pic='-fno-common'
9242 ;;
9243
9244 haiku*)
9245 # PIC is the default for Haiku.
9246 # The "-static" flag exists, but is broken.
9247 lt_prog_compiler_static=
9248 ;;
9249
9250 hpux*)
9251 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9252 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9253 # sets the default TLS model and affects inlining.
9254 case $host_cpu in
9255 hppa*64*)
9256 # +Z the default
9257 ;;
9258 *)
9259 lt_prog_compiler_pic='-fPIC'
9260 ;;
9261 esac
9262 ;;
9263
9264 interix[3-9]*)
9265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9266 # Instead, we relocate shared libraries at runtime.
9267 ;;
9268
9269 msdosdjgpp*)
9270 # Just because we use GCC doesn't mean we suddenly get shared libraries
9271 # on systems that don't support them.
9272 lt_prog_compiler_can_build_shared=no
9273 enable_shared=no
9274 ;;
9275
9276 *nto* | *qnx*)
9277 # QNX uses GNU C++, but need to define -shared option too, otherwise
9278 # it will coredump.
9279 lt_prog_compiler_pic='-fPIC -shared'
9280 ;;
9281
9282 sysv4*MP*)
9283 if test -d /usr/nec; then
9284 lt_prog_compiler_pic=-Kconform_pic
9285 fi
9286 ;;
9287
9288 *)
9289 lt_prog_compiler_pic='-fPIC'
9290 ;;
9291 esac
9292
9293 case $cc_basename in
9294 nvcc*) # Cuda Compiler Driver 2.2
9295 lt_prog_compiler_wl='-Xlinker '
9296 lt_prog_compiler_pic='-Xcompiler -fPIC'
9297 ;;
9298 esac
9299 else
9300 # PORTME Check for flag to pass linker flags through the system compiler.
9301 case $host_os in
9302 aix*)
9303 lt_prog_compiler_wl='-Wl,'
9304 if test "$host_cpu" = ia64; then
9305 # AIX 5 now supports IA64 processor
9306 lt_prog_compiler_static='-Bstatic'
9307 else
9308 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9309 fi
9310 ;;
9311
9312 mingw* | cygwin* | pw32* | os2* | cegcc*)
9313 # This hack is so that the source file can tell whether it is being
9314 # built for inclusion in a dll (and should export symbols for example).
9315 lt_prog_compiler_pic='-DDLL_EXPORT'
9316 ;;
9317
9318 hpux9* | hpux10* | hpux11*)
9319 lt_prog_compiler_wl='-Wl,'
9320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9321 # not for PA HP-UX.
9322 case $host_cpu in
9323 hppa*64*|ia64*)
9324 # +Z the default
9325 ;;
9326 *)
9327 lt_prog_compiler_pic='+Z'
9328 ;;
9329 esac
9330 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9331 lt_prog_compiler_static='${wl}-a ${wl}archive'
9332 ;;
9333
9334 irix5* | irix6* | nonstopux*)
9335 lt_prog_compiler_wl='-Wl,'
9336 # PIC (with -KPIC) is the default.
9337 lt_prog_compiler_static='-non_shared'
9338 ;;
9339
9340 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9341 case $cc_basename in
9342 # old Intel for x86_64 which still supported -KPIC.
9343 ecc*)
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-KPIC'
9346 lt_prog_compiler_static='-static'
9347 ;;
9348 # icc used to be incompatible with GCC.
9349 # ICC 10 doesn't accept -KPIC any more.
9350 icc* | ifort*)
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='-fPIC'
9353 lt_prog_compiler_static='-static'
9354 ;;
9355 # Lahey Fortran 8.1.
9356 lf95*)
9357 lt_prog_compiler_wl='-Wl,'
9358 lt_prog_compiler_pic='--shared'
9359 lt_prog_compiler_static='--static'
9360 ;;
9361 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9362 # Portland Group compilers (*not* the Pentium gcc compiler,
9363 # which looks to be a dead project)
9364 lt_prog_compiler_wl='-Wl,'
9365 lt_prog_compiler_pic='-fpic'
9366 lt_prog_compiler_static='-Bstatic'
9367 ;;
9368 ccc*)
9369 lt_prog_compiler_wl='-Wl,'
9370 # All Alpha code is PIC.
9371 lt_prog_compiler_static='-non_shared'
9372 ;;
9373 xl* | bgxl* | bgf* | mpixl*)
9374 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9375 lt_prog_compiler_wl='-Wl,'
9376 lt_prog_compiler_pic='-qpic'
9377 lt_prog_compiler_static='-qstaticlink'
9378 ;;
9379 *)
9380 case `$CC -V 2>&1 | sed 5q` in
9381 *Sun\ F* | *Sun*Fortran*)
9382 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-Bstatic'
9385 lt_prog_compiler_wl=''
9386 ;;
9387 *Sun\ C*)
9388 # Sun C 5.9
9389 lt_prog_compiler_pic='-KPIC'
9390 lt_prog_compiler_static='-Bstatic'
9391 lt_prog_compiler_wl='-Wl,'
9392 ;;
9393 esac
9394 ;;
9395 esac
9396 ;;
9397
9398 newsos6)
9399 lt_prog_compiler_pic='-KPIC'
9400 lt_prog_compiler_static='-Bstatic'
9401 ;;
9402
9403 *nto* | *qnx*)
9404 # QNX uses GNU C++, but need to define -shared option too, otherwise
9405 # it will coredump.
9406 lt_prog_compiler_pic='-fPIC -shared'
9407 ;;
9408
9409 osf3* | osf4* | osf5*)
9410 lt_prog_compiler_wl='-Wl,'
9411 # All OSF/1 code is PIC.
9412 lt_prog_compiler_static='-non_shared'
9413 ;;
9414
9415 rdos*)
9416 lt_prog_compiler_static='-non_shared'
9417 ;;
9418
9419 solaris*)
9420 lt_prog_compiler_pic='-KPIC'
9421 lt_prog_compiler_static='-Bstatic'
9422 case $cc_basename in
9423 f77* | f90* | f95*)
9424 lt_prog_compiler_wl='-Qoption ld ';;
9425 *)
9426 lt_prog_compiler_wl='-Wl,';;
9427 esac
9428 ;;
9429
9430 sunos4*)
9431 lt_prog_compiler_wl='-Qoption ld '
9432 lt_prog_compiler_pic='-PIC'
9433 lt_prog_compiler_static='-Bstatic'
9434 ;;
9435
9436 sysv4 | sysv4.2uw2* | sysv4.3*)
9437 lt_prog_compiler_wl='-Wl,'
9438 lt_prog_compiler_pic='-KPIC'
9439 lt_prog_compiler_static='-Bstatic'
9440 ;;
9441
9442 sysv4*MP*)
9443 if test -d /usr/nec ;then
9444 lt_prog_compiler_pic='-Kconform_pic'
9445 lt_prog_compiler_static='-Bstatic'
9446 fi
9447 ;;
9448
9449 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_pic='-KPIC'
9452 lt_prog_compiler_static='-Bstatic'
9453 ;;
9454
9455 unicos*)
9456 lt_prog_compiler_wl='-Wl,'
9457 lt_prog_compiler_can_build_shared=no
9458 ;;
9459
9460 uts4*)
9461 lt_prog_compiler_pic='-pic'
9462 lt_prog_compiler_static='-Bstatic'
9463 ;;
9464
9465 *)
9466 lt_prog_compiler_can_build_shared=no
9467 ;;
9468 esac
9469 fi
9470
9471 case $host_os in
9472 # For platforms which do not support PIC, -DPIC is meaningless:
9473 *djgpp*)
9474 lt_prog_compiler_pic=
9475 ;;
9476 *)
9477 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9478 ;;
9479 esac
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9481 $as_echo "$lt_prog_compiler_pic" >&6; }
9482
9483
9484
9485
9486
9487
9488 #
9489 # Check to make sure the PIC flag actually works.
9490 #
9491 if test -n "$lt_prog_compiler_pic"; then
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9493 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9494 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 lt_cv_prog_compiler_pic_works=no
9498 ac_outfile=conftest.$ac_objext
9499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9500 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9501 # Insert the option either (1) after the last *FLAGS variable, or
9502 # (2) before a word containing "conftest.", or (3) at the end.
9503 # Note that $ac_compile itself does not contain backslashes and begins
9504 # with a dollar sign (not a hyphen), so the echo should work correctly.
9505 # The option is referenced via a variable to avoid confusing sed.
9506 lt_compile=`echo "$ac_compile" | $SED \
9507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9509 -e 's:$: $lt_compiler_flag:'`
9510 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9511 (eval "$lt_compile" 2>conftest.err)
9512 ac_status=$?
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 if (exit $ac_status) && test -s "$ac_outfile"; then
9516 # The compiler can only warn and ignore the option if not recognized
9517 # So say no if there are warnings other than the usual output.
9518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9521 lt_cv_prog_compiler_pic_works=yes
9522 fi
9523 fi
9524 $RM conftest*
9525
9526 fi
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9528 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9529
9530 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9531 case $lt_prog_compiler_pic in
9532 "" | " "*) ;;
9533 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9534 esac
9535 else
9536 lt_prog_compiler_pic=
9537 lt_prog_compiler_can_build_shared=no
9538 fi
9539
9540 fi
9541
9542
9543
9544
9545
9546
9547 #
9548 # Check to make sure the static flag actually works.
9549 #
9550 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9552 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9553 if ${lt_cv_prog_compiler_static_works+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 lt_cv_prog_compiler_static_works=no
9557 save_LDFLAGS="$LDFLAGS"
9558 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9559 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9561 # The linker can only warn and ignore the option if not recognized
9562 # So say no if there are warnings
9563 if test -s conftest.err; then
9564 # Append any errors to the config.log.
9565 cat conftest.err 1>&5
9566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9568 if diff conftest.exp conftest.er2 >/dev/null; then
9569 lt_cv_prog_compiler_static_works=yes
9570 fi
9571 else
9572 lt_cv_prog_compiler_static_works=yes
9573 fi
9574 fi
9575 $RM -r conftest*
9576 LDFLAGS="$save_LDFLAGS"
9577
9578 fi
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9580 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9581
9582 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9583 :
9584 else
9585 lt_prog_compiler_static=
9586 fi
9587
9588
9589
9590
9591
9592
9593
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9595 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9596 if ${lt_cv_prog_compiler_c_o+:} false; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 lt_cv_prog_compiler_c_o=no
9600 $RM -r conftest 2>/dev/null
9601 mkdir conftest
9602 cd conftest
9603 mkdir out
9604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9605
9606 lt_compiler_flag="-o out/conftest2.$ac_objext"
9607 # Insert the option either (1) after the last *FLAGS variable, or
9608 # (2) before a word containing "conftest.", or (3) at the end.
9609 # Note that $ac_compile itself does not contain backslashes and begins
9610 # with a dollar sign (not a hyphen), so the echo should work correctly.
9611 lt_compile=`echo "$ac_compile" | $SED \
9612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9614 -e 's:$: $lt_compiler_flag:'`
9615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9616 (eval "$lt_compile" 2>out/conftest.err)
9617 ac_status=$?
9618 cat out/conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9621 then
9622 # The compiler can only warn and ignore the option if not recognized
9623 # So say no if there are warnings
9624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9627 lt_cv_prog_compiler_c_o=yes
9628 fi
9629 fi
9630 chmod u+w . 2>&5
9631 $RM conftest*
9632 # SGI C++ compiler will create directory out/ii_files/ for
9633 # template instantiation
9634 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9635 $RM out/* && rmdir out
9636 cd ..
9637 $RM -r conftest
9638 $RM conftest*
9639
9640 fi
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9642 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9643
9644
9645
9646
9647
9648
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9650 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9651 if ${lt_cv_prog_compiler_c_o+:} false; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 lt_cv_prog_compiler_c_o=no
9655 $RM -r conftest 2>/dev/null
9656 mkdir conftest
9657 cd conftest
9658 mkdir out
9659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9660
9661 lt_compiler_flag="-o out/conftest2.$ac_objext"
9662 # Insert the option either (1) after the last *FLAGS variable, or
9663 # (2) before a word containing "conftest.", or (3) at the end.
9664 # Note that $ac_compile itself does not contain backslashes and begins
9665 # with a dollar sign (not a hyphen), so the echo should work correctly.
9666 lt_compile=`echo "$ac_compile" | $SED \
9667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9669 -e 's:$: $lt_compiler_flag:'`
9670 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9671 (eval "$lt_compile" 2>out/conftest.err)
9672 ac_status=$?
9673 cat out/conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9676 then
9677 # The compiler can only warn and ignore the option if not recognized
9678 # So say no if there are warnings
9679 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9680 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9681 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9682 lt_cv_prog_compiler_c_o=yes
9683 fi
9684 fi
9685 chmod u+w . 2>&5
9686 $RM conftest*
9687 # SGI C++ compiler will create directory out/ii_files/ for
9688 # template instantiation
9689 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9690 $RM out/* && rmdir out
9691 cd ..
9692 $RM -r conftest
9693 $RM conftest*
9694
9695 fi
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9697 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9698
9699
9700
9701
9702 hard_links="nottested"
9703 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9704 # do not overwrite the value of need_locks provided by the user
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9706 $as_echo_n "checking if we can lock with hard links... " >&6; }
9707 hard_links=yes
9708 $RM conftest*
9709 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9710 touch conftest.a
9711 ln conftest.a conftest.b 2>&5 || hard_links=no
9712 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9714 $as_echo "$hard_links" >&6; }
9715 if test "$hard_links" = no; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9717 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9718 need_locks=warn
9719 fi
9720 else
9721 need_locks=no
9722 fi
9723
9724
9725
9726
9727
9728
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9730 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9731
9732 runpath_var=
9733 allow_undefined_flag=
9734 always_export_symbols=no
9735 archive_cmds=
9736 archive_expsym_cmds=
9737 compiler_needs_object=no
9738 enable_shared_with_static_runtimes=no
9739 export_dynamic_flag_spec=
9740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9741 hardcode_automatic=no
9742 hardcode_direct=no
9743 hardcode_direct_absolute=no
9744 hardcode_libdir_flag_spec=
9745 hardcode_libdir_flag_spec_ld=
9746 hardcode_libdir_separator=
9747 hardcode_minus_L=no
9748 hardcode_shlibpath_var=unsupported
9749 inherit_rpath=no
9750 link_all_deplibs=unknown
9751 module_cmds=
9752 module_expsym_cmds=
9753 old_archive_from_new_cmds=
9754 old_archive_from_expsyms_cmds=
9755 thread_safe_flag_spec=
9756 whole_archive_flag_spec=
9757 # include_expsyms should be a list of space-separated symbols to be *always*
9758 # included in the symbol list
9759 include_expsyms=
9760 # exclude_expsyms can be an extended regexp of symbols to exclude
9761 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9762 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9763 # as well as any symbol that contains `d'.
9764 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9765 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9766 # platforms (ab)use it in PIC code, but their linkers get confused if
9767 # the symbol is explicitly referenced. Since portable code cannot
9768 # rely on this symbol name, it's probably fine to never include it in
9769 # preloaded symbol tables.
9770 # Exclude shared library initialization/finalization symbols.
9771 extract_expsyms_cmds=
9772
9773 case $host_os in
9774 cygwin* | mingw* | pw32* | cegcc*)
9775 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9776 # When not using gcc, we currently assume that we are using
9777 # Microsoft Visual C++.
9778 if test "$GCC" != yes; then
9779 with_gnu_ld=no
9780 fi
9781 ;;
9782 interix*)
9783 # we just hope/assume this is gcc and not c89 (= MSVC++)
9784 with_gnu_ld=yes
9785 ;;
9786 openbsd*)
9787 with_gnu_ld=no
9788 ;;
9789 esac
9790
9791 ld_shlibs=yes
9792
9793 # On some targets, GNU ld is compatible enough with the native linker
9794 # that we're better off using the native interface for both.
9795 lt_use_gnu_ld_interface=no
9796 if test "$with_gnu_ld" = yes; then
9797 case $host_os in
9798 aix*)
9799 # The AIX port of GNU ld has always aspired to compatibility
9800 # with the native linker. However, as the warning in the GNU ld
9801 # block says, versions before 2.19.5* couldn't really create working
9802 # shared libraries, regardless of the interface used.
9803 case `$LD -v 2>&1` in
9804 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9805 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9806 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9807 *)
9808 lt_use_gnu_ld_interface=yes
9809 ;;
9810 esac
9811 ;;
9812 *)
9813 lt_use_gnu_ld_interface=yes
9814 ;;
9815 esac
9816 fi
9817
9818 if test "$lt_use_gnu_ld_interface" = yes; then
9819 # If archive_cmds runs LD, not CC, wlarc should be empty
9820 wlarc='${wl}'
9821
9822 # Set some defaults for GNU ld with shared library support. These
9823 # are reset later if shared libraries are not supported. Putting them
9824 # here allows them to be overridden if necessary.
9825 runpath_var=LD_RUN_PATH
9826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9827 export_dynamic_flag_spec='${wl}--export-dynamic'
9828 # ancient GNU ld didn't support --whole-archive et. al.
9829 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9830 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9831 else
9832 whole_archive_flag_spec=
9833 fi
9834 supports_anon_versioning=no
9835 case `$LD -v 2>&1` in
9836 *GNU\ gold*) supports_anon_versioning=yes ;;
9837 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9838 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9839 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9840 *\ 2.11.*) ;; # other 2.11 versions
9841 *) supports_anon_versioning=yes ;;
9842 esac
9843
9844 # See if GNU ld supports shared libraries.
9845 case $host_os in
9846 aix[3-9]*)
9847 # On AIX/PPC, the GNU linker is very broken
9848 if test "$host_cpu" != ia64; then
9849 ld_shlibs=no
9850 cat <<_LT_EOF 1>&2
9851
9852 *** Warning: the GNU linker, at least up to release 2.19, is reported
9853 *** to be unable to reliably create shared libraries on AIX.
9854 *** Therefore, libtool is disabling shared libraries support. If you
9855 *** really care for shared libraries, you may want to install binutils
9856 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9857 *** You will then need to restart the configuration process.
9858
9859 _LT_EOF
9860 fi
9861 ;;
9862
9863 amigaos*)
9864 case $host_cpu in
9865 powerpc)
9866 # see comment about AmigaOS4 .so support
9867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9868 archive_expsym_cmds=''
9869 ;;
9870 m68k)
9871 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)'
9872 hardcode_libdir_flag_spec='-L$libdir'
9873 hardcode_minus_L=yes
9874 ;;
9875 esac
9876 ;;
9877
9878 beos*)
9879 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9880 allow_undefined_flag=unsupported
9881 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9882 # support --undefined. This deserves some investigation. FIXME
9883 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9884 else
9885 ld_shlibs=no
9886 fi
9887 ;;
9888
9889 cygwin* | mingw* | pw32* | cegcc*)
9890 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9891 # as there is no search path for DLLs.
9892 hardcode_libdir_flag_spec='-L$libdir'
9893 export_dynamic_flag_spec='${wl}--export-all-symbols'
9894 allow_undefined_flag=unsupported
9895 always_export_symbols=no
9896 enable_shared_with_static_runtimes=yes
9897 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9898
9899 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9901 # If the export-symbols file already is a .def file (1st line
9902 # is EXPORTS), use it as is; otherwise, prepend...
9903 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9904 cp $export_symbols $output_objdir/$soname.def;
9905 else
9906 echo EXPORTS > $output_objdir/$soname.def;
9907 cat $export_symbols >> $output_objdir/$soname.def;
9908 fi~
9909 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9910 else
9911 ld_shlibs=no
9912 fi
9913 ;;
9914
9915 haiku*)
9916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9917 link_all_deplibs=yes
9918 ;;
9919
9920 interix[3-9]*)
9921 hardcode_direct=no
9922 hardcode_shlibpath_var=no
9923 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9924 export_dynamic_flag_spec='${wl}-E'
9925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9926 # Instead, shared libraries are loaded at an image base (0x10000000 by
9927 # default) and relocated if they conflict, which is a slow very memory
9928 # consuming and fragmenting process. To avoid this, we pick a random,
9929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9930 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9932 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'
9933 ;;
9934
9935 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9936 tmp_diet=no
9937 if test "$host_os" = linux-dietlibc; then
9938 case $cc_basename in
9939 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9940 esac
9941 fi
9942 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9943 && test "$tmp_diet" = no
9944 then
9945 tmp_addflag=' $pic_flag'
9946 tmp_sharedflag='-shared'
9947 case $cc_basename,$host_cpu in
9948 pgcc*) # Portland Group C compiler
9949 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9950 tmp_addflag=' $pic_flag'
9951 ;;
9952 pgf77* | pgf90* | pgf95* | pgfortran*)
9953 # Portland Group f77 and f90 compilers
9954 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9955 tmp_addflag=' $pic_flag -Mnomain' ;;
9956 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9957 tmp_addflag=' -i_dynamic' ;;
9958 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9959 tmp_addflag=' -i_dynamic -nofor_main' ;;
9960 ifc* | ifort*) # Intel Fortran compiler
9961 tmp_addflag=' -nofor_main' ;;
9962 lf95*) # Lahey Fortran 8.1
9963 whole_archive_flag_spec=
9964 tmp_sharedflag='--shared' ;;
9965 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9966 tmp_sharedflag='-qmkshrobj'
9967 tmp_addflag= ;;
9968 nvcc*) # Cuda Compiler Driver 2.2
9969 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9970 compiler_needs_object=yes
9971 ;;
9972 esac
9973 case `$CC -V 2>&1 | sed 5q` in
9974 *Sun\ C*) # Sun C 5.9
9975 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9976 compiler_needs_object=yes
9977 tmp_sharedflag='-G' ;;
9978 *Sun\ F*) # Sun Fortran 8.3
9979 tmp_sharedflag='-G' ;;
9980 esac
9981 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982
9983 if test "x$supports_anon_versioning" = xyes; then
9984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9986 echo "local: *; };" >> $output_objdir/$libname.ver~
9987 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9988 fi
9989
9990 case $cc_basename in
9991 xlf* | bgf* | bgxlf* | mpixlf*)
9992 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9993 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9994 hardcode_libdir_flag_spec=
9995 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9996 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9997 if test "x$supports_anon_versioning" = xyes; then
9998 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10000 echo "local: *; };" >> $output_objdir/$libname.ver~
10001 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10002 fi
10003 ;;
10004 esac
10005 else
10006 ld_shlibs=no
10007 fi
10008 ;;
10009
10010 netbsd*)
10011 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10012 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10013 wlarc=
10014 else
10015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10017 fi
10018 ;;
10019
10020 solaris*)
10021 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10022 ld_shlibs=no
10023 cat <<_LT_EOF 1>&2
10024
10025 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10026 *** create shared libraries on Solaris systems. Therefore, libtool
10027 *** is disabling shared libraries support. We urge you to upgrade GNU
10028 *** binutils to release 2.9.1 or newer. Another option is to modify
10029 *** your PATH or compiler configuration so that the native linker is
10030 *** used, and then restart.
10031
10032 _LT_EOF
10033 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10036 else
10037 ld_shlibs=no
10038 fi
10039 ;;
10040
10041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10042 case `$LD -v 2>&1` in
10043 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10044 ld_shlibs=no
10045 cat <<_LT_EOF 1>&2
10046
10047 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10048 *** reliably create shared libraries on SCO systems. Therefore, libtool
10049 *** is disabling shared libraries support. We urge you to upgrade GNU
10050 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10051 *** your PATH or compiler configuration so that the native linker is
10052 *** used, and then restart.
10053
10054 _LT_EOF
10055 ;;
10056 *)
10057 # For security reasons, it is highly recommended that you always
10058 # use absolute paths for naming shared libraries, and exclude the
10059 # DT_RUNPATH tag from executables and libraries. But doing so
10060 # requires that you compile everything twice, which is a pain.
10061 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10065 else
10066 ld_shlibs=no
10067 fi
10068 ;;
10069 esac
10070 ;;
10071
10072 sunos4*)
10073 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10074 wlarc=
10075 hardcode_direct=yes
10076 hardcode_shlibpath_var=no
10077 ;;
10078
10079 *)
10080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10083 else
10084 ld_shlibs=no
10085 fi
10086 ;;
10087 esac
10088
10089 if test "$ld_shlibs" = no; then
10090 runpath_var=
10091 hardcode_libdir_flag_spec=
10092 export_dynamic_flag_spec=
10093 whole_archive_flag_spec=
10094 fi
10095 else
10096 # PORTME fill in a description of your system's linker (not GNU ld)
10097 case $host_os in
10098 aix3*)
10099 allow_undefined_flag=unsupported
10100 always_export_symbols=yes
10101 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'
10102 # Note: this linker hardcodes the directories in LIBPATH if there
10103 # are no directories specified by -L.
10104 hardcode_minus_L=yes
10105 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10106 # Neither direct hardcoding nor static linking is supported with a
10107 # broken collect2.
10108 hardcode_direct=unsupported
10109 fi
10110 ;;
10111
10112 aix[4-9]*)
10113 if test "$host_cpu" = ia64; then
10114 # On IA64, the linker does run time linking by default, so we don't
10115 # have to do anything special.
10116 aix_use_runtimelinking=no
10117 exp_sym_flag='-Bexport'
10118 no_entry_flag=""
10119 else
10120 # If we're using GNU nm, then we don't want the "-C" option.
10121 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10122 # Also, AIX nm treats weak defined symbols like other global
10123 # defined symbols, whereas GNU nm marks them as "W".
10124 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10125 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10126 else
10127 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10128 fi
10129 aix_use_runtimelinking=no
10130
10131 # Test if we are trying to use run time linking or normal
10132 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10133 # need to do runtime linking.
10134 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10135 for ld_flag in $LDFLAGS; do
10136 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10137 aix_use_runtimelinking=yes
10138 break
10139 fi
10140 done
10141 ;;
10142 esac
10143
10144 exp_sym_flag='-bexport'
10145 no_entry_flag='-bnoentry'
10146 fi
10147
10148 # When large executables or shared objects are built, AIX ld can
10149 # have problems creating the table of contents. If linking a library
10150 # or program results in "error TOC overflow" add -mminimal-toc to
10151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10153
10154 archive_cmds=''
10155 hardcode_direct=yes
10156 hardcode_direct_absolute=yes
10157 hardcode_libdir_separator=':'
10158 link_all_deplibs=yes
10159 file_list_spec='${wl}-f,'
10160
10161 if test "$GCC" = yes; then
10162 case $host_os in aix4.[012]|aix4.[012].*)
10163 # We only want to do this on AIX 4.2 and lower, the check
10164 # below for broken collect2 doesn't work under 4.3+
10165 collect2name=`${CC} -print-prog-name=collect2`
10166 if test -f "$collect2name" &&
10167 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10168 then
10169 # We have reworked collect2
10170 :
10171 else
10172 # We have old collect2
10173 hardcode_direct=unsupported
10174 # It fails to find uninstalled libraries when the uninstalled
10175 # path is not listed in the libpath. Setting hardcode_minus_L
10176 # to unsupported forces relinking
10177 hardcode_minus_L=yes
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_libdir_separator=
10180 fi
10181 ;;
10182 esac
10183 shared_flag='-shared'
10184 if test "$aix_use_runtimelinking" = yes; then
10185 shared_flag="$shared_flag "'${wl}-G'
10186 fi
10187 else
10188 # not using gcc
10189 if test "$host_cpu" = ia64; then
10190 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10191 # chokes on -Wl,-G. The following line is correct:
10192 shared_flag='-G'
10193 else
10194 if test "$aix_use_runtimelinking" = yes; then
10195 shared_flag='${wl}-G'
10196 else
10197 shared_flag='${wl}-bM:SRE'
10198 fi
10199 fi
10200 fi
10201
10202 export_dynamic_flag_spec='${wl}-bexpall'
10203 # It seems that -bexpall does not export symbols beginning with
10204 # underscore (_), so it is better to generate a list of symbols to export.
10205 always_export_symbols=yes
10206 if test "$aix_use_runtimelinking" = yes; then
10207 # Warning - without using the other runtime loading flags (-brtl),
10208 # -berok will link without error, but may produce a broken library.
10209 allow_undefined_flag='-berok'
10210 # Determine the default libpath from the value encoded in an
10211 # empty executable.
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214
10215 int
10216 main ()
10217 {
10218
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 if ac_fn_c_try_link "$LINENO"; then :
10224
10225 lt_aix_libpath_sed='
10226 /Import File Strings/,/^$/ {
10227 /^0/ {
10228 s/^0 *\(.*\)$/\1/
10229 p
10230 }
10231 }'
10232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10233 # Check for a 64-bit object if we didn't find anything.
10234 if test -z "$aix_libpath"; then
10235 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10236 fi
10237 fi
10238 rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10241
10242 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10243 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10244 else
10245 if test "$host_cpu" = ia64; then
10246 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10247 allow_undefined_flag="-z nodefs"
10248 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"
10249 else
10250 # Determine the default libpath from the value encoded in an
10251 # empty executable.
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10254
10255 int
10256 main ()
10257 {
10258
10259 ;
10260 return 0;
10261 }
10262 _ACEOF
10263 if ac_fn_c_try_link "$LINENO"; then :
10264
10265 lt_aix_libpath_sed='
10266 /Import File Strings/,/^$/ {
10267 /^0/ {
10268 s/^0 *\(.*\)$/\1/
10269 p
10270 }
10271 }'
10272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10273 # Check for a 64-bit object if we didn't find anything.
10274 if test -z "$aix_libpath"; then
10275 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10276 fi
10277 fi
10278 rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10281
10282 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10283 # Warning - without using the other run time loading flags,
10284 # -berok will link without error, but may produce a broken library.
10285 no_undefined_flag=' ${wl}-bernotok'
10286 allow_undefined_flag=' ${wl}-berok'
10287 if test "$with_gnu_ld" = yes; then
10288 # We only use this code for GNU lds that support --whole-archive.
10289 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10290 else
10291 # Exported symbols can be pulled into shared objects from archives
10292 whole_archive_flag_spec='$convenience'
10293 fi
10294 archive_cmds_need_lc=yes
10295 # This is similar to how AIX traditionally builds its shared libraries.
10296 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'
10297 fi
10298 fi
10299 ;;
10300
10301 amigaos*)
10302 case $host_cpu in
10303 powerpc)
10304 # see comment about AmigaOS4 .so support
10305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306 archive_expsym_cmds=''
10307 ;;
10308 m68k)
10309 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)'
10310 hardcode_libdir_flag_spec='-L$libdir'
10311 hardcode_minus_L=yes
10312 ;;
10313 esac
10314 ;;
10315
10316 bsdi[45]*)
10317 export_dynamic_flag_spec=-rdynamic
10318 ;;
10319
10320 cygwin* | mingw* | pw32* | cegcc*)
10321 # When not using gcc, we currently assume that we are using
10322 # Microsoft Visual C++.
10323 # hardcode_libdir_flag_spec is actually meaningless, as there is
10324 # no search path for DLLs.
10325 hardcode_libdir_flag_spec=' '
10326 allow_undefined_flag=unsupported
10327 # Tell ltmain to make .lib files, not .a files.
10328 libext=lib
10329 # Tell ltmain to make .dll files, not .so files.
10330 shrext_cmds=".dll"
10331 # FIXME: Setting linknames here is a bad hack.
10332 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10333 # The linker will automatically build a .lib file if we build a DLL.
10334 old_archive_from_new_cmds='true'
10335 # FIXME: Should let the user specify the lib program.
10336 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10337 fix_srcfile_path='`cygpath -w "$srcfile"`'
10338 enable_shared_with_static_runtimes=yes
10339 ;;
10340
10341 darwin* | rhapsody*)
10342
10343
10344 archive_cmds_need_lc=no
10345 hardcode_direct=no
10346 hardcode_automatic=yes
10347 hardcode_shlibpath_var=unsupported
10348 if test "$lt_cv_ld_force_load" = "yes"; then
10349 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10350 else
10351 whole_archive_flag_spec=''
10352 fi
10353 link_all_deplibs=yes
10354 allow_undefined_flag="$_lt_dar_allow_undefined"
10355 case $cc_basename in
10356 ifort*) _lt_dar_can_shared=yes ;;
10357 *) _lt_dar_can_shared=$GCC ;;
10358 esac
10359 if test "$_lt_dar_can_shared" = "yes"; then
10360 output_verbose_link_cmd=func_echo_all
10361 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10362 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10363 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}"
10364 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}"
10365
10366 else
10367 ld_shlibs=no
10368 fi
10369
10370 ;;
10371
10372 dgux*)
10373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10374 hardcode_libdir_flag_spec='-L$libdir'
10375 hardcode_shlibpath_var=no
10376 ;;
10377
10378 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10379 # support. Future versions do this automatically, but an explicit c++rt0.o
10380 # does not break anything, and helps significantly (at the cost of a little
10381 # extra space).
10382 freebsd2.2*)
10383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10384 hardcode_libdir_flag_spec='-R$libdir'
10385 hardcode_direct=yes
10386 hardcode_shlibpath_var=no
10387 ;;
10388
10389 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10390 freebsd2.*)
10391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10392 hardcode_direct=yes
10393 hardcode_minus_L=yes
10394 hardcode_shlibpath_var=no
10395 ;;
10396
10397 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10398 freebsd* | dragonfly*)
10399 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10400 hardcode_libdir_flag_spec='-R$libdir'
10401 hardcode_direct=yes
10402 hardcode_shlibpath_var=no
10403 ;;
10404
10405 hpux9*)
10406 if test "$GCC" = yes; then
10407 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'
10408 else
10409 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'
10410 fi
10411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10412 hardcode_libdir_separator=:
10413 hardcode_direct=yes
10414
10415 # hardcode_minus_L: Not really in the search PATH,
10416 # but as the default location of the library.
10417 hardcode_minus_L=yes
10418 export_dynamic_flag_spec='${wl}-E'
10419 ;;
10420
10421 hpux10*)
10422 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10423 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10424 else
10425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10426 fi
10427 if test "$with_gnu_ld" = no; then
10428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10429 hardcode_libdir_flag_spec_ld='+b $libdir'
10430 hardcode_libdir_separator=:
10431 hardcode_direct=yes
10432 hardcode_direct_absolute=yes
10433 export_dynamic_flag_spec='${wl}-E'
10434 # hardcode_minus_L: Not really in the search PATH,
10435 # but as the default location of the library.
10436 hardcode_minus_L=yes
10437 fi
10438 ;;
10439
10440 hpux11*)
10441 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10442 case $host_cpu in
10443 hppa*64*)
10444 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10445 ;;
10446 ia64*)
10447 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10448 ;;
10449 *)
10450 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10451 ;;
10452 esac
10453 else
10454 case $host_cpu in
10455 hppa*64*)
10456 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10457 ;;
10458 ia64*)
10459 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10460 ;;
10461 *)
10462
10463 # Older versions of the 11.00 compiler do not understand -b yet
10464 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10466 $as_echo_n "checking if $CC understands -b... " >&6; }
10467 if ${lt_cv_prog_compiler__b+:} false; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 lt_cv_prog_compiler__b=no
10471 save_LDFLAGS="$LDFLAGS"
10472 LDFLAGS="$LDFLAGS -b"
10473 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10474 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10475 # The linker can only warn and ignore the option if not recognized
10476 # So say no if there are warnings
10477 if test -s conftest.err; then
10478 # Append any errors to the config.log.
10479 cat conftest.err 1>&5
10480 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10482 if diff conftest.exp conftest.er2 >/dev/null; then
10483 lt_cv_prog_compiler__b=yes
10484 fi
10485 else
10486 lt_cv_prog_compiler__b=yes
10487 fi
10488 fi
10489 $RM -r conftest*
10490 LDFLAGS="$save_LDFLAGS"
10491
10492 fi
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10494 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10495
10496 if test x"$lt_cv_prog_compiler__b" = xyes; then
10497 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10498 else
10499 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10500 fi
10501
10502 ;;
10503 esac
10504 fi
10505 if test "$with_gnu_ld" = no; then
10506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10507 hardcode_libdir_separator=:
10508
10509 case $host_cpu in
10510 hppa*64*|ia64*)
10511 hardcode_direct=no
10512 hardcode_shlibpath_var=no
10513 ;;
10514 *)
10515 hardcode_direct=yes
10516 hardcode_direct_absolute=yes
10517 export_dynamic_flag_spec='${wl}-E'
10518
10519 # hardcode_minus_L: Not really in the search PATH,
10520 # but as the default location of the library.
10521 hardcode_minus_L=yes
10522 ;;
10523 esac
10524 fi
10525 ;;
10526
10527 irix5* | irix6* | nonstopux*)
10528 if test "$GCC" = yes; then
10529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10530 # Try to use the -exported_symbol ld option, if it does not
10531 # work, assume that -exports_file does not work either and
10532 # implicitly export all symbols.
10533 save_LDFLAGS="$LDFLAGS"
10534 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10537 int foo(void) {}
10538 _ACEOF
10539 if ac_fn_c_try_link "$LINENO"; then :
10540 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10541
10542 fi
10543 rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10545 LDFLAGS="$save_LDFLAGS"
10546 else
10547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10549 fi
10550 archive_cmds_need_lc='no'
10551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10552 hardcode_libdir_separator=:
10553 inherit_rpath=yes
10554 link_all_deplibs=yes
10555 ;;
10556
10557 netbsd*)
10558 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10560 else
10561 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10562 fi
10563 hardcode_libdir_flag_spec='-R$libdir'
10564 hardcode_direct=yes
10565 hardcode_shlibpath_var=no
10566 ;;
10567
10568 newsos6)
10569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10570 hardcode_direct=yes
10571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10572 hardcode_libdir_separator=:
10573 hardcode_shlibpath_var=no
10574 ;;
10575
10576 *nto* | *qnx*)
10577 ;;
10578
10579 openbsd*)
10580 if test -f /usr/libexec/ld.so; then
10581 hardcode_direct=yes
10582 hardcode_shlibpath_var=no
10583 hardcode_direct_absolute=yes
10584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10586 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10587 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10588 export_dynamic_flag_spec='${wl}-E'
10589 else
10590 case $host_os in
10591 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10593 hardcode_libdir_flag_spec='-R$libdir'
10594 ;;
10595 *)
10596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10597 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10598 ;;
10599 esac
10600 fi
10601 else
10602 ld_shlibs=no
10603 fi
10604 ;;
10605
10606 os2*)
10607 hardcode_libdir_flag_spec='-L$libdir'
10608 hardcode_minus_L=yes
10609 allow_undefined_flag=unsupported
10610 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'
10611 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10612 ;;
10613
10614 osf3*)
10615 if test "$GCC" = yes; then
10616 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10617 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10618 else
10619 allow_undefined_flag=' -expect_unresolved \*'
10620 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10621 fi
10622 archive_cmds_need_lc='no'
10623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10624 hardcode_libdir_separator=:
10625 ;;
10626
10627 osf4* | osf5*) # as osf3* with the addition of -msym flag
10628 if test "$GCC" = yes; then
10629 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10630 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10632 else
10633 allow_undefined_flag=' -expect_unresolved \*'
10634 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10635 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~
10636 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10637
10638 # Both c and cxx compiler support -rpath directly
10639 hardcode_libdir_flag_spec='-rpath $libdir'
10640 fi
10641 archive_cmds_need_lc='no'
10642 hardcode_libdir_separator=:
10643 ;;
10644
10645 solaris*)
10646 no_undefined_flag=' -z defs'
10647 if test "$GCC" = yes; then
10648 wlarc='${wl}'
10649 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10651 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10652 else
10653 case `$CC -V 2>&1` in
10654 *"Compilers 5.0"*)
10655 wlarc=''
10656 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10657 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10659 ;;
10660 *)
10661 wlarc='${wl}'
10662 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10664 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10665 ;;
10666 esac
10667 fi
10668 hardcode_libdir_flag_spec='-R$libdir'
10669 hardcode_shlibpath_var=no
10670 case $host_os in
10671 solaris2.[0-5] | solaris2.[0-5].*) ;;
10672 *)
10673 # The compiler driver will combine and reorder linker options,
10674 # but understands `-z linker_flag'. GCC discards it without `$wl',
10675 # but is careful enough not to reorder.
10676 # Supported since Solaris 2.6 (maybe 2.5.1?)
10677 if test "$GCC" = yes; then
10678 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10679 else
10680 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10681 fi
10682 ;;
10683 esac
10684 link_all_deplibs=yes
10685 ;;
10686
10687 sunos4*)
10688 if test "x$host_vendor" = xsequent; then
10689 # Use $CC to link under sequent, because it throws in some extra .o
10690 # files that make .init and .fini sections work.
10691 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10692 else
10693 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10694 fi
10695 hardcode_libdir_flag_spec='-L$libdir'
10696 hardcode_direct=yes
10697 hardcode_minus_L=yes
10698 hardcode_shlibpath_var=no
10699 ;;
10700
10701 sysv4)
10702 case $host_vendor in
10703 sni)
10704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10705 hardcode_direct=yes # is this really true???
10706 ;;
10707 siemens)
10708 ## LD is ld it makes a PLAMLIB
10709 ## CC just makes a GrossModule.
10710 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10711 reload_cmds='$CC -r -o $output$reload_objs'
10712 hardcode_direct=no
10713 ;;
10714 motorola)
10715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10717 ;;
10718 esac
10719 runpath_var='LD_RUN_PATH'
10720 hardcode_shlibpath_var=no
10721 ;;
10722
10723 sysv4.3*)
10724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10725 hardcode_shlibpath_var=no
10726 export_dynamic_flag_spec='-Bexport'
10727 ;;
10728
10729 sysv4*MP*)
10730 if test -d /usr/nec; then
10731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10732 hardcode_shlibpath_var=no
10733 runpath_var=LD_RUN_PATH
10734 hardcode_runpath_var=yes
10735 ld_shlibs=yes
10736 fi
10737 ;;
10738
10739 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10740 no_undefined_flag='${wl}-z,text'
10741 archive_cmds_need_lc=no
10742 hardcode_shlibpath_var=no
10743 runpath_var='LD_RUN_PATH'
10744
10745 if test "$GCC" = yes; then
10746 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 else
10749 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10750 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 fi
10752 ;;
10753
10754 sysv5* | sco3.2v5* | sco5v6*)
10755 # Note: We can NOT use -z defs as we might desire, because we do not
10756 # link with -lc, and that would cause any symbols used from libc to
10757 # always be unresolved, which means just about no library would
10758 # ever link correctly. If we're not using GNU ld we use -z text
10759 # though, which does catch some bad symbols but isn't as heavy-handed
10760 # as -z defs.
10761 no_undefined_flag='${wl}-z,text'
10762 allow_undefined_flag='${wl}-z,nodefs'
10763 archive_cmds_need_lc=no
10764 hardcode_shlibpath_var=no
10765 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10766 hardcode_libdir_separator=':'
10767 link_all_deplibs=yes
10768 export_dynamic_flag_spec='${wl}-Bexport'
10769 runpath_var='LD_RUN_PATH'
10770
10771 if test "$GCC" = yes; then
10772 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10773 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10774 else
10775 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10776 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 fi
10778 ;;
10779
10780 uts4*)
10781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782 hardcode_libdir_flag_spec='-L$libdir'
10783 hardcode_shlibpath_var=no
10784 ;;
10785
10786 *)
10787 ld_shlibs=no
10788 ;;
10789 esac
10790
10791 if test x$host_vendor = xsni; then
10792 case $host in
10793 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10794 export_dynamic_flag_spec='${wl}-Blargedynsym'
10795 ;;
10796 esac
10797 fi
10798 fi
10799
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10801 $as_echo "$ld_shlibs" >&6; }
10802 test "$ld_shlibs" = no && can_build_shared=no
10803
10804 with_gnu_ld=$with_gnu_ld
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820 #
10821 # Do we need to explicitly link libc?
10822 #
10823 case "x$archive_cmds_need_lc" in
10824 x|xyes)
10825 # Assume -lc should be added
10826 archive_cmds_need_lc=yes
10827
10828 if test "$enable_shared" = yes && test "$GCC" = yes; then
10829 case $archive_cmds in
10830 *'~'*)
10831 # FIXME: we may have to deal with multi-command sequences.
10832 ;;
10833 '$CC '*)
10834 # Test whether the compiler implicitly links with -lc since on some
10835 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10836 # to ld, don't add -lc before -lgcc.
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10838 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10839 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 $RM conftest*
10843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10844
10845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10846 (eval $ac_compile) 2>&5
10847 ac_status=$?
10848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10849 test $ac_status = 0; } 2>conftest.err; then
10850 soname=conftest
10851 lib=conftest
10852 libobjs=conftest.$ac_objext
10853 deplibs=
10854 wl=$lt_prog_compiler_wl
10855 pic_flag=$lt_prog_compiler_pic
10856 compiler_flags=-v
10857 linker_flags=-v
10858 verstring=
10859 output_objdir=.
10860 libname=conftest
10861 lt_save_allow_undefined_flag=$allow_undefined_flag
10862 allow_undefined_flag=
10863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10864 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10865 ac_status=$?
10866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10867 test $ac_status = 0; }
10868 then
10869 lt_cv_archive_cmds_need_lc=no
10870 else
10871 lt_cv_archive_cmds_need_lc=yes
10872 fi
10873 allow_undefined_flag=$lt_save_allow_undefined_flag
10874 else
10875 cat conftest.err 1>&5
10876 fi
10877 $RM conftest*
10878
10879 fi
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10881 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10882 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10883 ;;
10884 esac
10885 fi
10886 ;;
10887 esac
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11046 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11047
11048 if test "$GCC" = yes; then
11049 case $host_os in
11050 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11051 *) lt_awk_arg="/^libraries:/" ;;
11052 esac
11053 case $host_os in
11054 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11055 *) lt_sed_strip_eq="s,=/,/,g" ;;
11056 esac
11057 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11058 case $lt_search_path_spec in
11059 *\;*)
11060 # if the path contains ";" then we assume it to be the separator
11061 # otherwise default to the standard path separator (i.e. ":") - it is
11062 # assumed that no part of a normal pathname contains ";" but that should
11063 # okay in the real world where ";" in dirpaths is itself problematic.
11064 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11065 ;;
11066 *)
11067 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11068 ;;
11069 esac
11070 # Ok, now we have the path, separated by spaces, we can step through it
11071 # and add multilib dir if necessary.
11072 lt_tmp_lt_search_path_spec=
11073 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11074 for lt_sys_path in $lt_search_path_spec; do
11075 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11076 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11077 else
11078 test -d "$lt_sys_path" && \
11079 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11080 fi
11081 done
11082 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11083 BEGIN {RS=" "; FS="/|\n";} {
11084 lt_foo="";
11085 lt_count=0;
11086 for (lt_i = NF; lt_i > 0; lt_i--) {
11087 if ($lt_i != "" && $lt_i != ".") {
11088 if ($lt_i == "..") {
11089 lt_count++;
11090 } else {
11091 if (lt_count == 0) {
11092 lt_foo="/" $lt_i lt_foo;
11093 } else {
11094 lt_count--;
11095 }
11096 }
11097 }
11098 }
11099 if (lt_foo != "") { lt_freq[lt_foo]++; }
11100 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11101 }'`
11102 # AWK program above erroneously prepends '/' to C:/dos/paths
11103 # for these hosts.
11104 case $host_os in
11105 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11106 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11107 esac
11108 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11109 else
11110 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11111 fi
11112 library_names_spec=
11113 libname_spec='lib$name'
11114 soname_spec=
11115 shrext_cmds=".so"
11116 postinstall_cmds=
11117 postuninstall_cmds=
11118 finish_cmds=
11119 finish_eval=
11120 shlibpath_var=
11121 shlibpath_overrides_runpath=unknown
11122 version_type=none
11123 dynamic_linker="$host_os ld.so"
11124 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11125 need_lib_prefix=unknown
11126 hardcode_into_libs=no
11127
11128 # when you set need_version to no, make sure it does not cause -set_version
11129 # flags to be left without arguments
11130 need_version=unknown
11131
11132 case $host_os in
11133 aix3*)
11134 version_type=linux
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11136 shlibpath_var=LIBPATH
11137
11138 # AIX 3 has no versioning support, so we append a major version to the name.
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 ;;
11141
11142 aix[4-9]*)
11143 version_type=linux
11144 need_lib_prefix=no
11145 need_version=no
11146 hardcode_into_libs=yes
11147 if test "$host_cpu" = ia64; then
11148 # AIX 5 supports IA64
11149 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 else
11152 # With GCC up to 2.95.x, collect2 would create an import file
11153 # for dependence libraries. The import file would start with
11154 # the line `#! .'. This would cause the generated library to
11155 # depend on `.', always an invalid library. This was fixed in
11156 # development snapshots of GCC prior to 3.0.
11157 case $host_os in
11158 aix4 | aix4.[01] | aix4.[01].*)
11159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11160 echo ' yes '
11161 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11162 :
11163 else
11164 can_build_shared=no
11165 fi
11166 ;;
11167 esac
11168 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11169 # soname into executable. Probably we can add versioning support to
11170 # collect2, so additional links can be useful in future.
11171 if test "$aix_use_runtimelinking" = yes; then
11172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11173 # instead of lib<name>.a to let people know that these are not
11174 # typical AIX shared libraries.
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 else
11177 # We preserve .a as extension for shared libraries through AIX4.2
11178 # and later when we are not doing run time linking.
11179 library_names_spec='${libname}${release}.a $libname.a'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 fi
11182 shlibpath_var=LIBPATH
11183 fi
11184 ;;
11185
11186 amigaos*)
11187 case $host_cpu in
11188 powerpc)
11189 # Since July 2007 AmigaOS4 officially supports .so libraries.
11190 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 ;;
11193 m68k)
11194 library_names_spec='$libname.ixlibrary $libname.a'
11195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11196 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11197 ;;
11198 esac
11199 ;;
11200
11201 beos*)
11202 library_names_spec='${libname}${shared_ext}'
11203 dynamic_linker="$host_os ld.so"
11204 shlibpath_var=LIBRARY_PATH
11205 ;;
11206
11207 bsdi[45]*)
11208 version_type=linux
11209 need_version=no
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11213 shlibpath_var=LD_LIBRARY_PATH
11214 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11215 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11216 # the default ld.so.conf also contains /usr/contrib/lib and
11217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11218 # libtool to hard-code these into programs
11219 ;;
11220
11221 cygwin* | mingw* | pw32* | cegcc*)
11222 version_type=windows
11223 shrext_cmds=".dll"
11224 need_version=no
11225 need_lib_prefix=no
11226
11227 case $GCC,$host_os in
11228 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11229 library_names_spec='$libname.dll.a'
11230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11231 postinstall_cmds='base_file=`basename \${file}`~
11232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11233 dldir=$destdir/`dirname \$dlpath`~
11234 test -d \$dldir || mkdir -p \$dldir~
11235 $install_prog $dir/$dlname \$dldir/$dlname~
11236 chmod a+x \$dldir/$dlname~
11237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11239 fi'
11240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11241 dlpath=$dir/\$dldll~
11242 $RM \$dlpath'
11243 shlibpath_overrides_runpath=yes
11244
11245 case $host_os in
11246 cygwin*)
11247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11249
11250 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11251 ;;
11252 mingw* | cegcc*)
11253 # MinGW DLLs use traditional 'lib' prefix
11254 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11255 ;;
11256 pw32*)
11257 # pw32 DLLs use 'pw' prefix rather than 'lib'
11258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11259 ;;
11260 esac
11261 ;;
11262
11263 *)
11264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11265 ;;
11266 esac
11267 dynamic_linker='Win32 ld.exe'
11268 # FIXME: first we should search . and the directory the executable is in
11269 shlibpath_var=PATH
11270 ;;
11271
11272 darwin* | rhapsody*)
11273 dynamic_linker="$host_os dyld"
11274 version_type=darwin
11275 need_lib_prefix=no
11276 need_version=no
11277 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11278 soname_spec='${libname}${release}${major}$shared_ext'
11279 shlibpath_overrides_runpath=yes
11280 shlibpath_var=DYLD_LIBRARY_PATH
11281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11282
11283 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11284 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11285 ;;
11286
11287 dgux*)
11288 version_type=linux
11289 need_lib_prefix=no
11290 need_version=no
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 ;;
11295
11296 freebsd* | dragonfly*)
11297 # DragonFly does not have aout. When/if they implement a new
11298 # versioning mechanism, adjust this.
11299 if test -x /usr/bin/objformat; then
11300 objformat=`/usr/bin/objformat`
11301 else
11302 case $host_os in
11303 freebsd[23].*) objformat=aout ;;
11304 *) objformat=elf ;;
11305 esac
11306 fi
11307 version_type=freebsd-$objformat
11308 case $version_type in
11309 freebsd-elf*)
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11311 need_version=no
11312 need_lib_prefix=no
11313 ;;
11314 freebsd-*)
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11316 need_version=yes
11317 ;;
11318 esac
11319 shlibpath_var=LD_LIBRARY_PATH
11320 case $host_os in
11321 freebsd2.*)
11322 shlibpath_overrides_runpath=yes
11323 ;;
11324 freebsd3.[01]* | freebsdelf3.[01]*)
11325 shlibpath_overrides_runpath=yes
11326 hardcode_into_libs=yes
11327 ;;
11328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11330 shlibpath_overrides_runpath=no
11331 hardcode_into_libs=yes
11332 ;;
11333 *) # from 4.6 on, and DragonFly
11334 shlibpath_overrides_runpath=yes
11335 hardcode_into_libs=yes
11336 ;;
11337 esac
11338 ;;
11339
11340 haiku*)
11341 version_type=linux
11342 need_lib_prefix=no
11343 need_version=no
11344 dynamic_linker="$host_os runtime_loader"
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 shlibpath_var=LIBRARY_PATH
11348 shlibpath_overrides_runpath=yes
11349 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11350 hardcode_into_libs=yes
11351 ;;
11352
11353 hpux9* | hpux10* | hpux11*)
11354 # Give a soname corresponding to the major version so that dld.sl refuses to
11355 # link against other versions.
11356 version_type=sunos
11357 need_lib_prefix=no
11358 need_version=no
11359 case $host_cpu in
11360 ia64*)
11361 shrext_cmds='.so'
11362 hardcode_into_libs=yes
11363 dynamic_linker="$host_os dld.so"
11364 shlibpath_var=LD_LIBRARY_PATH
11365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 if test "X$HPUX_IA64_MODE" = X32; then
11369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11370 else
11371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11372 fi
11373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11374 ;;
11375 hppa*64*)
11376 shrext_cmds='.sl'
11377 hardcode_into_libs=yes
11378 dynamic_linker="$host_os dld.sl"
11379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11385 ;;
11386 *)
11387 shrext_cmds='.sl'
11388 dynamic_linker="$host_os dld.sl"
11389 shlibpath_var=SHLIB_PATH
11390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 ;;
11394 esac
11395 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11396 postinstall_cmds='chmod 555 $lib'
11397 # or fails outright, so override atomically:
11398 install_override_mode=555
11399 ;;
11400
11401 interix[3-9]*)
11402 version_type=linux
11403 need_lib_prefix=no
11404 need_version=no
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11406 soname_spec='${libname}${release}${shared_ext}$major'
11407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath=no
11410 hardcode_into_libs=yes
11411 ;;
11412
11413 irix5* | irix6* | nonstopux*)
11414 case $host_os in
11415 nonstopux*) version_type=nonstopux ;;
11416 *)
11417 if test "$lt_cv_prog_gnu_ld" = yes; then
11418 version_type=linux
11419 else
11420 version_type=irix
11421 fi ;;
11422 esac
11423 need_lib_prefix=no
11424 need_version=no
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11427 case $host_os in
11428 irix5* | nonstopux*)
11429 libsuff= shlibsuff=
11430 ;;
11431 *)
11432 case $LD in # libtool.m4 will add one of these switches to LD
11433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11434 libsuff= shlibsuff= libmagic=32-bit;;
11435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11436 libsuff=32 shlibsuff=N32 libmagic=N32;;
11437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11439 *) libsuff= shlibsuff= libmagic=never-match;;
11440 esac
11441 ;;
11442 esac
11443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11444 shlibpath_overrides_runpath=no
11445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11447 hardcode_into_libs=yes
11448 ;;
11449
11450 # No shared lib support for Linux oldld, aout, or coff.
11451 linux*oldld* | linux*aout* | linux*coff*)
11452 dynamic_linker=no
11453 ;;
11454
11455 # This must be Linux ELF.
11456 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11457 version_type=linux
11458 need_lib_prefix=no
11459 need_version=no
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465
11466 # Some binutils ld are patched to set DT_RUNPATH
11467 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 lt_cv_shlibpath_overrides_runpath=no
11471 save_LDFLAGS=$LDFLAGS
11472 save_libdir=$libdir
11473 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11474 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477
11478 int
11479 main ()
11480 {
11481
11482 ;
11483 return 0;
11484 }
11485 _ACEOF
11486 if ac_fn_c_try_link "$LINENO"; then :
11487 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11488 lt_cv_shlibpath_overrides_runpath=yes
11489 fi
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext \
11492 conftest$ac_exeext conftest.$ac_ext
11493 LDFLAGS=$save_LDFLAGS
11494 libdir=$save_libdir
11495
11496 fi
11497
11498 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11499
11500 # This implies no fast_install, which is unacceptable.
11501 # Some rework will be needed to allow for fast_install
11502 # before this can be enabled.
11503 hardcode_into_libs=yes
11504
11505 # Append ld.so.conf contents to the search path
11506 if test -f /etc/ld.so.conf; then
11507 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;s/"//g;/^$/d' | tr '\n' ' '`
11508 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11509 fi
11510
11511 # We used to test for /lib/ld.so.1 and disable shared libraries on
11512 # powerpc, because MkLinux only supported shared libraries with the
11513 # GNU dynamic linker. Since this was broken with cross compilers,
11514 # most powerpc-linux boxes support dynamic linking these days and
11515 # people can always --disable-shared, the test was removed, and we
11516 # assume the GNU/Linux dynamic linker is in use.
11517 dynamic_linker='GNU/Linux ld.so'
11518 ;;
11519
11520 netbsd*)
11521 version_type=sunos
11522 need_lib_prefix=no
11523 need_version=no
11524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11527 dynamic_linker='NetBSD (a.out) ld.so'
11528 else
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 dynamic_linker='NetBSD ld.elf_so'
11532 fi
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=yes
11535 hardcode_into_libs=yes
11536 ;;
11537
11538 newsos6)
11539 version_type=linux
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=yes
11543 ;;
11544
11545 *nto* | *qnx*)
11546 version_type=qnx
11547 need_lib_prefix=no
11548 need_version=no
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=no
11553 hardcode_into_libs=yes
11554 dynamic_linker='ldqnx.so'
11555 ;;
11556
11557 openbsd*)
11558 version_type=sunos
11559 sys_lib_dlsearch_path_spec="/usr/lib"
11560 need_lib_prefix=no
11561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11562 case $host_os in
11563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11564 *) need_version=no ;;
11565 esac
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11570 case $host_os in
11571 openbsd2.[89] | openbsd2.[89].*)
11572 shlibpath_overrides_runpath=no
11573 ;;
11574 *)
11575 shlibpath_overrides_runpath=yes
11576 ;;
11577 esac
11578 else
11579 shlibpath_overrides_runpath=yes
11580 fi
11581 ;;
11582
11583 os2*)
11584 libname_spec='$name'
11585 shrext_cmds=".dll"
11586 need_lib_prefix=no
11587 library_names_spec='$libname${shared_ext} $libname.a'
11588 dynamic_linker='OS/2 ld.exe'
11589 shlibpath_var=LIBPATH
11590 ;;
11591
11592 osf3* | osf4* | osf5*)
11593 version_type=osf
11594 need_lib_prefix=no
11595 need_version=no
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11601 ;;
11602
11603 rdos*)
11604 dynamic_linker=no
11605 ;;
11606
11607 solaris*)
11608 version_type=linux
11609 need_lib_prefix=no
11610 need_version=no
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=yes
11615 hardcode_into_libs=yes
11616 # ldd complains unless libraries are executable
11617 postinstall_cmds='chmod +x $lib'
11618 ;;
11619
11620 sunos4*)
11621 version_type=sunos
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11623 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=yes
11626 if test "$with_gnu_ld" = yes; then
11627 need_lib_prefix=no
11628 fi
11629 need_version=yes
11630 ;;
11631
11632 sysv4 | sysv4.3*)
11633 version_type=linux
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 case $host_vendor in
11638 sni)
11639 shlibpath_overrides_runpath=no
11640 need_lib_prefix=no
11641 runpath_var=LD_RUN_PATH
11642 ;;
11643 siemens)
11644 need_lib_prefix=no
11645 ;;
11646 motorola)
11647 need_lib_prefix=no
11648 need_version=no
11649 shlibpath_overrides_runpath=no
11650 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11651 ;;
11652 esac
11653 ;;
11654
11655 sysv4*MP*)
11656 if test -d /usr/nec ;then
11657 version_type=linux
11658 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11659 soname_spec='$libname${shared_ext}.$major'
11660 shlibpath_var=LD_LIBRARY_PATH
11661 fi
11662 ;;
11663
11664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11665 version_type=freebsd-elf
11666 need_lib_prefix=no
11667 need_version=no
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 shlibpath_var=LD_LIBRARY_PATH
11671 shlibpath_overrides_runpath=yes
11672 hardcode_into_libs=yes
11673 if test "$with_gnu_ld" = yes; then
11674 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11675 else
11676 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11677 case $host_os in
11678 sco3.2v5*)
11679 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11680 ;;
11681 esac
11682 fi
11683 sys_lib_dlsearch_path_spec='/usr/lib'
11684 ;;
11685
11686 tpf*)
11687 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11688 version_type=linux
11689 need_lib_prefix=no
11690 need_version=no
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11692 shlibpath_var=LD_LIBRARY_PATH
11693 shlibpath_overrides_runpath=no
11694 hardcode_into_libs=yes
11695 ;;
11696
11697 uts4*)
11698 version_type=linux
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 ;;
11703
11704 *)
11705 dynamic_linker=no
11706 ;;
11707 esac
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11709 $as_echo "$dynamic_linker" >&6; }
11710 test "$dynamic_linker" = no && can_build_shared=no
11711
11712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11713 if test "$GCC" = yes; then
11714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11715 fi
11716
11717 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11718 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11719 fi
11720 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11721 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11722 fi
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11816 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11817 hardcode_action=
11818 if test -n "$hardcode_libdir_flag_spec" ||
11819 test -n "$runpath_var" ||
11820 test "X$hardcode_automatic" = "Xyes" ; then
11821
11822 # We can hardcode non-existent directories.
11823 if test "$hardcode_direct" != no &&
11824 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11825 # have to relink, otherwise we might link with an installed library
11826 # when we should be linking with a yet-to-be-installed one
11827 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11828 test "$hardcode_minus_L" != no; then
11829 # Linking always hardcodes the temporary library directory.
11830 hardcode_action=relink
11831 else
11832 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11833 hardcode_action=immediate
11834 fi
11835 else
11836 # We cannot hardcode anything, or else we can only hardcode existing
11837 # directories.
11838 hardcode_action=unsupported
11839 fi
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11841 $as_echo "$hardcode_action" >&6; }
11842
11843 if test "$hardcode_action" = relink ||
11844 test "$inherit_rpath" = yes; then
11845 # Fast installation is not supported
11846 enable_fast_install=no
11847 elif test "$shlibpath_overrides_runpath" = yes ||
11848 test "$enable_shared" = no; then
11849 # Fast installation is not necessary
11850 enable_fast_install=needless
11851 fi
11852
11853
11854
11855
11856
11857
11858 if test "x$enable_dlopen" != xyes; then
11859 enable_dlopen=unknown
11860 enable_dlopen_self=unknown
11861 enable_dlopen_self_static=unknown
11862 else
11863 lt_cv_dlopen=no
11864 lt_cv_dlopen_libs=
11865
11866 case $host_os in
11867 beos*)
11868 lt_cv_dlopen="load_add_on"
11869 lt_cv_dlopen_libs=
11870 lt_cv_dlopen_self=yes
11871 ;;
11872
11873 mingw* | pw32* | cegcc*)
11874 lt_cv_dlopen="LoadLibrary"
11875 lt_cv_dlopen_libs=
11876 ;;
11877
11878 cygwin*)
11879 lt_cv_dlopen="dlopen"
11880 lt_cv_dlopen_libs=
11881 ;;
11882
11883 darwin*)
11884 # if libdl is installed we need to link against it
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11886 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11887 if ${ac_cv_lib_dl_dlopen+:} false; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 ac_check_lib_save_LIBS=$LIBS
11891 LIBS="-ldl $LIBS"
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11894
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 char dlopen ();
11902 int
11903 main ()
11904 {
11905 return dlopen ();
11906 ;
11907 return 0;
11908 }
11909 _ACEOF
11910 if ac_fn_c_try_link "$LINENO"; then :
11911 ac_cv_lib_dl_dlopen=yes
11912 else
11913 ac_cv_lib_dl_dlopen=no
11914 fi
11915 rm -f core conftest.err conftest.$ac_objext \
11916 conftest$ac_exeext conftest.$ac_ext
11917 LIBS=$ac_check_lib_save_LIBS
11918 fi
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11920 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11921 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11923 else
11924
11925 lt_cv_dlopen="dyld"
11926 lt_cv_dlopen_libs=
11927 lt_cv_dlopen_self=yes
11928
11929 fi
11930
11931 ;;
11932
11933 *)
11934 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11935 if test "x$ac_cv_func_shl_load" = xyes; then :
11936 lt_cv_dlopen="shl_load"
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11939 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11940 if ${ac_cv_lib_dld_shl_load+:} false; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 ac_check_lib_save_LIBS=$LIBS
11944 LIBS="-ldld $LIBS"
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11951 #ifdef __cplusplus
11952 extern "C"
11953 #endif
11954 char shl_load ();
11955 int
11956 main ()
11957 {
11958 return shl_load ();
11959 ;
11960 return 0;
11961 }
11962 _ACEOF
11963 if ac_fn_c_try_link "$LINENO"; then :
11964 ac_cv_lib_dld_shl_load=yes
11965 else
11966 ac_cv_lib_dld_shl_load=no
11967 fi
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11970 LIBS=$ac_check_lib_save_LIBS
11971 fi
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11973 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11974 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11975 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11976 else
11977 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11978 if test "x$ac_cv_func_dlopen" = xyes; then :
11979 lt_cv_dlopen="dlopen"
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11982 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11983 if ${ac_cv_lib_dl_dlopen+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 ac_check_lib_save_LIBS=$LIBS
11987 LIBS="-ldl $LIBS"
11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11990
11991 /* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
11994 #ifdef __cplusplus
11995 extern "C"
11996 #endif
11997 char dlopen ();
11998 int
11999 main ()
12000 {
12001 return dlopen ();
12002 ;
12003 return 0;
12004 }
12005 _ACEOF
12006 if ac_fn_c_try_link "$LINENO"; then :
12007 ac_cv_lib_dl_dlopen=yes
12008 else
12009 ac_cv_lib_dl_dlopen=no
12010 fi
12011 rm -f core conftest.err conftest.$ac_objext \
12012 conftest$ac_exeext conftest.$ac_ext
12013 LIBS=$ac_check_lib_save_LIBS
12014 fi
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12016 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12017 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12021 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12022 if ${ac_cv_lib_svld_dlopen+:} false; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 ac_check_lib_save_LIBS=$LIBS
12026 LIBS="-lsvld $LIBS"
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12029
12030 /* Override any GCC internal prototype to avoid an error.
12031 Use char because int might match the return type of a GCC
12032 builtin and then its argument prototype would still apply. */
12033 #ifdef __cplusplus
12034 extern "C"
12035 #endif
12036 char dlopen ();
12037 int
12038 main ()
12039 {
12040 return dlopen ();
12041 ;
12042 return 0;
12043 }
12044 _ACEOF
12045 if ac_fn_c_try_link "$LINENO"; then :
12046 ac_cv_lib_svld_dlopen=yes
12047 else
12048 ac_cv_lib_svld_dlopen=no
12049 fi
12050 rm -f core conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12052 LIBS=$ac_check_lib_save_LIBS
12053 fi
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12055 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12056 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12057 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12058 else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12060 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12061 if ${ac_cv_lib_dld_dld_link+:} false; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 ac_check_lib_save_LIBS=$LIBS
12065 LIBS="-ldld $LIBS"
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12068
12069 /* Override any GCC internal prototype to avoid an error.
12070 Use char because int might match the return type of a GCC
12071 builtin and then its argument prototype would still apply. */
12072 #ifdef __cplusplus
12073 extern "C"
12074 #endif
12075 char dld_link ();
12076 int
12077 main ()
12078 {
12079 return dld_link ();
12080 ;
12081 return 0;
12082 }
12083 _ACEOF
12084 if ac_fn_c_try_link "$LINENO"; then :
12085 ac_cv_lib_dld_dld_link=yes
12086 else
12087 ac_cv_lib_dld_dld_link=no
12088 fi
12089 rm -f core conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12091 LIBS=$ac_check_lib_save_LIBS
12092 fi
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12094 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12095 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12096 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12097 fi
12098
12099
12100 fi
12101
12102
12103 fi
12104
12105
12106 fi
12107
12108
12109 fi
12110
12111
12112 fi
12113
12114 ;;
12115 esac
12116
12117 if test "x$lt_cv_dlopen" != xno; then
12118 enable_dlopen=yes
12119 else
12120 enable_dlopen=no
12121 fi
12122
12123 case $lt_cv_dlopen in
12124 dlopen)
12125 save_CPPFLAGS="$CPPFLAGS"
12126 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12127
12128 save_LDFLAGS="$LDFLAGS"
12129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12130
12131 save_LIBS="$LIBS"
12132 LIBS="$lt_cv_dlopen_libs $LIBS"
12133
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12135 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12136 if ${lt_cv_dlopen_self+:} false; then :
12137 $as_echo_n "(cached) " >&6
12138 else
12139 if test "$cross_compiling" = yes; then :
12140 lt_cv_dlopen_self=cross
12141 else
12142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12143 lt_status=$lt_dlunknown
12144 cat > conftest.$ac_ext <<_LT_EOF
12145 #line 12145 "configure"
12146 #include "confdefs.h"
12147
12148 #if HAVE_DLFCN_H
12149 #include <dlfcn.h>
12150 #endif
12151
12152 #include <stdio.h>
12153
12154 #ifdef RTLD_GLOBAL
12155 # define LT_DLGLOBAL RTLD_GLOBAL
12156 #else
12157 # ifdef DL_GLOBAL
12158 # define LT_DLGLOBAL DL_GLOBAL
12159 # else
12160 # define LT_DLGLOBAL 0
12161 # endif
12162 #endif
12163
12164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12165 find out it does not work in some platform. */
12166 #ifndef LT_DLLAZY_OR_NOW
12167 # ifdef RTLD_LAZY
12168 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12169 # else
12170 # ifdef DL_LAZY
12171 # define LT_DLLAZY_OR_NOW DL_LAZY
12172 # else
12173 # ifdef RTLD_NOW
12174 # define LT_DLLAZY_OR_NOW RTLD_NOW
12175 # else
12176 # ifdef DL_NOW
12177 # define LT_DLLAZY_OR_NOW DL_NOW
12178 # else
12179 # define LT_DLLAZY_OR_NOW 0
12180 # endif
12181 # endif
12182 # endif
12183 # endif
12184 #endif
12185
12186 /* When -fvisbility=hidden is used, assume the code has been annotated
12187 correspondingly for the symbols needed. */
12188 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12189 void fnord () __attribute__((visibility("default")));
12190 #endif
12191
12192 void fnord () { int i=42; }
12193 int main ()
12194 {
12195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12196 int status = $lt_dlunknown;
12197
12198 if (self)
12199 {
12200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12201 else
12202 {
12203 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12204 else puts (dlerror ());
12205 }
12206 /* dlclose (self); */
12207 }
12208 else
12209 puts (dlerror ());
12210
12211 return status;
12212 }
12213 _LT_EOF
12214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12215 (eval $ac_link) 2>&5
12216 ac_status=$?
12217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12218 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12219 (./conftest; exit; ) >&5 2>/dev/null
12220 lt_status=$?
12221 case x$lt_status in
12222 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12223 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12224 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12225 esac
12226 else :
12227 # compilation failed
12228 lt_cv_dlopen_self=no
12229 fi
12230 fi
12231 rm -fr conftest*
12232
12233
12234 fi
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12236 $as_echo "$lt_cv_dlopen_self" >&6; }
12237
12238 if test "x$lt_cv_dlopen_self" = xyes; then
12239 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12241 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12242 if ${lt_cv_dlopen_self_static+:} false; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 if test "$cross_compiling" = yes; then :
12246 lt_cv_dlopen_self_static=cross
12247 else
12248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12249 lt_status=$lt_dlunknown
12250 cat > conftest.$ac_ext <<_LT_EOF
12251 #line 12251 "configure"
12252 #include "confdefs.h"
12253
12254 #if HAVE_DLFCN_H
12255 #include <dlfcn.h>
12256 #endif
12257
12258 #include <stdio.h>
12259
12260 #ifdef RTLD_GLOBAL
12261 # define LT_DLGLOBAL RTLD_GLOBAL
12262 #else
12263 # ifdef DL_GLOBAL
12264 # define LT_DLGLOBAL DL_GLOBAL
12265 # else
12266 # define LT_DLGLOBAL 0
12267 # endif
12268 #endif
12269
12270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12271 find out it does not work in some platform. */
12272 #ifndef LT_DLLAZY_OR_NOW
12273 # ifdef RTLD_LAZY
12274 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12275 # else
12276 # ifdef DL_LAZY
12277 # define LT_DLLAZY_OR_NOW DL_LAZY
12278 # else
12279 # ifdef RTLD_NOW
12280 # define LT_DLLAZY_OR_NOW RTLD_NOW
12281 # else
12282 # ifdef DL_NOW
12283 # define LT_DLLAZY_OR_NOW DL_NOW
12284 # else
12285 # define LT_DLLAZY_OR_NOW 0
12286 # endif
12287 # endif
12288 # endif
12289 # endif
12290 #endif
12291
12292 /* When -fvisbility=hidden is used, assume the code has been annotated
12293 correspondingly for the symbols needed. */
12294 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12295 void fnord () __attribute__((visibility("default")));
12296 #endif
12297
12298 void fnord () { int i=42; }
12299 int main ()
12300 {
12301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12302 int status = $lt_dlunknown;
12303
12304 if (self)
12305 {
12306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12307 else
12308 {
12309 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12310 else puts (dlerror ());
12311 }
12312 /* dlclose (self); */
12313 }
12314 else
12315 puts (dlerror ());
12316
12317 return status;
12318 }
12319 _LT_EOF
12320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12321 (eval $ac_link) 2>&5
12322 ac_status=$?
12323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12324 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12325 (./conftest; exit; ) >&5 2>/dev/null
12326 lt_status=$?
12327 case x$lt_status in
12328 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12329 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12330 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12331 esac
12332 else :
12333 # compilation failed
12334 lt_cv_dlopen_self_static=no
12335 fi
12336 fi
12337 rm -fr conftest*
12338
12339
12340 fi
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12342 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12343 fi
12344
12345 CPPFLAGS="$save_CPPFLAGS"
12346 LDFLAGS="$save_LDFLAGS"
12347 LIBS="$save_LIBS"
12348 ;;
12349 esac
12350
12351 case $lt_cv_dlopen_self in
12352 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12353 *) enable_dlopen_self=unknown ;;
12354 esac
12355
12356 case $lt_cv_dlopen_self_static in
12357 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12358 *) enable_dlopen_self_static=unknown ;;
12359 esac
12360 fi
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378 striplib=
12379 old_striplib=
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12381 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12382 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12383 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12384 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12386 $as_echo "yes" >&6; }
12387 else
12388 # FIXME - insert some real tests, host_os isn't really good enough
12389 case $host_os in
12390 darwin*)
12391 if test -n "$STRIP" ; then
12392 striplib="$STRIP -x"
12393 old_striplib="$STRIP -S"
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12395 $as_echo "yes" >&6; }
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12399 fi
12400 ;;
12401 *)
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12404 ;;
12405 esac
12406 fi
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419 # Report which library types will actually be built
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12421 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12423 $as_echo "$can_build_shared" >&6; }
12424
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12426 $as_echo_n "checking whether to build shared libraries... " >&6; }
12427 test "$can_build_shared" = "no" && enable_shared=no
12428
12429 # On AIX, shared libraries and static libraries use the same namespace, and
12430 # are all built from PIC.
12431 case $host_os in
12432 aix3*)
12433 test "$enable_shared" = yes && enable_static=no
12434 if test -n "$RANLIB"; then
12435 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12436 postinstall_cmds='$RANLIB $lib'
12437 fi
12438 ;;
12439
12440 aix[4-9]*)
12441 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12442 test "$enable_shared" = yes && enable_static=no
12443 fi
12444 ;;
12445 esac
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12447 $as_echo "$enable_shared" >&6; }
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12450 $as_echo_n "checking whether to build static libraries... " >&6; }
12451 # Make sure either enable_shared or enable_static is yes.
12452 test "$enable_shared" = yes || enable_static=yes
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12454 $as_echo "$enable_static" >&6; }
12455
12456
12457
12458
12459 fi
12460 ac_ext=c
12461 ac_cpp='$CPP $CPPFLAGS'
12462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465
12466 CC="$lt_save_CC"
12467
12468 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12469 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12470 (test "X$CXX" != "Xg++"))) ; then
12471 ac_ext=cpp
12472 ac_cpp='$CXXCPP $CPPFLAGS'
12473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12477 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12478 if test -z "$CXXCPP"; then
12479 if ${ac_cv_prog_CXXCPP+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 # Double quotes because CXXCPP needs to be expanded
12483 for CXXCPP in "$CXX -E" "/lib/cpp"
12484 do
12485 ac_preproc_ok=false
12486 for ac_cxx_preproc_warn_flag in '' yes
12487 do
12488 # Use a header file that comes with gcc, so configuring glibc
12489 # with a fresh cross-compiler works.
12490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12491 # <limits.h> exists even on freestanding compilers.
12492 # On the NeXT, cc -E runs the code through the compiler's parser,
12493 # not just through cpp. "Syntax error" is here to catch this case.
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12496 #ifdef __STDC__
12497 # include <limits.h>
12498 #else
12499 # include <assert.h>
12500 #endif
12501 Syntax error
12502 _ACEOF
12503 if ac_fn_cxx_try_cpp "$LINENO"; then :
12504
12505 else
12506 # Broken: fails on valid input.
12507 continue
12508 fi
12509 rm -f conftest.err conftest.i conftest.$ac_ext
12510
12511 # OK, works on sane cases. Now check whether nonexistent headers
12512 # can be detected and how.
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 #include <ac_nonexistent.h>
12516 _ACEOF
12517 if ac_fn_cxx_try_cpp "$LINENO"; then :
12518 # Broken: success on invalid input.
12519 continue
12520 else
12521 # Passes both tests.
12522 ac_preproc_ok=:
12523 break
12524 fi
12525 rm -f conftest.err conftest.i conftest.$ac_ext
12526
12527 done
12528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12529 rm -f conftest.i conftest.err conftest.$ac_ext
12530 if $ac_preproc_ok; then :
12531 break
12532 fi
12533
12534 done
12535 ac_cv_prog_CXXCPP=$CXXCPP
12536
12537 fi
12538 CXXCPP=$ac_cv_prog_CXXCPP
12539 else
12540 ac_cv_prog_CXXCPP=$CXXCPP
12541 fi
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12543 $as_echo "$CXXCPP" >&6; }
12544 ac_preproc_ok=false
12545 for ac_cxx_preproc_warn_flag in '' yes
12546 do
12547 # Use a header file that comes with gcc, so configuring glibc
12548 # with a fresh cross-compiler works.
12549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12550 # <limits.h> exists even on freestanding compilers.
12551 # On the NeXT, cc -E runs the code through the compiler's parser,
12552 # not just through cpp. "Syntax error" is here to catch this case.
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555 #ifdef __STDC__
12556 # include <limits.h>
12557 #else
12558 # include <assert.h>
12559 #endif
12560 Syntax error
12561 _ACEOF
12562 if ac_fn_cxx_try_cpp "$LINENO"; then :
12563
12564 else
12565 # Broken: fails on valid input.
12566 continue
12567 fi
12568 rm -f conftest.err conftest.i conftest.$ac_ext
12569
12570 # OK, works on sane cases. Now check whether nonexistent headers
12571 # can be detected and how.
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12574 #include <ac_nonexistent.h>
12575 _ACEOF
12576 if ac_fn_cxx_try_cpp "$LINENO"; then :
12577 # Broken: success on invalid input.
12578 continue
12579 else
12580 # Passes both tests.
12581 ac_preproc_ok=:
12582 break
12583 fi
12584 rm -f conftest.err conftest.i conftest.$ac_ext
12585
12586 done
12587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12588 rm -f conftest.i conftest.err conftest.$ac_ext
12589 if $ac_preproc_ok; then :
12590
12591 else
12592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12594 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12595 See \`config.log' for more details" "$LINENO" 5; }
12596 fi
12597
12598 ac_ext=c
12599 ac_cpp='$CPP $CPPFLAGS'
12600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12603
12604 else
12605 _lt_caught_CXX_error=yes
12606 fi
12607
12608 ac_ext=cpp
12609 ac_cpp='$CXXCPP $CPPFLAGS'
12610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12613
12614 archive_cmds_need_lc_CXX=no
12615 allow_undefined_flag_CXX=
12616 always_export_symbols_CXX=no
12617 archive_expsym_cmds_CXX=
12618 compiler_needs_object_CXX=no
12619 export_dynamic_flag_spec_CXX=
12620 hardcode_direct_CXX=no
12621 hardcode_direct_absolute_CXX=no
12622 hardcode_libdir_flag_spec_CXX=
12623 hardcode_libdir_flag_spec_ld_CXX=
12624 hardcode_libdir_separator_CXX=
12625 hardcode_minus_L_CXX=no
12626 hardcode_shlibpath_var_CXX=unsupported
12627 hardcode_automatic_CXX=no
12628 inherit_rpath_CXX=no
12629 module_cmds_CXX=
12630 module_expsym_cmds_CXX=
12631 link_all_deplibs_CXX=unknown
12632 old_archive_cmds_CXX=$old_archive_cmds
12633 reload_flag_CXX=$reload_flag
12634 reload_cmds_CXX=$reload_cmds
12635 no_undefined_flag_CXX=
12636 whole_archive_flag_spec_CXX=
12637 enable_shared_with_static_runtimes_CXX=no
12638
12639 # Source file extension for C++ test sources.
12640 ac_ext=cpp
12641
12642 # Object file extension for compiled C++ test sources.
12643 objext=o
12644 objext_CXX=$objext
12645
12646 # No sense in running all these tests if we already determined that
12647 # the CXX compiler isn't working. Some variables (like enable_shared)
12648 # are currently assumed to apply to all compilers on this platform,
12649 # and will be corrupted by setting them based on a non-working compiler.
12650 if test "$_lt_caught_CXX_error" != yes; then
12651 # Code to be used in simple compile tests
12652 lt_simple_compile_test_code="int some_variable = 0;"
12653
12654 # Code to be used in simple link tests
12655 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12656
12657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12658
12659
12660
12661
12662
12663
12664 # If no C compiler was specified, use CC.
12665 LTCC=${LTCC-"$CC"}
12666
12667 # If no C compiler flags were specified, use CFLAGS.
12668 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12669
12670 # Allow CC to be a program name with arguments.
12671 compiler=$CC
12672
12673
12674 # save warnings/boilerplate of simple test code
12675 ac_outfile=conftest.$ac_objext
12676 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12677 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12678 _lt_compiler_boilerplate=`cat conftest.err`
12679 $RM conftest*
12680
12681 ac_outfile=conftest.$ac_objext
12682 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12683 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12684 _lt_linker_boilerplate=`cat conftest.err`
12685 $RM -r conftest*
12686
12687
12688 # Allow CC to be a program name with arguments.
12689 lt_save_CC=$CC
12690 lt_save_LD=$LD
12691 lt_save_GCC=$GCC
12692 GCC=$GXX
12693 lt_save_with_gnu_ld=$with_gnu_ld
12694 lt_save_path_LD=$lt_cv_path_LD
12695 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12696 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12697 else
12698 $as_unset lt_cv_prog_gnu_ld
12699 fi
12700 if test -n "${lt_cv_path_LDCXX+set}"; then
12701 lt_cv_path_LD=$lt_cv_path_LDCXX
12702 else
12703 $as_unset lt_cv_path_LD
12704 fi
12705 test -z "${LDCXX+set}" || LD=$LDCXX
12706 CC=${CXX-"c++"}
12707 compiler=$CC
12708 compiler_CXX=$CC
12709 for cc_temp in $compiler""; do
12710 case $cc_temp in
12711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12713 \-*) ;;
12714 *) break;;
12715 esac
12716 done
12717 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12718
12719
12720 if test -n "$compiler"; then
12721 # We don't want -fno-exception when compiling C++ code, so set the
12722 # no_builtin_flag separately
12723 if test "$GXX" = yes; then
12724 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12725 else
12726 lt_prog_compiler_no_builtin_flag_CXX=
12727 fi
12728
12729 if test "$GXX" = yes; then
12730 # Set up default GNU C++ configuration
12731
12732
12733
12734 # Check whether --with-gnu-ld was given.
12735 if test "${with_gnu_ld+set}" = set; then :
12736 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12737 else
12738 with_gnu_ld=no
12739 fi
12740
12741 ac_prog=ld
12742 if test "$GCC" = yes; then
12743 # Check if gcc -print-prog-name=ld gives a path.
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12745 $as_echo_n "checking for ld used by $CC... " >&6; }
12746 case $host in
12747 *-*-mingw*)
12748 # gcc leaves a trailing carriage return which upsets mingw
12749 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12750 *)
12751 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12752 esac
12753 case $ac_prog in
12754 # Accept absolute paths.
12755 [\\/]* | ?:[\\/]*)
12756 re_direlt='/[^/][^/]*/\.\./'
12757 # Canonicalize the pathname of ld
12758 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12759 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12760 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12761 done
12762 test -z "$LD" && LD="$ac_prog"
12763 ;;
12764 "")
12765 # If it fails, then pretend we aren't using GCC.
12766 ac_prog=ld
12767 ;;
12768 *)
12769 # If it is relative, then search for the first ld in PATH.
12770 with_gnu_ld=unknown
12771 ;;
12772 esac
12773 elif test "$with_gnu_ld" = yes; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12775 $as_echo_n "checking for GNU ld... " >&6; }
12776 else
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12778 $as_echo_n "checking for non-GNU ld... " >&6; }
12779 fi
12780 if ${lt_cv_path_LD+:} false; then :
12781 $as_echo_n "(cached) " >&6
12782 else
12783 if test -z "$LD"; then
12784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12785 for ac_dir in $PATH; do
12786 IFS="$lt_save_ifs"
12787 test -z "$ac_dir" && ac_dir=.
12788 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12789 lt_cv_path_LD="$ac_dir/$ac_prog"
12790 # Check to see if the program is GNU ld. I'd rather use --version,
12791 # but apparently some variants of GNU ld only accept -v.
12792 # Break only if it was the GNU/non-GNU ld that we prefer.
12793 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12794 *GNU* | *'with BFD'*)
12795 test "$with_gnu_ld" != no && break
12796 ;;
12797 *)
12798 test "$with_gnu_ld" != yes && break
12799 ;;
12800 esac
12801 fi
12802 done
12803 IFS="$lt_save_ifs"
12804 else
12805 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12806 fi
12807 fi
12808
12809 LD="$lt_cv_path_LD"
12810 if test -n "$LD"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12812 $as_echo "$LD" >&6; }
12813 else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12816 fi
12817 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12819 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12820 if ${lt_cv_prog_gnu_ld+:} false; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12824 case `$LD -v 2>&1 </dev/null` in
12825 *GNU* | *'with BFD'*)
12826 lt_cv_prog_gnu_ld=yes
12827 ;;
12828 *)
12829 lt_cv_prog_gnu_ld=no
12830 ;;
12831 esac
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12834 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12835 with_gnu_ld=$lt_cv_prog_gnu_ld
12836
12837
12838
12839
12840
12841
12842
12843 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12844 # archiving commands below assume that GNU ld is being used.
12845 if test "$with_gnu_ld" = yes; then
12846 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12847 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12848
12849 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12850 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12851
12852 # If archive_cmds runs LD, not CC, wlarc should be empty
12853 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12854 # investigate it a little bit more. (MM)
12855 wlarc='${wl}'
12856
12857 # ancient GNU ld didn't support --whole-archive et. al.
12858 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12859 $GREP 'no-whole-archive' > /dev/null; then
12860 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12861 else
12862 whole_archive_flag_spec_CXX=
12863 fi
12864 else
12865 with_gnu_ld=no
12866 wlarc=
12867
12868 # A generic and very simple default shared library creation
12869 # command for GNU C++ for the case where it uses the native
12870 # linker, instead of GNU ld. If possible, this setting should
12871 # overridden to take advantage of the native linker features on
12872 # the platform it is being used on.
12873 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12874 fi
12875
12876 # Commands to make compiler produce verbose output that lists
12877 # what "hidden" libraries, object files and flags are used when
12878 # linking a shared library.
12879 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12880
12881 else
12882 GXX=no
12883 with_gnu_ld=no
12884 wlarc=
12885 fi
12886
12887 # PORTME: fill in a description of your system's C++ link characteristics
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12889 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12890 ld_shlibs_CXX=yes
12891 case $host_os in
12892 aix3*)
12893 # FIXME: insert proper C++ library support
12894 ld_shlibs_CXX=no
12895 ;;
12896 aix[4-9]*)
12897 if test "$host_cpu" = ia64; then
12898 # On IA64, the linker does run time linking by default, so we don't
12899 # have to do anything special.
12900 aix_use_runtimelinking=no
12901 exp_sym_flag='-Bexport'
12902 no_entry_flag=""
12903 else
12904 aix_use_runtimelinking=no
12905
12906 # Test if we are trying to use run time linking or normal
12907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12908 # need to do runtime linking.
12909 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12910 for ld_flag in $LDFLAGS; do
12911 case $ld_flag in
12912 *-brtl*)
12913 aix_use_runtimelinking=yes
12914 break
12915 ;;
12916 esac
12917 done
12918 ;;
12919 esac
12920
12921 exp_sym_flag='-bexport'
12922 no_entry_flag='-bnoentry'
12923 fi
12924
12925 # When large executables or shared objects are built, AIX ld can
12926 # have problems creating the table of contents. If linking a library
12927 # or program results in "error TOC overflow" add -mminimal-toc to
12928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12930
12931 archive_cmds_CXX=''
12932 hardcode_direct_CXX=yes
12933 hardcode_direct_absolute_CXX=yes
12934 hardcode_libdir_separator_CXX=':'
12935 link_all_deplibs_CXX=yes
12936 file_list_spec_CXX='${wl}-f,'
12937
12938 if test "$GXX" = yes; then
12939 case $host_os in aix4.[012]|aix4.[012].*)
12940 # We only want to do this on AIX 4.2 and lower, the check
12941 # below for broken collect2 doesn't work under 4.3+
12942 collect2name=`${CC} -print-prog-name=collect2`
12943 if test -f "$collect2name" &&
12944 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12945 then
12946 # We have reworked collect2
12947 :
12948 else
12949 # We have old collect2
12950 hardcode_direct_CXX=unsupported
12951 # It fails to find uninstalled libraries when the uninstalled
12952 # path is not listed in the libpath. Setting hardcode_minus_L
12953 # to unsupported forces relinking
12954 hardcode_minus_L_CXX=yes
12955 hardcode_libdir_flag_spec_CXX='-L$libdir'
12956 hardcode_libdir_separator_CXX=
12957 fi
12958 esac
12959 shared_flag='-shared'
12960 if test "$aix_use_runtimelinking" = yes; then
12961 shared_flag="$shared_flag "'${wl}-G'
12962 fi
12963 else
12964 # not using gcc
12965 if test "$host_cpu" = ia64; then
12966 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12967 # chokes on -Wl,-G. The following line is correct:
12968 shared_flag='-G'
12969 else
12970 if test "$aix_use_runtimelinking" = yes; then
12971 shared_flag='${wl}-G'
12972 else
12973 shared_flag='${wl}-bM:SRE'
12974 fi
12975 fi
12976 fi
12977
12978 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12979 # It seems that -bexpall does not export symbols beginning with
12980 # underscore (_), so it is better to generate a list of symbols to
12981 # export.
12982 always_export_symbols_CXX=yes
12983 if test "$aix_use_runtimelinking" = yes; then
12984 # Warning - without using the other runtime loading flags (-brtl),
12985 # -berok will link without error, but may produce a broken library.
12986 allow_undefined_flag_CXX='-berok'
12987 # Determine the default libpath from the value encoded in an empty
12988 # executable.
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12991
12992 int
12993 main ()
12994 {
12995
12996 ;
12997 return 0;
12998 }
12999 _ACEOF
13000 if ac_fn_cxx_try_link "$LINENO"; then :
13001
13002 lt_aix_libpath_sed='
13003 /Import File Strings/,/^$/ {
13004 /^0/ {
13005 s/^0 *\(.*\)$/\1/
13006 p
13007 }
13008 }'
13009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13010 # Check for a 64-bit object if we didn't find anything.
13011 if test -z "$aix_libpath"; then
13012 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13013 fi
13014 fi
13015 rm -f core conftest.err conftest.$ac_objext \
13016 conftest$ac_exeext conftest.$ac_ext
13017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13018
13019 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13020
13021 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13022 else
13023 if test "$host_cpu" = ia64; then
13024 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13025 allow_undefined_flag_CXX="-z nodefs"
13026 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"
13027 else
13028 # Determine the default libpath from the value encoded in an
13029 # empty executable.
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13032
13033 int
13034 main ()
13035 {
13036
13037 ;
13038 return 0;
13039 }
13040 _ACEOF
13041 if ac_fn_cxx_try_link "$LINENO"; then :
13042
13043 lt_aix_libpath_sed='
13044 /Import File Strings/,/^$/ {
13045 /^0/ {
13046 s/^0 *\(.*\)$/\1/
13047 p
13048 }
13049 }'
13050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13051 # Check for a 64-bit object if we didn't find anything.
13052 if test -z "$aix_libpath"; then
13053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13054 fi
13055 fi
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13059
13060 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13061 # Warning - without using the other run time loading flags,
13062 # -berok will link without error, but may produce a broken library.
13063 no_undefined_flag_CXX=' ${wl}-bernotok'
13064 allow_undefined_flag_CXX=' ${wl}-berok'
13065 if test "$with_gnu_ld" = yes; then
13066 # We only use this code for GNU lds that support --whole-archive.
13067 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13068 else
13069 # Exported symbols can be pulled into shared objects from archives
13070 whole_archive_flag_spec_CXX='$convenience'
13071 fi
13072 archive_cmds_need_lc_CXX=yes
13073 # This is similar to how AIX traditionally builds its shared
13074 # libraries.
13075 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'
13076 fi
13077 fi
13078 ;;
13079
13080 beos*)
13081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13082 allow_undefined_flag_CXX=unsupported
13083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13084 # support --undefined. This deserves some investigation. FIXME
13085 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13086 else
13087 ld_shlibs_CXX=no
13088 fi
13089 ;;
13090
13091 chorus*)
13092 case $cc_basename in
13093 *)
13094 # FIXME: insert proper C++ library support
13095 ld_shlibs_CXX=no
13096 ;;
13097 esac
13098 ;;
13099
13100 cygwin* | mingw* | pw32* | cegcc*)
13101 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13102 # as there is no search path for DLLs.
13103 hardcode_libdir_flag_spec_CXX='-L$libdir'
13104 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13105 allow_undefined_flag_CXX=unsupported
13106 always_export_symbols_CXX=no
13107 enable_shared_with_static_runtimes_CXX=yes
13108
13109 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13110 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'
13111 # If the export-symbols file already is a .def file (1st line
13112 # is EXPORTS), use it as is; otherwise, prepend...
13113 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13114 cp $export_symbols $output_objdir/$soname.def;
13115 else
13116 echo EXPORTS > $output_objdir/$soname.def;
13117 cat $export_symbols >> $output_objdir/$soname.def;
13118 fi~
13119 $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'
13120 else
13121 ld_shlibs_CXX=no
13122 fi
13123 ;;
13124 darwin* | rhapsody*)
13125
13126
13127 archive_cmds_need_lc_CXX=no
13128 hardcode_direct_CXX=no
13129 hardcode_automatic_CXX=yes
13130 hardcode_shlibpath_var_CXX=unsupported
13131 if test "$lt_cv_ld_force_load" = "yes"; then
13132 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13133 else
13134 whole_archive_flag_spec_CXX=''
13135 fi
13136 link_all_deplibs_CXX=yes
13137 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13138 case $cc_basename in
13139 ifort*) _lt_dar_can_shared=yes ;;
13140 *) _lt_dar_can_shared=$GCC ;;
13141 esac
13142 if test "$_lt_dar_can_shared" = "yes"; then
13143 output_verbose_link_cmd=func_echo_all
13144 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}"
13145 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13146 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}"
13147 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}"
13148 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13149 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}"
13150 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}"
13151 fi
13152
13153 else
13154 ld_shlibs_CXX=no
13155 fi
13156
13157 ;;
13158
13159 dgux*)
13160 case $cc_basename in
13161 ec++*)
13162 # FIXME: insert proper C++ library support
13163 ld_shlibs_CXX=no
13164 ;;
13165 ghcx*)
13166 # Green Hills C++ Compiler
13167 # FIXME: insert proper C++ library support
13168 ld_shlibs_CXX=no
13169 ;;
13170 *)
13171 # FIXME: insert proper C++ library support
13172 ld_shlibs_CXX=no
13173 ;;
13174 esac
13175 ;;
13176
13177 freebsd2.*)
13178 # C++ shared libraries reported to be fairly broken before
13179 # switch to ELF
13180 ld_shlibs_CXX=no
13181 ;;
13182
13183 freebsd-elf*)
13184 archive_cmds_need_lc_CXX=no
13185 ;;
13186
13187 freebsd* | dragonfly*)
13188 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13189 # conventions
13190 ld_shlibs_CXX=yes
13191 ;;
13192
13193 gnu*)
13194 ;;
13195
13196 haiku*)
13197 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13198 link_all_deplibs_CXX=yes
13199 ;;
13200
13201 hpux9*)
13202 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13203 hardcode_libdir_separator_CXX=:
13204 export_dynamic_flag_spec_CXX='${wl}-E'
13205 hardcode_direct_CXX=yes
13206 hardcode_minus_L_CXX=yes # Not in the search PATH,
13207 # but as the default
13208 # location of the library.
13209
13210 case $cc_basename in
13211 CC*)
13212 # FIXME: insert proper C++ library support
13213 ld_shlibs_CXX=no
13214 ;;
13215 aCC*)
13216 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'
13217 # Commands to make compiler produce verbose output that lists
13218 # what "hidden" libraries, object files and flags are used when
13219 # linking a shared library.
13220 #
13221 # There doesn't appear to be a way to prevent this compiler from
13222 # explicitly linking system object files so we need to strip them
13223 # from the output so that they don't get included in the library
13224 # dependencies.
13225 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; func_echo_all "$list"'
13226 ;;
13227 *)
13228 if test "$GXX" = yes; then
13229 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'
13230 else
13231 # FIXME: insert proper C++ library support
13232 ld_shlibs_CXX=no
13233 fi
13234 ;;
13235 esac
13236 ;;
13237
13238 hpux10*|hpux11*)
13239 if test $with_gnu_ld = no; then
13240 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13241 hardcode_libdir_separator_CXX=:
13242
13243 case $host_cpu in
13244 hppa*64*|ia64*)
13245 ;;
13246 *)
13247 export_dynamic_flag_spec_CXX='${wl}-E'
13248 ;;
13249 esac
13250 fi
13251 case $host_cpu in
13252 hppa*64*|ia64*)
13253 hardcode_direct_CXX=no
13254 hardcode_shlibpath_var_CXX=no
13255 ;;
13256 *)
13257 hardcode_direct_CXX=yes
13258 hardcode_direct_absolute_CXX=yes
13259 hardcode_minus_L_CXX=yes # Not in the search PATH,
13260 # but as the default
13261 # location of the library.
13262 ;;
13263 esac
13264
13265 case $cc_basename in
13266 CC*)
13267 # FIXME: insert proper C++ library support
13268 ld_shlibs_CXX=no
13269 ;;
13270 aCC*)
13271 case $host_cpu in
13272 hppa*64*)
13273 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274 ;;
13275 ia64*)
13276 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13277 ;;
13278 *)
13279 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13280 ;;
13281 esac
13282 # Commands to make compiler produce verbose output that lists
13283 # what "hidden" libraries, object files and flags are used when
13284 # linking a shared library.
13285 #
13286 # There doesn't appear to be a way to prevent this compiler from
13287 # explicitly linking system object files so we need to strip them
13288 # from the output so that they don't get included in the library
13289 # dependencies.
13290 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; func_echo_all "$list"'
13291 ;;
13292 *)
13293 if test "$GXX" = yes; then
13294 if test $with_gnu_ld = no; then
13295 case $host_cpu in
13296 hppa*64*)
13297 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13298 ;;
13299 ia64*)
13300 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13301 ;;
13302 *)
13303 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'
13304 ;;
13305 esac
13306 fi
13307 else
13308 # FIXME: insert proper C++ library support
13309 ld_shlibs_CXX=no
13310 fi
13311 ;;
13312 esac
13313 ;;
13314
13315 interix[3-9]*)
13316 hardcode_direct_CXX=no
13317 hardcode_shlibpath_var_CXX=no
13318 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13319 export_dynamic_flag_spec_CXX='${wl}-E'
13320 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13321 # Instead, shared libraries are loaded at an image base (0x10000000 by
13322 # default) and relocated if they conflict, which is a slow very memory
13323 # consuming and fragmenting process. To avoid this, we pick a random,
13324 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13325 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13326 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'
13327 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'
13328 ;;
13329 irix5* | irix6*)
13330 case $cc_basename in
13331 CC*)
13332 # SGI C++
13333 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13334
13335 # Archives containing C++ object files must be created using
13336 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13337 # necessary to make sure instantiated templates are included
13338 # in the archive.
13339 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13340 ;;
13341 *)
13342 if test "$GXX" = yes; then
13343 if test "$with_gnu_ld" = no; then
13344 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13345 else
13346 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13347 fi
13348 fi
13349 link_all_deplibs_CXX=yes
13350 ;;
13351 esac
13352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13353 hardcode_libdir_separator_CXX=:
13354 inherit_rpath_CXX=yes
13355 ;;
13356
13357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13358 case $cc_basename in
13359 KCC*)
13360 # Kuck and Associates, Inc. (KAI) C++ Compiler
13361
13362 # KCC will only create a shared library if the output file
13363 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13364 # to its proper name (with version) after linking.
13365 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'
13366 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'
13367 # Commands to make compiler produce verbose output that lists
13368 # what "hidden" libraries, object files and flags are used when
13369 # linking a shared library.
13370 #
13371 # There doesn't appear to be a way to prevent this compiler from
13372 # explicitly linking system object files so we need to strip them
13373 # from the output so that they don't get included in the library
13374 # dependencies.
13375 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; func_echo_all "$list"'
13376
13377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13378 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13379
13380 # Archives containing C++ object files must be created using
13381 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13382 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13383 ;;
13384 icpc* | ecpc* )
13385 # Intel C++
13386 with_gnu_ld=yes
13387 # version 8.0 and above of icpc choke on multiply defined symbols
13388 # if we add $predep_objects and $postdep_objects, however 7.1 and
13389 # earlier do not add the objects themselves.
13390 case `$CC -V 2>&1` in
13391 *"Version 7."*)
13392 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13393 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'
13394 ;;
13395 *) # Version 8.0 or newer
13396 tmp_idyn=
13397 case $host_cpu in
13398 ia64*) tmp_idyn=' -i_dynamic';;
13399 esac
13400 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13401 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'
13402 ;;
13403 esac
13404 archive_cmds_need_lc_CXX=no
13405 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13406 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13407 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13408 ;;
13409 pgCC* | pgcpp*)
13410 # Portland Group C++ compiler
13411 case `$CC -V` in
13412 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13413 prelink_cmds_CXX='tpldir=Template.dir~
13414 rm -rf $tpldir~
13415 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13416 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13417 old_archive_cmds_CXX='tpldir=Template.dir~
13418 rm -rf $tpldir~
13419 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13420 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13421 $RANLIB $oldlib'
13422 archive_cmds_CXX='tpldir=Template.dir~
13423 rm -rf $tpldir~
13424 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13425 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13426 archive_expsym_cmds_CXX='tpldir=Template.dir~
13427 rm -rf $tpldir~
13428 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13429 $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'
13430 ;;
13431 *) # Version 6 and above use weak symbols
13432 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13433 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'
13434 ;;
13435 esac
13436
13437 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13439 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13440 ;;
13441 cxx*)
13442 # Compaq C++
13443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 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'
13445
13446 runpath_var=LD_RUN_PATH
13447 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13448 hardcode_libdir_separator_CXX=:
13449
13450 # Commands to make compiler produce verbose output that lists
13451 # what "hidden" libraries, object files and flags are used when
13452 # linking a shared library.
13453 #
13454 # There doesn't appear to be a way to prevent this compiler from
13455 # explicitly linking system object files so we need to strip them
13456 # from the output so that they don't get included in the library
13457 # dependencies.
13458 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13459 ;;
13460 xl* | mpixl* | bgxl*)
13461 # IBM XL 8.0 on PPC, with GNU ld
13462 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13463 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13464 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13465 if test "x$supports_anon_versioning" = xyes; then
13466 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13468 echo "local: *; };" >> $output_objdir/$libname.ver~
13469 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13470 fi
13471 ;;
13472 *)
13473 case `$CC -V 2>&1 | sed 5q` in
13474 *Sun\ C*)
13475 # Sun C++ 5.9
13476 no_undefined_flag_CXX=' -zdefs'
13477 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13478 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'
13479 hardcode_libdir_flag_spec_CXX='-R$libdir'
13480 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13481 compiler_needs_object_CXX=yes
13482
13483 # Not sure whether something based on
13484 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13485 # would be better.
13486 output_verbose_link_cmd='func_echo_all'
13487
13488 # Archives containing C++ object files must be created using
13489 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13490 # necessary to make sure instantiated templates are included
13491 # in the archive.
13492 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13493 ;;
13494 esac
13495 ;;
13496 esac
13497 ;;
13498
13499 lynxos*)
13500 # FIXME: insert proper C++ library support
13501 ld_shlibs_CXX=no
13502 ;;
13503
13504 m88k*)
13505 # FIXME: insert proper C++ library support
13506 ld_shlibs_CXX=no
13507 ;;
13508
13509 mvs*)
13510 case $cc_basename in
13511 cxx*)
13512 # FIXME: insert proper C++ library support
13513 ld_shlibs_CXX=no
13514 ;;
13515 *)
13516 # FIXME: insert proper C++ library support
13517 ld_shlibs_CXX=no
13518 ;;
13519 esac
13520 ;;
13521
13522 netbsd*)
13523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13524 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13525 wlarc=
13526 hardcode_libdir_flag_spec_CXX='-R$libdir'
13527 hardcode_direct_CXX=yes
13528 hardcode_shlibpath_var_CXX=no
13529 fi
13530 # Workaround some broken pre-1.5 toolchains
13531 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13532 ;;
13533
13534 *nto* | *qnx*)
13535 ld_shlibs_CXX=yes
13536 ;;
13537
13538 openbsd2*)
13539 # C++ shared libraries are fairly broken
13540 ld_shlibs_CXX=no
13541 ;;
13542
13543 openbsd*)
13544 if test -f /usr/libexec/ld.so; then
13545 hardcode_direct_CXX=yes
13546 hardcode_shlibpath_var_CXX=no
13547 hardcode_direct_absolute_CXX=yes
13548 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13549 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13551 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13552 export_dynamic_flag_spec_CXX='${wl}-E'
13553 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13554 fi
13555 output_verbose_link_cmd=func_echo_all
13556 else
13557 ld_shlibs_CXX=no
13558 fi
13559 ;;
13560
13561 osf3* | osf4* | osf5*)
13562 case $cc_basename in
13563 KCC*)
13564 # Kuck and Associates, Inc. (KAI) C++ Compiler
13565
13566 # KCC will only create a shared library if the output file
13567 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13568 # to its proper name (with version) after linking.
13569 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'
13570
13571 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13572 hardcode_libdir_separator_CXX=:
13573
13574 # Archives containing C++ object files must be created using
13575 # the KAI C++ compiler.
13576 case $host in
13577 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13578 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13579 esac
13580 ;;
13581 RCC*)
13582 # Rational C++ 2.4.1
13583 # FIXME: insert proper C++ library support
13584 ld_shlibs_CXX=no
13585 ;;
13586 cxx*)
13587 case $host in
13588 osf3*)
13589 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13590 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13591 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13592 ;;
13593 *)
13594 allow_undefined_flag_CXX=' -expect_unresolved \*'
13595 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13596 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13597 echo "-hidden">> $lib.exp~
13598 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13599 $RM $lib.exp'
13600 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13601 ;;
13602 esac
13603
13604 hardcode_libdir_separator_CXX=:
13605
13606 # Commands to make compiler produce verbose output that lists
13607 # what "hidden" libraries, object files and flags are used when
13608 # linking a shared library.
13609 #
13610 # There doesn't appear to be a way to prevent this compiler from
13611 # explicitly linking system object files so we need to strip them
13612 # from the output so that they don't get included in the library
13613 # dependencies.
13614 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13615 ;;
13616 *)
13617 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13618 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13619 case $host in
13620 osf3*)
13621 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13622 ;;
13623 *)
13624 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13625 ;;
13626 esac
13627
13628 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13629 hardcode_libdir_separator_CXX=:
13630
13631 # Commands to make compiler produce verbose output that lists
13632 # what "hidden" libraries, object files and flags are used when
13633 # linking a shared library.
13634 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13635
13636 else
13637 # FIXME: insert proper C++ library support
13638 ld_shlibs_CXX=no
13639 fi
13640 ;;
13641 esac
13642 ;;
13643
13644 psos*)
13645 # FIXME: insert proper C++ library support
13646 ld_shlibs_CXX=no
13647 ;;
13648
13649 sunos4*)
13650 case $cc_basename in
13651 CC*)
13652 # Sun C++ 4.x
13653 # FIXME: insert proper C++ library support
13654 ld_shlibs_CXX=no
13655 ;;
13656 lcc*)
13657 # Lucid
13658 # FIXME: insert proper C++ library support
13659 ld_shlibs_CXX=no
13660 ;;
13661 *)
13662 # FIXME: insert proper C++ library support
13663 ld_shlibs_CXX=no
13664 ;;
13665 esac
13666 ;;
13667
13668 solaris*)
13669 case $cc_basename in
13670 CC*)
13671 # Sun C++ 4.2, 5.x and Centerline C++
13672 archive_cmds_need_lc_CXX=yes
13673 no_undefined_flag_CXX=' -zdefs'
13674 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13675 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13676 $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'
13677
13678 hardcode_libdir_flag_spec_CXX='-R$libdir'
13679 hardcode_shlibpath_var_CXX=no
13680 case $host_os in
13681 solaris2.[0-5] | solaris2.[0-5].*) ;;
13682 *)
13683 # The compiler driver will combine and reorder linker options,
13684 # but understands `-z linker_flag'.
13685 # Supported since Solaris 2.6 (maybe 2.5.1?)
13686 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13687 ;;
13688 esac
13689 link_all_deplibs_CXX=yes
13690
13691 output_verbose_link_cmd='func_echo_all'
13692
13693 # Archives containing C++ object files must be created using
13694 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13695 # necessary to make sure instantiated templates are included
13696 # in the archive.
13697 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13698 ;;
13699 gcx*)
13700 # Green Hills C++ Compiler
13701 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13702
13703 # The C++ compiler must be used to create the archive.
13704 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13705 ;;
13706 *)
13707 # GNU C++ compiler with Solaris linker
13708 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13709 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13710 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13711 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13712 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13713 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13714
13715 # Commands to make compiler produce verbose output that lists
13716 # what "hidden" libraries, object files and flags are used when
13717 # linking a shared library.
13718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13719 else
13720 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13721 # platform.
13722 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13723 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13724 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13725
13726 # Commands to make compiler produce verbose output that lists
13727 # what "hidden" libraries, object files and flags are used when
13728 # linking a shared library.
13729 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13730 fi
13731
13732 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13733 case $host_os in
13734 solaris2.[0-5] | solaris2.[0-5].*) ;;
13735 *)
13736 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13737 ;;
13738 esac
13739 fi
13740 ;;
13741 esac
13742 ;;
13743
13744 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13745 no_undefined_flag_CXX='${wl}-z,text'
13746 archive_cmds_need_lc_CXX=no
13747 hardcode_shlibpath_var_CXX=no
13748 runpath_var='LD_RUN_PATH'
13749
13750 case $cc_basename in
13751 CC*)
13752 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13753 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13754 ;;
13755 *)
13756 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13757 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13758 ;;
13759 esac
13760 ;;
13761
13762 sysv5* | sco3.2v5* | sco5v6*)
13763 # Note: We can NOT use -z defs as we might desire, because we do not
13764 # link with -lc, and that would cause any symbols used from libc to
13765 # always be unresolved, which means just about no library would
13766 # ever link correctly. If we're not using GNU ld we use -z text
13767 # though, which does catch some bad symbols but isn't as heavy-handed
13768 # as -z defs.
13769 no_undefined_flag_CXX='${wl}-z,text'
13770 allow_undefined_flag_CXX='${wl}-z,nodefs'
13771 archive_cmds_need_lc_CXX=no
13772 hardcode_shlibpath_var_CXX=no
13773 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13774 hardcode_libdir_separator_CXX=':'
13775 link_all_deplibs_CXX=yes
13776 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13777 runpath_var='LD_RUN_PATH'
13778
13779 case $cc_basename in
13780 CC*)
13781 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13782 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13784 '"$old_archive_cmds_CXX"
13785 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13786 '"$reload_cmds_CXX"
13787 ;;
13788 *)
13789 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13791 ;;
13792 esac
13793 ;;
13794
13795 tandem*)
13796 case $cc_basename in
13797 NCC*)
13798 # NonStop-UX NCC 3.20
13799 # FIXME: insert proper C++ library support
13800 ld_shlibs_CXX=no
13801 ;;
13802 *)
13803 # FIXME: insert proper C++ library support
13804 ld_shlibs_CXX=no
13805 ;;
13806 esac
13807 ;;
13808
13809 vxworks*)
13810 # FIXME: insert proper C++ library support
13811 ld_shlibs_CXX=no
13812 ;;
13813
13814 *)
13815 # FIXME: insert proper C++ library support
13816 ld_shlibs_CXX=no
13817 ;;
13818 esac
13819
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13821 $as_echo "$ld_shlibs_CXX" >&6; }
13822 test "$ld_shlibs_CXX" = no && can_build_shared=no
13823
13824 GCC_CXX="$GXX"
13825 LD_CXX="$LD"
13826
13827 ## CAVEAT EMPTOR:
13828 ## There is no encapsulation within the following macros, do not change
13829 ## the running order or otherwise move them around unless you know exactly
13830 ## what you are doing...
13831 # Dependencies to place before and after the object being linked:
13832 predep_objects_CXX=
13833 postdep_objects_CXX=
13834 predeps_CXX=
13835 postdeps_CXX=
13836 compiler_lib_search_path_CXX=
13837
13838 cat > conftest.$ac_ext <<_LT_EOF
13839 class Foo
13840 {
13841 public:
13842 Foo (void) { a = 0; }
13843 private:
13844 int a;
13845 };
13846 _LT_EOF
13847
13848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13849 (eval $ac_compile) 2>&5
13850 ac_status=$?
13851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13852 test $ac_status = 0; }; then
13853 # Parse the compiler output and extract the necessary
13854 # objects, libraries and library flags.
13855
13856 # Sentinel used to keep track of whether or not we are before
13857 # the conftest object file.
13858 pre_test_object_deps_done=no
13859
13860 for p in `eval "$output_verbose_link_cmd"`; do
13861 case $p in
13862
13863 -L* | -R* | -l*)
13864 # Some compilers place space between "-{L,R}" and the path.
13865 # Remove the space.
13866 if test $p = "-L" ||
13867 test $p = "-R"; then
13868 prev=$p
13869 continue
13870 else
13871 prev=
13872 fi
13873
13874 if test "$pre_test_object_deps_done" = no; then
13875 case $p in
13876 -L* | -R*)
13877 # Internal compiler library paths should come after those
13878 # provided the user. The postdeps already come after the
13879 # user supplied libs so there is no need to process them.
13880 if test -z "$compiler_lib_search_path_CXX"; then
13881 compiler_lib_search_path_CXX="${prev}${p}"
13882 else
13883 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13884 fi
13885 ;;
13886 # The "-l" case would never come before the object being
13887 # linked, so don't bother handling this case.
13888 esac
13889 else
13890 if test -z "$postdeps_CXX"; then
13891 postdeps_CXX="${prev}${p}"
13892 else
13893 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13894 fi
13895 fi
13896 ;;
13897
13898 *.$objext)
13899 # This assumes that the test object file only shows up
13900 # once in the compiler output.
13901 if test "$p" = "conftest.$objext"; then
13902 pre_test_object_deps_done=yes
13903 continue
13904 fi
13905
13906 if test "$pre_test_object_deps_done" = no; then
13907 if test -z "$predep_objects_CXX"; then
13908 predep_objects_CXX="$p"
13909 else
13910 predep_objects_CXX="$predep_objects_CXX $p"
13911 fi
13912 else
13913 if test -z "$postdep_objects_CXX"; then
13914 postdep_objects_CXX="$p"
13915 else
13916 postdep_objects_CXX="$postdep_objects_CXX $p"
13917 fi
13918 fi
13919 ;;
13920
13921 *) ;; # Ignore the rest.
13922
13923 esac
13924 done
13925
13926 # Clean up.
13927 rm -f a.out a.exe
13928 else
13929 echo "libtool.m4: error: problem compiling CXX test program"
13930 fi
13931
13932 $RM -f confest.$objext
13933
13934 # PORTME: override above test on systems where it is broken
13935 case $host_os in
13936 interix[3-9]*)
13937 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13938 # hack all around it, let's just trust "g++" to DTRT.
13939 predep_objects_CXX=
13940 postdep_objects_CXX=
13941 postdeps_CXX=
13942 ;;
13943
13944 linux*)
13945 case `$CC -V 2>&1 | sed 5q` in
13946 *Sun\ C*)
13947 # Sun C++ 5.9
13948
13949 # The more standards-conforming stlport4 library is
13950 # incompatible with the Cstd library. Avoid specifying
13951 # it if it's in CXXFLAGS. Ignore libCrun as
13952 # -library=stlport4 depends on it.
13953 case " $CXX $CXXFLAGS " in
13954 *" -library=stlport4 "*)
13955 solaris_use_stlport4=yes
13956 ;;
13957 esac
13958
13959 if test "$solaris_use_stlport4" != yes; then
13960 postdeps_CXX='-library=Cstd -library=Crun'
13961 fi
13962 ;;
13963 esac
13964 ;;
13965
13966 solaris*)
13967 case $cc_basename in
13968 CC*)
13969 # The more standards-conforming stlport4 library is
13970 # incompatible with the Cstd library. Avoid specifying
13971 # it if it's in CXXFLAGS. Ignore libCrun as
13972 # -library=stlport4 depends on it.
13973 case " $CXX $CXXFLAGS " in
13974 *" -library=stlport4 "*)
13975 solaris_use_stlport4=yes
13976 ;;
13977 esac
13978
13979 # Adding this requires a known-good setup of shared libraries for
13980 # Sun compiler versions before 5.6, else PIC objects from an old
13981 # archive will be linked into the output, leading to subtle bugs.
13982 if test "$solaris_use_stlport4" != yes; then
13983 postdeps_CXX='-library=Cstd -library=Crun'
13984 fi
13985 ;;
13986 esac
13987 ;;
13988 esac
13989
13990
13991 case " $postdeps_CXX " in
13992 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13993 esac
13994 compiler_lib_search_dirs_CXX=
13995 if test -n "${compiler_lib_search_path_CXX}"; then
13996 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13997 fi
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029 lt_prog_compiler_wl_CXX=
14030 lt_prog_compiler_pic_CXX=
14031 lt_prog_compiler_static_CXX=
14032
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14034 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14035
14036 # C++ specific cases for pic, static, wl, etc.
14037 if test "$GXX" = yes; then
14038 lt_prog_compiler_wl_CXX='-Wl,'
14039 lt_prog_compiler_static_CXX='-static'
14040
14041 case $host_os in
14042 aix*)
14043 # All AIX code is PIC.
14044 if test "$host_cpu" = ia64; then
14045 # AIX 5 now supports IA64 processor
14046 lt_prog_compiler_static_CXX='-Bstatic'
14047 fi
14048 lt_prog_compiler_pic_CXX='-fPIC'
14049 ;;
14050
14051 amigaos*)
14052 case $host_cpu in
14053 powerpc)
14054 # see comment about AmigaOS4 .so support
14055 lt_prog_compiler_pic_CXX='-fPIC'
14056 ;;
14057 m68k)
14058 # FIXME: we need at least 68020 code to build shared libraries, but
14059 # adding the `-m68020' flag to GCC prevents building anything better,
14060 # like `-m68040'.
14061 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14062 ;;
14063 esac
14064 ;;
14065
14066 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14067 # PIC is the default for these OSes.
14068 ;;
14069 mingw* | cygwin* | os2* | pw32* | cegcc*)
14070 # This hack is so that the source file can tell whether it is being
14071 # built for inclusion in a dll (and should export symbols for example).
14072 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14073 # (--disable-auto-import) libraries
14074 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14075 ;;
14076 darwin* | rhapsody*)
14077 # PIC is the default on this platform
14078 # Common symbols not allowed in MH_DYLIB files
14079 lt_prog_compiler_pic_CXX='-fno-common'
14080 ;;
14081 *djgpp*)
14082 # DJGPP does not support shared libraries at all
14083 lt_prog_compiler_pic_CXX=
14084 ;;
14085 haiku*)
14086 # PIC is the default for Haiku.
14087 # The "-static" flag exists, but is broken.
14088 lt_prog_compiler_static_CXX=
14089 ;;
14090 interix[3-9]*)
14091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14092 # Instead, we relocate shared libraries at runtime.
14093 ;;
14094 sysv4*MP*)
14095 if test -d /usr/nec; then
14096 lt_prog_compiler_pic_CXX=-Kconform_pic
14097 fi
14098 ;;
14099 hpux*)
14100 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14101 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14102 # sets the default TLS model and affects inlining.
14103 case $host_cpu in
14104 hppa*64*)
14105 ;;
14106 *)
14107 lt_prog_compiler_pic_CXX='-fPIC'
14108 ;;
14109 esac
14110 ;;
14111 *qnx* | *nto*)
14112 # QNX uses GNU C++, but need to define -shared option too, otherwise
14113 # it will coredump.
14114 lt_prog_compiler_pic_CXX='-fPIC -shared'
14115 ;;
14116 *)
14117 lt_prog_compiler_pic_CXX='-fPIC'
14118 ;;
14119 esac
14120 else
14121 case $host_os in
14122 aix[4-9]*)
14123 # All AIX code is PIC.
14124 if test "$host_cpu" = ia64; then
14125 # AIX 5 now supports IA64 processor
14126 lt_prog_compiler_static_CXX='-Bstatic'
14127 else
14128 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14129 fi
14130 ;;
14131 chorus*)
14132 case $cc_basename in
14133 cxch68*)
14134 # Green Hills C++ Compiler
14135 # _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"
14136 ;;
14137 esac
14138 ;;
14139 dgux*)
14140 case $cc_basename in
14141 ec++*)
14142 lt_prog_compiler_pic_CXX='-KPIC'
14143 ;;
14144 ghcx*)
14145 # Green Hills C++ Compiler
14146 lt_prog_compiler_pic_CXX='-pic'
14147 ;;
14148 *)
14149 ;;
14150 esac
14151 ;;
14152 freebsd* | dragonfly*)
14153 # FreeBSD uses GNU C++
14154 ;;
14155 hpux9* | hpux10* | hpux11*)
14156 case $cc_basename in
14157 CC*)
14158 lt_prog_compiler_wl_CXX='-Wl,'
14159 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14160 if test "$host_cpu" != ia64; then
14161 lt_prog_compiler_pic_CXX='+Z'
14162 fi
14163 ;;
14164 aCC*)
14165 lt_prog_compiler_wl_CXX='-Wl,'
14166 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14167 case $host_cpu in
14168 hppa*64*|ia64*)
14169 # +Z the default
14170 ;;
14171 *)
14172 lt_prog_compiler_pic_CXX='+Z'
14173 ;;
14174 esac
14175 ;;
14176 *)
14177 ;;
14178 esac
14179 ;;
14180 interix*)
14181 # This is c89, which is MS Visual C++ (no shared libs)
14182 # Anyone wants to do a port?
14183 ;;
14184 irix5* | irix6* | nonstopux*)
14185 case $cc_basename in
14186 CC*)
14187 lt_prog_compiler_wl_CXX='-Wl,'
14188 lt_prog_compiler_static_CXX='-non_shared'
14189 # CC pic flag -KPIC is the default.
14190 ;;
14191 *)
14192 ;;
14193 esac
14194 ;;
14195 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14196 case $cc_basename in
14197 KCC*)
14198 # KAI C++ Compiler
14199 lt_prog_compiler_wl_CXX='--backend -Wl,'
14200 lt_prog_compiler_pic_CXX='-fPIC'
14201 ;;
14202 ecpc* )
14203 # old Intel C++ for x86_64 which still supported -KPIC.
14204 lt_prog_compiler_wl_CXX='-Wl,'
14205 lt_prog_compiler_pic_CXX='-KPIC'
14206 lt_prog_compiler_static_CXX='-static'
14207 ;;
14208 icpc* )
14209 # Intel C++, used to be incompatible with GCC.
14210 # ICC 10 doesn't accept -KPIC any more.
14211 lt_prog_compiler_wl_CXX='-Wl,'
14212 lt_prog_compiler_pic_CXX='-fPIC'
14213 lt_prog_compiler_static_CXX='-static'
14214 ;;
14215 pgCC* | pgcpp*)
14216 # Portland Group C++ compiler
14217 lt_prog_compiler_wl_CXX='-Wl,'
14218 lt_prog_compiler_pic_CXX='-fpic'
14219 lt_prog_compiler_static_CXX='-Bstatic'
14220 ;;
14221 cxx*)
14222 # Compaq C++
14223 # Make sure the PIC flag is empty. It appears that all Alpha
14224 # Linux and Compaq Tru64 Unix objects are PIC.
14225 lt_prog_compiler_pic_CXX=
14226 lt_prog_compiler_static_CXX='-non_shared'
14227 ;;
14228 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14229 # IBM XL 8.0, 9.0 on PPC and BlueGene
14230 lt_prog_compiler_wl_CXX='-Wl,'
14231 lt_prog_compiler_pic_CXX='-qpic'
14232 lt_prog_compiler_static_CXX='-qstaticlink'
14233 ;;
14234 *)
14235 case `$CC -V 2>&1 | sed 5q` in
14236 *Sun\ C*)
14237 # Sun C++ 5.9
14238 lt_prog_compiler_pic_CXX='-KPIC'
14239 lt_prog_compiler_static_CXX='-Bstatic'
14240 lt_prog_compiler_wl_CXX='-Qoption ld '
14241 ;;
14242 esac
14243 ;;
14244 esac
14245 ;;
14246 lynxos*)
14247 ;;
14248 m88k*)
14249 ;;
14250 mvs*)
14251 case $cc_basename in
14252 cxx*)
14253 lt_prog_compiler_pic_CXX='-W c,exportall'
14254 ;;
14255 *)
14256 ;;
14257 esac
14258 ;;
14259 netbsd*)
14260 ;;
14261 *qnx* | *nto*)
14262 # QNX uses GNU C++, but need to define -shared option too, otherwise
14263 # it will coredump.
14264 lt_prog_compiler_pic_CXX='-fPIC -shared'
14265 ;;
14266 osf3* | osf4* | osf5*)
14267 case $cc_basename in
14268 KCC*)
14269 lt_prog_compiler_wl_CXX='--backend -Wl,'
14270 ;;
14271 RCC*)
14272 # Rational C++ 2.4.1
14273 lt_prog_compiler_pic_CXX='-pic'
14274 ;;
14275 cxx*)
14276 # Digital/Compaq C++
14277 lt_prog_compiler_wl_CXX='-Wl,'
14278 # Make sure the PIC flag is empty. It appears that all Alpha
14279 # Linux and Compaq Tru64 Unix objects are PIC.
14280 lt_prog_compiler_pic_CXX=
14281 lt_prog_compiler_static_CXX='-non_shared'
14282 ;;
14283 *)
14284 ;;
14285 esac
14286 ;;
14287 psos*)
14288 ;;
14289 solaris*)
14290 case $cc_basename in
14291 CC*)
14292 # Sun C++ 4.2, 5.x and Centerline C++
14293 lt_prog_compiler_pic_CXX='-KPIC'
14294 lt_prog_compiler_static_CXX='-Bstatic'
14295 lt_prog_compiler_wl_CXX='-Qoption ld '
14296 ;;
14297 gcx*)
14298 # Green Hills C++ Compiler
14299 lt_prog_compiler_pic_CXX='-PIC'
14300 ;;
14301 *)
14302 ;;
14303 esac
14304 ;;
14305 sunos4*)
14306 case $cc_basename in
14307 CC*)
14308 # Sun C++ 4.x
14309 lt_prog_compiler_pic_CXX='-pic'
14310 lt_prog_compiler_static_CXX='-Bstatic'
14311 ;;
14312 lcc*)
14313 # Lucid
14314 lt_prog_compiler_pic_CXX='-pic'
14315 ;;
14316 *)
14317 ;;
14318 esac
14319 ;;
14320 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14321 case $cc_basename in
14322 CC*)
14323 lt_prog_compiler_wl_CXX='-Wl,'
14324 lt_prog_compiler_pic_CXX='-KPIC'
14325 lt_prog_compiler_static_CXX='-Bstatic'
14326 ;;
14327 esac
14328 ;;
14329 tandem*)
14330 case $cc_basename in
14331 NCC*)
14332 # NonStop-UX NCC 3.20
14333 lt_prog_compiler_pic_CXX='-KPIC'
14334 ;;
14335 *)
14336 ;;
14337 esac
14338 ;;
14339 vxworks*)
14340 ;;
14341 *)
14342 lt_prog_compiler_can_build_shared_CXX=no
14343 ;;
14344 esac
14345 fi
14346
14347 case $host_os in
14348 # For platforms which do not support PIC, -DPIC is meaningless:
14349 *djgpp*)
14350 lt_prog_compiler_pic_CXX=
14351 ;;
14352 *)
14353 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14354 ;;
14355 esac
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14357 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14358
14359
14360
14361 #
14362 # Check to make sure the PIC flag actually works.
14363 #
14364 if test -n "$lt_prog_compiler_pic_CXX"; then
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14366 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14367 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 lt_cv_prog_compiler_pic_works_CXX=no
14371 ac_outfile=conftest.$ac_objext
14372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14373 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14374 # Insert the option either (1) after the last *FLAGS variable, or
14375 # (2) before a word containing "conftest.", or (3) at the end.
14376 # Note that $ac_compile itself does not contain backslashes and begins
14377 # with a dollar sign (not a hyphen), so the echo should work correctly.
14378 # The option is referenced via a variable to avoid confusing sed.
14379 lt_compile=`echo "$ac_compile" | $SED \
14380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14382 -e 's:$: $lt_compiler_flag:'`
14383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14384 (eval "$lt_compile" 2>conftest.err)
14385 ac_status=$?
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 if (exit $ac_status) && test -s "$ac_outfile"; then
14389 # The compiler can only warn and ignore the option if not recognized
14390 # So say no if there are warnings other than the usual output.
14391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14394 lt_cv_prog_compiler_pic_works_CXX=yes
14395 fi
14396 fi
14397 $RM conftest*
14398
14399 fi
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14401 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14402
14403 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14404 case $lt_prog_compiler_pic_CXX in
14405 "" | " "*) ;;
14406 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14407 esac
14408 else
14409 lt_prog_compiler_pic_CXX=
14410 lt_prog_compiler_can_build_shared_CXX=no
14411 fi
14412
14413 fi
14414
14415
14416
14417 #
14418 # Check to make sure the static flag actually works.
14419 #
14420 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14422 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14423 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 lt_cv_prog_compiler_static_works_CXX=no
14427 save_LDFLAGS="$LDFLAGS"
14428 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14429 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14431 # The linker can only warn and ignore the option if not recognized
14432 # So say no if there are warnings
14433 if test -s conftest.err; then
14434 # Append any errors to the config.log.
14435 cat conftest.err 1>&5
14436 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14438 if diff conftest.exp conftest.er2 >/dev/null; then
14439 lt_cv_prog_compiler_static_works_CXX=yes
14440 fi
14441 else
14442 lt_cv_prog_compiler_static_works_CXX=yes
14443 fi
14444 fi
14445 $RM -r conftest*
14446 LDFLAGS="$save_LDFLAGS"
14447
14448 fi
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14450 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14451
14452 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14453 :
14454 else
14455 lt_prog_compiler_static_CXX=
14456 fi
14457
14458
14459
14460
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14463 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14464 $as_echo_n "(cached) " >&6
14465 else
14466 lt_cv_prog_compiler_c_o_CXX=no
14467 $RM -r conftest 2>/dev/null
14468 mkdir conftest
14469 cd conftest
14470 mkdir out
14471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14472
14473 lt_compiler_flag="-o out/conftest2.$ac_objext"
14474 # Insert the option either (1) after the last *FLAGS variable, or
14475 # (2) before a word containing "conftest.", or (3) at the end.
14476 # Note that $ac_compile itself does not contain backslashes and begins
14477 # with a dollar sign (not a hyphen), so the echo should work correctly.
14478 lt_compile=`echo "$ac_compile" | $SED \
14479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14481 -e 's:$: $lt_compiler_flag:'`
14482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14483 (eval "$lt_compile" 2>out/conftest.err)
14484 ac_status=$?
14485 cat out/conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14488 then
14489 # The compiler can only warn and ignore the option if not recognized
14490 # So say no if there are warnings
14491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14494 lt_cv_prog_compiler_c_o_CXX=yes
14495 fi
14496 fi
14497 chmod u+w . 2>&5
14498 $RM conftest*
14499 # SGI C++ compiler will create directory out/ii_files/ for
14500 # template instantiation
14501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14502 $RM out/* && rmdir out
14503 cd ..
14504 $RM -r conftest
14505 $RM conftest*
14506
14507 fi
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14509 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14510
14511
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14514 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14515 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 lt_cv_prog_compiler_c_o_CXX=no
14519 $RM -r conftest 2>/dev/null
14520 mkdir conftest
14521 cd conftest
14522 mkdir out
14523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14524
14525 lt_compiler_flag="-o out/conftest2.$ac_objext"
14526 # Insert the option either (1) after the last *FLAGS variable, or
14527 # (2) before a word containing "conftest.", or (3) at the end.
14528 # Note that $ac_compile itself does not contain backslashes and begins
14529 # with a dollar sign (not a hyphen), so the echo should work correctly.
14530 lt_compile=`echo "$ac_compile" | $SED \
14531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14533 -e 's:$: $lt_compiler_flag:'`
14534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14535 (eval "$lt_compile" 2>out/conftest.err)
14536 ac_status=$?
14537 cat out/conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14540 then
14541 # The compiler can only warn and ignore the option if not recognized
14542 # So say no if there are warnings
14543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14546 lt_cv_prog_compiler_c_o_CXX=yes
14547 fi
14548 fi
14549 chmod u+w . 2>&5
14550 $RM conftest*
14551 # SGI C++ compiler will create directory out/ii_files/ for
14552 # template instantiation
14553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14554 $RM out/* && rmdir out
14555 cd ..
14556 $RM -r conftest
14557 $RM conftest*
14558
14559 fi
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14561 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14562
14563
14564
14565
14566 hard_links="nottested"
14567 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14568 # do not overwrite the value of need_locks provided by the user
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14570 $as_echo_n "checking if we can lock with hard links... " >&6; }
14571 hard_links=yes
14572 $RM conftest*
14573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14574 touch conftest.a
14575 ln conftest.a conftest.b 2>&5 || hard_links=no
14576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14578 $as_echo "$hard_links" >&6; }
14579 if test "$hard_links" = no; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14581 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14582 need_locks=warn
14583 fi
14584 else
14585 need_locks=no
14586 fi
14587
14588
14589
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14591 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14592
14593 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14594 case $host_os in
14595 aix[4-9]*)
14596 # If we're using GNU nm, then we don't want the "-C" option.
14597 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14598 # Also, AIX nm treats weak defined symbols like other global defined
14599 # symbols, whereas GNU nm marks them as "W".
14600 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14601 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14602 else
14603 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14604 fi
14605 ;;
14606 pw32*)
14607 export_symbols_cmds_CXX="$ltdll_cmds"
14608 ;;
14609 cygwin* | mingw* | cegcc*)
14610 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'
14611 ;;
14612 *)
14613 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14614 ;;
14615 esac
14616 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14617
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14619 $as_echo "$ld_shlibs_CXX" >&6; }
14620 test "$ld_shlibs_CXX" = no && can_build_shared=no
14621
14622 with_gnu_ld_CXX=$with_gnu_ld
14623
14624
14625
14626
14627
14628
14629 #
14630 # Do we need to explicitly link libc?
14631 #
14632 case "x$archive_cmds_need_lc_CXX" in
14633 x|xyes)
14634 # Assume -lc should be added
14635 archive_cmds_need_lc_CXX=yes
14636
14637 if test "$enable_shared" = yes && test "$GCC" = yes; then
14638 case $archive_cmds_CXX in
14639 *'~'*)
14640 # FIXME: we may have to deal with multi-command sequences.
14641 ;;
14642 '$CC '*)
14643 # Test whether the compiler implicitly links with -lc since on some
14644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14645 # to ld, don't add -lc before -lgcc.
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14647 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14648 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14649 $as_echo_n "(cached) " >&6
14650 else
14651 $RM conftest*
14652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14653
14654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14655 (eval $ac_compile) 2>&5
14656 ac_status=$?
14657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14658 test $ac_status = 0; } 2>conftest.err; then
14659 soname=conftest
14660 lib=conftest
14661 libobjs=conftest.$ac_objext
14662 deplibs=
14663 wl=$lt_prog_compiler_wl_CXX
14664 pic_flag=$lt_prog_compiler_pic_CXX
14665 compiler_flags=-v
14666 linker_flags=-v
14667 verstring=
14668 output_objdir=.
14669 libname=conftest
14670 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14671 allow_undefined_flag_CXX=
14672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14673 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14674 ac_status=$?
14675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14676 test $ac_status = 0; }
14677 then
14678 lt_cv_archive_cmds_need_lc_CXX=no
14679 else
14680 lt_cv_archive_cmds_need_lc_CXX=yes
14681 fi
14682 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14683 else
14684 cat conftest.err 1>&5
14685 fi
14686 $RM conftest*
14687
14688 fi
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14690 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14691 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14692 ;;
14693 esac
14694 fi
14695 ;;
14696 esac
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14762 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14763
14764 library_names_spec=
14765 libname_spec='lib$name'
14766 soname_spec=
14767 shrext_cmds=".so"
14768 postinstall_cmds=
14769 postuninstall_cmds=
14770 finish_cmds=
14771 finish_eval=
14772 shlibpath_var=
14773 shlibpath_overrides_runpath=unknown
14774 version_type=none
14775 dynamic_linker="$host_os ld.so"
14776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14777 need_lib_prefix=unknown
14778 hardcode_into_libs=no
14779
14780 # when you set need_version to no, make sure it does not cause -set_version
14781 # flags to be left without arguments
14782 need_version=unknown
14783
14784 case $host_os in
14785 aix3*)
14786 version_type=linux
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14788 shlibpath_var=LIBPATH
14789
14790 # AIX 3 has no versioning support, so we append a major version to the name.
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 ;;
14793
14794 aix[4-9]*)
14795 version_type=linux
14796 need_lib_prefix=no
14797 need_version=no
14798 hardcode_into_libs=yes
14799 if test "$host_cpu" = ia64; then
14800 # AIX 5 supports IA64
14801 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14802 shlibpath_var=LD_LIBRARY_PATH
14803 else
14804 # With GCC up to 2.95.x, collect2 would create an import file
14805 # for dependence libraries. The import file would start with
14806 # the line `#! .'. This would cause the generated library to
14807 # depend on `.', always an invalid library. This was fixed in
14808 # development snapshots of GCC prior to 3.0.
14809 case $host_os in
14810 aix4 | aix4.[01] | aix4.[01].*)
14811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14812 echo ' yes '
14813 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14814 :
14815 else
14816 can_build_shared=no
14817 fi
14818 ;;
14819 esac
14820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14821 # soname into executable. Probably we can add versioning support to
14822 # collect2, so additional links can be useful in future.
14823 if test "$aix_use_runtimelinking" = yes; then
14824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14825 # instead of lib<name>.a to let people know that these are not
14826 # typical AIX shared libraries.
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828 else
14829 # We preserve .a as extension for shared libraries through AIX4.2
14830 # and later when we are not doing run time linking.
14831 library_names_spec='${libname}${release}.a $libname.a'
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 fi
14834 shlibpath_var=LIBPATH
14835 fi
14836 ;;
14837
14838 amigaos*)
14839 case $host_cpu in
14840 powerpc)
14841 # Since July 2007 AmigaOS4 officially supports .so libraries.
14842 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844 ;;
14845 m68k)
14846 library_names_spec='$libname.ixlibrary $libname.a'
14847 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14848 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14849 ;;
14850 esac
14851 ;;
14852
14853 beos*)
14854 library_names_spec='${libname}${shared_ext}'
14855 dynamic_linker="$host_os ld.so"
14856 shlibpath_var=LIBRARY_PATH
14857 ;;
14858
14859 bsdi[45]*)
14860 version_type=linux
14861 need_version=no
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14868 # the default ld.so.conf also contains /usr/contrib/lib and
14869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14870 # libtool to hard-code these into programs
14871 ;;
14872
14873 cygwin* | mingw* | pw32* | cegcc*)
14874 version_type=windows
14875 shrext_cmds=".dll"
14876 need_version=no
14877 need_lib_prefix=no
14878
14879 case $GCC,$host_os in
14880 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14881 library_names_spec='$libname.dll.a'
14882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14883 postinstall_cmds='base_file=`basename \${file}`~
14884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14885 dldir=$destdir/`dirname \$dlpath`~
14886 test -d \$dldir || mkdir -p \$dldir~
14887 $install_prog $dir/$dlname \$dldir/$dlname~
14888 chmod a+x \$dldir/$dlname~
14889 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14890 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14891 fi'
14892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14893 dlpath=$dir/\$dldll~
14894 $RM \$dlpath'
14895 shlibpath_overrides_runpath=yes
14896
14897 case $host_os in
14898 cygwin*)
14899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14900 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14901
14902 ;;
14903 mingw* | cegcc*)
14904 # MinGW DLLs use traditional 'lib' prefix
14905 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14906 ;;
14907 pw32*)
14908 # pw32 DLLs use 'pw' prefix rather than 'lib'
14909 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14910 ;;
14911 esac
14912 ;;
14913
14914 *)
14915 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14916 ;;
14917 esac
14918 dynamic_linker='Win32 ld.exe'
14919 # FIXME: first we should search . and the directory the executable is in
14920 shlibpath_var=PATH
14921 ;;
14922
14923 darwin* | rhapsody*)
14924 dynamic_linker="$host_os dyld"
14925 version_type=darwin
14926 need_lib_prefix=no
14927 need_version=no
14928 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14929 soname_spec='${libname}${release}${major}$shared_ext'
14930 shlibpath_overrides_runpath=yes
14931 shlibpath_var=DYLD_LIBRARY_PATH
14932 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14933
14934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14935 ;;
14936
14937 dgux*)
14938 version_type=linux
14939 need_lib_prefix=no
14940 need_version=no
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14942 soname_spec='${libname}${release}${shared_ext}$major'
14943 shlibpath_var=LD_LIBRARY_PATH
14944 ;;
14945
14946 freebsd* | dragonfly*)
14947 # DragonFly does not have aout. When/if they implement a new
14948 # versioning mechanism, adjust this.
14949 if test -x /usr/bin/objformat; then
14950 objformat=`/usr/bin/objformat`
14951 else
14952 case $host_os in
14953 freebsd[23].*) objformat=aout ;;
14954 *) objformat=elf ;;
14955 esac
14956 fi
14957 version_type=freebsd-$objformat
14958 case $version_type in
14959 freebsd-elf*)
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14961 need_version=no
14962 need_lib_prefix=no
14963 ;;
14964 freebsd-*)
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14966 need_version=yes
14967 ;;
14968 esac
14969 shlibpath_var=LD_LIBRARY_PATH
14970 case $host_os in
14971 freebsd2.*)
14972 shlibpath_overrides_runpath=yes
14973 ;;
14974 freebsd3.[01]* | freebsdelf3.[01]*)
14975 shlibpath_overrides_runpath=yes
14976 hardcode_into_libs=yes
14977 ;;
14978 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14979 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14980 shlibpath_overrides_runpath=no
14981 hardcode_into_libs=yes
14982 ;;
14983 *) # from 4.6 on, and DragonFly
14984 shlibpath_overrides_runpath=yes
14985 hardcode_into_libs=yes
14986 ;;
14987 esac
14988 ;;
14989
14990 haiku*)
14991 version_type=linux
14992 need_lib_prefix=no
14993 need_version=no
14994 dynamic_linker="$host_os runtime_loader"
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14996 soname_spec='${libname}${release}${shared_ext}$major'
14997 shlibpath_var=LIBRARY_PATH
14998 shlibpath_overrides_runpath=yes
14999 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15000 hardcode_into_libs=yes
15001 ;;
15002
15003 hpux9* | hpux10* | hpux11*)
15004 # Give a soname corresponding to the major version so that dld.sl refuses to
15005 # link against other versions.
15006 version_type=sunos
15007 need_lib_prefix=no
15008 need_version=no
15009 case $host_cpu in
15010 ia64*)
15011 shrext_cmds='.so'
15012 hardcode_into_libs=yes
15013 dynamic_linker="$host_os dld.so"
15014 shlibpath_var=LD_LIBRARY_PATH
15015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 if test "X$HPUX_IA64_MODE" = X32; then
15019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15020 else
15021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15022 fi
15023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15024 ;;
15025 hppa*64*)
15026 shrext_cmds='.sl'
15027 hardcode_into_libs=yes
15028 dynamic_linker="$host_os dld.sl"
15029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15035 ;;
15036 *)
15037 shrext_cmds='.sl'
15038 dynamic_linker="$host_os dld.sl"
15039 shlibpath_var=SHLIB_PATH
15040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042 soname_spec='${libname}${release}${shared_ext}$major'
15043 ;;
15044 esac
15045 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15046 postinstall_cmds='chmod 555 $lib'
15047 # or fails outright, so override atomically:
15048 install_override_mode=555
15049 ;;
15050
15051 interix[3-9]*)
15052 version_type=linux
15053 need_lib_prefix=no
15054 need_version=no
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15057 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15058 shlibpath_var=LD_LIBRARY_PATH
15059 shlibpath_overrides_runpath=no
15060 hardcode_into_libs=yes
15061 ;;
15062
15063 irix5* | irix6* | nonstopux*)
15064 case $host_os in
15065 nonstopux*) version_type=nonstopux ;;
15066 *)
15067 if test "$lt_cv_prog_gnu_ld" = yes; then
15068 version_type=linux
15069 else
15070 version_type=irix
15071 fi ;;
15072 esac
15073 need_lib_prefix=no
15074 need_version=no
15075 soname_spec='${libname}${release}${shared_ext}$major'
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15077 case $host_os in
15078 irix5* | nonstopux*)
15079 libsuff= shlibsuff=
15080 ;;
15081 *)
15082 case $LD in # libtool.m4 will add one of these switches to LD
15083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15084 libsuff= shlibsuff= libmagic=32-bit;;
15085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15086 libsuff=32 shlibsuff=N32 libmagic=N32;;
15087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15089 *) libsuff= shlibsuff= libmagic=never-match;;
15090 esac
15091 ;;
15092 esac
15093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15094 shlibpath_overrides_runpath=no
15095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15097 hardcode_into_libs=yes
15098 ;;
15099
15100 # No shared lib support for Linux oldld, aout, or coff.
15101 linux*oldld* | linux*aout* | linux*coff*)
15102 dynamic_linker=no
15103 ;;
15104
15105 # This must be Linux ELF.
15106 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15107 version_type=linux
15108 need_lib_prefix=no
15109 need_version=no
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111 soname_spec='${libname}${release}${shared_ext}$major'
15112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15113 shlibpath_var=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath=no
15115
15116 # Some binutils ld are patched to set DT_RUNPATH
15117 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 lt_cv_shlibpath_overrides_runpath=no
15121 save_LDFLAGS=$LDFLAGS
15122 save_libdir=$libdir
15123 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15124 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127
15128 int
15129 main ()
15130 {
15131
15132 ;
15133 return 0;
15134 }
15135 _ACEOF
15136 if ac_fn_cxx_try_link "$LINENO"; then :
15137 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15138 lt_cv_shlibpath_overrides_runpath=yes
15139 fi
15140 fi
15141 rm -f core conftest.err conftest.$ac_objext \
15142 conftest$ac_exeext conftest.$ac_ext
15143 LDFLAGS=$save_LDFLAGS
15144 libdir=$save_libdir
15145
15146 fi
15147
15148 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15149
15150 # This implies no fast_install, which is unacceptable.
15151 # Some rework will be needed to allow for fast_install
15152 # before this can be enabled.
15153 hardcode_into_libs=yes
15154
15155 # Append ld.so.conf contents to the search path
15156 if test -f /etc/ld.so.conf; then
15157 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;s/"//g;/^$/d' | tr '\n' ' '`
15158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15159 fi
15160
15161 # We used to test for /lib/ld.so.1 and disable shared libraries on
15162 # powerpc, because MkLinux only supported shared libraries with the
15163 # GNU dynamic linker. Since this was broken with cross compilers,
15164 # most powerpc-linux boxes support dynamic linking these days and
15165 # people can always --disable-shared, the test was removed, and we
15166 # assume the GNU/Linux dynamic linker is in use.
15167 dynamic_linker='GNU/Linux ld.so'
15168 ;;
15169
15170 netbsd*)
15171 version_type=sunos
15172 need_lib_prefix=no
15173 need_version=no
15174 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15177 dynamic_linker='NetBSD (a.out) ld.so'
15178 else
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15180 soname_spec='${libname}${release}${shared_ext}$major'
15181 dynamic_linker='NetBSD ld.elf_so'
15182 fi
15183 shlibpath_var=LD_LIBRARY_PATH
15184 shlibpath_overrides_runpath=yes
15185 hardcode_into_libs=yes
15186 ;;
15187
15188 newsos6)
15189 version_type=linux
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191 shlibpath_var=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath=yes
15193 ;;
15194
15195 *nto* | *qnx*)
15196 version_type=qnx
15197 need_lib_prefix=no
15198 need_version=no
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200 soname_spec='${libname}${release}${shared_ext}$major'
15201 shlibpath_var=LD_LIBRARY_PATH
15202 shlibpath_overrides_runpath=no
15203 hardcode_into_libs=yes
15204 dynamic_linker='ldqnx.so'
15205 ;;
15206
15207 openbsd*)
15208 version_type=sunos
15209 sys_lib_dlsearch_path_spec="/usr/lib"
15210 need_lib_prefix=no
15211 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15212 case $host_os in
15213 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15214 *) need_version=no ;;
15215 esac
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15220 case $host_os in
15221 openbsd2.[89] | openbsd2.[89].*)
15222 shlibpath_overrides_runpath=no
15223 ;;
15224 *)
15225 shlibpath_overrides_runpath=yes
15226 ;;
15227 esac
15228 else
15229 shlibpath_overrides_runpath=yes
15230 fi
15231 ;;
15232
15233 os2*)
15234 libname_spec='$name'
15235 shrext_cmds=".dll"
15236 need_lib_prefix=no
15237 library_names_spec='$libname${shared_ext} $libname.a'
15238 dynamic_linker='OS/2 ld.exe'
15239 shlibpath_var=LIBPATH
15240 ;;
15241
15242 osf3* | osf4* | osf5*)
15243 version_type=osf
15244 need_lib_prefix=no
15245 need_version=no
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 shlibpath_var=LD_LIBRARY_PATH
15249 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15250 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15251 ;;
15252
15253 rdos*)
15254 dynamic_linker=no
15255 ;;
15256
15257 solaris*)
15258 version_type=linux
15259 need_lib_prefix=no
15260 need_version=no
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15262 soname_spec='${libname}${release}${shared_ext}$major'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=yes
15265 hardcode_into_libs=yes
15266 # ldd complains unless libraries are executable
15267 postinstall_cmds='chmod +x $lib'
15268 ;;
15269
15270 sunos4*)
15271 version_type=sunos
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 shlibpath_overrides_runpath=yes
15276 if test "$with_gnu_ld" = yes; then
15277 need_lib_prefix=no
15278 fi
15279 need_version=yes
15280 ;;
15281
15282 sysv4 | sysv4.3*)
15283 version_type=linux
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 shlibpath_var=LD_LIBRARY_PATH
15287 case $host_vendor in
15288 sni)
15289 shlibpath_overrides_runpath=no
15290 need_lib_prefix=no
15291 runpath_var=LD_RUN_PATH
15292 ;;
15293 siemens)
15294 need_lib_prefix=no
15295 ;;
15296 motorola)
15297 need_lib_prefix=no
15298 need_version=no
15299 shlibpath_overrides_runpath=no
15300 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15301 ;;
15302 esac
15303 ;;
15304
15305 sysv4*MP*)
15306 if test -d /usr/nec ;then
15307 version_type=linux
15308 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15309 soname_spec='$libname${shared_ext}.$major'
15310 shlibpath_var=LD_LIBRARY_PATH
15311 fi
15312 ;;
15313
15314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15315 version_type=freebsd-elf
15316 need_lib_prefix=no
15317 need_version=no
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15319 soname_spec='${libname}${release}${shared_ext}$major'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=yes
15322 hardcode_into_libs=yes
15323 if test "$with_gnu_ld" = yes; then
15324 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15325 else
15326 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15327 case $host_os in
15328 sco3.2v5*)
15329 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15330 ;;
15331 esac
15332 fi
15333 sys_lib_dlsearch_path_spec='/usr/lib'
15334 ;;
15335
15336 tpf*)
15337 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15338 version_type=linux
15339 need_lib_prefix=no
15340 need_version=no
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15342 shlibpath_var=LD_LIBRARY_PATH
15343 shlibpath_overrides_runpath=no
15344 hardcode_into_libs=yes
15345 ;;
15346
15347 uts4*)
15348 version_type=linux
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 ;;
15353
15354 *)
15355 dynamic_linker=no
15356 ;;
15357 esac
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15359 $as_echo "$dynamic_linker" >&6; }
15360 test "$dynamic_linker" = no && can_build_shared=no
15361
15362 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15363 if test "$GCC" = yes; then
15364 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15365 fi
15366
15367 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15368 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15369 fi
15370 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15371 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15372 fi
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15412 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15413 hardcode_action_CXX=
15414 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15415 test -n "$runpath_var_CXX" ||
15416 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15417
15418 # We can hardcode non-existent directories.
15419 if test "$hardcode_direct_CXX" != no &&
15420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15421 # have to relink, otherwise we might link with an installed library
15422 # when we should be linking with a yet-to-be-installed one
15423 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15424 test "$hardcode_minus_L_CXX" != no; then
15425 # Linking always hardcodes the temporary library directory.
15426 hardcode_action_CXX=relink
15427 else
15428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15429 hardcode_action_CXX=immediate
15430 fi
15431 else
15432 # We cannot hardcode anything, or else we can only hardcode existing
15433 # directories.
15434 hardcode_action_CXX=unsupported
15435 fi
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15437 $as_echo "$hardcode_action_CXX" >&6; }
15438
15439 if test "$hardcode_action_CXX" = relink ||
15440 test "$inherit_rpath_CXX" = yes; then
15441 # Fast installation is not supported
15442 enable_fast_install=no
15443 elif test "$shlibpath_overrides_runpath" = yes ||
15444 test "$enable_shared" = no; then
15445 # Fast installation is not necessary
15446 enable_fast_install=needless
15447 fi
15448
15449
15450
15451
15452
15453
15454
15455 fi # test -n "$compiler"
15456
15457 CC=$lt_save_CC
15458 LDCXX=$LD
15459 LD=$lt_save_LD
15460 GCC=$lt_save_GCC
15461 with_gnu_ld=$lt_save_with_gnu_ld
15462 lt_cv_path_LDCXX=$lt_cv_path_LD
15463 lt_cv_path_LD=$lt_save_path_LD
15464 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15465 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15466 fi # test "$_lt_caught_CXX_error" != yes
15467
15468 ac_ext=c
15469 ac_cpp='$CPP $CPPFLAGS'
15470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486 ac_config_commands="$ac_config_commands libtool"
15487
15488
15489
15490
15491 # Only expand once:
15492
15493
15494
15495 GPROFNG_LIBADD="-L../../libiberty -liberty"
15496 if test "$enable_shared" = "yes"; then
15497 GPROFNG_LIBADD="-L../../libiberty/pic -liberty"
15498 fi
15499
15500
15501 # Figure out what compiler warnings we can enable.
15502 # See config/warnings.m4 for details.
15503
15504 ac_ext=c
15505 ac_cpp='$CPP $CPPFLAGS'
15506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15509
15510 WERROR=
15511 # Check whether --enable-werror-always was given.
15512 if test "${enable_werror_always+set}" = set; then :
15513 enableval=$enable_werror_always;
15514 else
15515 enable_werror_always=no
15516 fi
15517
15518 if test $enable_werror_always = yes; then :
15519 WERROR="$WERROR${WERROR:+ }-Werror"
15520 fi
15521
15522 ac_ext=c
15523 ac_cpp='$CPP $CPPFLAGS'
15524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15527
15528
15529 ac_ext=c
15530 ac_cpp='$CPP $CPPFLAGS'
15531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15534
15535 gprofng_cflags=
15536 save_CFLAGS="$CFLAGS"
15537 for real_option in -Wall; do
15538 # Do the check with the no- prefix removed since gcc silently
15539 # accepts any -Wno-* option on purpose
15540 case $real_option in
15541 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15542 *) option=$real_option ;;
15543 esac
15544 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15545
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15547 $as_echo_n "checking whether $CC supports $option... " >&6; }
15548 if eval \${$as_acx_Woption+:} false; then :
15549 $as_echo_n "(cached) " >&6
15550 else
15551 CFLAGS="$option"
15552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553 /* end confdefs.h. */
15554
15555 int
15556 main ()
15557 {
15558
15559 ;
15560 return 0;
15561 }
15562 _ACEOF
15563 if ac_fn_c_try_compile "$LINENO"; then :
15564 eval "$as_acx_Woption=yes"
15565 else
15566 eval "$as_acx_Woption=no"
15567 fi
15568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569
15570 fi
15571 eval ac_res=\$$as_acx_Woption
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15573 $as_echo "$ac_res" >&6; }
15574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15575 gprofng_cflags="$gprofng_cflags${gprofng_cflags:+ }$real_option"
15576 fi
15577 done
15578 CFLAGS="$save_CFLAGS"
15579 ac_ext=c
15580 ac_cpp='$CPP $CPPFLAGS'
15581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15584
15585
15586 ac_ext=c
15587 ac_cpp='$CPP $CPPFLAGS'
15588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15591
15592 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS=
15593 save_CFLAGS="$CFLAGS"
15594 for real_option in -Wno-format-truncation; do
15595 # Do the check with the no- prefix removed since gcc silently
15596 # accepts any -Wno-* option on purpose
15597 case $real_option in
15598 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15599 *) option=$real_option ;;
15600 esac
15601 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15602
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15604 $as_echo_n "checking whether $CC supports $option... " >&6; }
15605 if eval \${$as_acx_Woption+:} false; then :
15606 $as_echo_n "(cached) " >&6
15607 else
15608 CFLAGS="$option"
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15611
15612 int
15613 main ()
15614 {
15615
15616 ;
15617 return 0;
15618 }
15619 _ACEOF
15620 if ac_fn_c_try_compile "$LINENO"; then :
15621 eval "$as_acx_Woption=yes"
15622 else
15623 eval "$as_acx_Woption=no"
15624 fi
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626
15627 fi
15628 eval ac_res=\$$as_acx_Woption
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15630 $as_echo "$ac_res" >&6; }
15631 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15632 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS="$GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS${GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS:+ }$real_option"
15633 fi
15634 done
15635 CFLAGS="$save_CFLAGS"
15636 ac_ext=c
15637 ac_cpp='$CPP $CPPFLAGS'
15638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15641
15642
15643 ac_ext=c
15644 ac_cpp='$CPP $CPPFLAGS'
15645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15648
15649 GPROFNG_NO_SWITCH_CFLAGS=
15650 save_CFLAGS="$CFLAGS"
15651 for real_option in -Wno-switch; do
15652 # Do the check with the no- prefix removed since gcc silently
15653 # accepts any -Wno-* option on purpose
15654 case $real_option in
15655 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15656 *) option=$real_option ;;
15657 esac
15658 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15659
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15661 $as_echo_n "checking whether $CC supports $option... " >&6; }
15662 if eval \${$as_acx_Woption+:} false; then :
15663 $as_echo_n "(cached) " >&6
15664 else
15665 CFLAGS="$option"
15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15668
15669 int
15670 main ()
15671 {
15672
15673 ;
15674 return 0;
15675 }
15676 _ACEOF
15677 if ac_fn_c_try_compile "$LINENO"; then :
15678 eval "$as_acx_Woption=yes"
15679 else
15680 eval "$as_acx_Woption=no"
15681 fi
15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683
15684 fi
15685 eval ac_res=\$$as_acx_Woption
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15687 $as_echo "$ac_res" >&6; }
15688 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15689 GPROFNG_NO_SWITCH_CFLAGS="$GPROFNG_NO_SWITCH_CFLAGS${GPROFNG_NO_SWITCH_CFLAGS:+ }$real_option"
15690 fi
15691 done
15692 CFLAGS="$save_CFLAGS"
15693 ac_ext=c
15694 ac_cpp='$CPP $CPPFLAGS'
15695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15698
15699
15700 gprofng_cppflags="-U_ASM"
15701 build_collector=
15702 build_src=
15703
15704 # This is annoying: it means we have to pass --enable-shared explicitly to
15705 # get gprofng, while the configure default is supposed to be that shared libs
15706 # are on by default. But as long as libiberty has code like this, so must
15707 # we...
15708
15709 case "${target}" in
15710 x86_64-*-linux*)
15711 build_src=true
15712 build_collector=true
15713 ;;
15714 i?86-*-linux*)
15715 build_collector=true
15716 build_collector=true
15717 ;;
15718 aarch64-*-linux*)
15719 build_src=true
15720 build_collector=true
15721 ;;
15722 esac
15723 # Check whether --enable-gprofng-tools was given.
15724 if test "${enable_gprofng_tools+set}" = set; then :
15725 enableval=$enable_gprofng_tools; build_src=$enableval
15726 fi
15727
15728
15729 if test x$build_collector = xtrue; then
15730 BUILD_COLLECTOR_TRUE=
15731 BUILD_COLLECTOR_FALSE='#'
15732 else
15733 BUILD_COLLECTOR_TRUE='#'
15734 BUILD_COLLECTOR_FALSE=
15735 fi
15736
15737 if test x$build_src = xtrue; then
15738 BUILD_SRC_TRUE=
15739 BUILD_SRC_FALSE='#'
15740 else
15741 BUILD_SRC_TRUE='#'
15742 BUILD_SRC_FALSE=
15743 fi
15744
15745
15746 run_tests=false
15747 if test x$build_collector = xtrue; then
15748
15749
15750 subdirs="$subdirs libcollector"
15751
15752 if test x${host} = x${target}; then
15753 run_tests=true
15754 fi
15755 fi
15756 if test x$run_tests = xtrue; then
15757 RUN_TESTS_TRUE=
15758 RUN_TESTS_FALSE='#'
15759 else
15760 RUN_TESTS_TRUE='#'
15761 RUN_TESTS_FALSE=
15762 fi
15763
15764
15765
15766
15767
15768 ac_ext=c
15769 ac_cpp='$CPP $CPPFLAGS'
15770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15773
15774 ax_pthread_ok=no
15775
15776 # We used to check for pthread.h first, but this fails if pthread.h
15777 # requires special compiler flags (e.g. on Tru64 or Sequent).
15778 # It gets checked for in the link test anyway.
15779
15780 # First of all, check if the user has set any of the PTHREAD_LIBS,
15781 # etcetera environment variables, and if threads linking works using
15782 # them:
15783 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15784 ax_pthread_save_CC="$CC"
15785 ax_pthread_save_CFLAGS="$CFLAGS"
15786 ax_pthread_save_LIBS="$LIBS"
15787 if test "x$PTHREAD_CC" != "x"; then :
15788 CC="$PTHREAD_CC"
15789 fi
15790 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15791 LIBS="$PTHREAD_LIBS $LIBS"
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15793 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h. */
15796
15797 /* Override any GCC internal prototype to avoid an error.
15798 Use char because int might match the return type of a GCC
15799 builtin and then its argument prototype would still apply. */
15800 #ifdef __cplusplus
15801 extern "C"
15802 #endif
15803 char pthread_join ();
15804 int
15805 main ()
15806 {
15807 return pthread_join ();
15808 ;
15809 return 0;
15810 }
15811 _ACEOF
15812 if ac_fn_c_try_link "$LINENO"; then :
15813 ax_pthread_ok=yes
15814 fi
15815 rm -f core conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15818 $as_echo "$ax_pthread_ok" >&6; }
15819 if test "x$ax_pthread_ok" = "xno"; then
15820 PTHREAD_LIBS=""
15821 PTHREAD_CFLAGS=""
15822 fi
15823 CC="$ax_pthread_save_CC"
15824 CFLAGS="$ax_pthread_save_CFLAGS"
15825 LIBS="$ax_pthread_save_LIBS"
15826 fi
15827
15828 # We must check for the threads library under a number of different
15829 # names; the ordering is very important because some systems
15830 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15831 # libraries is broken (non-POSIX).
15832
15833 # Create a list of thread flags to try. Items starting with a "-" are
15834 # C compiler flags, and other items are library names, except for "none"
15835 # which indicates that we try without any flags at all, and "pthread-config"
15836 # which is a program returning the flags for the Pth emulation library.
15837
15838 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15839
15840 # The ordering *is* (sometimes) important. Some notes on the
15841 # individual items follow:
15842
15843 # pthreads: AIX (must check this before -lpthread)
15844 # none: in case threads are in libc; should be tried before -Kthread and
15845 # other compiler flags to prevent continual compiler warnings
15846 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15847 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15848 # (Note: HP C rejects this with "bad form for `-t' option")
15849 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15850 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15851 # doesn't hurt to check since this sometimes defines pthreads and
15852 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15853 # is present but should not be used directly; and before -mthreads,
15854 # because the compiler interprets this as "-mt" + "-hreads")
15855 # -mthreads: Mingw32/gcc, Lynx/gcc
15856 # pthread: Linux, etcetera
15857 # --thread-safe: KAI C++
15858 # pthread-config: use pthread-config program (for GNU Pth library)
15859
15860 case $host_os in
15861
15862 freebsd*)
15863
15864 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15865 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15866
15867 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15868 ;;
15869
15870 hpux*)
15871
15872 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15873 # multi-threading and also sets -lpthread."
15874
15875 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15876 ;;
15877
15878 openedition*)
15879
15880 # IBM z/OS requires a feature-test macro to be defined in order to
15881 # enable POSIX threads at all, so give the user a hint if this is
15882 # not set. (We don't define these ourselves, as they can affect
15883 # other portions of the system API in unpredictable ways.)
15884
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15887
15888 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15889 AX_PTHREAD_ZOS_MISSING
15890 # endif
15891
15892 _ACEOF
15893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15894 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15896 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15897 fi
15898 rm -f conftest*
15899
15900 ;;
15901
15902 solaris*)
15903
15904 # On Solaris (at least, for some versions), libc contains stubbed
15905 # (non-functional) versions of the pthreads routines, so link-based
15906 # tests will erroneously succeed. (N.B.: The stubs are missing
15907 # pthread_cleanup_push, or rather a function called by this macro,
15908 # so we could check for that, but who knows whether they'll stub
15909 # that too in a future libc.) So we'll check first for the
15910 # standard Solaris way of linking pthreads (-mt -lpthread).
15911
15912 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
15913 ;;
15914 esac
15915
15916 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15917
15918 if test "x$GCC" = "xyes"; then :
15919 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
15920 fi
15921
15922 # The presence of a feature test macro requesting re-entrant function
15923 # definitions is, on some systems, a strong hint that pthreads support is
15924 # correctly enabled
15925
15926 case $host_os in
15927 darwin* | hpux* | linux* | osf* | solaris*)
15928 ax_pthread_check_macro="_REENTRANT"
15929 ;;
15930
15931 aix*)
15932 ax_pthread_check_macro="_THREAD_SAFE"
15933 ;;
15934
15935 *)
15936 ax_pthread_check_macro="--"
15937 ;;
15938 esac
15939 if test "x$ax_pthread_check_macro" = "x--"; then :
15940 ax_pthread_check_cond=0
15941 else
15942 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15943 fi
15944
15945 # Are we compiling with Clang?
15946
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15948 $as_echo_n "checking whether $CC is Clang... " >&6; }
15949 if ${ax_cv_PTHREAD_CLANG+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951 else
15952 ax_cv_PTHREAD_CLANG=no
15953 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15954 if test "x$GCC" = "xyes"; then
15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956 /* end confdefs.h. */
15957 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15958 # if defined(__clang__) && defined(__llvm__)
15959 AX_PTHREAD_CC_IS_CLANG
15960 # endif
15961
15962 _ACEOF
15963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15964 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
15965 ax_cv_PTHREAD_CLANG=yes
15966 fi
15967 rm -f conftest*
15968
15969 fi
15970
15971 fi
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15973 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15974 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15975
15976 ax_pthread_clang_warning=no
15977
15978 # Clang needs special handling, because older versions handle the -pthread
15979 # option in a rather... idiosyncratic way
15980
15981 if test "x$ax_pthread_clang" = "xyes"; then
15982
15983 # Clang takes -pthread; it has never supported any other flag
15984
15985 # (Note 1: This will need to be revisited if a system that Clang
15986 # supports has POSIX threads in a separate library. This tends not
15987 # to be the way of modern systems, but it's conceivable.)
15988
15989 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15990 # to get POSIX threads support; the API is always present and
15991 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15992 # -pthread does define _REENTRANT, and while the Darwin headers
15993 # ignore this macro, third-party headers might not.)
15994
15995 PTHREAD_CFLAGS="-pthread"
15996 PTHREAD_LIBS=
15997
15998 ax_pthread_ok=yes
15999
16000 # However, older versions of Clang make a point of warning the user
16001 # that, in an invocation where only linking and no compilation is
16002 # taking place, the -pthread option has no effect ("argument unused
16003 # during compilation"). They expect -pthread to be passed in only
16004 # when source code is being compiled.
16005 #
16006 # Problem is, this is at odds with the way Automake and most other
16007 # C build frameworks function, which is that the same flags used in
16008 # compilation (CFLAGS) are also used in linking. Many systems
16009 # supported by AX_PTHREAD require exactly this for POSIX threads
16010 # support, and in fact it is often not straightforward to specify a
16011 # flag that is used only in the compilation phase and not in
16012 # linking. Such a scenario is extremely rare in practice.
16013 #
16014 # Even though use of the -pthread flag in linking would only print
16015 # a warning, this can be a nuisance for well-run software projects
16016 # that build with -Werror. So if the active version of Clang has
16017 # this misfeature, we search for an option to squash it.
16018
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
16020 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
16021 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
16022 $as_echo_n "(cached) " >&6
16023 else
16024 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
16025 # Create an alternate version of $ac_link that compiles and
16026 # links in two steps (.c -> .o, .o -> exe) instead of one
16027 # (.c -> exe), because the warning occurs only in the second
16028 # step
16029 ax_pthread_save_ac_link="$ac_link"
16030 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
16031 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
16032 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
16033 ax_pthread_save_CFLAGS="$CFLAGS"
16034 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
16035 if test "x$ax_pthread_try" = "xunknown"; then :
16036 break
16037 fi
16038 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
16039 ac_link="$ax_pthread_save_ac_link"
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 int main(void){return 0;}
16043 _ACEOF
16044 if ac_fn_c_try_link "$LINENO"; then :
16045 ac_link="$ax_pthread_2step_ac_link"
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h. */
16048 int main(void){return 0;}
16049 _ACEOF
16050 if ac_fn_c_try_link "$LINENO"; then :
16051 break
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16055
16056 fi
16057 rm -f core conftest.err conftest.$ac_objext \
16058 conftest$ac_exeext conftest.$ac_ext
16059 done
16060 ac_link="$ax_pthread_save_ac_link"
16061 CFLAGS="$ax_pthread_save_CFLAGS"
16062 if test "x$ax_pthread_try" = "x"; then :
16063 ax_pthread_try=no
16064 fi
16065 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
16066
16067 fi
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
16069 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
16070
16071 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
16072 no | unknown) ;;
16073 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
16074 esac
16075
16076 fi # $ax_pthread_clang = yes
16077
16078 if test "x$ax_pthread_ok" = "xno"; then
16079 for ax_pthread_try_flag in $ax_pthread_flags; do
16080
16081 case $ax_pthread_try_flag in
16082 none)
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16084 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16085 ;;
16086
16087 -mt,pthread)
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
16089 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
16090 PTHREAD_CFLAGS="-mt"
16091 PTHREAD_LIBS="-lpthread"
16092 ;;
16093
16094 -*)
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
16096 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
16097 PTHREAD_CFLAGS="$ax_pthread_try_flag"
16098 ;;
16099
16100 pthread-config)
16101 # Extract the first word of "pthread-config", so it can be a program name with args.
16102 set dummy pthread-config; ac_word=$2
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16104 $as_echo_n "checking for $ac_word... " >&6; }
16105 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16106 $as_echo_n "(cached) " >&6
16107 else
16108 if test -n "$ax_pthread_config"; then
16109 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16110 else
16111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16112 for as_dir in $PATH
16113 do
16114 IFS=$as_save_IFS
16115 test -z "$as_dir" && as_dir=.
16116 for ac_exec_ext in '' $ac_executable_extensions; do
16117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16118 ac_cv_prog_ax_pthread_config="yes"
16119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16120 break 2
16121 fi
16122 done
16123 done
16124 IFS=$as_save_IFS
16125
16126 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16127 fi
16128 fi
16129 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16130 if test -n "$ax_pthread_config"; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16132 $as_echo "$ax_pthread_config" >&6; }
16133 else
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16135 $as_echo "no" >&6; }
16136 fi
16137
16138
16139 if test "x$ax_pthread_config" = "xno"; then :
16140 continue
16141 fi
16142 PTHREAD_CFLAGS="`pthread-config --cflags`"
16143 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16144 ;;
16145
16146 *)
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
16148 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
16149 PTHREAD_LIBS="-l$ax_pthread_try_flag"
16150 ;;
16151 esac
16152
16153 ax_pthread_save_CFLAGS="$CFLAGS"
16154 ax_pthread_save_LIBS="$LIBS"
16155 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16156 LIBS="$PTHREAD_LIBS $LIBS"
16157
16158 # Check for various functions. We must include pthread.h,
16159 # since some functions may be macros. (On the Sequent, we
16160 # need a special flag -Kthread to make this header compile.)
16161 # We check for pthread_join because it is in -lpthread on IRIX
16162 # while pthread_create is in libc. We check for pthread_attr_init
16163 # due to DEC craziness with -lpthreads. We check for
16164 # pthread_cleanup_push because it is one of the few pthread
16165 # functions on Solaris that doesn't have a non-functional libc stub.
16166 # We try pthread_create on general principles.
16167
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 #include <pthread.h>
16171 # if $ax_pthread_check_cond
16172 # error "$ax_pthread_check_macro must be defined"
16173 # endif
16174 static void routine(void *a) { a = 0; }
16175 static void *start_routine(void *a) { return a; }
16176 int
16177 main ()
16178 {
16179 pthread_t th; pthread_attr_t attr;
16180 pthread_create(&th, 0, start_routine, 0);
16181 pthread_join(th, 0);
16182 pthread_attr_init(&attr);
16183 pthread_cleanup_push(routine, 0);
16184 pthread_cleanup_pop(0) /* ; */
16185 ;
16186 return 0;
16187 }
16188 _ACEOF
16189 if ac_fn_c_try_link "$LINENO"; then :
16190 ax_pthread_ok=yes
16191 fi
16192 rm -f core conftest.err conftest.$ac_objext \
16193 conftest$ac_exeext conftest.$ac_ext
16194
16195 CFLAGS="$ax_pthread_save_CFLAGS"
16196 LIBS="$ax_pthread_save_LIBS"
16197
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16199 $as_echo "$ax_pthread_ok" >&6; }
16200 if test "x$ax_pthread_ok" = "xyes"; then :
16201 break
16202 fi
16203
16204 PTHREAD_LIBS=""
16205 PTHREAD_CFLAGS=""
16206 done
16207 fi
16208
16209 # Various other checks:
16210 if test "x$ax_pthread_ok" = "xyes"; then
16211 ax_pthread_save_CFLAGS="$CFLAGS"
16212 ax_pthread_save_LIBS="$LIBS"
16213 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16214 LIBS="$PTHREAD_LIBS $LIBS"
16215
16216 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16218 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16219 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
16220 $as_echo_n "(cached) " >&6
16221 else
16222 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
16223 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h. */
16226 #include <pthread.h>
16227 int
16228 main ()
16229 {
16230 int attr = $ax_pthread_attr; return attr /* ; */
16231 ;
16232 return 0;
16233 }
16234 _ACEOF
16235 if ac_fn_c_try_link "$LINENO"; then :
16236 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
16237 fi
16238 rm -f core conftest.err conftest.$ac_objext \
16239 conftest$ac_exeext conftest.$ac_ext
16240 done
16241
16242 fi
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16244 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16245 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16246 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16247 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
16248
16249 cat >>confdefs.h <<_ACEOF
16250 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
16251 _ACEOF
16252
16253 ax_pthread_joinable_attr_defined=yes
16254
16255 fi
16256
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16258 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
16259 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
16260 $as_echo_n "(cached) " >&6
16261 else
16262 ax_cv_PTHREAD_SPECIAL_FLAGS=no
16263 case $host_os in
16264 solaris*)
16265 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16266 ;;
16267 esac
16268
16269 fi
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16271 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16272 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16273 test "x$ax_pthread_special_flags_added" != "xyes"; then :
16274 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16275 ax_pthread_special_flags_added=yes
16276 fi
16277
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16279 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16280 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16281 $as_echo_n "(cached) " >&6
16282 else
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 #include <pthread.h>
16286 int
16287 main ()
16288 {
16289 int i = PTHREAD_PRIO_INHERIT;
16290 ;
16291 return 0;
16292 }
16293 _ACEOF
16294 if ac_fn_c_try_link "$LINENO"; then :
16295 ax_cv_PTHREAD_PRIO_INHERIT=yes
16296 else
16297 ax_cv_PTHREAD_PRIO_INHERIT=no
16298 fi
16299 rm -f core conftest.err conftest.$ac_objext \
16300 conftest$ac_exeext conftest.$ac_ext
16301
16302 fi
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16304 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16305 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16306 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
16307
16308 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16309
16310 ax_pthread_prio_inherit_defined=yes
16311
16312 fi
16313
16314 CFLAGS="$ax_pthread_save_CFLAGS"
16315 LIBS="$ax_pthread_save_LIBS"
16316
16317 # More AIX lossage: compile with *_r variant
16318 if test "x$GCC" != "xyes"; then
16319 case $host_os in
16320 aix*)
16321 case "x/$CC" in #(
16322 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16323 #handle absolute path differently from PATH based program lookup
16324 case "x$CC" in #(
16325 x/*) :
16326 if as_fn_executable_p ${CC}_r; then :
16327 PTHREAD_CC="${CC}_r"
16328 fi ;; #(
16329 *) :
16330 for ac_prog in ${CC}_r
16331 do
16332 # Extract the first word of "$ac_prog", so it can be a program name with args.
16333 set dummy $ac_prog; ac_word=$2
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16335 $as_echo_n "checking for $ac_word... " >&6; }
16336 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16337 $as_echo_n "(cached) " >&6
16338 else
16339 if test -n "$PTHREAD_CC"; then
16340 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16341 else
16342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16343 for as_dir in $PATH
16344 do
16345 IFS=$as_save_IFS
16346 test -z "$as_dir" && as_dir=.
16347 for ac_exec_ext in '' $ac_executable_extensions; do
16348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16349 ac_cv_prog_PTHREAD_CC="$ac_prog"
16350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16351 break 2
16352 fi
16353 done
16354 done
16355 IFS=$as_save_IFS
16356
16357 fi
16358 fi
16359 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16360 if test -n "$PTHREAD_CC"; then
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16362 $as_echo "$PTHREAD_CC" >&6; }
16363 else
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16366 fi
16367
16368
16369 test -n "$PTHREAD_CC" && break
16370 done
16371 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16372 ;;
16373 esac ;; #(
16374 *) :
16375 ;;
16376 esac
16377 ;;
16378 esac
16379 fi
16380 fi
16381
16382 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16383
16384
16385
16386
16387
16388 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16389 if test "x$ax_pthread_ok" = "xyes"; then
16390
16391 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16392
16393 :
16394 else
16395 ax_pthread_ok=no
16396
16397 fi
16398 ac_ext=c
16399 ac_cpp='$CPP $CPPFLAGS'
16400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16403
16404
16405
16406 # Specify a location for JDK
16407 enable_gprofng_jp=
16408 jdk_inc=
16409
16410 # Check whether --with-jdk was given.
16411 if test "${with_jdk+set}" = set; then :
16412 withval=$with_jdk;
16413 fi
16414
16415
16416 if test "x$with_jdk" != x; then
16417 jdk_inc="-I$with_jdk/include -I$with_jdk/include/linux"
16418 enable_gprofng_jp=yes
16419 else
16420 # Extract the first word of "javac", so it can be a program name with args.
16421 set dummy javac; ac_word=$2
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16423 $as_echo_n "checking for $ac_word... " >&6; }
16424 if ${ac_cv_path_JAVAC+:} false; then :
16425 $as_echo_n "(cached) " >&6
16426 else
16427 case $JAVAC in
16428 [\\/]* | ?:[\\/]*)
16429 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
16430 ;;
16431 *)
16432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16433 for as_dir in $PATH
16434 do
16435 IFS=$as_save_IFS
16436 test -z "$as_dir" && as_dir=.
16437 for ac_exec_ext in '' $ac_executable_extensions; do
16438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16439 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
16440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16441 break 2
16442 fi
16443 done
16444 done
16445 IFS=$as_save_IFS
16446
16447 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="javac"
16448 ;;
16449 esac
16450 fi
16451 JAVAC=$ac_cv_path_JAVAC
16452 if test -n "$JAVAC"; then
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16454 $as_echo "$JAVAC" >&6; }
16455 else
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16457 $as_echo "no" >&6; }
16458 fi
16459
16460
16461 if test -f $JAVAC; then
16462 x=`readlink -f $JAVAC`
16463 x=`dirname $x`
16464 x=`dirname $x`
16465 if ! test -f $x/include/jni.h; then
16466 x=`dirname $x`
16467 fi
16468 if test -f $x/include/jni.h; then
16469 jdk_inc="-I$x/include -I$x/include/linux"
16470 enable_gprofng_jp=yes
16471 fi
16472 fi
16473 fi
16474 if test "x$enable_gprofng_jp" = x; then
16475 # Extract the first word of "java", so it can be a program name with args.
16476 set dummy java; ac_word=$2
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16478 $as_echo_n "checking for $ac_word... " >&6; }
16479 if ${ac_cv_path_JAVA+:} false; then :
16480 $as_echo_n "(cached) " >&6
16481 else
16482 case $JAVA in
16483 [\\/]* | ?:[\\/]*)
16484 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
16485 ;;
16486 *)
16487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16488 for as_dir in $PATH
16489 do
16490 IFS=$as_save_IFS
16491 test -z "$as_dir" && as_dir=.
16492 for ac_exec_ext in '' $ac_executable_extensions; do
16493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16494 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
16495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16496 break 2
16497 fi
16498 done
16499 done
16500 IFS=$as_save_IFS
16501
16502 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="java"
16503 ;;
16504 esac
16505 fi
16506 JAVA=$ac_cv_path_JAVA
16507 if test -n "$JAVA"; then
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16509 $as_echo "$JAVA" >&6; }
16510 else
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16512 $as_echo "no" >&6; }
16513 fi
16514
16515
16516 if test -f $JAVA; then
16517 x=`readlink -f $JAVA`
16518 x=`dirname $x`
16519 x=`dirname $x`
16520 if ! test -f $x/include/jni.h; then
16521 x=`dirname $x`
16522 fi
16523 if test -f $x/include/jni.h; then
16524 jdk_inc="-I$x/include -I$x/include/linux"
16525 enable_gprofng_jp=yes
16526 fi
16527 fi
16528 fi
16529 if test "x$enable_gprofng_jp" = x; then
16530 ac_fn_c_check_header_compile "$LINENO" "jni.h" "ac_cv_header_jni_h" "
16531 "
16532 if test "x$ac_cv_header_jni_h" = xyes; then :
16533 enable_gprofng_jp=yes
16534 fi
16535
16536
16537 fi
16538 GPROFNG_BROKEN_JAVAC=no
16539 if test "x$enable_gprofng_jp" = x; then
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find the JDK include directory.
16541 gprofng will be build without support for profiling Java applications.
16542 Use --with-jdk=PATH to specify directory for the installed JDK" >&5
16543 $as_echo "$as_me: WARNING: Cannot find the JDK include directory.
16544 gprofng will be build without support for profiling Java applications.
16545 Use --with-jdk=PATH to specify directory for the installed JDK" >&2;}
16546 else
16547
16548 $as_echo "#define GPROFNG_JAVA_PROFILING 1" >>confdefs.h
16549
16550 if test "x$JAVAC" != x; then
16551 cat > configtest.java << EOF
16552 class Simple{
16553 public static void main(String args){
16554 System.out.println("Hello Java");
16555 }
16556 }
16557 EOF
16558 if { ac_try='$JAVAC conftest.java &5 2>&1'
16559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16563 test $ac_status = 0; }; }; then
16564 GPROFNG_BROKEN_JAVAC=no
16565 else
16566 GPROFNG_BROKEN_JAVAC=yes
16567 fi
16568 rm -f configtest.*
16569 fi
16570 fi
16571
16572
16573
16574 DEBUG=
16575 # Check whether --enable-gprofng-debug was given.
16576 if test "${enable_gprofng_debug+set}" = set; then :
16577 enableval=$enable_gprofng_debug;
16578 case "$enableval" in
16579 yes|no) ;;
16580 *) as_fn_error $? "Argument to enable/disable gprofng-debug must be yes or no" "$LINENO" 5 ;;
16581 esac
16582
16583 else
16584 enable_gprofng_debug=no
16585 fi
16586
16587
16588 if test "${enable_gprofng_debug}" = yes; then
16589
16590 $as_echo "#define DEBUG 1" >>confdefs.h
16591
16592 fi
16593
16594 # Check if linker supports --as-needed and --no-as-needed options.
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
16596 $as_echo_n "checking linker --as-needed support... " >&6; }
16597 if ${bfd_cv_ld_as_needed+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599 else
16600 bfd_cv_ld_as_needed=no
16601 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
16602 bfd_cv_ld_as_needed=yes
16603 fi
16604
16605 fi
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
16607 $as_echo "$bfd_cv_ld_as_needed" >&6; }
16608
16609 no_as_needed=
16610 if test x"$bfd_cv_ld_as_needed" = xyes; then
16611 no_as_needed='-Wl,--no-as-needed'
16612 fi
16613
16614 # Extract the first word of "expect", so it can be a program name with args.
16615 set dummy expect; ac_word=$2
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16617 $as_echo_n "checking for $ac_word... " >&6; }
16618 if ${ac_cv_path_EXPECT+:} false; then :
16619 $as_echo_n "(cached) " >&6
16620 else
16621 case $EXPECT in
16622 [\\/]* | ?:[\\/]*)
16623 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
16624 ;;
16625 *)
16626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16627 for as_dir in $PATH
16628 do
16629 IFS=$as_save_IFS
16630 test -z "$as_dir" && as_dir=.
16631 for ac_exec_ext in '' $ac_executable_extensions; do
16632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16633 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
16634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16635 break 2
16636 fi
16637 done
16638 done
16639 IFS=$as_save_IFS
16640
16641 ;;
16642 esac
16643 fi
16644 EXPECT=$ac_cv_path_EXPECT
16645 if test -n "$EXPECT"; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16647 $as_echo "$EXPECT" >&6; }
16648 else
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16651 fi
16652
16653
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16655 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16656 if ${ac_cv_libctf_tcl_try+:} false; then :
16657 $as_echo_n "(cached) " >&6
16658 else
16659 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16660 if [llength [info commands try]] then { puts yes } else { puts no }
16661 EOF
16662 fi`
16663
16664 fi
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16666 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
16667 if test "${ac_cv_libctf_tcl_try}" = yes; then
16668 TCL_TRY_TRUE=
16669 TCL_TRY_FALSE='#'
16670 else
16671 TCL_TRY_TRUE='#'
16672 TCL_TRY_FALSE=
16673 fi
16674
16675
16676
16677 # Generate manpages, if possible.
16678 if test $cross_compiling = no; then
16679
16680 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
16681
16682 build_man=true
16683 else
16684 build_man=false
16685 fi
16686 if test x$build_man = xtrue; then
16687 BUILD_MAN_TRUE=
16688 BUILD_MAN_FALSE='#'
16689 else
16690 BUILD_MAN_TRUE='#'
16691 BUILD_MAN_FALSE=
16692 fi
16693
16694
16695 LD_NO_AS_NEEDED=${no_as_needed}
16696
16697 GPROFNG_CFLAGS=${gprofng_cflags}
16698
16699
16700
16701 GPROFNG_CPPFLAGS=${gprofng_cppflags}
16702
16703
16704 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
16705 if test "x$ac_cv_have_decl_basename" = xyes; then :
16706 ac_have_decl=1
16707 else
16708 ac_have_decl=0
16709 fi
16710
16711 cat >>confdefs.h <<_ACEOF
16712 #define HAVE_DECL_BASENAME $ac_have_decl
16713 _ACEOF
16714
16715 for ac_func in clock_gettime strsignal
16716 do :
16717 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16718 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16719 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16720 cat >>confdefs.h <<_ACEOF
16721 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16722 _ACEOF
16723
16724 fi
16725 done
16726
16727
16728 clock_gettime_link=
16729 # At least for glibc, clock_gettime is in librt. But don't
16730 # pull that in if it still doesn't give us the function we want. This
16731 # test is copied from libgomp, and modified to not link in -lrt as
16732 # we're using this for test timing only.
16733 if test "$ac_cv_func_clock_gettime" = no; then
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16735 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16736 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16737 $as_echo_n "(cached) " >&6
16738 else
16739 ac_check_lib_save_LIBS=$LIBS
16740 LIBS="-lrt $LIBS"
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743
16744 /* Override any GCC internal prototype to avoid an error.
16745 Use char because int might match the return type of a GCC
16746 builtin and then its argument prototype would still apply. */
16747 #ifdef __cplusplus
16748 extern "C"
16749 #endif
16750 char clock_gettime ();
16751 int
16752 main ()
16753 {
16754 return clock_gettime ();
16755 ;
16756 return 0;
16757 }
16758 _ACEOF
16759 if ac_fn_c_try_link "$LINENO"; then :
16760 ac_cv_lib_rt_clock_gettime=yes
16761 else
16762 ac_cv_lib_rt_clock_gettime=no
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16766 LIBS=$ac_check_lib_save_LIBS
16767 fi
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16769 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16770 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16771 CLOCK_GETTIME_LINK=-lrt
16772
16773 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16774
16775 fi
16776
16777 fi
16778
16779
16780
16781
16782 ac_config_files="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile"
16783
16784 ac_config_headers="$ac_config_headers config.h:common/config.h.in"
16785
16786
16787 cat >confcache <<\_ACEOF
16788 # This file is a shell script that caches the results of configure
16789 # tests run on this system so they can be shared between configure
16790 # scripts and configure runs, see configure's option --config-cache.
16791 # It is not useful on other systems. If it contains results you don't
16792 # want to keep, you may remove or edit it.
16793 #
16794 # config.status only pays attention to the cache file if you give it
16795 # the --recheck option to rerun configure.
16796 #
16797 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16798 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16799 # following values.
16800
16801 _ACEOF
16802
16803 # The following way of writing the cache mishandles newlines in values,
16804 # but we know of no workaround that is simple, portable, and efficient.
16805 # So, we kill variables containing newlines.
16806 # Ultrix sh set writes to stderr and can't be redirected directly,
16807 # and sets the high bit in the cache file unless we assign to the vars.
16808 (
16809 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16810 eval ac_val=\$$ac_var
16811 case $ac_val in #(
16812 *${as_nl}*)
16813 case $ac_var in #(
16814 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16815 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16816 esac
16817 case $ac_var in #(
16818 _ | IFS | as_nl) ;; #(
16819 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16820 *) { eval $ac_var=; unset $ac_var;} ;;
16821 esac ;;
16822 esac
16823 done
16824
16825 (set) 2>&1 |
16826 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16827 *${as_nl}ac_space=\ *)
16828 # `set' does not quote correctly, so add quotes: double-quote
16829 # substitution turns \\\\ into \\, and sed turns \\ into \.
16830 sed -n \
16831 "s/'/'\\\\''/g;
16832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16833 ;; #(
16834 *)
16835 # `set' quotes correctly as required by POSIX, so do not add quotes.
16836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16837 ;;
16838 esac |
16839 sort
16840 ) |
16841 sed '
16842 /^ac_cv_env_/b end
16843 t clear
16844 :clear
16845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16846 t end
16847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16848 :end' >>confcache
16849 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16850 if test -w "$cache_file"; then
16851 if test "x$cache_file" != "x/dev/null"; then
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16853 $as_echo "$as_me: updating cache $cache_file" >&6;}
16854 if test ! -f "$cache_file" || test -h "$cache_file"; then
16855 cat confcache >"$cache_file"
16856 else
16857 case $cache_file in #(
16858 */* | ?:*)
16859 mv -f confcache "$cache_file"$$ &&
16860 mv -f "$cache_file"$$ "$cache_file" ;; #(
16861 *)
16862 mv -f confcache "$cache_file" ;;
16863 esac
16864 fi
16865 fi
16866 else
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16868 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16869 fi
16870 fi
16871 rm -f confcache
16872
16873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16874 # Let make expand exec_prefix.
16875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16876
16877 DEFS=-DHAVE_CONFIG_H
16878
16879 ac_libobjs=
16880 ac_ltlibobjs=
16881 U=
16882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16883 # 1. Remove the extension, and $U if already installed.
16884 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16885 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16886 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16887 # will be set to the directory where LIBOBJS objects are built.
16888 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16889 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16890 done
16891 LIBOBJS=$ac_libobjs
16892
16893 LTLIBOBJS=$ac_ltlibobjs
16894
16895
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16897 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16898 if test -n "$am_sleep_pid"; then
16899 # Hide warnings about reused PIDs.
16900 wait $am_sleep_pid 2>/dev/null
16901 fi
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16903 $as_echo "done" >&6; }
16904 if test -n "$EXEEXT"; then
16905 am__EXEEXT_TRUE=
16906 am__EXEEXT_FALSE='#'
16907 else
16908 am__EXEEXT_TRUE='#'
16909 am__EXEEXT_FALSE=
16910 fi
16911
16912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16913 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16915 fi
16916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16917 as_fn_error $? "conditional \"AMDEP\" was never defined.
16918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16919 fi
16920 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16921 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16923 fi
16924 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16925 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16927 fi
16928 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16929 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16931 fi
16932 if test -z "${BUILD_COLLECTOR_TRUE}" && test -z "${BUILD_COLLECTOR_FALSE}"; then
16933 as_fn_error $? "conditional \"BUILD_COLLECTOR\" was never defined.
16934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16935 fi
16936 if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then
16937 as_fn_error $? "conditional \"BUILD_SRC\" was never defined.
16938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16939 fi
16940 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
16941 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
16942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16943 fi
16944 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
16945 as_fn_error $? "conditional \"TCL_TRY\" was never defined.
16946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16947 fi
16948 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
16949 as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
16950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16951 fi
16952
16953 : "${CONFIG_STATUS=./config.status}"
16954 ac_write_fail=0
16955 ac_clean_files_save=$ac_clean_files
16956 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16958 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16959 as_write_fail=0
16960 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16961 #! $SHELL
16962 # Generated by $as_me.
16963 # Run this file to recreate the current configuration.
16964 # Compiler output produced by configure, useful for debugging
16965 # configure, is in config.log if it exists.
16966
16967 debug=false
16968 ac_cs_recheck=false
16969 ac_cs_silent=false
16970
16971 SHELL=\${CONFIG_SHELL-$SHELL}
16972 export SHELL
16973 _ASEOF
16974 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16975 ## -------------------- ##
16976 ## M4sh Initialization. ##
16977 ## -------------------- ##
16978
16979 # Be more Bourne compatible
16980 DUALCASE=1; export DUALCASE # for MKS sh
16981 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16982 emulate sh
16983 NULLCMD=:
16984 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16985 # is contrary to our usage. Disable this feature.
16986 alias -g '${1+"$@"}'='"$@"'
16987 setopt NO_GLOB_SUBST
16988 else
16989 case `(set -o) 2>/dev/null` in #(
16990 *posix*) :
16991 set -o posix ;; #(
16992 *) :
16993 ;;
16994 esac
16995 fi
16996
16997
16998 as_nl='
16999 '
17000 export as_nl
17001 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17002 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17003 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17005 # Prefer a ksh shell builtin over an external printf program on Solaris,
17006 # but without wasting forks for bash or zsh.
17007 if test -z "$BASH_VERSION$ZSH_VERSION" \
17008 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17009 as_echo='print -r --'
17010 as_echo_n='print -rn --'
17011 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17012 as_echo='printf %s\n'
17013 as_echo_n='printf %s'
17014 else
17015 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17016 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17017 as_echo_n='/usr/ucb/echo -n'
17018 else
17019 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17020 as_echo_n_body='eval
17021 arg=$1;
17022 case $arg in #(
17023 *"$as_nl"*)
17024 expr "X$arg" : "X\\(.*\\)$as_nl";
17025 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17026 esac;
17027 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17028 '
17029 export as_echo_n_body
17030 as_echo_n='sh -c $as_echo_n_body as_echo'
17031 fi
17032 export as_echo_body
17033 as_echo='sh -c $as_echo_body as_echo'
17034 fi
17035
17036 # The user is always right.
17037 if test "${PATH_SEPARATOR+set}" != set; then
17038 PATH_SEPARATOR=:
17039 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17040 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17041 PATH_SEPARATOR=';'
17042 }
17043 fi
17044
17045
17046 # IFS
17047 # We need space, tab and new line, in precisely that order. Quoting is
17048 # there to prevent editors from complaining about space-tab.
17049 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17050 # splitting by setting IFS to empty value.)
17051 IFS=" "" $as_nl"
17052
17053 # Find who we are. Look in the path if we contain no directory separator.
17054 as_myself=
17055 case $0 in #((
17056 *[\\/]* ) as_myself=$0 ;;
17057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17058 for as_dir in $PATH
17059 do
17060 IFS=$as_save_IFS
17061 test -z "$as_dir" && as_dir=.
17062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17063 done
17064 IFS=$as_save_IFS
17065
17066 ;;
17067 esac
17068 # We did not find ourselves, most probably we were run as `sh COMMAND'
17069 # in which case we are not to be found in the path.
17070 if test "x$as_myself" = x; then
17071 as_myself=$0
17072 fi
17073 if test ! -f "$as_myself"; then
17074 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17075 exit 1
17076 fi
17077
17078 # Unset variables that we do not need and which cause bugs (e.g. in
17079 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17080 # suppresses any "Segmentation fault" message there. '((' could
17081 # trigger a bug in pdksh 5.2.14.
17082 for as_var in BASH_ENV ENV MAIL MAILPATH
17083 do eval test x\${$as_var+set} = xset \
17084 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17085 done
17086 PS1='$ '
17087 PS2='> '
17088 PS4='+ '
17089
17090 # NLS nuisances.
17091 LC_ALL=C
17092 export LC_ALL
17093 LANGUAGE=C
17094 export LANGUAGE
17095
17096 # CDPATH.
17097 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17098
17099
17100 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17101 # ----------------------------------------
17102 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17103 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17104 # script with STATUS, using 1 if that was 0.
17105 as_fn_error ()
17106 {
17107 as_status=$1; test $as_status -eq 0 && as_status=1
17108 if test "$4"; then
17109 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17110 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17111 fi
17112 $as_echo "$as_me: error: $2" >&2
17113 as_fn_exit $as_status
17114 } # as_fn_error
17115
17116
17117 # as_fn_set_status STATUS
17118 # -----------------------
17119 # Set $? to STATUS, without forking.
17120 as_fn_set_status ()
17121 {
17122 return $1
17123 } # as_fn_set_status
17124
17125 # as_fn_exit STATUS
17126 # -----------------
17127 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17128 as_fn_exit ()
17129 {
17130 set +e
17131 as_fn_set_status $1
17132 exit $1
17133 } # as_fn_exit
17134
17135 # as_fn_unset VAR
17136 # ---------------
17137 # Portably unset VAR.
17138 as_fn_unset ()
17139 {
17140 { eval $1=; unset $1;}
17141 }
17142 as_unset=as_fn_unset
17143 # as_fn_append VAR VALUE
17144 # ----------------------
17145 # Append the text in VALUE to the end of the definition contained in VAR. Take
17146 # advantage of any shell optimizations that allow amortized linear growth over
17147 # repeated appends, instead of the typical quadratic growth present in naive
17148 # implementations.
17149 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17150 eval 'as_fn_append ()
17151 {
17152 eval $1+=\$2
17153 }'
17154 else
17155 as_fn_append ()
17156 {
17157 eval $1=\$$1\$2
17158 }
17159 fi # as_fn_append
17160
17161 # as_fn_arith ARG...
17162 # ------------------
17163 # Perform arithmetic evaluation on the ARGs, and store the result in the
17164 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17165 # must be portable across $(()) and expr.
17166 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17167 eval 'as_fn_arith ()
17168 {
17169 as_val=$(( $* ))
17170 }'
17171 else
17172 as_fn_arith ()
17173 {
17174 as_val=`expr "$@" || test $? -eq 1`
17175 }
17176 fi # as_fn_arith
17177
17178
17179 if expr a : '\(a\)' >/dev/null 2>&1 &&
17180 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17181 as_expr=expr
17182 else
17183 as_expr=false
17184 fi
17185
17186 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17187 as_basename=basename
17188 else
17189 as_basename=false
17190 fi
17191
17192 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17193 as_dirname=dirname
17194 else
17195 as_dirname=false
17196 fi
17197
17198 as_me=`$as_basename -- "$0" ||
17199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17200 X"$0" : 'X\(//\)$' \| \
17201 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17202 $as_echo X/"$0" |
17203 sed '/^.*\/\([^/][^/]*\)\/*$/{
17204 s//\1/
17205 q
17206 }
17207 /^X\/\(\/\/\)$/{
17208 s//\1/
17209 q
17210 }
17211 /^X\/\(\/\).*/{
17212 s//\1/
17213 q
17214 }
17215 s/.*/./; q'`
17216
17217 # Avoid depending upon Character Ranges.
17218 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17221 as_cr_digits='0123456789'
17222 as_cr_alnum=$as_cr_Letters$as_cr_digits
17223
17224 ECHO_C= ECHO_N= ECHO_T=
17225 case `echo -n x` in #(((((
17226 -n*)
17227 case `echo 'xy\c'` in
17228 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17229 xy) ECHO_C='\c';;
17230 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17231 ECHO_T=' ';;
17232 esac;;
17233 *)
17234 ECHO_N='-n';;
17235 esac
17236
17237 rm -f conf$$ conf$$.exe conf$$.file
17238 if test -d conf$$.dir; then
17239 rm -f conf$$.dir/conf$$.file
17240 else
17241 rm -f conf$$.dir
17242 mkdir conf$$.dir 2>/dev/null
17243 fi
17244 if (echo >conf$$.file) 2>/dev/null; then
17245 if ln -s conf$$.file conf$$ 2>/dev/null; then
17246 as_ln_s='ln -s'
17247 # ... but there are two gotchas:
17248 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17249 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17250 # In both cases, we have to default to `cp -pR'.
17251 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17252 as_ln_s='cp -pR'
17253 elif ln conf$$.file conf$$ 2>/dev/null; then
17254 as_ln_s=ln
17255 else
17256 as_ln_s='cp -pR'
17257 fi
17258 else
17259 as_ln_s='cp -pR'
17260 fi
17261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17262 rmdir conf$$.dir 2>/dev/null
17263
17264
17265 # as_fn_mkdir_p
17266 # -------------
17267 # Create "$as_dir" as a directory, including parents if necessary.
17268 as_fn_mkdir_p ()
17269 {
17270
17271 case $as_dir in #(
17272 -*) as_dir=./$as_dir;;
17273 esac
17274 test -d "$as_dir" || eval $as_mkdir_p || {
17275 as_dirs=
17276 while :; do
17277 case $as_dir in #(
17278 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17279 *) as_qdir=$as_dir;;
17280 esac
17281 as_dirs="'$as_qdir' $as_dirs"
17282 as_dir=`$as_dirname -- "$as_dir" ||
17283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17284 X"$as_dir" : 'X\(//\)[^/]' \| \
17285 X"$as_dir" : 'X\(//\)$' \| \
17286 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17287 $as_echo X"$as_dir" |
17288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17289 s//\1/
17290 q
17291 }
17292 /^X\(\/\/\)[^/].*/{
17293 s//\1/
17294 q
17295 }
17296 /^X\(\/\/\)$/{
17297 s//\1/
17298 q
17299 }
17300 /^X\(\/\).*/{
17301 s//\1/
17302 q
17303 }
17304 s/.*/./; q'`
17305 test -d "$as_dir" && break
17306 done
17307 test -z "$as_dirs" || eval "mkdir $as_dirs"
17308 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17309
17310
17311 } # as_fn_mkdir_p
17312 if mkdir -p . 2>/dev/null; then
17313 as_mkdir_p='mkdir -p "$as_dir"'
17314 else
17315 test -d ./-p && rmdir ./-p
17316 as_mkdir_p=false
17317 fi
17318
17319
17320 # as_fn_executable_p FILE
17321 # -----------------------
17322 # Test if FILE is an executable regular file.
17323 as_fn_executable_p ()
17324 {
17325 test -f "$1" && test -x "$1"
17326 } # as_fn_executable_p
17327 as_test_x='test -x'
17328 as_executable_p=as_fn_executable_p
17329
17330 # Sed expression to map a string onto a valid CPP name.
17331 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17332
17333 # Sed expression to map a string onto a valid variable name.
17334 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17335
17336
17337 exec 6>&1
17338 ## ----------------------------------- ##
17339 ## Main body of $CONFIG_STATUS script. ##
17340 ## ----------------------------------- ##
17341 _ASEOF
17342 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17343
17344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17345 # Save the log message, to keep $0 and so on meaningful, and to
17346 # report actual input values of CONFIG_FILES etc. instead of their
17347 # values after options handling.
17348 ac_log="
17349 This file was extended by gprofng $as_me 2.38.50, which was
17350 generated by GNU Autoconf 2.69. Invocation command line was
17351
17352 CONFIG_FILES = $CONFIG_FILES
17353 CONFIG_HEADERS = $CONFIG_HEADERS
17354 CONFIG_LINKS = $CONFIG_LINKS
17355 CONFIG_COMMANDS = $CONFIG_COMMANDS
17356 $ $0 $@
17357
17358 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17359 "
17360
17361 _ACEOF
17362
17363 case $ac_config_files in *"
17364 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17365 esac
17366
17367 case $ac_config_headers in *"
17368 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17369 esac
17370
17371
17372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17373 # Files that config.status was made for.
17374 config_files="$ac_config_files"
17375 config_headers="$ac_config_headers"
17376 config_commands="$ac_config_commands"
17377
17378 _ACEOF
17379
17380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17381 ac_cs_usage="\
17382 \`$as_me' instantiates files and other configuration actions
17383 from templates according to the current configuration. Unless the files
17384 and actions are specified as TAGs, all are instantiated by default.
17385
17386 Usage: $0 [OPTION]... [TAG]...
17387
17388 -h, --help print this help, then exit
17389 -V, --version print version number and configuration settings, then exit
17390 --config print configuration, then exit
17391 -q, --quiet, --silent
17392 do not print progress messages
17393 -d, --debug don't remove temporary files
17394 --recheck update $as_me by reconfiguring in the same conditions
17395 --file=FILE[:TEMPLATE]
17396 instantiate the configuration file FILE
17397 --header=FILE[:TEMPLATE]
17398 instantiate the configuration header FILE
17399
17400 Configuration files:
17401 $config_files
17402
17403 Configuration headers:
17404 $config_headers
17405
17406 Configuration commands:
17407 $config_commands
17408
17409 Report bugs to the package provider."
17410
17411 _ACEOF
17412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17413 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17414 ac_cs_version="\\
17415 gprofng config.status 2.38.50
17416 configured by $0, generated by GNU Autoconf 2.69,
17417 with options \\"\$ac_cs_config\\"
17418
17419 Copyright (C) 2012 Free Software Foundation, Inc.
17420 This config.status script is free software; the Free Software Foundation
17421 gives unlimited permission to copy, distribute and modify it."
17422
17423 ac_pwd='$ac_pwd'
17424 srcdir='$srcdir'
17425 INSTALL='$INSTALL'
17426 MKDIR_P='$MKDIR_P'
17427 AWK='$AWK'
17428 test -n "\$AWK" || AWK=awk
17429 _ACEOF
17430
17431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17432 # The default lists apply if the user does not specify any file.
17433 ac_need_defaults=:
17434 while test $# != 0
17435 do
17436 case $1 in
17437 --*=?*)
17438 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17439 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17440 ac_shift=:
17441 ;;
17442 --*=)
17443 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17444 ac_optarg=
17445 ac_shift=:
17446 ;;
17447 *)
17448 ac_option=$1
17449 ac_optarg=$2
17450 ac_shift=shift
17451 ;;
17452 esac
17453
17454 case $ac_option in
17455 # Handling of the options.
17456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17457 ac_cs_recheck=: ;;
17458 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17459 $as_echo "$ac_cs_version"; exit ;;
17460 --config | --confi | --conf | --con | --co | --c )
17461 $as_echo "$ac_cs_config"; exit ;;
17462 --debug | --debu | --deb | --de | --d | -d )
17463 debug=: ;;
17464 --file | --fil | --fi | --f )
17465 $ac_shift
17466 case $ac_optarg in
17467 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17468 '') as_fn_error $? "missing file argument" ;;
17469 esac
17470 as_fn_append CONFIG_FILES " '$ac_optarg'"
17471 ac_need_defaults=false;;
17472 --header | --heade | --head | --hea )
17473 $ac_shift
17474 case $ac_optarg in
17475 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17476 esac
17477 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17478 ac_need_defaults=false;;
17479 --he | --h)
17480 # Conflict between --help and --header
17481 as_fn_error $? "ambiguous option: \`$1'
17482 Try \`$0 --help' for more information.";;
17483 --help | --hel | -h )
17484 $as_echo "$ac_cs_usage"; exit ;;
17485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17486 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17487 ac_cs_silent=: ;;
17488
17489 # This is an error.
17490 -*) as_fn_error $? "unrecognized option: \`$1'
17491 Try \`$0 --help' for more information." ;;
17492
17493 *) as_fn_append ac_config_targets " $1"
17494 ac_need_defaults=false ;;
17495
17496 esac
17497 shift
17498 done
17499
17500 ac_configure_extra_args=
17501
17502 if $ac_cs_silent; then
17503 exec 6>/dev/null
17504 ac_configure_extra_args="$ac_configure_extra_args --silent"
17505 fi
17506
17507 _ACEOF
17508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17509 if \$ac_cs_recheck; then
17510 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17511 shift
17512 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17513 CONFIG_SHELL='$SHELL'
17514 export CONFIG_SHELL
17515 exec "\$@"
17516 fi
17517
17518 _ACEOF
17519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17520 exec 5>>config.log
17521 {
17522 echo
17523 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17524 ## Running $as_me. ##
17525 _ASBOX
17526 $as_echo "$ac_log"
17527 } >&5
17528
17529 _ACEOF
17530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17531 #
17532 # INIT-COMMANDS
17533 #
17534 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17535
17536
17537 # The HP-UX ksh and POSIX shell print the target directory to stdout
17538 # if CDPATH is set.
17539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17540
17541 sed_quote_subst='$sed_quote_subst'
17542 double_quote_subst='$double_quote_subst'
17543 delay_variable_subst='$delay_variable_subst'
17544 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17545 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17546 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17547 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17548 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17549 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17550 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17551 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17552 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17553 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17554 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17555 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17556 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17557 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17558 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17559 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17560 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17561 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17562 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17563 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17564 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17565 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17566 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17567 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17568 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17569 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17570 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17571 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17572 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17573 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17574 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17575 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17576 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17577 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17578 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17579 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17580 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17581 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17582 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17583 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17584 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17585 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17586 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17587 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17588 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17589 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17590 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17591 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17592 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17593 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17594 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17595 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17596 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17597 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17598 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17599 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17600 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17601 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17602 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17603 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17604 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17605 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17606 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17607 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17608 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17609 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17610 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17611 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17612 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17613 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17614 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17615 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17616 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17617 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17618 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17619 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17620 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17621 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17622 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17623 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17624 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17625 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17626 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17627 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17628 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17629 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17630 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17631 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17632 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17633 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17634 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17635 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17636 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17637 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17638 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17639 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17640 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17641 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17642 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17643 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17644 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17645 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17646 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17647 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17648 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17649 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17650 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17651 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17652 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17653 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17654 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17655 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17656 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17657 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17658 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17659 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17660 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17661 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17662 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17663 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17664 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17665 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17666 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17667 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17668 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17669 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17670 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17671 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17672 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17673 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17674 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17675 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17676 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17677 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17678 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17679 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17680 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17681 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17682 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17683 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17684 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17685 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17686 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17687 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17688 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17689 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17690 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17691 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17692 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17693 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17694 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17695 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17696 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17697 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17698 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17699 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17700 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17701 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17702 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17703 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17704 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17705 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17706 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17707 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17708 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17709 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17710 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17711 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17712 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17713 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17714 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17715 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17716 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17717 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17718 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17719
17720 LTCC='$LTCC'
17721 LTCFLAGS='$LTCFLAGS'
17722 compiler='$compiler_DEFAULT'
17723
17724 # A function that is used when there is no print builtin or printf.
17725 func_fallback_echo ()
17726 {
17727 eval 'cat <<_LTECHO_EOF
17728 \$1
17729 _LTECHO_EOF'
17730 }
17731
17732 # Quote evaled strings.
17733 for var in SHELL \
17734 ECHO \
17735 SED \
17736 GREP \
17737 EGREP \
17738 FGREP \
17739 LD \
17740 NM \
17741 LN_S \
17742 lt_SP2NL \
17743 lt_NL2SP \
17744 reload_flag \
17745 OBJDUMP \
17746 deplibs_check_method \
17747 file_magic_cmd \
17748 AR \
17749 AR_FLAGS \
17750 STRIP \
17751 RANLIB \
17752 CC \
17753 CFLAGS \
17754 compiler \
17755 lt_cv_sys_global_symbol_pipe \
17756 lt_cv_sys_global_symbol_to_cdecl \
17757 lt_cv_sys_global_symbol_to_c_name_address \
17758 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17759 lt_prog_compiler_no_builtin_flag \
17760 lt_prog_compiler_wl \
17761 lt_prog_compiler_pic \
17762 lt_prog_compiler_static \
17763 lt_cv_prog_compiler_c_o \
17764 need_locks \
17765 DSYMUTIL \
17766 NMEDIT \
17767 LIPO \
17768 OTOOL \
17769 OTOOL64 \
17770 shrext_cmds \
17771 export_dynamic_flag_spec \
17772 whole_archive_flag_spec \
17773 compiler_needs_object \
17774 with_gnu_ld \
17775 allow_undefined_flag \
17776 no_undefined_flag \
17777 hardcode_libdir_flag_spec \
17778 hardcode_libdir_flag_spec_ld \
17779 hardcode_libdir_separator \
17780 fix_srcfile_path \
17781 exclude_expsyms \
17782 include_expsyms \
17783 file_list_spec \
17784 variables_saved_for_relink \
17785 libname_spec \
17786 library_names_spec \
17787 soname_spec \
17788 install_override_mode \
17789 finish_eval \
17790 old_striplib \
17791 striplib \
17792 compiler_lib_search_dirs \
17793 predep_objects \
17794 postdep_objects \
17795 predeps \
17796 postdeps \
17797 compiler_lib_search_path \
17798 LD_CXX \
17799 reload_flag_CXX \
17800 compiler_CXX \
17801 lt_prog_compiler_no_builtin_flag_CXX \
17802 lt_prog_compiler_wl_CXX \
17803 lt_prog_compiler_pic_CXX \
17804 lt_prog_compiler_static_CXX \
17805 lt_cv_prog_compiler_c_o_CXX \
17806 export_dynamic_flag_spec_CXX \
17807 whole_archive_flag_spec_CXX \
17808 compiler_needs_object_CXX \
17809 with_gnu_ld_CXX \
17810 allow_undefined_flag_CXX \
17811 no_undefined_flag_CXX \
17812 hardcode_libdir_flag_spec_CXX \
17813 hardcode_libdir_flag_spec_ld_CXX \
17814 hardcode_libdir_separator_CXX \
17815 fix_srcfile_path_CXX \
17816 exclude_expsyms_CXX \
17817 include_expsyms_CXX \
17818 file_list_spec_CXX \
17819 compiler_lib_search_dirs_CXX \
17820 predep_objects_CXX \
17821 postdep_objects_CXX \
17822 predeps_CXX \
17823 postdeps_CXX \
17824 compiler_lib_search_path_CXX; do
17825 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17826 *[\\\\\\\`\\"\\\$]*)
17827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17828 ;;
17829 *)
17830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17831 ;;
17832 esac
17833 done
17834
17835 # Double-quote double-evaled strings.
17836 for var in reload_cmds \
17837 old_postinstall_cmds \
17838 old_postuninstall_cmds \
17839 old_archive_cmds \
17840 extract_expsyms_cmds \
17841 old_archive_from_new_cmds \
17842 old_archive_from_expsyms_cmds \
17843 archive_cmds \
17844 archive_expsym_cmds \
17845 module_cmds \
17846 module_expsym_cmds \
17847 export_symbols_cmds \
17848 prelink_cmds \
17849 postinstall_cmds \
17850 postuninstall_cmds \
17851 finish_cmds \
17852 sys_lib_search_path_spec \
17853 sys_lib_dlsearch_path_spec \
17854 reload_cmds_CXX \
17855 old_archive_cmds_CXX \
17856 old_archive_from_new_cmds_CXX \
17857 old_archive_from_expsyms_cmds_CXX \
17858 archive_cmds_CXX \
17859 archive_expsym_cmds_CXX \
17860 module_cmds_CXX \
17861 module_expsym_cmds_CXX \
17862 export_symbols_cmds_CXX \
17863 prelink_cmds_CXX; do
17864 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17865 *[\\\\\\\`\\"\\\$]*)
17866 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17867 ;;
17868 *)
17869 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17870 ;;
17871 esac
17872 done
17873
17874 ac_aux_dir='$ac_aux_dir'
17875 xsi_shell='$xsi_shell'
17876 lt_shell_append='$lt_shell_append'
17877
17878 # See if we are running on zsh, and set the options which allow our
17879 # commands through without removal of \ escapes INIT.
17880 if test -n "\${ZSH_VERSION+set}" ; then
17881 setopt NO_GLOB_SUBST
17882 fi
17883
17884
17885 PACKAGE='$PACKAGE'
17886 VERSION='$VERSION'
17887 TIMESTAMP='$TIMESTAMP'
17888 RM='$RM'
17889 ofile='$ofile'
17890
17891
17892
17893
17894
17895
17896 _ACEOF
17897
17898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17899
17900 # Handling of arguments.
17901 for ac_config_target in $ac_config_targets
17902 do
17903 case $ac_config_target in
17904 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17905 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17906 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17907 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17908 "gp-display-html/Makefile") CONFIG_FILES="$CONFIG_FILES gp-display-html/Makefile" ;;
17909 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17910 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:common/config.h.in" ;;
17911
17912 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17913 esac
17914 done
17915
17916
17917 # If the user did not use the arguments to specify the items to instantiate,
17918 # then the envvar interface is used. Set only those that are not.
17919 # We use the long form for the default assignment because of an extremely
17920 # bizarre bug on SunOS 4.1.3.
17921 if $ac_need_defaults; then
17922 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17923 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17924 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17925 fi
17926
17927 # Have a temporary directory for convenience. Make it in the build tree
17928 # simply because there is no reason against having it here, and in addition,
17929 # creating and moving files from /tmp can sometimes cause problems.
17930 # Hook for its removal unless debugging.
17931 # Note that there is a small window in which the directory will not be cleaned:
17932 # after its creation but before its name has been assigned to `$tmp'.
17933 $debug ||
17934 {
17935 tmp= ac_tmp=
17936 trap 'exit_status=$?
17937 : "${ac_tmp:=$tmp}"
17938 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17939 ' 0
17940 trap 'as_fn_exit 1' 1 2 13 15
17941 }
17942 # Create a (secure) tmp directory for tmp files.
17943
17944 {
17945 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17946 test -d "$tmp"
17947 } ||
17948 {
17949 tmp=./conf$$-$RANDOM
17950 (umask 077 && mkdir "$tmp")
17951 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17952 ac_tmp=$tmp
17953
17954 # Set up the scripts for CONFIG_FILES section.
17955 # No need to generate them if there are no CONFIG_FILES.
17956 # This happens for instance with `./config.status config.h'.
17957 if test -n "$CONFIG_FILES"; then
17958
17959
17960 ac_cr=`echo X | tr X '\015'`
17961 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17962 # But we know of no other shell where ac_cr would be empty at this
17963 # point, so we can use a bashism as a fallback.
17964 if test "x$ac_cr" = x; then
17965 eval ac_cr=\$\'\\r\'
17966 fi
17967 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17968 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17969 ac_cs_awk_cr='\\r'
17970 else
17971 ac_cs_awk_cr=$ac_cr
17972 fi
17973
17974 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17975 _ACEOF
17976
17977
17978 {
17979 echo "cat >conf$$subs.awk <<_ACEOF" &&
17980 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17981 echo "_ACEOF"
17982 } >conf$$subs.sh ||
17983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17985 ac_delim='%!_!# '
17986 for ac_last_try in false false false false false :; do
17987 . ./conf$$subs.sh ||
17988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17989
17990 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17991 if test $ac_delim_n = $ac_delim_num; then
17992 break
17993 elif $ac_last_try; then
17994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17995 else
17996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17997 fi
17998 done
17999 rm -f conf$$subs.sh
18000
18001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18002 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18003 _ACEOF
18004 sed -n '
18005 h
18006 s/^/S["/; s/!.*/"]=/
18007 p
18008 g
18009 s/^[^!]*!//
18010 :repl
18011 t repl
18012 s/'"$ac_delim"'$//
18013 t delim
18014 :nl
18015 h
18016 s/\(.\{148\}\)..*/\1/
18017 t more1
18018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18019 p
18020 n
18021 b repl
18022 :more1
18023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18024 p
18025 g
18026 s/.\{148\}//
18027 t nl
18028 :delim
18029 h
18030 s/\(.\{148\}\)..*/\1/
18031 t more2
18032 s/["\\]/\\&/g; s/^/"/; s/$/"/
18033 p
18034 b
18035 :more2
18036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18037 p
18038 g
18039 s/.\{148\}//
18040 t delim
18041 ' <conf$$subs.awk | sed '
18042 /^[^""]/{
18043 N
18044 s/\n//
18045 }
18046 ' >>$CONFIG_STATUS || ac_write_fail=1
18047 rm -f conf$$subs.awk
18048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18049 _ACAWK
18050 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18051 for (key in S) S_is_set[key] = 1
18052 FS = "\a"
18053
18054 }
18055 {
18056 line = $ 0
18057 nfields = split(line, field, "@")
18058 substed = 0
18059 len = length(field[1])
18060 for (i = 2; i < nfields; i++) {
18061 key = field[i]
18062 keylen = length(key)
18063 if (S_is_set[key]) {
18064 value = S[key]
18065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18066 len += length(value) + length(field[++i])
18067 substed = 1
18068 } else
18069 len += 1 + keylen
18070 }
18071
18072 print line
18073 }
18074
18075 _ACAWK
18076 _ACEOF
18077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18078 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18079 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18080 else
18081 cat
18082 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18083 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18084 _ACEOF
18085
18086 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18087 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18088 # trailing colons and then remove the whole line if VPATH becomes empty
18089 # (actually we leave an empty line to preserve line numbers).
18090 if test "x$srcdir" = x.; then
18091 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18092 h
18093 s///
18094 s/^/:/
18095 s/[ ]*$/:/
18096 s/:\$(srcdir):/:/g
18097 s/:\${srcdir}:/:/g
18098 s/:@srcdir@:/:/g
18099 s/^:*//
18100 s/:*$//
18101 x
18102 s/\(=[ ]*\).*/\1/
18103 G
18104 s/\n//
18105 s/^[^=]*=[ ]*$//
18106 }'
18107 fi
18108
18109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18110 fi # test -n "$CONFIG_FILES"
18111
18112 # Set up the scripts for CONFIG_HEADERS section.
18113 # No need to generate them if there are no CONFIG_HEADERS.
18114 # This happens for instance with `./config.status Makefile'.
18115 if test -n "$CONFIG_HEADERS"; then
18116 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18117 BEGIN {
18118 _ACEOF
18119
18120 # Transform confdefs.h into an awk script `defines.awk', embedded as
18121 # here-document in config.status, that substitutes the proper values into
18122 # config.h.in to produce config.h.
18123
18124 # Create a delimiter string that does not exist in confdefs.h, to ease
18125 # handling of long lines.
18126 ac_delim='%!_!# '
18127 for ac_last_try in false false :; do
18128 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18129 if test -z "$ac_tt"; then
18130 break
18131 elif $ac_last_try; then
18132 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18133 else
18134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18135 fi
18136 done
18137
18138 # For the awk script, D is an array of macro values keyed by name,
18139 # likewise P contains macro parameters if any. Preserve backslash
18140 # newline sequences.
18141
18142 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18143 sed -n '
18144 s/.\{148\}/&'"$ac_delim"'/g
18145 t rset
18146 :rset
18147 s/^[ ]*#[ ]*define[ ][ ]*/ /
18148 t def
18149 d
18150 :def
18151 s/\\$//
18152 t bsnl
18153 s/["\\]/\\&/g
18154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18155 D["\1"]=" \3"/p
18156 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18157 d
18158 :bsnl
18159 s/["\\]/\\&/g
18160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18161 D["\1"]=" \3\\\\\\n"\\/p
18162 t cont
18163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18164 t cont
18165 d
18166 :cont
18167 n
18168 s/.\{148\}/&'"$ac_delim"'/g
18169 t clear
18170 :clear
18171 s/\\$//
18172 t bsnlc
18173 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18174 d
18175 :bsnlc
18176 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18177 b cont
18178 ' <confdefs.h | sed '
18179 s/'"$ac_delim"'/"\\\
18180 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18181
18182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18183 for (key in D) D_is_set[key] = 1
18184 FS = "\a"
18185 }
18186 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18187 line = \$ 0
18188 split(line, arg, " ")
18189 if (arg[1] == "#") {
18190 defundef = arg[2]
18191 mac1 = arg[3]
18192 } else {
18193 defundef = substr(arg[1], 2)
18194 mac1 = arg[2]
18195 }
18196 split(mac1, mac2, "(") #)
18197 macro = mac2[1]
18198 prefix = substr(line, 1, index(line, defundef) - 1)
18199 if (D_is_set[macro]) {
18200 # Preserve the white space surrounding the "#".
18201 print prefix "define", macro P[macro] D[macro]
18202 next
18203 } else {
18204 # Replace #undef with comments. This is necessary, for example,
18205 # in the case of _POSIX_SOURCE, which is predefined and required
18206 # on some systems where configure will not decide to define it.
18207 if (defundef == "undef") {
18208 print "/*", prefix defundef, macro, "*/"
18209 next
18210 }
18211 }
18212 }
18213 { print }
18214 _ACAWK
18215 _ACEOF
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18217 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18218 fi # test -n "$CONFIG_HEADERS"
18219
18220
18221 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18222 shift
18223 for ac_tag
18224 do
18225 case $ac_tag in
18226 :[FHLC]) ac_mode=$ac_tag; continue;;
18227 esac
18228 case $ac_mode$ac_tag in
18229 :[FHL]*:*);;
18230 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18231 :[FH]-) ac_tag=-:-;;
18232 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18233 esac
18234 ac_save_IFS=$IFS
18235 IFS=:
18236 set x $ac_tag
18237 IFS=$ac_save_IFS
18238 shift
18239 ac_file=$1
18240 shift
18241
18242 case $ac_mode in
18243 :L) ac_source=$1;;
18244 :[FH])
18245 ac_file_inputs=
18246 for ac_f
18247 do
18248 case $ac_f in
18249 -) ac_f="$ac_tmp/stdin";;
18250 *) # Look for the file first in the build tree, then in the source tree
18251 # (if the path is not absolute). The absolute path cannot be DOS-style,
18252 # because $ac_f cannot contain `:'.
18253 test -f "$ac_f" ||
18254 case $ac_f in
18255 [\\/$]*) false;;
18256 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18257 esac ||
18258 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18259 esac
18260 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18261 as_fn_append ac_file_inputs " '$ac_f'"
18262 done
18263
18264 # Let's still pretend it is `configure' which instantiates (i.e., don't
18265 # use $as_me), people would be surprised to read:
18266 # /* config.h. Generated by config.status. */
18267 configure_input='Generated from '`
18268 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18269 `' by configure.'
18270 if test x"$ac_file" != x-; then
18271 configure_input="$ac_file. $configure_input"
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18273 $as_echo "$as_me: creating $ac_file" >&6;}
18274 fi
18275 # Neutralize special characters interpreted by sed in replacement strings.
18276 case $configure_input in #(
18277 *\&* | *\|* | *\\* )
18278 ac_sed_conf_input=`$as_echo "$configure_input" |
18279 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18280 *) ac_sed_conf_input=$configure_input;;
18281 esac
18282
18283 case $ac_tag in
18284 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18286 esac
18287 ;;
18288 esac
18289
18290 ac_dir=`$as_dirname -- "$ac_file" ||
18291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18292 X"$ac_file" : 'X\(//\)[^/]' \| \
18293 X"$ac_file" : 'X\(//\)$' \| \
18294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18295 $as_echo X"$ac_file" |
18296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18297 s//\1/
18298 q
18299 }
18300 /^X\(\/\/\)[^/].*/{
18301 s//\1/
18302 q
18303 }
18304 /^X\(\/\/\)$/{
18305 s//\1/
18306 q
18307 }
18308 /^X\(\/\).*/{
18309 s//\1/
18310 q
18311 }
18312 s/.*/./; q'`
18313 as_dir="$ac_dir"; as_fn_mkdir_p
18314 ac_builddir=.
18315
18316 case "$ac_dir" in
18317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18318 *)
18319 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18320 # A ".." for each directory in $ac_dir_suffix.
18321 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18322 case $ac_top_builddir_sub in
18323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18325 esac ;;
18326 esac
18327 ac_abs_top_builddir=$ac_pwd
18328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18329 # for backward compatibility:
18330 ac_top_builddir=$ac_top_build_prefix
18331
18332 case $srcdir in
18333 .) # We are building in place.
18334 ac_srcdir=.
18335 ac_top_srcdir=$ac_top_builddir_sub
18336 ac_abs_top_srcdir=$ac_pwd ;;
18337 [\\/]* | ?:[\\/]* ) # Absolute name.
18338 ac_srcdir=$srcdir$ac_dir_suffix;
18339 ac_top_srcdir=$srcdir
18340 ac_abs_top_srcdir=$srcdir ;;
18341 *) # Relative name.
18342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18343 ac_top_srcdir=$ac_top_build_prefix$srcdir
18344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18345 esac
18346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18347
18348
18349 case $ac_mode in
18350 :F)
18351 #
18352 # CONFIG_FILE
18353 #
18354
18355 case $INSTALL in
18356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18357 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18358 esac
18359 ac_MKDIR_P=$MKDIR_P
18360 case $MKDIR_P in
18361 [\\/$]* | ?:[\\/]* ) ;;
18362 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18363 esac
18364 _ACEOF
18365
18366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18367 # If the template does not know about datarootdir, expand it.
18368 # FIXME: This hack should be removed a few years after 2.60.
18369 ac_datarootdir_hack=; ac_datarootdir_seen=
18370 ac_sed_dataroot='
18371 /datarootdir/ {
18372 p
18373 q
18374 }
18375 /@datadir@/p
18376 /@docdir@/p
18377 /@infodir@/p
18378 /@localedir@/p
18379 /@mandir@/p'
18380 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18381 *datarootdir*) ac_datarootdir_seen=yes;;
18382 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18384 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18385 _ACEOF
18386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18387 ac_datarootdir_hack='
18388 s&@datadir@&$datadir&g
18389 s&@docdir@&$docdir&g
18390 s&@infodir@&$infodir&g
18391 s&@localedir@&$localedir&g
18392 s&@mandir@&$mandir&g
18393 s&\\\${datarootdir}&$datarootdir&g' ;;
18394 esac
18395 _ACEOF
18396
18397 # Neutralize VPATH when `$srcdir' = `.'.
18398 # Shell code in configure.ac might set extrasub.
18399 # FIXME: do we really want to maintain this feature?
18400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18401 ac_sed_extra="$ac_vpsub
18402 $extrasub
18403 _ACEOF
18404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18405 :t
18406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18407 s|@configure_input@|$ac_sed_conf_input|;t t
18408 s&@top_builddir@&$ac_top_builddir_sub&;t t
18409 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18410 s&@srcdir@&$ac_srcdir&;t t
18411 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18412 s&@top_srcdir@&$ac_top_srcdir&;t t
18413 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18414 s&@builddir@&$ac_builddir&;t t
18415 s&@abs_builddir@&$ac_abs_builddir&;t t
18416 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18417 s&@INSTALL@&$ac_INSTALL&;t t
18418 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18419 $ac_datarootdir_hack
18420 "
18421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18422 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18423
18424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18425 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18427 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18429 which seems to be undefined. Please make sure it is defined" >&5
18430 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18431 which seems to be undefined. Please make sure it is defined" >&2;}
18432
18433 rm -f "$ac_tmp/stdin"
18434 case $ac_file in
18435 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18436 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18437 esac \
18438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18439 ;;
18440 :H)
18441 #
18442 # CONFIG_HEADER
18443 #
18444 if test x"$ac_file" != x-; then
18445 {
18446 $as_echo "/* $configure_input */" \
18447 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18448 } >"$ac_tmp/config.h" \
18449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18450 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18452 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18453 else
18454 rm -f "$ac_file"
18455 mv "$ac_tmp/config.h" "$ac_file" \
18456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18457 fi
18458 else
18459 $as_echo "/* $configure_input */" \
18460 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18461 || as_fn_error $? "could not create -" "$LINENO" 5
18462 fi
18463 # Compute "$ac_file"'s index in $config_headers.
18464 _am_arg="$ac_file"
18465 _am_stamp_count=1
18466 for _am_header in $config_headers :; do
18467 case $_am_header in
18468 $_am_arg | $_am_arg:* )
18469 break ;;
18470 * )
18471 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18472 esac
18473 done
18474 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18475 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18476 X"$_am_arg" : 'X\(//\)[^/]' \| \
18477 X"$_am_arg" : 'X\(//\)$' \| \
18478 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18479 $as_echo X"$_am_arg" |
18480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18481 s//\1/
18482 q
18483 }
18484 /^X\(\/\/\)[^/].*/{
18485 s//\1/
18486 q
18487 }
18488 /^X\(\/\/\)$/{
18489 s//\1/
18490 q
18491 }
18492 /^X\(\/\).*/{
18493 s//\1/
18494 q
18495 }
18496 s/.*/./; q'`/stamp-h$_am_stamp_count
18497 ;;
18498
18499 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18500 $as_echo "$as_me: executing $ac_file commands" >&6;}
18501 ;;
18502 esac
18503
18504
18505 case $ac_file$ac_mode in
18506 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18507 # Older Autoconf quotes --file arguments for eval, but not when files
18508 # are listed without --file. Let's play safe and only enable the eval
18509 # if we detect the quoting.
18510 case $CONFIG_FILES in
18511 *\'*) eval set x "$CONFIG_FILES" ;;
18512 *) set x $CONFIG_FILES ;;
18513 esac
18514 shift
18515 for mf
18516 do
18517 # Strip MF so we end up with the name of the file.
18518 mf=`echo "$mf" | sed -e 's/:.*$//'`
18519 # Check whether this is an Automake generated Makefile or not.
18520 # We used to match only the files named 'Makefile.in', but
18521 # some people rename them; so instead we look at the file content.
18522 # Grep'ing the first line is not enough: some people post-process
18523 # each Makefile.in and add a new line on top of each file to say so.
18524 # Grep'ing the whole file is not good either: AIX grep has a line
18525 # limit of 2048, but all sed's we know have understand at least 4000.
18526 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18527 dirpart=`$as_dirname -- "$mf" ||
18528 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18529 X"$mf" : 'X\(//\)[^/]' \| \
18530 X"$mf" : 'X\(//\)$' \| \
18531 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18532 $as_echo X"$mf" |
18533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18534 s//\1/
18535 q
18536 }
18537 /^X\(\/\/\)[^/].*/{
18538 s//\1/
18539 q
18540 }
18541 /^X\(\/\/\)$/{
18542 s//\1/
18543 q
18544 }
18545 /^X\(\/\).*/{
18546 s//\1/
18547 q
18548 }
18549 s/.*/./; q'`
18550 else
18551 continue
18552 fi
18553 # Extract the definition of DEPDIR, am__include, and am__quote
18554 # from the Makefile without running 'make'.
18555 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18556 test -z "$DEPDIR" && continue
18557 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18558 test -z "$am__include" && continue
18559 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18560 # Find all dependency output files, they are included files with
18561 # $(DEPDIR) in their names. We invoke sed twice because it is the
18562 # simplest approach to changing $(DEPDIR) to its actual value in the
18563 # expansion.
18564 for file in `sed -n "
18565 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18566 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18567 # Make sure the directory exists.
18568 test -f "$dirpart/$file" && continue
18569 fdir=`$as_dirname -- "$file" ||
18570 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18571 X"$file" : 'X\(//\)[^/]' \| \
18572 X"$file" : 'X\(//\)$' \| \
18573 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18574 $as_echo X"$file" |
18575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18576 s//\1/
18577 q
18578 }
18579 /^X\(\/\/\)[^/].*/{
18580 s//\1/
18581 q
18582 }
18583 /^X\(\/\/\)$/{
18584 s//\1/
18585 q
18586 }
18587 /^X\(\/\).*/{
18588 s//\1/
18589 q
18590 }
18591 s/.*/./; q'`
18592 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18593 # echo "creating $dirpart/$file"
18594 echo '# dummy' > "$dirpart/$file"
18595 done
18596 done
18597 }
18598 ;;
18599 "libtool":C)
18600
18601 # See if we are running on zsh, and set the options which allow our
18602 # commands through without removal of \ escapes.
18603 if test -n "${ZSH_VERSION+set}" ; then
18604 setopt NO_GLOB_SUBST
18605 fi
18606
18607 cfgfile="${ofile}T"
18608 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18609 $RM "$cfgfile"
18610
18611 cat <<_LT_EOF >> "$cfgfile"
18612 #! $SHELL
18613
18614 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18615 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18617 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18618 #
18619 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18620 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18621 # Written by Gordon Matzigkeit, 1996
18622 #
18623 # This file is part of GNU Libtool.
18624 #
18625 # GNU Libtool is free software; you can redistribute it and/or
18626 # modify it under the terms of the GNU General Public License as
18627 # published by the Free Software Foundation; either version 2 of
18628 # the License, or (at your option) any later version.
18629 #
18630 # As a special exception to the GNU General Public License,
18631 # if you distribute this file as part of a program or library that
18632 # is built using GNU Libtool, you may include this file under the
18633 # same distribution terms that you use for the rest of that program.
18634 #
18635 # GNU Libtool is distributed in the hope that it will be useful,
18636 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18637 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18638 # GNU General Public License for more details.
18639 #
18640 # You should have received a copy of the GNU General Public License
18641 # along with GNU Libtool; see the file COPYING. If not, a copy
18642 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18643 # obtained by writing to the Free Software Foundation, Inc.,
18644 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18645
18646
18647 # The names of the tagged configurations supported by this script.
18648 available_tags="CXX "
18649
18650 # ### BEGIN LIBTOOL CONFIG
18651
18652 # Whether or not to build shared libraries.
18653 build_libtool_libs=$enable_shared
18654
18655 # Which release of libtool.m4 was used?
18656 macro_version=$macro_version
18657 macro_revision=$macro_revision
18658
18659 # Whether or not to build static libraries.
18660 build_old_libs=$enable_static
18661
18662 # What type of objects to build.
18663 pic_mode=$pic_mode
18664
18665 # Whether or not to optimize for fast installation.
18666 fast_install=$enable_fast_install
18667
18668 # Shell to use when invoking shell scripts.
18669 SHELL=$lt_SHELL
18670
18671 # An echo program that protects backslashes.
18672 ECHO=$lt_ECHO
18673
18674 # The host system.
18675 host_alias=$host_alias
18676 host=$host
18677 host_os=$host_os
18678
18679 # The build system.
18680 build_alias=$build_alias
18681 build=$build
18682 build_os=$build_os
18683
18684 # A sed program that does not truncate output.
18685 SED=$lt_SED
18686
18687 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18688 Xsed="\$SED -e 1s/^X//"
18689
18690 # A grep program that handles long lines.
18691 GREP=$lt_GREP
18692
18693 # An ERE matcher.
18694 EGREP=$lt_EGREP
18695
18696 # A literal string matcher.
18697 FGREP=$lt_FGREP
18698
18699 # A BSD- or MS-compatible name lister.
18700 NM=$lt_NM
18701
18702 # Whether we need soft or hard links.
18703 LN_S=$lt_LN_S
18704
18705 # What is the maximum length of a command?
18706 max_cmd_len=$max_cmd_len
18707
18708 # Object file suffix (normally "o").
18709 objext=$ac_objext
18710
18711 # Executable file suffix (normally "").
18712 exeext=$exeext
18713
18714 # whether the shell understands "unset".
18715 lt_unset=$lt_unset
18716
18717 # turn spaces into newlines.
18718 SP2NL=$lt_lt_SP2NL
18719
18720 # turn newlines into spaces.
18721 NL2SP=$lt_lt_NL2SP
18722
18723 # An object symbol dumper.
18724 OBJDUMP=$lt_OBJDUMP
18725
18726 # Method to check whether dependent libraries are shared objects.
18727 deplibs_check_method=$lt_deplibs_check_method
18728
18729 # Command to use when deplibs_check_method == "file_magic".
18730 file_magic_cmd=$lt_file_magic_cmd
18731
18732 # The archiver.
18733 AR=$lt_AR
18734 AR_FLAGS=$lt_AR_FLAGS
18735
18736 # A symbol stripping program.
18737 STRIP=$lt_STRIP
18738
18739 # Commands used to install an old-style archive.
18740 RANLIB=$lt_RANLIB
18741 old_postinstall_cmds=$lt_old_postinstall_cmds
18742 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18743
18744 # Whether to use a lock for old archive extraction.
18745 lock_old_archive_extraction=$lock_old_archive_extraction
18746
18747 # A C compiler.
18748 LTCC=$lt_CC
18749
18750 # LTCC compiler flags.
18751 LTCFLAGS=$lt_CFLAGS
18752
18753 # Take the output of nm and produce a listing of raw symbols and C names.
18754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18755
18756 # Transform the output of nm in a proper C declaration.
18757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18758
18759 # Transform the output of nm in a C name address pair.
18760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18761
18762 # Transform the output of nm in a C name address pair when lib prefix is needed.
18763 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18764
18765 # The name of the directory that contains temporary libtool files.
18766 objdir=$objdir
18767
18768 # Used to examine libraries when file_magic_cmd begins with "file".
18769 MAGIC_CMD=$MAGIC_CMD
18770
18771 # Must we lock files when doing compilation?
18772 need_locks=$lt_need_locks
18773
18774 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18775 DSYMUTIL=$lt_DSYMUTIL
18776
18777 # Tool to change global to local symbols on Mac OS X.
18778 NMEDIT=$lt_NMEDIT
18779
18780 # Tool to manipulate fat objects and archives on Mac OS X.
18781 LIPO=$lt_LIPO
18782
18783 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18784 OTOOL=$lt_OTOOL
18785
18786 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18787 OTOOL64=$lt_OTOOL64
18788
18789 # Old archive suffix (normally "a").
18790 libext=$libext
18791
18792 # Shared library suffix (normally ".so").
18793 shrext_cmds=$lt_shrext_cmds
18794
18795 # The commands to extract the exported symbol list from a shared archive.
18796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18797
18798 # Variables whose values should be saved in libtool wrapper scripts and
18799 # restored at link time.
18800 variables_saved_for_relink=$lt_variables_saved_for_relink
18801
18802 # Do we need the "lib" prefix for modules?
18803 need_lib_prefix=$need_lib_prefix
18804
18805 # Do we need a version for libraries?
18806 need_version=$need_version
18807
18808 # Library versioning type.
18809 version_type=$version_type
18810
18811 # Shared library runtime path variable.
18812 runpath_var=$runpath_var
18813
18814 # Shared library path variable.
18815 shlibpath_var=$shlibpath_var
18816
18817 # Is shlibpath searched before the hard-coded library search path?
18818 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18819
18820 # Format of library name prefix.
18821 libname_spec=$lt_libname_spec
18822
18823 # List of archive names. First name is the real one, the rest are links.
18824 # The last name is the one that the linker finds with -lNAME
18825 library_names_spec=$lt_library_names_spec
18826
18827 # The coded name of the library, if different from the real name.
18828 soname_spec=$lt_soname_spec
18829
18830 # Permission mode override for installation of shared libraries.
18831 install_override_mode=$lt_install_override_mode
18832
18833 # Command to use after installation of a shared archive.
18834 postinstall_cmds=$lt_postinstall_cmds
18835
18836 # Command to use after uninstallation of a shared archive.
18837 postuninstall_cmds=$lt_postuninstall_cmds
18838
18839 # Commands used to finish a libtool library installation in a directory.
18840 finish_cmds=$lt_finish_cmds
18841
18842 # As "finish_cmds", except a single script fragment to be evaled but
18843 # not shown.
18844 finish_eval=$lt_finish_eval
18845
18846 # Whether we should hardcode library paths into libraries.
18847 hardcode_into_libs=$hardcode_into_libs
18848
18849 # Compile-time system search path for libraries.
18850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18851
18852 # Run-time system search path for libraries.
18853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18854
18855 # Whether dlopen is supported.
18856 dlopen_support=$enable_dlopen
18857
18858 # Whether dlopen of programs is supported.
18859 dlopen_self=$enable_dlopen_self
18860
18861 # Whether dlopen of statically linked programs is supported.
18862 dlopen_self_static=$enable_dlopen_self_static
18863
18864 # Commands to strip libraries.
18865 old_striplib=$lt_old_striplib
18866 striplib=$lt_striplib
18867
18868
18869 # The linker used to build libraries.
18870 LD=$lt_LD
18871
18872 # How to create reloadable object files.
18873 reload_flag=$lt_reload_flag
18874 reload_cmds=$lt_reload_cmds
18875
18876 # Commands used to build an old-style archive.
18877 old_archive_cmds=$lt_old_archive_cmds
18878
18879 # A language specific compiler.
18880 CC=$lt_compiler
18881
18882 # Is the compiler the GNU compiler?
18883 with_gcc=$GCC
18884
18885 # Compiler flag to turn off builtin functions.
18886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18887
18888 # How to pass a linker flag through the compiler.
18889 wl=$lt_lt_prog_compiler_wl
18890
18891 # Additional compiler flags for building library objects.
18892 pic_flag=$lt_lt_prog_compiler_pic
18893
18894 # Compiler flag to prevent dynamic linking.
18895 link_static_flag=$lt_lt_prog_compiler_static
18896
18897 # Does compiler simultaneously support -c and -o options?
18898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18899
18900 # Whether or not to add -lc for building shared libraries.
18901 build_libtool_need_lc=$archive_cmds_need_lc
18902
18903 # Whether or not to disallow shared libs when runtime libs are static.
18904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18905
18906 # Compiler flag to allow reflexive dlopens.
18907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18908
18909 # Compiler flag to generate shared objects directly from archives.
18910 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18911
18912 # Whether the compiler copes with passing no objects directly.
18913 compiler_needs_object=$lt_compiler_needs_object
18914
18915 # Create an old-style archive from a shared archive.
18916 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18917
18918 # Create a temporary old-style archive to link instead of a shared archive.
18919 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18920
18921 # Commands used to build a shared archive.
18922 archive_cmds=$lt_archive_cmds
18923 archive_expsym_cmds=$lt_archive_expsym_cmds
18924
18925 # Commands used to build a loadable module if different from building
18926 # a shared archive.
18927 module_cmds=$lt_module_cmds
18928 module_expsym_cmds=$lt_module_expsym_cmds
18929
18930 # Whether we are building with GNU ld or not.
18931 with_gnu_ld=$lt_with_gnu_ld
18932
18933 # Flag that allows shared libraries with undefined symbols to be built.
18934 allow_undefined_flag=$lt_allow_undefined_flag
18935
18936 # Flag that enforces no undefined symbols.
18937 no_undefined_flag=$lt_no_undefined_flag
18938
18939 # Flag to hardcode \$libdir into a binary during linking.
18940 # This must work even if \$libdir does not exist
18941 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18942
18943 # If ld is used when linking, flag to hardcode \$libdir into a binary
18944 # during linking. This must work even if \$libdir does not exist.
18945 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18946
18947 # Whether we need a single "-rpath" flag with a separated argument.
18948 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18949
18950 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18951 # DIR into the resulting binary.
18952 hardcode_direct=$hardcode_direct
18953
18954 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18955 # DIR into the resulting binary and the resulting library dependency is
18956 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18957 # library is relocated.
18958 hardcode_direct_absolute=$hardcode_direct_absolute
18959
18960 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18961 # into the resulting binary.
18962 hardcode_minus_L=$hardcode_minus_L
18963
18964 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18965 # into the resulting binary.
18966 hardcode_shlibpath_var=$hardcode_shlibpath_var
18967
18968 # Set to "yes" if building a shared library automatically hardcodes DIR
18969 # into the library and all subsequent libraries and executables linked
18970 # against it.
18971 hardcode_automatic=$hardcode_automatic
18972
18973 # Set to yes if linker adds runtime paths of dependent libraries
18974 # to runtime path list.
18975 inherit_rpath=$inherit_rpath
18976
18977 # Whether libtool must link a program against all its dependency libraries.
18978 link_all_deplibs=$link_all_deplibs
18979
18980 # Fix the shell variable \$srcfile for the compiler.
18981 fix_srcfile_path=$lt_fix_srcfile_path
18982
18983 # Set to "yes" if exported symbols are required.
18984 always_export_symbols=$always_export_symbols
18985
18986 # The commands to list exported symbols.
18987 export_symbols_cmds=$lt_export_symbols_cmds
18988
18989 # Symbols that should not be listed in the preloaded symbols.
18990 exclude_expsyms=$lt_exclude_expsyms
18991
18992 # Symbols that must always be exported.
18993 include_expsyms=$lt_include_expsyms
18994
18995 # Commands necessary for linking programs (against libraries) with templates.
18996 prelink_cmds=$lt_prelink_cmds
18997
18998 # Specify filename containing input files.
18999 file_list_spec=$lt_file_list_spec
19000
19001 # How to hardcode a shared library path into an executable.
19002 hardcode_action=$hardcode_action
19003
19004 # The directories searched by this compiler when creating a shared library.
19005 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19006
19007 # Dependencies to place before and after the objects being linked to
19008 # create a shared library.
19009 predep_objects=$lt_predep_objects
19010 postdep_objects=$lt_postdep_objects
19011 predeps=$lt_predeps
19012 postdeps=$lt_postdeps
19013
19014 # The library search path used internally by the compiler when linking
19015 # a shared library.
19016 compiler_lib_search_path=$lt_compiler_lib_search_path
19017
19018 # ### END LIBTOOL CONFIG
19019
19020 _LT_EOF
19021
19022 case $host_os in
19023 aix3*)
19024 cat <<\_LT_EOF >> "$cfgfile"
19025 # AIX sometimes has problems with the GCC collect2 program. For some
19026 # reason, if we set the COLLECT_NAMES environment variable, the problems
19027 # vanish in a puff of smoke.
19028 if test "X${COLLECT_NAMES+set}" != Xset; then
19029 COLLECT_NAMES=
19030 export COLLECT_NAMES
19031 fi
19032 _LT_EOF
19033 ;;
19034 esac
19035
19036
19037 ltmain="$ac_aux_dir/ltmain.sh"
19038
19039
19040 # We use sed instead of cat because bash on DJGPP gets confused if
19041 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19042 # text mode, it properly converts lines to CR/LF. This bash problem
19043 # is reportedly fixed, but why not run on old versions too?
19044 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19045 || (rm -f "$cfgfile"; exit 1)
19046
19047 case $xsi_shell in
19048 yes)
19049 cat << \_LT_EOF >> "$cfgfile"
19050
19051 # func_dirname file append nondir_replacement
19052 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19053 # otherwise set result to NONDIR_REPLACEMENT.
19054 func_dirname ()
19055 {
19056 case ${1} in
19057 */*) func_dirname_result="${1%/*}${2}" ;;
19058 * ) func_dirname_result="${3}" ;;
19059 esac
19060 }
19061
19062 # func_basename file
19063 func_basename ()
19064 {
19065 func_basename_result="${1##*/}"
19066 }
19067
19068 # func_dirname_and_basename file append nondir_replacement
19069 # perform func_basename and func_dirname in a single function
19070 # call:
19071 # dirname: Compute the dirname of FILE. If nonempty,
19072 # add APPEND to the result, otherwise set result
19073 # to NONDIR_REPLACEMENT.
19074 # value returned in "$func_dirname_result"
19075 # basename: Compute filename of FILE.
19076 # value retuned in "$func_basename_result"
19077 # Implementation must be kept synchronized with func_dirname
19078 # and func_basename. For efficiency, we do not delegate to
19079 # those functions but instead duplicate the functionality here.
19080 func_dirname_and_basename ()
19081 {
19082 case ${1} in
19083 */*) func_dirname_result="${1%/*}${2}" ;;
19084 * ) func_dirname_result="${3}" ;;
19085 esac
19086 func_basename_result="${1##*/}"
19087 }
19088
19089 # func_stripname prefix suffix name
19090 # strip PREFIX and SUFFIX off of NAME.
19091 # PREFIX and SUFFIX must not contain globbing or regex special
19092 # characters, hashes, percent signs, but SUFFIX may contain a leading
19093 # dot (in which case that matches only a dot).
19094 func_stripname ()
19095 {
19096 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19097 # positional parameters, so assign one to ordinary parameter first.
19098 func_stripname_result=${3}
19099 func_stripname_result=${func_stripname_result#"${1}"}
19100 func_stripname_result=${func_stripname_result%"${2}"}
19101 }
19102
19103 # func_opt_split
19104 func_opt_split ()
19105 {
19106 func_opt_split_opt=${1%%=*}
19107 func_opt_split_arg=${1#*=}
19108 }
19109
19110 # func_lo2o object
19111 func_lo2o ()
19112 {
19113 case ${1} in
19114 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19115 *) func_lo2o_result=${1} ;;
19116 esac
19117 }
19118
19119 # func_xform libobj-or-source
19120 func_xform ()
19121 {
19122 func_xform_result=${1%.*}.lo
19123 }
19124
19125 # func_arith arithmetic-term...
19126 func_arith ()
19127 {
19128 func_arith_result=$(( $* ))
19129 }
19130
19131 # func_len string
19132 # STRING may not start with a hyphen.
19133 func_len ()
19134 {
19135 func_len_result=${#1}
19136 }
19137
19138 _LT_EOF
19139 ;;
19140 *) # Bourne compatible functions.
19141 cat << \_LT_EOF >> "$cfgfile"
19142
19143 # func_dirname file append nondir_replacement
19144 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19145 # otherwise set result to NONDIR_REPLACEMENT.
19146 func_dirname ()
19147 {
19148 # Extract subdirectory from the argument.
19149 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19150 if test "X$func_dirname_result" = "X${1}"; then
19151 func_dirname_result="${3}"
19152 else
19153 func_dirname_result="$func_dirname_result${2}"
19154 fi
19155 }
19156
19157 # func_basename file
19158 func_basename ()
19159 {
19160 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19161 }
19162
19163
19164 # func_stripname prefix suffix name
19165 # strip PREFIX and SUFFIX off of NAME.
19166 # PREFIX and SUFFIX must not contain globbing or regex special
19167 # characters, hashes, percent signs, but SUFFIX may contain a leading
19168 # dot (in which case that matches only a dot).
19169 # func_strip_suffix prefix name
19170 func_stripname ()
19171 {
19172 case ${2} in
19173 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19174 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19175 esac
19176 }
19177
19178 # sed scripts:
19179 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19180 my_sed_long_arg='1s/^-[^=]*=//'
19181
19182 # func_opt_split
19183 func_opt_split ()
19184 {
19185 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19186 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19187 }
19188
19189 # func_lo2o object
19190 func_lo2o ()
19191 {
19192 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19193 }
19194
19195 # func_xform libobj-or-source
19196 func_xform ()
19197 {
19198 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19199 }
19200
19201 # func_arith arithmetic-term...
19202 func_arith ()
19203 {
19204 func_arith_result=`expr "$@"`
19205 }
19206
19207 # func_len string
19208 # STRING may not start with a hyphen.
19209 func_len ()
19210 {
19211 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19212 }
19213
19214 _LT_EOF
19215 esac
19216
19217 case $lt_shell_append in
19218 yes)
19219 cat << \_LT_EOF >> "$cfgfile"
19220
19221 # func_append var value
19222 # Append VALUE to the end of shell variable VAR.
19223 func_append ()
19224 {
19225 eval "$1+=\$2"
19226 }
19227 _LT_EOF
19228 ;;
19229 *)
19230 cat << \_LT_EOF >> "$cfgfile"
19231
19232 # func_append var value
19233 # Append VALUE to the end of shell variable VAR.
19234 func_append ()
19235 {
19236 eval "$1=\$$1\$2"
19237 }
19238
19239 _LT_EOF
19240 ;;
19241 esac
19242
19243
19244 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19245 || (rm -f "$cfgfile"; exit 1)
19246
19247 mv -f "$cfgfile" "$ofile" ||
19248 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19249 chmod +x "$ofile"
19250
19251
19252 cat <<_LT_EOF >> "$ofile"
19253
19254 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19255
19256 # The linker used to build libraries.
19257 LD=$lt_LD_CXX
19258
19259 # How to create reloadable object files.
19260 reload_flag=$lt_reload_flag_CXX
19261 reload_cmds=$lt_reload_cmds_CXX
19262
19263 # Commands used to build an old-style archive.
19264 old_archive_cmds=$lt_old_archive_cmds_CXX
19265
19266 # A language specific compiler.
19267 CC=$lt_compiler_CXX
19268
19269 # Is the compiler the GNU compiler?
19270 with_gcc=$GCC_CXX
19271
19272 # Compiler flag to turn off builtin functions.
19273 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19274
19275 # How to pass a linker flag through the compiler.
19276 wl=$lt_lt_prog_compiler_wl_CXX
19277
19278 # Additional compiler flags for building library objects.
19279 pic_flag=$lt_lt_prog_compiler_pic_CXX
19280
19281 # Compiler flag to prevent dynamic linking.
19282 link_static_flag=$lt_lt_prog_compiler_static_CXX
19283
19284 # Does compiler simultaneously support -c and -o options?
19285 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19286
19287 # Whether or not to add -lc for building shared libraries.
19288 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19289
19290 # Whether or not to disallow shared libs when runtime libs are static.
19291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19292
19293 # Compiler flag to allow reflexive dlopens.
19294 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19295
19296 # Compiler flag to generate shared objects directly from archives.
19297 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19298
19299 # Whether the compiler copes with passing no objects directly.
19300 compiler_needs_object=$lt_compiler_needs_object_CXX
19301
19302 # Create an old-style archive from a shared archive.
19303 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19304
19305 # Create a temporary old-style archive to link instead of a shared archive.
19306 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19307
19308 # Commands used to build a shared archive.
19309 archive_cmds=$lt_archive_cmds_CXX
19310 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19311
19312 # Commands used to build a loadable module if different from building
19313 # a shared archive.
19314 module_cmds=$lt_module_cmds_CXX
19315 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19316
19317 # Whether we are building with GNU ld or not.
19318 with_gnu_ld=$lt_with_gnu_ld_CXX
19319
19320 # Flag that allows shared libraries with undefined symbols to be built.
19321 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19322
19323 # Flag that enforces no undefined symbols.
19324 no_undefined_flag=$lt_no_undefined_flag_CXX
19325
19326 # Flag to hardcode \$libdir into a binary during linking.
19327 # This must work even if \$libdir does not exist
19328 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19329
19330 # If ld is used when linking, flag to hardcode \$libdir into a binary
19331 # during linking. This must work even if \$libdir does not exist.
19332 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19333
19334 # Whether we need a single "-rpath" flag with a separated argument.
19335 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19336
19337 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19338 # DIR into the resulting binary.
19339 hardcode_direct=$hardcode_direct_CXX
19340
19341 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19342 # DIR into the resulting binary and the resulting library dependency is
19343 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19344 # library is relocated.
19345 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19346
19347 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19348 # into the resulting binary.
19349 hardcode_minus_L=$hardcode_minus_L_CXX
19350
19351 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19352 # into the resulting binary.
19353 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19354
19355 # Set to "yes" if building a shared library automatically hardcodes DIR
19356 # into the library and all subsequent libraries and executables linked
19357 # against it.
19358 hardcode_automatic=$hardcode_automatic_CXX
19359
19360 # Set to yes if linker adds runtime paths of dependent libraries
19361 # to runtime path list.
19362 inherit_rpath=$inherit_rpath_CXX
19363
19364 # Whether libtool must link a program against all its dependency libraries.
19365 link_all_deplibs=$link_all_deplibs_CXX
19366
19367 # Fix the shell variable \$srcfile for the compiler.
19368 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19369
19370 # Set to "yes" if exported symbols are required.
19371 always_export_symbols=$always_export_symbols_CXX
19372
19373 # The commands to list exported symbols.
19374 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19375
19376 # Symbols that should not be listed in the preloaded symbols.
19377 exclude_expsyms=$lt_exclude_expsyms_CXX
19378
19379 # Symbols that must always be exported.
19380 include_expsyms=$lt_include_expsyms_CXX
19381
19382 # Commands necessary for linking programs (against libraries) with templates.
19383 prelink_cmds=$lt_prelink_cmds_CXX
19384
19385 # Specify filename containing input files.
19386 file_list_spec=$lt_file_list_spec_CXX
19387
19388 # How to hardcode a shared library path into an executable.
19389 hardcode_action=$hardcode_action_CXX
19390
19391 # The directories searched by this compiler when creating a shared library.
19392 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19393
19394 # Dependencies to place before and after the objects being linked to
19395 # create a shared library.
19396 predep_objects=$lt_predep_objects_CXX
19397 postdep_objects=$lt_postdep_objects_CXX
19398 predeps=$lt_predeps_CXX
19399 postdeps=$lt_postdeps_CXX
19400
19401 # The library search path used internally by the compiler when linking
19402 # a shared library.
19403 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19404
19405 # ### END LIBTOOL TAG CONFIG: CXX
19406 _LT_EOF
19407
19408 ;;
19409
19410 esac
19411 done # for ac_tag
19412
19413
19414 as_fn_exit 0
19415 _ACEOF
19416 ac_clean_files=$ac_clean_files_save
19417
19418 test $ac_write_fail = 0 ||
19419 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19420
19421
19422 # configure is writing to config.log, and then calls config.status.
19423 # config.status does its own redirection, appending to config.log.
19424 # Unfortunately, on DOS this fails, as config.log is still kept open
19425 # by configure, so config.status won't be able to write to it; its
19426 # output is simply discarded. So we exec the FD to /dev/null,
19427 # effectively closing config.log, so it can be properly (re)opened and
19428 # appended to by config.status. When coming back to configure, we
19429 # need to make the FD available again.
19430 if test "$no_create" != yes; then
19431 ac_cs_success=:
19432 ac_config_status_args=
19433 test "$silent" = yes &&
19434 ac_config_status_args="$ac_config_status_args --quiet"
19435 exec 5>/dev/null
19436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19437 exec 5>>config.log
19438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19439 # would make configure fail if this is the last instruction.
19440 $ac_cs_success || as_fn_exit 1
19441 fi
19442
19443 #
19444 # CONFIG_SUBDIRS section.
19445 #
19446 if test "$no_recursion" != yes; then
19447
19448 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19449 # so they do not pile up.
19450 ac_sub_configure_args=
19451 ac_prev=
19452 eval "set x $ac_configure_args"
19453 shift
19454 for ac_arg
19455 do
19456 if test -n "$ac_prev"; then
19457 ac_prev=
19458 continue
19459 fi
19460 case $ac_arg in
19461 -cache-file | --cache-file | --cache-fil | --cache-fi \
19462 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19463 ac_prev=cache_file ;;
19464 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19465 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19466 | --c=*)
19467 ;;
19468 --config-cache | -C)
19469 ;;
19470 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19471 ac_prev=srcdir ;;
19472 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19473 ;;
19474 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19475 ac_prev=prefix ;;
19476 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19477 ;;
19478 --disable-option-checking)
19479 ;;
19480 *)
19481 case $ac_arg in
19482 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19483 esac
19484 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19485 esac
19486 done
19487
19488 # Always prepend --prefix to ensure using the same prefix
19489 # in subdir configurations.
19490 ac_arg="--prefix=$prefix"
19491 case $ac_arg in
19492 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19493 esac
19494 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19495
19496 # Pass --silent
19497 if test "$silent" = yes; then
19498 ac_sub_configure_args="--silent $ac_sub_configure_args"
19499 fi
19500
19501 # Always prepend --disable-option-checking to silence warnings, since
19502 # different subdirs can have different --enable and --with options.
19503 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19504
19505 ac_popdir=`pwd`
19506 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19507
19508 # Do not complain, so a configure script can configure whichever
19509 # parts of a large source tree are present.
19510 test -d "$srcdir/$ac_dir" || continue
19511
19512 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19513 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19514 $as_echo "$ac_msg" >&6
19515 as_dir="$ac_dir"; as_fn_mkdir_p
19516 ac_builddir=.
19517
19518 case "$ac_dir" in
19519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19520 *)
19521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19522 # A ".." for each directory in $ac_dir_suffix.
19523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19524 case $ac_top_builddir_sub in
19525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19527 esac ;;
19528 esac
19529 ac_abs_top_builddir=$ac_pwd
19530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19531 # for backward compatibility:
19532 ac_top_builddir=$ac_top_build_prefix
19533
19534 case $srcdir in
19535 .) # We are building in place.
19536 ac_srcdir=.
19537 ac_top_srcdir=$ac_top_builddir_sub
19538 ac_abs_top_srcdir=$ac_pwd ;;
19539 [\\/]* | ?:[\\/]* ) # Absolute name.
19540 ac_srcdir=$srcdir$ac_dir_suffix;
19541 ac_top_srcdir=$srcdir
19542 ac_abs_top_srcdir=$srcdir ;;
19543 *) # Relative name.
19544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19545 ac_top_srcdir=$ac_top_build_prefix$srcdir
19546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19547 esac
19548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19549
19550
19551 cd "$ac_dir"
19552
19553 # Check for guested configure; otherwise get Cygnus style configure.
19554 if test -f "$ac_srcdir/configure.gnu"; then
19555 ac_sub_configure=$ac_srcdir/configure.gnu
19556 elif test -f "$ac_srcdir/configure"; then
19557 ac_sub_configure=$ac_srcdir/configure
19558 elif test -f "$ac_srcdir/configure.in"; then
19559 # This should be Cygnus configure.
19560 ac_sub_configure=$ac_aux_dir/configure
19561 else
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19564 ac_sub_configure=
19565 fi
19566
19567 # The recursion is here.
19568 if test -n "$ac_sub_configure"; then
19569 # Make the cache file name correct relative to the subdirectory.
19570 case $cache_file in
19571 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19572 *) # Relative name.
19573 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19574 esac
19575
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19577 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19578 # The eval makes quoting arguments work.
19579 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19580 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19581 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19582 fi
19583
19584 cd "$ac_popdir"
19585 done
19586 fi
19587 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19589 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19590 fi
19591
19592