gprofng: Add a configure test for clock_gettime and a use of the test in getthrtime.c
[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 GPROFNG_LIBDIR
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 JAVA
649 JAVAC
650 PTHREAD_CFLAGS
651 PTHREAD_LIBS
652 PTHREAD_CC
653 ax_pthread_config
654 RUN_TESTS_FALSE
655 RUN_TESTS_TRUE
656 subdirs
657 BUILD_SRC_FALSE
658 BUILD_SRC_TRUE
659 BUILD_COLLECTOR_FALSE
660 BUILD_COLLECTOR_TRUE
661 gprofng_cflags
662 WERROR
663 GPROFNG_LIBADD
664 CXXCPP
665 OTOOL64
666 OTOOL
667 LIPO
668 NMEDIT
669 DSYMUTIL
670 OBJDUMP
671 LN_S
672 NM
673 ac_ct_DUMPBIN
674 DUMPBIN
675 LD
676 FGREP
677 SED
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 LIBTOOL
687 ac_ct_AR
688 AR
689 RANLIB
690 am__fastdepCXX_FALSE
691 am__fastdepCXX_TRUE
692 CXXDEPMODE
693 ac_ct_CXX
694 CXXFLAGS
695 CXX
696 EGREP
697 GREP
698 CPP
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 MAINT
717 MAINTAINER_MODE_FALSE
718 MAINTAINER_MODE_TRUE
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_silent_rules
788 enable_maintainer_mode
789 enable_dependency_tracking
790 enable_shared
791 enable_static
792 with_pic
793 enable_fast_install
794 with_gnu_ld
795 enable_libtool_lock
796 enable_werror_always
797 enable_gprofng_tools
798 with_jdk
799 enable_gprofng_debug
800 '
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 CPP
810 CXX
811 CXXFLAGS
812 CCC
813 CXXCPP'
814 ac_subdirs_all='libcollector'
815
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
874
875 case $ac_option in
876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *=) ac_optarg= ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
911
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
944
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
980
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
985
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1015
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1089
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 ;;
1220
1221 esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1242 do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272 fi
1273
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277 test "$silent" = yes && exec 6>/dev/null
1278
1279
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1318 fi
1319 else
1320 ac_srcdir_defaulted=no
1321 fi
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 fi
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 \`configure' configures gprofng 2.38.50 to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1379
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1408
1409 cat <<\_ACEOF
1410
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of gprofng 2.38.50:";;
1425 esac
1426 cat <<\_ACEOF
1427
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-silent-rules less verbose build output (undo: "make V=1")
1433 --disable-silent-rules verbose build output (undo: "make V=0")
1434 --enable-maintainer-mode
1435 enable make rules and dependencies not useful (and
1436 sometimes confusing) to the casual installer
1437 --enable-dependency-tracking
1438 do not reject slow dependency extractors
1439 --disable-dependency-tracking
1440 speeds up one-time build
1441 --enable-shared[=PKGS] build shared libraries [default=no]
1442 --enable-static[=PKGS] build static libraries [default=yes]
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1446 --enable-werror-always enable -Werror despite compiler version
1447 --disable-gprofng-tools do not build gprofng/src directory
1448 --enable-gprofng-debug Enable debugging output [default=no]
1449
1450 Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-pic try to use only PIC/non-PIC objects [default=use
1454 both]
1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1456 --with-jdk=PATH specify prefix directory for installed JDK.
1457
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CPP C preprocessor
1467 CXX C++ compiler command
1468 CXXFLAGS C++ compiler flags
1469 CXXCPP C++ preprocessor
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to the package provider.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 gprofng configure 2.38.50
1538 generated by GNU Autoconf 2.69
1539
1540 Copyright (C) 2012 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1545 fi
1546
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1550
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582 ac_retval=1
1583 fi
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_compile
1588
1589 # ac_fn_c_try_cpp LINENO
1590 # ----------------------
1591 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_cpp ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_cpp conftest.$ac_ext"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } > conftest.i && {
1611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 }; then :
1614 ac_retval=0
1615 else
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620 fi
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_cpp
1625
1626 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1629 # the include files in INCLUDES and setting the cache variable VAR
1630 # accordingly.
1631 ac_fn_c_check_header_mongrel ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if eval \${$3+:} false; then :
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1639 fi
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 else
1644 # Is the header compilable?
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1646 $as_echo_n "checking $2 usability... " >&6; }
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 $4
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653 ac_header_compiler=yes
1654 else
1655 ac_header_compiler=no
1656 fi
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1659 $as_echo "$ac_header_compiler" >&6; }
1660
1661 # Is the header present?
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1663 $as_echo_n "checking $2 presence... " >&6; }
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_cpp "$LINENO"; then :
1669 ac_header_preproc=yes
1670 else
1671 ac_header_preproc=no
1672 fi
1673 rm -f conftest.err conftest.i conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1675 $as_echo "$ac_header_preproc" >&6; }
1676
1677 # So? What about this header?
1678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1679 yes:no: )
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1681 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ;;
1685 no:yes:* )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1687 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1689 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1691 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1693 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 ;;
1697 esac
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1702 else
1703 eval "$3=\$ac_header_compiler"
1704 fi
1705 eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1708 fi
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711 } # ac_fn_c_check_header_mongrel
1712
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=$ac_status
1748 fi
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_run
1754
1755 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists and can be compiled using the include files in
1758 # INCLUDES, setting the cache variable VAR accordingly.
1759 ac_fn_c_check_header_compile ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_header_compile
1785
1786 # ac_fn_cxx_try_compile LINENO
1787 # ----------------------------
1788 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_cxx_try_compile ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext
1793 if { { ac_try="$ac_compile"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_compile") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_cxx_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest.$ac_objext; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1821
1822 } # ac_fn_cxx_try_compile
1823
1824 # ac_fn_c_try_link LINENO
1825 # -----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_link ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext conftest$ac_exeext
1831 if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1844 fi
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest$ac_exeext && {
1850 test "$cross_compiling" = yes ||
1851 test -x conftest$ac_exeext
1852 }; then :
1853 ac_retval=0
1854 else
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=1
1859 fi
1860 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1861 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1862 # interfere with the next link command; also delete a directory that is
1863 # left behind by Apple's compiler. We do this before executing the actions.
1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1867
1868 } # ac_fn_c_try_link
1869
1870 # ac_fn_c_check_func LINENO FUNC VAR
1871 # ----------------------------------
1872 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1873 ac_fn_c_check_func ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1880 else
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1885 #define $2 innocuous_$2
1886
1887 /* System header to define __stub macros and hopefully few prototypes,
1888 which can conflict with char $2 (); below.
1889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1890 <limits.h> exists even on freestanding compilers. */
1891
1892 #ifdef __STDC__
1893 # include <limits.h>
1894 #else
1895 # include <assert.h>
1896 #endif
1897
1898 #undef $2
1899
1900 /* Override any GCC internal prototype to avoid an error.
1901 Use char because int might match the return type of a GCC
1902 builtin and then its argument prototype would still apply. */
1903 #ifdef __cplusplus
1904 extern "C"
1905 #endif
1906 char $2 ();
1907 /* The GNU C library defines this for functions which it implements
1908 to always fail with ENOSYS. Some functions are actually named
1909 something starting with __ and the normal name is an alias. */
1910 #if defined __stub_$2 || defined __stub___$2
1911 choke me
1912 #endif
1913
1914 int
1915 main ()
1916 {
1917 return $2 ();
1918 ;
1919 return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_link "$LINENO"; then :
1923 eval "$3=yes"
1924 else
1925 eval "$3=no"
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext \
1928 conftest$ac_exeext conftest.$ac_ext
1929 fi
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935 } # ac_fn_c_check_func
1936
1937 # ac_fn_cxx_try_cpp LINENO
1938 # ------------------------
1939 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1940 ac_fn_cxx_try_cpp ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if { { ac_try="$ac_cpp conftest.$ac_ext"
1944 case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1951 ac_status=$?
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1956 fi
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } > conftest.i && {
1959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1960 test ! -s conftest.err
1961 }; then :
1962 ac_retval=0
1963 else
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1966
1967 ac_retval=1
1968 fi
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1971
1972 } # ac_fn_cxx_try_cpp
1973
1974 # ac_fn_cxx_try_link LINENO
1975 # -------------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_cxx_try_link ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext conftest$ac_exeext
1981 if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1994 fi
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_cxx_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest$ac_exeext && {
2000 test "$cross_compiling" = yes ||
2001 test -x conftest$ac_exeext
2002 }; then :
2003 ac_retval=0
2004 else
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=1
2009 fi
2010 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2011 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2012 # interfere with the next link command; also delete a directory that is
2013 # left behind by Apple's compiler. We do this before executing the actions.
2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 as_fn_set_status $ac_retval
2017
2018 } # ac_fn_cxx_try_link
2019
2020 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2021 # ---------------------------------------------
2022 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2023 # accordingly.
2024 ac_fn_c_check_decl ()
2025 {
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 as_decl_name=`echo $2|sed 's/ *(.*//'`
2028 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2030 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2031 if eval \${$3+:} false; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 $4
2037 int
2038 main ()
2039 {
2040 #ifndef $as_decl_name
2041 #ifdef __cplusplus
2042 (void) $as_decl_use;
2043 #else
2044 (void) $as_decl_name;
2045 #endif
2046 #endif
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064 } # ac_fn_c_check_decl
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2068
2069 It was created by gprofng $as_me 2.38.50, which was
2070 generated by GNU Autoconf 2.69. Invocation command line was
2071
2072 $ $0 $@
2073
2074 _ACEOF
2075 exec 5>>config.log
2076 {
2077 cat <<_ASUNAME
2078 ## --------- ##
2079 ## Platform. ##
2080 ## --------- ##
2081
2082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2087
2088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2090
2091 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2092 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2095 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2096 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2097 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2098
2099 _ASUNAME
2100
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 $as_echo "PATH: $as_dir"
2107 done
2108 IFS=$as_save_IFS
2109
2110 } >&5
2111
2112 cat >&5 <<_ACEOF
2113
2114
2115 ## ----------- ##
2116 ## Core tests. ##
2117 ## ----------- ##
2118
2119 _ACEOF
2120
2121
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2127 ac_configure_args=
2128 ac_configure_args0=
2129 ac_configure_args1=
2130 ac_must_keep_next=false
2131 for ac_pass in 1 2
2132 do
2133 for ac_arg
2134 do
2135 case $ac_arg in
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2139 continue ;;
2140 *\'*)
2141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 esac
2143 case $ac_pass in
2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2145 2)
2146 as_fn_append ac_configure_args1 " '$ac_arg'"
2147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2149 else
2150 case $ac_arg in
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157 esac
2158 ;;
2159 -* ) ac_must_keep_next=true ;;
2160 esac
2161 fi
2162 as_fn_append ac_configure_args " '$ac_arg'"
2163 ;;
2164 esac
2165 done
2166 done
2167 { ac_configure_args0=; unset ac_configure_args0;}
2168 { ac_configure_args1=; unset ac_configure_args1;}
2169
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log. We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176 # Save into config.log some information that might help in debugging.
2177 {
2178 echo
2179
2180 $as_echo "## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##"
2183 echo
2184 # The following way of writing the cache mishandles newlines in values,
2185 (
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in #(
2189 *${as_nl}*)
2190 case $ac_var in #(
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2193 esac
2194 case $ac_var in #(
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2198 esac ;;
2199 esac
2200 done
2201 (set) 2>&1 |
2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2204 sed -n \
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207 ;; #(
2208 *)
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 ;;
2211 esac |
2212 sort
2213 )
2214 echo
2215
2216 $as_echo "## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##"
2219 echo
2220 for ac_var in $ac_subst_vars
2221 do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 $as_echo "$ac_var='\''$ac_val'\''"
2227 done | sort
2228 echo
2229
2230 if test -n "$ac_subst_files"; then
2231 $as_echo "## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##"
2234 echo
2235 for ac_var in $ac_subst_files
2236 do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240 esac
2241 $as_echo "$ac_var='\''$ac_val'\''"
2242 done | sort
2243 echo
2244 fi
2245
2246 if test -s confdefs.h; then
2247 $as_echo "## ----------- ##
2248 ## confdefs.h. ##
2249 ## ----------- ##"
2250 echo
2251 cat confdefs.h
2252 echo
2253 fi
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2257 } >&5
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260 exit $exit_status
2261 ' 0
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264 done
2265 ac_signal=0
2266
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2269
2270 $as_echo "/* confdefs.h */" > confdefs.h
2271
2272 # Predefined preprocessor variables.
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2296 _ACEOF
2297
2298
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2301 ac_site_file1=NONE
2302 ac_site_file2=NONE
2303 if test -n "$CONFIG_SITE"; then
2304 # We do not want a PATH search for config.site.
2305 case $CONFIG_SITE in #((
2306 -*) ac_site_file1=./$CONFIG_SITE;;
2307 */*) ac_site_file1=$CONFIG_SITE;;
2308 *) ac_site_file1=./$CONFIG_SITE;;
2309 esac
2310 elif test "x$prefix" != xNONE; then
2311 ac_site_file1=$prefix/share/config.site
2312 ac_site_file2=$prefix/etc/config.site
2313 else
2314 ac_site_file1=$ac_default_prefix/share/config.site
2315 ac_site_file2=$ac_default_prefix/etc/config.site
2316 fi
2317 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2318 do
2319 test "x$ac_site_file" = xNONE && continue
2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323 sed 's/^/| /' "$ac_site_file" >&5
2324 . "$ac_site_file" \
2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site script $ac_site_file
2328 See \`config.log' for more details" "$LINENO" 5; }
2329 fi
2330 done
2331
2332 if test -r "$cache_file"; then
2333 # Some versions of bash will fail to source /dev/null (special files
2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 $as_echo "$as_me: loading cache $cache_file" >&6;}
2338 case $cache_file in
2339 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340 *) . "./$cache_file";;
2341 esac
2342 fi
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 $as_echo "$as_me: creating cache $cache_file" >&6;}
2346 >$cache_file
2347 fi
2348
2349 # Check that the precious variables saved in the cache have kept the same
2350 # value.
2351 ac_cache_corrupted=false
2352 for ac_var in $ac_precious_vars; do
2353 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354 eval ac_new_set=\$ac_env_${ac_var}_set
2355 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356 eval ac_new_val=\$ac_env_${ac_var}_value
2357 case $ac_old_set,$ac_new_set in
2358 set,)
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2360 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2362 ,set)
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2364 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2365 ac_cache_corrupted=: ;;
2366 ,);;
2367 *)
2368 if test "x$ac_old_val" != "x$ac_new_val"; then
2369 # differences in whitespace do not lead to failure.
2370 ac_old_val_w=`echo x $ac_old_val`
2371 ac_new_val_w=`echo x $ac_new_val`
2372 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2375 ac_cache_corrupted=:
2376 else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2378 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379 eval $ac_var=\$ac_old_val
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2382 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2384 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2385 fi;;
2386 esac
2387 # Pass precious variables to config.status.
2388 if test "$ac_new_set" = set; then
2389 case $ac_new_val in
2390 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2391 *) ac_arg=$ac_var=$ac_new_val ;;
2392 esac
2393 case " $ac_configure_args " in
2394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2395 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2396 esac
2397 fi
2398 done
2399 if $ac_cache_corrupted; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2404 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2405 fi
2406 ## -------------------- ##
2407 ## Main body of script. ##
2408 ## -------------------- ##
2409
2410 ac_ext=c
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415
2416
2417 am__api_version='1.15'
2418
2419 ac_aux_dir=
2420 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2421 if test -f "$ac_dir/install-sh"; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/install-sh -c"
2424 break
2425 elif test -f "$ac_dir/install.sh"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/install.sh -c"
2428 break
2429 elif test -f "$ac_dir/shtool"; then
2430 ac_aux_dir=$ac_dir
2431 ac_install_sh="$ac_aux_dir/shtool install -c"
2432 break
2433 fi
2434 done
2435 if test -z "$ac_aux_dir"; then
2436 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2437 fi
2438
2439 # These three variables are undocumented and unsupported,
2440 # and are intended to be withdrawn in a future Autoconf release.
2441 # They can cause serious problems if a builder's source tree is in a directory
2442 # whose full name contains unusual characters.
2443 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2444 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2445 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2446
2447
2448 # Find a good install program. We prefer a C program (faster),
2449 # so one script is as good as another. But avoid the broken or
2450 # incompatible versions:
2451 # SysV /etc/install, /usr/sbin/install
2452 # SunOS /usr/etc/install
2453 # IRIX /sbin/install
2454 # AIX /bin/install
2455 # AmigaOS /C/install, which installs bootblocks on floppy discs
2456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2459 # OS/2's system install, which has a completely different semantic
2460 # ./install, which can be erroneously created by make from ./install.sh.
2461 # Reject install programs that cannot install multiple files.
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2464 if test -z "$INSTALL"; then
2465 if ${ac_cv_path_install+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 # Account for people who put trailing slashes in PATH elements.
2474 case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2486 if test $ac_prog = install &&
2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # AIX install. It has an incompatible calling convention.
2489 :
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
2494 else
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
2507 fi
2508 fi
2509 done
2510 done
2511 ;;
2512 esac
2513
2514 done
2515 IFS=$as_save_IFS
2516
2517 rm -rf conftest.one conftest.two conftest.dir
2518
2519 fi
2520 if test "${ac_cv_path_install+set}" = set; then
2521 INSTALL=$ac_cv_path_install
2522 else
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the value is a relative name.
2527 INSTALL=$ac_install_sh
2528 fi
2529 fi
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531 $as_echo "$INSTALL" >&6; }
2532
2533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534 # It thinks the first close brace ends the variable substitution.
2535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
2537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2538
2539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2542 $as_echo_n "checking whether build environment is sane... " >&6; }
2543 # Reject unsafe characters in $srcdir or the absolute working directory
2544 # name. Accept space and tab only in the latter.
2545 am_lf='
2546 '
2547 case `pwd` in
2548 *[\\\"\#\$\&\'\`$am_lf]*)
2549 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2550 esac
2551 case $srcdir in
2552 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2553 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2554 esac
2555
2556 # Do 'set' in a subshell so we don't clobber the current shell's
2557 # arguments. Must try -L first in case configure is actually a
2558 # symlink; some systems play weird games with the mod time of symlinks
2559 # (eg FreeBSD returns the mod time of the symlink's containing
2560 # directory).
2561 if (
2562 am_has_slept=no
2563 for am_try in 1 2; do
2564 echo "timestamp, slept: $am_has_slept" > conftest.file
2565 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2566 if test "$*" = "X"; then
2567 # -L didn't work.
2568 set X `ls -t "$srcdir/configure" conftest.file`
2569 fi
2570 if test "$*" != "X $srcdir/configure conftest.file" \
2571 && test "$*" != "X conftest.file $srcdir/configure"; then
2572
2573 # If neither matched, then we have a broken ls. This can happen
2574 # if, for instance, CONFIG_SHELL is bash and it inherits a
2575 # broken ls alias from the environment. This has actually
2576 # happened. Such a system could not be considered "sane".
2577 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2578 alias in your environment" "$LINENO" 5
2579 fi
2580 if test "$2" = conftest.file || test $am_try -eq 2; then
2581 break
2582 fi
2583 # Just in case.
2584 sleep 1
2585 am_has_slept=yes
2586 done
2587 test "$2" = conftest.file
2588 )
2589 then
2590 # Ok.
2591 :
2592 else
2593 as_fn_error $? "newly created file is older than distributed files!
2594 Check your system clock" "$LINENO" 5
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598 # If we didn't sleep, we still need to ensure time stamps of config.status and
2599 # generated files are strictly newer.
2600 am_sleep_pid=
2601 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2602 ( sleep 1 ) &
2603 am_sleep_pid=$!
2604 fi
2605
2606 rm -f conftest.file
2607
2608 test "$program_prefix" != NONE &&
2609 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2610 # Use a double $ so make ignores it.
2611 test "$program_suffix" != NONE &&
2612 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2613 # Double any \ or $.
2614 # By default was `s,x,x', remove it if useless.
2615 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2616 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2617
2618 # Expand $ac_aux_dir to an absolute path.
2619 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2620
2621 if test x"${MISSING+set}" != xset; then
2622 case $am_aux_dir in
2623 *\ * | *\ *)
2624 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2625 *)
2626 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2627 esac
2628 fi
2629 # Use eval to expand $SHELL
2630 if eval "$MISSING --is-lightweight"; then
2631 am_missing_run="$MISSING "
2632 else
2633 am_missing_run=
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2635 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2636 fi
2637
2638 if test x"${install_sh+set}" != xset; then
2639 case $am_aux_dir in
2640 *\ * | *\ *)
2641 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2642 *)
2643 install_sh="\${SHELL} $am_aux_dir/install-sh"
2644 esac
2645 fi
2646
2647 # Installed binaries are usually stripped using 'strip' when the user
2648 # run "make install-strip". However 'strip' might not be the right
2649 # tool to use in cross-compilation environments, therefore Automake
2650 # will honor the 'STRIP' environment variable to overrule this program.
2651 if test "$cross_compiling" != no; then
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}strip; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_STRIP+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$STRIP"; then
2661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 STRIP=$ac_cv_prog_STRIP
2681 if test -n "$STRIP"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2683 $as_echo "$STRIP" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689
2690 fi
2691 if test -z "$ac_cv_prog_STRIP"; then
2692 ac_ct_STRIP=$STRIP
2693 # Extract the first word of "strip", so it can be a program name with args.
2694 set dummy strip; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$ac_ct_STRIP"; then
2701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_ac_ct_STRIP="strip"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2721 if test -n "$ac_ct_STRIP"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2723 $as_echo "$ac_ct_STRIP" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729 if test "x$ac_ct_STRIP" = x; then
2730 STRIP=":"
2731 else
2732 case $cross_compiling:$ac_tool_warned in
2733 yes:)
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2736 ac_tool_warned=yes ;;
2737 esac
2738 STRIP=$ac_ct_STRIP
2739 fi
2740 else
2741 STRIP="$ac_cv_prog_STRIP"
2742 fi
2743
2744 fi
2745 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2746
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2748 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2749 if test -z "$MKDIR_P"; then
2750 if ${ac_cv_path_mkdir+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_prog in mkdir gmkdir; do
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2761 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2762 'mkdir (GNU coreutils) '* | \
2763 'mkdir (coreutils) '* | \
2764 'mkdir (fileutils) '4.1*)
2765 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2766 break 3;;
2767 esac
2768 done
2769 done
2770 done
2771 IFS=$as_save_IFS
2772
2773 fi
2774
2775 test -d ./--version && rmdir ./--version
2776 if test "${ac_cv_path_mkdir+set}" = set; then
2777 MKDIR_P="$ac_cv_path_mkdir -p"
2778 else
2779 # As a last resort, use the slow shell script. Don't cache a
2780 # value for MKDIR_P within a source directory, because that will
2781 # break other packages using the cache if that directory is
2782 # removed, or if the value is a relative name.
2783 MKDIR_P="$ac_install_sh -d"
2784 fi
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2787 $as_echo "$MKDIR_P" >&6; }
2788
2789 for ac_prog in gawk mawk nawk awk
2790 do
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_AWK+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_AWK="$ac_prog"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 AWK=$ac_cv_prog_AWK
2819 if test -n "$AWK"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821 $as_echo "$AWK" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2826
2827
2828 test -n "$AWK" && break
2829 done
2830
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2832 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2833 set x ${MAKE-make}
2834 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2835 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 cat >conftest.make <<\_ACEOF
2839 SHELL = /bin/sh
2840 all:
2841 @echo '@@@%%%=$(MAKE)=@@@%%%'
2842 _ACEOF
2843 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2844 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2845 *@@@%%%=?*=@@@%%%*)
2846 eval ac_cv_prog_make_${ac_make}_set=yes;;
2847 *)
2848 eval ac_cv_prog_make_${ac_make}_set=no;;
2849 esac
2850 rm -f conftest.make
2851 fi
2852 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2854 $as_echo "yes" >&6; }
2855 SET_MAKE=
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 SET_MAKE="MAKE=${MAKE-make}"
2860 fi
2861
2862 rm -rf .tst 2>/dev/null
2863 mkdir .tst 2>/dev/null
2864 if test -d .tst; then
2865 am__leading_dot=.
2866 else
2867 am__leading_dot=_
2868 fi
2869 rmdir .tst 2>/dev/null
2870
2871 # Check whether --enable-silent-rules was given.
2872 if test "${enable_silent_rules+set}" = set; then :
2873 enableval=$enable_silent_rules;
2874 fi
2875
2876 case $enable_silent_rules in # (((
2877 yes) AM_DEFAULT_VERBOSITY=0;;
2878 no) AM_DEFAULT_VERBOSITY=1;;
2879 *) AM_DEFAULT_VERBOSITY=1;;
2880 esac
2881 am_make=${MAKE-make}
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2883 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2884 if ${am_cv_make_support_nested_variables+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if $as_echo 'TRUE=$(BAR$(V))
2888 BAR0=false
2889 BAR1=true
2890 V=1
2891 am__doit:
2892 @$(TRUE)
2893 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2894 am_cv_make_support_nested_variables=yes
2895 else
2896 am_cv_make_support_nested_variables=no
2897 fi
2898 fi
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2900 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2901 if test $am_cv_make_support_nested_variables = yes; then
2902 AM_V='$(V)'
2903 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2904 else
2905 AM_V=$AM_DEFAULT_VERBOSITY
2906 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2907 fi
2908 AM_BACKSLASH='\'
2909
2910 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2911 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2912 # is not polluted with repeated "-I."
2913 am__isrc=' -I$(srcdir)'
2914 # test to see if srcdir already configured
2915 if test -f $srcdir/config.status; then
2916 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2917 fi
2918 fi
2919
2920 # test whether we have cygpath
2921 if test -z "$CYGPATH_W"; then
2922 if (cygpath --version) >/dev/null 2>/dev/null; then
2923 CYGPATH_W='cygpath -w'
2924 else
2925 CYGPATH_W=echo
2926 fi
2927 fi
2928
2929
2930 # Define the identity of the package.
2931 PACKAGE='gprofng'
2932 VERSION='2.38.50'
2933
2934
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE "$PACKAGE"
2937 _ACEOF
2938
2939
2940 cat >>confdefs.h <<_ACEOF
2941 #define VERSION "$VERSION"
2942 _ACEOF
2943
2944 # Some tools Automake needs.
2945
2946 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2947
2948
2949 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2950
2951
2952 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2953
2954
2955 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2956
2957
2958 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2959
2960 # For better backward compatibility. To be removed once Automake 1.9.x
2961 # dies out for good. For more background, see:
2962 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2963 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2964 mkdir_p='$(MKDIR_P)'
2965
2966 # We need awk for the "check" target (and possibly the TAP driver). The
2967 # system "awk" is bad on some platforms.
2968 # Always define AMTAR for backward compatibility. Yes, it's still used
2969 # in the wild :-( We should find a proper way to deprecate it ...
2970 AMTAR='$${TAR-tar}'
2971
2972
2973 # We'll loop over all known methods to create a tar archive until one works.
2974 _am_tools='gnutar pax cpio none'
2975
2976 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2977
2978
2979
2980
2981
2982
2983 # POSIX will say in a future version that running "rm -f" with no argument
2984 # is OK; and we want to be able to make that assumption in our Makefile
2985 # recipes. So use an aggressive probe to check that the usage we want is
2986 # actually supported "in the wild" to an acceptable degree.
2987 # See automake bug#10828.
2988 # To make any issue more visible, cause the running configure to be aborted
2989 # by default if the 'rm' program in use doesn't match our expectations; the
2990 # user can still override this though.
2991 if rm -f && rm -fr && rm -rf; then : OK; else
2992 cat >&2 <<'END'
2993 Oops!
2994
2995 Your 'rm' program seems unable to run without file operands specified
2996 on the command line, even when the '-f' option is present. This is contrary
2997 to the behaviour of most rm programs out there, and not conforming with
2998 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2999
3000 Please tell bug-automake@gnu.org about your system, including the value
3001 of your $PATH and any error possibly output before this message. This
3002 can help us improve future automake versions.
3003
3004 END
3005 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3006 echo 'Configuration will proceed anyway, since you have set the' >&2
3007 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3008 echo >&2
3009 else
3010 cat >&2 <<'END'
3011 Aborting the configuration process, to ensure you take notice of the issue.
3012
3013 You can download and install GNU coreutils to get an 'rm' implementation
3014 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3015
3016 If you want to complete the configuration process using your problematic
3017 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3018 to "yes", and re-run configure.
3019
3020 END
3021 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3022 fi
3023 fi
3024
3025
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3027 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3028 # Check whether --enable-maintainer-mode was given.
3029 if test "${enable_maintainer_mode+set}" = set; then :
3030 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3031 else
3032 USE_MAINTAINER_MODE=no
3033 fi
3034
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3036 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3037 if test $USE_MAINTAINER_MODE = yes; then
3038 MAINTAINER_MODE_TRUE=
3039 MAINTAINER_MODE_FALSE='#'
3040 else
3041 MAINTAINER_MODE_TRUE='#'
3042 MAINTAINER_MODE_FALSE=
3043 fi
3044
3045 MAINT=$MAINTAINER_MODE_TRUE
3046
3047
3048
3049 DEPDIR="${am__leading_dot}deps"
3050
3051 ac_config_commands="$ac_config_commands depfiles"
3052
3053
3054 am_make=${MAKE-make}
3055 cat > confinc << 'END'
3056 am__doit:
3057 @echo this is the am__doit target
3058 .PHONY: am__doit
3059 END
3060 # If we don't find an include directive, just comment out the code.
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3062 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3063 am__include="#"
3064 am__quote=
3065 _am_result=none
3066 # First try GNU make style include.
3067 echo "include confinc" > confmf
3068 # Ignore all kinds of additional output from 'make'.
3069 case `$am_make -s -f confmf 2> /dev/null` in #(
3070 *the\ am__doit\ target*)
3071 am__include=include
3072 am__quote=
3073 _am_result=GNU
3074 ;;
3075 esac
3076 # Now try BSD make style include.
3077 if test "$am__include" = "#"; then
3078 echo '.include "confinc"' > confmf
3079 case `$am_make -s -f confmf 2> /dev/null` in #(
3080 *the\ am__doit\ target*)
3081 am__include=.include
3082 am__quote="\""
3083 _am_result=BSD
3084 ;;
3085 esac
3086 fi
3087
3088
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3090 $as_echo "$_am_result" >&6; }
3091 rm -f confinc confmf
3092
3093 # Check whether --enable-dependency-tracking was given.
3094 if test "${enable_dependency_tracking+set}" = set; then :
3095 enableval=$enable_dependency_tracking;
3096 fi
3097
3098 if test "x$enable_dependency_tracking" != xno; then
3099 am_depcomp="$ac_aux_dir/depcomp"
3100 AMDEPBACKSLASH='\'
3101 am__nodep='_no'
3102 fi
3103 if test "x$enable_dependency_tracking" != xno; then
3104 AMDEP_TRUE=
3105 AMDEP_FALSE='#'
3106 else
3107 AMDEP_TRUE='#'
3108 AMDEP_FALSE=
3109 fi
3110
3111
3112 ac_ext=c
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117 if test -n "$ac_tool_prefix"; then
3118 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3119 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 fi
3156 if test -z "$ac_cv_prog_CC"; then
3157 ac_ct_CC=$CC
3158 # Extract the first word of "gcc", so it can be a program name with args.
3159 set dummy gcc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$ac_ct_CC"; then
3166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_ac_ct_CC="gcc"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186 if test -n "$ac_ct_CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188 $as_echo "$ac_ct_CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194 if test "x$ac_ct_CC" = x; then
3195 CC=""
3196 else
3197 case $cross_compiling:$ac_tool_warned in
3198 yes:)
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3201 ac_tool_warned=yes ;;
3202 esac
3203 CC=$ac_ct_CC
3204 fi
3205 else
3206 CC="$ac_cv_prog_CC"
3207 fi
3208
3209 if test -z "$CC"; then
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}cc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_CC+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_CC="${ac_tool_prefix}cc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248 fi
3249 fi
3250 if test -z "$CC"; then
3251 # Extract the first word of "cc", so it can be a program name with args.
3252 set dummy cc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_CC+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 ac_prog_rejected=no
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3270 ac_prog_rejected=yes
3271 continue
3272 fi
3273 ac_cv_prog_CC="cc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 if test $ac_prog_rejected = yes; then
3282 # We found a bogon in the path, so make sure we never use it.
3283 set dummy $ac_cv_prog_CC
3284 shift
3285 if test $# != 0; then
3286 # We chose a different compiler from the bogus one.
3287 # However, it has the same basename, so the bogon will be chosen
3288 # first if we set CC to just the basename; use the full file name.
3289 shift
3290 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3291 fi
3292 fi
3293 fi
3294 fi
3295 CC=$ac_cv_prog_CC
3296 if test -n "$CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298 $as_echo "$CC" >&6; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 fi
3303
3304
3305 fi
3306 if test -z "$CC"; then
3307 if test -n "$ac_tool_prefix"; then
3308 for ac_prog in cl.exe
3309 do
3310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if ${ac_cv_prog_CC+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC="$CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 CC=$ac_cv_prog_CC
3338 if test -n "$CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340 $as_echo "$CC" >&6; }
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346
3347 test -n "$CC" && break
3348 done
3349 fi
3350 if test -z "$CC"; then
3351 ac_ct_CC=$CC
3352 for ac_prog in cl.exe
3353 do
3354 # Extract the first word of "$ac_prog", so it can be a program name with args.
3355 set dummy $ac_prog; ac_word=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if test -n "$ac_ct_CC"; then
3362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_ac_ct_CC="$ac_prog"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi
3380 fi
3381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3382 if test -n "$ac_ct_CC"; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3384 $as_echo "$ac_ct_CC" >&6; }
3385 else
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388 fi
3389
3390
3391 test -n "$ac_ct_CC" && break
3392 done
3393
3394 if test "x$ac_ct_CC" = x; then
3395 CC=""
3396 else
3397 case $cross_compiling:$ac_tool_warned in
3398 yes:)
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3401 ac_tool_warned=yes ;;
3402 esac
3403 CC=$ac_ct_CC
3404 fi
3405 fi
3406
3407 fi
3408
3409
3410 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "no acceptable C compiler found in \$PATH
3413 See \`config.log' for more details" "$LINENO" 5; }
3414
3415 # Provide some information about the compiler.
3416 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3417 set X $ac_compile
3418 ac_compiler=$2
3419 for ac_option in --version -v -V -qversion; do
3420 { { ac_try="$ac_compiler $ac_option >&5"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3428 ac_status=$?
3429 if test -s conftest.err; then
3430 sed '10a\
3431 ... rest of stderr output deleted ...
3432 10q' conftest.err >conftest.er1
3433 cat conftest.er1 >&5
3434 fi
3435 rm -f conftest.er1 conftest.err
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }
3438 done
3439
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442
3443 int
3444 main ()
3445 {
3446
3447 ;
3448 return 0;
3449 }
3450 _ACEOF
3451 ac_clean_files_save=$ac_clean_files
3452 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3453 # Try to create an executable without -o first, disregard a.out.
3454 # It will help us diagnose broken compilers, and finding out an intuition
3455 # of exeext.
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3457 $as_echo_n "checking whether the C compiler works... " >&6; }
3458 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3459
3460 # The possible output files:
3461 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3462
3463 ac_rmfiles=
3464 for ac_file in $ac_files
3465 do
3466 case $ac_file in
3467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3468 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3469 esac
3470 done
3471 rm -f $ac_rmfiles
3472
3473 if { { ac_try="$ac_link_default"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_link_default") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; then :
3484 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3485 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3486 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3487 # so that the user can short-circuit this test for compilers unknown to
3488 # Autoconf.
3489 for ac_file in $ac_files ''
3490 do
3491 test -f "$ac_file" || continue
3492 case $ac_file in
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3494 ;;
3495 [ab].out )
3496 # We found the default executable, but exeext='' is most
3497 # certainly right.
3498 break;;
3499 *.* )
3500 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3501 then :; else
3502 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3503 fi
3504 # We set ac_cv_exeext here because the later test for it is not
3505 # safe: cross compilers may not add the suffix if given an `-o'
3506 # argument, so we may need to know it at that point already.
3507 # Even if this section looks crufty: it has the advantage of
3508 # actually working.
3509 break;;
3510 * )
3511 break;;
3512 esac
3513 done
3514 test "$ac_cv_exeext" = no && ac_cv_exeext=
3515
3516 else
3517 ac_file=''
3518 fi
3519 if test -z "$ac_file"; then :
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error 77 "C compiler cannot create executables
3528 See \`config.log' for more details" "$LINENO" 5; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3531 $as_echo "yes" >&6; }
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3534 $as_echo_n "checking for C compiler default output file name... " >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3536 $as_echo "$ac_file" >&6; }
3537 ac_exeext=$ac_cv_exeext
3538
3539 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3540 ac_clean_files=$ac_clean_files_save
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3542 $as_echo_n "checking for suffix of executables... " >&6; }
3543 if { { ac_try="$ac_link"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_link") 2>&5
3551 ac_status=$?
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }; then :
3554 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3555 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3556 # work properly (i.e., refer to `conftest.exe'), while it won't with
3557 # `rm'.
3558 for ac_file in conftest.exe conftest conftest.*; do
3559 test -f "$ac_file" || continue
3560 case $ac_file in
3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3562 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3563 break;;
3564 * ) break;;
3565 esac
3566 done
3567 else
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3571 See \`config.log' for more details" "$LINENO" 5; }
3572 fi
3573 rm -f conftest conftest$ac_cv_exeext
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3575 $as_echo "$ac_cv_exeext" >&6; }
3576
3577 rm -f conftest.$ac_ext
3578 EXEEXT=$ac_cv_exeext
3579 ac_exeext=$EXEEXT
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582 #include <stdio.h>
3583 int
3584 main ()
3585 {
3586 FILE *f = fopen ("conftest.out", "w");
3587 return ferror (f) || fclose (f) != 0;
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 ac_clean_files="$ac_clean_files conftest.out"
3594 # Check that the compiler produces executables we can run. If not, either
3595 # the compiler is broken, or we cross compile.
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3597 $as_echo_n "checking whether we are cross compiling... " >&6; }
3598 if test "$cross_compiling" != yes; then
3599 { { ac_try="$ac_link"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606 (eval "$ac_link") 2>&5
3607 ac_status=$?
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }
3610 if { ac_try='./conftest$ac_cv_exeext'
3611 { { case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_try") 2>&5
3618 ac_status=$?
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }; }; then
3621 cross_compiling=no
3622 else
3623 if test "$cross_compiling" = maybe; then
3624 cross_compiling=yes
3625 else
3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error $? "cannot run C compiled programs.
3629 If you meant to cross compile, use \`--host'.
3630 See \`config.log' for more details" "$LINENO" 5; }
3631 fi
3632 fi
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3635 $as_echo "$cross_compiling" >&6; }
3636
3637 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3638 ac_clean_files=$ac_clean_files_save
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3640 $as_echo_n "checking for suffix of object files... " >&6; }
3641 if ${ac_cv_objext+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646
3647 int
3648 main ()
3649 {
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 rm -f conftest.o conftest.obj
3656 if { { ac_try="$ac_compile"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_compile") 2>&5
3664 ac_status=$?
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; then :
3667 for ac_file in conftest.o conftest.obj conftest.*; do
3668 test -f "$ac_file" || continue;
3669 case $ac_file in
3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3671 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3672 break;;
3673 esac
3674 done
3675 else
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error $? "cannot compute suffix of object files: cannot compile
3682 See \`config.log' for more details" "$LINENO" 5; }
3683 fi
3684 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3687 $as_echo "$ac_cv_objext" >&6; }
3688 OBJEXT=$ac_cv_objext
3689 ac_objext=$OBJEXT
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3691 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3692 if ${ac_cv_c_compiler_gnu+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701 #ifndef __GNUC__
3702 choke me
3703 #endif
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_compiler_gnu=yes
3711 else
3712 ac_compiler_gnu=no
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3716
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3719 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3720 if test $ac_compiler_gnu = yes; then
3721 GCC=yes
3722 else
3723 GCC=
3724 fi
3725 ac_test_CFLAGS=${CFLAGS+set}
3726 ac_save_CFLAGS=$CFLAGS
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3728 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3729 if ${ac_cv_prog_cc_g+:} false; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 ac_save_c_werror_flag=$ac_c_werror_flag
3733 ac_c_werror_flag=yes
3734 ac_cv_prog_cc_g=no
3735 CFLAGS="-g"
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_cv_prog_cc_g=yes
3749 else
3750 CFLAGS=""
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753
3754 int
3755 main ()
3756 {
3757
3758 ;
3759 return 0;
3760 }
3761 _ACEOF
3762 if ac_fn_c_try_compile "$LINENO"; then :
3763
3764 else
3765 ac_c_werror_flag=$ac_save_c_werror_flag
3766 CFLAGS="-g"
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769
3770 int
3771 main ()
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_cv_prog_cc_g=yes
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 fi
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_c_werror_flag=$ac_save_c_werror_flag
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3789 $as_echo "$ac_cv_prog_cc_g" >&6; }
3790 if test "$ac_test_CFLAGS" = set; then
3791 CFLAGS=$ac_save_CFLAGS
3792 elif test $ac_cv_prog_cc_g = yes; then
3793 if test "$GCC" = yes; then
3794 CFLAGS="-g -O2"
3795 else
3796 CFLAGS="-g"
3797 fi
3798 else
3799 if test "$GCC" = yes; then
3800 CFLAGS="-O2"
3801 else
3802 CFLAGS=
3803 fi
3804 fi
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3806 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3807 if ${ac_cv_prog_cc_c89+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 ac_cv_prog_cc_c89=no
3811 ac_save_CC=$CC
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #include <stdarg.h>
3815 #include <stdio.h>
3816 struct stat;
3817 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3818 struct buf { int x; };
3819 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3820 static char *e (p, i)
3821 char **p;
3822 int i;
3823 {
3824 return p[i];
3825 }
3826 static char *f (char * (*g) (char **, int), char **p, ...)
3827 {
3828 char *s;
3829 va_list v;
3830 va_start (v,p);
3831 s = g (p, va_arg (v,int));
3832 va_end (v);
3833 return s;
3834 }
3835
3836 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3837 function prototypes and stuff, but not '\xHH' hex character constants.
3838 These don't provoke an error unfortunately, instead are silently treated
3839 as 'x'. The following induces an error, until -std is added to get
3840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3841 array size at least. It's necessary to write '\x00'==0 to get something
3842 that's true only with -std. */
3843 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3844
3845 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3846 inside strings and character constants. */
3847 #define FOO(x) 'x'
3848 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3849
3850 int test (int i, double x);
3851 struct s1 {int (*f) (int a);};
3852 struct s2 {int (*f) (double a);};
3853 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3854 int argc;
3855 char **argv;
3856 int
3857 main ()
3858 {
3859 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3860 ;
3861 return 0;
3862 }
3863 _ACEOF
3864 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3865 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3866 do
3867 CC="$ac_save_CC $ac_arg"
3868 if ac_fn_c_try_compile "$LINENO"; then :
3869 ac_cv_prog_cc_c89=$ac_arg
3870 fi
3871 rm -f core conftest.err conftest.$ac_objext
3872 test "x$ac_cv_prog_cc_c89" != "xno" && break
3873 done
3874 rm -f conftest.$ac_ext
3875 CC=$ac_save_CC
3876
3877 fi
3878 # AC_CACHE_VAL
3879 case "x$ac_cv_prog_cc_c89" in
3880 x)
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3882 $as_echo "none needed" >&6; } ;;
3883 xno)
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3885 $as_echo "unsupported" >&6; } ;;
3886 *)
3887 CC="$CC $ac_cv_prog_cc_c89"
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3889 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3890 esac
3891 if test "x$ac_cv_prog_cc_c89" != xno; then :
3892
3893 fi
3894
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3907 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3908 if ${am_cv_prog_cc_c_o+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913
3914 int
3915 main ()
3916 {
3917
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 # Make sure it works both with $CC and with simple cc.
3923 # Following AC_PROG_CC_C_O, we do the test twice because some
3924 # compilers refuse to overwrite an existing .o file with -o,
3925 # though they will create one.
3926 am_cv_prog_cc_c_o=yes
3927 for am_i in 1 2; do
3928 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3929 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } \
3933 && test -f conftest2.$ac_objext; then
3934 : OK
3935 else
3936 am_cv_prog_cc_c_o=no
3937 break
3938 fi
3939 done
3940 rm -f core conftest*
3941 unset am_i
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3944 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3945 if test "$am_cv_prog_cc_c_o" != yes; then
3946 # Losing compiler, so override with the script.
3947 # FIXME: It is wrong to rewrite CC.
3948 # But if we don't then we get into trouble of one sort or another.
3949 # A longer-term fix would be to have automake use am__CC in this case,
3950 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3951 CC="$am_aux_dir/compile $CC"
3952 fi
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959
3960 depcc="$CC" am_compiler_list=
3961
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3963 $as_echo_n "checking dependency style of $depcc... " >&6; }
3964 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3968 # We make a subdir and do the tests there. Otherwise we can end up
3969 # making bogus files that we don't know about and never remove. For
3970 # instance it was reported that on HP-UX the gcc test will end up
3971 # making a dummy file named 'D' -- because '-MD' means "put the output
3972 # in D".
3973 rm -rf conftest.dir
3974 mkdir conftest.dir
3975 # Copy depcomp to subdir because otherwise we won't find it if we're
3976 # using a relative directory.
3977 cp "$am_depcomp" conftest.dir
3978 cd conftest.dir
3979 # We will build objects and dependencies in a subdirectory because
3980 # it helps to detect inapplicable dependency modes. For instance
3981 # both Tru64's cc and ICC support -MD to output dependencies as a
3982 # side effect of compilation, but ICC will put the dependencies in
3983 # the current directory while Tru64 will put them in the object
3984 # directory.
3985 mkdir sub
3986
3987 am_cv_CC_dependencies_compiler_type=none
3988 if test "$am_compiler_list" = ""; then
3989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3990 fi
3991 am__universal=false
3992 case " $depcc " in #(
3993 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3994 esac
3995
3996 for depmode in $am_compiler_list; do
3997 # Setup a source with many dependencies, because some compilers
3998 # like to wrap large dependency lists on column 80 (with \), and
3999 # we should not choose a depcomp mode which is confused by this.
4000 #
4001 # We need to recreate these files for each test, as the compiler may
4002 # overwrite some of them when testing with obscure command lines.
4003 # This happens at least with the AIX C compiler.
4004 : > sub/conftest.c
4005 for i in 1 2 3 4 5 6; do
4006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4007 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4008 # Solaris 10 /bin/sh.
4009 echo '/* dummy */' > sub/conftst$i.h
4010 done
4011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4012
4013 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4014 # mode. It turns out that the SunPro C++ compiler does not properly
4015 # handle '-M -o', and we need to detect this. Also, some Intel
4016 # versions had trouble with output in subdirs.
4017 am__obj=sub/conftest.${OBJEXT-o}
4018 am__minus_obj="-o $am__obj"
4019 case $depmode in
4020 gcc)
4021 # This depmode causes a compiler race in universal mode.
4022 test "$am__universal" = false || continue
4023 ;;
4024 nosideeffect)
4025 # After this tag, mechanisms are not by side-effect, so they'll
4026 # only be used when explicitly requested.
4027 if test "x$enable_dependency_tracking" = xyes; then
4028 continue
4029 else
4030 break
4031 fi
4032 ;;
4033 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4034 # This compiler won't grok '-c -o', but also, the minuso test has
4035 # not run yet. These depmodes are late enough in the game, and
4036 # so weak that their functioning should not be impacted.
4037 am__obj=conftest.${OBJEXT-o}
4038 am__minus_obj=
4039 ;;
4040 none) break ;;
4041 esac
4042 if depmode=$depmode \
4043 source=sub/conftest.c object=$am__obj \
4044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4045 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4046 >/dev/null 2>conftest.err &&
4047 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4049 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4051 # icc doesn't choke on unknown options, it will just issue warnings
4052 # or remarks (even with -Werror). So we grep stderr for any message
4053 # that says an option was ignored or not supported.
4054 # When given -MP, icc 7.0 and 7.1 complain thusly:
4055 # icc: Command line warning: ignoring option '-M'; no argument required
4056 # The diagnosis changed in icc 8.0:
4057 # icc: Command line remark: option '-MP' not supported
4058 if (grep 'ignoring option' conftest.err ||
4059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4060 am_cv_CC_dependencies_compiler_type=$depmode
4061 break
4062 fi
4063 fi
4064 done
4065
4066 cd ..
4067 rm -rf conftest.dir
4068 else
4069 am_cv_CC_dependencies_compiler_type=none
4070 fi
4071
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4074 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4076
4077 if
4078 test "x$enable_dependency_tracking" != xno \
4079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4080 am__fastdepCC_TRUE=
4081 am__fastdepCC_FALSE='#'
4082 else
4083 am__fastdepCC_TRUE='#'
4084 am__fastdepCC_FALSE=
4085 fi
4086
4087
4088
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4095 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4096 # On Suns, sometimes $CPP names a directory.
4097 if test -n "$CPP" && test -d "$CPP"; then
4098 CPP=
4099 fi
4100 if test -z "$CPP"; then
4101 if ${ac_cv_prog_CPP+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 # Double quotes because CPP needs to be expanded
4105 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4106 do
4107 ac_preproc_ok=false
4108 for ac_c_preproc_warn_flag in '' yes
4109 do
4110 # Use a header file that comes with gcc, so configuring glibc
4111 # with a fresh cross-compiler works.
4112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 # <limits.h> exists even on freestanding compilers.
4114 # On the NeXT, cc -E runs the code through the compiler's parser,
4115 # not just through cpp. "Syntax error" is here to catch this case.
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118 #ifdef __STDC__
4119 # include <limits.h>
4120 #else
4121 # include <assert.h>
4122 #endif
4123 Syntax error
4124 _ACEOF
4125 if ac_fn_c_try_cpp "$LINENO"; then :
4126
4127 else
4128 # Broken: fails on valid input.
4129 continue
4130 fi
4131 rm -f conftest.err conftest.i conftest.$ac_ext
4132
4133 # OK, works on sane cases. Now check whether nonexistent headers
4134 # can be detected and how.
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <ac_nonexistent.h>
4138 _ACEOF
4139 if ac_fn_c_try_cpp "$LINENO"; then :
4140 # Broken: success on invalid input.
4141 continue
4142 else
4143 # Passes both tests.
4144 ac_preproc_ok=:
4145 break
4146 fi
4147 rm -f conftest.err conftest.i conftest.$ac_ext
4148
4149 done
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.i conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then :
4153 break
4154 fi
4155
4156 done
4157 ac_cv_prog_CPP=$CPP
4158
4159 fi
4160 CPP=$ac_cv_prog_CPP
4161 else
4162 ac_cv_prog_CPP=$CPP
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4165 $as_echo "$CPP" >&6; }
4166 ac_preproc_ok=false
4167 for ac_c_preproc_warn_flag in '' yes
4168 do
4169 # Use a header file that comes with gcc, so configuring glibc
4170 # with a fresh cross-compiler works.
4171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4172 # <limits.h> exists even on freestanding compilers.
4173 # On the NeXT, cc -E runs the code through the compiler's parser,
4174 # not just through cpp. "Syntax error" is here to catch this case.
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177 #ifdef __STDC__
4178 # include <limits.h>
4179 #else
4180 # include <assert.h>
4181 #endif
4182 Syntax error
4183 _ACEOF
4184 if ac_fn_c_try_cpp "$LINENO"; then :
4185
4186 else
4187 # Broken: fails on valid input.
4188 continue
4189 fi
4190 rm -f conftest.err conftest.i conftest.$ac_ext
4191
4192 # OK, works on sane cases. Now check whether nonexistent headers
4193 # can be detected and how.
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 #include <ac_nonexistent.h>
4197 _ACEOF
4198 if ac_fn_c_try_cpp "$LINENO"; then :
4199 # Broken: success on invalid input.
4200 continue
4201 else
4202 # Passes both tests.
4203 ac_preproc_ok=:
4204 break
4205 fi
4206 rm -f conftest.err conftest.i conftest.$ac_ext
4207
4208 done
4209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4210 rm -f conftest.i conftest.err conftest.$ac_ext
4211 if $ac_preproc_ok; then :
4212
4213 else
4214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4217 See \`config.log' for more details" "$LINENO" 5; }
4218 fi
4219
4220 ac_ext=c
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4229 if ${ac_cv_path_GREP+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -z "$GREP"; then
4233 ac_path_GREP_found=false
4234 # Loop through the user's path and test for each of PROGNAME-LIST
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237 do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_prog in grep ggrep; do
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4243 as_fn_executable_p "$ac_path_GREP" || continue
4244 # Check for GNU ac_path_GREP and select it if it is found.
4245 # Check for GNU $ac_path_GREP
4246 case `"$ac_path_GREP" --version 2>&1` in
4247 *GNU*)
4248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4249 *)
4250 ac_count=0
4251 $as_echo_n 0123456789 >"conftest.in"
4252 while :
4253 do
4254 cat "conftest.in" "conftest.in" >"conftest.tmp"
4255 mv "conftest.tmp" "conftest.in"
4256 cp "conftest.in" "conftest.nl"
4257 $as_echo 'GREP' >> "conftest.nl"
4258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260 as_fn_arith $ac_count + 1 && ac_count=$as_val
4261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4262 # Best one so far, save it but keep looking for a better one
4263 ac_cv_path_GREP="$ac_path_GREP"
4264 ac_path_GREP_max=$ac_count
4265 fi
4266 # 10*(2^10) chars as input seems more than enough
4267 test $ac_count -gt 10 && break
4268 done
4269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270 esac
4271
4272 $ac_path_GREP_found && break 3
4273 done
4274 done
4275 done
4276 IFS=$as_save_IFS
4277 if test -z "$ac_cv_path_GREP"; then
4278 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279 fi
4280 else
4281 ac_cv_path_GREP=$GREP
4282 fi
4283
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4286 $as_echo "$ac_cv_path_GREP" >&6; }
4287 GREP="$ac_cv_path_GREP"
4288
4289
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4291 $as_echo_n "checking for egrep... " >&6; }
4292 if ${ac_cv_path_EGREP+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4296 then ac_cv_path_EGREP="$GREP -E"
4297 else
4298 if test -z "$EGREP"; then
4299 ac_path_EGREP_found=false
4300 # Loop through the user's path and test for each of PROGNAME-LIST
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303 do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_prog in egrep; do
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4309 as_fn_executable_p "$ac_path_EGREP" || continue
4310 # Check for GNU ac_path_EGREP and select it if it is found.
4311 # Check for GNU $ac_path_EGREP
4312 case `"$ac_path_EGREP" --version 2>&1` in
4313 *GNU*)
4314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4315 *)
4316 ac_count=0
4317 $as_echo_n 0123456789 >"conftest.in"
4318 while :
4319 do
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'EGREP' >> "conftest.nl"
4324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326 as_fn_arith $ac_count + 1 && ac_count=$as_val
4327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_EGREP="$ac_path_EGREP"
4330 ac_path_EGREP_max=$ac_count
4331 fi
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4334 done
4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336 esac
4337
4338 $ac_path_EGREP_found && break 3
4339 done
4340 done
4341 done
4342 IFS=$as_save_IFS
4343 if test -z "$ac_cv_path_EGREP"; then
4344 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345 fi
4346 else
4347 ac_cv_path_EGREP=$EGREP
4348 fi
4349
4350 fi
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4353 $as_echo "$ac_cv_path_EGREP" >&6; }
4354 EGREP="$ac_cv_path_EGREP"
4355
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4358 $as_echo_n "checking for ANSI C header files... " >&6; }
4359 if ${ac_cv_header_stdc+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <stdlib.h>
4365 #include <stdarg.h>
4366 #include <string.h>
4367 #include <float.h>
4368
4369 int
4370 main ()
4371 {
4372
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"; then :
4378 ac_cv_header_stdc=yes
4379 else
4380 ac_cv_header_stdc=no
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383
4384 if test $ac_cv_header_stdc = yes; then
4385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #include <string.h>
4389
4390 _ACEOF
4391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4392 $EGREP "memchr" >/dev/null 2>&1; then :
4393
4394 else
4395 ac_cv_header_stdc=no
4396 fi
4397 rm -f conftest*
4398
4399 fi
4400
4401 if test $ac_cv_header_stdc = yes; then
4402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <stdlib.h>
4406
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "free" >/dev/null 2>&1; then :
4410
4411 else
4412 ac_cv_header_stdc=no
4413 fi
4414 rm -f conftest*
4415
4416 fi
4417
4418 if test $ac_cv_header_stdc = yes; then
4419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4420 if test "$cross_compiling" = yes; then :
4421 :
4422 else
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #include <ctype.h>
4426 #include <stdlib.h>
4427 #if ((' ' & 0x0FF) == 0x020)
4428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4430 #else
4431 # define ISLOWER(c) \
4432 (('a' <= (c) && (c) <= 'i') \
4433 || ('j' <= (c) && (c) <= 'r') \
4434 || ('s' <= (c) && (c) <= 'z'))
4435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4436 #endif
4437
4438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4439 int
4440 main ()
4441 {
4442 int i;
4443 for (i = 0; i < 256; i++)
4444 if (XOR (islower (i), ISLOWER (i))
4445 || toupper (i) != TOUPPER (i))
4446 return 2;
4447 return 0;
4448 }
4449 _ACEOF
4450 if ac_fn_c_try_run "$LINENO"; then :
4451
4452 else
4453 ac_cv_header_stdc=no
4454 fi
4455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4456 conftest.$ac_objext conftest.beam conftest.$ac_ext
4457 fi
4458
4459 fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4462 $as_echo "$ac_cv_header_stdc" >&6; }
4463 if test $ac_cv_header_stdc = yes; then
4464
4465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4466
4467 fi
4468
4469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4471 inttypes.h stdint.h unistd.h
4472 do :
4473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4475 "
4476 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4477 cat >>confdefs.h <<_ACEOF
4478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4479 _ACEOF
4480
4481 fi
4482
4483 done
4484
4485
4486
4487 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4488 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4489 MINIX=yes
4490 else
4491 MINIX=
4492 fi
4493
4494
4495 if test "$MINIX" = yes; then
4496
4497 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4498
4499
4500 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4501
4502
4503 $as_echo "#define _MINIX 1" >>confdefs.h
4504
4505 fi
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4509 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4510 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515
4516 # define __EXTENSIONS__ 1
4517 $ac_includes_default
4518 int
4519 main ()
4520 {
4521
4522 ;
4523 return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_c_try_compile "$LINENO"; then :
4527 ac_cv_safe_to_define___extensions__=yes
4528 else
4529 ac_cv_safe_to_define___extensions__=no
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 fi
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4534 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4535 test $ac_cv_safe_to_define___extensions__ = yes &&
4536 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4537
4538 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4539
4540 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4541
4542 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4543
4544 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4545
4546
4547 ac_ext=c
4548 ac_cpp='$CPP $CPPFLAGS'
4549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_prog_CC+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$CC"; then
4561 ac_cv_prog_CC="$CC" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 CC=$ac_cv_prog_CC
4581 if test -n "$CC"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4583 $as_echo "$CC" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589
4590 fi
4591 if test -z "$ac_cv_prog_CC"; then
4592 ac_ct_CC=$CC
4593 # Extract the first word of "gcc", so it can be a program name with args.
4594 set dummy gcc; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$ac_ct_CC"; then
4601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_ac_ct_CC="gcc"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4621 if test -n "$ac_ct_CC"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4623 $as_echo "$ac_ct_CC" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629 if test "x$ac_ct_CC" = x; then
4630 CC=""
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 CC=$ac_ct_CC
4639 fi
4640 else
4641 CC="$ac_cv_prog_CC"
4642 fi
4643
4644 if test -z "$CC"; then
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4647 set dummy ${ac_tool_prefix}cc; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_prog_CC+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test -n "$CC"; then
4654 ac_cv_prog_CC="$CC" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_CC="${ac_tool_prefix}cc"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 CC=$ac_cv_prog_CC
4674 if test -n "$CC"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4676 $as_echo "$CC" >&6; }
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4680 fi
4681
4682
4683 fi
4684 fi
4685 if test -z "$CC"; then
4686 # Extract the first word of "cc", so it can be a program name with args.
4687 set dummy cc; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_CC+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$CC"; then
4694 ac_cv_prog_CC="$CC" # Let the user override the test.
4695 else
4696 ac_prog_rejected=no
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4705 ac_prog_rejected=yes
4706 continue
4707 fi
4708 ac_cv_prog_CC="cc"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716 if test $ac_prog_rejected = yes; then
4717 # We found a bogon in the path, so make sure we never use it.
4718 set dummy $ac_cv_prog_CC
4719 shift
4720 if test $# != 0; then
4721 # We chose a different compiler from the bogus one.
4722 # However, it has the same basename, so the bogon will be chosen
4723 # first if we set CC to just the basename; use the full file name.
4724 shift
4725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4726 fi
4727 fi
4728 fi
4729 fi
4730 CC=$ac_cv_prog_CC
4731 if test -n "$CC"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4733 $as_echo "$CC" >&6; }
4734 else
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738
4739
4740 fi
4741 if test -z "$CC"; then
4742 if test -n "$ac_tool_prefix"; then
4743 for ac_prog in cl.exe
4744 do
4745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_prog_CC+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -n "$CC"; then
4753 ac_cv_prog_CC="$CC" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4765 fi
4766 done
4767 done
4768 IFS=$as_save_IFS
4769
4770 fi
4771 fi
4772 CC=$ac_cv_prog_CC
4773 if test -n "$CC"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4775 $as_echo "$CC" >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 fi
4780
4781
4782 test -n "$CC" && break
4783 done
4784 fi
4785 if test -z "$CC"; then
4786 ac_ct_CC=$CC
4787 for ac_prog in cl.exe
4788 do
4789 # Extract the first word of "$ac_prog", so it can be a program name with args.
4790 set dummy $ac_prog; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 if test -n "$ac_ct_CC"; then
4797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4806 ac_cv_prog_ac_ct_CC="$ac_prog"
4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 break 2
4809 fi
4810 done
4811 done
4812 IFS=$as_save_IFS
4813
4814 fi
4815 fi
4816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4817 if test -n "$ac_ct_CC"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4819 $as_echo "$ac_ct_CC" >&6; }
4820 else
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4823 fi
4824
4825
4826 test -n "$ac_ct_CC" && break
4827 done
4828
4829 if test "x$ac_ct_CC" = x; then
4830 CC=""
4831 else
4832 case $cross_compiling:$ac_tool_warned in
4833 yes:)
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4836 ac_tool_warned=yes ;;
4837 esac
4838 CC=$ac_ct_CC
4839 fi
4840 fi
4841
4842 fi
4843
4844
4845 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4847 as_fn_error $? "no acceptable C compiler found in \$PATH
4848 See \`config.log' for more details" "$LINENO" 5; }
4849
4850 # Provide some information about the compiler.
4851 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4852 set X $ac_compile
4853 ac_compiler=$2
4854 for ac_option in --version -v -V -qversion; do
4855 { { ac_try="$ac_compiler $ac_option >&5"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861 $as_echo "$ac_try_echo"; } >&5
4862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4863 ac_status=$?
4864 if test -s conftest.err; then
4865 sed '10a\
4866 ... rest of stderr output deleted ...
4867 10q' conftest.err >conftest.er1
4868 cat conftest.er1 >&5
4869 fi
4870 rm -f conftest.er1 conftest.err
4871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4872 test $ac_status = 0; }
4873 done
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4876 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4877 if ${ac_cv_c_compiler_gnu+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4882
4883 int
4884 main ()
4885 {
4886 #ifndef __GNUC__
4887 choke me
4888 #endif
4889
4890 ;
4891 return 0;
4892 }
4893 _ACEOF
4894 if ac_fn_c_try_compile "$LINENO"; then :
4895 ac_compiler_gnu=yes
4896 else
4897 ac_compiler_gnu=no
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4901
4902 fi
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4904 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4905 if test $ac_compiler_gnu = yes; then
4906 GCC=yes
4907 else
4908 GCC=
4909 fi
4910 ac_test_CFLAGS=${CFLAGS+set}
4911 ac_save_CFLAGS=$CFLAGS
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4913 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4914 if ${ac_cv_prog_cc_g+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 ac_save_c_werror_flag=$ac_c_werror_flag
4918 ac_c_werror_flag=yes
4919 ac_cv_prog_cc_g=no
4920 CFLAGS="-g"
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923
4924 int
4925 main ()
4926 {
4927
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933 ac_cv_prog_cc_g=yes
4934 else
4935 CFLAGS=""
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938
4939 int
4940 main ()
4941 {
4942
4943 ;
4944 return 0;
4945 }
4946 _ACEOF
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948
4949 else
4950 ac_c_werror_flag=$ac_save_c_werror_flag
4951 CFLAGS="-g"
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954
4955 int
4956 main ()
4957 {
4958
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964 ac_cv_prog_cc_g=yes
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 fi
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 ac_c_werror_flag=$ac_save_c_werror_flag
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4974 $as_echo "$ac_cv_prog_cc_g" >&6; }
4975 if test "$ac_test_CFLAGS" = set; then
4976 CFLAGS=$ac_save_CFLAGS
4977 elif test $ac_cv_prog_cc_g = yes; then
4978 if test "$GCC" = yes; then
4979 CFLAGS="-g -O2"
4980 else
4981 CFLAGS="-g"
4982 fi
4983 else
4984 if test "$GCC" = yes; then
4985 CFLAGS="-O2"
4986 else
4987 CFLAGS=
4988 fi
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4991 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4992 if ${ac_cv_prog_cc_c89+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 ac_cv_prog_cc_c89=no
4996 ac_save_CC=$CC
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 #include <stdarg.h>
5000 #include <stdio.h>
5001 struct stat;
5002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5003 struct buf { int x; };
5004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5005 static char *e (p, i)
5006 char **p;
5007 int i;
5008 {
5009 return p[i];
5010 }
5011 static char *f (char * (*g) (char **, int), char **p, ...)
5012 {
5013 char *s;
5014 va_list v;
5015 va_start (v,p);
5016 s = g (p, va_arg (v,int));
5017 va_end (v);
5018 return s;
5019 }
5020
5021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5022 function prototypes and stuff, but not '\xHH' hex character constants.
5023 These don't provoke an error unfortunately, instead are silently treated
5024 as 'x'. The following induces an error, until -std is added to get
5025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5026 array size at least. It's necessary to write '\x00'==0 to get something
5027 that's true only with -std. */
5028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5029
5030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5031 inside strings and character constants. */
5032 #define FOO(x) 'x'
5033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5034
5035 int test (int i, double x);
5036 struct s1 {int (*f) (int a);};
5037 struct s2 {int (*f) (double a);};
5038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5039 int argc;
5040 char **argv;
5041 int
5042 main ()
5043 {
5044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5045 ;
5046 return 0;
5047 }
5048 _ACEOF
5049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5051 do
5052 CC="$ac_save_CC $ac_arg"
5053 if ac_fn_c_try_compile "$LINENO"; then :
5054 ac_cv_prog_cc_c89=$ac_arg
5055 fi
5056 rm -f core conftest.err conftest.$ac_objext
5057 test "x$ac_cv_prog_cc_c89" != "xno" && break
5058 done
5059 rm -f conftest.$ac_ext
5060 CC=$ac_save_CC
5061
5062 fi
5063 # AC_CACHE_VAL
5064 case "x$ac_cv_prog_cc_c89" in
5065 x)
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5067 $as_echo "none needed" >&6; } ;;
5068 xno)
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5070 $as_echo "unsupported" >&6; } ;;
5071 *)
5072 CC="$CC $ac_cv_prog_cc_c89"
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5075 esac
5076 if test "x$ac_cv_prog_cc_c89" != xno; then :
5077
5078 fi
5079
5080 ac_ext=c
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085
5086 ac_ext=c
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5092 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5093 if ${am_cv_prog_cc_c_o+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098
5099 int
5100 main ()
5101 {
5102
5103 ;
5104 return 0;
5105 }
5106 _ACEOF
5107 # Make sure it works both with $CC and with simple cc.
5108 # Following AC_PROG_CC_C_O, we do the test twice because some
5109 # compilers refuse to overwrite an existing .o file with -o,
5110 # though they will create one.
5111 am_cv_prog_cc_c_o=yes
5112 for am_i in 1 2; do
5113 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5114 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } \
5118 && test -f conftest2.$ac_objext; then
5119 : OK
5120 else
5121 am_cv_prog_cc_c_o=no
5122 break
5123 fi
5124 done
5125 rm -f core conftest*
5126 unset am_i
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5129 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5130 if test "$am_cv_prog_cc_c_o" != yes; then
5131 # Losing compiler, so override with the script.
5132 # FIXME: It is wrong to rewrite CC.
5133 # But if we don't then we get into trouble of one sort or another.
5134 # A longer-term fix would be to have automake use am__CC in this case,
5135 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5136 CC="$am_aux_dir/compile $CC"
5137 fi
5138 ac_ext=c
5139 ac_cpp='$CPP $CPPFLAGS'
5140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143
5144
5145 depcc="$CC" am_compiler_list=
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5148 $as_echo_n "checking dependency style of $depcc... " >&6; }
5149 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5153 # We make a subdir and do the tests there. Otherwise we can end up
5154 # making bogus files that we don't know about and never remove. For
5155 # instance it was reported that on HP-UX the gcc test will end up
5156 # making a dummy file named 'D' -- because '-MD' means "put the output
5157 # in D".
5158 rm -rf conftest.dir
5159 mkdir conftest.dir
5160 # Copy depcomp to subdir because otherwise we won't find it if we're
5161 # using a relative directory.
5162 cp "$am_depcomp" conftest.dir
5163 cd conftest.dir
5164 # We will build objects and dependencies in a subdirectory because
5165 # it helps to detect inapplicable dependency modes. For instance
5166 # both Tru64's cc and ICC support -MD to output dependencies as a
5167 # side effect of compilation, but ICC will put the dependencies in
5168 # the current directory while Tru64 will put them in the object
5169 # directory.
5170 mkdir sub
5171
5172 am_cv_CC_dependencies_compiler_type=none
5173 if test "$am_compiler_list" = ""; then
5174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5175 fi
5176 am__universal=false
5177 case " $depcc " in #(
5178 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5179 esac
5180
5181 for depmode in $am_compiler_list; do
5182 # Setup a source with many dependencies, because some compilers
5183 # like to wrap large dependency lists on column 80 (with \), and
5184 # we should not choose a depcomp mode which is confused by this.
5185 #
5186 # We need to recreate these files for each test, as the compiler may
5187 # overwrite some of them when testing with obscure command lines.
5188 # This happens at least with the AIX C compiler.
5189 : > sub/conftest.c
5190 for i in 1 2 3 4 5 6; do
5191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5192 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5193 # Solaris 10 /bin/sh.
5194 echo '/* dummy */' > sub/conftst$i.h
5195 done
5196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5197
5198 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5199 # mode. It turns out that the SunPro C++ compiler does not properly
5200 # handle '-M -o', and we need to detect this. Also, some Intel
5201 # versions had trouble with output in subdirs.
5202 am__obj=sub/conftest.${OBJEXT-o}
5203 am__minus_obj="-o $am__obj"
5204 case $depmode in
5205 gcc)
5206 # This depmode causes a compiler race in universal mode.
5207 test "$am__universal" = false || continue
5208 ;;
5209 nosideeffect)
5210 # After this tag, mechanisms are not by side-effect, so they'll
5211 # only be used when explicitly requested.
5212 if test "x$enable_dependency_tracking" = xyes; then
5213 continue
5214 else
5215 break
5216 fi
5217 ;;
5218 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5219 # This compiler won't grok '-c -o', but also, the minuso test has
5220 # not run yet. These depmodes are late enough in the game, and
5221 # so weak that their functioning should not be impacted.
5222 am__obj=conftest.${OBJEXT-o}
5223 am__minus_obj=
5224 ;;
5225 none) break ;;
5226 esac
5227 if depmode=$depmode \
5228 source=sub/conftest.c object=$am__obj \
5229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5230 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5231 >/dev/null 2>conftest.err &&
5232 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5233 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5234 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5235 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5236 # icc doesn't choke on unknown options, it will just issue warnings
5237 # or remarks (even with -Werror). So we grep stderr for any message
5238 # that says an option was ignored or not supported.
5239 # When given -MP, icc 7.0 and 7.1 complain thusly:
5240 # icc: Command line warning: ignoring option '-M'; no argument required
5241 # The diagnosis changed in icc 8.0:
5242 # icc: Command line remark: option '-MP' not supported
5243 if (grep 'ignoring option' conftest.err ||
5244 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5245 am_cv_CC_dependencies_compiler_type=$depmode
5246 break
5247 fi
5248 fi
5249 done
5250
5251 cd ..
5252 rm -rf conftest.dir
5253 else
5254 am_cv_CC_dependencies_compiler_type=none
5255 fi
5256
5257 fi
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5259 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5260 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5261
5262 if
5263 test "x$enable_dependency_tracking" != xno \
5264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5265 am__fastdepCC_TRUE=
5266 am__fastdepCC_FALSE='#'
5267 else
5268 am__fastdepCC_TRUE='#'
5269 am__fastdepCC_FALSE=
5270 fi
5271
5272
5273 ac_ext=cpp
5274 ac_cpp='$CXXCPP $CPPFLAGS'
5275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5278 if test -z "$CXX"; then
5279 if test -n "$CCC"; then
5280 CXX=$CCC
5281 else
5282 if test -n "$ac_tool_prefix"; then
5283 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5284 do
5285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_CXX+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$CXX"; then
5293 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5305 fi
5306 done
5307 done
5308 IFS=$as_save_IFS
5309
5310 fi
5311 fi
5312 CXX=$ac_cv_prog_CXX
5313 if test -n "$CXX"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5315 $as_echo "$CXX" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321
5322 test -n "$CXX" && break
5323 done
5324 fi
5325 if test -z "$CXX"; then
5326 ac_ct_CXX=$CXX
5327 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5328 do
5329 # Extract the first word of "$ac_prog", so it can be a program name with args.
5330 set dummy $ac_prog; ac_word=$2
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332 $as_echo_n "checking for $ac_word... " >&6; }
5333 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 if test -n "$ac_ct_CXX"; then
5337 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5338 else
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346 ac_cv_prog_ac_ct_CXX="$ac_prog"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5349 fi
5350 done
5351 done
5352 IFS=$as_save_IFS
5353
5354 fi
5355 fi
5356 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5357 if test -n "$ac_ct_CXX"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5359 $as_echo "$ac_ct_CXX" >&6; }
5360 else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 fi
5364
5365
5366 test -n "$ac_ct_CXX" && break
5367 done
5368
5369 if test "x$ac_ct_CXX" = x; then
5370 CXX="g++"
5371 else
5372 case $cross_compiling:$ac_tool_warned in
5373 yes:)
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5376 ac_tool_warned=yes ;;
5377 esac
5378 CXX=$ac_ct_CXX
5379 fi
5380 fi
5381
5382 fi
5383 fi
5384 # Provide some information about the compiler.
5385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5386 set X $ac_compile
5387 ac_compiler=$2
5388 for ac_option in --version -v -V -qversion; do
5389 { { ac_try="$ac_compiler $ac_option >&5"
5390 case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393 esac
5394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5395 $as_echo "$ac_try_echo"; } >&5
5396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5397 ac_status=$?
5398 if test -s conftest.err; then
5399 sed '10a\
5400 ... rest of stderr output deleted ...
5401 10q' conftest.err >conftest.er1
5402 cat conftest.er1 >&5
5403 fi
5404 rm -f conftest.er1 conftest.err
5405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5406 test $ac_status = 0; }
5407 done
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5410 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5411 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416
5417 int
5418 main ()
5419 {
5420 #ifndef __GNUC__
5421 choke me
5422 #endif
5423
5424 ;
5425 return 0;
5426 }
5427 _ACEOF
5428 if ac_fn_cxx_try_compile "$LINENO"; then :
5429 ac_compiler_gnu=yes
5430 else
5431 ac_compiler_gnu=no
5432 fi
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5435
5436 fi
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5438 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5439 if test $ac_compiler_gnu = yes; then
5440 GXX=yes
5441 else
5442 GXX=
5443 fi
5444 ac_test_CXXFLAGS=${CXXFLAGS+set}
5445 ac_save_CXXFLAGS=$CXXFLAGS
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5447 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5448 if ${ac_cv_prog_cxx_g+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5452 ac_cxx_werror_flag=yes
5453 ac_cv_prog_cxx_g=no
5454 CXXFLAGS="-g"
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457
5458 int
5459 main ()
5460 {
5461
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 if ac_fn_cxx_try_compile "$LINENO"; then :
5467 ac_cv_prog_cxx_g=yes
5468 else
5469 CXXFLAGS=""
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472
5473 int
5474 main ()
5475 {
5476
5477 ;
5478 return 0;
5479 }
5480 _ACEOF
5481 if ac_fn_cxx_try_compile "$LINENO"; then :
5482
5483 else
5484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5485 CXXFLAGS="-g"
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488
5489 int
5490 main ()
5491 {
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_cxx_try_compile "$LINENO"; then :
5498 ac_cv_prog_cxx_g=yes
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 fi
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5508 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5509 if test "$ac_test_CXXFLAGS" = set; then
5510 CXXFLAGS=$ac_save_CXXFLAGS
5511 elif test $ac_cv_prog_cxx_g = yes; then
5512 if test "$GXX" = yes; then
5513 CXXFLAGS="-g -O2"
5514 else
5515 CXXFLAGS="-g"
5516 fi
5517 else
5518 if test "$GXX" = yes; then
5519 CXXFLAGS="-O2"
5520 else
5521 CXXFLAGS=
5522 fi
5523 fi
5524 ac_ext=c
5525 ac_cpp='$CPP $CPPFLAGS'
5526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5529
5530 depcc="$CXX" am_compiler_list=
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5533 $as_echo_n "checking dependency style of $depcc... " >&6; }
5534 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5538 # We make a subdir and do the tests there. Otherwise we can end up
5539 # making bogus files that we don't know about and never remove. For
5540 # instance it was reported that on HP-UX the gcc test will end up
5541 # making a dummy file named 'D' -- because '-MD' means "put the output
5542 # in D".
5543 rm -rf conftest.dir
5544 mkdir conftest.dir
5545 # Copy depcomp to subdir because otherwise we won't find it if we're
5546 # using a relative directory.
5547 cp "$am_depcomp" conftest.dir
5548 cd conftest.dir
5549 # We will build objects and dependencies in a subdirectory because
5550 # it helps to detect inapplicable dependency modes. For instance
5551 # both Tru64's cc and ICC support -MD to output dependencies as a
5552 # side effect of compilation, but ICC will put the dependencies in
5553 # the current directory while Tru64 will put them in the object
5554 # directory.
5555 mkdir sub
5556
5557 am_cv_CXX_dependencies_compiler_type=none
5558 if test "$am_compiler_list" = ""; then
5559 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5560 fi
5561 am__universal=false
5562 case " $depcc " in #(
5563 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5564 esac
5565
5566 for depmode in $am_compiler_list; do
5567 # Setup a source with many dependencies, because some compilers
5568 # like to wrap large dependency lists on column 80 (with \), and
5569 # we should not choose a depcomp mode which is confused by this.
5570 #
5571 # We need to recreate these files for each test, as the compiler may
5572 # overwrite some of them when testing with obscure command lines.
5573 # This happens at least with the AIX C compiler.
5574 : > sub/conftest.c
5575 for i in 1 2 3 4 5 6; do
5576 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5577 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5578 # Solaris 10 /bin/sh.
5579 echo '/* dummy */' > sub/conftst$i.h
5580 done
5581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5582
5583 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5584 # mode. It turns out that the SunPro C++ compiler does not properly
5585 # handle '-M -o', and we need to detect this. Also, some Intel
5586 # versions had trouble with output in subdirs.
5587 am__obj=sub/conftest.${OBJEXT-o}
5588 am__minus_obj="-o $am__obj"
5589 case $depmode in
5590 gcc)
5591 # This depmode causes a compiler race in universal mode.
5592 test "$am__universal" = false || continue
5593 ;;
5594 nosideeffect)
5595 # After this tag, mechanisms are not by side-effect, so they'll
5596 # only be used when explicitly requested.
5597 if test "x$enable_dependency_tracking" = xyes; then
5598 continue
5599 else
5600 break
5601 fi
5602 ;;
5603 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5604 # This compiler won't grok '-c -o', but also, the minuso test has
5605 # not run yet. These depmodes are late enough in the game, and
5606 # so weak that their functioning should not be impacted.
5607 am__obj=conftest.${OBJEXT-o}
5608 am__minus_obj=
5609 ;;
5610 none) break ;;
5611 esac
5612 if depmode=$depmode \
5613 source=sub/conftest.c object=$am__obj \
5614 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5615 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5616 >/dev/null 2>conftest.err &&
5617 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5618 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5619 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5620 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5621 # icc doesn't choke on unknown options, it will just issue warnings
5622 # or remarks (even with -Werror). So we grep stderr for any message
5623 # that says an option was ignored or not supported.
5624 # When given -MP, icc 7.0 and 7.1 complain thusly:
5625 # icc: Command line warning: ignoring option '-M'; no argument required
5626 # The diagnosis changed in icc 8.0:
5627 # icc: Command line remark: option '-MP' not supported
5628 if (grep 'ignoring option' conftest.err ||
5629 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5630 am_cv_CXX_dependencies_compiler_type=$depmode
5631 break
5632 fi
5633 fi
5634 done
5635
5636 cd ..
5637 rm -rf conftest.dir
5638 else
5639 am_cv_CXX_dependencies_compiler_type=none
5640 fi
5641
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5644 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5645 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5646
5647 if
5648 test "x$enable_dependency_tracking" != xno \
5649 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5650 am__fastdepCXX_TRUE=
5651 am__fastdepCXX_FALSE='#'
5652 else
5653 am__fastdepCXX_TRUE='#'
5654 am__fastdepCXX_FALSE=
5655 fi
5656
5657
5658
5659 if test -n "$ac_tool_prefix"; then
5660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5661 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_RANLIB+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -n "$RANLIB"; then
5668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5680 fi
5681 done
5682 done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 RANLIB=$ac_cv_prog_RANLIB
5688 if test -n "$RANLIB"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5690 $as_echo "$RANLIB" >&6; }
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5694 fi
5695
5696
5697 fi
5698 if test -z "$ac_cv_prog_RANLIB"; then
5699 ac_ct_RANLIB=$RANLIB
5700 # Extract the first word of "ranlib", so it can be a program name with args.
5701 set dummy ranlib; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$ac_ct_RANLIB"; then
5708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_ac_ct_RANLIB="ranlib"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5723 IFS=$as_save_IFS
5724
5725 fi
5726 fi
5727 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5728 if test -n "$ac_ct_RANLIB"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5730 $as_echo "$ac_ct_RANLIB" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736 if test "x$ac_ct_RANLIB" = x; then
5737 RANLIB=":"
5738 else
5739 case $cross_compiling:$ac_tool_warned in
5740 yes:)
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743 ac_tool_warned=yes ;;
5744 esac
5745 RANLIB=$ac_ct_RANLIB
5746 fi
5747 else
5748 RANLIB="$ac_cv_prog_RANLIB"
5749 fi
5750
5751 if test -n "$ac_tool_prefix"; then
5752 for ac_prog in ar lib "link -lib"
5753 do
5754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_AR+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if test -n "$AR"; then
5762 ac_cv_prog_AR="$AR" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5774 fi
5775 done
5776 done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 AR=$ac_cv_prog_AR
5782 if test -n "$AR"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5784 $as_echo "$AR" >&6; }
5785 else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791 test -n "$AR" && break
5792 done
5793 fi
5794 if test -z "$AR"; then
5795 ac_ct_AR=$AR
5796 for ac_prog in ar lib "link -lib"
5797 do
5798 # Extract the first word of "$ac_prog", so it can be a program name with args.
5799 set dummy $ac_prog; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if test -n "$ac_ct_AR"; then
5806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_ac_ct_AR="$ac_prog"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819 done
5820 done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5826 if test -n "$ac_ct_AR"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5828 $as_echo "$ac_ct_AR" >&6; }
5829 else
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835 test -n "$ac_ct_AR" && break
5836 done
5837
5838 if test "x$ac_ct_AR" = x; then
5839 AR="false"
5840 else
5841 case $cross_compiling:$ac_tool_warned in
5842 yes:)
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847 AR=$ac_ct_AR
5848 fi
5849 fi
5850
5851 : ${AR=ar}
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5854 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5855 if ${am_cv_ar_interface+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 ac_ext=c
5859 ac_cpp='$CPP $CPPFLAGS'
5860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863
5864 am_cv_ar_interface=ar
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 int some_variable = 0;
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"; then :
5870 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5872 (eval $am_ar_try) 2>&5
5873 ac_status=$?
5874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5875 test $ac_status = 0; }
5876 if test "$ac_status" -eq 0; then
5877 am_cv_ar_interface=ar
5878 else
5879 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5881 (eval $am_ar_try) 2>&5
5882 ac_status=$?
5883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884 test $ac_status = 0; }
5885 if test "$ac_status" -eq 0; then
5886 am_cv_ar_interface=lib
5887 else
5888 am_cv_ar_interface=unknown
5889 fi
5890 fi
5891 rm -f conftest.lib libconftest.a
5892
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 ac_ext=c
5896 ac_cpp='$CPP $CPPFLAGS'
5897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5900
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5903 $as_echo "$am_cv_ar_interface" >&6; }
5904
5905 case $am_cv_ar_interface in
5906 ar)
5907 ;;
5908 lib)
5909 # Microsoft lib, so override with the ar-lib wrapper script.
5910 # FIXME: It is wrong to rewrite AR.
5911 # But if we don't then we get into trouble of one sort or another.
5912 # A longer-term fix would be to have automake use am__AR in this case,
5913 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5914 # similar.
5915 AR="$am_aux_dir/ar-lib $AR"
5916 ;;
5917 unknown)
5918 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5919 ;;
5920 esac
5921
5922
5923 # Check whether --enable-shared was given.
5924 if test "${enable_shared+set}" = set; then :
5925 enableval=$enable_shared; p=${PACKAGE-default}
5926 case $enableval in
5927 yes) enable_shared=yes ;;
5928 no) enable_shared=no ;;
5929 *)
5930 enable_shared=no
5931 # Look at the argument we got. We use all the common list separators.
5932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5933 for pkg in $enableval; do
5934 IFS="$lt_save_ifs"
5935 if test "X$pkg" = "X$p"; then
5936 enable_shared=yes
5937 fi
5938 done
5939 IFS="$lt_save_ifs"
5940 ;;
5941 esac
5942 else
5943 enable_shared=no
5944 fi
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 case `pwd` in
5955 *\ * | *\ *)
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5957 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5958 esac
5959
5960
5961
5962 macro_version='2.2.7a'
5963 macro_revision='1.3134'
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977 ltmain="$ac_aux_dir/ltmain.sh"
5978
5979 # Make sure we can run config.sub.
5980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5981 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5982
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5984 $as_echo_n "checking build system type... " >&6; }
5985 if ${ac_cv_build+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 ac_build_alias=$build_alias
5989 test "x$ac_build_alias" = x &&
5990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5991 test "x$ac_build_alias" = x &&
5992 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5993 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5994 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5995
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5998 $as_echo "$ac_cv_build" >&6; }
5999 case $ac_cv_build in
6000 *-*-*) ;;
6001 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6002 esac
6003 build=$ac_cv_build
6004 ac_save_IFS=$IFS; IFS='-'
6005 set x $ac_cv_build
6006 shift
6007 build_cpu=$1
6008 build_vendor=$2
6009 shift; shift
6010 # Remember, the first character of IFS is used to create $*,
6011 # except with old shells:
6012 build_os=$*
6013 IFS=$ac_save_IFS
6014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6015
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6018 $as_echo_n "checking host system type... " >&6; }
6019 if ${ac_cv_host+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test "x$host_alias" = x; then
6023 ac_cv_host=$ac_cv_build
6024 else
6025 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6026 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6027 fi
6028
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6031 $as_echo "$ac_cv_host" >&6; }
6032 case $ac_cv_host in
6033 *-*-*) ;;
6034 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6035 esac
6036 host=$ac_cv_host
6037 ac_save_IFS=$IFS; IFS='-'
6038 set x $ac_cv_host
6039 shift
6040 host_cpu=$1
6041 host_vendor=$2
6042 shift; shift
6043 # Remember, the first character of IFS is used to create $*,
6044 # except with old shells:
6045 host_os=$*
6046 IFS=$ac_save_IFS
6047 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6048
6049
6050 # Backslashify metacharacters that are still active within
6051 # double-quoted strings.
6052 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6053
6054 # Same as above, but do not quote variable references.
6055 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6056
6057 # Sed substitution to delay expansion of an escaped shell variable in a
6058 # double_quote_subst'ed string.
6059 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6060
6061 # Sed substitution to delay expansion of an escaped single quote.
6062 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6063
6064 # Sed substitution to avoid accidental globbing in evaled expressions
6065 no_glob_subst='s/\*/\\\*/g'
6066
6067 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6068 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6069 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6070
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6072 $as_echo_n "checking how to print strings... " >&6; }
6073 # Test print first, because it will be a builtin if present.
6074 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6075 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6076 ECHO='print -r --'
6077 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6078 ECHO='printf %s\n'
6079 else
6080 # Use this function as a fallback that always works.
6081 func_fallback_echo ()
6082 {
6083 eval 'cat <<_LTECHO_EOF
6084 $1
6085 _LTECHO_EOF'
6086 }
6087 ECHO='func_fallback_echo'
6088 fi
6089
6090 # func_echo_all arg...
6091 # Invoke $ECHO with all args, space-separated.
6092 func_echo_all ()
6093 {
6094 $ECHO ""
6095 }
6096
6097 case "$ECHO" in
6098 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6099 $as_echo "printf" >&6; } ;;
6100 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6101 $as_echo "print -r" >&6; } ;;
6102 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6103 $as_echo "cat" >&6; } ;;
6104 esac
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6120 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6121 if ${ac_cv_path_SED+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6125 for ac_i in 1 2 3 4 5 6 7; do
6126 ac_script="$ac_script$as_nl$ac_script"
6127 done
6128 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6129 { ac_script=; unset ac_script;}
6130 if test -z "$SED"; then
6131 ac_path_SED_found=false
6132 # Loop through the user's path and test for each of PROGNAME-LIST
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_prog in sed gsed; do
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6141 as_fn_executable_p "$ac_path_SED" || continue
6142 # Check for GNU ac_path_SED and select it if it is found.
6143 # Check for GNU $ac_path_SED
6144 case `"$ac_path_SED" --version 2>&1` in
6145 *GNU*)
6146 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6147 *)
6148 ac_count=0
6149 $as_echo_n 0123456789 >"conftest.in"
6150 while :
6151 do
6152 cat "conftest.in" "conftest.in" >"conftest.tmp"
6153 mv "conftest.tmp" "conftest.in"
6154 cp "conftest.in" "conftest.nl"
6155 $as_echo '' >> "conftest.nl"
6156 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6158 as_fn_arith $ac_count + 1 && ac_count=$as_val
6159 if test $ac_count -gt ${ac_path_SED_max-0}; then
6160 # Best one so far, save it but keep looking for a better one
6161 ac_cv_path_SED="$ac_path_SED"
6162 ac_path_SED_max=$ac_count
6163 fi
6164 # 10*(2^10) chars as input seems more than enough
6165 test $ac_count -gt 10 && break
6166 done
6167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6168 esac
6169
6170 $ac_path_SED_found && break 3
6171 done
6172 done
6173 done
6174 IFS=$as_save_IFS
6175 if test -z "$ac_cv_path_SED"; then
6176 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6177 fi
6178 else
6179 ac_cv_path_SED=$SED
6180 fi
6181
6182 fi
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6184 $as_echo "$ac_cv_path_SED" >&6; }
6185 SED="$ac_cv_path_SED"
6186 rm -f conftest.sed
6187
6188 test -z "$SED" && SED=sed
6189 Xsed="$SED -e 1s/^X//"
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6202 $as_echo_n "checking for fgrep... " >&6; }
6203 if ${ac_cv_path_FGREP+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6207 then ac_cv_path_FGREP="$GREP -F"
6208 else
6209 if test -z "$FGREP"; then
6210 ac_path_FGREP_found=false
6211 # Loop through the user's path and test for each of PROGNAME-LIST
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6214 do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_prog in fgrep; do
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6220 as_fn_executable_p "$ac_path_FGREP" || continue
6221 # Check for GNU ac_path_FGREP and select it if it is found.
6222 # Check for GNU $ac_path_FGREP
6223 case `"$ac_path_FGREP" --version 2>&1` in
6224 *GNU*)
6225 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6226 *)
6227 ac_count=0
6228 $as_echo_n 0123456789 >"conftest.in"
6229 while :
6230 do
6231 cat "conftest.in" "conftest.in" >"conftest.tmp"
6232 mv "conftest.tmp" "conftest.in"
6233 cp "conftest.in" "conftest.nl"
6234 $as_echo 'FGREP' >> "conftest.nl"
6235 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6237 as_fn_arith $ac_count + 1 && ac_count=$as_val
6238 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6239 # Best one so far, save it but keep looking for a better one
6240 ac_cv_path_FGREP="$ac_path_FGREP"
6241 ac_path_FGREP_max=$ac_count
6242 fi
6243 # 10*(2^10) chars as input seems more than enough
6244 test $ac_count -gt 10 && break
6245 done
6246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6247 esac
6248
6249 $ac_path_FGREP_found && break 3
6250 done
6251 done
6252 done
6253 IFS=$as_save_IFS
6254 if test -z "$ac_cv_path_FGREP"; then
6255 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6256 fi
6257 else
6258 ac_cv_path_FGREP=$FGREP
6259 fi
6260
6261 fi
6262 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6264 $as_echo "$ac_cv_path_FGREP" >&6; }
6265 FGREP="$ac_cv_path_FGREP"
6266
6267
6268 test -z "$GREP" && GREP=grep
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288 # Check whether --with-gnu-ld was given.
6289 if test "${with_gnu_ld+set}" = set; then :
6290 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6291 else
6292 with_gnu_ld=no
6293 fi
6294
6295 ac_prog=ld
6296 if test "$GCC" = yes; then
6297 # Check if gcc -print-prog-name=ld gives a path.
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6299 $as_echo_n "checking for ld used by $CC... " >&6; }
6300 case $host in
6301 *-*-mingw*)
6302 # gcc leaves a trailing carriage return which upsets mingw
6303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6304 *)
6305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6306 esac
6307 case $ac_prog in
6308 # Accept absolute paths.
6309 [\\/]* | ?:[\\/]*)
6310 re_direlt='/[^/][^/]*/\.\./'
6311 # Canonicalize the pathname of ld
6312 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6313 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6314 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6315 done
6316 test -z "$LD" && LD="$ac_prog"
6317 ;;
6318 "")
6319 # If it fails, then pretend we aren't using GCC.
6320 ac_prog=ld
6321 ;;
6322 *)
6323 # If it is relative, then search for the first ld in PATH.
6324 with_gnu_ld=unknown
6325 ;;
6326 esac
6327 elif test "$with_gnu_ld" = yes; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6329 $as_echo_n "checking for GNU ld... " >&6; }
6330 else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6332 $as_echo_n "checking for non-GNU ld... " >&6; }
6333 fi
6334 if ${lt_cv_path_LD+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 if test -z "$LD"; then
6338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6339 for ac_dir in $PATH; do
6340 IFS="$lt_save_ifs"
6341 test -z "$ac_dir" && ac_dir=.
6342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6343 lt_cv_path_LD="$ac_dir/$ac_prog"
6344 # Check to see if the program is GNU ld. I'd rather use --version,
6345 # but apparently some variants of GNU ld only accept -v.
6346 # Break only if it was the GNU/non-GNU ld that we prefer.
6347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6348 *GNU* | *'with BFD'*)
6349 test "$with_gnu_ld" != no && break
6350 ;;
6351 *)
6352 test "$with_gnu_ld" != yes && break
6353 ;;
6354 esac
6355 fi
6356 done
6357 IFS="$lt_save_ifs"
6358 else
6359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6360 fi
6361 fi
6362
6363 LD="$lt_cv_path_LD"
6364 if test -n "$LD"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6366 $as_echo "$LD" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6373 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6374 if ${lt_cv_prog_gnu_ld+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6378 case `$LD -v 2>&1 </dev/null` in
6379 *GNU* | *'with BFD'*)
6380 lt_cv_prog_gnu_ld=yes
6381 ;;
6382 *)
6383 lt_cv_prog_gnu_ld=no
6384 ;;
6385 esac
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6388 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6389 with_gnu_ld=$lt_cv_prog_gnu_ld
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6400 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6401 if ${lt_cv_path_NM+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 if test -n "$NM"; then
6405 # Let the user override the nm to test.
6406 lt_nm_to_check="$NM"
6407 else
6408 lt_nm_to_check="${ac_tool_prefix}nm"
6409 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6410 lt_nm_to_check="$lt_nm_to_check nm"
6411 fi
6412 fi
6413 for lt_tmp_nm in $lt_nm_to_check; do
6414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6415 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6416 IFS="$lt_save_ifs"
6417 test -z "$ac_dir" && ac_dir=.
6418 case "$lt_tmp_nm" in
6419 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6420 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6421 esac
6422 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6423 # Check to see if the nm accepts a BSD-compat flag.
6424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6425 # nm: unknown option "B" ignored
6426 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6427 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6428 break
6429 ;;
6430 *)
6431 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6432 *$tmp_nm*)
6433 lt_cv_path_NM="$tmp_nm -p"
6434 break
6435 ;;
6436 *)
6437 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6438 continue # so that we can try to find one that supports BSD flags
6439 ;;
6440 esac
6441 ;;
6442 esac
6443 fi
6444 done
6445 IFS="$lt_save_ifs"
6446 done
6447 : ${lt_cv_path_NM=no}
6448 fi
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6450 $as_echo "$lt_cv_path_NM" >&6; }
6451 if test "$lt_cv_path_NM" != "no"; then
6452 NM="$lt_cv_path_NM"
6453 else
6454 # Didn't find any BSD compatible name lister, look for dumpbin.
6455 if test -n "$DUMPBIN"; then :
6456 # Let the user override the test.
6457 else
6458 if test -n "$ac_tool_prefix"; then
6459 for ac_prog in dumpbin "link -dump"
6460 do
6461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_DUMPBIN+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 if test -n "$DUMPBIN"; then
6469 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482 done
6483 done
6484 IFS=$as_save_IFS
6485
6486 fi
6487 fi
6488 DUMPBIN=$ac_cv_prog_DUMPBIN
6489 if test -n "$DUMPBIN"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6491 $as_echo "$DUMPBIN" >&6; }
6492 else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6495 fi
6496
6497
6498 test -n "$DUMPBIN" && break
6499 done
6500 fi
6501 if test -z "$DUMPBIN"; then
6502 ac_ct_DUMPBIN=$DUMPBIN
6503 for ac_prog in dumpbin "link -dump"
6504 do
6505 # Extract the first word of "$ac_prog", so it can be a program name with args.
6506 set dummy $ac_prog; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 if test -n "$ac_ct_DUMPBIN"; then
6513 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6525 fi
6526 done
6527 done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6533 if test -n "$ac_ct_DUMPBIN"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6535 $as_echo "$ac_ct_DUMPBIN" >&6; }
6536 else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541
6542 test -n "$ac_ct_DUMPBIN" && break
6543 done
6544
6545 if test "x$ac_ct_DUMPBIN" = x; then
6546 DUMPBIN=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549 yes:)
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552 ac_tool_warned=yes ;;
6553 esac
6554 DUMPBIN=$ac_ct_DUMPBIN
6555 fi
6556 fi
6557
6558 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6559 *COFF*)
6560 DUMPBIN="$DUMPBIN -symbols"
6561 ;;
6562 *)
6563 DUMPBIN=:
6564 ;;
6565 esac
6566 fi
6567
6568 if test "$DUMPBIN" != ":"; then
6569 NM="$DUMPBIN"
6570 fi
6571 fi
6572 test -z "$NM" && NM=nm
6573
6574
6575
6576
6577
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6580 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6581 if ${lt_cv_nm_interface+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 lt_cv_nm_interface="BSD nm"
6585 echo "int some_variable = 0;" > conftest.$ac_ext
6586 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6587 (eval "$ac_compile" 2>conftest.err)
6588 cat conftest.err >&5
6589 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6590 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6591 cat conftest.err >&5
6592 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6593 cat conftest.out >&5
6594 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6595 lt_cv_nm_interface="MS dumpbin"
6596 fi
6597 rm -f conftest*
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6600 $as_echo "$lt_cv_nm_interface" >&6; }
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6603 $as_echo_n "checking whether ln -s works... " >&6; }
6604 LN_S=$as_ln_s
6605 if test "$LN_S" = "ln -s"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6607 $as_echo "yes" >&6; }
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6610 $as_echo "no, using $LN_S" >&6; }
6611 fi
6612
6613 # find the maximum length of command line arguments
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6615 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6616 if ${lt_cv_sys_max_cmd_len+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 i=0
6620 teststring="ABCD"
6621
6622 case $build_os in
6623 msdosdjgpp*)
6624 # On DJGPP, this test can blow up pretty badly due to problems in libc
6625 # (any single argument exceeding 2000 bytes causes a buffer overrun
6626 # during glob expansion). Even if it were fixed, the result of this
6627 # check would be larger than it should be.
6628 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6629 ;;
6630
6631 gnu*)
6632 # Under GNU Hurd, this test is not required because there is
6633 # no limit to the length of command line arguments.
6634 # Libtool will interpret -1 as no limit whatsoever
6635 lt_cv_sys_max_cmd_len=-1;
6636 ;;
6637
6638 cygwin* | mingw* | cegcc*)
6639 # On Win9x/ME, this test blows up -- it succeeds, but takes
6640 # about 5 minutes as the teststring grows exponentially.
6641 # Worse, since 9x/ME are not pre-emptively multitasking,
6642 # you end up with a "frozen" computer, even though with patience
6643 # the test eventually succeeds (with a max line length of 256k).
6644 # Instead, let's just punt: use the minimum linelength reported by
6645 # all of the supported platforms: 8192 (on NT/2K/XP).
6646 lt_cv_sys_max_cmd_len=8192;
6647 ;;
6648
6649 mint*)
6650 # On MiNT this can take a long time and run out of memory.
6651 lt_cv_sys_max_cmd_len=8192;
6652 ;;
6653
6654 amigaos*)
6655 # On AmigaOS with pdksh, this test takes hours, literally.
6656 # So we just punt and use a minimum line length of 8192.
6657 lt_cv_sys_max_cmd_len=8192;
6658 ;;
6659
6660 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6661 # This has been around since 386BSD, at least. Likely further.
6662 if test -x /sbin/sysctl; then
6663 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6664 elif test -x /usr/sbin/sysctl; then
6665 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6666 else
6667 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6668 fi
6669 # And add a safety zone
6670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6672 ;;
6673
6674 interix*)
6675 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6676 lt_cv_sys_max_cmd_len=196608
6677 ;;
6678
6679 osf*)
6680 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6681 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6682 # nice to cause kernel panics so lets avoid the loop below.
6683 # First set a reasonable default.
6684 lt_cv_sys_max_cmd_len=16384
6685 #
6686 if test -x /sbin/sysconfig; then
6687 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6688 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6689 esac
6690 fi
6691 ;;
6692 sco3.2v5*)
6693 lt_cv_sys_max_cmd_len=102400
6694 ;;
6695 sysv5* | sco5v6* | sysv4.2uw2*)
6696 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6697 if test -n "$kargmax"; then
6698 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6699 else
6700 lt_cv_sys_max_cmd_len=32768
6701 fi
6702 ;;
6703 *)
6704 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6705 if test -n "$lt_cv_sys_max_cmd_len"; then
6706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6708 else
6709 # Make teststring a little bigger before we do anything with it.
6710 # a 1K string should be a reasonable start.
6711 for i in 1 2 3 4 5 6 7 8 ; do
6712 teststring=$teststring$teststring
6713 done
6714 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6715 # If test is not a shell built-in, we'll probably end up computing a
6716 # maximum length that is only half of the actual maximum length, but
6717 # we can't tell.
6718 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6719 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6720 test $i != 17 # 1/2 MB should be enough
6721 do
6722 i=`expr $i + 1`
6723 teststring=$teststring$teststring
6724 done
6725 # Only check the string length outside the loop.
6726 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6727 teststring=
6728 # Add a significant safety factor because C++ compilers can tack on
6729 # massive amounts of additional arguments before passing them to the
6730 # linker. It appears as though 1/2 is a usable value.
6731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6732 fi
6733 ;;
6734 esac
6735
6736 fi
6737
6738 if test -n $lt_cv_sys_max_cmd_len ; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6740 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6743 $as_echo "none" >&6; }
6744 fi
6745 max_cmd_len=$lt_cv_sys_max_cmd_len
6746
6747
6748
6749
6750
6751
6752 : ${CP="cp -f"}
6753 : ${MV="mv -f"}
6754 : ${RM="rm -f"}
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6757 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6758 # Try some XSI features
6759 xsi_shell=no
6760 ( _lt_dummy="a/b/c"
6761 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6762 = c,a/b,, \
6763 && eval 'test $(( 1 + 1 )) -eq 2 \
6764 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6765 && xsi_shell=yes
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6767 $as_echo "$xsi_shell" >&6; }
6768
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6771 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6772 lt_shell_append=no
6773 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6774 >/dev/null 2>&1 \
6775 && lt_shell_append=yes
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6777 $as_echo "$lt_shell_append" >&6; }
6778
6779
6780 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6781 lt_unset=unset
6782 else
6783 lt_unset=false
6784 fi
6785
6786
6787
6788
6789
6790 # test EBCDIC or ASCII
6791 case `echo X|tr X '\101'` in
6792 A) # ASCII based system
6793 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6794 lt_SP2NL='tr \040 \012'
6795 lt_NL2SP='tr \015\012 \040\040'
6796 ;;
6797 *) # EBCDIC based system
6798 lt_SP2NL='tr \100 \n'
6799 lt_NL2SP='tr \r\n \100\100'
6800 ;;
6801 esac
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6812 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6813 if ${lt_cv_ld_reload_flag+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 lt_cv_ld_reload_flag='-r'
6817 fi
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6819 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6820 reload_flag=$lt_cv_ld_reload_flag
6821 case $reload_flag in
6822 "" | " "*) ;;
6823 *) reload_flag=" $reload_flag" ;;
6824 esac
6825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6826 case $host_os in
6827 darwin*)
6828 if test "$GCC" = yes; then
6829 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6830 else
6831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6832 fi
6833 ;;
6834 esac
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844 if test -n "$ac_tool_prefix"; then
6845 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6846 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if ${ac_cv_prog_OBJDUMP+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -n "$OBJDUMP"; then
6853 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 OBJDUMP=$ac_cv_prog_OBJDUMP
6873 if test -n "$OBJDUMP"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6875 $as_echo "$OBJDUMP" >&6; }
6876 else
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881
6882 fi
6883 if test -z "$ac_cv_prog_OBJDUMP"; then
6884 ac_ct_OBJDUMP=$OBJDUMP
6885 # Extract the first word of "objdump", so it can be a program name with args.
6886 set dummy objdump; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 if test -n "$ac_ct_OBJDUMP"; then
6893 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6905 fi
6906 done
6907 done
6908 IFS=$as_save_IFS
6909
6910 fi
6911 fi
6912 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6913 if test -n "$ac_ct_OBJDUMP"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6915 $as_echo "$ac_ct_OBJDUMP" >&6; }
6916 else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921 if test "x$ac_ct_OBJDUMP" = x; then
6922 OBJDUMP="false"
6923 else
6924 case $cross_compiling:$ac_tool_warned in
6925 yes:)
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928 ac_tool_warned=yes ;;
6929 esac
6930 OBJDUMP=$ac_ct_OBJDUMP
6931 fi
6932 else
6933 OBJDUMP="$ac_cv_prog_OBJDUMP"
6934 fi
6935
6936 test -z "$OBJDUMP" && OBJDUMP=objdump
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6947 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6948 if ${lt_cv_deplibs_check_method+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 lt_cv_file_magic_cmd='$MAGIC_CMD'
6952 lt_cv_file_magic_test_file=
6953 lt_cv_deplibs_check_method='unknown'
6954 # Need to set the preceding variable on all platforms that support
6955 # interlibrary dependencies.
6956 # 'none' -- dependencies not supported.
6957 # `unknown' -- same as none, but documents that we really don't know.
6958 # 'pass_all' -- all dependencies passed with no checks.
6959 # 'test_compile' -- check by making test program.
6960 # 'file_magic [[regex]]' -- check by looking for files in library path
6961 # which responds to the $file_magic_cmd with a given extended regex.
6962 # If you have `file' or equivalent on your system and you're not sure
6963 # whether `pass_all' will *always* work, you probably want this one.
6964
6965 case $host_os in
6966 aix[4-9]*)
6967 lt_cv_deplibs_check_method=pass_all
6968 ;;
6969
6970 beos*)
6971 lt_cv_deplibs_check_method=pass_all
6972 ;;
6973
6974 bsdi[45]*)
6975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6976 lt_cv_file_magic_cmd='/usr/bin/file -L'
6977 lt_cv_file_magic_test_file=/shlib/libc.so
6978 ;;
6979
6980 cygwin*)
6981 # func_win32_libid is a shell function defined in ltmain.sh
6982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6983 lt_cv_file_magic_cmd='func_win32_libid'
6984 ;;
6985
6986 mingw* | pw32*)
6987 # Base MSYS/MinGW do not provide the 'file' command needed by
6988 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6989 # unless we find 'file', for example because we are cross-compiling.
6990 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6991 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6993 lt_cv_file_magic_cmd='func_win32_libid'
6994 else
6995 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6996 lt_cv_file_magic_cmd='$OBJDUMP -f'
6997 fi
6998 ;;
6999
7000 cegcc*)
7001 # use the weaker test based on 'objdump'. See mingw*.
7002 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7003 lt_cv_file_magic_cmd='$OBJDUMP -f'
7004 ;;
7005
7006 darwin* | rhapsody*)
7007 lt_cv_deplibs_check_method=pass_all
7008 ;;
7009
7010 freebsd* | dragonfly*)
7011 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7012 case $host_cpu in
7013 i*86 )
7014 # Not sure whether the presence of OpenBSD here was a mistake.
7015 # Let's accept both of them until this is cleared up.
7016 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7017 lt_cv_file_magic_cmd=/usr/bin/file
7018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7019 ;;
7020 esac
7021 else
7022 lt_cv_deplibs_check_method=pass_all
7023 fi
7024 ;;
7025
7026 gnu*)
7027 lt_cv_deplibs_check_method=pass_all
7028 ;;
7029
7030 haiku*)
7031 lt_cv_deplibs_check_method=pass_all
7032 ;;
7033
7034 hpux10.20* | hpux11*)
7035 lt_cv_file_magic_cmd=/usr/bin/file
7036 case $host_cpu in
7037 ia64*)
7038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7039 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7040 ;;
7041 hppa*64*)
7042 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]'
7043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7044 ;;
7045 *)
7046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7047 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7048 ;;
7049 esac
7050 ;;
7051
7052 interix[3-9]*)
7053 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7055 ;;
7056
7057 irix5* | irix6* | nonstopux*)
7058 case $LD in
7059 *-32|*"-32 ") libmagic=32-bit;;
7060 *-n32|*"-n32 ") libmagic=N32;;
7061 *-64|*"-64 ") libmagic=64-bit;;
7062 *) libmagic=never-match;;
7063 esac
7064 lt_cv_deplibs_check_method=pass_all
7065 ;;
7066
7067 # This must be Linux ELF.
7068 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7069 lt_cv_deplibs_check_method=pass_all
7070 ;;
7071
7072 netbsd*)
7073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7075 else
7076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7077 fi
7078 ;;
7079
7080 newos6*)
7081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7082 lt_cv_file_magic_cmd=/usr/bin/file
7083 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7084 ;;
7085
7086 *nto* | *qnx*)
7087 lt_cv_deplibs_check_method=pass_all
7088 ;;
7089
7090 openbsd*)
7091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7093 else
7094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7095 fi
7096 ;;
7097
7098 osf3* | osf4* | osf5*)
7099 lt_cv_deplibs_check_method=pass_all
7100 ;;
7101
7102 rdos*)
7103 lt_cv_deplibs_check_method=pass_all
7104 ;;
7105
7106 solaris*)
7107 lt_cv_deplibs_check_method=pass_all
7108 ;;
7109
7110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7111 lt_cv_deplibs_check_method=pass_all
7112 ;;
7113
7114 sysv4 | sysv4.3*)
7115 case $host_vendor in
7116 motorola)
7117 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]'
7118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7119 ;;
7120 ncr)
7121 lt_cv_deplibs_check_method=pass_all
7122 ;;
7123 sequent)
7124 lt_cv_file_magic_cmd='/bin/file'
7125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7126 ;;
7127 sni)
7128 lt_cv_file_magic_cmd='/bin/file'
7129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7130 lt_cv_file_magic_test_file=/lib/libc.so
7131 ;;
7132 siemens)
7133 lt_cv_deplibs_check_method=pass_all
7134 ;;
7135 pc)
7136 lt_cv_deplibs_check_method=pass_all
7137 ;;
7138 esac
7139 ;;
7140
7141 tpf*)
7142 lt_cv_deplibs_check_method=pass_all
7143 ;;
7144 esac
7145
7146 fi
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7148 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7149 file_magic_cmd=$lt_cv_file_magic_cmd
7150 deplibs_check_method=$lt_cv_deplibs_check_method
7151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164 plugin_option=
7165 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7166 for plugin in $plugin_names; do
7167 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7168 if test x$plugin_so = x$plugin; then
7169 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7170 fi
7171 if test x$plugin_so != x$plugin; then
7172 plugin_option="--plugin $plugin_so"
7173 break
7174 fi
7175 done
7176
7177 if test -n "$ac_tool_prefix"; then
7178 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}ar; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_prog_AR+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$AR"; then
7186 ac_cv_prog_AR="$AR" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_AR="${ac_tool_prefix}ar"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 AR=$ac_cv_prog_AR
7206 if test -n "$AR"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7208 $as_echo "$AR" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214
7215 fi
7216 if test -z "$ac_cv_prog_AR"; then
7217 ac_ct_AR=$AR
7218 # Extract the first word of "ar", so it can be a program name with args.
7219 set dummy ar; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$ac_ct_AR"; then
7226 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_ac_ct_AR="ar"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7246 if test -n "$ac_ct_AR"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7248 $as_echo "$ac_ct_AR" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254 if test "x$ac_ct_AR" = x; then
7255 AR="false"
7256 else
7257 case $cross_compiling:$ac_tool_warned in
7258 yes:)
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7261 ac_tool_warned=yes ;;
7262 esac
7263 AR=$ac_ct_AR
7264 fi
7265 else
7266 AR="$ac_cv_prog_AR"
7267 fi
7268
7269 test -z "$AR" && AR=ar
7270 if test -n "$plugin_option"; then
7271 if $AR --help 2>&1 | grep -q "\--plugin"; then
7272 touch conftest.c
7273 $AR $plugin_option rc conftest.a conftest.c
7274 if test "$?" != 0; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7276 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7277 else
7278 AR="$AR $plugin_option"
7279 fi
7280 rm -f conftest.*
7281 fi
7282 fi
7283 test -z "$AR_FLAGS" && AR_FLAGS=cru
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295 if test -n "$ac_tool_prefix"; then
7296 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7297 set dummy ${ac_tool_prefix}strip; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_prog_STRIP+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 if test -n "$STRIP"; then
7304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7316 fi
7317 done
7318 done
7319 IFS=$as_save_IFS
7320
7321 fi
7322 fi
7323 STRIP=$ac_cv_prog_STRIP
7324 if test -n "$STRIP"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7326 $as_echo "$STRIP" >&6; }
7327 else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330 fi
7331
7332
7333 fi
7334 if test -z "$ac_cv_prog_STRIP"; then
7335 ac_ct_STRIP=$STRIP
7336 # Extract the first word of "strip", so it can be a program name with args.
7337 set dummy strip; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343 if test -n "$ac_ct_STRIP"; then
7344 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7345 else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353 ac_cv_prog_ac_ct_STRIP="strip"
7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7356 fi
7357 done
7358 done
7359 IFS=$as_save_IFS
7360
7361 fi
7362 fi
7363 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7364 if test -n "$ac_ct_STRIP"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7366 $as_echo "$ac_ct_STRIP" >&6; }
7367 else
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7370 fi
7371
7372 if test "x$ac_ct_STRIP" = x; then
7373 STRIP=":"
7374 else
7375 case $cross_compiling:$ac_tool_warned in
7376 yes:)
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7379 ac_tool_warned=yes ;;
7380 esac
7381 STRIP=$ac_ct_STRIP
7382 fi
7383 else
7384 STRIP="$ac_cv_prog_STRIP"
7385 fi
7386
7387 test -z "$STRIP" && STRIP=:
7388
7389
7390
7391
7392
7393
7394 if test -n "$ac_tool_prefix"; then
7395 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7396 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_prog_RANLIB+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 if test -n "$RANLIB"; then
7403 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416 done
7417 done
7418 IFS=$as_save_IFS
7419
7420 fi
7421 fi
7422 RANLIB=$ac_cv_prog_RANLIB
7423 if test -n "$RANLIB"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7425 $as_echo "$RANLIB" >&6; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 fi
7430
7431
7432 fi
7433 if test -z "$ac_cv_prog_RANLIB"; then
7434 ac_ct_RANLIB=$RANLIB
7435 # Extract the first word of "ranlib", so it can be a program name with args.
7436 set dummy ranlib; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 if test -n "$ac_ct_RANLIB"; then
7443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_ac_ct_RANLIB="ranlib"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460 fi
7461 fi
7462 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7463 if test -n "$ac_ct_RANLIB"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7465 $as_echo "$ac_ct_RANLIB" >&6; }
7466 else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
7471 if test "x$ac_ct_RANLIB" = x; then
7472 RANLIB=":"
7473 else
7474 case $cross_compiling:$ac_tool_warned in
7475 yes:)
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478 ac_tool_warned=yes ;;
7479 esac
7480 RANLIB=$ac_ct_RANLIB
7481 fi
7482 else
7483 RANLIB="$ac_cv_prog_RANLIB"
7484 fi
7485
7486 test -z "$RANLIB" && RANLIB=:
7487 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7488 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7489 RANLIB="$RANLIB $plugin_option"
7490 fi
7491 fi
7492
7493
7494
7495
7496
7497
7498 # Determine commands to create old-style static archives.
7499 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7500 old_postinstall_cmds='chmod 644 $oldlib'
7501 old_postuninstall_cmds=
7502
7503 if test -n "$RANLIB"; then
7504 case $host_os in
7505 openbsd*)
7506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7507 ;;
7508 *)
7509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7510 ;;
7511 esac
7512 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7513 fi
7514
7515 case $host_os in
7516 darwin*)
7517 lock_old_archive_extraction=yes ;;
7518 *)
7519 lock_old_archive_extraction=no ;;
7520 esac
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560 # If no C compiler was specified, use CC.
7561 LTCC=${LTCC-"$CC"}
7562
7563 # If no C compiler flags were specified, use CFLAGS.
7564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7565
7566 # Allow CC to be a program name with arguments.
7567 compiler=$CC
7568
7569
7570 # Check for command to grab the raw symbol name followed by C symbol from nm.
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7572 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7573 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7576
7577 # These are sane defaults that work on at least a few old systems.
7578 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7579
7580 # Character class describing NM global symbol codes.
7581 symcode='[BCDEGRST]'
7582
7583 # Regexp to match symbols that can be accessed directly from C.
7584 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7585
7586 # Define system-specific variables.
7587 case $host_os in
7588 aix*)
7589 symcode='[BCDT]'
7590 ;;
7591 cygwin* | mingw* | pw32* | cegcc*)
7592 symcode='[ABCDGISTW]'
7593 ;;
7594 hpux*)
7595 if test "$host_cpu" = ia64; then
7596 symcode='[ABCDEGRST]'
7597 fi
7598 ;;
7599 irix* | nonstopux*)
7600 symcode='[BCDEGRST]'
7601 ;;
7602 osf*)
7603 symcode='[BCDEGQRST]'
7604 ;;
7605 solaris*)
7606 symcode='[BCDRT]'
7607 ;;
7608 sco3.2v5*)
7609 symcode='[DT]'
7610 ;;
7611 sysv4.2uw2*)
7612 symcode='[DT]'
7613 ;;
7614 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7615 symcode='[ABDT]'
7616 ;;
7617 sysv4)
7618 symcode='[DFNSTU]'
7619 ;;
7620 esac
7621
7622 # If we're using GNU nm, then use its standard symbol codes.
7623 case `$NM -V 2>&1` in
7624 *GNU* | *'with BFD'*)
7625 symcode='[ABCDGIRSTW]' ;;
7626 esac
7627
7628 # Transform an extracted symbol line into a proper C declaration.
7629 # Some systems (esp. on ia64) link data and code symbols differently,
7630 # so use this general approach.
7631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7632
7633 # Transform an extracted symbol line into symbol name and symbol address
7634 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7635 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'"
7636
7637 # Handle CRLF in mingw tool chain
7638 opt_cr=
7639 case $build_os in
7640 mingw*)
7641 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7642 ;;
7643 esac
7644
7645 # Try without a prefix underscore, then with it.
7646 for ac_symprfx in "" "_"; do
7647
7648 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7649 symxfrm="\\1 $ac_symprfx\\2 \\2"
7650
7651 # Write the raw and C identifiers.
7652 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7653 # Fake it for dumpbin and say T for any non-static function
7654 # and D for any global variable.
7655 # Also find C++ and __fastcall symbols from MSVC++,
7656 # which start with @ or ?.
7657 lt_cv_sys_global_symbol_pipe="$AWK '"\
7658 " {last_section=section; section=\$ 3};"\
7659 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7660 " \$ 0!~/External *\|/{next};"\
7661 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7662 " {if(hide[section]) next};"\
7663 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7664 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7665 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7666 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7667 " ' prfx=^$ac_symprfx"
7668 else
7669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7670 fi
7671
7672 # Check to see that the pipe works correctly.
7673 pipe_works=no
7674
7675 rm -f conftest*
7676 cat > conftest.$ac_ext <<_LT_EOF
7677 #ifdef __cplusplus
7678 extern "C" {
7679 #endif
7680 char nm_test_var;
7681 void nm_test_func(void);
7682 void nm_test_func(void){}
7683 #ifdef __cplusplus
7684 }
7685 #endif
7686 int main(){nm_test_var='a';nm_test_func();return(0);}
7687 _LT_EOF
7688
7689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7690 (eval $ac_compile) 2>&5
7691 ac_status=$?
7692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7693 test $ac_status = 0; }; then
7694 # Now try to grab the symbols.
7695 nlist=conftest.nm
7696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7697 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7698 ac_status=$?
7699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7700 test $ac_status = 0; } && test -s "$nlist"; then
7701 # Try sorting and uniquifying the output.
7702 if sort "$nlist" | uniq > "$nlist"T; then
7703 mv -f "$nlist"T "$nlist"
7704 else
7705 rm -f "$nlist"T
7706 fi
7707
7708 # Make sure that we snagged all the symbols we need.
7709 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7710 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7711 cat <<_LT_EOF > conftest.$ac_ext
7712 #ifdef __cplusplus
7713 extern "C" {
7714 #endif
7715
7716 _LT_EOF
7717 # Now generate the symbol file.
7718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7719
7720 cat <<_LT_EOF >> conftest.$ac_ext
7721
7722 /* The mapping between symbol names and symbols. */
7723 const struct {
7724 const char *name;
7725 void *address;
7726 }
7727 lt__PROGRAM__LTX_preloaded_symbols[] =
7728 {
7729 { "@PROGRAM@", (void *) 0 },
7730 _LT_EOF
7731 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7732 cat <<\_LT_EOF >> conftest.$ac_ext
7733 {0, (void *) 0}
7734 };
7735
7736 /* This works around a problem in FreeBSD linker */
7737 #ifdef FREEBSD_WORKAROUND
7738 static const void *lt_preloaded_setup() {
7739 return lt__PROGRAM__LTX_preloaded_symbols;
7740 }
7741 #endif
7742
7743 #ifdef __cplusplus
7744 }
7745 #endif
7746 _LT_EOF
7747 # Now try linking the two files.
7748 mv conftest.$ac_objext conftstm.$ac_objext
7749 lt_save_LIBS="$LIBS"
7750 lt_save_CFLAGS="$CFLAGS"
7751 LIBS="conftstm.$ac_objext"
7752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7754 (eval $ac_link) 2>&5
7755 ac_status=$?
7756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7758 pipe_works=yes
7759 fi
7760 LIBS="$lt_save_LIBS"
7761 CFLAGS="$lt_save_CFLAGS"
7762 else
7763 echo "cannot find nm_test_func in $nlist" >&5
7764 fi
7765 else
7766 echo "cannot find nm_test_var in $nlist" >&5
7767 fi
7768 else
7769 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7770 fi
7771 else
7772 echo "$progname: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7774 fi
7775 rm -rf conftest* conftst*
7776
7777 # Do not use the global_symbol_pipe unless it works.
7778 if test "$pipe_works" = yes; then
7779 break
7780 else
7781 lt_cv_sys_global_symbol_pipe=
7782 fi
7783 done
7784
7785 fi
7786
7787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7788 lt_cv_sys_global_symbol_to_cdecl=
7789 fi
7790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7792 $as_echo "failed" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7795 $as_echo "ok" >&6; }
7796 fi
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819 # Check whether --enable-libtool-lock was given.
7820 if test "${enable_libtool_lock+set}" = set; then :
7821 enableval=$enable_libtool_lock;
7822 fi
7823
7824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7825
7826 # Some flags need to be propagated to the compiler or linker for good
7827 # libtool support.
7828 case $host in
7829 ia64-*-hpux*)
7830 # Find out which ABI we are using.
7831 echo 'int i;' > conftest.$ac_ext
7832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7833 (eval $ac_compile) 2>&5
7834 ac_status=$?
7835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7836 test $ac_status = 0; }; then
7837 case `/usr/bin/file conftest.$ac_objext` in
7838 *ELF-32*)
7839 HPUX_IA64_MODE="32"
7840 ;;
7841 *ELF-64*)
7842 HPUX_IA64_MODE="64"
7843 ;;
7844 esac
7845 fi
7846 rm -rf conftest*
7847 ;;
7848 *-*-irix6*)
7849 # Find out which ABI we are using.
7850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7852 (eval $ac_compile) 2>&5
7853 ac_status=$?
7854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7855 test $ac_status = 0; }; then
7856 if test "$lt_cv_prog_gnu_ld" = yes; then
7857 case `/usr/bin/file conftest.$ac_objext` in
7858 *32-bit*)
7859 LD="${LD-ld} -melf32bsmip"
7860 ;;
7861 *N32*)
7862 LD="${LD-ld} -melf32bmipn32"
7863 ;;
7864 *64-bit*)
7865 LD="${LD-ld} -melf64bmip"
7866 ;;
7867 esac
7868 else
7869 case `/usr/bin/file conftest.$ac_objext` in
7870 *32-bit*)
7871 LD="${LD-ld} -32"
7872 ;;
7873 *N32*)
7874 LD="${LD-ld} -n32"
7875 ;;
7876 *64-bit*)
7877 LD="${LD-ld} -64"
7878 ;;
7879 esac
7880 fi
7881 fi
7882 rm -rf conftest*
7883 ;;
7884
7885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7887 # Find out which ABI we are using.
7888 echo 'int i;' > conftest.$ac_ext
7889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890 (eval $ac_compile) 2>&5
7891 ac_status=$?
7892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893 test $ac_status = 0; }; then
7894 case `/usr/bin/file conftest.o` in
7895 *32-bit*)
7896 case $host in
7897 x86_64-*kfreebsd*-gnu)
7898 LD="${LD-ld} -m elf_i386_fbsd"
7899 ;;
7900 x86_64-*linux*)
7901 case `/usr/bin/file conftest.o` in
7902 *x86-64*)
7903 LD="${LD-ld} -m elf32_x86_64"
7904 ;;
7905 *)
7906 LD="${LD-ld} -m elf_i386"
7907 ;;
7908 esac
7909 ;;
7910 powerpc64le-*linux*)
7911 LD="${LD-ld} -m elf32lppclinux"
7912 ;;
7913 powerpc64-*linux*)
7914 LD="${LD-ld} -m elf32ppclinux"
7915 ;;
7916 s390x-*linux*)
7917 LD="${LD-ld} -m elf_s390"
7918 ;;
7919 sparc64-*linux*)
7920 LD="${LD-ld} -m elf32_sparc"
7921 ;;
7922 esac
7923 ;;
7924 *64-bit*)
7925 case $host in
7926 x86_64-*kfreebsd*-gnu)
7927 LD="${LD-ld} -m elf_x86_64_fbsd"
7928 ;;
7929 x86_64-*linux*)
7930 LD="${LD-ld} -m elf_x86_64"
7931 ;;
7932 powerpcle-*linux*)
7933 LD="${LD-ld} -m elf64lppc"
7934 ;;
7935 powerpc-*linux*)
7936 LD="${LD-ld} -m elf64ppc"
7937 ;;
7938 s390*-*linux*|s390*-*tpf*)
7939 LD="${LD-ld} -m elf64_s390"
7940 ;;
7941 sparc*-*linux*)
7942 LD="${LD-ld} -m elf64_sparc"
7943 ;;
7944 esac
7945 ;;
7946 esac
7947 fi
7948 rm -rf conftest*
7949 ;;
7950
7951 *-*-sco3.2v5*)
7952 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7953 SAVE_CFLAGS="$CFLAGS"
7954 CFLAGS="$CFLAGS -belf"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7956 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7957 if ${lt_cv_cc_needs_belf+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 ac_ext=c
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7968
7969 int
7970 main ()
7971 {
7972
7973 ;
7974 return 0;
7975 }
7976 _ACEOF
7977 if ac_fn_c_try_link "$LINENO"; then :
7978 lt_cv_cc_needs_belf=yes
7979 else
7980 lt_cv_cc_needs_belf=no
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7984 ac_ext=c
7985 ac_cpp='$CPP $CPPFLAGS'
7986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7989
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7992 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7993 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7994 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7995 CFLAGS="$SAVE_CFLAGS"
7996 fi
7997 ;;
7998 sparc*-*solaris*)
7999 # Find out which ABI we are using.
8000 echo 'int i;' > conftest.$ac_ext
8001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8002 (eval $ac_compile) 2>&5
8003 ac_status=$?
8004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8005 test $ac_status = 0; }; then
8006 case `/usr/bin/file conftest.o` in
8007 *64-bit*)
8008 case $lt_cv_prog_gnu_ld in
8009 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8010 *)
8011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8012 LD="${LD-ld} -64"
8013 fi
8014 ;;
8015 esac
8016 ;;
8017 esac
8018 fi
8019 rm -rf conftest*
8020 ;;
8021 esac
8022
8023 need_locks="$enable_libtool_lock"
8024
8025
8026 case $host_os in
8027 rhapsody* | darwin*)
8028 if test -n "$ac_tool_prefix"; then
8029 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$DSYMUTIL"; then
8037 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8049 fi
8050 done
8051 done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8057 if test -n "$DSYMUTIL"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8059 $as_echo "$DSYMUTIL" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064
8065
8066 fi
8067 if test -z "$ac_cv_prog_DSYMUTIL"; then
8068 ac_ct_DSYMUTIL=$DSYMUTIL
8069 # Extract the first word of "dsymutil", so it can be a program name with args.
8070 set dummy dsymutil; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 if test -n "$ac_ct_DSYMUTIL"; then
8077 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8081 do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090 done
8091 done
8092 IFS=$as_save_IFS
8093
8094 fi
8095 fi
8096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8097 if test -n "$ac_ct_DSYMUTIL"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8099 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8100 else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8103 fi
8104
8105 if test "x$ac_ct_DSYMUTIL" = x; then
8106 DSYMUTIL=":"
8107 else
8108 case $cross_compiling:$ac_tool_warned in
8109 yes:)
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8112 ac_tool_warned=yes ;;
8113 esac
8114 DSYMUTIL=$ac_ct_DSYMUTIL
8115 fi
8116 else
8117 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8118 fi
8119
8120 if test -n "$ac_tool_prefix"; then
8121 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8122 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_NMEDIT+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$NMEDIT"; then
8129 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8141 fi
8142 done
8143 done
8144 IFS=$as_save_IFS
8145
8146 fi
8147 fi
8148 NMEDIT=$ac_cv_prog_NMEDIT
8149 if test -n "$NMEDIT"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8151 $as_echo "$NMEDIT" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155 fi
8156
8157
8158 fi
8159 if test -z "$ac_cv_prog_NMEDIT"; then
8160 ac_ct_NMEDIT=$NMEDIT
8161 # Extract the first word of "nmedit", so it can be a program name with args.
8162 set dummy nmedit; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 if test -n "$ac_ct_NMEDIT"; then
8169 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8189 if test -n "$ac_ct_NMEDIT"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8191 $as_echo "$ac_ct_NMEDIT" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8195 fi
8196
8197 if test "x$ac_ct_NMEDIT" = x; then
8198 NMEDIT=":"
8199 else
8200 case $cross_compiling:$ac_tool_warned in
8201 yes:)
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8204 ac_tool_warned=yes ;;
8205 esac
8206 NMEDIT=$ac_ct_NMEDIT
8207 fi
8208 else
8209 NMEDIT="$ac_cv_prog_NMEDIT"
8210 fi
8211
8212 if test -n "$ac_tool_prefix"; then
8213 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8214 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if ${ac_cv_prog_LIPO+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 if test -n "$LIPO"; then
8221 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 break 2
8233 fi
8234 done
8235 done
8236 IFS=$as_save_IFS
8237
8238 fi
8239 fi
8240 LIPO=$ac_cv_prog_LIPO
8241 if test -n "$LIPO"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8243 $as_echo "$LIPO" >&6; }
8244 else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8247 fi
8248
8249
8250 fi
8251 if test -z "$ac_cv_prog_LIPO"; then
8252 ac_ct_LIPO=$LIPO
8253 # Extract the first word of "lipo", so it can be a program name with args.
8254 set dummy lipo; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$ac_ct_LIPO"; then
8261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_ac_ct_LIPO="lipo"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8273 fi
8274 done
8275 done
8276 IFS=$as_save_IFS
8277
8278 fi
8279 fi
8280 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8281 if test -n "$ac_ct_LIPO"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8283 $as_echo "$ac_ct_LIPO" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8287 fi
8288
8289 if test "x$ac_ct_LIPO" = x; then
8290 LIPO=":"
8291 else
8292 case $cross_compiling:$ac_tool_warned in
8293 yes:)
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8296 ac_tool_warned=yes ;;
8297 esac
8298 LIPO=$ac_ct_LIPO
8299 fi
8300 else
8301 LIPO="$ac_cv_prog_LIPO"
8302 fi
8303
8304 if test -n "$ac_tool_prefix"; then
8305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8306 set dummy ${ac_tool_prefix}otool; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if ${ac_cv_prog_OTOOL+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 if test -n "$OTOOL"; then
8313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8325 fi
8326 done
8327 done
8328 IFS=$as_save_IFS
8329
8330 fi
8331 fi
8332 OTOOL=$ac_cv_prog_OTOOL
8333 if test -n "$OTOOL"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8335 $as_echo "$OTOOL" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 fi
8340
8341
8342 fi
8343 if test -z "$ac_cv_prog_OTOOL"; then
8344 ac_ct_OTOOL=$OTOOL
8345 # Extract the first word of "otool", so it can be a program name with args.
8346 set dummy otool; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 if test -n "$ac_ct_OTOOL"; then
8353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362 ac_cv_prog_ac_ct_OTOOL="otool"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8365 fi
8366 done
8367 done
8368 IFS=$as_save_IFS
8369
8370 fi
8371 fi
8372 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8373 if test -n "$ac_ct_OTOOL"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8375 $as_echo "$ac_ct_OTOOL" >&6; }
8376 else
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8379 fi
8380
8381 if test "x$ac_ct_OTOOL" = x; then
8382 OTOOL=":"
8383 else
8384 case $cross_compiling:$ac_tool_warned in
8385 yes:)
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8388 ac_tool_warned=yes ;;
8389 esac
8390 OTOOL=$ac_ct_OTOOL
8391 fi
8392 else
8393 OTOOL="$ac_cv_prog_OTOOL"
8394 fi
8395
8396 if test -n "$ac_tool_prefix"; then
8397 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8398 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_OTOOL64+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 if test -n "$OTOOL64"; then
8405 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8417 fi
8418 done
8419 done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 OTOOL64=$ac_cv_prog_OTOOL64
8425 if test -n "$OTOOL64"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8427 $as_echo "$OTOOL64" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433
8434 fi
8435 if test -z "$ac_cv_prog_OTOOL64"; then
8436 ac_ct_OTOOL64=$OTOOL64
8437 # Extract the first word of "otool64", so it can be a program name with args.
8438 set dummy otool64; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 if test -n "$ac_ct_OTOOL64"; then
8445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_ac_ct_OTOOL64="otool64"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8457 fi
8458 done
8459 done
8460 IFS=$as_save_IFS
8461
8462 fi
8463 fi
8464 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8465 if test -n "$ac_ct_OTOOL64"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8467 $as_echo "$ac_ct_OTOOL64" >&6; }
8468 else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 fi
8472
8473 if test "x$ac_ct_OTOOL64" = x; then
8474 OTOOL64=":"
8475 else
8476 case $cross_compiling:$ac_tool_warned in
8477 yes:)
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8481 esac
8482 OTOOL64=$ac_ct_OTOOL64
8483 fi
8484 else
8485 OTOOL64="$ac_cv_prog_OTOOL64"
8486 fi
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8515 $as_echo_n "checking for -single_module linker flag... " >&6; }
8516 if ${lt_cv_apple_cc_single_mod+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 lt_cv_apple_cc_single_mod=no
8520 if test -z "${LT_MULTI_MODULE}"; then
8521 # By default we will add the -single_module flag. You can override
8522 # by either setting the environment variable LT_MULTI_MODULE
8523 # non-empty at configure time, or by adding -multi_module to the
8524 # link flags.
8525 rm -rf libconftest.dylib*
8526 echo "int foo(void){return 1;}" > conftest.c
8527 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8528 -dynamiclib -Wl,-single_module conftest.c" >&5
8529 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8530 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8531 _lt_result=$?
8532 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8533 lt_cv_apple_cc_single_mod=yes
8534 else
8535 cat conftest.err >&5
8536 fi
8537 rm -rf libconftest.dylib*
8538 rm -f conftest.*
8539 fi
8540 fi
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8542 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8544 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8545 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_ld_exported_symbols_list=no
8549 save_LDFLAGS=$LDFLAGS
8550 echo "_main" > conftest.sym
8551 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8554
8555 int
8556 main ()
8557 {
8558
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_link "$LINENO"; then :
8564 lt_cv_ld_exported_symbols_list=yes
8565 else
8566 lt_cv_ld_exported_symbols_list=no
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LDFLAGS="$save_LDFLAGS"
8571
8572 fi
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8574 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8576 $as_echo_n "checking for -force_load linker flag... " >&6; }
8577 if ${lt_cv_ld_force_load+:} false; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 lt_cv_ld_force_load=no
8581 cat > conftest.c << _LT_EOF
8582 int forced_loaded() { return 2;}
8583 _LT_EOF
8584 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8585 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8586 echo "$AR cru libconftest.a conftest.o" >&5
8587 $AR cru libconftest.a conftest.o 2>&5
8588 cat > conftest.c << _LT_EOF
8589 int main() { return 0;}
8590 _LT_EOF
8591 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8592 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8593 _lt_result=$?
8594 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8595 lt_cv_ld_force_load=yes
8596 else
8597 cat conftest.err >&5
8598 fi
8599 rm -f conftest.err libconftest.a conftest conftest.c
8600 rm -rf conftest.dSYM
8601
8602 fi
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8604 $as_echo "$lt_cv_ld_force_load" >&6; }
8605 case $host_os in
8606 rhapsody* | darwin1.[012])
8607 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8608 darwin1.*)
8609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8610 darwin*) # darwin 5.x on
8611 # if running on 10.5 or later, the deployment target defaults
8612 # to the OS version, if on x86, and 10.4, the deployment
8613 # target defaults to 10.4. Don't you love it?
8614 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8615 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8616 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8617 10.[012][,.]*)
8618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8619 10.*)
8620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8621 esac
8622 ;;
8623 esac
8624 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8625 _lt_dar_single_mod='$single_module'
8626 fi
8627 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8628 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8629 else
8630 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8631 fi
8632 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8633 _lt_dsymutil='~$DSYMUTIL $lib || :'
8634 else
8635 _lt_dsymutil=
8636 fi
8637 ;;
8638 esac
8639
8640 for ac_header in dlfcn.h
8641 do :
8642 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8643 "
8644 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8645 cat >>confdefs.h <<_ACEOF
8646 #define HAVE_DLFCN_H 1
8647 _ACEOF
8648
8649 fi
8650
8651 done
8652
8653
8654
8655
8656
8657
8658 # Set options
8659
8660
8661
8662 enable_dlopen=no
8663
8664
8665 enable_win32_dll=no
8666
8667
8668
8669 # Check whether --enable-static was given.
8670 if test "${enable_static+set}" = set; then :
8671 enableval=$enable_static; p=${PACKAGE-default}
8672 case $enableval in
8673 yes) enable_static=yes ;;
8674 no) enable_static=no ;;
8675 *)
8676 enable_static=no
8677 # Look at the argument we got. We use all the common list separators.
8678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8679 for pkg in $enableval; do
8680 IFS="$lt_save_ifs"
8681 if test "X$pkg" = "X$p"; then
8682 enable_static=yes
8683 fi
8684 done
8685 IFS="$lt_save_ifs"
8686 ;;
8687 esac
8688 else
8689 enable_static=yes
8690 fi
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701 # Check whether --with-pic was given.
8702 if test "${with_pic+set}" = set; then :
8703 withval=$with_pic; pic_mode="$withval"
8704 else
8705 pic_mode=default
8706 fi
8707
8708
8709 test -z "$pic_mode" && pic_mode=default
8710
8711
8712
8713
8714
8715
8716
8717 # Check whether --enable-fast-install was given.
8718 if test "${enable_fast_install+set}" = set; then :
8719 enableval=$enable_fast_install; p=${PACKAGE-default}
8720 case $enableval in
8721 yes) enable_fast_install=yes ;;
8722 no) enable_fast_install=no ;;
8723 *)
8724 enable_fast_install=no
8725 # Look at the argument we got. We use all the common list separators.
8726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8727 for pkg in $enableval; do
8728 IFS="$lt_save_ifs"
8729 if test "X$pkg" = "X$p"; then
8730 enable_fast_install=yes
8731 fi
8732 done
8733 IFS="$lt_save_ifs"
8734 ;;
8735 esac
8736 else
8737 enable_fast_install=yes
8738 fi
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750 # This can be used to rebuild libtool when needed
8751 LIBTOOL_DEPS="$ltmain"
8752
8753 # Always use our own libtool.
8754 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781 test -z "$LN_S" && LN_S="ln -s"
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 if test -n "${ZSH_VERSION+set}" ; then
8797 setopt NO_GLOB_SUBST
8798 fi
8799
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8801 $as_echo_n "checking for objdir... " >&6; }
8802 if ${lt_cv_objdir+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 rm -f .libs 2>/dev/null
8806 mkdir .libs 2>/dev/null
8807 if test -d .libs; then
8808 lt_cv_objdir=.libs
8809 else
8810 # MS-DOS does not allow filenames that begin with a dot.
8811 lt_cv_objdir=_libs
8812 fi
8813 rmdir .libs 2>/dev/null
8814 fi
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8816 $as_echo "$lt_cv_objdir" >&6; }
8817 objdir=$lt_cv_objdir
8818
8819
8820
8821
8822
8823 cat >>confdefs.h <<_ACEOF
8824 #define LT_OBJDIR "$lt_cv_objdir/"
8825 _ACEOF
8826
8827
8828
8829
8830 case $host_os in
8831 aix3*)
8832 # AIX sometimes has problems with the GCC collect2 program. For some
8833 # reason, if we set the COLLECT_NAMES environment variable, the problems
8834 # vanish in a puff of smoke.
8835 if test "X${COLLECT_NAMES+set}" != Xset; then
8836 COLLECT_NAMES=
8837 export COLLECT_NAMES
8838 fi
8839 ;;
8840 esac
8841
8842 # Global variables:
8843 ofile=libtool
8844 can_build_shared=yes
8845
8846 # All known linkers require a `.a' archive for static linking (except MSVC,
8847 # which needs '.lib').
8848 libext=a
8849
8850 with_gnu_ld="$lt_cv_prog_gnu_ld"
8851
8852 old_CC="$CC"
8853 old_CFLAGS="$CFLAGS"
8854
8855 # Set sane defaults for various variables
8856 test -z "$CC" && CC=cc
8857 test -z "$LTCC" && LTCC=$CC
8858 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8859 test -z "$LD" && LD=ld
8860 test -z "$ac_objext" && ac_objext=o
8861
8862 for cc_temp in $compiler""; do
8863 case $cc_temp in
8864 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8865 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8866 \-*) ;;
8867 *) break;;
8868 esac
8869 done
8870 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8871
8872
8873 # Only perform the check for file, if the check method requires it
8874 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8875 case $deplibs_check_method in
8876 file_magic*)
8877 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8879 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8880 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 case $MAGIC_CMD in
8884 [\\/*] | ?:[\\/]*)
8885 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8886 ;;
8887 *)
8888 lt_save_MAGIC_CMD="$MAGIC_CMD"
8889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8890 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8891 for ac_dir in $ac_dummy; do
8892 IFS="$lt_save_ifs"
8893 test -z "$ac_dir" && ac_dir=.
8894 if test -f $ac_dir/${ac_tool_prefix}file; then
8895 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8896 if test -n "$file_magic_test_file"; then
8897 case $deplibs_check_method in
8898 "file_magic "*)
8899 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8901 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8902 $EGREP "$file_magic_regex" > /dev/null; then
8903 :
8904 else
8905 cat <<_LT_EOF 1>&2
8906
8907 *** Warning: the command libtool uses to detect shared libraries,
8908 *** $file_magic_cmd, produces output that libtool cannot recognize.
8909 *** The result is that libtool may fail to recognize shared libraries
8910 *** as such. This will affect the creation of libtool libraries that
8911 *** depend on shared libraries, but programs linked with such libtool
8912 *** libraries will work regardless of this problem. Nevertheless, you
8913 *** may want to report the problem to your system manager and/or to
8914 *** bug-libtool@gnu.org
8915
8916 _LT_EOF
8917 fi ;;
8918 esac
8919 fi
8920 break
8921 fi
8922 done
8923 IFS="$lt_save_ifs"
8924 MAGIC_CMD="$lt_save_MAGIC_CMD"
8925 ;;
8926 esac
8927 fi
8928
8929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8930 if test -n "$MAGIC_CMD"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8932 $as_echo "$MAGIC_CMD" >&6; }
8933 else
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8936 fi
8937
8938
8939
8940
8941
8942 if test -z "$lt_cv_path_MAGIC_CMD"; then
8943 if test -n "$ac_tool_prefix"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8945 $as_echo_n "checking for file... " >&6; }
8946 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8947 $as_echo_n "(cached) " >&6
8948 else
8949 case $MAGIC_CMD in
8950 [\\/*] | ?:[\\/]*)
8951 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8952 ;;
8953 *)
8954 lt_save_MAGIC_CMD="$MAGIC_CMD"
8955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8956 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8957 for ac_dir in $ac_dummy; do
8958 IFS="$lt_save_ifs"
8959 test -z "$ac_dir" && ac_dir=.
8960 if test -f $ac_dir/file; then
8961 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8962 if test -n "$file_magic_test_file"; then
8963 case $deplibs_check_method in
8964 "file_magic "*)
8965 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8967 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8968 $EGREP "$file_magic_regex" > /dev/null; then
8969 :
8970 else
8971 cat <<_LT_EOF 1>&2
8972
8973 *** Warning: the command libtool uses to detect shared libraries,
8974 *** $file_magic_cmd, produces output that libtool cannot recognize.
8975 *** The result is that libtool may fail to recognize shared libraries
8976 *** as such. This will affect the creation of libtool libraries that
8977 *** depend on shared libraries, but programs linked with such libtool
8978 *** libraries will work regardless of this problem. Nevertheless, you
8979 *** may want to report the problem to your system manager and/or to
8980 *** bug-libtool@gnu.org
8981
8982 _LT_EOF
8983 fi ;;
8984 esac
8985 fi
8986 break
8987 fi
8988 done
8989 IFS="$lt_save_ifs"
8990 MAGIC_CMD="$lt_save_MAGIC_CMD"
8991 ;;
8992 esac
8993 fi
8994
8995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8996 if test -n "$MAGIC_CMD"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8998 $as_echo "$MAGIC_CMD" >&6; }
8999 else
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9002 fi
9003
9004
9005 else
9006 MAGIC_CMD=:
9007 fi
9008 fi
9009
9010 fi
9011 ;;
9012 esac
9013
9014 # Use C for the default configuration in the libtool script
9015
9016 lt_save_CC="$CC"
9017 ac_ext=c
9018 ac_cpp='$CPP $CPPFLAGS'
9019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9022
9023
9024 # Source file extension for C test sources.
9025 ac_ext=c
9026
9027 # Object file extension for compiled C test sources.
9028 objext=o
9029 objext=$objext
9030
9031 # Code to be used in simple compile tests
9032 lt_simple_compile_test_code="int some_variable = 0;"
9033
9034 # Code to be used in simple link tests
9035 lt_simple_link_test_code='int main(){return(0);}'
9036
9037
9038
9039
9040
9041
9042
9043 # If no C compiler was specified, use CC.
9044 LTCC=${LTCC-"$CC"}
9045
9046 # If no C compiler flags were specified, use CFLAGS.
9047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9048
9049 # Allow CC to be a program name with arguments.
9050 compiler=$CC
9051
9052 # Save the default compiler, since it gets overwritten when the other
9053 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9054 compiler_DEFAULT=$CC
9055
9056 # save warnings/boilerplate of simple test code
9057 ac_outfile=conftest.$ac_objext
9058 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9059 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9060 _lt_compiler_boilerplate=`cat conftest.err`
9061 $RM conftest*
9062
9063 ac_outfile=conftest.$ac_objext
9064 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9065 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9066 _lt_linker_boilerplate=`cat conftest.err`
9067 $RM -r conftest*
9068
9069
9070 ## CAVEAT EMPTOR:
9071 ## There is no encapsulation within the following macros, do not change
9072 ## the running order or otherwise move them around unless you know exactly
9073 ## what you are doing...
9074 if test -n "$compiler"; then
9075
9076 lt_prog_compiler_no_builtin_flag=
9077
9078 if test "$GCC" = yes; then
9079 case $cc_basename in
9080 nvcc*)
9081 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9082 *)
9083 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9084 esac
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9087 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9088 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 lt_cv_prog_compiler_rtti_exceptions=no
9092 ac_outfile=conftest.$ac_objext
9093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9094 lt_compiler_flag="-fno-rtti -fno-exceptions"
9095 # Insert the option either (1) after the last *FLAGS variable, or
9096 # (2) before a word containing "conftest.", or (3) at the end.
9097 # Note that $ac_compile itself does not contain backslashes and begins
9098 # with a dollar sign (not a hyphen), so the echo should work correctly.
9099 # The option is referenced via a variable to avoid confusing sed.
9100 lt_compile=`echo "$ac_compile" | $SED \
9101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9103 -e 's:$: $lt_compiler_flag:'`
9104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9105 (eval "$lt_compile" 2>conftest.err)
9106 ac_status=$?
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 if (exit $ac_status) && test -s "$ac_outfile"; then
9110 # The compiler can only warn and ignore the option if not recognized
9111 # So say no if there are warnings other than the usual output.
9112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9115 lt_cv_prog_compiler_rtti_exceptions=yes
9116 fi
9117 fi
9118 $RM conftest*
9119
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9122 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9123
9124 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9125 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9126 else
9127 :
9128 fi
9129
9130 fi
9131
9132
9133
9134
9135
9136
9137 lt_prog_compiler_wl=
9138 lt_prog_compiler_pic=
9139 lt_prog_compiler_static=
9140
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9142 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9143
9144 if test "$GCC" = yes; then
9145 lt_prog_compiler_wl='-Wl,'
9146 lt_prog_compiler_static='-static'
9147
9148 case $host_os in
9149 aix*)
9150 # All AIX code is PIC.
9151 if test "$host_cpu" = ia64; then
9152 # AIX 5 now supports IA64 processor
9153 lt_prog_compiler_static='-Bstatic'
9154 fi
9155 lt_prog_compiler_pic='-fPIC'
9156 ;;
9157
9158 amigaos*)
9159 case $host_cpu in
9160 powerpc)
9161 # see comment about AmigaOS4 .so support
9162 lt_prog_compiler_pic='-fPIC'
9163 ;;
9164 m68k)
9165 # FIXME: we need at least 68020 code to build shared libraries, but
9166 # adding the `-m68020' flag to GCC prevents building anything better,
9167 # like `-m68040'.
9168 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9169 ;;
9170 esac
9171 ;;
9172
9173 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9174 # PIC is the default for these OSes.
9175 ;;
9176
9177 mingw* | cygwin* | pw32* | os2* | cegcc*)
9178 # This hack is so that the source file can tell whether it is being
9179 # built for inclusion in a dll (and should export symbols for example).
9180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9181 # (--disable-auto-import) libraries
9182 lt_prog_compiler_pic='-DDLL_EXPORT'
9183 ;;
9184
9185 darwin* | rhapsody*)
9186 # PIC is the default on this platform
9187 # Common symbols not allowed in MH_DYLIB files
9188 lt_prog_compiler_pic='-fno-common'
9189 ;;
9190
9191 haiku*)
9192 # PIC is the default for Haiku.
9193 # The "-static" flag exists, but is broken.
9194 lt_prog_compiler_static=
9195 ;;
9196
9197 hpux*)
9198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9200 # sets the default TLS model and affects inlining.
9201 case $host_cpu in
9202 hppa*64*)
9203 # +Z the default
9204 ;;
9205 *)
9206 lt_prog_compiler_pic='-fPIC'
9207 ;;
9208 esac
9209 ;;
9210
9211 interix[3-9]*)
9212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9213 # Instead, we relocate shared libraries at runtime.
9214 ;;
9215
9216 msdosdjgpp*)
9217 # Just because we use GCC doesn't mean we suddenly get shared libraries
9218 # on systems that don't support them.
9219 lt_prog_compiler_can_build_shared=no
9220 enable_shared=no
9221 ;;
9222
9223 *nto* | *qnx*)
9224 # QNX uses GNU C++, but need to define -shared option too, otherwise
9225 # it will coredump.
9226 lt_prog_compiler_pic='-fPIC -shared'
9227 ;;
9228
9229 sysv4*MP*)
9230 if test -d /usr/nec; then
9231 lt_prog_compiler_pic=-Kconform_pic
9232 fi
9233 ;;
9234
9235 *)
9236 lt_prog_compiler_pic='-fPIC'
9237 ;;
9238 esac
9239
9240 case $cc_basename in
9241 nvcc*) # Cuda Compiler Driver 2.2
9242 lt_prog_compiler_wl='-Xlinker '
9243 lt_prog_compiler_pic='-Xcompiler -fPIC'
9244 ;;
9245 esac
9246 else
9247 # PORTME Check for flag to pass linker flags through the system compiler.
9248 case $host_os in
9249 aix*)
9250 lt_prog_compiler_wl='-Wl,'
9251 if test "$host_cpu" = ia64; then
9252 # AIX 5 now supports IA64 processor
9253 lt_prog_compiler_static='-Bstatic'
9254 else
9255 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9256 fi
9257 ;;
9258
9259 mingw* | cygwin* | pw32* | os2* | cegcc*)
9260 # This hack is so that the source file can tell whether it is being
9261 # built for inclusion in a dll (and should export symbols for example).
9262 lt_prog_compiler_pic='-DDLL_EXPORT'
9263 ;;
9264
9265 hpux9* | hpux10* | hpux11*)
9266 lt_prog_compiler_wl='-Wl,'
9267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9268 # not for PA HP-UX.
9269 case $host_cpu in
9270 hppa*64*|ia64*)
9271 # +Z the default
9272 ;;
9273 *)
9274 lt_prog_compiler_pic='+Z'
9275 ;;
9276 esac
9277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9278 lt_prog_compiler_static='${wl}-a ${wl}archive'
9279 ;;
9280
9281 irix5* | irix6* | nonstopux*)
9282 lt_prog_compiler_wl='-Wl,'
9283 # PIC (with -KPIC) is the default.
9284 lt_prog_compiler_static='-non_shared'
9285 ;;
9286
9287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9288 case $cc_basename in
9289 # old Intel for x86_64 which still supported -KPIC.
9290 ecc*)
9291 lt_prog_compiler_wl='-Wl,'
9292 lt_prog_compiler_pic='-KPIC'
9293 lt_prog_compiler_static='-static'
9294 ;;
9295 # icc used to be incompatible with GCC.
9296 # ICC 10 doesn't accept -KPIC any more.
9297 icc* | ifort*)
9298 lt_prog_compiler_wl='-Wl,'
9299 lt_prog_compiler_pic='-fPIC'
9300 lt_prog_compiler_static='-static'
9301 ;;
9302 # Lahey Fortran 8.1.
9303 lf95*)
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_pic='--shared'
9306 lt_prog_compiler_static='--static'
9307 ;;
9308 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9309 # Portland Group compilers (*not* the Pentium gcc compiler,
9310 # which looks to be a dead project)
9311 lt_prog_compiler_wl='-Wl,'
9312 lt_prog_compiler_pic='-fpic'
9313 lt_prog_compiler_static='-Bstatic'
9314 ;;
9315 ccc*)
9316 lt_prog_compiler_wl='-Wl,'
9317 # All Alpha code is PIC.
9318 lt_prog_compiler_static='-non_shared'
9319 ;;
9320 xl* | bgxl* | bgf* | mpixl*)
9321 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9322 lt_prog_compiler_wl='-Wl,'
9323 lt_prog_compiler_pic='-qpic'
9324 lt_prog_compiler_static='-qstaticlink'
9325 ;;
9326 *)
9327 case `$CC -V 2>&1 | sed 5q` in
9328 *Sun\ F* | *Sun*Fortran*)
9329 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9330 lt_prog_compiler_pic='-KPIC'
9331 lt_prog_compiler_static='-Bstatic'
9332 lt_prog_compiler_wl=''
9333 ;;
9334 *Sun\ C*)
9335 # Sun C 5.9
9336 lt_prog_compiler_pic='-KPIC'
9337 lt_prog_compiler_static='-Bstatic'
9338 lt_prog_compiler_wl='-Wl,'
9339 ;;
9340 esac
9341 ;;
9342 esac
9343 ;;
9344
9345 newsos6)
9346 lt_prog_compiler_pic='-KPIC'
9347 lt_prog_compiler_static='-Bstatic'
9348 ;;
9349
9350 *nto* | *qnx*)
9351 # QNX uses GNU C++, but need to define -shared option too, otherwise
9352 # it will coredump.
9353 lt_prog_compiler_pic='-fPIC -shared'
9354 ;;
9355
9356 osf3* | osf4* | osf5*)
9357 lt_prog_compiler_wl='-Wl,'
9358 # All OSF/1 code is PIC.
9359 lt_prog_compiler_static='-non_shared'
9360 ;;
9361
9362 rdos*)
9363 lt_prog_compiler_static='-non_shared'
9364 ;;
9365
9366 solaris*)
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-Bstatic'
9369 case $cc_basename in
9370 f77* | f90* | f95*)
9371 lt_prog_compiler_wl='-Qoption ld ';;
9372 *)
9373 lt_prog_compiler_wl='-Wl,';;
9374 esac
9375 ;;
9376
9377 sunos4*)
9378 lt_prog_compiler_wl='-Qoption ld '
9379 lt_prog_compiler_pic='-PIC'
9380 lt_prog_compiler_static='-Bstatic'
9381 ;;
9382
9383 sysv4 | sysv4.2uw2* | sysv4.3*)
9384 lt_prog_compiler_wl='-Wl,'
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-Bstatic'
9387 ;;
9388
9389 sysv4*MP*)
9390 if test -d /usr/nec ;then
9391 lt_prog_compiler_pic='-Kconform_pic'
9392 lt_prog_compiler_static='-Bstatic'
9393 fi
9394 ;;
9395
9396 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9397 lt_prog_compiler_wl='-Wl,'
9398 lt_prog_compiler_pic='-KPIC'
9399 lt_prog_compiler_static='-Bstatic'
9400 ;;
9401
9402 unicos*)
9403 lt_prog_compiler_wl='-Wl,'
9404 lt_prog_compiler_can_build_shared=no
9405 ;;
9406
9407 uts4*)
9408 lt_prog_compiler_pic='-pic'
9409 lt_prog_compiler_static='-Bstatic'
9410 ;;
9411
9412 *)
9413 lt_prog_compiler_can_build_shared=no
9414 ;;
9415 esac
9416 fi
9417
9418 case $host_os in
9419 # For platforms which do not support PIC, -DPIC is meaningless:
9420 *djgpp*)
9421 lt_prog_compiler_pic=
9422 ;;
9423 *)
9424 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9425 ;;
9426 esac
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9428 $as_echo "$lt_prog_compiler_pic" >&6; }
9429
9430
9431
9432
9433
9434
9435 #
9436 # Check to make sure the PIC flag actually works.
9437 #
9438 if test -n "$lt_prog_compiler_pic"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9440 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9441 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 lt_cv_prog_compiler_pic_works=no
9445 ac_outfile=conftest.$ac_objext
9446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9447 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9448 # Insert the option either (1) after the last *FLAGS variable, or
9449 # (2) before a word containing "conftest.", or (3) at the end.
9450 # Note that $ac_compile itself does not contain backslashes and begins
9451 # with a dollar sign (not a hyphen), so the echo should work correctly.
9452 # The option is referenced via a variable to avoid confusing sed.
9453 lt_compile=`echo "$ac_compile" | $SED \
9454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9456 -e 's:$: $lt_compiler_flag:'`
9457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9458 (eval "$lt_compile" 2>conftest.err)
9459 ac_status=$?
9460 cat conftest.err >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 if (exit $ac_status) && test -s "$ac_outfile"; then
9463 # The compiler can only warn and ignore the option if not recognized
9464 # So say no if there are warnings other than the usual output.
9465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9468 lt_cv_prog_compiler_pic_works=yes
9469 fi
9470 fi
9471 $RM conftest*
9472
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9475 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9476
9477 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9478 case $lt_prog_compiler_pic in
9479 "" | " "*) ;;
9480 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9481 esac
9482 else
9483 lt_prog_compiler_pic=
9484 lt_prog_compiler_can_build_shared=no
9485 fi
9486
9487 fi
9488
9489
9490
9491
9492
9493
9494 #
9495 # Check to make sure the static flag actually works.
9496 #
9497 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9499 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9500 if ${lt_cv_prog_compiler_static_works+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 lt_cv_prog_compiler_static_works=no
9504 save_LDFLAGS="$LDFLAGS"
9505 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9506 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9508 # The linker can only warn and ignore the option if not recognized
9509 # So say no if there are warnings
9510 if test -s conftest.err; then
9511 # Append any errors to the config.log.
9512 cat conftest.err 1>&5
9513 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9515 if diff conftest.exp conftest.er2 >/dev/null; then
9516 lt_cv_prog_compiler_static_works=yes
9517 fi
9518 else
9519 lt_cv_prog_compiler_static_works=yes
9520 fi
9521 fi
9522 $RM -r conftest*
9523 LDFLAGS="$save_LDFLAGS"
9524
9525 fi
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9527 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9528
9529 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9530 :
9531 else
9532 lt_prog_compiler_static=
9533 fi
9534
9535
9536
9537
9538
9539
9540
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9542 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9543 if ${lt_cv_prog_compiler_c_o+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 lt_cv_prog_compiler_c_o=no
9547 $RM -r conftest 2>/dev/null
9548 mkdir conftest
9549 cd conftest
9550 mkdir out
9551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9552
9553 lt_compiler_flag="-o out/conftest2.$ac_objext"
9554 # Insert the option either (1) after the last *FLAGS variable, or
9555 # (2) before a word containing "conftest.", or (3) at the end.
9556 # Note that $ac_compile itself does not contain backslashes and begins
9557 # with a dollar sign (not a hyphen), so the echo should work correctly.
9558 lt_compile=`echo "$ac_compile" | $SED \
9559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9561 -e 's:$: $lt_compiler_flag:'`
9562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9563 (eval "$lt_compile" 2>out/conftest.err)
9564 ac_status=$?
9565 cat out/conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9568 then
9569 # The compiler can only warn and ignore the option if not recognized
9570 # So say no if there are warnings
9571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9574 lt_cv_prog_compiler_c_o=yes
9575 fi
9576 fi
9577 chmod u+w . 2>&5
9578 $RM conftest*
9579 # SGI C++ compiler will create directory out/ii_files/ for
9580 # template instantiation
9581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9582 $RM out/* && rmdir out
9583 cd ..
9584 $RM -r conftest
9585 $RM conftest*
9586
9587 fi
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9589 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9590
9591
9592
9593
9594
9595
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9597 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9598 if ${lt_cv_prog_compiler_c_o+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 lt_cv_prog_compiler_c_o=no
9602 $RM -r conftest 2>/dev/null
9603 mkdir conftest
9604 cd conftest
9605 mkdir out
9606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9607
9608 lt_compiler_flag="-o out/conftest2.$ac_objext"
9609 # Insert the option either (1) after the last *FLAGS variable, or
9610 # (2) before a word containing "conftest.", or (3) at the end.
9611 # Note that $ac_compile itself does not contain backslashes and begins
9612 # with a dollar sign (not a hyphen), so the echo should work correctly.
9613 lt_compile=`echo "$ac_compile" | $SED \
9614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9616 -e 's:$: $lt_compiler_flag:'`
9617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9618 (eval "$lt_compile" 2>out/conftest.err)
9619 ac_status=$?
9620 cat out/conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9623 then
9624 # The compiler can only warn and ignore the option if not recognized
9625 # So say no if there are warnings
9626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9629 lt_cv_prog_compiler_c_o=yes
9630 fi
9631 fi
9632 chmod u+w . 2>&5
9633 $RM conftest*
9634 # SGI C++ compiler will create directory out/ii_files/ for
9635 # template instantiation
9636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9637 $RM out/* && rmdir out
9638 cd ..
9639 $RM -r conftest
9640 $RM conftest*
9641
9642 fi
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9644 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9645
9646
9647
9648
9649 hard_links="nottested"
9650 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9651 # do not overwrite the value of need_locks provided by the user
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9653 $as_echo_n "checking if we can lock with hard links... " >&6; }
9654 hard_links=yes
9655 $RM conftest*
9656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9657 touch conftest.a
9658 ln conftest.a conftest.b 2>&5 || hard_links=no
9659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9661 $as_echo "$hard_links" >&6; }
9662 if test "$hard_links" = no; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9664 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9665 need_locks=warn
9666 fi
9667 else
9668 need_locks=no
9669 fi
9670
9671
9672
9673
9674
9675
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9678
9679 runpath_var=
9680 allow_undefined_flag=
9681 always_export_symbols=no
9682 archive_cmds=
9683 archive_expsym_cmds=
9684 compiler_needs_object=no
9685 enable_shared_with_static_runtimes=no
9686 export_dynamic_flag_spec=
9687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9688 hardcode_automatic=no
9689 hardcode_direct=no
9690 hardcode_direct_absolute=no
9691 hardcode_libdir_flag_spec=
9692 hardcode_libdir_flag_spec_ld=
9693 hardcode_libdir_separator=
9694 hardcode_minus_L=no
9695 hardcode_shlibpath_var=unsupported
9696 inherit_rpath=no
9697 link_all_deplibs=unknown
9698 module_cmds=
9699 module_expsym_cmds=
9700 old_archive_from_new_cmds=
9701 old_archive_from_expsyms_cmds=
9702 thread_safe_flag_spec=
9703 whole_archive_flag_spec=
9704 # include_expsyms should be a list of space-separated symbols to be *always*
9705 # included in the symbol list
9706 include_expsyms=
9707 # exclude_expsyms can be an extended regexp of symbols to exclude
9708 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9710 # as well as any symbol that contains `d'.
9711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9713 # platforms (ab)use it in PIC code, but their linkers get confused if
9714 # the symbol is explicitly referenced. Since portable code cannot
9715 # rely on this symbol name, it's probably fine to never include it in
9716 # preloaded symbol tables.
9717 # Exclude shared library initialization/finalization symbols.
9718 extract_expsyms_cmds=
9719
9720 case $host_os in
9721 cygwin* | mingw* | pw32* | cegcc*)
9722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9723 # When not using gcc, we currently assume that we are using
9724 # Microsoft Visual C++.
9725 if test "$GCC" != yes; then
9726 with_gnu_ld=no
9727 fi
9728 ;;
9729 interix*)
9730 # we just hope/assume this is gcc and not c89 (= MSVC++)
9731 with_gnu_ld=yes
9732 ;;
9733 openbsd*)
9734 with_gnu_ld=no
9735 ;;
9736 esac
9737
9738 ld_shlibs=yes
9739
9740 # On some targets, GNU ld is compatible enough with the native linker
9741 # that we're better off using the native interface for both.
9742 lt_use_gnu_ld_interface=no
9743 if test "$with_gnu_ld" = yes; then
9744 case $host_os in
9745 aix*)
9746 # The AIX port of GNU ld has always aspired to compatibility
9747 # with the native linker. However, as the warning in the GNU ld
9748 # block says, versions before 2.19.5* couldn't really create working
9749 # shared libraries, regardless of the interface used.
9750 case `$LD -v 2>&1` in
9751 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9752 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9753 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9754 *)
9755 lt_use_gnu_ld_interface=yes
9756 ;;
9757 esac
9758 ;;
9759 *)
9760 lt_use_gnu_ld_interface=yes
9761 ;;
9762 esac
9763 fi
9764
9765 if test "$lt_use_gnu_ld_interface" = yes; then
9766 # If archive_cmds runs LD, not CC, wlarc should be empty
9767 wlarc='${wl}'
9768
9769 # Set some defaults for GNU ld with shared library support. These
9770 # are reset later if shared libraries are not supported. Putting them
9771 # here allows them to be overridden if necessary.
9772 runpath_var=LD_RUN_PATH
9773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774 export_dynamic_flag_spec='${wl}--export-dynamic'
9775 # ancient GNU ld didn't support --whole-archive et. al.
9776 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9777 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9778 else
9779 whole_archive_flag_spec=
9780 fi
9781 supports_anon_versioning=no
9782 case `$LD -v 2>&1` in
9783 *GNU\ gold*) supports_anon_versioning=yes ;;
9784 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9787 *\ 2.11.*) ;; # other 2.11 versions
9788 *) supports_anon_versioning=yes ;;
9789 esac
9790
9791 # See if GNU ld supports shared libraries.
9792 case $host_os in
9793 aix[3-9]*)
9794 # On AIX/PPC, the GNU linker is very broken
9795 if test "$host_cpu" != ia64; then
9796 ld_shlibs=no
9797 cat <<_LT_EOF 1>&2
9798
9799 *** Warning: the GNU linker, at least up to release 2.19, is reported
9800 *** to be unable to reliably create shared libraries on AIX.
9801 *** Therefore, libtool is disabling shared libraries support. If you
9802 *** really care for shared libraries, you may want to install binutils
9803 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9804 *** You will then need to restart the configuration process.
9805
9806 _LT_EOF
9807 fi
9808 ;;
9809
9810 amigaos*)
9811 case $host_cpu in
9812 powerpc)
9813 # see comment about AmigaOS4 .so support
9814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815 archive_expsym_cmds=''
9816 ;;
9817 m68k)
9818 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)'
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_minus_L=yes
9821 ;;
9822 esac
9823 ;;
9824
9825 beos*)
9826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9827 allow_undefined_flag=unsupported
9828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9829 # support --undefined. This deserves some investigation. FIXME
9830 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831 else
9832 ld_shlibs=no
9833 fi
9834 ;;
9835
9836 cygwin* | mingw* | pw32* | cegcc*)
9837 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9838 # as there is no search path for DLLs.
9839 hardcode_libdir_flag_spec='-L$libdir'
9840 export_dynamic_flag_spec='${wl}--export-all-symbols'
9841 allow_undefined_flag=unsupported
9842 always_export_symbols=no
9843 enable_shared_with_static_runtimes=yes
9844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9845
9846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9848 # If the export-symbols file already is a .def file (1st line
9849 # is EXPORTS), use it as is; otherwise, prepend...
9850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9851 cp $export_symbols $output_objdir/$soname.def;
9852 else
9853 echo EXPORTS > $output_objdir/$soname.def;
9854 cat $export_symbols >> $output_objdir/$soname.def;
9855 fi~
9856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9857 else
9858 ld_shlibs=no
9859 fi
9860 ;;
9861
9862 haiku*)
9863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9864 link_all_deplibs=yes
9865 ;;
9866
9867 interix[3-9]*)
9868 hardcode_direct=no
9869 hardcode_shlibpath_var=no
9870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9871 export_dynamic_flag_spec='${wl}-E'
9872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9873 # Instead, shared libraries are loaded at an image base (0x10000000 by
9874 # default) and relocated if they conflict, which is a slow very memory
9875 # consuming and fragmenting process. To avoid this, we pick a random,
9876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9879 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'
9880 ;;
9881
9882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9883 tmp_diet=no
9884 if test "$host_os" = linux-dietlibc; then
9885 case $cc_basename in
9886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9887 esac
9888 fi
9889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9890 && test "$tmp_diet" = no
9891 then
9892 tmp_addflag=' $pic_flag'
9893 tmp_sharedflag='-shared'
9894 case $cc_basename,$host_cpu in
9895 pgcc*) # Portland Group C compiler
9896 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'
9897 tmp_addflag=' $pic_flag'
9898 ;;
9899 pgf77* | pgf90* | pgf95* | pgfortran*)
9900 # Portland Group f77 and f90 compilers
9901 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'
9902 tmp_addflag=' $pic_flag -Mnomain' ;;
9903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9904 tmp_addflag=' -i_dynamic' ;;
9905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9906 tmp_addflag=' -i_dynamic -nofor_main' ;;
9907 ifc* | ifort*) # Intel Fortran compiler
9908 tmp_addflag=' -nofor_main' ;;
9909 lf95*) # Lahey Fortran 8.1
9910 whole_archive_flag_spec=
9911 tmp_sharedflag='--shared' ;;
9912 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9913 tmp_sharedflag='-qmkshrobj'
9914 tmp_addflag= ;;
9915 nvcc*) # Cuda Compiler Driver 2.2
9916 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'
9917 compiler_needs_object=yes
9918 ;;
9919 esac
9920 case `$CC -V 2>&1 | sed 5q` in
9921 *Sun\ C*) # Sun C 5.9
9922 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'
9923 compiler_needs_object=yes
9924 tmp_sharedflag='-G' ;;
9925 *Sun\ F*) # Sun Fortran 8.3
9926 tmp_sharedflag='-G' ;;
9927 esac
9928 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9929
9930 if test "x$supports_anon_versioning" = xyes; then
9931 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9933 echo "local: *; };" >> $output_objdir/$libname.ver~
9934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9935 fi
9936
9937 case $cc_basename in
9938 xlf* | bgf* | bgxlf* | mpixlf*)
9939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9940 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9941 hardcode_libdir_flag_spec=
9942 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9943 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9944 if test "x$supports_anon_versioning" = xyes; then
9945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9947 echo "local: *; };" >> $output_objdir/$libname.ver~
9948 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9949 fi
9950 ;;
9951 esac
9952 else
9953 ld_shlibs=no
9954 fi
9955 ;;
9956
9957 netbsd*)
9958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9959 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9960 wlarc=
9961 else
9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9964 fi
9965 ;;
9966
9967 solaris*)
9968 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9969 ld_shlibs=no
9970 cat <<_LT_EOF 1>&2
9971
9972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9973 *** create shared libraries on Solaris systems. Therefore, libtool
9974 *** is disabling shared libraries support. We urge you to upgrade GNU
9975 *** binutils to release 2.9.1 or newer. Another option is to modify
9976 *** your PATH or compiler configuration so that the native linker is
9977 *** used, and then restart.
9978
9979 _LT_EOF
9980 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983 else
9984 ld_shlibs=no
9985 fi
9986 ;;
9987
9988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9989 case `$LD -v 2>&1` in
9990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9991 ld_shlibs=no
9992 cat <<_LT_EOF 1>&2
9993
9994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9995 *** reliably create shared libraries on SCO systems. Therefore, libtool
9996 *** is disabling shared libraries support. We urge you to upgrade GNU
9997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9998 *** your PATH or compiler configuration so that the native linker is
9999 *** used, and then restart.
10000
10001 _LT_EOF
10002 ;;
10003 *)
10004 # For security reasons, it is highly recommended that you always
10005 # use absolute paths for naming shared libraries, and exclude the
10006 # DT_RUNPATH tag from executables and libraries. But doing so
10007 # requires that you compile everything twice, which is a pain.
10008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10012 else
10013 ld_shlibs=no
10014 fi
10015 ;;
10016 esac
10017 ;;
10018
10019 sunos4*)
10020 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10021 wlarc=
10022 hardcode_direct=yes
10023 hardcode_shlibpath_var=no
10024 ;;
10025
10026 *)
10027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10030 else
10031 ld_shlibs=no
10032 fi
10033 ;;
10034 esac
10035
10036 if test "$ld_shlibs" = no; then
10037 runpath_var=
10038 hardcode_libdir_flag_spec=
10039 export_dynamic_flag_spec=
10040 whole_archive_flag_spec=
10041 fi
10042 else
10043 # PORTME fill in a description of your system's linker (not GNU ld)
10044 case $host_os in
10045 aix3*)
10046 allow_undefined_flag=unsupported
10047 always_export_symbols=yes
10048 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'
10049 # Note: this linker hardcodes the directories in LIBPATH if there
10050 # are no directories specified by -L.
10051 hardcode_minus_L=yes
10052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10053 # Neither direct hardcoding nor static linking is supported with a
10054 # broken collect2.
10055 hardcode_direct=unsupported
10056 fi
10057 ;;
10058
10059 aix[4-9]*)
10060 if test "$host_cpu" = ia64; then
10061 # On IA64, the linker does run time linking by default, so we don't
10062 # have to do anything special.
10063 aix_use_runtimelinking=no
10064 exp_sym_flag='-Bexport'
10065 no_entry_flag=""
10066 else
10067 # If we're using GNU nm, then we don't want the "-C" option.
10068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10069 # Also, AIX nm treats weak defined symbols like other global
10070 # defined symbols, whereas GNU nm marks them as "W".
10071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10072 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'
10073 else
10074 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'
10075 fi
10076 aix_use_runtimelinking=no
10077
10078 # Test if we are trying to use run time linking or normal
10079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10080 # need to do runtime linking.
10081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10082 for ld_flag in $LDFLAGS; do
10083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10084 aix_use_runtimelinking=yes
10085 break
10086 fi
10087 done
10088 ;;
10089 esac
10090
10091 exp_sym_flag='-bexport'
10092 no_entry_flag='-bnoentry'
10093 fi
10094
10095 # When large executables or shared objects are built, AIX ld can
10096 # have problems creating the table of contents. If linking a library
10097 # or program results in "error TOC overflow" add -mminimal-toc to
10098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10100
10101 archive_cmds=''
10102 hardcode_direct=yes
10103 hardcode_direct_absolute=yes
10104 hardcode_libdir_separator=':'
10105 link_all_deplibs=yes
10106 file_list_spec='${wl}-f,'
10107
10108 if test "$GCC" = yes; then
10109 case $host_os in aix4.[012]|aix4.[012].*)
10110 # We only want to do this on AIX 4.2 and lower, the check
10111 # below for broken collect2 doesn't work under 4.3+
10112 collect2name=`${CC} -print-prog-name=collect2`
10113 if test -f "$collect2name" &&
10114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10115 then
10116 # We have reworked collect2
10117 :
10118 else
10119 # We have old collect2
10120 hardcode_direct=unsupported
10121 # It fails to find uninstalled libraries when the uninstalled
10122 # path is not listed in the libpath. Setting hardcode_minus_L
10123 # to unsupported forces relinking
10124 hardcode_minus_L=yes
10125 hardcode_libdir_flag_spec='-L$libdir'
10126 hardcode_libdir_separator=
10127 fi
10128 ;;
10129 esac
10130 shared_flag='-shared'
10131 if test "$aix_use_runtimelinking" = yes; then
10132 shared_flag="$shared_flag "'${wl}-G'
10133 fi
10134 else
10135 # not using gcc
10136 if test "$host_cpu" = ia64; then
10137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10138 # chokes on -Wl,-G. The following line is correct:
10139 shared_flag='-G'
10140 else
10141 if test "$aix_use_runtimelinking" = yes; then
10142 shared_flag='${wl}-G'
10143 else
10144 shared_flag='${wl}-bM:SRE'
10145 fi
10146 fi
10147 fi
10148
10149 export_dynamic_flag_spec='${wl}-bexpall'
10150 # It seems that -bexpall does not export symbols beginning with
10151 # underscore (_), so it is better to generate a list of symbols to export.
10152 always_export_symbols=yes
10153 if test "$aix_use_runtimelinking" = yes; then
10154 # Warning - without using the other runtime loading flags (-brtl),
10155 # -berok will link without error, but may produce a broken library.
10156 allow_undefined_flag='-berok'
10157 # Determine the default libpath from the value encoded in an
10158 # empty executable.
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161
10162 int
10163 main ()
10164 {
10165
10166 ;
10167 return 0;
10168 }
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10171
10172 lt_aix_libpath_sed='
10173 /Import File Strings/,/^$/ {
10174 /^0/ {
10175 s/^0 *\(.*\)$/\1/
10176 p
10177 }
10178 }'
10179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10180 # Check for a 64-bit object if we didn't find anything.
10181 if test -z "$aix_libpath"; then
10182 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10183 fi
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10188
10189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10190 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"
10191 else
10192 if test "$host_cpu" = ia64; then
10193 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10194 allow_undefined_flag="-z nodefs"
10195 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"
10196 else
10197 # Determine the default libpath from the value encoded in an
10198 # empty executable.
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10201
10202 int
10203 main ()
10204 {
10205
10206 ;
10207 return 0;
10208 }
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211
10212 lt_aix_libpath_sed='
10213 /Import File Strings/,/^$/ {
10214 /^0/ {
10215 s/^0 *\(.*\)$/\1/
10216 p
10217 }
10218 }'
10219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10220 # Check for a 64-bit object if we didn't find anything.
10221 if test -z "$aix_libpath"; then
10222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10223 fi
10224 fi
10225 rm -f core conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
10227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10228
10229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10230 # Warning - without using the other run time loading flags,
10231 # -berok will link without error, but may produce a broken library.
10232 no_undefined_flag=' ${wl}-bernotok'
10233 allow_undefined_flag=' ${wl}-berok'
10234 if test "$with_gnu_ld" = yes; then
10235 # We only use this code for GNU lds that support --whole-archive.
10236 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10237 else
10238 # Exported symbols can be pulled into shared objects from archives
10239 whole_archive_flag_spec='$convenience'
10240 fi
10241 archive_cmds_need_lc=yes
10242 # This is similar to how AIX traditionally builds its shared libraries.
10243 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'
10244 fi
10245 fi
10246 ;;
10247
10248 amigaos*)
10249 case $host_cpu in
10250 powerpc)
10251 # see comment about AmigaOS4 .so support
10252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253 archive_expsym_cmds=''
10254 ;;
10255 m68k)
10256 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)'
10257 hardcode_libdir_flag_spec='-L$libdir'
10258 hardcode_minus_L=yes
10259 ;;
10260 esac
10261 ;;
10262
10263 bsdi[45]*)
10264 export_dynamic_flag_spec=-rdynamic
10265 ;;
10266
10267 cygwin* | mingw* | pw32* | cegcc*)
10268 # When not using gcc, we currently assume that we are using
10269 # Microsoft Visual C++.
10270 # hardcode_libdir_flag_spec is actually meaningless, as there is
10271 # no search path for DLLs.
10272 hardcode_libdir_flag_spec=' '
10273 allow_undefined_flag=unsupported
10274 # Tell ltmain to make .lib files, not .a files.
10275 libext=lib
10276 # Tell ltmain to make .dll files, not .so files.
10277 shrext_cmds=".dll"
10278 # FIXME: Setting linknames here is a bad hack.
10279 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10280 # The linker will automatically build a .lib file if we build a DLL.
10281 old_archive_from_new_cmds='true'
10282 # FIXME: Should let the user specify the lib program.
10283 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10284 fix_srcfile_path='`cygpath -w "$srcfile"`'
10285 enable_shared_with_static_runtimes=yes
10286 ;;
10287
10288 darwin* | rhapsody*)
10289
10290
10291 archive_cmds_need_lc=no
10292 hardcode_direct=no
10293 hardcode_automatic=yes
10294 hardcode_shlibpath_var=unsupported
10295 if test "$lt_cv_ld_force_load" = "yes"; then
10296 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\"`'
10297 else
10298 whole_archive_flag_spec=''
10299 fi
10300 link_all_deplibs=yes
10301 allow_undefined_flag="$_lt_dar_allow_undefined"
10302 case $cc_basename in
10303 ifort*) _lt_dar_can_shared=yes ;;
10304 *) _lt_dar_can_shared=$GCC ;;
10305 esac
10306 if test "$_lt_dar_can_shared" = "yes"; then
10307 output_verbose_link_cmd=func_echo_all
10308 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10309 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10310 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}"
10311 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}"
10312
10313 else
10314 ld_shlibs=no
10315 fi
10316
10317 ;;
10318
10319 dgux*)
10320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10321 hardcode_libdir_flag_spec='-L$libdir'
10322 hardcode_shlibpath_var=no
10323 ;;
10324
10325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10326 # support. Future versions do this automatically, but an explicit c++rt0.o
10327 # does not break anything, and helps significantly (at the cost of a little
10328 # extra space).
10329 freebsd2.2*)
10330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10331 hardcode_libdir_flag_spec='-R$libdir'
10332 hardcode_direct=yes
10333 hardcode_shlibpath_var=no
10334 ;;
10335
10336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10337 freebsd2.*)
10338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_direct=yes
10340 hardcode_minus_L=yes
10341 hardcode_shlibpath_var=no
10342 ;;
10343
10344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10345 freebsd* | dragonfly*)
10346 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10347 hardcode_libdir_flag_spec='-R$libdir'
10348 hardcode_direct=yes
10349 hardcode_shlibpath_var=no
10350 ;;
10351
10352 hpux9*)
10353 if test "$GCC" = yes; then
10354 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'
10355 else
10356 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'
10357 fi
10358 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10359 hardcode_libdir_separator=:
10360 hardcode_direct=yes
10361
10362 # hardcode_minus_L: Not really in the search PATH,
10363 # but as the default location of the library.
10364 hardcode_minus_L=yes
10365 export_dynamic_flag_spec='${wl}-E'
10366 ;;
10367
10368 hpux10*)
10369 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10370 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10371 else
10372 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10373 fi
10374 if test "$with_gnu_ld" = no; then
10375 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10376 hardcode_libdir_flag_spec_ld='+b $libdir'
10377 hardcode_libdir_separator=:
10378 hardcode_direct=yes
10379 hardcode_direct_absolute=yes
10380 export_dynamic_flag_spec='${wl}-E'
10381 # hardcode_minus_L: Not really in the search PATH,
10382 # but as the default location of the library.
10383 hardcode_minus_L=yes
10384 fi
10385 ;;
10386
10387 hpux11*)
10388 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10389 case $host_cpu in
10390 hppa*64*)
10391 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 ;;
10393 ia64*)
10394 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10395 ;;
10396 *)
10397 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10398 ;;
10399 esac
10400 else
10401 case $host_cpu in
10402 hppa*64*)
10403 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 ;;
10405 ia64*)
10406 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10407 ;;
10408 *)
10409
10410 # Older versions of the 11.00 compiler do not understand -b yet
10411 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10413 $as_echo_n "checking if $CC understands -b... " >&6; }
10414 if ${lt_cv_prog_compiler__b+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 lt_cv_prog_compiler__b=no
10418 save_LDFLAGS="$LDFLAGS"
10419 LDFLAGS="$LDFLAGS -b"
10420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10422 # The linker can only warn and ignore the option if not recognized
10423 # So say no if there are warnings
10424 if test -s conftest.err; then
10425 # Append any errors to the config.log.
10426 cat conftest.err 1>&5
10427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10429 if diff conftest.exp conftest.er2 >/dev/null; then
10430 lt_cv_prog_compiler__b=yes
10431 fi
10432 else
10433 lt_cv_prog_compiler__b=yes
10434 fi
10435 fi
10436 $RM -r conftest*
10437 LDFLAGS="$save_LDFLAGS"
10438
10439 fi
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10441 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10442
10443 if test x"$lt_cv_prog_compiler__b" = xyes; then
10444 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10445 else
10446 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10447 fi
10448
10449 ;;
10450 esac
10451 fi
10452 if test "$with_gnu_ld" = no; then
10453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10454 hardcode_libdir_separator=:
10455
10456 case $host_cpu in
10457 hppa*64*|ia64*)
10458 hardcode_direct=no
10459 hardcode_shlibpath_var=no
10460 ;;
10461 *)
10462 hardcode_direct=yes
10463 hardcode_direct_absolute=yes
10464 export_dynamic_flag_spec='${wl}-E'
10465
10466 # hardcode_minus_L: Not really in the search PATH,
10467 # but as the default location of the library.
10468 hardcode_minus_L=yes
10469 ;;
10470 esac
10471 fi
10472 ;;
10473
10474 irix5* | irix6* | nonstopux*)
10475 if test "$GCC" = yes; then
10476 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'
10477 # Try to use the -exported_symbol ld option, if it does not
10478 # work, assume that -exports_file does not work either and
10479 # implicitly export all symbols.
10480 save_LDFLAGS="$LDFLAGS"
10481 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10484 int foo(void) {}
10485 _ACEOF
10486 if ac_fn_c_try_link "$LINENO"; then :
10487 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'
10488
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10492 LDFLAGS="$save_LDFLAGS"
10493 else
10494 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'
10495 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'
10496 fi
10497 archive_cmds_need_lc='no'
10498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10499 hardcode_libdir_separator=:
10500 inherit_rpath=yes
10501 link_all_deplibs=yes
10502 ;;
10503
10504 netbsd*)
10505 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10507 else
10508 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10509 fi
10510 hardcode_libdir_flag_spec='-R$libdir'
10511 hardcode_direct=yes
10512 hardcode_shlibpath_var=no
10513 ;;
10514
10515 newsos6)
10516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517 hardcode_direct=yes
10518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10519 hardcode_libdir_separator=:
10520 hardcode_shlibpath_var=no
10521 ;;
10522
10523 *nto* | *qnx*)
10524 ;;
10525
10526 openbsd*)
10527 if test -f /usr/libexec/ld.so; then
10528 hardcode_direct=yes
10529 hardcode_shlibpath_var=no
10530 hardcode_direct_absolute=yes
10531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10533 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10535 export_dynamic_flag_spec='${wl}-E'
10536 else
10537 case $host_os in
10538 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10540 hardcode_libdir_flag_spec='-R$libdir'
10541 ;;
10542 *)
10543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10545 ;;
10546 esac
10547 fi
10548 else
10549 ld_shlibs=no
10550 fi
10551 ;;
10552
10553 os2*)
10554 hardcode_libdir_flag_spec='-L$libdir'
10555 hardcode_minus_L=yes
10556 allow_undefined_flag=unsupported
10557 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'
10558 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10559 ;;
10560
10561 osf3*)
10562 if test "$GCC" = yes; then
10563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10564 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'
10565 else
10566 allow_undefined_flag=' -expect_unresolved \*'
10567 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'
10568 fi
10569 archive_cmds_need_lc='no'
10570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10571 hardcode_libdir_separator=:
10572 ;;
10573
10574 osf4* | osf5*) # as osf3* with the addition of -msym flag
10575 if test "$GCC" = yes; then
10576 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10577 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'
10578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10579 else
10580 allow_undefined_flag=' -expect_unresolved \*'
10581 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'
10582 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~
10583 $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'
10584
10585 # Both c and cxx compiler support -rpath directly
10586 hardcode_libdir_flag_spec='-rpath $libdir'
10587 fi
10588 archive_cmds_need_lc='no'
10589 hardcode_libdir_separator=:
10590 ;;
10591
10592 solaris*)
10593 no_undefined_flag=' -z defs'
10594 if test "$GCC" = yes; then
10595 wlarc='${wl}'
10596 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10598 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10599 else
10600 case `$CC -V 2>&1` in
10601 *"Compilers 5.0"*)
10602 wlarc=''
10603 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10606 ;;
10607 *)
10608 wlarc='${wl}'
10609 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10611 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10612 ;;
10613 esac
10614 fi
10615 hardcode_libdir_flag_spec='-R$libdir'
10616 hardcode_shlibpath_var=no
10617 case $host_os in
10618 solaris2.[0-5] | solaris2.[0-5].*) ;;
10619 *)
10620 # The compiler driver will combine and reorder linker options,
10621 # but understands `-z linker_flag'. GCC discards it without `$wl',
10622 # but is careful enough not to reorder.
10623 # Supported since Solaris 2.6 (maybe 2.5.1?)
10624 if test "$GCC" = yes; then
10625 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10626 else
10627 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10628 fi
10629 ;;
10630 esac
10631 link_all_deplibs=yes
10632 ;;
10633
10634 sunos4*)
10635 if test "x$host_vendor" = xsequent; then
10636 # Use $CC to link under sequent, because it throws in some extra .o
10637 # files that make .init and .fini sections work.
10638 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10639 else
10640 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10641 fi
10642 hardcode_libdir_flag_spec='-L$libdir'
10643 hardcode_direct=yes
10644 hardcode_minus_L=yes
10645 hardcode_shlibpath_var=no
10646 ;;
10647
10648 sysv4)
10649 case $host_vendor in
10650 sni)
10651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10652 hardcode_direct=yes # is this really true???
10653 ;;
10654 siemens)
10655 ## LD is ld it makes a PLAMLIB
10656 ## CC just makes a GrossModule.
10657 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10658 reload_cmds='$CC -r -o $output$reload_objs'
10659 hardcode_direct=no
10660 ;;
10661 motorola)
10662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10663 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10664 ;;
10665 esac
10666 runpath_var='LD_RUN_PATH'
10667 hardcode_shlibpath_var=no
10668 ;;
10669
10670 sysv4.3*)
10671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10672 hardcode_shlibpath_var=no
10673 export_dynamic_flag_spec='-Bexport'
10674 ;;
10675
10676 sysv4*MP*)
10677 if test -d /usr/nec; then
10678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679 hardcode_shlibpath_var=no
10680 runpath_var=LD_RUN_PATH
10681 hardcode_runpath_var=yes
10682 ld_shlibs=yes
10683 fi
10684 ;;
10685
10686 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10687 no_undefined_flag='${wl}-z,text'
10688 archive_cmds_need_lc=no
10689 hardcode_shlibpath_var=no
10690 runpath_var='LD_RUN_PATH'
10691
10692 if test "$GCC" = yes; then
10693 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695 else
10696 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10698 fi
10699 ;;
10700
10701 sysv5* | sco3.2v5* | sco5v6*)
10702 # Note: We can NOT use -z defs as we might desire, because we do not
10703 # link with -lc, and that would cause any symbols used from libc to
10704 # always be unresolved, which means just about no library would
10705 # ever link correctly. If we're not using GNU ld we use -z text
10706 # though, which does catch some bad symbols but isn't as heavy-handed
10707 # as -z defs.
10708 no_undefined_flag='${wl}-z,text'
10709 allow_undefined_flag='${wl}-z,nodefs'
10710 archive_cmds_need_lc=no
10711 hardcode_shlibpath_var=no
10712 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10713 hardcode_libdir_separator=':'
10714 link_all_deplibs=yes
10715 export_dynamic_flag_spec='${wl}-Bexport'
10716 runpath_var='LD_RUN_PATH'
10717
10718 if test "$GCC" = yes; then
10719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10721 else
10722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10724 fi
10725 ;;
10726
10727 uts4*)
10728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729 hardcode_libdir_flag_spec='-L$libdir'
10730 hardcode_shlibpath_var=no
10731 ;;
10732
10733 *)
10734 ld_shlibs=no
10735 ;;
10736 esac
10737
10738 if test x$host_vendor = xsni; then
10739 case $host in
10740 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10741 export_dynamic_flag_spec='${wl}-Blargedynsym'
10742 ;;
10743 esac
10744 fi
10745 fi
10746
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10748 $as_echo "$ld_shlibs" >&6; }
10749 test "$ld_shlibs" = no && can_build_shared=no
10750
10751 with_gnu_ld=$with_gnu_ld
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767 #
10768 # Do we need to explicitly link libc?
10769 #
10770 case "x$archive_cmds_need_lc" in
10771 x|xyes)
10772 # Assume -lc should be added
10773 archive_cmds_need_lc=yes
10774
10775 if test "$enable_shared" = yes && test "$GCC" = yes; then
10776 case $archive_cmds in
10777 *'~'*)
10778 # FIXME: we may have to deal with multi-command sequences.
10779 ;;
10780 '$CC '*)
10781 # Test whether the compiler implicitly links with -lc since on some
10782 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10783 # to ld, don't add -lc before -lgcc.
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10785 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10786 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 $RM conftest*
10790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10791
10792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10793 (eval $ac_compile) 2>&5
10794 ac_status=$?
10795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10796 test $ac_status = 0; } 2>conftest.err; then
10797 soname=conftest
10798 lib=conftest
10799 libobjs=conftest.$ac_objext
10800 deplibs=
10801 wl=$lt_prog_compiler_wl
10802 pic_flag=$lt_prog_compiler_pic
10803 compiler_flags=-v
10804 linker_flags=-v
10805 verstring=
10806 output_objdir=.
10807 libname=conftest
10808 lt_save_allow_undefined_flag=$allow_undefined_flag
10809 allow_undefined_flag=
10810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10811 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10812 ac_status=$?
10813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10814 test $ac_status = 0; }
10815 then
10816 lt_cv_archive_cmds_need_lc=no
10817 else
10818 lt_cv_archive_cmds_need_lc=yes
10819 fi
10820 allow_undefined_flag=$lt_save_allow_undefined_flag
10821 else
10822 cat conftest.err 1>&5
10823 fi
10824 $RM conftest*
10825
10826 fi
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10828 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10829 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10830 ;;
10831 esac
10832 fi
10833 ;;
10834 esac
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10993 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10994
10995 if test "$GCC" = yes; then
10996 case $host_os in
10997 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10998 *) lt_awk_arg="/^libraries:/" ;;
10999 esac
11000 case $host_os in
11001 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11002 *) lt_sed_strip_eq="s,=/,/,g" ;;
11003 esac
11004 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11005 case $lt_search_path_spec in
11006 *\;*)
11007 # if the path contains ";" then we assume it to be the separator
11008 # otherwise default to the standard path separator (i.e. ":") - it is
11009 # assumed that no part of a normal pathname contains ";" but that should
11010 # okay in the real world where ";" in dirpaths is itself problematic.
11011 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11012 ;;
11013 *)
11014 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11015 ;;
11016 esac
11017 # Ok, now we have the path, separated by spaces, we can step through it
11018 # and add multilib dir if necessary.
11019 lt_tmp_lt_search_path_spec=
11020 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11021 for lt_sys_path in $lt_search_path_spec; do
11022 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11023 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11024 else
11025 test -d "$lt_sys_path" && \
11026 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11027 fi
11028 done
11029 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11030 BEGIN {RS=" "; FS="/|\n";} {
11031 lt_foo="";
11032 lt_count=0;
11033 for (lt_i = NF; lt_i > 0; lt_i--) {
11034 if ($lt_i != "" && $lt_i != ".") {
11035 if ($lt_i == "..") {
11036 lt_count++;
11037 } else {
11038 if (lt_count == 0) {
11039 lt_foo="/" $lt_i lt_foo;
11040 } else {
11041 lt_count--;
11042 }
11043 }
11044 }
11045 }
11046 if (lt_foo != "") { lt_freq[lt_foo]++; }
11047 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11048 }'`
11049 # AWK program above erroneously prepends '/' to C:/dos/paths
11050 # for these hosts.
11051 case $host_os in
11052 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11053 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11054 esac
11055 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11056 else
11057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11058 fi
11059 library_names_spec=
11060 libname_spec='lib$name'
11061 soname_spec=
11062 shrext_cmds=".so"
11063 postinstall_cmds=
11064 postuninstall_cmds=
11065 finish_cmds=
11066 finish_eval=
11067 shlibpath_var=
11068 shlibpath_overrides_runpath=unknown
11069 version_type=none
11070 dynamic_linker="$host_os ld.so"
11071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11072 need_lib_prefix=unknown
11073 hardcode_into_libs=no
11074
11075 # when you set need_version to no, make sure it does not cause -set_version
11076 # flags to be left without arguments
11077 need_version=unknown
11078
11079 case $host_os in
11080 aix3*)
11081 version_type=linux
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11083 shlibpath_var=LIBPATH
11084
11085 # AIX 3 has no versioning support, so we append a major version to the name.
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 ;;
11088
11089 aix[4-9]*)
11090 version_type=linux
11091 need_lib_prefix=no
11092 need_version=no
11093 hardcode_into_libs=yes
11094 if test "$host_cpu" = ia64; then
11095 # AIX 5 supports IA64
11096 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 else
11099 # With GCC up to 2.95.x, collect2 would create an import file
11100 # for dependence libraries. The import file would start with
11101 # the line `#! .'. This would cause the generated library to
11102 # depend on `.', always an invalid library. This was fixed in
11103 # development snapshots of GCC prior to 3.0.
11104 case $host_os in
11105 aix4 | aix4.[01] | aix4.[01].*)
11106 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11107 echo ' yes '
11108 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11109 :
11110 else
11111 can_build_shared=no
11112 fi
11113 ;;
11114 esac
11115 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11116 # soname into executable. Probably we can add versioning support to
11117 # collect2, so additional links can be useful in future.
11118 if test "$aix_use_runtimelinking" = yes; then
11119 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11120 # instead of lib<name>.a to let people know that these are not
11121 # typical AIX shared libraries.
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 else
11124 # We preserve .a as extension for shared libraries through AIX4.2
11125 # and later when we are not doing run time linking.
11126 library_names_spec='${libname}${release}.a $libname.a'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 fi
11129 shlibpath_var=LIBPATH
11130 fi
11131 ;;
11132
11133 amigaos*)
11134 case $host_cpu in
11135 powerpc)
11136 # Since July 2007 AmigaOS4 officially supports .so libraries.
11137 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139 ;;
11140 m68k)
11141 library_names_spec='$libname.ixlibrary $libname.a'
11142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11143 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'
11144 ;;
11145 esac
11146 ;;
11147
11148 beos*)
11149 library_names_spec='${libname}${shared_ext}'
11150 dynamic_linker="$host_os ld.so"
11151 shlibpath_var=LIBRARY_PATH
11152 ;;
11153
11154 bsdi[45]*)
11155 version_type=linux
11156 need_version=no
11157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158 soname_spec='${libname}${release}${shared_ext}$major'
11159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11163 # the default ld.so.conf also contains /usr/contrib/lib and
11164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11165 # libtool to hard-code these into programs
11166 ;;
11167
11168 cygwin* | mingw* | pw32* | cegcc*)
11169 version_type=windows
11170 shrext_cmds=".dll"
11171 need_version=no
11172 need_lib_prefix=no
11173
11174 case $GCC,$host_os in
11175 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11176 library_names_spec='$libname.dll.a'
11177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11178 postinstall_cmds='base_file=`basename \${file}`~
11179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11180 dldir=$destdir/`dirname \$dlpath`~
11181 test -d \$dldir || mkdir -p \$dldir~
11182 $install_prog $dir/$dlname \$dldir/$dlname~
11183 chmod a+x \$dldir/$dlname~
11184 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11185 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11186 fi'
11187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11188 dlpath=$dir/\$dldll~
11189 $RM \$dlpath'
11190 shlibpath_overrides_runpath=yes
11191
11192 case $host_os in
11193 cygwin*)
11194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11195 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11196
11197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11198 ;;
11199 mingw* | cegcc*)
11200 # MinGW DLLs use traditional 'lib' prefix
11201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11202 ;;
11203 pw32*)
11204 # pw32 DLLs use 'pw' prefix rather than 'lib'
11205 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11206 ;;
11207 esac
11208 ;;
11209
11210 *)
11211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11212 ;;
11213 esac
11214 dynamic_linker='Win32 ld.exe'
11215 # FIXME: first we should search . and the directory the executable is in
11216 shlibpath_var=PATH
11217 ;;
11218
11219 darwin* | rhapsody*)
11220 dynamic_linker="$host_os dyld"
11221 version_type=darwin
11222 need_lib_prefix=no
11223 need_version=no
11224 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11225 soname_spec='${libname}${release}${major}$shared_ext'
11226 shlibpath_overrides_runpath=yes
11227 shlibpath_var=DYLD_LIBRARY_PATH
11228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11229
11230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11232 ;;
11233
11234 dgux*)
11235 version_type=linux
11236 need_lib_prefix=no
11237 need_version=no
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 shlibpath_var=LD_LIBRARY_PATH
11241 ;;
11242
11243 freebsd* | dragonfly*)
11244 # DragonFly does not have aout. When/if they implement a new
11245 # versioning mechanism, adjust this.
11246 if test -x /usr/bin/objformat; then
11247 objformat=`/usr/bin/objformat`
11248 else
11249 case $host_os in
11250 freebsd[23].*) objformat=aout ;;
11251 *) objformat=elf ;;
11252 esac
11253 fi
11254 version_type=freebsd-$objformat
11255 case $version_type in
11256 freebsd-elf*)
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11258 need_version=no
11259 need_lib_prefix=no
11260 ;;
11261 freebsd-*)
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11263 need_version=yes
11264 ;;
11265 esac
11266 shlibpath_var=LD_LIBRARY_PATH
11267 case $host_os in
11268 freebsd2.*)
11269 shlibpath_overrides_runpath=yes
11270 ;;
11271 freebsd3.[01]* | freebsdelf3.[01]*)
11272 shlibpath_overrides_runpath=yes
11273 hardcode_into_libs=yes
11274 ;;
11275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11277 shlibpath_overrides_runpath=no
11278 hardcode_into_libs=yes
11279 ;;
11280 *) # from 4.6 on, and DragonFly
11281 shlibpath_overrides_runpath=yes
11282 hardcode_into_libs=yes
11283 ;;
11284 esac
11285 ;;
11286
11287 haiku*)
11288 version_type=linux
11289 need_lib_prefix=no
11290 need_version=no
11291 dynamic_linker="$host_os runtime_loader"
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 shlibpath_var=LIBRARY_PATH
11295 shlibpath_overrides_runpath=yes
11296 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11297 hardcode_into_libs=yes
11298 ;;
11299
11300 hpux9* | hpux10* | hpux11*)
11301 # Give a soname corresponding to the major version so that dld.sl refuses to
11302 # link against other versions.
11303 version_type=sunos
11304 need_lib_prefix=no
11305 need_version=no
11306 case $host_cpu in
11307 ia64*)
11308 shrext_cmds='.so'
11309 hardcode_into_libs=yes
11310 dynamic_linker="$host_os dld.so"
11311 shlibpath_var=LD_LIBRARY_PATH
11312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 if test "X$HPUX_IA64_MODE" = X32; then
11316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11317 else
11318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11319 fi
11320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11321 ;;
11322 hppa*64*)
11323 shrext_cmds='.sl'
11324 hardcode_into_libs=yes
11325 dynamic_linker="$host_os dld.sl"
11326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11332 ;;
11333 *)
11334 shrext_cmds='.sl'
11335 dynamic_linker="$host_os dld.sl"
11336 shlibpath_var=SHLIB_PATH
11337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 ;;
11341 esac
11342 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11343 postinstall_cmds='chmod 555 $lib'
11344 # or fails outright, so override atomically:
11345 install_override_mode=555
11346 ;;
11347
11348 interix[3-9]*)
11349 version_type=linux
11350 need_lib_prefix=no
11351 need_version=no
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11353 soname_spec='${libname}${release}${shared_ext}$major'
11354 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11355 shlibpath_var=LD_LIBRARY_PATH
11356 shlibpath_overrides_runpath=no
11357 hardcode_into_libs=yes
11358 ;;
11359
11360 irix5* | irix6* | nonstopux*)
11361 case $host_os in
11362 nonstopux*) version_type=nonstopux ;;
11363 *)
11364 if test "$lt_cv_prog_gnu_ld" = yes; then
11365 version_type=linux
11366 else
11367 version_type=irix
11368 fi ;;
11369 esac
11370 need_lib_prefix=no
11371 need_version=no
11372 soname_spec='${libname}${release}${shared_ext}$major'
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11374 case $host_os in
11375 irix5* | nonstopux*)
11376 libsuff= shlibsuff=
11377 ;;
11378 *)
11379 case $LD in # libtool.m4 will add one of these switches to LD
11380 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11381 libsuff= shlibsuff= libmagic=32-bit;;
11382 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11383 libsuff=32 shlibsuff=N32 libmagic=N32;;
11384 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11385 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11386 *) libsuff= shlibsuff= libmagic=never-match;;
11387 esac
11388 ;;
11389 esac
11390 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11391 shlibpath_overrides_runpath=no
11392 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11393 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11394 hardcode_into_libs=yes
11395 ;;
11396
11397 # No shared lib support for Linux oldld, aout, or coff.
11398 linux*oldld* | linux*aout* | linux*coff*)
11399 dynamic_linker=no
11400 ;;
11401
11402 # This must be Linux ELF.
11403 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11404 version_type=linux
11405 need_lib_prefix=no
11406 need_version=no
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11410 shlibpath_var=LD_LIBRARY_PATH
11411 shlibpath_overrides_runpath=no
11412
11413 # Some binutils ld are patched to set DT_RUNPATH
11414 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 lt_cv_shlibpath_overrides_runpath=no
11418 save_LDFLAGS=$LDFLAGS
11419 save_libdir=$libdir
11420 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11421 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11424
11425 int
11426 main ()
11427 {
11428
11429 ;
11430 return 0;
11431 }
11432 _ACEOF
11433 if ac_fn_c_try_link "$LINENO"; then :
11434 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11435 lt_cv_shlibpath_overrides_runpath=yes
11436 fi
11437 fi
11438 rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
11440 LDFLAGS=$save_LDFLAGS
11441 libdir=$save_libdir
11442
11443 fi
11444
11445 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11446
11447 # This implies no fast_install, which is unacceptable.
11448 # Some rework will be needed to allow for fast_install
11449 # before this can be enabled.
11450 hardcode_into_libs=yes
11451
11452 # Append ld.so.conf contents to the search path
11453 if test -f /etc/ld.so.conf; then
11454 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' ' '`
11455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11456 fi
11457
11458 # We used to test for /lib/ld.so.1 and disable shared libraries on
11459 # powerpc, because MkLinux only supported shared libraries with the
11460 # GNU dynamic linker. Since this was broken with cross compilers,
11461 # most powerpc-linux boxes support dynamic linking these days and
11462 # people can always --disable-shared, the test was removed, and we
11463 # assume the GNU/Linux dynamic linker is in use.
11464 dynamic_linker='GNU/Linux ld.so'
11465 ;;
11466
11467 netbsd*)
11468 version_type=sunos
11469 need_lib_prefix=no
11470 need_version=no
11471 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11474 dynamic_linker='NetBSD (a.out) ld.so'
11475 else
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 dynamic_linker='NetBSD ld.elf_so'
11479 fi
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=yes
11482 hardcode_into_libs=yes
11483 ;;
11484
11485 newsos6)
11486 version_type=linux
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 shlibpath_overrides_runpath=yes
11490 ;;
11491
11492 *nto* | *qnx*)
11493 version_type=qnx
11494 need_lib_prefix=no
11495 need_version=no
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497 soname_spec='${libname}${release}${shared_ext}$major'
11498 shlibpath_var=LD_LIBRARY_PATH
11499 shlibpath_overrides_runpath=no
11500 hardcode_into_libs=yes
11501 dynamic_linker='ldqnx.so'
11502 ;;
11503
11504 openbsd*)
11505 version_type=sunos
11506 sys_lib_dlsearch_path_spec="/usr/lib"
11507 need_lib_prefix=no
11508 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11509 case $host_os in
11510 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11511 *) need_version=no ;;
11512 esac
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11517 case $host_os in
11518 openbsd2.[89] | openbsd2.[89].*)
11519 shlibpath_overrides_runpath=no
11520 ;;
11521 *)
11522 shlibpath_overrides_runpath=yes
11523 ;;
11524 esac
11525 else
11526 shlibpath_overrides_runpath=yes
11527 fi
11528 ;;
11529
11530 os2*)
11531 libname_spec='$name'
11532 shrext_cmds=".dll"
11533 need_lib_prefix=no
11534 library_names_spec='$libname${shared_ext} $libname.a'
11535 dynamic_linker='OS/2 ld.exe'
11536 shlibpath_var=LIBPATH
11537 ;;
11538
11539 osf3* | osf4* | osf5*)
11540 version_type=osf
11541 need_lib_prefix=no
11542 need_version=no
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11548 ;;
11549
11550 rdos*)
11551 dynamic_linker=no
11552 ;;
11553
11554 solaris*)
11555 version_type=linux
11556 need_lib_prefix=no
11557 need_version=no
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 # ldd complains unless libraries are executable
11564 postinstall_cmds='chmod +x $lib'
11565 ;;
11566
11567 sunos4*)
11568 version_type=sunos
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=yes
11573 if test "$with_gnu_ld" = yes; then
11574 need_lib_prefix=no
11575 fi
11576 need_version=yes
11577 ;;
11578
11579 sysv4 | sysv4.3*)
11580 version_type=linux
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 case $host_vendor in
11585 sni)
11586 shlibpath_overrides_runpath=no
11587 need_lib_prefix=no
11588 runpath_var=LD_RUN_PATH
11589 ;;
11590 siemens)
11591 need_lib_prefix=no
11592 ;;
11593 motorola)
11594 need_lib_prefix=no
11595 need_version=no
11596 shlibpath_overrides_runpath=no
11597 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11598 ;;
11599 esac
11600 ;;
11601
11602 sysv4*MP*)
11603 if test -d /usr/nec ;then
11604 version_type=linux
11605 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11606 soname_spec='$libname${shared_ext}.$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 fi
11609 ;;
11610
11611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11612 version_type=freebsd-elf
11613 need_lib_prefix=no
11614 need_version=no
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes
11619 hardcode_into_libs=yes
11620 if test "$with_gnu_ld" = yes; then
11621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11622 else
11623 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11624 case $host_os in
11625 sco3.2v5*)
11626 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11627 ;;
11628 esac
11629 fi
11630 sys_lib_dlsearch_path_spec='/usr/lib'
11631 ;;
11632
11633 tpf*)
11634 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11635 version_type=linux
11636 need_lib_prefix=no
11637 need_version=no
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=no
11641 hardcode_into_libs=yes
11642 ;;
11643
11644 uts4*)
11645 version_type=linux
11646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11647 soname_spec='${libname}${release}${shared_ext}$major'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 ;;
11650
11651 *)
11652 dynamic_linker=no
11653 ;;
11654 esac
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11656 $as_echo "$dynamic_linker" >&6; }
11657 test "$dynamic_linker" = no && can_build_shared=no
11658
11659 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11660 if test "$GCC" = yes; then
11661 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11662 fi
11663
11664 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11665 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11666 fi
11667 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11668 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11669 fi
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11763 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11764 hardcode_action=
11765 if test -n "$hardcode_libdir_flag_spec" ||
11766 test -n "$runpath_var" ||
11767 test "X$hardcode_automatic" = "Xyes" ; then
11768
11769 # We can hardcode non-existent directories.
11770 if test "$hardcode_direct" != no &&
11771 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11772 # have to relink, otherwise we might link with an installed library
11773 # when we should be linking with a yet-to-be-installed one
11774 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11775 test "$hardcode_minus_L" != no; then
11776 # Linking always hardcodes the temporary library directory.
11777 hardcode_action=relink
11778 else
11779 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11780 hardcode_action=immediate
11781 fi
11782 else
11783 # We cannot hardcode anything, or else we can only hardcode existing
11784 # directories.
11785 hardcode_action=unsupported
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11788 $as_echo "$hardcode_action" >&6; }
11789
11790 if test "$hardcode_action" = relink ||
11791 test "$inherit_rpath" = yes; then
11792 # Fast installation is not supported
11793 enable_fast_install=no
11794 elif test "$shlibpath_overrides_runpath" = yes ||
11795 test "$enable_shared" = no; then
11796 # Fast installation is not necessary
11797 enable_fast_install=needless
11798 fi
11799
11800
11801
11802
11803
11804
11805 if test "x$enable_dlopen" != xyes; then
11806 enable_dlopen=unknown
11807 enable_dlopen_self=unknown
11808 enable_dlopen_self_static=unknown
11809 else
11810 lt_cv_dlopen=no
11811 lt_cv_dlopen_libs=
11812
11813 case $host_os in
11814 beos*)
11815 lt_cv_dlopen="load_add_on"
11816 lt_cv_dlopen_libs=
11817 lt_cv_dlopen_self=yes
11818 ;;
11819
11820 mingw* | pw32* | cegcc*)
11821 lt_cv_dlopen="LoadLibrary"
11822 lt_cv_dlopen_libs=
11823 ;;
11824
11825 cygwin*)
11826 lt_cv_dlopen="dlopen"
11827 lt_cv_dlopen_libs=
11828 ;;
11829
11830 darwin*)
11831 # if libdl is installed we need to link against it
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11833 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11834 if ${ac_cv_lib_dl_dlopen+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 ac_check_lib_save_LIBS=$LIBS
11838 LIBS="-ldl $LIBS"
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11841
11842 /* Override any GCC internal prototype to avoid an error.
11843 Use char because int might match the return type of a GCC
11844 builtin and then its argument prototype would still apply. */
11845 #ifdef __cplusplus
11846 extern "C"
11847 #endif
11848 char dlopen ();
11849 int
11850 main ()
11851 {
11852 return dlopen ();
11853 ;
11854 return 0;
11855 }
11856 _ACEOF
11857 if ac_fn_c_try_link "$LINENO"; then :
11858 ac_cv_lib_dl_dlopen=yes
11859 else
11860 ac_cv_lib_dl_dlopen=no
11861 fi
11862 rm -f core conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
11864 LIBS=$ac_check_lib_save_LIBS
11865 fi
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11867 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11868 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11870 else
11871
11872 lt_cv_dlopen="dyld"
11873 lt_cv_dlopen_libs=
11874 lt_cv_dlopen_self=yes
11875
11876 fi
11877
11878 ;;
11879
11880 *)
11881 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11882 if test "x$ac_cv_func_shl_load" = xyes; then :
11883 lt_cv_dlopen="shl_load"
11884 else
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11886 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11887 if ${ac_cv_lib_dld_shl_load+:} false; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 ac_check_lib_save_LIBS=$LIBS
11891 LIBS="-ldld $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 shl_load ();
11902 int
11903 main ()
11904 {
11905 return shl_load ();
11906 ;
11907 return 0;
11908 }
11909 _ACEOF
11910 if ac_fn_c_try_link "$LINENO"; then :
11911 ac_cv_lib_dld_shl_load=yes
11912 else
11913 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
11920 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11921 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11922 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11923 else
11924 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11925 if test "x$ac_cv_func_dlopen" = xyes; then :
11926 lt_cv_dlopen="dlopen"
11927 else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11929 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11930 if ${ac_cv_lib_dl_dlopen+:} false; then :
11931 $as_echo_n "(cached) " >&6
11932 else
11933 ac_check_lib_save_LIBS=$LIBS
11934 LIBS="-ldl $LIBS"
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11937
11938 /* Override any GCC internal prototype to avoid an error.
11939 Use char because int might match the return type of a GCC
11940 builtin and then its argument prototype would still apply. */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 char dlopen ();
11945 int
11946 main ()
11947 {
11948 return dlopen ();
11949 ;
11950 return 0;
11951 }
11952 _ACEOF
11953 if ac_fn_c_try_link "$LINENO"; then :
11954 ac_cv_lib_dl_dlopen=yes
11955 else
11956 ac_cv_lib_dl_dlopen=no
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext \
11959 conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11961 fi
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11963 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11964 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11966 else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11968 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11969 if ${ac_cv_lib_svld_dlopen+:} false; then :
11970 $as_echo_n "(cached) " >&6
11971 else
11972 ac_check_lib_save_LIBS=$LIBS
11973 LIBS="-lsvld $LIBS"
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976
11977 /* Override any GCC internal prototype to avoid an error.
11978 Use char because int might match the return type of a GCC
11979 builtin and then its argument prototype would still apply. */
11980 #ifdef __cplusplus
11981 extern "C"
11982 #endif
11983 char dlopen ();
11984 int
11985 main ()
11986 {
11987 return dlopen ();
11988 ;
11989 return 0;
11990 }
11991 _ACEOF
11992 if ac_fn_c_try_link "$LINENO"; then :
11993 ac_cv_lib_svld_dlopen=yes
11994 else
11995 ac_cv_lib_svld_dlopen=no
11996 fi
11997 rm -f core conftest.err conftest.$ac_objext \
11998 conftest$ac_exeext conftest.$ac_ext
11999 LIBS=$ac_check_lib_save_LIBS
12000 fi
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12002 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12003 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12007 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12008 if ${ac_cv_lib_dld_dld_link+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 ac_check_lib_save_LIBS=$LIBS
12012 LIBS="-ldld $LIBS"
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12015
12016 /* Override any GCC internal prototype to avoid an error.
12017 Use char because int might match the return type of a GCC
12018 builtin and then its argument prototype would still apply. */
12019 #ifdef __cplusplus
12020 extern "C"
12021 #endif
12022 char dld_link ();
12023 int
12024 main ()
12025 {
12026 return dld_link ();
12027 ;
12028 return 0;
12029 }
12030 _ACEOF
12031 if ac_fn_c_try_link "$LINENO"; then :
12032 ac_cv_lib_dld_dld_link=yes
12033 else
12034 ac_cv_lib_dld_dld_link=no
12035 fi
12036 rm -f core conftest.err conftest.$ac_objext \
12037 conftest$ac_exeext conftest.$ac_ext
12038 LIBS=$ac_check_lib_save_LIBS
12039 fi
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12041 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12042 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12043 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12044 fi
12045
12046
12047 fi
12048
12049
12050 fi
12051
12052
12053 fi
12054
12055
12056 fi
12057
12058
12059 fi
12060
12061 ;;
12062 esac
12063
12064 if test "x$lt_cv_dlopen" != xno; then
12065 enable_dlopen=yes
12066 else
12067 enable_dlopen=no
12068 fi
12069
12070 case $lt_cv_dlopen in
12071 dlopen)
12072 save_CPPFLAGS="$CPPFLAGS"
12073 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12074
12075 save_LDFLAGS="$LDFLAGS"
12076 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12077
12078 save_LIBS="$LIBS"
12079 LIBS="$lt_cv_dlopen_libs $LIBS"
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12082 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12083 if ${lt_cv_dlopen_self+:} false; then :
12084 $as_echo_n "(cached) " >&6
12085 else
12086 if test "$cross_compiling" = yes; then :
12087 lt_cv_dlopen_self=cross
12088 else
12089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12090 lt_status=$lt_dlunknown
12091 cat > conftest.$ac_ext <<_LT_EOF
12092 #line 12092 "configure"
12093 #include "confdefs.h"
12094
12095 #if HAVE_DLFCN_H
12096 #include <dlfcn.h>
12097 #endif
12098
12099 #include <stdio.h>
12100
12101 #ifdef RTLD_GLOBAL
12102 # define LT_DLGLOBAL RTLD_GLOBAL
12103 #else
12104 # ifdef DL_GLOBAL
12105 # define LT_DLGLOBAL DL_GLOBAL
12106 # else
12107 # define LT_DLGLOBAL 0
12108 # endif
12109 #endif
12110
12111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12112 find out it does not work in some platform. */
12113 #ifndef LT_DLLAZY_OR_NOW
12114 # ifdef RTLD_LAZY
12115 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12116 # else
12117 # ifdef DL_LAZY
12118 # define LT_DLLAZY_OR_NOW DL_LAZY
12119 # else
12120 # ifdef RTLD_NOW
12121 # define LT_DLLAZY_OR_NOW RTLD_NOW
12122 # else
12123 # ifdef DL_NOW
12124 # define LT_DLLAZY_OR_NOW DL_NOW
12125 # else
12126 # define LT_DLLAZY_OR_NOW 0
12127 # endif
12128 # endif
12129 # endif
12130 # endif
12131 #endif
12132
12133 /* When -fvisbility=hidden is used, assume the code has been annotated
12134 correspondingly for the symbols needed. */
12135 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12136 void fnord () __attribute__((visibility("default")));
12137 #endif
12138
12139 void fnord () { int i=42; }
12140 int main ()
12141 {
12142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12143 int status = $lt_dlunknown;
12144
12145 if (self)
12146 {
12147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12148 else
12149 {
12150 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12151 else puts (dlerror ());
12152 }
12153 /* dlclose (self); */
12154 }
12155 else
12156 puts (dlerror ());
12157
12158 return status;
12159 }
12160 _LT_EOF
12161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12162 (eval $ac_link) 2>&5
12163 ac_status=$?
12164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12165 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12166 (./conftest; exit; ) >&5 2>/dev/null
12167 lt_status=$?
12168 case x$lt_status in
12169 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12170 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12171 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12172 esac
12173 else :
12174 # compilation failed
12175 lt_cv_dlopen_self=no
12176 fi
12177 fi
12178 rm -fr conftest*
12179
12180
12181 fi
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12183 $as_echo "$lt_cv_dlopen_self" >&6; }
12184
12185 if test "x$lt_cv_dlopen_self" = xyes; then
12186 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12188 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12189 if ${lt_cv_dlopen_self_static+:} false; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 if test "$cross_compiling" = yes; then :
12193 lt_cv_dlopen_self_static=cross
12194 else
12195 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12196 lt_status=$lt_dlunknown
12197 cat > conftest.$ac_ext <<_LT_EOF
12198 #line 12198 "configure"
12199 #include "confdefs.h"
12200
12201 #if HAVE_DLFCN_H
12202 #include <dlfcn.h>
12203 #endif
12204
12205 #include <stdio.h>
12206
12207 #ifdef RTLD_GLOBAL
12208 # define LT_DLGLOBAL RTLD_GLOBAL
12209 #else
12210 # ifdef DL_GLOBAL
12211 # define LT_DLGLOBAL DL_GLOBAL
12212 # else
12213 # define LT_DLGLOBAL 0
12214 # endif
12215 #endif
12216
12217 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12218 find out it does not work in some platform. */
12219 #ifndef LT_DLLAZY_OR_NOW
12220 # ifdef RTLD_LAZY
12221 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12222 # else
12223 # ifdef DL_LAZY
12224 # define LT_DLLAZY_OR_NOW DL_LAZY
12225 # else
12226 # ifdef RTLD_NOW
12227 # define LT_DLLAZY_OR_NOW RTLD_NOW
12228 # else
12229 # ifdef DL_NOW
12230 # define LT_DLLAZY_OR_NOW DL_NOW
12231 # else
12232 # define LT_DLLAZY_OR_NOW 0
12233 # endif
12234 # endif
12235 # endif
12236 # endif
12237 #endif
12238
12239 /* When -fvisbility=hidden is used, assume the code has been annotated
12240 correspondingly for the symbols needed. */
12241 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12242 void fnord () __attribute__((visibility("default")));
12243 #endif
12244
12245 void fnord () { int i=42; }
12246 int main ()
12247 {
12248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12249 int status = $lt_dlunknown;
12250
12251 if (self)
12252 {
12253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12254 else
12255 {
12256 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12257 else puts (dlerror ());
12258 }
12259 /* dlclose (self); */
12260 }
12261 else
12262 puts (dlerror ());
12263
12264 return status;
12265 }
12266 _LT_EOF
12267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12268 (eval $ac_link) 2>&5
12269 ac_status=$?
12270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12271 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12272 (./conftest; exit; ) >&5 2>/dev/null
12273 lt_status=$?
12274 case x$lt_status in
12275 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12276 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12277 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12278 esac
12279 else :
12280 # compilation failed
12281 lt_cv_dlopen_self_static=no
12282 fi
12283 fi
12284 rm -fr conftest*
12285
12286
12287 fi
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12289 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12290 fi
12291
12292 CPPFLAGS="$save_CPPFLAGS"
12293 LDFLAGS="$save_LDFLAGS"
12294 LIBS="$save_LIBS"
12295 ;;
12296 esac
12297
12298 case $lt_cv_dlopen_self in
12299 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12300 *) enable_dlopen_self=unknown ;;
12301 esac
12302
12303 case $lt_cv_dlopen_self_static in
12304 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12305 *) enable_dlopen_self_static=unknown ;;
12306 esac
12307 fi
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325 striplib=
12326 old_striplib=
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12328 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12329 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12330 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12331 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12333 $as_echo "yes" >&6; }
12334 else
12335 # FIXME - insert some real tests, host_os isn't really good enough
12336 case $host_os in
12337 darwin*)
12338 if test -n "$STRIP" ; then
12339 striplib="$STRIP -x"
12340 old_striplib="$STRIP -S"
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12342 $as_echo "yes" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12346 fi
12347 ;;
12348 *)
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12351 ;;
12352 esac
12353 fi
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366 # Report which library types will actually be built
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12368 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12370 $as_echo "$can_build_shared" >&6; }
12371
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12373 $as_echo_n "checking whether to build shared libraries... " >&6; }
12374 test "$can_build_shared" = "no" && enable_shared=no
12375
12376 # On AIX, shared libraries and static libraries use the same namespace, and
12377 # are all built from PIC.
12378 case $host_os in
12379 aix3*)
12380 test "$enable_shared" = yes && enable_static=no
12381 if test -n "$RANLIB"; then
12382 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12383 postinstall_cmds='$RANLIB $lib'
12384 fi
12385 ;;
12386
12387 aix[4-9]*)
12388 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12389 test "$enable_shared" = yes && enable_static=no
12390 fi
12391 ;;
12392 esac
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12394 $as_echo "$enable_shared" >&6; }
12395
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12397 $as_echo_n "checking whether to build static libraries... " >&6; }
12398 # Make sure either enable_shared or enable_static is yes.
12399 test "$enable_shared" = yes || enable_static=yes
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12401 $as_echo "$enable_static" >&6; }
12402
12403
12404
12405
12406 fi
12407 ac_ext=c
12408 ac_cpp='$CPP $CPPFLAGS'
12409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12412
12413 CC="$lt_save_CC"
12414
12415 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12416 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12417 (test "X$CXX" != "Xg++"))) ; then
12418 ac_ext=cpp
12419 ac_cpp='$CXXCPP $CPPFLAGS'
12420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12424 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12425 if test -z "$CXXCPP"; then
12426 if ${ac_cv_prog_CXXCPP+:} false; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 # Double quotes because CXXCPP needs to be expanded
12430 for CXXCPP in "$CXX -E" "/lib/cpp"
12431 do
12432 ac_preproc_ok=false
12433 for ac_cxx_preproc_warn_flag in '' yes
12434 do
12435 # Use a header file that comes with gcc, so configuring glibc
12436 # with a fresh cross-compiler works.
12437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12438 # <limits.h> exists even on freestanding compilers.
12439 # On the NeXT, cc -E runs the code through the compiler's parser,
12440 # not just through cpp. "Syntax error" is here to catch this case.
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443 #ifdef __STDC__
12444 # include <limits.h>
12445 #else
12446 # include <assert.h>
12447 #endif
12448 Syntax error
12449 _ACEOF
12450 if ac_fn_cxx_try_cpp "$LINENO"; then :
12451
12452 else
12453 # Broken: fails on valid input.
12454 continue
12455 fi
12456 rm -f conftest.err conftest.i conftest.$ac_ext
12457
12458 # OK, works on sane cases. Now check whether nonexistent headers
12459 # can be detected and how.
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462 #include <ac_nonexistent.h>
12463 _ACEOF
12464 if ac_fn_cxx_try_cpp "$LINENO"; then :
12465 # Broken: success on invalid input.
12466 continue
12467 else
12468 # Passes both tests.
12469 ac_preproc_ok=:
12470 break
12471 fi
12472 rm -f conftest.err conftest.i conftest.$ac_ext
12473
12474 done
12475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12476 rm -f conftest.i conftest.err conftest.$ac_ext
12477 if $ac_preproc_ok; then :
12478 break
12479 fi
12480
12481 done
12482 ac_cv_prog_CXXCPP=$CXXCPP
12483
12484 fi
12485 CXXCPP=$ac_cv_prog_CXXCPP
12486 else
12487 ac_cv_prog_CXXCPP=$CXXCPP
12488 fi
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12490 $as_echo "$CXXCPP" >&6; }
12491 ac_preproc_ok=false
12492 for ac_cxx_preproc_warn_flag in '' yes
12493 do
12494 # Use a header file that comes with gcc, so configuring glibc
12495 # with a fresh cross-compiler works.
12496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12497 # <limits.h> exists even on freestanding compilers.
12498 # On the NeXT, cc -E runs the code through the compiler's parser,
12499 # not just through cpp. "Syntax error" is here to catch this case.
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12502 #ifdef __STDC__
12503 # include <limits.h>
12504 #else
12505 # include <assert.h>
12506 #endif
12507 Syntax error
12508 _ACEOF
12509 if ac_fn_cxx_try_cpp "$LINENO"; then :
12510
12511 else
12512 # Broken: fails on valid input.
12513 continue
12514 fi
12515 rm -f conftest.err conftest.i conftest.$ac_ext
12516
12517 # OK, works on sane cases. Now check whether nonexistent headers
12518 # can be detected and how.
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12521 #include <ac_nonexistent.h>
12522 _ACEOF
12523 if ac_fn_cxx_try_cpp "$LINENO"; then :
12524 # Broken: success on invalid input.
12525 continue
12526 else
12527 # Passes both tests.
12528 ac_preproc_ok=:
12529 break
12530 fi
12531 rm -f conftest.err conftest.i conftest.$ac_ext
12532
12533 done
12534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12535 rm -f conftest.i conftest.err conftest.$ac_ext
12536 if $ac_preproc_ok; then :
12537
12538 else
12539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12541 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12542 See \`config.log' for more details" "$LINENO" 5; }
12543 fi
12544
12545 ac_ext=c
12546 ac_cpp='$CPP $CPPFLAGS'
12547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12550
12551 else
12552 _lt_caught_CXX_error=yes
12553 fi
12554
12555 ac_ext=cpp
12556 ac_cpp='$CXXCPP $CPPFLAGS'
12557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12560
12561 archive_cmds_need_lc_CXX=no
12562 allow_undefined_flag_CXX=
12563 always_export_symbols_CXX=no
12564 archive_expsym_cmds_CXX=
12565 compiler_needs_object_CXX=no
12566 export_dynamic_flag_spec_CXX=
12567 hardcode_direct_CXX=no
12568 hardcode_direct_absolute_CXX=no
12569 hardcode_libdir_flag_spec_CXX=
12570 hardcode_libdir_flag_spec_ld_CXX=
12571 hardcode_libdir_separator_CXX=
12572 hardcode_minus_L_CXX=no
12573 hardcode_shlibpath_var_CXX=unsupported
12574 hardcode_automatic_CXX=no
12575 inherit_rpath_CXX=no
12576 module_cmds_CXX=
12577 module_expsym_cmds_CXX=
12578 link_all_deplibs_CXX=unknown
12579 old_archive_cmds_CXX=$old_archive_cmds
12580 reload_flag_CXX=$reload_flag
12581 reload_cmds_CXX=$reload_cmds
12582 no_undefined_flag_CXX=
12583 whole_archive_flag_spec_CXX=
12584 enable_shared_with_static_runtimes_CXX=no
12585
12586 # Source file extension for C++ test sources.
12587 ac_ext=cpp
12588
12589 # Object file extension for compiled C++ test sources.
12590 objext=o
12591 objext_CXX=$objext
12592
12593 # No sense in running all these tests if we already determined that
12594 # the CXX compiler isn't working. Some variables (like enable_shared)
12595 # are currently assumed to apply to all compilers on this platform,
12596 # and will be corrupted by setting them based on a non-working compiler.
12597 if test "$_lt_caught_CXX_error" != yes; then
12598 # Code to be used in simple compile tests
12599 lt_simple_compile_test_code="int some_variable = 0;"
12600
12601 # Code to be used in simple link tests
12602 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12603
12604 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12605
12606
12607
12608
12609
12610
12611 # If no C compiler was specified, use CC.
12612 LTCC=${LTCC-"$CC"}
12613
12614 # If no C compiler flags were specified, use CFLAGS.
12615 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12616
12617 # Allow CC to be a program name with arguments.
12618 compiler=$CC
12619
12620
12621 # save warnings/boilerplate of simple test code
12622 ac_outfile=conftest.$ac_objext
12623 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12624 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12625 _lt_compiler_boilerplate=`cat conftest.err`
12626 $RM conftest*
12627
12628 ac_outfile=conftest.$ac_objext
12629 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12630 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12631 _lt_linker_boilerplate=`cat conftest.err`
12632 $RM -r conftest*
12633
12634
12635 # Allow CC to be a program name with arguments.
12636 lt_save_CC=$CC
12637 lt_save_LD=$LD
12638 lt_save_GCC=$GCC
12639 GCC=$GXX
12640 lt_save_with_gnu_ld=$with_gnu_ld
12641 lt_save_path_LD=$lt_cv_path_LD
12642 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12643 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12644 else
12645 $as_unset lt_cv_prog_gnu_ld
12646 fi
12647 if test -n "${lt_cv_path_LDCXX+set}"; then
12648 lt_cv_path_LD=$lt_cv_path_LDCXX
12649 else
12650 $as_unset lt_cv_path_LD
12651 fi
12652 test -z "${LDCXX+set}" || LD=$LDCXX
12653 CC=${CXX-"c++"}
12654 compiler=$CC
12655 compiler_CXX=$CC
12656 for cc_temp in $compiler""; do
12657 case $cc_temp in
12658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12660 \-*) ;;
12661 *) break;;
12662 esac
12663 done
12664 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12665
12666
12667 if test -n "$compiler"; then
12668 # We don't want -fno-exception when compiling C++ code, so set the
12669 # no_builtin_flag separately
12670 if test "$GXX" = yes; then
12671 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12672 else
12673 lt_prog_compiler_no_builtin_flag_CXX=
12674 fi
12675
12676 if test "$GXX" = yes; then
12677 # Set up default GNU C++ configuration
12678
12679
12680
12681 # Check whether --with-gnu-ld was given.
12682 if test "${with_gnu_ld+set}" = set; then :
12683 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12684 else
12685 with_gnu_ld=no
12686 fi
12687
12688 ac_prog=ld
12689 if test "$GCC" = yes; then
12690 # Check if gcc -print-prog-name=ld gives a path.
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12692 $as_echo_n "checking for ld used by $CC... " >&6; }
12693 case $host in
12694 *-*-mingw*)
12695 # gcc leaves a trailing carriage return which upsets mingw
12696 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12697 *)
12698 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12699 esac
12700 case $ac_prog in
12701 # Accept absolute paths.
12702 [\\/]* | ?:[\\/]*)
12703 re_direlt='/[^/][^/]*/\.\./'
12704 # Canonicalize the pathname of ld
12705 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12706 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12707 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12708 done
12709 test -z "$LD" && LD="$ac_prog"
12710 ;;
12711 "")
12712 # If it fails, then pretend we aren't using GCC.
12713 ac_prog=ld
12714 ;;
12715 *)
12716 # If it is relative, then search for the first ld in PATH.
12717 with_gnu_ld=unknown
12718 ;;
12719 esac
12720 elif test "$with_gnu_ld" = yes; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12722 $as_echo_n "checking for GNU ld... " >&6; }
12723 else
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12725 $as_echo_n "checking for non-GNU ld... " >&6; }
12726 fi
12727 if ${lt_cv_path_LD+:} false; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 if test -z "$LD"; then
12731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12732 for ac_dir in $PATH; do
12733 IFS="$lt_save_ifs"
12734 test -z "$ac_dir" && ac_dir=.
12735 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12736 lt_cv_path_LD="$ac_dir/$ac_prog"
12737 # Check to see if the program is GNU ld. I'd rather use --version,
12738 # but apparently some variants of GNU ld only accept -v.
12739 # Break only if it was the GNU/non-GNU ld that we prefer.
12740 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12741 *GNU* | *'with BFD'*)
12742 test "$with_gnu_ld" != no && break
12743 ;;
12744 *)
12745 test "$with_gnu_ld" != yes && break
12746 ;;
12747 esac
12748 fi
12749 done
12750 IFS="$lt_save_ifs"
12751 else
12752 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12753 fi
12754 fi
12755
12756 LD="$lt_cv_path_LD"
12757 if test -n "$LD"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12759 $as_echo "$LD" >&6; }
12760 else
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12763 fi
12764 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12766 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12767 if ${lt_cv_prog_gnu_ld+:} false; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12771 case `$LD -v 2>&1 </dev/null` in
12772 *GNU* | *'with BFD'*)
12773 lt_cv_prog_gnu_ld=yes
12774 ;;
12775 *)
12776 lt_cv_prog_gnu_ld=no
12777 ;;
12778 esac
12779 fi
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12781 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12782 with_gnu_ld=$lt_cv_prog_gnu_ld
12783
12784
12785
12786
12787
12788
12789
12790 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12791 # archiving commands below assume that GNU ld is being used.
12792 if test "$with_gnu_ld" = yes; then
12793 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12794 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'
12795
12796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12798
12799 # If archive_cmds runs LD, not CC, wlarc should be empty
12800 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12801 # investigate it a little bit more. (MM)
12802 wlarc='${wl}'
12803
12804 # ancient GNU ld didn't support --whole-archive et. al.
12805 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12806 $GREP 'no-whole-archive' > /dev/null; then
12807 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12808 else
12809 whole_archive_flag_spec_CXX=
12810 fi
12811 else
12812 with_gnu_ld=no
12813 wlarc=
12814
12815 # A generic and very simple default shared library creation
12816 # command for GNU C++ for the case where it uses the native
12817 # linker, instead of GNU ld. If possible, this setting should
12818 # overridden to take advantage of the native linker features on
12819 # the platform it is being used on.
12820 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12821 fi
12822
12823 # Commands to make compiler produce verbose output that lists
12824 # what "hidden" libraries, object files and flags are used when
12825 # linking a shared library.
12826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12827
12828 else
12829 GXX=no
12830 with_gnu_ld=no
12831 wlarc=
12832 fi
12833
12834 # PORTME: fill in a description of your system's C++ link characteristics
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12836 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12837 ld_shlibs_CXX=yes
12838 case $host_os in
12839 aix3*)
12840 # FIXME: insert proper C++ library support
12841 ld_shlibs_CXX=no
12842 ;;
12843 aix[4-9]*)
12844 if test "$host_cpu" = ia64; then
12845 # On IA64, the linker does run time linking by default, so we don't
12846 # have to do anything special.
12847 aix_use_runtimelinking=no
12848 exp_sym_flag='-Bexport'
12849 no_entry_flag=""
12850 else
12851 aix_use_runtimelinking=no
12852
12853 # Test if we are trying to use run time linking or normal
12854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12855 # need to do runtime linking.
12856 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12857 for ld_flag in $LDFLAGS; do
12858 case $ld_flag in
12859 *-brtl*)
12860 aix_use_runtimelinking=yes
12861 break
12862 ;;
12863 esac
12864 done
12865 ;;
12866 esac
12867
12868 exp_sym_flag='-bexport'
12869 no_entry_flag='-bnoentry'
12870 fi
12871
12872 # When large executables or shared objects are built, AIX ld can
12873 # have problems creating the table of contents. If linking a library
12874 # or program results in "error TOC overflow" add -mminimal-toc to
12875 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12876 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12877
12878 archive_cmds_CXX=''
12879 hardcode_direct_CXX=yes
12880 hardcode_direct_absolute_CXX=yes
12881 hardcode_libdir_separator_CXX=':'
12882 link_all_deplibs_CXX=yes
12883 file_list_spec_CXX='${wl}-f,'
12884
12885 if test "$GXX" = yes; then
12886 case $host_os in aix4.[012]|aix4.[012].*)
12887 # We only want to do this on AIX 4.2 and lower, the check
12888 # below for broken collect2 doesn't work under 4.3+
12889 collect2name=`${CC} -print-prog-name=collect2`
12890 if test -f "$collect2name" &&
12891 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12892 then
12893 # We have reworked collect2
12894 :
12895 else
12896 # We have old collect2
12897 hardcode_direct_CXX=unsupported
12898 # It fails to find uninstalled libraries when the uninstalled
12899 # path is not listed in the libpath. Setting hardcode_minus_L
12900 # to unsupported forces relinking
12901 hardcode_minus_L_CXX=yes
12902 hardcode_libdir_flag_spec_CXX='-L$libdir'
12903 hardcode_libdir_separator_CXX=
12904 fi
12905 esac
12906 shared_flag='-shared'
12907 if test "$aix_use_runtimelinking" = yes; then
12908 shared_flag="$shared_flag "'${wl}-G'
12909 fi
12910 else
12911 # not using gcc
12912 if test "$host_cpu" = ia64; then
12913 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12914 # chokes on -Wl,-G. The following line is correct:
12915 shared_flag='-G'
12916 else
12917 if test "$aix_use_runtimelinking" = yes; then
12918 shared_flag='${wl}-G'
12919 else
12920 shared_flag='${wl}-bM:SRE'
12921 fi
12922 fi
12923 fi
12924
12925 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12926 # It seems that -bexpall does not export symbols beginning with
12927 # underscore (_), so it is better to generate a list of symbols to
12928 # export.
12929 always_export_symbols_CXX=yes
12930 if test "$aix_use_runtimelinking" = yes; then
12931 # Warning - without using the other runtime loading flags (-brtl),
12932 # -berok will link without error, but may produce a broken library.
12933 allow_undefined_flag_CXX='-berok'
12934 # Determine the default libpath from the value encoded in an empty
12935 # executable.
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937 /* end confdefs.h. */
12938
12939 int
12940 main ()
12941 {
12942
12943 ;
12944 return 0;
12945 }
12946 _ACEOF
12947 if ac_fn_cxx_try_link "$LINENO"; then :
12948
12949 lt_aix_libpath_sed='
12950 /Import File Strings/,/^$/ {
12951 /^0/ {
12952 s/^0 *\(.*\)$/\1/
12953 p
12954 }
12955 }'
12956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12957 # Check for a 64-bit object if we didn't find anything.
12958 if test -z "$aix_libpath"; then
12959 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12960 fi
12961 fi
12962 rm -f core conftest.err conftest.$ac_objext \
12963 conftest$ac_exeext conftest.$ac_ext
12964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12965
12966 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12967
12968 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"
12969 else
12970 if test "$host_cpu" = ia64; then
12971 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12972 allow_undefined_flag_CXX="-z nodefs"
12973 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"
12974 else
12975 # Determine the default libpath from the value encoded in an
12976 # empty executable.
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979
12980 int
12981 main ()
12982 {
12983
12984 ;
12985 return 0;
12986 }
12987 _ACEOF
12988 if ac_fn_cxx_try_link "$LINENO"; then :
12989
12990 lt_aix_libpath_sed='
12991 /Import File Strings/,/^$/ {
12992 /^0/ {
12993 s/^0 *\(.*\)$/\1/
12994 p
12995 }
12996 }'
12997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12998 # Check for a 64-bit object if we didn't find anything.
12999 if test -z "$aix_libpath"; then
13000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13001 fi
13002 fi
13003 rm -f core conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13006
13007 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13008 # Warning - without using the other run time loading flags,
13009 # -berok will link without error, but may produce a broken library.
13010 no_undefined_flag_CXX=' ${wl}-bernotok'
13011 allow_undefined_flag_CXX=' ${wl}-berok'
13012 if test "$with_gnu_ld" = yes; then
13013 # We only use this code for GNU lds that support --whole-archive.
13014 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13015 else
13016 # Exported symbols can be pulled into shared objects from archives
13017 whole_archive_flag_spec_CXX='$convenience'
13018 fi
13019 archive_cmds_need_lc_CXX=yes
13020 # This is similar to how AIX traditionally builds its shared
13021 # libraries.
13022 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'
13023 fi
13024 fi
13025 ;;
13026
13027 beos*)
13028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13029 allow_undefined_flag_CXX=unsupported
13030 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13031 # support --undefined. This deserves some investigation. FIXME
13032 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13033 else
13034 ld_shlibs_CXX=no
13035 fi
13036 ;;
13037
13038 chorus*)
13039 case $cc_basename in
13040 *)
13041 # FIXME: insert proper C++ library support
13042 ld_shlibs_CXX=no
13043 ;;
13044 esac
13045 ;;
13046
13047 cygwin* | mingw* | pw32* | cegcc*)
13048 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13049 # as there is no search path for DLLs.
13050 hardcode_libdir_flag_spec_CXX='-L$libdir'
13051 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13052 allow_undefined_flag_CXX=unsupported
13053 always_export_symbols_CXX=no
13054 enable_shared_with_static_runtimes_CXX=yes
13055
13056 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13057 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'
13058 # If the export-symbols file already is a .def file (1st line
13059 # is EXPORTS), use it as is; otherwise, prepend...
13060 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13061 cp $export_symbols $output_objdir/$soname.def;
13062 else
13063 echo EXPORTS > $output_objdir/$soname.def;
13064 cat $export_symbols >> $output_objdir/$soname.def;
13065 fi~
13066 $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'
13067 else
13068 ld_shlibs_CXX=no
13069 fi
13070 ;;
13071 darwin* | rhapsody*)
13072
13073
13074 archive_cmds_need_lc_CXX=no
13075 hardcode_direct_CXX=no
13076 hardcode_automatic_CXX=yes
13077 hardcode_shlibpath_var_CXX=unsupported
13078 if test "$lt_cv_ld_force_load" = "yes"; then
13079 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\"`'
13080 else
13081 whole_archive_flag_spec_CXX=''
13082 fi
13083 link_all_deplibs_CXX=yes
13084 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13085 case $cc_basename in
13086 ifort*) _lt_dar_can_shared=yes ;;
13087 *) _lt_dar_can_shared=$GCC ;;
13088 esac
13089 if test "$_lt_dar_can_shared" = "yes"; then
13090 output_verbose_link_cmd=func_echo_all
13091 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}"
13092 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13093 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}"
13094 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}"
13095 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13096 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}"
13097 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}"
13098 fi
13099
13100 else
13101 ld_shlibs_CXX=no
13102 fi
13103
13104 ;;
13105
13106 dgux*)
13107 case $cc_basename in
13108 ec++*)
13109 # FIXME: insert proper C++ library support
13110 ld_shlibs_CXX=no
13111 ;;
13112 ghcx*)
13113 # Green Hills C++ Compiler
13114 # FIXME: insert proper C++ library support
13115 ld_shlibs_CXX=no
13116 ;;
13117 *)
13118 # FIXME: insert proper C++ library support
13119 ld_shlibs_CXX=no
13120 ;;
13121 esac
13122 ;;
13123
13124 freebsd2.*)
13125 # C++ shared libraries reported to be fairly broken before
13126 # switch to ELF
13127 ld_shlibs_CXX=no
13128 ;;
13129
13130 freebsd-elf*)
13131 archive_cmds_need_lc_CXX=no
13132 ;;
13133
13134 freebsd* | dragonfly*)
13135 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13136 # conventions
13137 ld_shlibs_CXX=yes
13138 ;;
13139
13140 gnu*)
13141 ;;
13142
13143 haiku*)
13144 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13145 link_all_deplibs_CXX=yes
13146 ;;
13147
13148 hpux9*)
13149 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13150 hardcode_libdir_separator_CXX=:
13151 export_dynamic_flag_spec_CXX='${wl}-E'
13152 hardcode_direct_CXX=yes
13153 hardcode_minus_L_CXX=yes # Not in the search PATH,
13154 # but as the default
13155 # location of the library.
13156
13157 case $cc_basename in
13158 CC*)
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13161 ;;
13162 aCC*)
13163 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'
13164 # Commands to make compiler produce verbose output that lists
13165 # what "hidden" libraries, object files and flags are used when
13166 # linking a shared library.
13167 #
13168 # There doesn't appear to be a way to prevent this compiler from
13169 # explicitly linking system object files so we need to strip them
13170 # from the output so that they don't get included in the library
13171 # dependencies.
13172 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"'
13173 ;;
13174 *)
13175 if test "$GXX" = yes; then
13176 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'
13177 else
13178 # FIXME: insert proper C++ library support
13179 ld_shlibs_CXX=no
13180 fi
13181 ;;
13182 esac
13183 ;;
13184
13185 hpux10*|hpux11*)
13186 if test $with_gnu_ld = no; then
13187 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13188 hardcode_libdir_separator_CXX=:
13189
13190 case $host_cpu in
13191 hppa*64*|ia64*)
13192 ;;
13193 *)
13194 export_dynamic_flag_spec_CXX='${wl}-E'
13195 ;;
13196 esac
13197 fi
13198 case $host_cpu in
13199 hppa*64*|ia64*)
13200 hardcode_direct_CXX=no
13201 hardcode_shlibpath_var_CXX=no
13202 ;;
13203 *)
13204 hardcode_direct_CXX=yes
13205 hardcode_direct_absolute_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 esac
13211
13212 case $cc_basename in
13213 CC*)
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13216 ;;
13217 aCC*)
13218 case $host_cpu in
13219 hppa*64*)
13220 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13221 ;;
13222 ia64*)
13223 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13224 ;;
13225 *)
13226 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13227 ;;
13228 esac
13229 # Commands to make compiler produce verbose output that lists
13230 # what "hidden" libraries, object files and flags are used when
13231 # linking a shared library.
13232 #
13233 # There doesn't appear to be a way to prevent this compiler from
13234 # explicitly linking system object files so we need to strip them
13235 # from the output so that they don't get included in the library
13236 # dependencies.
13237 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"'
13238 ;;
13239 *)
13240 if test "$GXX" = yes; then
13241 if test $with_gnu_ld = no; then
13242 case $host_cpu in
13243 hppa*64*)
13244 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13245 ;;
13246 ia64*)
13247 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13248 ;;
13249 *)
13250 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'
13251 ;;
13252 esac
13253 fi
13254 else
13255 # FIXME: insert proper C++ library support
13256 ld_shlibs_CXX=no
13257 fi
13258 ;;
13259 esac
13260 ;;
13261
13262 interix[3-9]*)
13263 hardcode_direct_CXX=no
13264 hardcode_shlibpath_var_CXX=no
13265 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13266 export_dynamic_flag_spec_CXX='${wl}-E'
13267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13268 # Instead, shared libraries are loaded at an image base (0x10000000 by
13269 # default) and relocated if they conflict, which is a slow very memory
13270 # consuming and fragmenting process. To avoid this, we pick a random,
13271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13272 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13273 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'
13274 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'
13275 ;;
13276 irix5* | irix6*)
13277 case $cc_basename in
13278 CC*)
13279 # SGI C++
13280 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'
13281
13282 # Archives containing C++ object files must be created using
13283 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13284 # necessary to make sure instantiated templates are included
13285 # in the archive.
13286 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13287 ;;
13288 *)
13289 if test "$GXX" = yes; then
13290 if test "$with_gnu_ld" = no; then
13291 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'
13292 else
13293 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'
13294 fi
13295 fi
13296 link_all_deplibs_CXX=yes
13297 ;;
13298 esac
13299 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13300 hardcode_libdir_separator_CXX=:
13301 inherit_rpath_CXX=yes
13302 ;;
13303
13304 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13305 case $cc_basename in
13306 KCC*)
13307 # Kuck and Associates, Inc. (KAI) C++ Compiler
13308
13309 # KCC will only create a shared library if the output file
13310 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13311 # to its proper name (with version) after linking.
13312 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'
13313 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'
13314 # Commands to make compiler produce verbose output that lists
13315 # what "hidden" libraries, object files and flags are used when
13316 # linking a shared library.
13317 #
13318 # There doesn't appear to be a way to prevent this compiler from
13319 # explicitly linking system object files so we need to strip them
13320 # from the output so that they don't get included in the library
13321 # dependencies.
13322 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"'
13323
13324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13325 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13326
13327 # Archives containing C++ object files must be created using
13328 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13329 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13330 ;;
13331 icpc* | ecpc* )
13332 # Intel C++
13333 with_gnu_ld=yes
13334 # version 8.0 and above of icpc choke on multiply defined symbols
13335 # if we add $predep_objects and $postdep_objects, however 7.1 and
13336 # earlier do not add the objects themselves.
13337 case `$CC -V 2>&1` in
13338 *"Version 7."*)
13339 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13340 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'
13341 ;;
13342 *) # Version 8.0 or newer
13343 tmp_idyn=
13344 case $host_cpu in
13345 ia64*) tmp_idyn=' -i_dynamic';;
13346 esac
13347 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348 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'
13349 ;;
13350 esac
13351 archive_cmds_need_lc_CXX=no
13352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13354 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13355 ;;
13356 pgCC* | pgcpp*)
13357 # Portland Group C++ compiler
13358 case `$CC -V` in
13359 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13360 prelink_cmds_CXX='tpldir=Template.dir~
13361 rm -rf $tpldir~
13362 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13363 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13364 old_archive_cmds_CXX='tpldir=Template.dir~
13365 rm -rf $tpldir~
13366 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13367 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13368 $RANLIB $oldlib'
13369 archive_cmds_CXX='tpldir=Template.dir~
13370 rm -rf $tpldir~
13371 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13372 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13373 archive_expsym_cmds_CXX='tpldir=Template.dir~
13374 rm -rf $tpldir~
13375 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13376 $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'
13377 ;;
13378 *) # Version 6 and above use weak symbols
13379 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13380 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'
13381 ;;
13382 esac
13383
13384 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13385 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13386 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'
13387 ;;
13388 cxx*)
13389 # Compaq C++
13390 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13391 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'
13392
13393 runpath_var=LD_RUN_PATH
13394 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13395 hardcode_libdir_separator_CXX=:
13396
13397 # Commands to make compiler produce verbose output that lists
13398 # what "hidden" libraries, object files and flags are used when
13399 # linking a shared library.
13400 #
13401 # There doesn't appear to be a way to prevent this compiler from
13402 # explicitly linking system object files so we need to strip them
13403 # from the output so that they don't get included in the library
13404 # dependencies.
13405 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'
13406 ;;
13407 xl* | mpixl* | bgxl*)
13408 # IBM XL 8.0 on PPC, with GNU ld
13409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13411 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13412 if test "x$supports_anon_versioning" = xyes; then
13413 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13415 echo "local: *; };" >> $output_objdir/$libname.ver~
13416 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13417 fi
13418 ;;
13419 *)
13420 case `$CC -V 2>&1 | sed 5q` in
13421 *Sun\ C*)
13422 # Sun C++ 5.9
13423 no_undefined_flag_CXX=' -zdefs'
13424 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13425 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'
13426 hardcode_libdir_flag_spec_CXX='-R$libdir'
13427 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'
13428 compiler_needs_object_CXX=yes
13429
13430 # Not sure whether something based on
13431 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13432 # would be better.
13433 output_verbose_link_cmd='func_echo_all'
13434
13435 # Archives containing C++ object files must be created using
13436 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13437 # necessary to make sure instantiated templates are included
13438 # in the archive.
13439 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13440 ;;
13441 esac
13442 ;;
13443 esac
13444 ;;
13445
13446 lynxos*)
13447 # FIXME: insert proper C++ library support
13448 ld_shlibs_CXX=no
13449 ;;
13450
13451 m88k*)
13452 # FIXME: insert proper C++ library support
13453 ld_shlibs_CXX=no
13454 ;;
13455
13456 mvs*)
13457 case $cc_basename in
13458 cxx*)
13459 # FIXME: insert proper C++ library support
13460 ld_shlibs_CXX=no
13461 ;;
13462 *)
13463 # FIXME: insert proper C++ library support
13464 ld_shlibs_CXX=no
13465 ;;
13466 esac
13467 ;;
13468
13469 netbsd*)
13470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13471 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13472 wlarc=
13473 hardcode_libdir_flag_spec_CXX='-R$libdir'
13474 hardcode_direct_CXX=yes
13475 hardcode_shlibpath_var_CXX=no
13476 fi
13477 # Workaround some broken pre-1.5 toolchains
13478 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13479 ;;
13480
13481 *nto* | *qnx*)
13482 ld_shlibs_CXX=yes
13483 ;;
13484
13485 openbsd2*)
13486 # C++ shared libraries are fairly broken
13487 ld_shlibs_CXX=no
13488 ;;
13489
13490 openbsd*)
13491 if test -f /usr/libexec/ld.so; then
13492 hardcode_direct_CXX=yes
13493 hardcode_shlibpath_var_CXX=no
13494 hardcode_direct_absolute_CXX=yes
13495 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13496 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13498 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13499 export_dynamic_flag_spec_CXX='${wl}-E'
13500 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13501 fi
13502 output_verbose_link_cmd=func_echo_all
13503 else
13504 ld_shlibs_CXX=no
13505 fi
13506 ;;
13507
13508 osf3* | osf4* | osf5*)
13509 case $cc_basename in
13510 KCC*)
13511 # Kuck and Associates, Inc. (KAI) C++ Compiler
13512
13513 # KCC will only create a shared library if the output file
13514 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13515 # to its proper name (with version) after linking.
13516 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'
13517
13518 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13519 hardcode_libdir_separator_CXX=:
13520
13521 # Archives containing C++ object files must be created using
13522 # the KAI C++ compiler.
13523 case $host in
13524 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13525 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13526 esac
13527 ;;
13528 RCC*)
13529 # Rational C++ 2.4.1
13530 # FIXME: insert proper C++ library support
13531 ld_shlibs_CXX=no
13532 ;;
13533 cxx*)
13534 case $host in
13535 osf3*)
13536 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13537 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'
13538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13539 ;;
13540 *)
13541 allow_undefined_flag_CXX=' -expect_unresolved \*'
13542 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'
13543 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13544 echo "-hidden">> $lib.exp~
13545 $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~
13546 $RM $lib.exp'
13547 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13548 ;;
13549 esac
13550
13551 hardcode_libdir_separator_CXX=:
13552
13553 # Commands to make compiler produce verbose output that lists
13554 # what "hidden" libraries, object files and flags are used when
13555 # linking a shared library.
13556 #
13557 # There doesn't appear to be a way to prevent this compiler from
13558 # explicitly linking system object files so we need to strip them
13559 # from the output so that they don't get included in the library
13560 # dependencies.
13561 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"'
13562 ;;
13563 *)
13564 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13565 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13566 case $host in
13567 osf3*)
13568 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'
13569 ;;
13570 *)
13571 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'
13572 ;;
13573 esac
13574
13575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13576 hardcode_libdir_separator_CXX=:
13577
13578 # Commands to make compiler produce verbose output that lists
13579 # what "hidden" libraries, object files and flags are used when
13580 # linking a shared library.
13581 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13582
13583 else
13584 # FIXME: insert proper C++ library support
13585 ld_shlibs_CXX=no
13586 fi
13587 ;;
13588 esac
13589 ;;
13590
13591 psos*)
13592 # FIXME: insert proper C++ library support
13593 ld_shlibs_CXX=no
13594 ;;
13595
13596 sunos4*)
13597 case $cc_basename in
13598 CC*)
13599 # Sun C++ 4.x
13600 # FIXME: insert proper C++ library support
13601 ld_shlibs_CXX=no
13602 ;;
13603 lcc*)
13604 # Lucid
13605 # FIXME: insert proper C++ library support
13606 ld_shlibs_CXX=no
13607 ;;
13608 *)
13609 # FIXME: insert proper C++ library support
13610 ld_shlibs_CXX=no
13611 ;;
13612 esac
13613 ;;
13614
13615 solaris*)
13616 case $cc_basename in
13617 CC*)
13618 # Sun C++ 4.2, 5.x and Centerline C++
13619 archive_cmds_need_lc_CXX=yes
13620 no_undefined_flag_CXX=' -zdefs'
13621 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13622 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13623 $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'
13624
13625 hardcode_libdir_flag_spec_CXX='-R$libdir'
13626 hardcode_shlibpath_var_CXX=no
13627 case $host_os in
13628 solaris2.[0-5] | solaris2.[0-5].*) ;;
13629 *)
13630 # The compiler driver will combine and reorder linker options,
13631 # but understands `-z linker_flag'.
13632 # Supported since Solaris 2.6 (maybe 2.5.1?)
13633 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13634 ;;
13635 esac
13636 link_all_deplibs_CXX=yes
13637
13638 output_verbose_link_cmd='func_echo_all'
13639
13640 # Archives containing C++ object files must be created using
13641 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13642 # necessary to make sure instantiated templates are included
13643 # in the archive.
13644 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13645 ;;
13646 gcx*)
13647 # Green Hills C++ Compiler
13648 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13649
13650 # The C++ compiler must be used to create the archive.
13651 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13652 ;;
13653 *)
13654 # GNU C++ compiler with Solaris linker
13655 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13656 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13657 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13658 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13659 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13660 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13661
13662 # Commands to make compiler produce verbose output that lists
13663 # what "hidden" libraries, object files and flags are used when
13664 # linking a shared library.
13665 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13666 else
13667 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13668 # platform.
13669 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13670 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13671 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13672
13673 # Commands to make compiler produce verbose output that lists
13674 # what "hidden" libraries, object files and flags are used when
13675 # linking a shared library.
13676 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13677 fi
13678
13679 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13680 case $host_os in
13681 solaris2.[0-5] | solaris2.[0-5].*) ;;
13682 *)
13683 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13684 ;;
13685 esac
13686 fi
13687 ;;
13688 esac
13689 ;;
13690
13691 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13692 no_undefined_flag_CXX='${wl}-z,text'
13693 archive_cmds_need_lc_CXX=no
13694 hardcode_shlibpath_var_CXX=no
13695 runpath_var='LD_RUN_PATH'
13696
13697 case $cc_basename in
13698 CC*)
13699 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13700 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13701 ;;
13702 *)
13703 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 ;;
13706 esac
13707 ;;
13708
13709 sysv5* | sco3.2v5* | sco5v6*)
13710 # Note: We can NOT use -z defs as we might desire, because we do not
13711 # link with -lc, and that would cause any symbols used from libc to
13712 # always be unresolved, which means just about no library would
13713 # ever link correctly. If we're not using GNU ld we use -z text
13714 # though, which does catch some bad symbols but isn't as heavy-handed
13715 # as -z defs.
13716 no_undefined_flag_CXX='${wl}-z,text'
13717 allow_undefined_flag_CXX='${wl}-z,nodefs'
13718 archive_cmds_need_lc_CXX=no
13719 hardcode_shlibpath_var_CXX=no
13720 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13721 hardcode_libdir_separator_CXX=':'
13722 link_all_deplibs_CXX=yes
13723 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13724 runpath_var='LD_RUN_PATH'
13725
13726 case $cc_basename in
13727 CC*)
13728 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13729 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13730 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13731 '"$old_archive_cmds_CXX"
13732 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13733 '"$reload_cmds_CXX"
13734 ;;
13735 *)
13736 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13738 ;;
13739 esac
13740 ;;
13741
13742 tandem*)
13743 case $cc_basename in
13744 NCC*)
13745 # NonStop-UX NCC 3.20
13746 # FIXME: insert proper C++ library support
13747 ld_shlibs_CXX=no
13748 ;;
13749 *)
13750 # FIXME: insert proper C++ library support
13751 ld_shlibs_CXX=no
13752 ;;
13753 esac
13754 ;;
13755
13756 vxworks*)
13757 # FIXME: insert proper C++ library support
13758 ld_shlibs_CXX=no
13759 ;;
13760
13761 *)
13762 # FIXME: insert proper C++ library support
13763 ld_shlibs_CXX=no
13764 ;;
13765 esac
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13768 $as_echo "$ld_shlibs_CXX" >&6; }
13769 test "$ld_shlibs_CXX" = no && can_build_shared=no
13770
13771 GCC_CXX="$GXX"
13772 LD_CXX="$LD"
13773
13774 ## CAVEAT EMPTOR:
13775 ## There is no encapsulation within the following macros, do not change
13776 ## the running order or otherwise move them around unless you know exactly
13777 ## what you are doing...
13778 # Dependencies to place before and after the object being linked:
13779 predep_objects_CXX=
13780 postdep_objects_CXX=
13781 predeps_CXX=
13782 postdeps_CXX=
13783 compiler_lib_search_path_CXX=
13784
13785 cat > conftest.$ac_ext <<_LT_EOF
13786 class Foo
13787 {
13788 public:
13789 Foo (void) { a = 0; }
13790 private:
13791 int a;
13792 };
13793 _LT_EOF
13794
13795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13796 (eval $ac_compile) 2>&5
13797 ac_status=$?
13798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13799 test $ac_status = 0; }; then
13800 # Parse the compiler output and extract the necessary
13801 # objects, libraries and library flags.
13802
13803 # Sentinel used to keep track of whether or not we are before
13804 # the conftest object file.
13805 pre_test_object_deps_done=no
13806
13807 for p in `eval "$output_verbose_link_cmd"`; do
13808 case $p in
13809
13810 -L* | -R* | -l*)
13811 # Some compilers place space between "-{L,R}" and the path.
13812 # Remove the space.
13813 if test $p = "-L" ||
13814 test $p = "-R"; then
13815 prev=$p
13816 continue
13817 else
13818 prev=
13819 fi
13820
13821 if test "$pre_test_object_deps_done" = no; then
13822 case $p in
13823 -L* | -R*)
13824 # Internal compiler library paths should come after those
13825 # provided the user. The postdeps already come after the
13826 # user supplied libs so there is no need to process them.
13827 if test -z "$compiler_lib_search_path_CXX"; then
13828 compiler_lib_search_path_CXX="${prev}${p}"
13829 else
13830 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13831 fi
13832 ;;
13833 # The "-l" case would never come before the object being
13834 # linked, so don't bother handling this case.
13835 esac
13836 else
13837 if test -z "$postdeps_CXX"; then
13838 postdeps_CXX="${prev}${p}"
13839 else
13840 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13841 fi
13842 fi
13843 ;;
13844
13845 *.$objext)
13846 # This assumes that the test object file only shows up
13847 # once in the compiler output.
13848 if test "$p" = "conftest.$objext"; then
13849 pre_test_object_deps_done=yes
13850 continue
13851 fi
13852
13853 if test "$pre_test_object_deps_done" = no; then
13854 if test -z "$predep_objects_CXX"; then
13855 predep_objects_CXX="$p"
13856 else
13857 predep_objects_CXX="$predep_objects_CXX $p"
13858 fi
13859 else
13860 if test -z "$postdep_objects_CXX"; then
13861 postdep_objects_CXX="$p"
13862 else
13863 postdep_objects_CXX="$postdep_objects_CXX $p"
13864 fi
13865 fi
13866 ;;
13867
13868 *) ;; # Ignore the rest.
13869
13870 esac
13871 done
13872
13873 # Clean up.
13874 rm -f a.out a.exe
13875 else
13876 echo "libtool.m4: error: problem compiling CXX test program"
13877 fi
13878
13879 $RM -f confest.$objext
13880
13881 # PORTME: override above test on systems where it is broken
13882 case $host_os in
13883 interix[3-9]*)
13884 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13885 # hack all around it, let's just trust "g++" to DTRT.
13886 predep_objects_CXX=
13887 postdep_objects_CXX=
13888 postdeps_CXX=
13889 ;;
13890
13891 linux*)
13892 case `$CC -V 2>&1 | sed 5q` in
13893 *Sun\ C*)
13894 # Sun C++ 5.9
13895
13896 # The more standards-conforming stlport4 library is
13897 # incompatible with the Cstd library. Avoid specifying
13898 # it if it's in CXXFLAGS. Ignore libCrun as
13899 # -library=stlport4 depends on it.
13900 case " $CXX $CXXFLAGS " in
13901 *" -library=stlport4 "*)
13902 solaris_use_stlport4=yes
13903 ;;
13904 esac
13905
13906 if test "$solaris_use_stlport4" != yes; then
13907 postdeps_CXX='-library=Cstd -library=Crun'
13908 fi
13909 ;;
13910 esac
13911 ;;
13912
13913 solaris*)
13914 case $cc_basename in
13915 CC*)
13916 # The more standards-conforming stlport4 library is
13917 # incompatible with the Cstd library. Avoid specifying
13918 # it if it's in CXXFLAGS. Ignore libCrun as
13919 # -library=stlport4 depends on it.
13920 case " $CXX $CXXFLAGS " in
13921 *" -library=stlport4 "*)
13922 solaris_use_stlport4=yes
13923 ;;
13924 esac
13925
13926 # Adding this requires a known-good setup of shared libraries for
13927 # Sun compiler versions before 5.6, else PIC objects from an old
13928 # archive will be linked into the output, leading to subtle bugs.
13929 if test "$solaris_use_stlport4" != yes; then
13930 postdeps_CXX='-library=Cstd -library=Crun'
13931 fi
13932 ;;
13933 esac
13934 ;;
13935 esac
13936
13937
13938 case " $postdeps_CXX " in
13939 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13940 esac
13941 compiler_lib_search_dirs_CXX=
13942 if test -n "${compiler_lib_search_path_CXX}"; then
13943 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13944 fi
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976 lt_prog_compiler_wl_CXX=
13977 lt_prog_compiler_pic_CXX=
13978 lt_prog_compiler_static_CXX=
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13981 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13982
13983 # C++ specific cases for pic, static, wl, etc.
13984 if test "$GXX" = yes; then
13985 lt_prog_compiler_wl_CXX='-Wl,'
13986 lt_prog_compiler_static_CXX='-static'
13987
13988 case $host_os in
13989 aix*)
13990 # All AIX code is PIC.
13991 if test "$host_cpu" = ia64; then
13992 # AIX 5 now supports IA64 processor
13993 lt_prog_compiler_static_CXX='-Bstatic'
13994 fi
13995 lt_prog_compiler_pic_CXX='-fPIC'
13996 ;;
13997
13998 amigaos*)
13999 case $host_cpu in
14000 powerpc)
14001 # see comment about AmigaOS4 .so support
14002 lt_prog_compiler_pic_CXX='-fPIC'
14003 ;;
14004 m68k)
14005 # FIXME: we need at least 68020 code to build shared libraries, but
14006 # adding the `-m68020' flag to GCC prevents building anything better,
14007 # like `-m68040'.
14008 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14009 ;;
14010 esac
14011 ;;
14012
14013 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14014 # PIC is the default for these OSes.
14015 ;;
14016 mingw* | cygwin* | os2* | pw32* | cegcc*)
14017 # This hack is so that the source file can tell whether it is being
14018 # built for inclusion in a dll (and should export symbols for example).
14019 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14020 # (--disable-auto-import) libraries
14021 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14022 ;;
14023 darwin* | rhapsody*)
14024 # PIC is the default on this platform
14025 # Common symbols not allowed in MH_DYLIB files
14026 lt_prog_compiler_pic_CXX='-fno-common'
14027 ;;
14028 *djgpp*)
14029 # DJGPP does not support shared libraries at all
14030 lt_prog_compiler_pic_CXX=
14031 ;;
14032 haiku*)
14033 # PIC is the default for Haiku.
14034 # The "-static" flag exists, but is broken.
14035 lt_prog_compiler_static_CXX=
14036 ;;
14037 interix[3-9]*)
14038 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14039 # Instead, we relocate shared libraries at runtime.
14040 ;;
14041 sysv4*MP*)
14042 if test -d /usr/nec; then
14043 lt_prog_compiler_pic_CXX=-Kconform_pic
14044 fi
14045 ;;
14046 hpux*)
14047 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14048 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14049 # sets the default TLS model and affects inlining.
14050 case $host_cpu in
14051 hppa*64*)
14052 ;;
14053 *)
14054 lt_prog_compiler_pic_CXX='-fPIC'
14055 ;;
14056 esac
14057 ;;
14058 *qnx* | *nto*)
14059 # QNX uses GNU C++, but need to define -shared option too, otherwise
14060 # it will coredump.
14061 lt_prog_compiler_pic_CXX='-fPIC -shared'
14062 ;;
14063 *)
14064 lt_prog_compiler_pic_CXX='-fPIC'
14065 ;;
14066 esac
14067 else
14068 case $host_os in
14069 aix[4-9]*)
14070 # All AIX code is PIC.
14071 if test "$host_cpu" = ia64; then
14072 # AIX 5 now supports IA64 processor
14073 lt_prog_compiler_static_CXX='-Bstatic'
14074 else
14075 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14076 fi
14077 ;;
14078 chorus*)
14079 case $cc_basename in
14080 cxch68*)
14081 # Green Hills C++ Compiler
14082 # _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"
14083 ;;
14084 esac
14085 ;;
14086 dgux*)
14087 case $cc_basename in
14088 ec++*)
14089 lt_prog_compiler_pic_CXX='-KPIC'
14090 ;;
14091 ghcx*)
14092 # Green Hills C++ Compiler
14093 lt_prog_compiler_pic_CXX='-pic'
14094 ;;
14095 *)
14096 ;;
14097 esac
14098 ;;
14099 freebsd* | dragonfly*)
14100 # FreeBSD uses GNU C++
14101 ;;
14102 hpux9* | hpux10* | hpux11*)
14103 case $cc_basename in
14104 CC*)
14105 lt_prog_compiler_wl_CXX='-Wl,'
14106 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14107 if test "$host_cpu" != ia64; then
14108 lt_prog_compiler_pic_CXX='+Z'
14109 fi
14110 ;;
14111 aCC*)
14112 lt_prog_compiler_wl_CXX='-Wl,'
14113 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14114 case $host_cpu in
14115 hppa*64*|ia64*)
14116 # +Z the default
14117 ;;
14118 *)
14119 lt_prog_compiler_pic_CXX='+Z'
14120 ;;
14121 esac
14122 ;;
14123 *)
14124 ;;
14125 esac
14126 ;;
14127 interix*)
14128 # This is c89, which is MS Visual C++ (no shared libs)
14129 # Anyone wants to do a port?
14130 ;;
14131 irix5* | irix6* | nonstopux*)
14132 case $cc_basename in
14133 CC*)
14134 lt_prog_compiler_wl_CXX='-Wl,'
14135 lt_prog_compiler_static_CXX='-non_shared'
14136 # CC pic flag -KPIC is the default.
14137 ;;
14138 *)
14139 ;;
14140 esac
14141 ;;
14142 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14143 case $cc_basename in
14144 KCC*)
14145 # KAI C++ Compiler
14146 lt_prog_compiler_wl_CXX='--backend -Wl,'
14147 lt_prog_compiler_pic_CXX='-fPIC'
14148 ;;
14149 ecpc* )
14150 # old Intel C++ for x86_64 which still supported -KPIC.
14151 lt_prog_compiler_wl_CXX='-Wl,'
14152 lt_prog_compiler_pic_CXX='-KPIC'
14153 lt_prog_compiler_static_CXX='-static'
14154 ;;
14155 icpc* )
14156 # Intel C++, used to be incompatible with GCC.
14157 # ICC 10 doesn't accept -KPIC any more.
14158 lt_prog_compiler_wl_CXX='-Wl,'
14159 lt_prog_compiler_pic_CXX='-fPIC'
14160 lt_prog_compiler_static_CXX='-static'
14161 ;;
14162 pgCC* | pgcpp*)
14163 # Portland Group C++ compiler
14164 lt_prog_compiler_wl_CXX='-Wl,'
14165 lt_prog_compiler_pic_CXX='-fpic'
14166 lt_prog_compiler_static_CXX='-Bstatic'
14167 ;;
14168 cxx*)
14169 # Compaq C++
14170 # Make sure the PIC flag is empty. It appears that all Alpha
14171 # Linux and Compaq Tru64 Unix objects are PIC.
14172 lt_prog_compiler_pic_CXX=
14173 lt_prog_compiler_static_CXX='-non_shared'
14174 ;;
14175 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14176 # IBM XL 8.0, 9.0 on PPC and BlueGene
14177 lt_prog_compiler_wl_CXX='-Wl,'
14178 lt_prog_compiler_pic_CXX='-qpic'
14179 lt_prog_compiler_static_CXX='-qstaticlink'
14180 ;;
14181 *)
14182 case `$CC -V 2>&1 | sed 5q` in
14183 *Sun\ C*)
14184 # Sun C++ 5.9
14185 lt_prog_compiler_pic_CXX='-KPIC'
14186 lt_prog_compiler_static_CXX='-Bstatic'
14187 lt_prog_compiler_wl_CXX='-Qoption ld '
14188 ;;
14189 esac
14190 ;;
14191 esac
14192 ;;
14193 lynxos*)
14194 ;;
14195 m88k*)
14196 ;;
14197 mvs*)
14198 case $cc_basename in
14199 cxx*)
14200 lt_prog_compiler_pic_CXX='-W c,exportall'
14201 ;;
14202 *)
14203 ;;
14204 esac
14205 ;;
14206 netbsd*)
14207 ;;
14208 *qnx* | *nto*)
14209 # QNX uses GNU C++, but need to define -shared option too, otherwise
14210 # it will coredump.
14211 lt_prog_compiler_pic_CXX='-fPIC -shared'
14212 ;;
14213 osf3* | osf4* | osf5*)
14214 case $cc_basename in
14215 KCC*)
14216 lt_prog_compiler_wl_CXX='--backend -Wl,'
14217 ;;
14218 RCC*)
14219 # Rational C++ 2.4.1
14220 lt_prog_compiler_pic_CXX='-pic'
14221 ;;
14222 cxx*)
14223 # Digital/Compaq C++
14224 lt_prog_compiler_wl_CXX='-Wl,'
14225 # Make sure the PIC flag is empty. It appears that all Alpha
14226 # Linux and Compaq Tru64 Unix objects are PIC.
14227 lt_prog_compiler_pic_CXX=
14228 lt_prog_compiler_static_CXX='-non_shared'
14229 ;;
14230 *)
14231 ;;
14232 esac
14233 ;;
14234 psos*)
14235 ;;
14236 solaris*)
14237 case $cc_basename in
14238 CC*)
14239 # Sun C++ 4.2, 5.x and Centerline C++
14240 lt_prog_compiler_pic_CXX='-KPIC'
14241 lt_prog_compiler_static_CXX='-Bstatic'
14242 lt_prog_compiler_wl_CXX='-Qoption ld '
14243 ;;
14244 gcx*)
14245 # Green Hills C++ Compiler
14246 lt_prog_compiler_pic_CXX='-PIC'
14247 ;;
14248 *)
14249 ;;
14250 esac
14251 ;;
14252 sunos4*)
14253 case $cc_basename in
14254 CC*)
14255 # Sun C++ 4.x
14256 lt_prog_compiler_pic_CXX='-pic'
14257 lt_prog_compiler_static_CXX='-Bstatic'
14258 ;;
14259 lcc*)
14260 # Lucid
14261 lt_prog_compiler_pic_CXX='-pic'
14262 ;;
14263 *)
14264 ;;
14265 esac
14266 ;;
14267 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14268 case $cc_basename in
14269 CC*)
14270 lt_prog_compiler_wl_CXX='-Wl,'
14271 lt_prog_compiler_pic_CXX='-KPIC'
14272 lt_prog_compiler_static_CXX='-Bstatic'
14273 ;;
14274 esac
14275 ;;
14276 tandem*)
14277 case $cc_basename in
14278 NCC*)
14279 # NonStop-UX NCC 3.20
14280 lt_prog_compiler_pic_CXX='-KPIC'
14281 ;;
14282 *)
14283 ;;
14284 esac
14285 ;;
14286 vxworks*)
14287 ;;
14288 *)
14289 lt_prog_compiler_can_build_shared_CXX=no
14290 ;;
14291 esac
14292 fi
14293
14294 case $host_os in
14295 # For platforms which do not support PIC, -DPIC is meaningless:
14296 *djgpp*)
14297 lt_prog_compiler_pic_CXX=
14298 ;;
14299 *)
14300 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14301 ;;
14302 esac
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14304 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14305
14306
14307
14308 #
14309 # Check to make sure the PIC flag actually works.
14310 #
14311 if test -n "$lt_prog_compiler_pic_CXX"; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14313 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14314 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14315 $as_echo_n "(cached) " >&6
14316 else
14317 lt_cv_prog_compiler_pic_works_CXX=no
14318 ac_outfile=conftest.$ac_objext
14319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14320 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14321 # Insert the option either (1) after the last *FLAGS variable, or
14322 # (2) before a word containing "conftest.", or (3) at the end.
14323 # Note that $ac_compile itself does not contain backslashes and begins
14324 # with a dollar sign (not a hyphen), so the echo should work correctly.
14325 # The option is referenced via a variable to avoid confusing sed.
14326 lt_compile=`echo "$ac_compile" | $SED \
14327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14329 -e 's:$: $lt_compiler_flag:'`
14330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14331 (eval "$lt_compile" 2>conftest.err)
14332 ac_status=$?
14333 cat conftest.err >&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 if (exit $ac_status) && test -s "$ac_outfile"; then
14336 # The compiler can only warn and ignore the option if not recognized
14337 # So say no if there are warnings other than the usual output.
14338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14341 lt_cv_prog_compiler_pic_works_CXX=yes
14342 fi
14343 fi
14344 $RM conftest*
14345
14346 fi
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14348 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14349
14350 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14351 case $lt_prog_compiler_pic_CXX in
14352 "" | " "*) ;;
14353 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14354 esac
14355 else
14356 lt_prog_compiler_pic_CXX=
14357 lt_prog_compiler_can_build_shared_CXX=no
14358 fi
14359
14360 fi
14361
14362
14363
14364 #
14365 # Check to make sure the static flag actually works.
14366 #
14367 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14370 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14371 $as_echo_n "(cached) " >&6
14372 else
14373 lt_cv_prog_compiler_static_works_CXX=no
14374 save_LDFLAGS="$LDFLAGS"
14375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14378 # The linker can only warn and ignore the option if not recognized
14379 # So say no if there are warnings
14380 if test -s conftest.err; then
14381 # Append any errors to the config.log.
14382 cat conftest.err 1>&5
14383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14385 if diff conftest.exp conftest.er2 >/dev/null; then
14386 lt_cv_prog_compiler_static_works_CXX=yes
14387 fi
14388 else
14389 lt_cv_prog_compiler_static_works_CXX=yes
14390 fi
14391 fi
14392 $RM -r conftest*
14393 LDFLAGS="$save_LDFLAGS"
14394
14395 fi
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14397 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14398
14399 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14400 :
14401 else
14402 lt_prog_compiler_static_CXX=
14403 fi
14404
14405
14406
14407
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14409 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14410 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 lt_cv_prog_compiler_c_o_CXX=no
14414 $RM -r conftest 2>/dev/null
14415 mkdir conftest
14416 cd conftest
14417 mkdir out
14418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14419
14420 lt_compiler_flag="-o out/conftest2.$ac_objext"
14421 # Insert the option either (1) after the last *FLAGS variable, or
14422 # (2) before a word containing "conftest.", or (3) at the end.
14423 # Note that $ac_compile itself does not contain backslashes and begins
14424 # with a dollar sign (not a hyphen), so the echo should work correctly.
14425 lt_compile=`echo "$ac_compile" | $SED \
14426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14428 -e 's:$: $lt_compiler_flag:'`
14429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14430 (eval "$lt_compile" 2>out/conftest.err)
14431 ac_status=$?
14432 cat out/conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14435 then
14436 # The compiler can only warn and ignore the option if not recognized
14437 # So say no if there are warnings
14438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14441 lt_cv_prog_compiler_c_o_CXX=yes
14442 fi
14443 fi
14444 chmod u+w . 2>&5
14445 $RM conftest*
14446 # SGI C++ compiler will create directory out/ii_files/ for
14447 # template instantiation
14448 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14449 $RM out/* && rmdir out
14450 cd ..
14451 $RM -r conftest
14452 $RM conftest*
14453
14454 fi
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14456 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14457
14458
14459
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14461 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14462 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14463 $as_echo_n "(cached) " >&6
14464 else
14465 lt_cv_prog_compiler_c_o_CXX=no
14466 $RM -r conftest 2>/dev/null
14467 mkdir conftest
14468 cd conftest
14469 mkdir out
14470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14471
14472 lt_compiler_flag="-o out/conftest2.$ac_objext"
14473 # Insert the option either (1) after the last *FLAGS variable, or
14474 # (2) before a word containing "conftest.", or (3) at the end.
14475 # Note that $ac_compile itself does not contain backslashes and begins
14476 # with a dollar sign (not a hyphen), so the echo should work correctly.
14477 lt_compile=`echo "$ac_compile" | $SED \
14478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14480 -e 's:$: $lt_compiler_flag:'`
14481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14482 (eval "$lt_compile" 2>out/conftest.err)
14483 ac_status=$?
14484 cat out/conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14487 then
14488 # The compiler can only warn and ignore the option if not recognized
14489 # So say no if there are warnings
14490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14493 lt_cv_prog_compiler_c_o_CXX=yes
14494 fi
14495 fi
14496 chmod u+w . 2>&5
14497 $RM conftest*
14498 # SGI C++ compiler will create directory out/ii_files/ for
14499 # template instantiation
14500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14501 $RM out/* && rmdir out
14502 cd ..
14503 $RM -r conftest
14504 $RM conftest*
14505
14506 fi
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14508 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14509
14510
14511
14512
14513 hard_links="nottested"
14514 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14515 # do not overwrite the value of need_locks provided by the user
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14517 $as_echo_n "checking if we can lock with hard links... " >&6; }
14518 hard_links=yes
14519 $RM conftest*
14520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14521 touch conftest.a
14522 ln conftest.a conftest.b 2>&5 || hard_links=no
14523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14525 $as_echo "$hard_links" >&6; }
14526 if test "$hard_links" = no; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14528 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14529 need_locks=warn
14530 fi
14531 else
14532 need_locks=no
14533 fi
14534
14535
14536
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14538 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14539
14540 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14541 case $host_os in
14542 aix[4-9]*)
14543 # If we're using GNU nm, then we don't want the "-C" option.
14544 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14545 # Also, AIX nm treats weak defined symbols like other global defined
14546 # symbols, whereas GNU nm marks them as "W".
14547 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14548 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'
14549 else
14550 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'
14551 fi
14552 ;;
14553 pw32*)
14554 export_symbols_cmds_CXX="$ltdll_cmds"
14555 ;;
14556 cygwin* | mingw* | cegcc*)
14557 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'
14558 ;;
14559 *)
14560 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14561 ;;
14562 esac
14563 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14564
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14566 $as_echo "$ld_shlibs_CXX" >&6; }
14567 test "$ld_shlibs_CXX" = no && can_build_shared=no
14568
14569 with_gnu_ld_CXX=$with_gnu_ld
14570
14571
14572
14573
14574
14575
14576 #
14577 # Do we need to explicitly link libc?
14578 #
14579 case "x$archive_cmds_need_lc_CXX" in
14580 x|xyes)
14581 # Assume -lc should be added
14582 archive_cmds_need_lc_CXX=yes
14583
14584 if test "$enable_shared" = yes && test "$GCC" = yes; then
14585 case $archive_cmds_CXX in
14586 *'~'*)
14587 # FIXME: we may have to deal with multi-command sequences.
14588 ;;
14589 '$CC '*)
14590 # Test whether the compiler implicitly links with -lc since on some
14591 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14592 # to ld, don't add -lc before -lgcc.
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14594 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14595 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 $RM conftest*
14599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14600
14601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14602 (eval $ac_compile) 2>&5
14603 ac_status=$?
14604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14605 test $ac_status = 0; } 2>conftest.err; then
14606 soname=conftest
14607 lib=conftest
14608 libobjs=conftest.$ac_objext
14609 deplibs=
14610 wl=$lt_prog_compiler_wl_CXX
14611 pic_flag=$lt_prog_compiler_pic_CXX
14612 compiler_flags=-v
14613 linker_flags=-v
14614 verstring=
14615 output_objdir=.
14616 libname=conftest
14617 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14618 allow_undefined_flag_CXX=
14619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14620 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14621 ac_status=$?
14622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14623 test $ac_status = 0; }
14624 then
14625 lt_cv_archive_cmds_need_lc_CXX=no
14626 else
14627 lt_cv_archive_cmds_need_lc_CXX=yes
14628 fi
14629 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14630 else
14631 cat conftest.err 1>&5
14632 fi
14633 $RM conftest*
14634
14635 fi
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14637 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14638 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14639 ;;
14640 esac
14641 fi
14642 ;;
14643 esac
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14709 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14710
14711 library_names_spec=
14712 libname_spec='lib$name'
14713 soname_spec=
14714 shrext_cmds=".so"
14715 postinstall_cmds=
14716 postuninstall_cmds=
14717 finish_cmds=
14718 finish_eval=
14719 shlibpath_var=
14720 shlibpath_overrides_runpath=unknown
14721 version_type=none
14722 dynamic_linker="$host_os ld.so"
14723 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14724 need_lib_prefix=unknown
14725 hardcode_into_libs=no
14726
14727 # when you set need_version to no, make sure it does not cause -set_version
14728 # flags to be left without arguments
14729 need_version=unknown
14730
14731 case $host_os in
14732 aix3*)
14733 version_type=linux
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14735 shlibpath_var=LIBPATH
14736
14737 # AIX 3 has no versioning support, so we append a major version to the name.
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 ;;
14740
14741 aix[4-9]*)
14742 version_type=linux
14743 need_lib_prefix=no
14744 need_version=no
14745 hardcode_into_libs=yes
14746 if test "$host_cpu" = ia64; then
14747 # AIX 5 supports IA64
14748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14749 shlibpath_var=LD_LIBRARY_PATH
14750 else
14751 # With GCC up to 2.95.x, collect2 would create an import file
14752 # for dependence libraries. The import file would start with
14753 # the line `#! .'. This would cause the generated library to
14754 # depend on `.', always an invalid library. This was fixed in
14755 # development snapshots of GCC prior to 3.0.
14756 case $host_os in
14757 aix4 | aix4.[01] | aix4.[01].*)
14758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14759 echo ' yes '
14760 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14761 :
14762 else
14763 can_build_shared=no
14764 fi
14765 ;;
14766 esac
14767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14768 # soname into executable. Probably we can add versioning support to
14769 # collect2, so additional links can be useful in future.
14770 if test "$aix_use_runtimelinking" = yes; then
14771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14772 # instead of lib<name>.a to let people know that these are not
14773 # typical AIX shared libraries.
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14775 else
14776 # We preserve .a as extension for shared libraries through AIX4.2
14777 # and later when we are not doing run time linking.
14778 library_names_spec='${libname}${release}.a $libname.a'
14779 soname_spec='${libname}${release}${shared_ext}$major'
14780 fi
14781 shlibpath_var=LIBPATH
14782 fi
14783 ;;
14784
14785 amigaos*)
14786 case $host_cpu in
14787 powerpc)
14788 # Since July 2007 AmigaOS4 officially supports .so libraries.
14789 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791 ;;
14792 m68k)
14793 library_names_spec='$libname.ixlibrary $libname.a'
14794 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14795 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'
14796 ;;
14797 esac
14798 ;;
14799
14800 beos*)
14801 library_names_spec='${libname}${shared_ext}'
14802 dynamic_linker="$host_os ld.so"
14803 shlibpath_var=LIBRARY_PATH
14804 ;;
14805
14806 bsdi[45]*)
14807 version_type=linux
14808 need_version=no
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810 soname_spec='${libname}${release}${shared_ext}$major'
14811 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14812 shlibpath_var=LD_LIBRARY_PATH
14813 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14814 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14815 # the default ld.so.conf also contains /usr/contrib/lib and
14816 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14817 # libtool to hard-code these into programs
14818 ;;
14819
14820 cygwin* | mingw* | pw32* | cegcc*)
14821 version_type=windows
14822 shrext_cmds=".dll"
14823 need_version=no
14824 need_lib_prefix=no
14825
14826 case $GCC,$host_os in
14827 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14828 library_names_spec='$libname.dll.a'
14829 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14830 postinstall_cmds='base_file=`basename \${file}`~
14831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14832 dldir=$destdir/`dirname \$dlpath`~
14833 test -d \$dldir || mkdir -p \$dldir~
14834 $install_prog $dir/$dlname \$dldir/$dlname~
14835 chmod a+x \$dldir/$dlname~
14836 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14837 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14838 fi'
14839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14840 dlpath=$dir/\$dldll~
14841 $RM \$dlpath'
14842 shlibpath_overrides_runpath=yes
14843
14844 case $host_os in
14845 cygwin*)
14846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14848
14849 ;;
14850 mingw* | cegcc*)
14851 # MinGW DLLs use traditional 'lib' prefix
14852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14853 ;;
14854 pw32*)
14855 # pw32 DLLs use 'pw' prefix rather than 'lib'
14856 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14857 ;;
14858 esac
14859 ;;
14860
14861 *)
14862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14863 ;;
14864 esac
14865 dynamic_linker='Win32 ld.exe'
14866 # FIXME: first we should search . and the directory the executable is in
14867 shlibpath_var=PATH
14868 ;;
14869
14870 darwin* | rhapsody*)
14871 dynamic_linker="$host_os dyld"
14872 version_type=darwin
14873 need_lib_prefix=no
14874 need_version=no
14875 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14876 soname_spec='${libname}${release}${major}$shared_ext'
14877 shlibpath_overrides_runpath=yes
14878 shlibpath_var=DYLD_LIBRARY_PATH
14879 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14880
14881 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14882 ;;
14883
14884 dgux*)
14885 version_type=linux
14886 need_lib_prefix=no
14887 need_version=no
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14889 soname_spec='${libname}${release}${shared_ext}$major'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 ;;
14892
14893 freebsd* | dragonfly*)
14894 # DragonFly does not have aout. When/if they implement a new
14895 # versioning mechanism, adjust this.
14896 if test -x /usr/bin/objformat; then
14897 objformat=`/usr/bin/objformat`
14898 else
14899 case $host_os in
14900 freebsd[23].*) objformat=aout ;;
14901 *) objformat=elf ;;
14902 esac
14903 fi
14904 version_type=freebsd-$objformat
14905 case $version_type in
14906 freebsd-elf*)
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14908 need_version=no
14909 need_lib_prefix=no
14910 ;;
14911 freebsd-*)
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14913 need_version=yes
14914 ;;
14915 esac
14916 shlibpath_var=LD_LIBRARY_PATH
14917 case $host_os in
14918 freebsd2.*)
14919 shlibpath_overrides_runpath=yes
14920 ;;
14921 freebsd3.[01]* | freebsdelf3.[01]*)
14922 shlibpath_overrides_runpath=yes
14923 hardcode_into_libs=yes
14924 ;;
14925 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14926 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14927 shlibpath_overrides_runpath=no
14928 hardcode_into_libs=yes
14929 ;;
14930 *) # from 4.6 on, and DragonFly
14931 shlibpath_overrides_runpath=yes
14932 hardcode_into_libs=yes
14933 ;;
14934 esac
14935 ;;
14936
14937 haiku*)
14938 version_type=linux
14939 need_lib_prefix=no
14940 need_version=no
14941 dynamic_linker="$host_os runtime_loader"
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 shlibpath_var=LIBRARY_PATH
14945 shlibpath_overrides_runpath=yes
14946 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14947 hardcode_into_libs=yes
14948 ;;
14949
14950 hpux9* | hpux10* | hpux11*)
14951 # Give a soname corresponding to the major version so that dld.sl refuses to
14952 # link against other versions.
14953 version_type=sunos
14954 need_lib_prefix=no
14955 need_version=no
14956 case $host_cpu in
14957 ia64*)
14958 shrext_cmds='.so'
14959 hardcode_into_libs=yes
14960 dynamic_linker="$host_os dld.so"
14961 shlibpath_var=LD_LIBRARY_PATH
14962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 if test "X$HPUX_IA64_MODE" = X32; then
14966 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14967 else
14968 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14969 fi
14970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14971 ;;
14972 hppa*64*)
14973 shrext_cmds='.sl'
14974 hardcode_into_libs=yes
14975 dynamic_linker="$host_os dld.sl"
14976 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14980 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14982 ;;
14983 *)
14984 shrext_cmds='.sl'
14985 dynamic_linker="$host_os dld.sl"
14986 shlibpath_var=SHLIB_PATH
14987 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 ;;
14991 esac
14992 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14993 postinstall_cmds='chmod 555 $lib'
14994 # or fails outright, so override atomically:
14995 install_override_mode=555
14996 ;;
14997
14998 interix[3-9]*)
14999 version_type=linux
15000 need_lib_prefix=no
15001 need_version=no
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15003 soname_spec='${libname}${release}${shared_ext}$major'
15004 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15005 shlibpath_var=LD_LIBRARY_PATH
15006 shlibpath_overrides_runpath=no
15007 hardcode_into_libs=yes
15008 ;;
15009
15010 irix5* | irix6* | nonstopux*)
15011 case $host_os in
15012 nonstopux*) version_type=nonstopux ;;
15013 *)
15014 if test "$lt_cv_prog_gnu_ld" = yes; then
15015 version_type=linux
15016 else
15017 version_type=irix
15018 fi ;;
15019 esac
15020 need_lib_prefix=no
15021 need_version=no
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15024 case $host_os in
15025 irix5* | nonstopux*)
15026 libsuff= shlibsuff=
15027 ;;
15028 *)
15029 case $LD in # libtool.m4 will add one of these switches to LD
15030 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15031 libsuff= shlibsuff= libmagic=32-bit;;
15032 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15033 libsuff=32 shlibsuff=N32 libmagic=N32;;
15034 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15035 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15036 *) libsuff= shlibsuff= libmagic=never-match;;
15037 esac
15038 ;;
15039 esac
15040 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15041 shlibpath_overrides_runpath=no
15042 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15043 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15044 hardcode_into_libs=yes
15045 ;;
15046
15047 # No shared lib support for Linux oldld, aout, or coff.
15048 linux*oldld* | linux*aout* | linux*coff*)
15049 dynamic_linker=no
15050 ;;
15051
15052 # This must be Linux ELF.
15053 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15054 version_type=linux
15055 need_lib_prefix=no
15056 need_version=no
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058 soname_spec='${libname}${release}${shared_ext}$major'
15059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15060 shlibpath_var=LD_LIBRARY_PATH
15061 shlibpath_overrides_runpath=no
15062
15063 # Some binutils ld are patched to set DT_RUNPATH
15064 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15065 $as_echo_n "(cached) " >&6
15066 else
15067 lt_cv_shlibpath_overrides_runpath=no
15068 save_LDFLAGS=$LDFLAGS
15069 save_libdir=$libdir
15070 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15071 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074
15075 int
15076 main ()
15077 {
15078
15079 ;
15080 return 0;
15081 }
15082 _ACEOF
15083 if ac_fn_cxx_try_link "$LINENO"; then :
15084 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15085 lt_cv_shlibpath_overrides_runpath=yes
15086 fi
15087 fi
15088 rm -f core conftest.err conftest.$ac_objext \
15089 conftest$ac_exeext conftest.$ac_ext
15090 LDFLAGS=$save_LDFLAGS
15091 libdir=$save_libdir
15092
15093 fi
15094
15095 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15096
15097 # This implies no fast_install, which is unacceptable.
15098 # Some rework will be needed to allow for fast_install
15099 # before this can be enabled.
15100 hardcode_into_libs=yes
15101
15102 # Append ld.so.conf contents to the search path
15103 if test -f /etc/ld.so.conf; then
15104 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' ' '`
15105 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15106 fi
15107
15108 # We used to test for /lib/ld.so.1 and disable shared libraries on
15109 # powerpc, because MkLinux only supported shared libraries with the
15110 # GNU dynamic linker. Since this was broken with cross compilers,
15111 # most powerpc-linux boxes support dynamic linking these days and
15112 # people can always --disable-shared, the test was removed, and we
15113 # assume the GNU/Linux dynamic linker is in use.
15114 dynamic_linker='GNU/Linux ld.so'
15115 ;;
15116
15117 netbsd*)
15118 version_type=sunos
15119 need_lib_prefix=no
15120 need_version=no
15121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15124 dynamic_linker='NetBSD (a.out) ld.so'
15125 else
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15127 soname_spec='${libname}${release}${shared_ext}$major'
15128 dynamic_linker='NetBSD ld.elf_so'
15129 fi
15130 shlibpath_var=LD_LIBRARY_PATH
15131 shlibpath_overrides_runpath=yes
15132 hardcode_into_libs=yes
15133 ;;
15134
15135 newsos6)
15136 version_type=linux
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138 shlibpath_var=LD_LIBRARY_PATH
15139 shlibpath_overrides_runpath=yes
15140 ;;
15141
15142 *nto* | *qnx*)
15143 version_type=qnx
15144 need_lib_prefix=no
15145 need_version=no
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 soname_spec='${libname}${release}${shared_ext}$major'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 shlibpath_overrides_runpath=no
15150 hardcode_into_libs=yes
15151 dynamic_linker='ldqnx.so'
15152 ;;
15153
15154 openbsd*)
15155 version_type=sunos
15156 sys_lib_dlsearch_path_spec="/usr/lib"
15157 need_lib_prefix=no
15158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15159 case $host_os in
15160 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15161 *) need_version=no ;;
15162 esac
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15167 case $host_os in
15168 openbsd2.[89] | openbsd2.[89].*)
15169 shlibpath_overrides_runpath=no
15170 ;;
15171 *)
15172 shlibpath_overrides_runpath=yes
15173 ;;
15174 esac
15175 else
15176 shlibpath_overrides_runpath=yes
15177 fi
15178 ;;
15179
15180 os2*)
15181 libname_spec='$name'
15182 shrext_cmds=".dll"
15183 need_lib_prefix=no
15184 library_names_spec='$libname${shared_ext} $libname.a'
15185 dynamic_linker='OS/2 ld.exe'
15186 shlibpath_var=LIBPATH
15187 ;;
15188
15189 osf3* | osf4* | osf5*)
15190 version_type=osf
15191 need_lib_prefix=no
15192 need_version=no
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15197 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15198 ;;
15199
15200 rdos*)
15201 dynamic_linker=no
15202 ;;
15203
15204 solaris*)
15205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=yes
15212 hardcode_into_libs=yes
15213 # ldd complains unless libraries are executable
15214 postinstall_cmds='chmod +x $lib'
15215 ;;
15216
15217 sunos4*)
15218 version_type=sunos
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15220 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=yes
15223 if test "$with_gnu_ld" = yes; then
15224 need_lib_prefix=no
15225 fi
15226 need_version=yes
15227 ;;
15228
15229 sysv4 | sysv4.3*)
15230 version_type=linux
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 soname_spec='${libname}${release}${shared_ext}$major'
15233 shlibpath_var=LD_LIBRARY_PATH
15234 case $host_vendor in
15235 sni)
15236 shlibpath_overrides_runpath=no
15237 need_lib_prefix=no
15238 runpath_var=LD_RUN_PATH
15239 ;;
15240 siemens)
15241 need_lib_prefix=no
15242 ;;
15243 motorola)
15244 need_lib_prefix=no
15245 need_version=no
15246 shlibpath_overrides_runpath=no
15247 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15248 ;;
15249 esac
15250 ;;
15251
15252 sysv4*MP*)
15253 if test -d /usr/nec ;then
15254 version_type=linux
15255 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15256 soname_spec='$libname${shared_ext}.$major'
15257 shlibpath_var=LD_LIBRARY_PATH
15258 fi
15259 ;;
15260
15261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15262 version_type=freebsd-elf
15263 need_lib_prefix=no
15264 need_version=no
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15266 soname_spec='${libname}${release}${shared_ext}$major'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath=yes
15269 hardcode_into_libs=yes
15270 if test "$with_gnu_ld" = yes; then
15271 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15272 else
15273 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15274 case $host_os in
15275 sco3.2v5*)
15276 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15277 ;;
15278 esac
15279 fi
15280 sys_lib_dlsearch_path_spec='/usr/lib'
15281 ;;
15282
15283 tpf*)
15284 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15285 version_type=linux
15286 need_lib_prefix=no
15287 need_version=no
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 shlibpath_overrides_runpath=no
15291 hardcode_into_libs=yes
15292 ;;
15293
15294 uts4*)
15295 version_type=linux
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 ;;
15300
15301 *)
15302 dynamic_linker=no
15303 ;;
15304 esac
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15306 $as_echo "$dynamic_linker" >&6; }
15307 test "$dynamic_linker" = no && can_build_shared=no
15308
15309 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15310 if test "$GCC" = yes; then
15311 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15312 fi
15313
15314 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15315 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15316 fi
15317 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15318 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15319 fi
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15359 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15360 hardcode_action_CXX=
15361 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15362 test -n "$runpath_var_CXX" ||
15363 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15364
15365 # We can hardcode non-existent directories.
15366 if test "$hardcode_direct_CXX" != no &&
15367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15368 # have to relink, otherwise we might link with an installed library
15369 # when we should be linking with a yet-to-be-installed one
15370 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15371 test "$hardcode_minus_L_CXX" != no; then
15372 # Linking always hardcodes the temporary library directory.
15373 hardcode_action_CXX=relink
15374 else
15375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15376 hardcode_action_CXX=immediate
15377 fi
15378 else
15379 # We cannot hardcode anything, or else we can only hardcode existing
15380 # directories.
15381 hardcode_action_CXX=unsupported
15382 fi
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15384 $as_echo "$hardcode_action_CXX" >&6; }
15385
15386 if test "$hardcode_action_CXX" = relink ||
15387 test "$inherit_rpath_CXX" = yes; then
15388 # Fast installation is not supported
15389 enable_fast_install=no
15390 elif test "$shlibpath_overrides_runpath" = yes ||
15391 test "$enable_shared" = no; then
15392 # Fast installation is not necessary
15393 enable_fast_install=needless
15394 fi
15395
15396
15397
15398
15399
15400
15401
15402 fi # test -n "$compiler"
15403
15404 CC=$lt_save_CC
15405 LDCXX=$LD
15406 LD=$lt_save_LD
15407 GCC=$lt_save_GCC
15408 with_gnu_ld=$lt_save_with_gnu_ld
15409 lt_cv_path_LDCXX=$lt_cv_path_LD
15410 lt_cv_path_LD=$lt_save_path_LD
15411 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15412 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15413 fi # test "$_lt_caught_CXX_error" != yes
15414
15415 ac_ext=c
15416 ac_cpp='$CPP $CPPFLAGS'
15417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433 ac_config_commands="$ac_config_commands libtool"
15434
15435
15436
15437
15438 # Only expand once:
15439
15440
15441
15442 GPROFNG_LIBADD="-L../../libiberty -liberty"
15443 if test "$enable_shared" = "yes"; then
15444 GPROFNG_LIBADD="-L../../libiberty/pic -liberty"
15445 fi
15446
15447
15448 # Figure out what compiler warnings we can enable.
15449 # See config/warnings.m4 for details.
15450
15451 ac_ext=c
15452 ac_cpp='$CPP $CPPFLAGS'
15453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15456
15457 WERROR=
15458 # Check whether --enable-werror-always was given.
15459 if test "${enable_werror_always+set}" = set; then :
15460 enableval=$enable_werror_always;
15461 else
15462 enable_werror_always=no
15463 fi
15464
15465 if test $enable_werror_always = yes; then :
15466 WERROR="$WERROR${WERROR:+ }-Werror"
15467 fi
15468
15469 ac_ext=c
15470 ac_cpp='$CPP $CPPFLAGS'
15471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15474
15475
15476 ac_ext=c
15477 ac_cpp='$CPP $CPPFLAGS'
15478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15481
15482 gprofng_cflags=
15483 save_CFLAGS="$CFLAGS"
15484 for real_option in -Wall; do
15485 # Do the check with the no- prefix removed since gcc silently
15486 # accepts any -Wno-* option on purpose
15487 case $real_option in
15488 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15489 *) option=$real_option ;;
15490 esac
15491 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15492
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15494 $as_echo_n "checking whether $CC supports $option... " >&6; }
15495 if eval \${$as_acx_Woption+:} false; then :
15496 $as_echo_n "(cached) " >&6
15497 else
15498 CFLAGS="$option"
15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15501
15502 int
15503 main ()
15504 {
15505
15506 ;
15507 return 0;
15508 }
15509 _ACEOF
15510 if ac_fn_c_try_compile "$LINENO"; then :
15511 eval "$as_acx_Woption=yes"
15512 else
15513 eval "$as_acx_Woption=no"
15514 fi
15515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15516
15517 fi
15518 eval ac_res=\$$as_acx_Woption
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15520 $as_echo "$ac_res" >&6; }
15521 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15522 gprofng_cflags="$gprofng_cflags${gprofng_cflags:+ }$real_option"
15523 fi
15524 done
15525 CFLAGS="$save_CFLAGS"
15526 ac_ext=c
15527 ac_cpp='$CPP $CPPFLAGS'
15528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15531
15532
15533 gprofng_cppflags="-U_ASM"
15534 build_collector=
15535 build_src=
15536
15537 # This is annoying: it means we have to pass --enable-shared explicitly to
15538 # get gprofng, while the configure default is supposed to be that shared libs
15539 # are on by default. But as long as libiberty has code like this, so must
15540 # we...
15541
15542 case "${target}" in
15543 x86_64-*-linux*)
15544 build_src=true
15545 build_collector=true
15546 ;;
15547 i?86-*-linux*)
15548 build_collector=true
15549 build_collector=true
15550 ;;
15551 aarch64-*-linux*)
15552 build_src=true
15553 build_collector=true
15554 ;;
15555 esac
15556 # Check whether --enable-gprofng-tools was given.
15557 if test "${enable_gprofng_tools+set}" = set; then :
15558 enableval=$enable_gprofng_tools; build_src=$enableval
15559 fi
15560
15561
15562 if test x$build_collector = xtrue; then
15563 BUILD_COLLECTOR_TRUE=
15564 BUILD_COLLECTOR_FALSE='#'
15565 else
15566 BUILD_COLLECTOR_TRUE='#'
15567 BUILD_COLLECTOR_FALSE=
15568 fi
15569
15570 if test x$build_src = xtrue; then
15571 BUILD_SRC_TRUE=
15572 BUILD_SRC_FALSE='#'
15573 else
15574 BUILD_SRC_TRUE='#'
15575 BUILD_SRC_FALSE=
15576 fi
15577
15578
15579 run_tests=false
15580 if test x$build_collector = xtrue; then
15581
15582
15583 subdirs="$subdirs libcollector"
15584
15585 if test x${host} = x${target}; then
15586 run_tests=true
15587 fi
15588 fi
15589 if test x$run_tests = xtrue; then
15590 RUN_TESTS_TRUE=
15591 RUN_TESTS_FALSE='#'
15592 else
15593 RUN_TESTS_TRUE='#'
15594 RUN_TESTS_FALSE=
15595 fi
15596
15597
15598
15599
15600
15601 ac_ext=c
15602 ac_cpp='$CPP $CPPFLAGS'
15603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15606
15607 ax_pthread_ok=no
15608
15609 # We used to check for pthread.h first, but this fails if pthread.h
15610 # requires special compiler flags (e.g. on Tru64 or Sequent).
15611 # It gets checked for in the link test anyway.
15612
15613 # First of all, check if the user has set any of the PTHREAD_LIBS,
15614 # etcetera environment variables, and if threads linking works using
15615 # them:
15616 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15617 ax_pthread_save_CC="$CC"
15618 ax_pthread_save_CFLAGS="$CFLAGS"
15619 ax_pthread_save_LIBS="$LIBS"
15620 if test "x$PTHREAD_CC" != "x"; then :
15621 CC="$PTHREAD_CC"
15622 fi
15623 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15624 LIBS="$PTHREAD_LIBS $LIBS"
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15626 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15629
15630 /* Override any GCC internal prototype to avoid an error.
15631 Use char because int might match the return type of a GCC
15632 builtin and then its argument prototype would still apply. */
15633 #ifdef __cplusplus
15634 extern "C"
15635 #endif
15636 char pthread_join ();
15637 int
15638 main ()
15639 {
15640 return pthread_join ();
15641 ;
15642 return 0;
15643 }
15644 _ACEOF
15645 if ac_fn_c_try_link "$LINENO"; then :
15646 ax_pthread_ok=yes
15647 fi
15648 rm -f core conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15651 $as_echo "$ax_pthread_ok" >&6; }
15652 if test "x$ax_pthread_ok" = "xno"; then
15653 PTHREAD_LIBS=""
15654 PTHREAD_CFLAGS=""
15655 fi
15656 CC="$ax_pthread_save_CC"
15657 CFLAGS="$ax_pthread_save_CFLAGS"
15658 LIBS="$ax_pthread_save_LIBS"
15659 fi
15660
15661 # We must check for the threads library under a number of different
15662 # names; the ordering is very important because some systems
15663 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15664 # libraries is broken (non-POSIX).
15665
15666 # Create a list of thread flags to try. Items starting with a "-" are
15667 # C compiler flags, and other items are library names, except for "none"
15668 # which indicates that we try without any flags at all, and "pthread-config"
15669 # which is a program returning the flags for the Pth emulation library.
15670
15671 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15672
15673 # The ordering *is* (sometimes) important. Some notes on the
15674 # individual items follow:
15675
15676 # pthreads: AIX (must check this before -lpthread)
15677 # none: in case threads are in libc; should be tried before -Kthread and
15678 # other compiler flags to prevent continual compiler warnings
15679 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15680 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15681 # (Note: HP C rejects this with "bad form for `-t' option")
15682 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15683 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15684 # doesn't hurt to check since this sometimes defines pthreads and
15685 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15686 # is present but should not be used directly; and before -mthreads,
15687 # because the compiler interprets this as "-mt" + "-hreads")
15688 # -mthreads: Mingw32/gcc, Lynx/gcc
15689 # pthread: Linux, etcetera
15690 # --thread-safe: KAI C++
15691 # pthread-config: use pthread-config program (for GNU Pth library)
15692
15693 case $host_os in
15694
15695 freebsd*)
15696
15697 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15698 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15699
15700 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15701 ;;
15702
15703 hpux*)
15704
15705 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15706 # multi-threading and also sets -lpthread."
15707
15708 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15709 ;;
15710
15711 openedition*)
15712
15713 # IBM z/OS requires a feature-test macro to be defined in order to
15714 # enable POSIX threads at all, so give the user a hint if this is
15715 # not set. (We don't define these ourselves, as they can affect
15716 # other portions of the system API in unpredictable ways.)
15717
15718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719 /* end confdefs.h. */
15720
15721 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15722 AX_PTHREAD_ZOS_MISSING
15723 # endif
15724
15725 _ACEOF
15726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15727 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15729 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15730 fi
15731 rm -f conftest*
15732
15733 ;;
15734
15735 solaris*)
15736
15737 # On Solaris (at least, for some versions), libc contains stubbed
15738 # (non-functional) versions of the pthreads routines, so link-based
15739 # tests will erroneously succeed. (N.B.: The stubs are missing
15740 # pthread_cleanup_push, or rather a function called by this macro,
15741 # so we could check for that, but who knows whether they'll stub
15742 # that too in a future libc.) So we'll check first for the
15743 # standard Solaris way of linking pthreads (-mt -lpthread).
15744
15745 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
15746 ;;
15747 esac
15748
15749 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15750
15751 if test "x$GCC" = "xyes"; then :
15752 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
15753 fi
15754
15755 # The presence of a feature test macro requesting re-entrant function
15756 # definitions is, on some systems, a strong hint that pthreads support is
15757 # correctly enabled
15758
15759 case $host_os in
15760 darwin* | hpux* | linux* | osf* | solaris*)
15761 ax_pthread_check_macro="_REENTRANT"
15762 ;;
15763
15764 aix*)
15765 ax_pthread_check_macro="_THREAD_SAFE"
15766 ;;
15767
15768 *)
15769 ax_pthread_check_macro="--"
15770 ;;
15771 esac
15772 if test "x$ax_pthread_check_macro" = "x--"; then :
15773 ax_pthread_check_cond=0
15774 else
15775 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15776 fi
15777
15778 # Are we compiling with Clang?
15779
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15781 $as_echo_n "checking whether $CC is Clang... " >&6; }
15782 if ${ax_cv_PTHREAD_CLANG+:} false; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785 ax_cv_PTHREAD_CLANG=no
15786 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15787 if test "x$GCC" = "xyes"; then
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15791 # if defined(__clang__) && defined(__llvm__)
15792 AX_PTHREAD_CC_IS_CLANG
15793 # endif
15794
15795 _ACEOF
15796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15797 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
15798 ax_cv_PTHREAD_CLANG=yes
15799 fi
15800 rm -f conftest*
15801
15802 fi
15803
15804 fi
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15806 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15807 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15808
15809 ax_pthread_clang_warning=no
15810
15811 # Clang needs special handling, because older versions handle the -pthread
15812 # option in a rather... idiosyncratic way
15813
15814 if test "x$ax_pthread_clang" = "xyes"; then
15815
15816 # Clang takes -pthread; it has never supported any other flag
15817
15818 # (Note 1: This will need to be revisited if a system that Clang
15819 # supports has POSIX threads in a separate library. This tends not
15820 # to be the way of modern systems, but it's conceivable.)
15821
15822 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15823 # to get POSIX threads support; the API is always present and
15824 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15825 # -pthread does define _REENTRANT, and while the Darwin headers
15826 # ignore this macro, third-party headers might not.)
15827
15828 PTHREAD_CFLAGS="-pthread"
15829 PTHREAD_LIBS=
15830
15831 ax_pthread_ok=yes
15832
15833 # However, older versions of Clang make a point of warning the user
15834 # that, in an invocation where only linking and no compilation is
15835 # taking place, the -pthread option has no effect ("argument unused
15836 # during compilation"). They expect -pthread to be passed in only
15837 # when source code is being compiled.
15838 #
15839 # Problem is, this is at odds with the way Automake and most other
15840 # C build frameworks function, which is that the same flags used in
15841 # compilation (CFLAGS) are also used in linking. Many systems
15842 # supported by AX_PTHREAD require exactly this for POSIX threads
15843 # support, and in fact it is often not straightforward to specify a
15844 # flag that is used only in the compilation phase and not in
15845 # linking. Such a scenario is extremely rare in practice.
15846 #
15847 # Even though use of the -pthread flag in linking would only print
15848 # a warning, this can be a nuisance for well-run software projects
15849 # that build with -Werror. So if the active version of Clang has
15850 # this misfeature, we search for an option to squash it.
15851
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15853 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15854 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15858 # Create an alternate version of $ac_link that compiles and
15859 # links in two steps (.c -> .o, .o -> exe) instead of one
15860 # (.c -> exe), because the warning occurs only in the second
15861 # step
15862 ax_pthread_save_ac_link="$ac_link"
15863 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15864 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
15865 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15866 ax_pthread_save_CFLAGS="$CFLAGS"
15867 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15868 if test "x$ax_pthread_try" = "xunknown"; then :
15869 break
15870 fi
15871 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15872 ac_link="$ax_pthread_save_ac_link"
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h. */
15875 int main(void){return 0;}
15876 _ACEOF
15877 if ac_fn_c_try_link "$LINENO"; then :
15878 ac_link="$ax_pthread_2step_ac_link"
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15881 int main(void){return 0;}
15882 _ACEOF
15883 if ac_fn_c_try_link "$LINENO"; then :
15884 break
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext \
15887 conftest$ac_exeext conftest.$ac_ext
15888
15889 fi
15890 rm -f core conftest.err conftest.$ac_objext \
15891 conftest$ac_exeext conftest.$ac_ext
15892 done
15893 ac_link="$ax_pthread_save_ac_link"
15894 CFLAGS="$ax_pthread_save_CFLAGS"
15895 if test "x$ax_pthread_try" = "x"; then :
15896 ax_pthread_try=no
15897 fi
15898 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15899
15900 fi
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15902 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15903
15904 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15905 no | unknown) ;;
15906 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15907 esac
15908
15909 fi # $ax_pthread_clang = yes
15910
15911 if test "x$ax_pthread_ok" = "xno"; then
15912 for ax_pthread_try_flag in $ax_pthread_flags; do
15913
15914 case $ax_pthread_try_flag in
15915 none)
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15917 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15918 ;;
15919
15920 -mt,pthread)
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
15922 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
15923 PTHREAD_CFLAGS="-mt"
15924 PTHREAD_LIBS="-lpthread"
15925 ;;
15926
15927 -*)
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15929 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15930 PTHREAD_CFLAGS="$ax_pthread_try_flag"
15931 ;;
15932
15933 pthread-config)
15934 # Extract the first word of "pthread-config", so it can be a program name with args.
15935 set dummy pthread-config; ac_word=$2
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15937 $as_echo_n "checking for $ac_word... " >&6; }
15938 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940 else
15941 if test -n "$ax_pthread_config"; then
15942 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15943 else
15944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15945 for as_dir in $PATH
15946 do
15947 IFS=$as_save_IFS
15948 test -z "$as_dir" && as_dir=.
15949 for ac_exec_ext in '' $ac_executable_extensions; do
15950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15951 ac_cv_prog_ax_pthread_config="yes"
15952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15953 break 2
15954 fi
15955 done
15956 done
15957 IFS=$as_save_IFS
15958
15959 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15960 fi
15961 fi
15962 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15963 if test -n "$ax_pthread_config"; then
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15965 $as_echo "$ax_pthread_config" >&6; }
15966 else
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968 $as_echo "no" >&6; }
15969 fi
15970
15971
15972 if test "x$ax_pthread_config" = "xno"; then :
15973 continue
15974 fi
15975 PTHREAD_CFLAGS="`pthread-config --cflags`"
15976 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15977 ;;
15978
15979 *)
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15981 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15982 PTHREAD_LIBS="-l$ax_pthread_try_flag"
15983 ;;
15984 esac
15985
15986 ax_pthread_save_CFLAGS="$CFLAGS"
15987 ax_pthread_save_LIBS="$LIBS"
15988 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15989 LIBS="$PTHREAD_LIBS $LIBS"
15990
15991 # Check for various functions. We must include pthread.h,
15992 # since some functions may be macros. (On the Sequent, we
15993 # need a special flag -Kthread to make this header compile.)
15994 # We check for pthread_join because it is in -lpthread on IRIX
15995 # while pthread_create is in libc. We check for pthread_attr_init
15996 # due to DEC craziness with -lpthreads. We check for
15997 # pthread_cleanup_push because it is one of the few pthread
15998 # functions on Solaris that doesn't have a non-functional libc stub.
15999 # We try pthread_create on general principles.
16000
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16003 #include <pthread.h>
16004 # if $ax_pthread_check_cond
16005 # error "$ax_pthread_check_macro must be defined"
16006 # endif
16007 static void routine(void *a) { a = 0; }
16008 static void *start_routine(void *a) { return a; }
16009 int
16010 main ()
16011 {
16012 pthread_t th; pthread_attr_t attr;
16013 pthread_create(&th, 0, start_routine, 0);
16014 pthread_join(th, 0);
16015 pthread_attr_init(&attr);
16016 pthread_cleanup_push(routine, 0);
16017 pthread_cleanup_pop(0) /* ; */
16018 ;
16019 return 0;
16020 }
16021 _ACEOF
16022 if ac_fn_c_try_link "$LINENO"; then :
16023 ax_pthread_ok=yes
16024 fi
16025 rm -f core conftest.err conftest.$ac_objext \
16026 conftest$ac_exeext conftest.$ac_ext
16027
16028 CFLAGS="$ax_pthread_save_CFLAGS"
16029 LIBS="$ax_pthread_save_LIBS"
16030
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16032 $as_echo "$ax_pthread_ok" >&6; }
16033 if test "x$ax_pthread_ok" = "xyes"; then :
16034 break
16035 fi
16036
16037 PTHREAD_LIBS=""
16038 PTHREAD_CFLAGS=""
16039 done
16040 fi
16041
16042 # Various other checks:
16043 if test "x$ax_pthread_ok" = "xyes"; then
16044 ax_pthread_save_CFLAGS="$CFLAGS"
16045 ax_pthread_save_LIBS="$LIBS"
16046 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16047 LIBS="$PTHREAD_LIBS $LIBS"
16048
16049 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16051 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16052 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
16053 $as_echo_n "(cached) " >&6
16054 else
16055 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
16056 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16059 #include <pthread.h>
16060 int
16061 main ()
16062 {
16063 int attr = $ax_pthread_attr; return attr /* ; */
16064 ;
16065 return 0;
16066 }
16067 _ACEOF
16068 if ac_fn_c_try_link "$LINENO"; then :
16069 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
16070 fi
16071 rm -f core conftest.err conftest.$ac_objext \
16072 conftest$ac_exeext conftest.$ac_ext
16073 done
16074
16075 fi
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16077 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16078 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16079 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16080 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
16081
16082 cat >>confdefs.h <<_ACEOF
16083 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
16084 _ACEOF
16085
16086 ax_pthread_joinable_attr_defined=yes
16087
16088 fi
16089
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16091 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
16092 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
16093 $as_echo_n "(cached) " >&6
16094 else
16095 ax_cv_PTHREAD_SPECIAL_FLAGS=no
16096 case $host_os in
16097 solaris*)
16098 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16099 ;;
16100 esac
16101
16102 fi
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16104 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16105 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16106 test "x$ax_pthread_special_flags_added" != "xyes"; then :
16107 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16108 ax_pthread_special_flags_added=yes
16109 fi
16110
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16112 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16113 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118 #include <pthread.h>
16119 int
16120 main ()
16121 {
16122 int i = PTHREAD_PRIO_INHERIT;
16123 ;
16124 return 0;
16125 }
16126 _ACEOF
16127 if ac_fn_c_try_link "$LINENO"; then :
16128 ax_cv_PTHREAD_PRIO_INHERIT=yes
16129 else
16130 ax_cv_PTHREAD_PRIO_INHERIT=no
16131 fi
16132 rm -f core conftest.err conftest.$ac_objext \
16133 conftest$ac_exeext conftest.$ac_ext
16134
16135 fi
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16137 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16138 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16139 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
16140
16141 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16142
16143 ax_pthread_prio_inherit_defined=yes
16144
16145 fi
16146
16147 CFLAGS="$ax_pthread_save_CFLAGS"
16148 LIBS="$ax_pthread_save_LIBS"
16149
16150 # More AIX lossage: compile with *_r variant
16151 if test "x$GCC" != "xyes"; then
16152 case $host_os in
16153 aix*)
16154 case "x/$CC" in #(
16155 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16156 #handle absolute path differently from PATH based program lookup
16157 case "x$CC" in #(
16158 x/*) :
16159 if as_fn_executable_p ${CC}_r; then :
16160 PTHREAD_CC="${CC}_r"
16161 fi ;; #(
16162 *) :
16163 for ac_prog in ${CC}_r
16164 do
16165 # Extract the first word of "$ac_prog", so it can be a program name with args.
16166 set dummy $ac_prog; ac_word=$2
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16168 $as_echo_n "checking for $ac_word... " >&6; }
16169 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16170 $as_echo_n "(cached) " >&6
16171 else
16172 if test -n "$PTHREAD_CC"; then
16173 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16174 else
16175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16176 for as_dir in $PATH
16177 do
16178 IFS=$as_save_IFS
16179 test -z "$as_dir" && as_dir=.
16180 for ac_exec_ext in '' $ac_executable_extensions; do
16181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16182 ac_cv_prog_PTHREAD_CC="$ac_prog"
16183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16184 break 2
16185 fi
16186 done
16187 done
16188 IFS=$as_save_IFS
16189
16190 fi
16191 fi
16192 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16193 if test -n "$PTHREAD_CC"; then
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16195 $as_echo "$PTHREAD_CC" >&6; }
16196 else
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16198 $as_echo "no" >&6; }
16199 fi
16200
16201
16202 test -n "$PTHREAD_CC" && break
16203 done
16204 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16205 ;;
16206 esac ;; #(
16207 *) :
16208 ;;
16209 esac
16210 ;;
16211 esac
16212 fi
16213 fi
16214
16215 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16216
16217
16218
16219
16220
16221 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16222 if test "x$ax_pthread_ok" = "xyes"; then
16223
16224 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16225
16226 :
16227 else
16228 ax_pthread_ok=no
16229
16230 fi
16231 ac_ext=c
16232 ac_cpp='$CPP $CPPFLAGS'
16233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16236
16237
16238
16239 # Specify a location for JDK
16240 enable_gprofng_jp=
16241 jdk_inc=
16242
16243 # Check whether --with-jdk was given.
16244 if test "${with_jdk+set}" = set; then :
16245 withval=$with_jdk;
16246 fi
16247
16248
16249 if test "x$with_jdk" != x; then
16250 jdk_inc="-I$with_jdk/include -I$with_jdk/include/linux"
16251 enable_gprofng_jp=yes
16252 else
16253 # Extract the first word of "javac", so it can be a program name with args.
16254 set dummy javac; ac_word=$2
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256 $as_echo_n "checking for $ac_word... " >&6; }
16257 if ${ac_cv_path_JAVAC+:} false; then :
16258 $as_echo_n "(cached) " >&6
16259 else
16260 case $JAVAC in
16261 [\\/]* | ?:[\\/]*)
16262 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
16263 ;;
16264 *)
16265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16266 for as_dir in $PATH
16267 do
16268 IFS=$as_save_IFS
16269 test -z "$as_dir" && as_dir=.
16270 for ac_exec_ext in '' $ac_executable_extensions; do
16271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16272 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
16273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16274 break 2
16275 fi
16276 done
16277 done
16278 IFS=$as_save_IFS
16279
16280 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="javac"
16281 ;;
16282 esac
16283 fi
16284 JAVAC=$ac_cv_path_JAVAC
16285 if test -n "$JAVAC"; then
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16287 $as_echo "$JAVAC" >&6; }
16288 else
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290 $as_echo "no" >&6; }
16291 fi
16292
16293
16294 if test -f $JAVAC; then
16295 x=`readlink -f $JAVAC`
16296 x=`dirname $x`
16297 x=`dirname $x`
16298 if ! test -f $x/include/jni.h; then
16299 x=`dirname $x`
16300 fi
16301 if test -f $x/include/jni.h; then
16302 jdk_inc="-I$x/include -I$x/include/linux"
16303 enable_gprofng_jp=yes
16304 fi
16305 fi
16306 fi
16307 if test "x$enable_gprofng_jp" = x; then
16308 # Extract the first word of "java", so it can be a program name with args.
16309 set dummy java; ac_word=$2
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16311 $as_echo_n "checking for $ac_word... " >&6; }
16312 if ${ac_cv_path_JAVA+:} false; then :
16313 $as_echo_n "(cached) " >&6
16314 else
16315 case $JAVA in
16316 [\\/]* | ?:[\\/]*)
16317 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
16318 ;;
16319 *)
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH
16322 do
16323 IFS=$as_save_IFS
16324 test -z "$as_dir" && as_dir=.
16325 for ac_exec_ext in '' $ac_executable_extensions; do
16326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16327 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
16328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16329 break 2
16330 fi
16331 done
16332 done
16333 IFS=$as_save_IFS
16334
16335 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="java"
16336 ;;
16337 esac
16338 fi
16339 JAVA=$ac_cv_path_JAVA
16340 if test -n "$JAVA"; then
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16342 $as_echo "$JAVA" >&6; }
16343 else
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16345 $as_echo "no" >&6; }
16346 fi
16347
16348
16349 if test -f $JAVA; then
16350 x=`readlink -f $JAVA`
16351 x=`dirname $x`
16352 x=`dirname $x`
16353 if ! test -f $x/include/jni.h; then
16354 x=`dirname $x`
16355 fi
16356 if test -f $x/include/jni.h; then
16357 jdk_inc="-I$x/include -I$x/include/linux"
16358 enable_gprofng_jp=yes
16359 fi
16360 fi
16361 fi
16362 if test "x$enable_gprofng_jp" = x; then
16363 ac_fn_c_check_header_compile "$LINENO" "jni.h" "ac_cv_header_jni_h" "
16364 "
16365 if test "x$ac_cv_header_jni_h" = xyes; then :
16366 enable_gprofng_jp=yes
16367 fi
16368
16369
16370 fi
16371 if test "x$enable_gprofng_jp" = x; then
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find the JDK include directory.
16373 gprofng will be build without support for profiling Java applications.
16374 Use --with-jdk=PATH to specify directory for the installed JDK" >&5
16375 $as_echo "$as_me: WARNING: Cannot find the JDK include directory.
16376 gprofng will be build without support for profiling Java applications.
16377 Use --with-jdk=PATH to specify directory for the installed JDK" >&2;}
16378 else
16379
16380 $as_echo "#define GPROFNG_JAVA_PROFILING 1" >>confdefs.h
16381
16382 fi
16383
16384
16385 DEBUG=
16386 # Check whether --enable-gprofng-debug was given.
16387 if test "${enable_gprofng_debug+set}" = set; then :
16388 enableval=$enable_gprofng_debug;
16389 case "$enableval" in
16390 yes|no) ;;
16391 *) as_fn_error $? "Argument to enable/disable gprofng-debug must be yes or no" "$LINENO" 5 ;;
16392 esac
16393
16394 else
16395 enable_gprofng_debug=no
16396 fi
16397
16398
16399 if test "${enable_gprofng_debug}" = yes; then
16400
16401 $as_echo "#define DEBUG 1" >>confdefs.h
16402
16403 fi
16404
16405 # Check if linker supports --as-needed and --no-as-needed options.
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
16407 $as_echo_n "checking linker --as-needed support... " >&6; }
16408 if ${bfd_cv_ld_as_needed+:} false; then :
16409 $as_echo_n "(cached) " >&6
16410 else
16411 bfd_cv_ld_as_needed=no
16412 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
16413 bfd_cv_ld_as_needed=yes
16414 fi
16415
16416 fi
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
16418 $as_echo "$bfd_cv_ld_as_needed" >&6; }
16419
16420 no_as_needed=
16421 if test x"$bfd_cv_ld_as_needed" = xyes; then
16422 no_as_needed='-Wl,--no-as-needed'
16423 fi
16424
16425 # Extract the first word of "expect", so it can be a program name with args.
16426 set dummy expect; ac_word=$2
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16428 $as_echo_n "checking for $ac_word... " >&6; }
16429 if ${ac_cv_path_EXPECT+:} false; then :
16430 $as_echo_n "(cached) " >&6
16431 else
16432 case $EXPECT in
16433 [\\/]* | ?:[\\/]*)
16434 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
16435 ;;
16436 *)
16437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16438 for as_dir in $PATH
16439 do
16440 IFS=$as_save_IFS
16441 test -z "$as_dir" && as_dir=.
16442 for ac_exec_ext in '' $ac_executable_extensions; do
16443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16444 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
16445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16446 break 2
16447 fi
16448 done
16449 done
16450 IFS=$as_save_IFS
16451
16452 ;;
16453 esac
16454 fi
16455 EXPECT=$ac_cv_path_EXPECT
16456 if test -n "$EXPECT"; then
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16458 $as_echo "$EXPECT" >&6; }
16459 else
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16461 $as_echo "no" >&6; }
16462 fi
16463
16464
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16466 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16467 if ${ac_cv_libctf_tcl_try+:} false; then :
16468 $as_echo_n "(cached) " >&6
16469 else
16470 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16471 if [llength [info commands try]] then { puts yes } else { puts no }
16472 EOF
16473 fi`
16474
16475 fi
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16477 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
16478 if test "${ac_cv_libctf_tcl_try}" = yes; then
16479 TCL_TRY_TRUE=
16480 TCL_TRY_FALSE='#'
16481 else
16482 TCL_TRY_TRUE='#'
16483 TCL_TRY_FALSE=
16484 fi
16485
16486
16487
16488 # Generate manpages, if possible.
16489 if test $cross_compiling = no; then
16490
16491 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
16492
16493 build_man=true
16494 else
16495 build_man=false
16496 fi
16497 if test x$build_man = xtrue; then
16498 BUILD_MAN_TRUE=
16499 BUILD_MAN_FALSE='#'
16500 else
16501 BUILD_MAN_TRUE='#'
16502 BUILD_MAN_FALSE=
16503 fi
16504
16505
16506 LD_NO_AS_NEEDED=${no_as_needed}
16507
16508 GPROFNG_CFLAGS=${gprofng_cflags}
16509
16510 GPROFNG_CPPFLAGS=${gprofng_cppflags}
16511
16512 GPROFNG_LIBDIR=${libdir}
16513
16514
16515 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
16516 if test "x$ac_cv_have_decl_basename" = xyes; then :
16517 ac_have_decl=1
16518 else
16519 ac_have_decl=0
16520 fi
16521
16522 cat >>confdefs.h <<_ACEOF
16523 #define HAVE_DECL_BASENAME $ac_have_decl
16524 _ACEOF
16525
16526 for ac_func in clock_gettime strsignal
16527 do :
16528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16529 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16530 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16531 cat >>confdefs.h <<_ACEOF
16532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16533 _ACEOF
16534
16535 fi
16536 done
16537
16538
16539
16540
16541 ac_config_files="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile"
16542
16543 ac_config_headers="$ac_config_headers config.h:common/config.h.in"
16544
16545
16546 cat >confcache <<\_ACEOF
16547 # This file is a shell script that caches the results of configure
16548 # tests run on this system so they can be shared between configure
16549 # scripts and configure runs, see configure's option --config-cache.
16550 # It is not useful on other systems. If it contains results you don't
16551 # want to keep, you may remove or edit it.
16552 #
16553 # config.status only pays attention to the cache file if you give it
16554 # the --recheck option to rerun configure.
16555 #
16556 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16557 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16558 # following values.
16559
16560 _ACEOF
16561
16562 # The following way of writing the cache mishandles newlines in values,
16563 # but we know of no workaround that is simple, portable, and efficient.
16564 # So, we kill variables containing newlines.
16565 # Ultrix sh set writes to stderr and can't be redirected directly,
16566 # and sets the high bit in the cache file unless we assign to the vars.
16567 (
16568 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16569 eval ac_val=\$$ac_var
16570 case $ac_val in #(
16571 *${as_nl}*)
16572 case $ac_var in #(
16573 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16575 esac
16576 case $ac_var in #(
16577 _ | IFS | as_nl) ;; #(
16578 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16579 *) { eval $ac_var=; unset $ac_var;} ;;
16580 esac ;;
16581 esac
16582 done
16583
16584 (set) 2>&1 |
16585 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16586 *${as_nl}ac_space=\ *)
16587 # `set' does not quote correctly, so add quotes: double-quote
16588 # substitution turns \\\\ into \\, and sed turns \\ into \.
16589 sed -n \
16590 "s/'/'\\\\''/g;
16591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16592 ;; #(
16593 *)
16594 # `set' quotes correctly as required by POSIX, so do not add quotes.
16595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16596 ;;
16597 esac |
16598 sort
16599 ) |
16600 sed '
16601 /^ac_cv_env_/b end
16602 t clear
16603 :clear
16604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16605 t end
16606 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16607 :end' >>confcache
16608 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16609 if test -w "$cache_file"; then
16610 if test "x$cache_file" != "x/dev/null"; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16612 $as_echo "$as_me: updating cache $cache_file" >&6;}
16613 if test ! -f "$cache_file" || test -h "$cache_file"; then
16614 cat confcache >"$cache_file"
16615 else
16616 case $cache_file in #(
16617 */* | ?:*)
16618 mv -f confcache "$cache_file"$$ &&
16619 mv -f "$cache_file"$$ "$cache_file" ;; #(
16620 *)
16621 mv -f confcache "$cache_file" ;;
16622 esac
16623 fi
16624 fi
16625 else
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16627 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16628 fi
16629 fi
16630 rm -f confcache
16631
16632 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16633 # Let make expand exec_prefix.
16634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16635
16636 DEFS=-DHAVE_CONFIG_H
16637
16638 ac_libobjs=
16639 ac_ltlibobjs=
16640 U=
16641 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16642 # 1. Remove the extension, and $U if already installed.
16643 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16644 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16645 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16646 # will be set to the directory where LIBOBJS objects are built.
16647 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16648 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16649 done
16650 LIBOBJS=$ac_libobjs
16651
16652 LTLIBOBJS=$ac_ltlibobjs
16653
16654
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16656 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16657 if test -n "$am_sleep_pid"; then
16658 # Hide warnings about reused PIDs.
16659 wait $am_sleep_pid 2>/dev/null
16660 fi
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16662 $as_echo "done" >&6; }
16663 if test -n "$EXEEXT"; then
16664 am__EXEEXT_TRUE=
16665 am__EXEEXT_FALSE='#'
16666 else
16667 am__EXEEXT_TRUE='#'
16668 am__EXEEXT_FALSE=
16669 fi
16670
16671 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16672 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16674 fi
16675 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16676 as_fn_error $? "conditional \"AMDEP\" was never defined.
16677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16678 fi
16679 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16680 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16682 fi
16683 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16684 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16686 fi
16687 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16688 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16690 fi
16691 if test -z "${BUILD_COLLECTOR_TRUE}" && test -z "${BUILD_COLLECTOR_FALSE}"; then
16692 as_fn_error $? "conditional \"BUILD_COLLECTOR\" was never defined.
16693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16694 fi
16695 if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then
16696 as_fn_error $? "conditional \"BUILD_SRC\" was never defined.
16697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16698 fi
16699 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
16700 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
16701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16702 fi
16703 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
16704 as_fn_error $? "conditional \"TCL_TRY\" was never defined.
16705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16706 fi
16707 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
16708 as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
16709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16710 fi
16711
16712 : "${CONFIG_STATUS=./config.status}"
16713 ac_write_fail=0
16714 ac_clean_files_save=$ac_clean_files
16715 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16717 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16718 as_write_fail=0
16719 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16720 #! $SHELL
16721 # Generated by $as_me.
16722 # Run this file to recreate the current configuration.
16723 # Compiler output produced by configure, useful for debugging
16724 # configure, is in config.log if it exists.
16725
16726 debug=false
16727 ac_cs_recheck=false
16728 ac_cs_silent=false
16729
16730 SHELL=\${CONFIG_SHELL-$SHELL}
16731 export SHELL
16732 _ASEOF
16733 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16734 ## -------------------- ##
16735 ## M4sh Initialization. ##
16736 ## -------------------- ##
16737
16738 # Be more Bourne compatible
16739 DUALCASE=1; export DUALCASE # for MKS sh
16740 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16741 emulate sh
16742 NULLCMD=:
16743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16744 # is contrary to our usage. Disable this feature.
16745 alias -g '${1+"$@"}'='"$@"'
16746 setopt NO_GLOB_SUBST
16747 else
16748 case `(set -o) 2>/dev/null` in #(
16749 *posix*) :
16750 set -o posix ;; #(
16751 *) :
16752 ;;
16753 esac
16754 fi
16755
16756
16757 as_nl='
16758 '
16759 export as_nl
16760 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16761 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16764 # Prefer a ksh shell builtin over an external printf program on Solaris,
16765 # but without wasting forks for bash or zsh.
16766 if test -z "$BASH_VERSION$ZSH_VERSION" \
16767 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16768 as_echo='print -r --'
16769 as_echo_n='print -rn --'
16770 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16771 as_echo='printf %s\n'
16772 as_echo_n='printf %s'
16773 else
16774 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16775 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16776 as_echo_n='/usr/ucb/echo -n'
16777 else
16778 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16779 as_echo_n_body='eval
16780 arg=$1;
16781 case $arg in #(
16782 *"$as_nl"*)
16783 expr "X$arg" : "X\\(.*\\)$as_nl";
16784 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16785 esac;
16786 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16787 '
16788 export as_echo_n_body
16789 as_echo_n='sh -c $as_echo_n_body as_echo'
16790 fi
16791 export as_echo_body
16792 as_echo='sh -c $as_echo_body as_echo'
16793 fi
16794
16795 # The user is always right.
16796 if test "${PATH_SEPARATOR+set}" != set; then
16797 PATH_SEPARATOR=:
16798 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16799 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16800 PATH_SEPARATOR=';'
16801 }
16802 fi
16803
16804
16805 # IFS
16806 # We need space, tab and new line, in precisely that order. Quoting is
16807 # there to prevent editors from complaining about space-tab.
16808 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16809 # splitting by setting IFS to empty value.)
16810 IFS=" "" $as_nl"
16811
16812 # Find who we are. Look in the path if we contain no directory separator.
16813 as_myself=
16814 case $0 in #((
16815 *[\\/]* ) as_myself=$0 ;;
16816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16817 for as_dir in $PATH
16818 do
16819 IFS=$as_save_IFS
16820 test -z "$as_dir" && as_dir=.
16821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16822 done
16823 IFS=$as_save_IFS
16824
16825 ;;
16826 esac
16827 # We did not find ourselves, most probably we were run as `sh COMMAND'
16828 # in which case we are not to be found in the path.
16829 if test "x$as_myself" = x; then
16830 as_myself=$0
16831 fi
16832 if test ! -f "$as_myself"; then
16833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16834 exit 1
16835 fi
16836
16837 # Unset variables that we do not need and which cause bugs (e.g. in
16838 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16839 # suppresses any "Segmentation fault" message there. '((' could
16840 # trigger a bug in pdksh 5.2.14.
16841 for as_var in BASH_ENV ENV MAIL MAILPATH
16842 do eval test x\${$as_var+set} = xset \
16843 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16844 done
16845 PS1='$ '
16846 PS2='> '
16847 PS4='+ '
16848
16849 # NLS nuisances.
16850 LC_ALL=C
16851 export LC_ALL
16852 LANGUAGE=C
16853 export LANGUAGE
16854
16855 # CDPATH.
16856 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16857
16858
16859 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16860 # ----------------------------------------
16861 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16862 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16863 # script with STATUS, using 1 if that was 0.
16864 as_fn_error ()
16865 {
16866 as_status=$1; test $as_status -eq 0 && as_status=1
16867 if test "$4"; then
16868 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16869 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16870 fi
16871 $as_echo "$as_me: error: $2" >&2
16872 as_fn_exit $as_status
16873 } # as_fn_error
16874
16875
16876 # as_fn_set_status STATUS
16877 # -----------------------
16878 # Set $? to STATUS, without forking.
16879 as_fn_set_status ()
16880 {
16881 return $1
16882 } # as_fn_set_status
16883
16884 # as_fn_exit STATUS
16885 # -----------------
16886 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16887 as_fn_exit ()
16888 {
16889 set +e
16890 as_fn_set_status $1
16891 exit $1
16892 } # as_fn_exit
16893
16894 # as_fn_unset VAR
16895 # ---------------
16896 # Portably unset VAR.
16897 as_fn_unset ()
16898 {
16899 { eval $1=; unset $1;}
16900 }
16901 as_unset=as_fn_unset
16902 # as_fn_append VAR VALUE
16903 # ----------------------
16904 # Append the text in VALUE to the end of the definition contained in VAR. Take
16905 # advantage of any shell optimizations that allow amortized linear growth over
16906 # repeated appends, instead of the typical quadratic growth present in naive
16907 # implementations.
16908 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16909 eval 'as_fn_append ()
16910 {
16911 eval $1+=\$2
16912 }'
16913 else
16914 as_fn_append ()
16915 {
16916 eval $1=\$$1\$2
16917 }
16918 fi # as_fn_append
16919
16920 # as_fn_arith ARG...
16921 # ------------------
16922 # Perform arithmetic evaluation on the ARGs, and store the result in the
16923 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16924 # must be portable across $(()) and expr.
16925 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16926 eval 'as_fn_arith ()
16927 {
16928 as_val=$(( $* ))
16929 }'
16930 else
16931 as_fn_arith ()
16932 {
16933 as_val=`expr "$@" || test $? -eq 1`
16934 }
16935 fi # as_fn_arith
16936
16937
16938 if expr a : '\(a\)' >/dev/null 2>&1 &&
16939 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16940 as_expr=expr
16941 else
16942 as_expr=false
16943 fi
16944
16945 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16946 as_basename=basename
16947 else
16948 as_basename=false
16949 fi
16950
16951 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16952 as_dirname=dirname
16953 else
16954 as_dirname=false
16955 fi
16956
16957 as_me=`$as_basename -- "$0" ||
16958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16959 X"$0" : 'X\(//\)$' \| \
16960 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16961 $as_echo X/"$0" |
16962 sed '/^.*\/\([^/][^/]*\)\/*$/{
16963 s//\1/
16964 q
16965 }
16966 /^X\/\(\/\/\)$/{
16967 s//\1/
16968 q
16969 }
16970 /^X\/\(\/\).*/{
16971 s//\1/
16972 q
16973 }
16974 s/.*/./; q'`
16975
16976 # Avoid depending upon Character Ranges.
16977 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16978 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16979 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16980 as_cr_digits='0123456789'
16981 as_cr_alnum=$as_cr_Letters$as_cr_digits
16982
16983 ECHO_C= ECHO_N= ECHO_T=
16984 case `echo -n x` in #(((((
16985 -n*)
16986 case `echo 'xy\c'` in
16987 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16988 xy) ECHO_C='\c';;
16989 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16990 ECHO_T=' ';;
16991 esac;;
16992 *)
16993 ECHO_N='-n';;
16994 esac
16995
16996 rm -f conf$$ conf$$.exe conf$$.file
16997 if test -d conf$$.dir; then
16998 rm -f conf$$.dir/conf$$.file
16999 else
17000 rm -f conf$$.dir
17001 mkdir conf$$.dir 2>/dev/null
17002 fi
17003 if (echo >conf$$.file) 2>/dev/null; then
17004 if ln -s conf$$.file conf$$ 2>/dev/null; then
17005 as_ln_s='ln -s'
17006 # ... but there are two gotchas:
17007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17009 # In both cases, we have to default to `cp -pR'.
17010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17011 as_ln_s='cp -pR'
17012 elif ln conf$$.file conf$$ 2>/dev/null; then
17013 as_ln_s=ln
17014 else
17015 as_ln_s='cp -pR'
17016 fi
17017 else
17018 as_ln_s='cp -pR'
17019 fi
17020 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17021 rmdir conf$$.dir 2>/dev/null
17022
17023
17024 # as_fn_mkdir_p
17025 # -------------
17026 # Create "$as_dir" as a directory, including parents if necessary.
17027 as_fn_mkdir_p ()
17028 {
17029
17030 case $as_dir in #(
17031 -*) as_dir=./$as_dir;;
17032 esac
17033 test -d "$as_dir" || eval $as_mkdir_p || {
17034 as_dirs=
17035 while :; do
17036 case $as_dir in #(
17037 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17038 *) as_qdir=$as_dir;;
17039 esac
17040 as_dirs="'$as_qdir' $as_dirs"
17041 as_dir=`$as_dirname -- "$as_dir" ||
17042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17043 X"$as_dir" : 'X\(//\)[^/]' \| \
17044 X"$as_dir" : 'X\(//\)$' \| \
17045 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17046 $as_echo X"$as_dir" |
17047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17048 s//\1/
17049 q
17050 }
17051 /^X\(\/\/\)[^/].*/{
17052 s//\1/
17053 q
17054 }
17055 /^X\(\/\/\)$/{
17056 s//\1/
17057 q
17058 }
17059 /^X\(\/\).*/{
17060 s//\1/
17061 q
17062 }
17063 s/.*/./; q'`
17064 test -d "$as_dir" && break
17065 done
17066 test -z "$as_dirs" || eval "mkdir $as_dirs"
17067 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17068
17069
17070 } # as_fn_mkdir_p
17071 if mkdir -p . 2>/dev/null; then
17072 as_mkdir_p='mkdir -p "$as_dir"'
17073 else
17074 test -d ./-p && rmdir ./-p
17075 as_mkdir_p=false
17076 fi
17077
17078
17079 # as_fn_executable_p FILE
17080 # -----------------------
17081 # Test if FILE is an executable regular file.
17082 as_fn_executable_p ()
17083 {
17084 test -f "$1" && test -x "$1"
17085 } # as_fn_executable_p
17086 as_test_x='test -x'
17087 as_executable_p=as_fn_executable_p
17088
17089 # Sed expression to map a string onto a valid CPP name.
17090 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17091
17092 # Sed expression to map a string onto a valid variable name.
17093 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17094
17095
17096 exec 6>&1
17097 ## ----------------------------------- ##
17098 ## Main body of $CONFIG_STATUS script. ##
17099 ## ----------------------------------- ##
17100 _ASEOF
17101 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17102
17103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17104 # Save the log message, to keep $0 and so on meaningful, and to
17105 # report actual input values of CONFIG_FILES etc. instead of their
17106 # values after options handling.
17107 ac_log="
17108 This file was extended by gprofng $as_me 2.38.50, which was
17109 generated by GNU Autoconf 2.69. Invocation command line was
17110
17111 CONFIG_FILES = $CONFIG_FILES
17112 CONFIG_HEADERS = $CONFIG_HEADERS
17113 CONFIG_LINKS = $CONFIG_LINKS
17114 CONFIG_COMMANDS = $CONFIG_COMMANDS
17115 $ $0 $@
17116
17117 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17118 "
17119
17120 _ACEOF
17121
17122 case $ac_config_files in *"
17123 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17124 esac
17125
17126 case $ac_config_headers in *"
17127 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17128 esac
17129
17130
17131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17132 # Files that config.status was made for.
17133 config_files="$ac_config_files"
17134 config_headers="$ac_config_headers"
17135 config_commands="$ac_config_commands"
17136
17137 _ACEOF
17138
17139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17140 ac_cs_usage="\
17141 \`$as_me' instantiates files and other configuration actions
17142 from templates according to the current configuration. Unless the files
17143 and actions are specified as TAGs, all are instantiated by default.
17144
17145 Usage: $0 [OPTION]... [TAG]...
17146
17147 -h, --help print this help, then exit
17148 -V, --version print version number and configuration settings, then exit
17149 --config print configuration, then exit
17150 -q, --quiet, --silent
17151 do not print progress messages
17152 -d, --debug don't remove temporary files
17153 --recheck update $as_me by reconfiguring in the same conditions
17154 --file=FILE[:TEMPLATE]
17155 instantiate the configuration file FILE
17156 --header=FILE[:TEMPLATE]
17157 instantiate the configuration header FILE
17158
17159 Configuration files:
17160 $config_files
17161
17162 Configuration headers:
17163 $config_headers
17164
17165 Configuration commands:
17166 $config_commands
17167
17168 Report bugs to the package provider."
17169
17170 _ACEOF
17171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17172 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17173 ac_cs_version="\\
17174 gprofng config.status 2.38.50
17175 configured by $0, generated by GNU Autoconf 2.69,
17176 with options \\"\$ac_cs_config\\"
17177
17178 Copyright (C) 2012 Free Software Foundation, Inc.
17179 This config.status script is free software; the Free Software Foundation
17180 gives unlimited permission to copy, distribute and modify it."
17181
17182 ac_pwd='$ac_pwd'
17183 srcdir='$srcdir'
17184 INSTALL='$INSTALL'
17185 MKDIR_P='$MKDIR_P'
17186 AWK='$AWK'
17187 test -n "\$AWK" || AWK=awk
17188 _ACEOF
17189
17190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17191 # The default lists apply if the user does not specify any file.
17192 ac_need_defaults=:
17193 while test $# != 0
17194 do
17195 case $1 in
17196 --*=?*)
17197 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17198 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17199 ac_shift=:
17200 ;;
17201 --*=)
17202 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17203 ac_optarg=
17204 ac_shift=:
17205 ;;
17206 *)
17207 ac_option=$1
17208 ac_optarg=$2
17209 ac_shift=shift
17210 ;;
17211 esac
17212
17213 case $ac_option in
17214 # Handling of the options.
17215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17216 ac_cs_recheck=: ;;
17217 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17218 $as_echo "$ac_cs_version"; exit ;;
17219 --config | --confi | --conf | --con | --co | --c )
17220 $as_echo "$ac_cs_config"; exit ;;
17221 --debug | --debu | --deb | --de | --d | -d )
17222 debug=: ;;
17223 --file | --fil | --fi | --f )
17224 $ac_shift
17225 case $ac_optarg in
17226 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17227 '') as_fn_error $? "missing file argument" ;;
17228 esac
17229 as_fn_append CONFIG_FILES " '$ac_optarg'"
17230 ac_need_defaults=false;;
17231 --header | --heade | --head | --hea )
17232 $ac_shift
17233 case $ac_optarg in
17234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17235 esac
17236 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17237 ac_need_defaults=false;;
17238 --he | --h)
17239 # Conflict between --help and --header
17240 as_fn_error $? "ambiguous option: \`$1'
17241 Try \`$0 --help' for more information.";;
17242 --help | --hel | -h )
17243 $as_echo "$ac_cs_usage"; exit ;;
17244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17245 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17246 ac_cs_silent=: ;;
17247
17248 # This is an error.
17249 -*) as_fn_error $? "unrecognized option: \`$1'
17250 Try \`$0 --help' for more information." ;;
17251
17252 *) as_fn_append ac_config_targets " $1"
17253 ac_need_defaults=false ;;
17254
17255 esac
17256 shift
17257 done
17258
17259 ac_configure_extra_args=
17260
17261 if $ac_cs_silent; then
17262 exec 6>/dev/null
17263 ac_configure_extra_args="$ac_configure_extra_args --silent"
17264 fi
17265
17266 _ACEOF
17267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17268 if \$ac_cs_recheck; then
17269 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17270 shift
17271 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17272 CONFIG_SHELL='$SHELL'
17273 export CONFIG_SHELL
17274 exec "\$@"
17275 fi
17276
17277 _ACEOF
17278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17279 exec 5>>config.log
17280 {
17281 echo
17282 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17283 ## Running $as_me. ##
17284 _ASBOX
17285 $as_echo "$ac_log"
17286 } >&5
17287
17288 _ACEOF
17289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17290 #
17291 # INIT-COMMANDS
17292 #
17293 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17294
17295
17296 # The HP-UX ksh and POSIX shell print the target directory to stdout
17297 # if CDPATH is set.
17298 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17299
17300 sed_quote_subst='$sed_quote_subst'
17301 double_quote_subst='$double_quote_subst'
17302 delay_variable_subst='$delay_variable_subst'
17303 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17304 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17305 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17306 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17307 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17308 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17309 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17310 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17311 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17312 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17313 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17314 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17315 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17316 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17317 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17318 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17319 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17320 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17321 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17322 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17323 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17324 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17325 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17326 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17327 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17328 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17329 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17330 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17331 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17332 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17333 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17334 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17335 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17336 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17337 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17338 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17339 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17340 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17341 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17342 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17343 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17344 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17345 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17346 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17347 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17348 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17349 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17350 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17351 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"`'
17352 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17353 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17354 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17355 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17356 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17357 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17358 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17359 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17360 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17361 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17362 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17363 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17364 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17365 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17366 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17367 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17368 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17369 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17370 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17371 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17372 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17373 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17374 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17375 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17376 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17377 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17378 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17379 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17380 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17381 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17382 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17383 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17384 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17385 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17386 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17387 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17388 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17389 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17390 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17391 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17392 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17393 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17394 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17395 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17396 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17397 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17398 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17399 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17400 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17401 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17402 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17403 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17404 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17405 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17406 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17407 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17408 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17409 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17410 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17411 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17412 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17413 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17414 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17415 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17416 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17417 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17418 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17419 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17420 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17421 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17422 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17423 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17424 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17425 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17426 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17427 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17428 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17429 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17430 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17431 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17432 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17433 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17434 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17435 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17436 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17437 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17438 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17439 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17440 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17441 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17442 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17443 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17444 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17445 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17446 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17447 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17448 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17449 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17450 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17451 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17452 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17453 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17454 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17455 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17456 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17457 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17458 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17459 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17460 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17461 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17462 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17463 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17464 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17465 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17466 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17467 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17468 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17469 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17470 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17471 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17472 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17473 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17474 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17475 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17476 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17477 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17478
17479 LTCC='$LTCC'
17480 LTCFLAGS='$LTCFLAGS'
17481 compiler='$compiler_DEFAULT'
17482
17483 # A function that is used when there is no print builtin or printf.
17484 func_fallback_echo ()
17485 {
17486 eval 'cat <<_LTECHO_EOF
17487 \$1
17488 _LTECHO_EOF'
17489 }
17490
17491 # Quote evaled strings.
17492 for var in SHELL \
17493 ECHO \
17494 SED \
17495 GREP \
17496 EGREP \
17497 FGREP \
17498 LD \
17499 NM \
17500 LN_S \
17501 lt_SP2NL \
17502 lt_NL2SP \
17503 reload_flag \
17504 OBJDUMP \
17505 deplibs_check_method \
17506 file_magic_cmd \
17507 AR \
17508 AR_FLAGS \
17509 STRIP \
17510 RANLIB \
17511 CC \
17512 CFLAGS \
17513 compiler \
17514 lt_cv_sys_global_symbol_pipe \
17515 lt_cv_sys_global_symbol_to_cdecl \
17516 lt_cv_sys_global_symbol_to_c_name_address \
17517 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17518 lt_prog_compiler_no_builtin_flag \
17519 lt_prog_compiler_wl \
17520 lt_prog_compiler_pic \
17521 lt_prog_compiler_static \
17522 lt_cv_prog_compiler_c_o \
17523 need_locks \
17524 DSYMUTIL \
17525 NMEDIT \
17526 LIPO \
17527 OTOOL \
17528 OTOOL64 \
17529 shrext_cmds \
17530 export_dynamic_flag_spec \
17531 whole_archive_flag_spec \
17532 compiler_needs_object \
17533 with_gnu_ld \
17534 allow_undefined_flag \
17535 no_undefined_flag \
17536 hardcode_libdir_flag_spec \
17537 hardcode_libdir_flag_spec_ld \
17538 hardcode_libdir_separator \
17539 fix_srcfile_path \
17540 exclude_expsyms \
17541 include_expsyms \
17542 file_list_spec \
17543 variables_saved_for_relink \
17544 libname_spec \
17545 library_names_spec \
17546 soname_spec \
17547 install_override_mode \
17548 finish_eval \
17549 old_striplib \
17550 striplib \
17551 compiler_lib_search_dirs \
17552 predep_objects \
17553 postdep_objects \
17554 predeps \
17555 postdeps \
17556 compiler_lib_search_path \
17557 LD_CXX \
17558 reload_flag_CXX \
17559 compiler_CXX \
17560 lt_prog_compiler_no_builtin_flag_CXX \
17561 lt_prog_compiler_wl_CXX \
17562 lt_prog_compiler_pic_CXX \
17563 lt_prog_compiler_static_CXX \
17564 lt_cv_prog_compiler_c_o_CXX \
17565 export_dynamic_flag_spec_CXX \
17566 whole_archive_flag_spec_CXX \
17567 compiler_needs_object_CXX \
17568 with_gnu_ld_CXX \
17569 allow_undefined_flag_CXX \
17570 no_undefined_flag_CXX \
17571 hardcode_libdir_flag_spec_CXX \
17572 hardcode_libdir_flag_spec_ld_CXX \
17573 hardcode_libdir_separator_CXX \
17574 fix_srcfile_path_CXX \
17575 exclude_expsyms_CXX \
17576 include_expsyms_CXX \
17577 file_list_spec_CXX \
17578 compiler_lib_search_dirs_CXX \
17579 predep_objects_CXX \
17580 postdep_objects_CXX \
17581 predeps_CXX \
17582 postdeps_CXX \
17583 compiler_lib_search_path_CXX; do
17584 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17585 *[\\\\\\\`\\"\\\$]*)
17586 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17587 ;;
17588 *)
17589 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17590 ;;
17591 esac
17592 done
17593
17594 # Double-quote double-evaled strings.
17595 for var in reload_cmds \
17596 old_postinstall_cmds \
17597 old_postuninstall_cmds \
17598 old_archive_cmds \
17599 extract_expsyms_cmds \
17600 old_archive_from_new_cmds \
17601 old_archive_from_expsyms_cmds \
17602 archive_cmds \
17603 archive_expsym_cmds \
17604 module_cmds \
17605 module_expsym_cmds \
17606 export_symbols_cmds \
17607 prelink_cmds \
17608 postinstall_cmds \
17609 postuninstall_cmds \
17610 finish_cmds \
17611 sys_lib_search_path_spec \
17612 sys_lib_dlsearch_path_spec \
17613 reload_cmds_CXX \
17614 old_archive_cmds_CXX \
17615 old_archive_from_new_cmds_CXX \
17616 old_archive_from_expsyms_cmds_CXX \
17617 archive_cmds_CXX \
17618 archive_expsym_cmds_CXX \
17619 module_cmds_CXX \
17620 module_expsym_cmds_CXX \
17621 export_symbols_cmds_CXX \
17622 prelink_cmds_CXX; do
17623 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17624 *[\\\\\\\`\\"\\\$]*)
17625 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17626 ;;
17627 *)
17628 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17629 ;;
17630 esac
17631 done
17632
17633 ac_aux_dir='$ac_aux_dir'
17634 xsi_shell='$xsi_shell'
17635 lt_shell_append='$lt_shell_append'
17636
17637 # See if we are running on zsh, and set the options which allow our
17638 # commands through without removal of \ escapes INIT.
17639 if test -n "\${ZSH_VERSION+set}" ; then
17640 setopt NO_GLOB_SUBST
17641 fi
17642
17643
17644 PACKAGE='$PACKAGE'
17645 VERSION='$VERSION'
17646 TIMESTAMP='$TIMESTAMP'
17647 RM='$RM'
17648 ofile='$ofile'
17649
17650
17651
17652
17653
17654
17655 _ACEOF
17656
17657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17658
17659 # Handling of arguments.
17660 for ac_config_target in $ac_config_targets
17661 do
17662 case $ac_config_target in
17663 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17664 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17665 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17666 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17667 "gp-display-html/Makefile") CONFIG_FILES="$CONFIG_FILES gp-display-html/Makefile" ;;
17668 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17669 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:common/config.h.in" ;;
17670
17671 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17672 esac
17673 done
17674
17675
17676 # If the user did not use the arguments to specify the items to instantiate,
17677 # then the envvar interface is used. Set only those that are not.
17678 # We use the long form for the default assignment because of an extremely
17679 # bizarre bug on SunOS 4.1.3.
17680 if $ac_need_defaults; then
17681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17684 fi
17685
17686 # Have a temporary directory for convenience. Make it in the build tree
17687 # simply because there is no reason against having it here, and in addition,
17688 # creating and moving files from /tmp can sometimes cause problems.
17689 # Hook for its removal unless debugging.
17690 # Note that there is a small window in which the directory will not be cleaned:
17691 # after its creation but before its name has been assigned to `$tmp'.
17692 $debug ||
17693 {
17694 tmp= ac_tmp=
17695 trap 'exit_status=$?
17696 : "${ac_tmp:=$tmp}"
17697 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17698 ' 0
17699 trap 'as_fn_exit 1' 1 2 13 15
17700 }
17701 # Create a (secure) tmp directory for tmp files.
17702
17703 {
17704 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17705 test -d "$tmp"
17706 } ||
17707 {
17708 tmp=./conf$$-$RANDOM
17709 (umask 077 && mkdir "$tmp")
17710 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17711 ac_tmp=$tmp
17712
17713 # Set up the scripts for CONFIG_FILES section.
17714 # No need to generate them if there are no CONFIG_FILES.
17715 # This happens for instance with `./config.status config.h'.
17716 if test -n "$CONFIG_FILES"; then
17717
17718
17719 ac_cr=`echo X | tr X '\015'`
17720 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17721 # But we know of no other shell where ac_cr would be empty at this
17722 # point, so we can use a bashism as a fallback.
17723 if test "x$ac_cr" = x; then
17724 eval ac_cr=\$\'\\r\'
17725 fi
17726 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17727 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17728 ac_cs_awk_cr='\\r'
17729 else
17730 ac_cs_awk_cr=$ac_cr
17731 fi
17732
17733 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17734 _ACEOF
17735
17736
17737 {
17738 echo "cat >conf$$subs.awk <<_ACEOF" &&
17739 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17740 echo "_ACEOF"
17741 } >conf$$subs.sh ||
17742 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17743 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17744 ac_delim='%!_!# '
17745 for ac_last_try in false false false false false :; do
17746 . ./conf$$subs.sh ||
17747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17748
17749 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17750 if test $ac_delim_n = $ac_delim_num; then
17751 break
17752 elif $ac_last_try; then
17753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17754 else
17755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17756 fi
17757 done
17758 rm -f conf$$subs.sh
17759
17760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17761 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17762 _ACEOF
17763 sed -n '
17764 h
17765 s/^/S["/; s/!.*/"]=/
17766 p
17767 g
17768 s/^[^!]*!//
17769 :repl
17770 t repl
17771 s/'"$ac_delim"'$//
17772 t delim
17773 :nl
17774 h
17775 s/\(.\{148\}\)..*/\1/
17776 t more1
17777 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17778 p
17779 n
17780 b repl
17781 :more1
17782 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17783 p
17784 g
17785 s/.\{148\}//
17786 t nl
17787 :delim
17788 h
17789 s/\(.\{148\}\)..*/\1/
17790 t more2
17791 s/["\\]/\\&/g; s/^/"/; s/$/"/
17792 p
17793 b
17794 :more2
17795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17796 p
17797 g
17798 s/.\{148\}//
17799 t delim
17800 ' <conf$$subs.awk | sed '
17801 /^[^""]/{
17802 N
17803 s/\n//
17804 }
17805 ' >>$CONFIG_STATUS || ac_write_fail=1
17806 rm -f conf$$subs.awk
17807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17808 _ACAWK
17809 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17810 for (key in S) S_is_set[key] = 1
17811 FS = "\a"
17812
17813 }
17814 {
17815 line = $ 0
17816 nfields = split(line, field, "@")
17817 substed = 0
17818 len = length(field[1])
17819 for (i = 2; i < nfields; i++) {
17820 key = field[i]
17821 keylen = length(key)
17822 if (S_is_set[key]) {
17823 value = S[key]
17824 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17825 len += length(value) + length(field[++i])
17826 substed = 1
17827 } else
17828 len += 1 + keylen
17829 }
17830
17831 print line
17832 }
17833
17834 _ACAWK
17835 _ACEOF
17836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17837 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17838 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17839 else
17840 cat
17841 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17842 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17843 _ACEOF
17844
17845 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17846 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17847 # trailing colons and then remove the whole line if VPATH becomes empty
17848 # (actually we leave an empty line to preserve line numbers).
17849 if test "x$srcdir" = x.; then
17850 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17851 h
17852 s///
17853 s/^/:/
17854 s/[ ]*$/:/
17855 s/:\$(srcdir):/:/g
17856 s/:\${srcdir}:/:/g
17857 s/:@srcdir@:/:/g
17858 s/^:*//
17859 s/:*$//
17860 x
17861 s/\(=[ ]*\).*/\1/
17862 G
17863 s/\n//
17864 s/^[^=]*=[ ]*$//
17865 }'
17866 fi
17867
17868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17869 fi # test -n "$CONFIG_FILES"
17870
17871 # Set up the scripts for CONFIG_HEADERS section.
17872 # No need to generate them if there are no CONFIG_HEADERS.
17873 # This happens for instance with `./config.status Makefile'.
17874 if test -n "$CONFIG_HEADERS"; then
17875 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17876 BEGIN {
17877 _ACEOF
17878
17879 # Transform confdefs.h into an awk script `defines.awk', embedded as
17880 # here-document in config.status, that substitutes the proper values into
17881 # config.h.in to produce config.h.
17882
17883 # Create a delimiter string that does not exist in confdefs.h, to ease
17884 # handling of long lines.
17885 ac_delim='%!_!# '
17886 for ac_last_try in false false :; do
17887 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17888 if test -z "$ac_tt"; then
17889 break
17890 elif $ac_last_try; then
17891 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17892 else
17893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17894 fi
17895 done
17896
17897 # For the awk script, D is an array of macro values keyed by name,
17898 # likewise P contains macro parameters if any. Preserve backslash
17899 # newline sequences.
17900
17901 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17902 sed -n '
17903 s/.\{148\}/&'"$ac_delim"'/g
17904 t rset
17905 :rset
17906 s/^[ ]*#[ ]*define[ ][ ]*/ /
17907 t def
17908 d
17909 :def
17910 s/\\$//
17911 t bsnl
17912 s/["\\]/\\&/g
17913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17914 D["\1"]=" \3"/p
17915 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17916 d
17917 :bsnl
17918 s/["\\]/\\&/g
17919 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17920 D["\1"]=" \3\\\\\\n"\\/p
17921 t cont
17922 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17923 t cont
17924 d
17925 :cont
17926 n
17927 s/.\{148\}/&'"$ac_delim"'/g
17928 t clear
17929 :clear
17930 s/\\$//
17931 t bsnlc
17932 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17933 d
17934 :bsnlc
17935 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17936 b cont
17937 ' <confdefs.h | sed '
17938 s/'"$ac_delim"'/"\\\
17939 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17940
17941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17942 for (key in D) D_is_set[key] = 1
17943 FS = "\a"
17944 }
17945 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17946 line = \$ 0
17947 split(line, arg, " ")
17948 if (arg[1] == "#") {
17949 defundef = arg[2]
17950 mac1 = arg[3]
17951 } else {
17952 defundef = substr(arg[1], 2)
17953 mac1 = arg[2]
17954 }
17955 split(mac1, mac2, "(") #)
17956 macro = mac2[1]
17957 prefix = substr(line, 1, index(line, defundef) - 1)
17958 if (D_is_set[macro]) {
17959 # Preserve the white space surrounding the "#".
17960 print prefix "define", macro P[macro] D[macro]
17961 next
17962 } else {
17963 # Replace #undef with comments. This is necessary, for example,
17964 # in the case of _POSIX_SOURCE, which is predefined and required
17965 # on some systems where configure will not decide to define it.
17966 if (defundef == "undef") {
17967 print "/*", prefix defundef, macro, "*/"
17968 next
17969 }
17970 }
17971 }
17972 { print }
17973 _ACAWK
17974 _ACEOF
17975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17976 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17977 fi # test -n "$CONFIG_HEADERS"
17978
17979
17980 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17981 shift
17982 for ac_tag
17983 do
17984 case $ac_tag in
17985 :[FHLC]) ac_mode=$ac_tag; continue;;
17986 esac
17987 case $ac_mode$ac_tag in
17988 :[FHL]*:*);;
17989 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17990 :[FH]-) ac_tag=-:-;;
17991 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17992 esac
17993 ac_save_IFS=$IFS
17994 IFS=:
17995 set x $ac_tag
17996 IFS=$ac_save_IFS
17997 shift
17998 ac_file=$1
17999 shift
18000
18001 case $ac_mode in
18002 :L) ac_source=$1;;
18003 :[FH])
18004 ac_file_inputs=
18005 for ac_f
18006 do
18007 case $ac_f in
18008 -) ac_f="$ac_tmp/stdin";;
18009 *) # Look for the file first in the build tree, then in the source tree
18010 # (if the path is not absolute). The absolute path cannot be DOS-style,
18011 # because $ac_f cannot contain `:'.
18012 test -f "$ac_f" ||
18013 case $ac_f in
18014 [\\/$]*) false;;
18015 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18016 esac ||
18017 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18018 esac
18019 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18020 as_fn_append ac_file_inputs " '$ac_f'"
18021 done
18022
18023 # Let's still pretend it is `configure' which instantiates (i.e., don't
18024 # use $as_me), people would be surprised to read:
18025 # /* config.h. Generated by config.status. */
18026 configure_input='Generated from '`
18027 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18028 `' by configure.'
18029 if test x"$ac_file" != x-; then
18030 configure_input="$ac_file. $configure_input"
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18032 $as_echo "$as_me: creating $ac_file" >&6;}
18033 fi
18034 # Neutralize special characters interpreted by sed in replacement strings.
18035 case $configure_input in #(
18036 *\&* | *\|* | *\\* )
18037 ac_sed_conf_input=`$as_echo "$configure_input" |
18038 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18039 *) ac_sed_conf_input=$configure_input;;
18040 esac
18041
18042 case $ac_tag in
18043 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18045 esac
18046 ;;
18047 esac
18048
18049 ac_dir=`$as_dirname -- "$ac_file" ||
18050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18051 X"$ac_file" : 'X\(//\)[^/]' \| \
18052 X"$ac_file" : 'X\(//\)$' \| \
18053 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18054 $as_echo X"$ac_file" |
18055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18056 s//\1/
18057 q
18058 }
18059 /^X\(\/\/\)[^/].*/{
18060 s//\1/
18061 q
18062 }
18063 /^X\(\/\/\)$/{
18064 s//\1/
18065 q
18066 }
18067 /^X\(\/\).*/{
18068 s//\1/
18069 q
18070 }
18071 s/.*/./; q'`
18072 as_dir="$ac_dir"; as_fn_mkdir_p
18073 ac_builddir=.
18074
18075 case "$ac_dir" in
18076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18077 *)
18078 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18079 # A ".." for each directory in $ac_dir_suffix.
18080 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18081 case $ac_top_builddir_sub in
18082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18084 esac ;;
18085 esac
18086 ac_abs_top_builddir=$ac_pwd
18087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18088 # for backward compatibility:
18089 ac_top_builddir=$ac_top_build_prefix
18090
18091 case $srcdir in
18092 .) # We are building in place.
18093 ac_srcdir=.
18094 ac_top_srcdir=$ac_top_builddir_sub
18095 ac_abs_top_srcdir=$ac_pwd ;;
18096 [\\/]* | ?:[\\/]* ) # Absolute name.
18097 ac_srcdir=$srcdir$ac_dir_suffix;
18098 ac_top_srcdir=$srcdir
18099 ac_abs_top_srcdir=$srcdir ;;
18100 *) # Relative name.
18101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18102 ac_top_srcdir=$ac_top_build_prefix$srcdir
18103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18104 esac
18105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18106
18107
18108 case $ac_mode in
18109 :F)
18110 #
18111 # CONFIG_FILE
18112 #
18113
18114 case $INSTALL in
18115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18116 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18117 esac
18118 ac_MKDIR_P=$MKDIR_P
18119 case $MKDIR_P in
18120 [\\/$]* | ?:[\\/]* ) ;;
18121 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18122 esac
18123 _ACEOF
18124
18125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18126 # If the template does not know about datarootdir, expand it.
18127 # FIXME: This hack should be removed a few years after 2.60.
18128 ac_datarootdir_hack=; ac_datarootdir_seen=
18129 ac_sed_dataroot='
18130 /datarootdir/ {
18131 p
18132 q
18133 }
18134 /@datadir@/p
18135 /@docdir@/p
18136 /@infodir@/p
18137 /@localedir@/p
18138 /@mandir@/p'
18139 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18140 *datarootdir*) ac_datarootdir_seen=yes;;
18141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18143 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18144 _ACEOF
18145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18146 ac_datarootdir_hack='
18147 s&@datadir@&$datadir&g
18148 s&@docdir@&$docdir&g
18149 s&@infodir@&$infodir&g
18150 s&@localedir@&$localedir&g
18151 s&@mandir@&$mandir&g
18152 s&\\\${datarootdir}&$datarootdir&g' ;;
18153 esac
18154 _ACEOF
18155
18156 # Neutralize VPATH when `$srcdir' = `.'.
18157 # Shell code in configure.ac might set extrasub.
18158 # FIXME: do we really want to maintain this feature?
18159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18160 ac_sed_extra="$ac_vpsub
18161 $extrasub
18162 _ACEOF
18163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18164 :t
18165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18166 s|@configure_input@|$ac_sed_conf_input|;t t
18167 s&@top_builddir@&$ac_top_builddir_sub&;t t
18168 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18169 s&@srcdir@&$ac_srcdir&;t t
18170 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18171 s&@top_srcdir@&$ac_top_srcdir&;t t
18172 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18173 s&@builddir@&$ac_builddir&;t t
18174 s&@abs_builddir@&$ac_abs_builddir&;t t
18175 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18176 s&@INSTALL@&$ac_INSTALL&;t t
18177 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18178 $ac_datarootdir_hack
18179 "
18180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18181 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18182
18183 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18184 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18185 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18186 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18188 which seems to be undefined. Please make sure it is defined" >&5
18189 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18190 which seems to be undefined. Please make sure it is defined" >&2;}
18191
18192 rm -f "$ac_tmp/stdin"
18193 case $ac_file in
18194 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18195 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18196 esac \
18197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18198 ;;
18199 :H)
18200 #
18201 # CONFIG_HEADER
18202 #
18203 if test x"$ac_file" != x-; then
18204 {
18205 $as_echo "/* $configure_input */" \
18206 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18207 } >"$ac_tmp/config.h" \
18208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18209 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18211 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18212 else
18213 rm -f "$ac_file"
18214 mv "$ac_tmp/config.h" "$ac_file" \
18215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18216 fi
18217 else
18218 $as_echo "/* $configure_input */" \
18219 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18220 || as_fn_error $? "could not create -" "$LINENO" 5
18221 fi
18222 # Compute "$ac_file"'s index in $config_headers.
18223 _am_arg="$ac_file"
18224 _am_stamp_count=1
18225 for _am_header in $config_headers :; do
18226 case $_am_header in
18227 $_am_arg | $_am_arg:* )
18228 break ;;
18229 * )
18230 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18231 esac
18232 done
18233 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18234 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18235 X"$_am_arg" : 'X\(//\)[^/]' \| \
18236 X"$_am_arg" : 'X\(//\)$' \| \
18237 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18238 $as_echo X"$_am_arg" |
18239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18240 s//\1/
18241 q
18242 }
18243 /^X\(\/\/\)[^/].*/{
18244 s//\1/
18245 q
18246 }
18247 /^X\(\/\/\)$/{
18248 s//\1/
18249 q
18250 }
18251 /^X\(\/\).*/{
18252 s//\1/
18253 q
18254 }
18255 s/.*/./; q'`/stamp-h$_am_stamp_count
18256 ;;
18257
18258 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18259 $as_echo "$as_me: executing $ac_file commands" >&6;}
18260 ;;
18261 esac
18262
18263
18264 case $ac_file$ac_mode in
18265 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18266 # Older Autoconf quotes --file arguments for eval, but not when files
18267 # are listed without --file. Let's play safe and only enable the eval
18268 # if we detect the quoting.
18269 case $CONFIG_FILES in
18270 *\'*) eval set x "$CONFIG_FILES" ;;
18271 *) set x $CONFIG_FILES ;;
18272 esac
18273 shift
18274 for mf
18275 do
18276 # Strip MF so we end up with the name of the file.
18277 mf=`echo "$mf" | sed -e 's/:.*$//'`
18278 # Check whether this is an Automake generated Makefile or not.
18279 # We used to match only the files named 'Makefile.in', but
18280 # some people rename them; so instead we look at the file content.
18281 # Grep'ing the first line is not enough: some people post-process
18282 # each Makefile.in and add a new line on top of each file to say so.
18283 # Grep'ing the whole file is not good either: AIX grep has a line
18284 # limit of 2048, but all sed's we know have understand at least 4000.
18285 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18286 dirpart=`$as_dirname -- "$mf" ||
18287 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18288 X"$mf" : 'X\(//\)[^/]' \| \
18289 X"$mf" : 'X\(//\)$' \| \
18290 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18291 $as_echo X"$mf" |
18292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18293 s//\1/
18294 q
18295 }
18296 /^X\(\/\/\)[^/].*/{
18297 s//\1/
18298 q
18299 }
18300 /^X\(\/\/\)$/{
18301 s//\1/
18302 q
18303 }
18304 /^X\(\/\).*/{
18305 s//\1/
18306 q
18307 }
18308 s/.*/./; q'`
18309 else
18310 continue
18311 fi
18312 # Extract the definition of DEPDIR, am__include, and am__quote
18313 # from the Makefile without running 'make'.
18314 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18315 test -z "$DEPDIR" && continue
18316 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18317 test -z "$am__include" && continue
18318 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18319 # Find all dependency output files, they are included files with
18320 # $(DEPDIR) in their names. We invoke sed twice because it is the
18321 # simplest approach to changing $(DEPDIR) to its actual value in the
18322 # expansion.
18323 for file in `sed -n "
18324 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18325 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18326 # Make sure the directory exists.
18327 test -f "$dirpart/$file" && continue
18328 fdir=`$as_dirname -- "$file" ||
18329 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18330 X"$file" : 'X\(//\)[^/]' \| \
18331 X"$file" : 'X\(//\)$' \| \
18332 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18333 $as_echo X"$file" |
18334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18335 s//\1/
18336 q
18337 }
18338 /^X\(\/\/\)[^/].*/{
18339 s//\1/
18340 q
18341 }
18342 /^X\(\/\/\)$/{
18343 s//\1/
18344 q
18345 }
18346 /^X\(\/\).*/{
18347 s//\1/
18348 q
18349 }
18350 s/.*/./; q'`
18351 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18352 # echo "creating $dirpart/$file"
18353 echo '# dummy' > "$dirpart/$file"
18354 done
18355 done
18356 }
18357 ;;
18358 "libtool":C)
18359
18360 # See if we are running on zsh, and set the options which allow our
18361 # commands through without removal of \ escapes.
18362 if test -n "${ZSH_VERSION+set}" ; then
18363 setopt NO_GLOB_SUBST
18364 fi
18365
18366 cfgfile="${ofile}T"
18367 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18368 $RM "$cfgfile"
18369
18370 cat <<_LT_EOF >> "$cfgfile"
18371 #! $SHELL
18372
18373 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18374 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18375 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18376 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18377 #
18378 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18379 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18380 # Written by Gordon Matzigkeit, 1996
18381 #
18382 # This file is part of GNU Libtool.
18383 #
18384 # GNU Libtool is free software; you can redistribute it and/or
18385 # modify it under the terms of the GNU General Public License as
18386 # published by the Free Software Foundation; either version 2 of
18387 # the License, or (at your option) any later version.
18388 #
18389 # As a special exception to the GNU General Public License,
18390 # if you distribute this file as part of a program or library that
18391 # is built using GNU Libtool, you may include this file under the
18392 # same distribution terms that you use for the rest of that program.
18393 #
18394 # GNU Libtool is distributed in the hope that it will be useful,
18395 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18396 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18397 # GNU General Public License for more details.
18398 #
18399 # You should have received a copy of the GNU General Public License
18400 # along with GNU Libtool; see the file COPYING. If not, a copy
18401 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18402 # obtained by writing to the Free Software Foundation, Inc.,
18403 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18404
18405
18406 # The names of the tagged configurations supported by this script.
18407 available_tags="CXX "
18408
18409 # ### BEGIN LIBTOOL CONFIG
18410
18411 # Whether or not to build shared libraries.
18412 build_libtool_libs=$enable_shared
18413
18414 # Which release of libtool.m4 was used?
18415 macro_version=$macro_version
18416 macro_revision=$macro_revision
18417
18418 # Whether or not to build static libraries.
18419 build_old_libs=$enable_static
18420
18421 # What type of objects to build.
18422 pic_mode=$pic_mode
18423
18424 # Whether or not to optimize for fast installation.
18425 fast_install=$enable_fast_install
18426
18427 # Shell to use when invoking shell scripts.
18428 SHELL=$lt_SHELL
18429
18430 # An echo program that protects backslashes.
18431 ECHO=$lt_ECHO
18432
18433 # The host system.
18434 host_alias=$host_alias
18435 host=$host
18436 host_os=$host_os
18437
18438 # The build system.
18439 build_alias=$build_alias
18440 build=$build
18441 build_os=$build_os
18442
18443 # A sed program that does not truncate output.
18444 SED=$lt_SED
18445
18446 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18447 Xsed="\$SED -e 1s/^X//"
18448
18449 # A grep program that handles long lines.
18450 GREP=$lt_GREP
18451
18452 # An ERE matcher.
18453 EGREP=$lt_EGREP
18454
18455 # A literal string matcher.
18456 FGREP=$lt_FGREP
18457
18458 # A BSD- or MS-compatible name lister.
18459 NM=$lt_NM
18460
18461 # Whether we need soft or hard links.
18462 LN_S=$lt_LN_S
18463
18464 # What is the maximum length of a command?
18465 max_cmd_len=$max_cmd_len
18466
18467 # Object file suffix (normally "o").
18468 objext=$ac_objext
18469
18470 # Executable file suffix (normally "").
18471 exeext=$exeext
18472
18473 # whether the shell understands "unset".
18474 lt_unset=$lt_unset
18475
18476 # turn spaces into newlines.
18477 SP2NL=$lt_lt_SP2NL
18478
18479 # turn newlines into spaces.
18480 NL2SP=$lt_lt_NL2SP
18481
18482 # An object symbol dumper.
18483 OBJDUMP=$lt_OBJDUMP
18484
18485 # Method to check whether dependent libraries are shared objects.
18486 deplibs_check_method=$lt_deplibs_check_method
18487
18488 # Command to use when deplibs_check_method == "file_magic".
18489 file_magic_cmd=$lt_file_magic_cmd
18490
18491 # The archiver.
18492 AR=$lt_AR
18493 AR_FLAGS=$lt_AR_FLAGS
18494
18495 # A symbol stripping program.
18496 STRIP=$lt_STRIP
18497
18498 # Commands used to install an old-style archive.
18499 RANLIB=$lt_RANLIB
18500 old_postinstall_cmds=$lt_old_postinstall_cmds
18501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18502
18503 # Whether to use a lock for old archive extraction.
18504 lock_old_archive_extraction=$lock_old_archive_extraction
18505
18506 # A C compiler.
18507 LTCC=$lt_CC
18508
18509 # LTCC compiler flags.
18510 LTCFLAGS=$lt_CFLAGS
18511
18512 # Take the output of nm and produce a listing of raw symbols and C names.
18513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18514
18515 # Transform the output of nm in a proper C declaration.
18516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18517
18518 # Transform the output of nm in a C name address pair.
18519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18520
18521 # Transform the output of nm in a C name address pair when lib prefix is needed.
18522 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18523
18524 # The name of the directory that contains temporary libtool files.
18525 objdir=$objdir
18526
18527 # Used to examine libraries when file_magic_cmd begins with "file".
18528 MAGIC_CMD=$MAGIC_CMD
18529
18530 # Must we lock files when doing compilation?
18531 need_locks=$lt_need_locks
18532
18533 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18534 DSYMUTIL=$lt_DSYMUTIL
18535
18536 # Tool to change global to local symbols on Mac OS X.
18537 NMEDIT=$lt_NMEDIT
18538
18539 # Tool to manipulate fat objects and archives on Mac OS X.
18540 LIPO=$lt_LIPO
18541
18542 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18543 OTOOL=$lt_OTOOL
18544
18545 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18546 OTOOL64=$lt_OTOOL64
18547
18548 # Old archive suffix (normally "a").
18549 libext=$libext
18550
18551 # Shared library suffix (normally ".so").
18552 shrext_cmds=$lt_shrext_cmds
18553
18554 # The commands to extract the exported symbol list from a shared archive.
18555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18556
18557 # Variables whose values should be saved in libtool wrapper scripts and
18558 # restored at link time.
18559 variables_saved_for_relink=$lt_variables_saved_for_relink
18560
18561 # Do we need the "lib" prefix for modules?
18562 need_lib_prefix=$need_lib_prefix
18563
18564 # Do we need a version for libraries?
18565 need_version=$need_version
18566
18567 # Library versioning type.
18568 version_type=$version_type
18569
18570 # Shared library runtime path variable.
18571 runpath_var=$runpath_var
18572
18573 # Shared library path variable.
18574 shlibpath_var=$shlibpath_var
18575
18576 # Is shlibpath searched before the hard-coded library search path?
18577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18578
18579 # Format of library name prefix.
18580 libname_spec=$lt_libname_spec
18581
18582 # List of archive names. First name is the real one, the rest are links.
18583 # The last name is the one that the linker finds with -lNAME
18584 library_names_spec=$lt_library_names_spec
18585
18586 # The coded name of the library, if different from the real name.
18587 soname_spec=$lt_soname_spec
18588
18589 # Permission mode override for installation of shared libraries.
18590 install_override_mode=$lt_install_override_mode
18591
18592 # Command to use after installation of a shared archive.
18593 postinstall_cmds=$lt_postinstall_cmds
18594
18595 # Command to use after uninstallation of a shared archive.
18596 postuninstall_cmds=$lt_postuninstall_cmds
18597
18598 # Commands used to finish a libtool library installation in a directory.
18599 finish_cmds=$lt_finish_cmds
18600
18601 # As "finish_cmds", except a single script fragment to be evaled but
18602 # not shown.
18603 finish_eval=$lt_finish_eval
18604
18605 # Whether we should hardcode library paths into libraries.
18606 hardcode_into_libs=$hardcode_into_libs
18607
18608 # Compile-time system search path for libraries.
18609 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18610
18611 # Run-time system search path for libraries.
18612 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18613
18614 # Whether dlopen is supported.
18615 dlopen_support=$enable_dlopen
18616
18617 # Whether dlopen of programs is supported.
18618 dlopen_self=$enable_dlopen_self
18619
18620 # Whether dlopen of statically linked programs is supported.
18621 dlopen_self_static=$enable_dlopen_self_static
18622
18623 # Commands to strip libraries.
18624 old_striplib=$lt_old_striplib
18625 striplib=$lt_striplib
18626
18627
18628 # The linker used to build libraries.
18629 LD=$lt_LD
18630
18631 # How to create reloadable object files.
18632 reload_flag=$lt_reload_flag
18633 reload_cmds=$lt_reload_cmds
18634
18635 # Commands used to build an old-style archive.
18636 old_archive_cmds=$lt_old_archive_cmds
18637
18638 # A language specific compiler.
18639 CC=$lt_compiler
18640
18641 # Is the compiler the GNU compiler?
18642 with_gcc=$GCC
18643
18644 # Compiler flag to turn off builtin functions.
18645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18646
18647 # How to pass a linker flag through the compiler.
18648 wl=$lt_lt_prog_compiler_wl
18649
18650 # Additional compiler flags for building library objects.
18651 pic_flag=$lt_lt_prog_compiler_pic
18652
18653 # Compiler flag to prevent dynamic linking.
18654 link_static_flag=$lt_lt_prog_compiler_static
18655
18656 # Does compiler simultaneously support -c and -o options?
18657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18658
18659 # Whether or not to add -lc for building shared libraries.
18660 build_libtool_need_lc=$archive_cmds_need_lc
18661
18662 # Whether or not to disallow shared libs when runtime libs are static.
18663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18664
18665 # Compiler flag to allow reflexive dlopens.
18666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18667
18668 # Compiler flag to generate shared objects directly from archives.
18669 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18670
18671 # Whether the compiler copes with passing no objects directly.
18672 compiler_needs_object=$lt_compiler_needs_object
18673
18674 # Create an old-style archive from a shared archive.
18675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18676
18677 # Create a temporary old-style archive to link instead of a shared archive.
18678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18679
18680 # Commands used to build a shared archive.
18681 archive_cmds=$lt_archive_cmds
18682 archive_expsym_cmds=$lt_archive_expsym_cmds
18683
18684 # Commands used to build a loadable module if different from building
18685 # a shared archive.
18686 module_cmds=$lt_module_cmds
18687 module_expsym_cmds=$lt_module_expsym_cmds
18688
18689 # Whether we are building with GNU ld or not.
18690 with_gnu_ld=$lt_with_gnu_ld
18691
18692 # Flag that allows shared libraries with undefined symbols to be built.
18693 allow_undefined_flag=$lt_allow_undefined_flag
18694
18695 # Flag that enforces no undefined symbols.
18696 no_undefined_flag=$lt_no_undefined_flag
18697
18698 # Flag to hardcode \$libdir into a binary during linking.
18699 # This must work even if \$libdir does not exist
18700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18701
18702 # If ld is used when linking, flag to hardcode \$libdir into a binary
18703 # during linking. This must work even if \$libdir does not exist.
18704 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18705
18706 # Whether we need a single "-rpath" flag with a separated argument.
18707 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18708
18709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18710 # DIR into the resulting binary.
18711 hardcode_direct=$hardcode_direct
18712
18713 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18714 # DIR into the resulting binary and the resulting library dependency is
18715 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18716 # library is relocated.
18717 hardcode_direct_absolute=$hardcode_direct_absolute
18718
18719 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18720 # into the resulting binary.
18721 hardcode_minus_L=$hardcode_minus_L
18722
18723 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18724 # into the resulting binary.
18725 hardcode_shlibpath_var=$hardcode_shlibpath_var
18726
18727 # Set to "yes" if building a shared library automatically hardcodes DIR
18728 # into the library and all subsequent libraries and executables linked
18729 # against it.
18730 hardcode_automatic=$hardcode_automatic
18731
18732 # Set to yes if linker adds runtime paths of dependent libraries
18733 # to runtime path list.
18734 inherit_rpath=$inherit_rpath
18735
18736 # Whether libtool must link a program against all its dependency libraries.
18737 link_all_deplibs=$link_all_deplibs
18738
18739 # Fix the shell variable \$srcfile for the compiler.
18740 fix_srcfile_path=$lt_fix_srcfile_path
18741
18742 # Set to "yes" if exported symbols are required.
18743 always_export_symbols=$always_export_symbols
18744
18745 # The commands to list exported symbols.
18746 export_symbols_cmds=$lt_export_symbols_cmds
18747
18748 # Symbols that should not be listed in the preloaded symbols.
18749 exclude_expsyms=$lt_exclude_expsyms
18750
18751 # Symbols that must always be exported.
18752 include_expsyms=$lt_include_expsyms
18753
18754 # Commands necessary for linking programs (against libraries) with templates.
18755 prelink_cmds=$lt_prelink_cmds
18756
18757 # Specify filename containing input files.
18758 file_list_spec=$lt_file_list_spec
18759
18760 # How to hardcode a shared library path into an executable.
18761 hardcode_action=$hardcode_action
18762
18763 # The directories searched by this compiler when creating a shared library.
18764 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18765
18766 # Dependencies to place before and after the objects being linked to
18767 # create a shared library.
18768 predep_objects=$lt_predep_objects
18769 postdep_objects=$lt_postdep_objects
18770 predeps=$lt_predeps
18771 postdeps=$lt_postdeps
18772
18773 # The library search path used internally by the compiler when linking
18774 # a shared library.
18775 compiler_lib_search_path=$lt_compiler_lib_search_path
18776
18777 # ### END LIBTOOL CONFIG
18778
18779 _LT_EOF
18780
18781 case $host_os in
18782 aix3*)
18783 cat <<\_LT_EOF >> "$cfgfile"
18784 # AIX sometimes has problems with the GCC collect2 program. For some
18785 # reason, if we set the COLLECT_NAMES environment variable, the problems
18786 # vanish in a puff of smoke.
18787 if test "X${COLLECT_NAMES+set}" != Xset; then
18788 COLLECT_NAMES=
18789 export COLLECT_NAMES
18790 fi
18791 _LT_EOF
18792 ;;
18793 esac
18794
18795
18796 ltmain="$ac_aux_dir/ltmain.sh"
18797
18798
18799 # We use sed instead of cat because bash on DJGPP gets confused if
18800 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18801 # text mode, it properly converts lines to CR/LF. This bash problem
18802 # is reportedly fixed, but why not run on old versions too?
18803 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18804 || (rm -f "$cfgfile"; exit 1)
18805
18806 case $xsi_shell in
18807 yes)
18808 cat << \_LT_EOF >> "$cfgfile"
18809
18810 # func_dirname file append nondir_replacement
18811 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18812 # otherwise set result to NONDIR_REPLACEMENT.
18813 func_dirname ()
18814 {
18815 case ${1} in
18816 */*) func_dirname_result="${1%/*}${2}" ;;
18817 * ) func_dirname_result="${3}" ;;
18818 esac
18819 }
18820
18821 # func_basename file
18822 func_basename ()
18823 {
18824 func_basename_result="${1##*/}"
18825 }
18826
18827 # func_dirname_and_basename file append nondir_replacement
18828 # perform func_basename and func_dirname in a single function
18829 # call:
18830 # dirname: Compute the dirname of FILE. If nonempty,
18831 # add APPEND to the result, otherwise set result
18832 # to NONDIR_REPLACEMENT.
18833 # value returned in "$func_dirname_result"
18834 # basename: Compute filename of FILE.
18835 # value retuned in "$func_basename_result"
18836 # Implementation must be kept synchronized with func_dirname
18837 # and func_basename. For efficiency, we do not delegate to
18838 # those functions but instead duplicate the functionality here.
18839 func_dirname_and_basename ()
18840 {
18841 case ${1} in
18842 */*) func_dirname_result="${1%/*}${2}" ;;
18843 * ) func_dirname_result="${3}" ;;
18844 esac
18845 func_basename_result="${1##*/}"
18846 }
18847
18848 # func_stripname prefix suffix name
18849 # strip PREFIX and SUFFIX off of NAME.
18850 # PREFIX and SUFFIX must not contain globbing or regex special
18851 # characters, hashes, percent signs, but SUFFIX may contain a leading
18852 # dot (in which case that matches only a dot).
18853 func_stripname ()
18854 {
18855 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18856 # positional parameters, so assign one to ordinary parameter first.
18857 func_stripname_result=${3}
18858 func_stripname_result=${func_stripname_result#"${1}"}
18859 func_stripname_result=${func_stripname_result%"${2}"}
18860 }
18861
18862 # func_opt_split
18863 func_opt_split ()
18864 {
18865 func_opt_split_opt=${1%%=*}
18866 func_opt_split_arg=${1#*=}
18867 }
18868
18869 # func_lo2o object
18870 func_lo2o ()
18871 {
18872 case ${1} in
18873 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18874 *) func_lo2o_result=${1} ;;
18875 esac
18876 }
18877
18878 # func_xform libobj-or-source
18879 func_xform ()
18880 {
18881 func_xform_result=${1%.*}.lo
18882 }
18883
18884 # func_arith arithmetic-term...
18885 func_arith ()
18886 {
18887 func_arith_result=$(( $* ))
18888 }
18889
18890 # func_len string
18891 # STRING may not start with a hyphen.
18892 func_len ()
18893 {
18894 func_len_result=${#1}
18895 }
18896
18897 _LT_EOF
18898 ;;
18899 *) # Bourne compatible functions.
18900 cat << \_LT_EOF >> "$cfgfile"
18901
18902 # func_dirname file append nondir_replacement
18903 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18904 # otherwise set result to NONDIR_REPLACEMENT.
18905 func_dirname ()
18906 {
18907 # Extract subdirectory from the argument.
18908 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18909 if test "X$func_dirname_result" = "X${1}"; then
18910 func_dirname_result="${3}"
18911 else
18912 func_dirname_result="$func_dirname_result${2}"
18913 fi
18914 }
18915
18916 # func_basename file
18917 func_basename ()
18918 {
18919 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18920 }
18921
18922
18923 # func_stripname prefix suffix name
18924 # strip PREFIX and SUFFIX off of NAME.
18925 # PREFIX and SUFFIX must not contain globbing or regex special
18926 # characters, hashes, percent signs, but SUFFIX may contain a leading
18927 # dot (in which case that matches only a dot).
18928 # func_strip_suffix prefix name
18929 func_stripname ()
18930 {
18931 case ${2} in
18932 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18933 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18934 esac
18935 }
18936
18937 # sed scripts:
18938 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18939 my_sed_long_arg='1s/^-[^=]*=//'
18940
18941 # func_opt_split
18942 func_opt_split ()
18943 {
18944 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18945 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18946 }
18947
18948 # func_lo2o object
18949 func_lo2o ()
18950 {
18951 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18952 }
18953
18954 # func_xform libobj-or-source
18955 func_xform ()
18956 {
18957 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18958 }
18959
18960 # func_arith arithmetic-term...
18961 func_arith ()
18962 {
18963 func_arith_result=`expr "$@"`
18964 }
18965
18966 # func_len string
18967 # STRING may not start with a hyphen.
18968 func_len ()
18969 {
18970 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18971 }
18972
18973 _LT_EOF
18974 esac
18975
18976 case $lt_shell_append in
18977 yes)
18978 cat << \_LT_EOF >> "$cfgfile"
18979
18980 # func_append var value
18981 # Append VALUE to the end of shell variable VAR.
18982 func_append ()
18983 {
18984 eval "$1+=\$2"
18985 }
18986 _LT_EOF
18987 ;;
18988 *)
18989 cat << \_LT_EOF >> "$cfgfile"
18990
18991 # func_append var value
18992 # Append VALUE to the end of shell variable VAR.
18993 func_append ()
18994 {
18995 eval "$1=\$$1\$2"
18996 }
18997
18998 _LT_EOF
18999 ;;
19000 esac
19001
19002
19003 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19004 || (rm -f "$cfgfile"; exit 1)
19005
19006 mv -f "$cfgfile" "$ofile" ||
19007 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19008 chmod +x "$ofile"
19009
19010
19011 cat <<_LT_EOF >> "$ofile"
19012
19013 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19014
19015 # The linker used to build libraries.
19016 LD=$lt_LD_CXX
19017
19018 # How to create reloadable object files.
19019 reload_flag=$lt_reload_flag_CXX
19020 reload_cmds=$lt_reload_cmds_CXX
19021
19022 # Commands used to build an old-style archive.
19023 old_archive_cmds=$lt_old_archive_cmds_CXX
19024
19025 # A language specific compiler.
19026 CC=$lt_compiler_CXX
19027
19028 # Is the compiler the GNU compiler?
19029 with_gcc=$GCC_CXX
19030
19031 # Compiler flag to turn off builtin functions.
19032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19033
19034 # How to pass a linker flag through the compiler.
19035 wl=$lt_lt_prog_compiler_wl_CXX
19036
19037 # Additional compiler flags for building library objects.
19038 pic_flag=$lt_lt_prog_compiler_pic_CXX
19039
19040 # Compiler flag to prevent dynamic linking.
19041 link_static_flag=$lt_lt_prog_compiler_static_CXX
19042
19043 # Does compiler simultaneously support -c and -o options?
19044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19045
19046 # Whether or not to add -lc for building shared libraries.
19047 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19048
19049 # Whether or not to disallow shared libs when runtime libs are static.
19050 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19051
19052 # Compiler flag to allow reflexive dlopens.
19053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19054
19055 # Compiler flag to generate shared objects directly from archives.
19056 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19057
19058 # Whether the compiler copes with passing no objects directly.
19059 compiler_needs_object=$lt_compiler_needs_object_CXX
19060
19061 # Create an old-style archive from a shared archive.
19062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19063
19064 # Create a temporary old-style archive to link instead of a shared archive.
19065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19066
19067 # Commands used to build a shared archive.
19068 archive_cmds=$lt_archive_cmds_CXX
19069 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19070
19071 # Commands used to build a loadable module if different from building
19072 # a shared archive.
19073 module_cmds=$lt_module_cmds_CXX
19074 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19075
19076 # Whether we are building with GNU ld or not.
19077 with_gnu_ld=$lt_with_gnu_ld_CXX
19078
19079 # Flag that allows shared libraries with undefined symbols to be built.
19080 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19081
19082 # Flag that enforces no undefined symbols.
19083 no_undefined_flag=$lt_no_undefined_flag_CXX
19084
19085 # Flag to hardcode \$libdir into a binary during linking.
19086 # This must work even if \$libdir does not exist
19087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19088
19089 # If ld is used when linking, flag to hardcode \$libdir into a binary
19090 # during linking. This must work even if \$libdir does not exist.
19091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19092
19093 # Whether we need a single "-rpath" flag with a separated argument.
19094 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19095
19096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19097 # DIR into the resulting binary.
19098 hardcode_direct=$hardcode_direct_CXX
19099
19100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19101 # DIR into the resulting binary and the resulting library dependency is
19102 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19103 # library is relocated.
19104 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19105
19106 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19107 # into the resulting binary.
19108 hardcode_minus_L=$hardcode_minus_L_CXX
19109
19110 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19111 # into the resulting binary.
19112 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19113
19114 # Set to "yes" if building a shared library automatically hardcodes DIR
19115 # into the library and all subsequent libraries and executables linked
19116 # against it.
19117 hardcode_automatic=$hardcode_automatic_CXX
19118
19119 # Set to yes if linker adds runtime paths of dependent libraries
19120 # to runtime path list.
19121 inherit_rpath=$inherit_rpath_CXX
19122
19123 # Whether libtool must link a program against all its dependency libraries.
19124 link_all_deplibs=$link_all_deplibs_CXX
19125
19126 # Fix the shell variable \$srcfile for the compiler.
19127 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19128
19129 # Set to "yes" if exported symbols are required.
19130 always_export_symbols=$always_export_symbols_CXX
19131
19132 # The commands to list exported symbols.
19133 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19134
19135 # Symbols that should not be listed in the preloaded symbols.
19136 exclude_expsyms=$lt_exclude_expsyms_CXX
19137
19138 # Symbols that must always be exported.
19139 include_expsyms=$lt_include_expsyms_CXX
19140
19141 # Commands necessary for linking programs (against libraries) with templates.
19142 prelink_cmds=$lt_prelink_cmds_CXX
19143
19144 # Specify filename containing input files.
19145 file_list_spec=$lt_file_list_spec_CXX
19146
19147 # How to hardcode a shared library path into an executable.
19148 hardcode_action=$hardcode_action_CXX
19149
19150 # The directories searched by this compiler when creating a shared library.
19151 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19152
19153 # Dependencies to place before and after the objects being linked to
19154 # create a shared library.
19155 predep_objects=$lt_predep_objects_CXX
19156 postdep_objects=$lt_postdep_objects_CXX
19157 predeps=$lt_predeps_CXX
19158 postdeps=$lt_postdeps_CXX
19159
19160 # The library search path used internally by the compiler when linking
19161 # a shared library.
19162 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19163
19164 # ### END LIBTOOL TAG CONFIG: CXX
19165 _LT_EOF
19166
19167 ;;
19168
19169 esac
19170 done # for ac_tag
19171
19172
19173 as_fn_exit 0
19174 _ACEOF
19175 ac_clean_files=$ac_clean_files_save
19176
19177 test $ac_write_fail = 0 ||
19178 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19179
19180
19181 # configure is writing to config.log, and then calls config.status.
19182 # config.status does its own redirection, appending to config.log.
19183 # Unfortunately, on DOS this fails, as config.log is still kept open
19184 # by configure, so config.status won't be able to write to it; its
19185 # output is simply discarded. So we exec the FD to /dev/null,
19186 # effectively closing config.log, so it can be properly (re)opened and
19187 # appended to by config.status. When coming back to configure, we
19188 # need to make the FD available again.
19189 if test "$no_create" != yes; then
19190 ac_cs_success=:
19191 ac_config_status_args=
19192 test "$silent" = yes &&
19193 ac_config_status_args="$ac_config_status_args --quiet"
19194 exec 5>/dev/null
19195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19196 exec 5>>config.log
19197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19198 # would make configure fail if this is the last instruction.
19199 $ac_cs_success || as_fn_exit 1
19200 fi
19201
19202 #
19203 # CONFIG_SUBDIRS section.
19204 #
19205 if test "$no_recursion" != yes; then
19206
19207 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19208 # so they do not pile up.
19209 ac_sub_configure_args=
19210 ac_prev=
19211 eval "set x $ac_configure_args"
19212 shift
19213 for ac_arg
19214 do
19215 if test -n "$ac_prev"; then
19216 ac_prev=
19217 continue
19218 fi
19219 case $ac_arg in
19220 -cache-file | --cache-file | --cache-fil | --cache-fi \
19221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19222 ac_prev=cache_file ;;
19223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19225 | --c=*)
19226 ;;
19227 --config-cache | -C)
19228 ;;
19229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19230 ac_prev=srcdir ;;
19231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19232 ;;
19233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19234 ac_prev=prefix ;;
19235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19236 ;;
19237 --disable-option-checking)
19238 ;;
19239 *)
19240 case $ac_arg in
19241 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19242 esac
19243 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19244 esac
19245 done
19246
19247 # Always prepend --prefix to ensure using the same prefix
19248 # in subdir configurations.
19249 ac_arg="--prefix=$prefix"
19250 case $ac_arg in
19251 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19252 esac
19253 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19254
19255 # Pass --silent
19256 if test "$silent" = yes; then
19257 ac_sub_configure_args="--silent $ac_sub_configure_args"
19258 fi
19259
19260 # Always prepend --disable-option-checking to silence warnings, since
19261 # different subdirs can have different --enable and --with options.
19262 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19263
19264 ac_popdir=`pwd`
19265 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19266
19267 # Do not complain, so a configure script can configure whichever
19268 # parts of a large source tree are present.
19269 test -d "$srcdir/$ac_dir" || continue
19270
19271 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19272 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19273 $as_echo "$ac_msg" >&6
19274 as_dir="$ac_dir"; as_fn_mkdir_p
19275 ac_builddir=.
19276
19277 case "$ac_dir" in
19278 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19279 *)
19280 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19281 # A ".." for each directory in $ac_dir_suffix.
19282 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19283 case $ac_top_builddir_sub in
19284 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19285 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19286 esac ;;
19287 esac
19288 ac_abs_top_builddir=$ac_pwd
19289 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19290 # for backward compatibility:
19291 ac_top_builddir=$ac_top_build_prefix
19292
19293 case $srcdir in
19294 .) # We are building in place.
19295 ac_srcdir=.
19296 ac_top_srcdir=$ac_top_builddir_sub
19297 ac_abs_top_srcdir=$ac_pwd ;;
19298 [\\/]* | ?:[\\/]* ) # Absolute name.
19299 ac_srcdir=$srcdir$ac_dir_suffix;
19300 ac_top_srcdir=$srcdir
19301 ac_abs_top_srcdir=$srcdir ;;
19302 *) # Relative name.
19303 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19304 ac_top_srcdir=$ac_top_build_prefix$srcdir
19305 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19306 esac
19307 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19308
19309
19310 cd "$ac_dir"
19311
19312 # Check for guested configure; otherwise get Cygnus style configure.
19313 if test -f "$ac_srcdir/configure.gnu"; then
19314 ac_sub_configure=$ac_srcdir/configure.gnu
19315 elif test -f "$ac_srcdir/configure"; then
19316 ac_sub_configure=$ac_srcdir/configure
19317 elif test -f "$ac_srcdir/configure.in"; then
19318 # This should be Cygnus configure.
19319 ac_sub_configure=$ac_aux_dir/configure
19320 else
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19322 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19323 ac_sub_configure=
19324 fi
19325
19326 # The recursion is here.
19327 if test -n "$ac_sub_configure"; then
19328 # Make the cache file name correct relative to the subdirectory.
19329 case $cache_file in
19330 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19331 *) # Relative name.
19332 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19333 esac
19334
19335 { $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
19336 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19337 # The eval makes quoting arguments work.
19338 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19339 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19340 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19341 fi
19342
19343 cd "$ac_popdir"
19344 done
19345 fi
19346 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19348 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19349 fi
19350
19351