Bump date stamp to 20130514
[official-gcc.git] / libgupc / configure
blob6715e5c5a103c0d67f97d98aa95cbc69027be84d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU UPC Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU UPC Runtime Library'
558 PACKAGE_TARNAME='libgupc'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU UPC Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgupc/'
564 ac_unique_file="include/upc.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBGUPC_NODE_LOCAL_MEM_MMAP_FALSE
605 LIBGUPC_NODE_LOCAL_MEM_MMAP_TRUE
606 LIBGUPC_NODE_LOCAL_MEM_POSIX_FALSE
607 LIBGUPC_NODE_LOCAL_MEM_POSIX_TRUE
608 LIBGUPC_BACKTRACE_SUP_FALSE
609 LIBGUPC_BACKTRACE_SUP_TRUE
610 LIBGUPC_BACKTRACE_FALSE
611 LIBGUPC_BACKTRACE_TRUE
612 LIBGUPC_GUM_FALSE
613 LIBGUPC_GUM_TRUE
614 LIBGUPC_NUMA_FALSE
615 LIBGUPC_NUMA_TRUE
616 LIBGUPC_AFFINITY_FALSE
617 LIBGUPC_AFFINITY_TRUE
618 LIBGUPC_PTHREADS_FALSE
619 LIBGUPC_PTHREADS_TRUE
620 LIBGUPC_GENERIC_COLLECTIVES_FALSE
621 LIBGUPC_GENERIC_COLLECTIVES_TRUE
622 LIBGUPC_LINK_SCRIPT_FALSE
623 LIBGUPC_LINK_SCRIPT_TRUE
624 LIBGUPC_CRTSTUFF_FALSE
625 LIBGUPC_CRTSTUFF_TRUE
626 LIBGUPC_RUNTIME_DEBUG_FALSE
627 LIBGUPC_RUNTIME_DEBUG_TRUE
628 LIBGUPC_PORTALS4_RUNTIME_FALSE
629 LIBGUPC_PORTALS4_RUNTIME_TRUE
630 LIBGUPC_SMP_RUNTIME_FALSE
631 LIBGUPC_SMP_RUNTIME_TRUE
632 upc_crtstuff_objs
633 upc_crtstuff_mak
634 upc_crtend_spec
635 upc_crtbegin_spec
636 upc_crtstuff_cflags
637 link_upc_spec
638 XLDFLAGS
639 XCFLAGS
640 bfdinc
641 config_path
642 portals4inc
643 portals4libs
644 PATH_TO_GDB
645 DOXYGEN_DATE
646 DOXYGEN_DATETIME
647 DOXYGEN_AUTHOR
648 DOXYGEN_TITLE
649 DOXYGEN_LOGO
650 DOXYGEN_HTML_LOGO
651 DOXYGEN_PAPER_SIZE
652 DX_COND_latex_FALSE
653 DX_COND_latex_TRUE
654 DX_COND_pdf_FALSE
655 DX_COND_pdf_TRUE
656 DX_PDFLATEX
657 DX_FLAG_pdf
658 DX_COND_ps_FALSE
659 DX_COND_ps_TRUE
660 DX_EGREP
661 DX_DVIPS
662 DX_MAKEINDEX
663 DX_LATEX
664 DX_FLAG_ps
665 DX_COND_html_FALSE
666 DX_COND_html_TRUE
667 DX_FLAG_html
668 DX_COND_chi_FALSE
669 DX_COND_chi_TRUE
670 DX_FLAG_chi
671 DX_COND_chm_FALSE
672 DX_COND_chm_TRUE
673 DX_HHC
674 DX_FLAG_chm
675 DX_COND_xml_FALSE
676 DX_COND_xml_TRUE
677 DX_FLAG_xml
678 DX_COND_rtf_FALSE
679 DX_COND_rtf_TRUE
680 DX_FLAG_rtf
681 DX_COND_man_FALSE
682 DX_COND_man_TRUE
683 DX_FLAG_man
684 HAVE_DOT
685 DX_COND_dot_FALSE
686 DX_COND_dot_TRUE
687 DX_DOT
688 DX_FLAG_dot
689 DOXYGEN_VERSION
690 DX_COND_doc_FALSE
691 DX_COND_doc_TRUE
692 DX_FILE
693 DX_PERL
694 DX_DOXYGEN
695 DX_FLAG_doc
696 DX_ENV
697 DX_DOCDIR
698 DX_CONFIG
699 DX_PROJECT
700 enable_upc_runtime_debug
701 LIBGUPC_BUILD_VERSIONED_SHLIB_FALSE
702 LIBGUPC_BUILD_VERSIONED_SHLIB_TRUE
703 OPT_LDFLAGS
704 SECTION_LDFLAGS
705 LIBOBJS
706 libtool_VERSION
707 MAINT
708 MAINTAINER_MODE_FALSE
709 MAINTAINER_MODE_TRUE
711 OTOOL64
712 OTOOL
713 LIPO
714 NMEDIT
715 DSYMUTIL
716 OBJDUMP
717 LN_S
719 ac_ct_DUMPBIN
720 DUMPBIN
722 FGREP
723 EGREP
724 GREP
726 LIBTOOL
727 BUILD_INFO_FALSE
728 BUILD_INFO_TRUE
729 ADDR2LINE
730 PERL
731 RANLIB
733 am__fastdepUPC_FALSE
734 am__fastdepUPC_TRUE
735 UPCDEPMODE
736 ac_ct_UPC
738 UPCFLAGS
739 am__fastdepCC_FALSE
740 am__fastdepCC_TRUE
741 CCDEPMODE
742 AMDEPBACKSLASH
743 AMDEP_FALSE
744 AMDEP_TRUE
745 am__quote
746 am__include
747 DEPDIR
748 OBJEXT
749 EXEEXT
750 ac_ct_CC
751 CPPFLAGS
752 LDFLAGS
753 CFLAGS
755 toolexeclibdir
756 toolexecdir
757 multi_basedir
758 am__untar
759 am__tar
760 AMTAR
761 am__leading_dot
762 SET_MAKE
764 mkdir_p
765 MKDIR_P
766 INSTALL_STRIP_PROGRAM
767 STRIP
768 install_sh
769 MAKEINFO
770 AUTOHEADER
771 AUTOMAKE
772 AUTOCONF
773 ACLOCAL
774 VERSION
775 PACKAGE
776 CYGPATH_W
777 am__isrc
778 INSTALL_DATA
779 INSTALL_SCRIPT
780 INSTALL_PROGRAM
781 target_os
782 target_vendor
783 target_cpu
784 target
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 GENINSRC_FALSE
794 GENINSRC_TRUE
795 target_alias
796 host_alias
797 build_alias
798 LIBS
799 ECHO_T
800 ECHO_N
801 ECHO_C
802 DEFS
803 mandir
804 localedir
805 libdir
806 psdir
807 pdfdir
808 dvidir
809 htmldir
810 infodir
811 docdir
812 oldincludedir
813 includedir
814 localstatedir
815 sharedstatedir
816 sysconfdir
817 datadir
818 datarootdir
819 libexecdir
820 sbindir
821 bindir
822 program_transform_name
823 prefix
824 exec_prefix
825 PACKAGE_URL
826 PACKAGE_BUGREPORT
827 PACKAGE_STRING
828 PACKAGE_VERSION
829 PACKAGE_TARNAME
830 PACKAGE_NAME
831 PATH_SEPARATOR
832 SHELL'
833 ac_subst_files=''
834 ac_user_opts='
835 enable_option_checking
836 enable_version_specific_runtime_libs
837 enable_generated_files_in_srcdir
838 enable_multilib
839 enable_dependency_tracking
840 enable_shared
841 enable_static
842 with_pic
843 enable_fast_install
844 with_gnu_ld
845 enable_libtool_lock
846 enable_maintainer_mode
847 enable_largefile
848 enable_linux_futex
849 enable_tls
850 enable_symvers
851 with_upc_runtime
852 enable_upc_runtime_checks
853 enable_upc_runtime_stats
854 enable_upc_runtime_trace
855 enable_upc_runtime_debug
856 enable_upc_link_script
857 with_upc_runtime_tree_fanout
858 enable_upc_gum_debug
859 enable_doxygen_doc
860 enable_doxygen_dot
861 enable_doxygen_man
862 enable_doxygen_rtf
863 enable_doxygen_xml
864 enable_doxygen_chm
865 enable_doxygen_chi
866 enable_doxygen_html
867 enable_doxygen_ps
868 enable_doxygen_pdf
869 enable_upc_backtrace
870 enable_upc_backtrace_gdb
871 with_upc_backtrace_gdb
872 enable_upc_backtrace_signal
873 with_upc_backtrace_signal
874 with_bfd
875 with_bfd_include
876 with_bfd_lib
877 with_upc_runtime_max_locks
878 with_portals4
879 with_portals4_include
880 with_portals4_lib
881 with_upc_runtime_pte_base
882 with_upc_runtime_bounce_buffer_size
883 with_upc_max_outstanding_puts
884 enable_upc_runtime_triggered_ops
885 enable_upc_node_local_mem
886 with_upc_node_local_mem
887 with_upc_job_launcher
888 with_upc_memory_page_size
890 ac_precious_vars='build_alias
891 host_alias
892 target_alias
894 UPCFLAGS
896 CPPFLAGS
897 DOXYGEN_PAPER_SIZE
898 DOXYGEN_HTML_LOGO
899 DOXYGEN_LOGO
900 DOXYGEN_TITLE
901 DOXYGEN_AUTHOR
902 DOXYGEN_DATETIME
903 DOXYGEN_DATE'
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 ac_unrecognized_opts=
910 ac_unrecognized_sep=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945 infodir='${datarootdir}/info'
946 htmldir='${docdir}'
947 dvidir='${docdir}'
948 pdfdir='${docdir}'
949 psdir='${docdir}'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
954 ac_prev=
955 ac_dashdash=
956 for ac_option
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\$ac_option
961 ac_prev=
962 continue
965 case $ac_option in
966 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 *) ac_optarg=yes ;;
968 esac
970 # Accept the important Cygnus configure options, so we can diagnose typos.
972 case $ac_dashdash$ac_option in
974 ac_dashdash=yes ;;
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
993 --config-cache | -C)
994 cache_file=config.cache ;;
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error "invalid feature name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
1197 sbindir=$ac_optarg ;;
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
1208 sharedstatedir=$ac_optarg ;;
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
1213 site=$ac_optarg ;;
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1238 -with-* | --with-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=\$ac_optarg ;;
1254 -without-* | --without-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279 x_includes=$ac_optarg ;;
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286 x_libraries=$ac_optarg ;;
1288 -*) as_fn_error "unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information."
1292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
1297 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1298 esac
1299 eval $ac_envvar=\$ac_optarg
1300 export $ac_envvar ;;
1303 # FIXME: should be removed in autoconf 3.0.
1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310 esac
1311 done
1313 if test -n "$ac_prev"; then
1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315 as_fn_error "missing argument to $ac_option"
1318 if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1320 no) ;;
1321 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1326 # Check all directory arguments for consistency.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
1332 eval ac_val=\$$ac_var
1333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
1340 case $ac_val in
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 esac
1344 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1345 done
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1359 If a cross compiler is detected then cross compile mode will be used." >&2
1360 elif test "x$build_alias" != "x$host_alias"; then
1361 cross_compiling=yes
1365 ac_tool_prefix=
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368 test "$silent" = yes && exec 6>/dev/null
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374 as_fn_error "working directory cannot be determined"
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 as_fn_error "pwd does not report name of working directory"
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$as_myself" ||
1384 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388 $as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 s//\1/
1393 /^X\(\/\/\)[^/].*/{
1394 s//\1/
1397 /^X\(\/\/\)$/{
1398 s//\1/
1401 /^X\(\/\).*/{
1402 s//\1/
1405 s/.*/./; q'`
1406 srcdir=$ac_confdir
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 srcdir=..
1410 else
1411 ac_srcdir_defaulted=no
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1417 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 ac_abs_confdir=`(
1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1420 pwd)`
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 srcdir=.
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1428 case $srcdir in
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 esac
1431 for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436 done
1439 # Report the --help message.
1441 if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1444 cat <<_ACEOF
1445 \`configure' configures GNU UPC Runtime Library 1.0 to adapt to many kinds of systems.
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE. See below for descriptions of some of the useful variables.
1452 Defaults for the options are specified in brackets.
1454 Configuration:
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465 Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 [PREFIX]
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1476 For better control, use the options below.
1478 Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/libgupc]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1498 _ACEOF
1500 cat <<\_ACEOF
1502 Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1507 System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 --target=TARGET configure for building compilers for TARGET [HOST]
1511 _ACEOF
1514 if test -n "$ac_init_help"; then
1515 case $ac_init_help in
1516 short | recursive ) echo "Configuration of GNU UPC Runtime Library 1.0:";;
1517 esac
1518 cat <<\_ACEOF
1520 Optional Features:
1521 --disable-option-checking ignore unrecognized --enable/--with options
1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1524 --enable-version-specific-runtime-libs
1525 specify that runtime libraries should be installed
1526 in a compiler-specific directory [default=no]
1527 --enable-generated-files-in-srcdir
1528 put copies of generated files in source dir intended
1529 for creating source tarballs for users without
1530 texinfo bison or flex [default=no]
1531 --enable-multilib build many library versions (default)
1532 --disable-dependency-tracking speeds up one-time build
1533 --enable-dependency-tracking do not reject slow dependency extractors
1534 --enable-shared[=PKGS] build shared libraries [default=no]
1535 --enable-static[=PKGS] build static libraries [default=yes]
1536 --enable-fast-install[=PKGS]
1537 optimize for fast installation [default=yes]
1538 --disable-libtool-lock avoid locking (might break parallel builds)
1539 --enable-maintainer-mode enable make rules and dependencies not useful
1540 (and sometimes confusing) to the casual installer
1541 --disable-largefile omit support for large files
1542 --enable-linux-futex use the Linux futex system call [default=default]
1543 --enable-tls Use thread-local storage [default=yes]
1544 --enable-symvers=STYLE enables symbol versioning of the shared library
1545 [default=yes]
1546 --enable-upc-runtime-checks
1547 enable internal UPC runtime checks that validate
1548 arguments, and check for inconsistent runtime state.
1549 [default=no]
1550 --enable-upc-runtime-stats
1551 enable internal UPC runtime statistics collection
1552 support; these statistics count the number of
1553 various significant internal operations, and dump
1554 those counts into a per-process statistics file.
1555 [default=no]
1556 --enable-upc-runtime-trace
1557 enable internal UPC runtime trace collection
1558 support; a runtime trace is a time stamped log that
1559 records various significant internal events; this
1560 trace is written to a per-process log file.
1561 [default=no]
1562 --enable-upc-runtime-debug
1563 enable UPC runtime debugging mode, where more
1564 expensive internal checks are implemented, and
1565 conservative algorithms are used that reduce the
1566 degree of parallelism, and that exercise less
1567 complex/sophisticated operations provided by the
1568 operating system and/or the network communication
1569 packages called by the UPC runtime. In addition,
1570 conservative compilation options will be used to
1571 build the runtime, and debugging symbols will be
1572 generated. [default=no]
1573 --enable-upc-link-script
1574 enable UPC's use of a custom linker script; this
1575 will define the UPC shared section as a no load
1576 section on targets where this feature is supported
1577 (requires GNU LD)
1578 --enable-upc-gum-debug enable UPC's source level debugging with GDB and GUM
1579 support (requires UPC aware GDB)
1580 --enable-doxygen-doc generate any doxygen documentation
1581 --enable-doxygen-dot generate graphics for doxygen documentation
1582 --enable-doxygen-man generate doxygen manual pages
1583 --enable-doxygen-rtf generate doxygen RTF documentation
1584 --enable-doxygen-xml generate doxygen XML documentation
1585 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1586 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1587 file
1588 --disable-doxygen-html don't generate doxygen plain HTML documentation
1589 --disable-doxygen-ps don't generate doxygen PostScript documentation
1590 --disable-doxygen-pdf don't generate doxygen PDF documentation
1591 --enable-upc-backtrace enable UPC backtrace; enable stack frame backtrace
1592 report when UPC run-time fatal errors occur or by
1593 user request (via signal)
1594 --enable-upc-backtrace-gdb
1595 enable the use of GDB for UPC stack backtrace
1596 [default='yes']
1597 --enable-upc-backtrace-signal
1598 enable signal support for UPC stack backtrace
1599 [default='yes']
1600 --enable-upc-runtime-triggered-ops
1601 enable UPC runtime support for Portals4 triggered
1602 operations. [default=yes]
1603 --enable-upc-node-local-mem
1604 enable UPC runtime support for accessing shared
1605 memory of the node local threads. [default=yes]
1607 Optional Packages:
1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1610 --with-pic try to use only PIC/non-PIC objects [default=use
1611 both]
1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1613 --with-upc-runtime=MODEL
1614 specify the runtime implementation model for UPC,
1615 where MODEL may be: 'SMP' (Symmetric
1616 Multiprocessing) or 'Portals4'. [default='SMP']
1617 --with-upc-runtime-tree-fanout=WIDTH
1618 specify the maximum number of children in each
1619 sub-tree used to implement UPC collectives
1620 operations (e. g. upc_barrier) [default=4]
1621 --with-upc-backtrace-gdb=GDB
1622 specify which GDB to use for UPC backtrace support
1623 [default='gdb']
1624 --with-upc-backtrace-signal=SIGNAL
1625 specify the signal to be used for UPC stack
1626 backtrace [default='SIGUSR1']
1627 --with-bfd=PATH specify prefix directory for the installed BFD
1628 library needed to provide extended UPC backtrace
1629 information (source file name and line numbers);
1630 equivalent to --with-bfd-include=PATH/include plus
1631 --with-bfd-lib=PATH/lib
1632 --with-bfd-include=PATH specify directory for installed BFD include files
1633 --with-bfd-lib=PATH specify directory for the installed BFD library
1634 --with-upc-runtime-max-locks=MAX_LOCKS
1635 specify the maximum number of locks that can be held
1636 by a single UPC thread [default=1024]
1637 --with-portals4=PATH specify prefix directory for installed portals4
1638 package. Equivalent to
1639 --with-portals4-include=PATH/include plus
1640 --with-portals4-lib=PATH/lib
1641 --with-portals4-include=PATH
1642 specify directory for installed portals4 include
1643 files
1644 --with-portals4-lib=PATH
1645 specify directory for the installed portals4 library
1646 --with-upc-runtime-pte-base=BASE
1647 specify the base index of the first Portals4 PTE
1648 used by the UPC runtime [default=16]
1649 --with-upc-runtime-max-locks=MAX_LOCKS
1650 specify the maximum number of locks that can be held
1651 by a single UPC thread [default=1024]
1652 --with-upc-runtime-bounce-buffer-size=SIZE
1653 specify the size (in bytes) of the bounce buffer
1654 that is used by the UPC runtime to buffer network
1655 data [default=256K]
1656 --with-upc-max-outstanding-puts=SIZE
1657 specify the maximum number of outstanding remote put
1658 requests. [default=256]
1659 --with-upc-runtime-tree-fanout=WIDTH
1660 specify the maximum number of children in each
1661 sub-tree used to implement UPC collective operations
1662 (e. g., upc_barrier and upc_global_alloc).
1663 [default=4]
1664 --with-upc-node-local-mem=SHMEM
1665 specify type of shared memory used for node local
1666 memory accesses (posix or mmap). [default=posix]
1667 --with-upc-job-launcher Select UPC Portals4 job launcher. [default=slurm]
1668 --with-upc-memory-page-size
1669 Select target memory page size. [default=4096]
1671 Some influential environment variables:
1672 CC C compiler command
1673 CFLAGS C compiler flags
1674 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1675 nonstandard directory <lib dir>
1676 LIBS libraries to pass to the linker, e.g. -l<library>
1677 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1678 you have headers in a nonstandard directory <include dir>
1679 UPC Unified Parallel C compiler command
1680 UPCFLAGS Unified Parallel C compiler flags
1681 CPP C preprocessor
1682 DOXYGEN_PAPER_SIZE
1683 letter (default), a4, a4wide, legal or executive
1684 DOXYGEN_HTML_LOGO
1685 Location of small logo graphic (for HTML)
1686 DOXYGEN_LOGO
1687 Location of larger logo graphic (for PDF)
1688 DOXYGEN_TITLE
1689 Doxygen document title
1690 DOXYGEN_AUTHOR
1691 Doxygen document author
1692 DOXYGEN_DATETIME
1693 Doxygen date and time value
1694 DOXYGEN_DATE
1695 Doxygen date value
1697 Use these variables to override the choices made by `configure' or to help
1698 it to find libraries and programs with nonstandard names/locations.
1700 Report bugs to the package provider.
1701 GNU UPC Runtime Library home page: <http://www.gnu.org/software/libgupc/>.
1702 General help using GNU software: <http://www.gnu.org/gethelp/>.
1703 _ACEOF
1704 ac_status=$?
1707 if test "$ac_init_help" = "recursive"; then
1708 # If there are subdirs, report their specific --help.
1709 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710 test -d "$ac_dir" ||
1711 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712 continue
1713 ac_builddir=.
1715 case "$ac_dir" in
1716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1719 # A ".." for each directory in $ac_dir_suffix.
1720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721 case $ac_top_builddir_sub in
1722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724 esac ;;
1725 esac
1726 ac_abs_top_builddir=$ac_pwd
1727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728 # for backward compatibility:
1729 ac_top_builddir=$ac_top_build_prefix
1731 case $srcdir in
1732 .) # We are building in place.
1733 ac_srcdir=.
1734 ac_top_srcdir=$ac_top_builddir_sub
1735 ac_abs_top_srcdir=$ac_pwd ;;
1736 [\\/]* | ?:[\\/]* ) # Absolute name.
1737 ac_srcdir=$srcdir$ac_dir_suffix;
1738 ac_top_srcdir=$srcdir
1739 ac_abs_top_srcdir=$srcdir ;;
1740 *) # Relative name.
1741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742 ac_top_srcdir=$ac_top_build_prefix$srcdir
1743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 esac
1745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747 cd "$ac_dir" || { ac_status=$?; continue; }
1748 # Check for guested configure.
1749 if test -f "$ac_srcdir/configure.gnu"; then
1750 echo &&
1751 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752 elif test -f "$ac_srcdir/configure"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure" --help=recursive
1755 else
1756 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757 fi || ac_status=$?
1758 cd "$ac_pwd" || { ac_status=$?; break; }
1759 done
1762 test -n "$ac_init_help" && exit $ac_status
1763 if $ac_init_version; then
1764 cat <<\_ACEOF
1765 GNU UPC Runtime Library configure 1.0
1766 generated by GNU Autoconf 2.64
1768 Copyright (C) 2009 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1771 _ACEOF
1772 exit
1775 ## ------------------------ ##
1776 ## Autoconf initialization. ##
1777 ## ------------------------ ##
1779 # ac_fn_c_try_compile LINENO
1780 # --------------------------
1781 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_compile ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext
1786 if { { ac_try="$ac_compile"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_compile") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest.$ac_objext; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1810 ac_retval=1
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 return $ac_retval
1815 } # ac_fn_c_try_compile
1817 # ac_fn_c_try_link LINENO
1818 # -----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_link ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext conftest$ac_exeext
1824 if { { ac_try="$ac_link"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest$ac_exeext && {
1843 test "$cross_compiling" = yes ||
1844 $as_test_x conftest$ac_exeext
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1854 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1855 # interfere with the next link command; also delete a directory that is
1856 # left behind by Apple's compiler. We do this before executing the actions.
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 return $ac_retval
1861 } # ac_fn_c_try_link
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 eval "$3=yes"
1882 else
1883 eval "$3=no"
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_check_header_compile
1894 # ac_fn_c_try_cpp LINENO
1895 # ----------------------
1896 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_c_try_cpp ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if { { ac_try="$ac_cpp conftest.$ac_ext"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } >/dev/null && {
1916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 }; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1924 ac_retval=1
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927 return $ac_retval
1929 } # ac_fn_c_try_cpp
1931 # ac_fn_c_try_run LINENO
1932 # ----------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1934 # that executables *can* be run.
1935 ac_fn_c_try_run ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if { { ac_try="$ac_link"
1939 case "(($ac_try" in
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>&5
1946 ac_status=$?
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1949 { { case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_try") 2>&5
1956 ac_status=$?
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; }; }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: program exited with status $ac_status" >&5
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1965 ac_retval=$ac_status
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969 return $ac_retval
1971 } # ac_fn_c_try_run
1973 # ac_fn_c_check_func LINENO FUNC VAR
1974 # ----------------------------------
1975 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1976 ac_fn_c_check_func ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982 $as_echo_n "(cached) " >&6
1983 else
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1988 #define $2 innocuous_$2
1990 /* System header to define __stub macros and hopefully few prototypes,
1991 which can conflict with char $2 (); below.
1992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1993 <limits.h> exists even on freestanding compilers. */
1995 #ifdef __STDC__
1996 # include <limits.h>
1997 #else
1998 # include <assert.h>
1999 #endif
2001 #undef $2
2003 /* Override any GCC internal prototype to avoid an error.
2004 Use char because int might match the return type of a GCC
2005 builtin and then its argument prototype would still apply. */
2006 #ifdef __cplusplus
2007 extern "C"
2008 #endif
2009 char $2 ();
2010 /* The GNU C library defines this for functions which it implements
2011 to always fail with ENOSYS. Some functions are actually named
2012 something starting with __ and the normal name is an alias. */
2013 #if defined __stub_$2 || defined __stub___$2
2014 choke me
2015 #endif
2018 main ()
2020 return $2 ();
2022 return 0;
2024 _ACEOF
2025 if ac_fn_c_try_link "$LINENO"; then :
2026 eval "$3=yes"
2027 else
2028 eval "$3=no"
2030 rm -f core conftest.err conftest.$ac_objext \
2031 conftest$ac_exeext conftest.$ac_ext
2033 eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_c_check_func
2040 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2041 # -------------------------------------------
2042 # Tests whether TYPE exists after having included INCLUDES, setting cache
2043 # variable VAR accordingly.
2044 ac_fn_c_check_type ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 eval "$3=no"
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2057 main ()
2059 if (sizeof ($2))
2060 return 0;
2062 return 0;
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 if (sizeof (($2)))
2073 return 0;
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2080 else
2081 eval "$3=yes"
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092 } # ac_fn_c_check_type
2094 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2095 # --------------------------------------------
2096 # Tries to find the compile-time value of EXPR in a program that includes
2097 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2098 # computed
2099 ac_fn_c_compute_int ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 if test "$cross_compiling" = yes; then
2103 # Depending upon the size, compute the lo and hi bounds.
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2108 main ()
2110 static int test_array [1 - 2 * !(($2) >= 0)];
2111 test_array [0] = 0
2114 return 0;
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 ac_lo=0 ac_mid=0
2119 while :; do
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2124 main ()
2126 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2127 test_array [0] = 0
2130 return 0;
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=$ac_mid; break
2135 else
2136 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2137 if test $ac_lo -le $ac_mid; then
2138 ac_lo= ac_hi=
2139 break
2141 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 done
2145 else
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2150 main ()
2152 static int test_array [1 - 2 * !(($2) < 0)];
2153 test_array [0] = 0
2156 return 0;
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160 ac_hi=-1 ac_mid=-1
2161 while :; do
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2166 main ()
2168 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2169 test_array [0] = 0
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_lo=$ac_mid; break
2177 else
2178 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2179 if test $ac_mid -le $ac_hi; then
2180 ac_lo= ac_hi=
2181 break
2183 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 done
2187 else
2188 ac_lo= ac_hi=
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 # Binary search between lo and hi bounds.
2194 while test "x$ac_lo" != "x$ac_hi"; do
2195 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2200 main ()
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2203 test_array [0] = 0
2206 return 0;
2208 _ACEOF
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210 ac_hi=$ac_mid
2211 else
2212 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 done
2216 case $ac_lo in #((
2217 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2218 '') ac_retval=1 ;;
2219 esac
2220 else
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2224 static long int longval () { return $2; }
2225 static unsigned long int ulongval () { return $2; }
2226 #include <stdio.h>
2227 #include <stdlib.h>
2229 main ()
2232 FILE *f = fopen ("conftest.val", "w");
2233 if (! f)
2234 return 1;
2235 if (($2) < 0)
2237 long int i = longval ();
2238 if (i != ($2))
2239 return 1;
2240 fprintf (f, "%ld", i);
2242 else
2244 unsigned long int i = ulongval ();
2245 if (i != ($2))
2246 return 1;
2247 fprintf (f, "%lu", i);
2249 /* Do not output a trailing newline, as this causes \r\n confusion
2250 on some platforms. */
2251 return ferror (f) || fclose (f) != 0;
2254 return 0;
2256 _ACEOF
2257 if ac_fn_c_try_run "$LINENO"; then :
2258 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2259 else
2260 ac_retval=1
2262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2263 conftest.$ac_objext conftest.beam conftest.$ac_ext
2264 rm -f conftest.val
2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268 return $ac_retval
2270 } # ac_fn_c_compute_int
2272 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2273 # -------------------------------------------------------
2274 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2275 # the include files in INCLUDES and setting the cache variable VAR
2276 # accordingly.
2277 ac_fn_c_check_header_mongrel ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2284 $as_echo_n "(cached) " >&6
2286 eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 else
2290 # Is the header compilable?
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2292 $as_echo_n "checking $2 usability... " >&6; }
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2296 #include <$2>
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299 ac_header_compiler=yes
2300 else
2301 ac_header_compiler=no
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2305 $as_echo "$ac_header_compiler" >&6; }
2307 # Is the header present?
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2309 $as_echo_n "checking $2 presence... " >&6; }
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 #include <$2>
2313 _ACEOF
2314 if ac_fn_c_try_cpp "$LINENO"; then :
2315 ac_header_preproc=yes
2316 else
2317 ac_header_preproc=no
2319 rm -f conftest.err conftest.$ac_ext
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2321 $as_echo "$ac_header_preproc" >&6; }
2323 # So? What about this header?
2324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2325 yes:no: )
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2327 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2329 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2331 no:yes:* )
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2333 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2335 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2337 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2339 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2341 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2343 esac
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 $as_echo_n "checking for $2... " >&6; }
2346 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 eval "$3=\$ac_header_compiler"
2351 eval ac_res=\$$3
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2357 } # ac_fn_c_check_header_mongrel
2359 # ac_fn_c_check_decl LINENO SYMBOL VAR
2360 # ------------------------------------
2361 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2362 ac_fn_c_check_decl ()
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 as_decl_name=`echo $2|sed 's/ *(.*//'`
2366 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2368 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2369 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2376 main ()
2378 #ifndef $as_decl_name
2379 #ifdef __cplusplus
2380 (void) $as_decl_use;
2381 #else
2382 (void) $as_decl_name;
2383 #endif
2384 #endif
2387 return 0;
2389 _ACEOF
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 eval "$3=yes"
2392 else
2393 eval "$3=no"
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 eval ac_res=\$$3
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399 $as_echo "$ac_res" >&6; }
2400 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402 } # ac_fn_c_check_decl
2403 cat >config.log <<_ACEOF
2404 This file contains any messages produced by compilers while
2405 running configure, to aid debugging if configure makes a mistake.
2407 It was created by GNU UPC Runtime Library $as_me 1.0, which was
2408 generated by GNU Autoconf 2.64. Invocation command line was
2410 $ $0 $@
2412 _ACEOF
2413 exec 5>>config.log
2415 cat <<_ASUNAME
2416 ## --------- ##
2417 ## Platform. ##
2418 ## --------- ##
2420 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2421 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2422 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2423 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2424 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2426 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2427 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2429 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2430 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2431 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2432 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2433 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2434 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2435 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2437 _ASUNAME
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 $as_echo "PATH: $as_dir"
2445 done
2446 IFS=$as_save_IFS
2448 } >&5
2450 cat >&5 <<_ACEOF
2453 ## ----------- ##
2454 ## Core tests. ##
2455 ## ----------- ##
2457 _ACEOF
2460 # Keep a trace of the command line.
2461 # Strip out --no-create and --no-recursion so they do not pile up.
2462 # Strip out --silent because we don't want to record it for future runs.
2463 # Also quote any args containing shell meta-characters.
2464 # Make two passes to allow for proper duplicate-argument suppression.
2465 ac_configure_args=
2466 ac_configure_args0=
2467 ac_configure_args1=
2468 ac_must_keep_next=false
2469 for ac_pass in 1 2
2471 for ac_arg
2473 case $ac_arg in
2474 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2476 | -silent | --silent | --silen | --sile | --sil)
2477 continue ;;
2478 *\'*)
2479 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2480 esac
2481 case $ac_pass in
2482 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2484 as_fn_append ac_configure_args1 " '$ac_arg'"
2485 if test $ac_must_keep_next = true; then
2486 ac_must_keep_next=false # Got value, back to normal.
2487 else
2488 case $ac_arg in
2489 *=* | --config-cache | -C | -disable-* | --disable-* \
2490 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2491 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2492 | -with-* | --with-* | -without-* | --without-* | --x)
2493 case "$ac_configure_args0 " in
2494 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2495 esac
2497 -* ) ac_must_keep_next=true ;;
2498 esac
2500 as_fn_append ac_configure_args " '$ac_arg'"
2502 esac
2503 done
2504 done
2505 { ac_configure_args0=; unset ac_configure_args0;}
2506 { ac_configure_args1=; unset ac_configure_args1;}
2508 # When interrupted or exit'd, cleanup temporary files, and complete
2509 # config.log. We remove comments because anyway the quotes in there
2510 # would cause problems or look ugly.
2511 # WARNING: Use '\'' to represent an apostrophe within the trap.
2512 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2513 trap 'exit_status=$?
2514 # Save into config.log some information that might help in debugging.
2516 echo
2518 cat <<\_ASBOX
2519 ## ---------------- ##
2520 ## Cache variables. ##
2521 ## ---------------- ##
2522 _ASBOX
2523 echo
2524 # The following way of writing the cache mishandles newlines in values,
2526 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2527 eval ac_val=\$$ac_var
2528 case $ac_val in #(
2529 *${as_nl}*)
2530 case $ac_var in #(
2531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2532 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2533 esac
2534 case $ac_var in #(
2535 _ | IFS | as_nl) ;; #(
2536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2537 *) { eval $ac_var=; unset $ac_var;} ;;
2538 esac ;;
2539 esac
2540 done
2541 (set) 2>&1 |
2542 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2543 *${as_nl}ac_space=\ *)
2544 sed -n \
2545 "s/'\''/'\''\\\\'\'''\''/g;
2546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2547 ;; #(
2549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2551 esac |
2552 sort
2554 echo
2556 cat <<\_ASBOX
2557 ## ----------------- ##
2558 ## Output variables. ##
2559 ## ----------------- ##
2560 _ASBOX
2561 echo
2562 for ac_var in $ac_subst_vars
2564 eval ac_val=\$$ac_var
2565 case $ac_val in
2566 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2567 esac
2568 $as_echo "$ac_var='\''$ac_val'\''"
2569 done | sort
2570 echo
2572 if test -n "$ac_subst_files"; then
2573 cat <<\_ASBOX
2574 ## ------------------- ##
2575 ## File substitutions. ##
2576 ## ------------------- ##
2577 _ASBOX
2578 echo
2579 for ac_var in $ac_subst_files
2581 eval ac_val=\$$ac_var
2582 case $ac_val in
2583 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2584 esac
2585 $as_echo "$ac_var='\''$ac_val'\''"
2586 done | sort
2587 echo
2590 if test -s confdefs.h; then
2591 cat <<\_ASBOX
2592 ## ----------- ##
2593 ## confdefs.h. ##
2594 ## ----------- ##
2595 _ASBOX
2596 echo
2597 cat confdefs.h
2598 echo
2600 test "$ac_signal" != 0 &&
2601 $as_echo "$as_me: caught signal $ac_signal"
2602 $as_echo "$as_me: exit $exit_status"
2603 } >&5
2604 rm -f core *.core core.conftest.* &&
2605 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2606 exit $exit_status
2608 for ac_signal in 1 2 13 15; do
2609 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2610 done
2611 ac_signal=0
2613 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2614 rm -f -r conftest* confdefs.h
2616 $as_echo "/* confdefs.h */" > confdefs.h
2618 # Predefined preprocessor variables.
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_NAME "$PACKAGE_NAME"
2622 _ACEOF
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2626 _ACEOF
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2630 _ACEOF
2632 cat >>confdefs.h <<_ACEOF
2633 #define PACKAGE_STRING "$PACKAGE_STRING"
2634 _ACEOF
2636 cat >>confdefs.h <<_ACEOF
2637 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2638 _ACEOF
2640 cat >>confdefs.h <<_ACEOF
2641 #define PACKAGE_URL "$PACKAGE_URL"
2642 _ACEOF
2645 # Let the site file select an alternate cache file if it wants to.
2646 # Prefer an explicitly selected file to automatically selected ones.
2647 ac_site_file1=NONE
2648 ac_site_file2=NONE
2649 if test -n "$CONFIG_SITE"; then
2650 ac_site_file1=$CONFIG_SITE
2651 elif test "x$prefix" != xNONE; then
2652 ac_site_file1=$prefix/share/config.site
2653 ac_site_file2=$prefix/etc/config.site
2654 else
2655 ac_site_file1=$ac_default_prefix/share/config.site
2656 ac_site_file2=$ac_default_prefix/etc/config.site
2658 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2660 test "x$ac_site_file" = xNONE && continue
2661 if test -r "$ac_site_file"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2663 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2664 sed 's/^/| /' "$ac_site_file" >&5
2665 . "$ac_site_file"
2667 done
2669 if test -r "$cache_file"; then
2670 # Some versions of bash will fail to source /dev/null (special
2671 # files actually), so we avoid doing that.
2672 if test -f "$cache_file"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2674 $as_echo "$as_me: loading cache $cache_file" >&6;}
2675 case $cache_file in
2676 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2677 *) . "./$cache_file";;
2678 esac
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2682 $as_echo "$as_me: creating cache $cache_file" >&6;}
2683 >$cache_file
2686 # Check that the precious variables saved in the cache have kept the same
2687 # value.
2688 ac_cache_corrupted=false
2689 for ac_var in $ac_precious_vars; do
2690 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2691 eval ac_new_set=\$ac_env_${ac_var}_set
2692 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2693 eval ac_new_val=\$ac_env_${ac_var}_value
2694 case $ac_old_set,$ac_new_set in
2695 set,)
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2697 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2698 ac_cache_corrupted=: ;;
2699 ,set)
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2701 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2702 ac_cache_corrupted=: ;;
2703 ,);;
2705 if test "x$ac_old_val" != "x$ac_new_val"; then
2706 # differences in whitespace do not lead to failure.
2707 ac_old_val_w=`echo x $ac_old_val`
2708 ac_new_val_w=`echo x $ac_new_val`
2709 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2711 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2712 ac_cache_corrupted=:
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2715 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2716 eval $ac_var=\$ac_old_val
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2719 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2721 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2722 fi;;
2723 esac
2724 # Pass precious variables to config.status.
2725 if test "$ac_new_set" = set; then
2726 case $ac_new_val in
2727 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2728 *) ac_arg=$ac_var=$ac_new_val ;;
2729 esac
2730 case " $ac_configure_args " in
2731 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2732 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2733 esac
2735 done
2736 if $ac_cache_corrupted; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2740 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2741 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2743 ## -------------------- ##
2744 ## Main body of script. ##
2745 ## -------------------- ##
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 ac_config_headers="$ac_config_headers config.h"
2761 # -------
2762 # Options
2763 # -------
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2766 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2767 # Check whether --enable-version-specific-runtime-libs was given.
2768 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2769 enableval=$enable_version_specific_runtime_libs;
2770 case "$enableval" in
2771 yes|no) ;;
2772 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2773 esac
2775 else
2776 enable_version_specific_runtime_libs=no
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2781 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2783 # We would like our source tree to be readonly. However when releases or
2784 # pre-releases are generated, the flex/bison generated files as well as the
2785 # various formats of manuals need to be included along with the rest of the
2786 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2787 # just that.
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2789 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2790 # Check whether --enable-generated-files-in-srcdir was given.
2791 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2792 enableval=$enable_generated_files_in_srcdir;
2793 case "$enableval" in
2794 yes|no) ;;
2795 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2796 esac
2798 else
2799 enable_generated_files_in_srcdir=no
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2804 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2805 if test "$enable_generated_files_in_srcdir" = yes; then
2806 GENINSRC_TRUE=
2807 GENINSRC_FALSE='#'
2808 else
2809 GENINSRC_TRUE='#'
2810 GENINSRC_FALSE=
2815 # -------
2816 # Get build environment
2817 # -------
2819 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2821 # You will slowly go insane if you do not grok the following fact: when
2822 # building this library, the top-level /target/ becomes the library's /host/.
2824 # configure then causes --target to default to --host, exactly like any
2825 # other package using autoconf. Therefore, 'target' and 'host' will
2826 # always be the same. This makes sense both for native and cross compilers
2827 # just think about it for a little while. :-)
2829 # Also, if this library is being configured as part of a cross compiler, the
2830 # top-level configure script will pass the "real" host as $with_cross_host.
2832 # Do not delete or change the following two lines. For why, see
2833 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2834 ac_aux_dir=
2835 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2836 for ac_t in install-sh install.sh shtool; do
2837 if test -f "$ac_dir/$ac_t"; then
2838 ac_aux_dir=$ac_dir
2839 ac_install_sh="$ac_aux_dir/$ac_t -c"
2840 break 2
2842 done
2843 done
2844 if test -z "$ac_aux_dir"; then
2845 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2848 # These three variables are undocumented and unsupported,
2849 # and are intended to be withdrawn in a future Autoconf release.
2850 # They can cause serious problems if a builder's source tree is in a directory
2851 # whose full name contains unusual characters.
2852 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2853 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2854 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2857 # Make sure we can run config.sub.
2858 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2859 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2862 $as_echo_n "checking build system type... " >&6; }
2863 if test "${ac_cv_build+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 ac_build_alias=$build_alias
2867 test "x$ac_build_alias" = x &&
2868 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2869 test "x$ac_build_alias" = x &&
2870 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2871 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2872 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2876 $as_echo "$ac_cv_build" >&6; }
2877 case $ac_cv_build in
2878 *-*-*) ;;
2879 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2880 esac
2881 build=$ac_cv_build
2882 ac_save_IFS=$IFS; IFS='-'
2883 set x $ac_cv_build
2884 shift
2885 build_cpu=$1
2886 build_vendor=$2
2887 shift; shift
2888 # Remember, the first character of IFS is used to create $*,
2889 # except with old shells:
2890 build_os=$*
2891 IFS=$ac_save_IFS
2892 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2896 $as_echo_n "checking host system type... " >&6; }
2897 if test "${ac_cv_host+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 if test "x$host_alias" = x; then
2901 ac_cv_host=$ac_cv_build
2902 else
2903 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2904 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2909 $as_echo "$ac_cv_host" >&6; }
2910 case $ac_cv_host in
2911 *-*-*) ;;
2912 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2913 esac
2914 host=$ac_cv_host
2915 ac_save_IFS=$IFS; IFS='-'
2916 set x $ac_cv_host
2917 shift
2918 host_cpu=$1
2919 host_vendor=$2
2920 shift; shift
2921 # Remember, the first character of IFS is used to create $*,
2922 # except with old shells:
2923 host_os=$*
2924 IFS=$ac_save_IFS
2925 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2929 $as_echo_n "checking target system type... " >&6; }
2930 if test "${ac_cv_target+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test "x$target_alias" = x; then
2934 ac_cv_target=$ac_cv_host
2935 else
2936 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2937 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2942 $as_echo "$ac_cv_target" >&6; }
2943 case $ac_cv_target in
2944 *-*-*) ;;
2945 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2946 esac
2947 target=$ac_cv_target
2948 ac_save_IFS=$IFS; IFS='-'
2949 set x $ac_cv_target
2950 shift
2951 target_cpu=$1
2952 target_vendor=$2
2953 shift; shift
2954 # Remember, the first character of IFS is used to create $*,
2955 # except with old shells:
2956 target_os=$*
2957 IFS=$ac_save_IFS
2958 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2961 # The aliases save the names the user supplied, while $host etc.
2962 # will get canonicalized.
2963 test -n "$target_alias" &&
2964 test "$program_prefix$program_suffix$program_transform_name" = \
2965 NONENONEs,x,x, &&
2966 program_prefix=${target_alias}-
2968 target_alias=${target_alias-$host_alias}
2970 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2971 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2972 # 1.11.1: minimum required version
2973 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2974 # of other PACKAGE_* variables will, however, and there's nothing
2975 # we can do about that; they come from AC_INIT).
2976 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2977 # file in the top srcdir, etc, etc), so stop complaining.
2978 # -Wall: turns on all automake warnings...
2979 # -Wno-portability: ...except this one, since GNU make is required.
2980 # -Wno-override: ... and this one, since we do want this in testsuite.
2981 am__api_version='1.11'
2983 # Find a good install program. We prefer a C program (faster),
2984 # so one script is as good as another. But avoid the broken or
2985 # incompatible versions:
2986 # SysV /etc/install, /usr/sbin/install
2987 # SunOS /usr/etc/install
2988 # IRIX /sbin/install
2989 # AIX /bin/install
2990 # AmigaOS /C/install, which installs bootblocks on floppy discs
2991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2994 # OS/2's system install, which has a completely different semantic
2995 # ./install, which can be erroneously created by make from ./install.sh.
2996 # Reject install programs that cannot install multiple files.
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2998 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2999 if test -z "$INSTALL"; then
3000 if test "${ac_cv_path_install+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 # Account for people who put trailing slashes in PATH elements.
3009 case $as_dir/ in #((
3010 ./ | .// | /[cC]/* | \
3011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3012 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3013 /usr/ucb/* ) ;;
3015 # OSF1 and SCO ODT 3.0 have their own names for install.
3016 # Don't use installbsd from OSF since it installs stuff as root
3017 # by default.
3018 for ac_prog in ginstall scoinst install; do
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3021 if test $ac_prog = install &&
3022 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3023 # AIX install. It has an incompatible calling convention.
3025 elif test $ac_prog = install &&
3026 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3027 # program-specific install script used by HP pwplus--don't use.
3029 else
3030 rm -rf conftest.one conftest.two conftest.dir
3031 echo one > conftest.one
3032 echo two > conftest.two
3033 mkdir conftest.dir
3034 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3035 test -s conftest.one && test -s conftest.two &&
3036 test -s conftest.dir/conftest.one &&
3037 test -s conftest.dir/conftest.two
3038 then
3039 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3040 break 3
3044 done
3045 done
3047 esac
3049 done
3050 IFS=$as_save_IFS
3052 rm -rf conftest.one conftest.two conftest.dir
3055 if test "${ac_cv_path_install+set}" = set; then
3056 INSTALL=$ac_cv_path_install
3057 else
3058 # As a last resort, use the slow shell script. Don't cache a
3059 # value for INSTALL within a source directory, because that will
3060 # break other packages using the cache if that directory is
3061 # removed, or if the value is a relative name.
3062 INSTALL=$ac_install_sh
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3066 $as_echo "$INSTALL" >&6; }
3068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3069 # It thinks the first close brace ends the variable substitution.
3070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3077 $as_echo_n "checking whether build environment is sane... " >&6; }
3078 # Just in case
3079 sleep 1
3080 echo timestamp > conftest.file
3081 # Reject unsafe characters in $srcdir or the absolute working directory
3082 # name. Accept space and tab only in the latter.
3083 am_lf='
3085 case `pwd` in
3086 *[\\\"\#\$\&\'\`$am_lf]*)
3087 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3088 esac
3089 case $srcdir in
3090 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3091 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3092 esac
3094 # Do `set' in a subshell so we don't clobber the current shell's
3095 # arguments. Must try -L first in case configure is actually a
3096 # symlink; some systems play weird games with the mod time of symlinks
3097 # (eg FreeBSD returns the mod time of the symlink's containing
3098 # directory).
3099 if (
3100 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3101 if test "$*" = "X"; then
3102 # -L didn't work.
3103 set X `ls -t "$srcdir/configure" conftest.file`
3105 rm -f conftest.file
3106 if test "$*" != "X $srcdir/configure conftest.file" \
3107 && test "$*" != "X conftest.file $srcdir/configure"; then
3109 # If neither matched, then we have a broken ls. This can happen
3110 # if, for instance, CONFIG_SHELL is bash and it inherits a
3111 # broken ls alias from the environment. This has actually
3112 # happened. Such a system could not be considered "sane".
3113 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3114 alias in your environment" "$LINENO" 5
3117 test "$2" = conftest.file
3119 then
3120 # Ok.
3122 else
3123 as_fn_error "newly created file is older than distributed files!
3124 Check your system clock" "$LINENO" 5
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 $as_echo "yes" >&6; }
3128 test "$program_prefix" != NONE &&
3129 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3130 # Use a double $ so make ignores it.
3131 test "$program_suffix" != NONE &&
3132 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3133 # Double any \ or $.
3134 # By default was `s,x,x', remove it if useless.
3135 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3136 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3138 # expand $ac_aux_dir to an absolute path
3139 am_aux_dir=`cd $ac_aux_dir && pwd`
3141 if test x"${MISSING+set}" != xset; then
3142 case $am_aux_dir in
3143 *\ * | *\ *)
3144 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3146 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3147 esac
3149 # Use eval to expand $SHELL
3150 if eval "$MISSING --run true"; then
3151 am_missing_run="$MISSING --run "
3152 else
3153 am_missing_run=
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3155 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3158 if test x"${install_sh}" != xset; then
3159 case $am_aux_dir in
3160 *\ * | *\ *)
3161 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3163 install_sh="\${SHELL} $am_aux_dir/install-sh"
3164 esac
3167 # Installed binaries are usually stripped using `strip' when the user
3168 # run `make install-strip'. However `strip' might not be the right
3169 # tool to use in cross-compilation environments, therefore Automake
3170 # will honor the `STRIP' environment variable to overrule this program.
3171 if test "$cross_compiling" != no; then
3172 if test -n "$ac_tool_prefix"; then
3173 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}strip; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_STRIP+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$STRIP"; then
3181 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3200 STRIP=$ac_cv_prog_STRIP
3201 if test -n "$STRIP"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3203 $as_echo "$STRIP" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3211 if test -z "$ac_cv_prog_STRIP"; then
3212 ac_ct_STRIP=$STRIP
3213 # Extract the first word of "strip", so it can be a program name with args.
3214 set dummy strip; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 if test -n "$ac_ct_STRIP"; then
3221 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3230 ac_cv_prog_ac_ct_STRIP="strip"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3234 done
3235 done
3236 IFS=$as_save_IFS
3240 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3241 if test -n "$ac_ct_STRIP"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3243 $as_echo "$ac_ct_STRIP" >&6; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3249 if test "x$ac_ct_STRIP" = x; then
3250 STRIP=":"
3251 else
3252 case $cross_compiling:$ac_tool_warned in
3253 yes:)
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3256 ac_tool_warned=yes ;;
3257 esac
3258 STRIP=$ac_ct_STRIP
3260 else
3261 STRIP="$ac_cv_prog_STRIP"
3265 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3268 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3269 if test -z "$MKDIR_P"; then
3270 if test "${ac_cv_path_mkdir+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_prog in mkdir gmkdir; do
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3281 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3282 'mkdir (GNU coreutils) '* | \
3283 'mkdir (coreutils) '* | \
3284 'mkdir (fileutils) '4.1*)
3285 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3286 break 3;;
3287 esac
3288 done
3289 done
3290 done
3291 IFS=$as_save_IFS
3295 if test "${ac_cv_path_mkdir+set}" = set; then
3296 MKDIR_P="$ac_cv_path_mkdir -p"
3297 else
3298 # As a last resort, use the slow shell script. Don't cache a
3299 # value for MKDIR_P within a source directory, because that will
3300 # break other packages using the cache if that directory is
3301 # removed, or if the value is a relative name.
3302 test -d ./--version && rmdir ./--version
3303 MKDIR_P="$ac_install_sh -d"
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3307 $as_echo "$MKDIR_P" >&6; }
3309 mkdir_p="$MKDIR_P"
3310 case $mkdir_p in
3311 [\\/$]* | ?:[\\/]*) ;;
3312 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3313 esac
3315 for ac_prog in gawk mawk nawk awk
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if test "${ac_cv_prog_AWK+set}" = set; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$AWK"; then
3325 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 ac_cv_prog_AWK="$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3340 IFS=$as_save_IFS
3344 AWK=$ac_cv_prog_AWK
3345 if test -n "$AWK"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3347 $as_echo "$AWK" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3354 test -n "$AWK" && break
3355 done
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3358 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3359 set x ${MAKE-make}
3360 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3361 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 cat >conftest.make <<\_ACEOF
3365 SHELL = /bin/sh
3366 all:
3367 @echo '@@@%%%=$(MAKE)=@@@%%%'
3368 _ACEOF
3369 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3370 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3371 *@@@%%%=?*=@@@%%%*)
3372 eval ac_cv_prog_make_${ac_make}_set=yes;;
3374 eval ac_cv_prog_make_${ac_make}_set=no;;
3375 esac
3376 rm -f conftest.make
3378 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3380 $as_echo "yes" >&6; }
3381 SET_MAKE=
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 SET_MAKE="MAKE=${MAKE-make}"
3388 rm -rf .tst 2>/dev/null
3389 mkdir .tst 2>/dev/null
3390 if test -d .tst; then
3391 am__leading_dot=.
3392 else
3393 am__leading_dot=_
3395 rmdir .tst 2>/dev/null
3397 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3398 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3399 # is not polluted with repeated "-I."
3400 am__isrc=' -I$(srcdir)'
3401 # test to see if srcdir already configured
3402 if test -f $srcdir/config.status; then
3403 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3407 # test whether we have cygpath
3408 if test -z "$CYGPATH_W"; then
3409 if (cygpath --version) >/dev/null 2>/dev/null; then
3410 CYGPATH_W='cygpath -w'
3411 else
3412 CYGPATH_W=echo
3417 # Define the identity of the package.
3418 PACKAGE='libgupc'
3419 VERSION='1.0'
3422 cat >>confdefs.h <<_ACEOF
3423 #define PACKAGE "$PACKAGE"
3424 _ACEOF
3427 cat >>confdefs.h <<_ACEOF
3428 #define VERSION "$VERSION"
3429 _ACEOF
3431 # Some tools Automake needs.
3433 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3436 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3439 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3442 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3445 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3447 # We need awk for the "check" target. The system "awk" is bad on
3448 # some platforms.
3449 # Always define AMTAR for backward compatibility.
3451 AMTAR=${AMTAR-"${am_missing_run}tar"}
3453 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3460 # UPC disables multilib for portals4 runtime
3461 if echo "${with_upc_runtime}" | grep -v -i '^portals4$' 2>&1 >/dev/null; then
3462 # Default to --enable-multilib
3463 # Check whether --enable-multilib was given.
3464 if test "${enable_multilib+set}" = set; then :
3465 enableval=$enable_multilib; case "$enableval" in
3466 yes) multilib=yes ;;
3467 no) multilib=no ;;
3468 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3469 esac
3470 else
3471 multilib=yes
3475 # We may get other options which we leave undocumented:
3476 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3477 # See config-ml.in if you want the gory details.
3479 if test "$srcdir" = "."; then
3480 if test "$with_target_subdir" != "."; then
3481 multi_basedir="$srcdir/$with_multisrctop../.."
3482 else
3483 multi_basedir="$srcdir/$with_multisrctop.."
3485 else
3486 multi_basedir="$srcdir/.."
3490 # Even if the default multilib is not a cross compilation,
3491 # it may be that some of the other multilibs are.
3492 if test $cross_compiling = no && test $multilib = yes \
3493 && test "x${with_multisubdir}" != x ; then
3494 cross_compiling=maybe
3497 ac_config_commands="$ac_config_commands default-1"
3501 # Calculate toolexeclibdir
3502 # Also toolexecdir, though it's only used in toolexeclibdir
3503 case ${enable_version_specific_runtime_libs} in
3504 yes)
3505 # Need the gcc compiler version to know where to install libraries
3506 # and header files if --enable-version-specific-runtime-libs option
3507 # is selected.
3508 toolexecdir='$(libdir)/gcc/$(target_alias)'
3509 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3512 if test -n "$with_cross_host" &&
3513 test x"$with_cross_host" != x"no"; then
3514 # Install a library built with a cross compiler in tooldir, not libdir.
3515 toolexecdir='$(exec_prefix)/$(target_alias)'
3516 toolexeclibdir='$(toolexecdir)/lib'
3517 else
3518 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3519 toolexeclibdir='$(libdir)'
3521 multi_os_directory=`$CC -print-multi-os-directory`
3522 case $multi_os_directory in
3523 .) ;; # Avoid trailing /.
3524 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3525 esac
3528 as_fn_error "'$enable_version_specific_runtime_libs' is not set" "$LINENO" 5
3530 esac
3534 # If the language specific compiler does not exist, but the "gcc" directory
3535 # does, we do not build anything. Note, $r is set by the top-level Makefile.
3536 # Note that when we look for the compiler, we search both with and without
3537 # extension to handle cross and canadian cross builds.
3538 compiler_name=cc1upc
3539 rm -f skip-this-dir
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler $compiler_name has been built" >&5
3541 $as_echo_n "checking if compiler $compiler_name has been built... " >&6; }
3542 if test "${upc_cv_compiler_exists+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3546 upc_cv_compiler_exists=yes
3547 if test -n "$r"; then
3548 if test -d "$r"/gcc; then
3549 if test -f "$r"/gcc/$compiler_name \
3550 -o -f "$r"/gcc/$compiler_name.exe; then
3551 true
3552 else
3553 upc_cv_compiler_exists=no
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_cv_compiler_exists" >&5
3561 $as_echo "$upc_cv_compiler_exists" >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if UPC driver 'gupc' has been built" >&5
3563 $as_echo_n "checking if UPC driver 'gupc' has been built... " >&6; }
3564 if test "${upc_cv_driver_exists+set}" = set; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3568 upc_cv_driver_exists=yes
3569 if test -n "$r"; then
3570 if test -d "$r"/gcc; then
3571 if (test -f "$r"/gcc/gupc && test -f "$r"/gcc/gupc); then
3572 true
3573 else
3574 upc_cv_driver_exists=no
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_cv_driver_exists" >&5
3582 $as_echo "$upc_cv_driver_exists" >&6; }
3583 if test x$upc_cv_compiler_exists = xno \
3584 -o x$upc_cv_driver_exists = xno
3585 then
3586 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
3587 rm -f Makefile conftest* confdefs* core
3588 exit 0
3591 # Check the compiler.
3592 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3593 # We must force CC to /not/ be precious variables; otherwise
3594 # the wrong, non-multilib-adjusted value will be used in multilibs.
3595 # As a side effect, we have to subst CFLAGS ourselves.
3599 ac_ext=c
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604 if test -n "$ac_tool_prefix"; then
3605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3606 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3626 done
3627 done
3628 IFS=$as_save_IFS
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3643 if test -z "$ac_cv_prog_CC"; then
3644 ac_ct_CC=$CC
3645 # Extract the first word of "gcc", so it can be a program name with args.
3646 set dummy gcc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$ac_ct_CC"; then
3653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_ac_ct_CC="gcc"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3666 done
3667 done
3668 IFS=$as_save_IFS
3672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3673 if test -n "$ac_ct_CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3675 $as_echo "$ac_ct_CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3681 if test "x$ac_ct_CC" = x; then
3682 CC=""
3683 else
3684 case $cross_compiling:$ac_tool_warned in
3685 yes:)
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3688 ac_tool_warned=yes ;;
3689 esac
3690 CC=$ac_ct_CC
3692 else
3693 CC="$ac_cv_prog_CC"
3696 if test -z "$CC"; then
3697 if test -n "$ac_tool_prefix"; then
3698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3699 set dummy ${ac_tool_prefix}cc; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_CC+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC="$CC" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_CC="${ac_tool_prefix}cc"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3719 done
3720 done
3721 IFS=$as_save_IFS
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3737 if test -z "$CC"; then
3738 # Extract the first word of "cc", so it can be a program name with args.
3739 set dummy cc; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if test "${ac_cv_prog_CC+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 if test -n "$CC"; then
3746 ac_cv_prog_CC="$CC" # Let the user override the test.
3747 else
3748 ac_prog_rejected=no
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3757 ac_prog_rejected=yes
3758 continue
3760 ac_cv_prog_CC="cc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3768 if test $ac_prog_rejected = yes; then
3769 # We found a bogon in the path, so make sure we never use it.
3770 set dummy $ac_cv_prog_CC
3771 shift
3772 if test $# != 0; then
3773 # We chose a different compiler from the bogus one.
3774 # However, it has the same basename, so the bogon will be chosen
3775 # first if we set CC to just the basename; use the full file name.
3776 shift
3777 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 $as_echo "$CC" >&6; }
3786 else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3793 if test -z "$CC"; then
3794 if test -n "$ac_tool_prefix"; then
3795 for ac_prog in cl.exe
3797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if test "${ac_cv_prog_CC+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 if test -n "$CC"; then
3805 ac_cv_prog_CC="$CC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3818 done
3819 done
3820 IFS=$as_save_IFS
3824 CC=$ac_cv_prog_CC
3825 if test -n "$CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3827 $as_echo "$CC" >&6; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3834 test -n "$CC" && break
3835 done
3837 if test -z "$CC"; then
3838 ac_ct_CC=$CC
3839 for ac_prog in cl.exe
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 if test -n "$ac_ct_CC"; then
3849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 ac_cv_prog_ac_ct_CC="$ac_prog"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3862 done
3863 done
3864 IFS=$as_save_IFS
3868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3869 if test -n "$ac_ct_CC"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3871 $as_echo "$ac_ct_CC" >&6; }
3872 else
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3878 test -n "$ac_ct_CC" && break
3879 done
3881 if test "x$ac_ct_CC" = x; then
3882 CC=""
3883 else
3884 case $cross_compiling:$ac_tool_warned in
3885 yes:)
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3888 ac_tool_warned=yes ;;
3889 esac
3890 CC=$ac_ct_CC
3897 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error "no acceptable C compiler found in \$PATH
3900 See \`config.log' for more details." "$LINENO" 5; }
3902 # Provide some information about the compiler.
3903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3904 set X $ac_compile
3905 ac_compiler=$2
3906 for ac_option in --version -v -V -qversion; do
3907 { { ac_try="$ac_compiler $ac_option >&5"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3915 ac_status=$?
3916 if test -s conftest.err; then
3917 sed '10a\
3918 ... rest of stderr output deleted ...
3919 10q' conftest.err >conftest.er1
3920 cat conftest.er1 >&5
3921 rm -f conftest.er1 conftest.err
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }
3925 done
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3931 main ()
3935 return 0;
3937 _ACEOF
3938 ac_clean_files_save=$ac_clean_files
3939 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3940 # Try to create an executable without -o first, disregard a.out.
3941 # It will help us diagnose broken compilers, and finding out an intuition
3942 # of exeext.
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3944 $as_echo_n "checking for C compiler default output file name... " >&6; }
3945 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3947 # The possible output files:
3948 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3950 ac_rmfiles=
3951 for ac_file in $ac_files
3953 case $ac_file in
3954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3955 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3956 esac
3957 done
3958 rm -f $ac_rmfiles
3960 if { { ac_try="$ac_link_default"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_link_default") 2>&5
3968 ac_status=$?
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; then :
3971 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3972 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3973 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3974 # so that the user can short-circuit this test for compilers unknown to
3975 # Autoconf.
3976 for ac_file in $ac_files ''
3978 test -f "$ac_file" || continue
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3982 [ab].out )
3983 # We found the default executable, but exeext='' is most
3984 # certainly right.
3985 break;;
3986 *.* )
3987 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3988 then :; else
3989 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3991 # We set ac_cv_exeext here because the later test for it is not
3992 # safe: cross compilers may not add the suffix if given an `-o'
3993 # argument, so we may need to know it at that point already.
3994 # Even if this section looks crufty: it has the advantage of
3995 # actually working.
3996 break;;
3998 break;;
3999 esac
4000 done
4001 test "$ac_cv_exeext" = no && ac_cv_exeext=
4003 else
4004 ac_file=''
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4007 $as_echo "$ac_file" >&6; }
4008 if test -z "$ac_file"; then :
4009 $as_echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014 { as_fn_set_status 77
4015 as_fn_error "C compiler cannot create executables
4016 See \`config.log' for more details." "$LINENO" 5; }; }
4018 ac_exeext=$ac_cv_exeext
4020 # Check that the compiler produces executables we can run. If not, either
4021 # the compiler is broken, or we cross compile.
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4023 $as_echo_n "checking whether the C compiler works... " >&6; }
4024 # If not cross compiling, check that we can run a simple program.
4025 if test "$cross_compiling" != yes; then
4026 if { ac_try='./$ac_file'
4027 { { case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_try") 2>&5
4034 ac_status=$?
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }; }; then
4037 cross_compiling=no
4038 else
4039 if test "$cross_compiling" = maybe; then
4040 cross_compiling=yes
4041 else
4042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error "cannot run C compiled programs.
4045 If you meant to cross compile, use \`--host'.
4046 See \`config.log' for more details." "$LINENO" 5; }
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4051 $as_echo "yes" >&6; }
4053 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4054 ac_clean_files=$ac_clean_files_save
4055 # Check that the compiler produces executables we can run. If not, either
4056 # the compiler is broken, or we cross compile.
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4058 $as_echo_n "checking whether we are cross compiling... " >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4060 $as_echo "$cross_compiling" >&6; }
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4063 $as_echo_n "checking for suffix of executables... " >&6; }
4064 if { { ac_try="$ac_link"
4065 case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068 esac
4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 $as_echo "$ac_try_echo"; } >&5
4071 (eval "$ac_link") 2>&5
4072 ac_status=$?
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }; then :
4075 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4076 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4077 # work properly (i.e., refer to `conftest.exe'), while it won't with
4078 # `rm'.
4079 for ac_file in conftest.exe conftest conftest.*; do
4080 test -f "$ac_file" || continue
4081 case $ac_file in
4082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4083 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4084 break;;
4085 * ) break;;
4086 esac
4087 done
4088 else
4089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091 as_fn_error "cannot compute suffix of executables: cannot compile and link
4092 See \`config.log' for more details." "$LINENO" 5; }
4094 rm -f conftest$ac_cv_exeext
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4096 $as_echo "$ac_cv_exeext" >&6; }
4098 rm -f conftest.$ac_ext
4099 EXEEXT=$ac_cv_exeext
4100 ac_exeext=$EXEEXT
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4102 $as_echo_n "checking for suffix of object files... " >&6; }
4103 if test "${ac_cv_objext+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4110 main ()
4114 return 0;
4116 _ACEOF
4117 rm -f conftest.o conftest.obj
4118 if { { ac_try="$ac_compile"
4119 case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122 esac
4123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124 $as_echo "$ac_try_echo"; } >&5
4125 (eval "$ac_compile") 2>&5
4126 ac_status=$?
4127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128 test $ac_status = 0; }; then :
4129 for ac_file in conftest.o conftest.obj conftest.*; do
4130 test -f "$ac_file" || continue;
4131 case $ac_file in
4132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4133 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4134 break;;
4135 esac
4136 done
4137 else
4138 $as_echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4143 as_fn_error "cannot compute suffix of object files: cannot compile
4144 See \`config.log' for more details." "$LINENO" 5; }
4146 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4149 $as_echo "$ac_cv_objext" >&6; }
4150 OBJEXT=$ac_cv_objext
4151 ac_objext=$OBJEXT
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4153 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4154 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4163 #ifndef __GNUC__
4164 choke me
4165 #endif
4168 return 0;
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_compiler_gnu=yes
4173 else
4174 ac_compiler_gnu=no
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4181 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4182 if test $ac_compiler_gnu = yes; then
4183 GCC=yes
4184 else
4185 GCC=
4187 ac_test_CFLAGS=${CFLAGS+set}
4188 ac_save_CFLAGS=$CFLAGS
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4190 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4191 if test "${ac_cv_prog_cc_g+set}" = set; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 ac_save_c_werror_flag=$ac_c_werror_flag
4195 ac_c_werror_flag=yes
4196 ac_cv_prog_cc_g=no
4197 CFLAGS="-g"
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4202 main ()
4206 return 0;
4208 _ACEOF
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_g=yes
4211 else
4212 CFLAGS=""
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4217 main ()
4221 return 0;
4223 _ACEOF
4224 if ac_fn_c_try_compile "$LINENO"; then :
4226 else
4227 ac_c_werror_flag=$ac_save_c_werror_flag
4228 CFLAGS="-g"
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4233 main ()
4237 return 0;
4239 _ACEOF
4240 if ac_fn_c_try_compile "$LINENO"; then :
4241 ac_cv_prog_cc_g=yes
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4251 $as_echo "$ac_cv_prog_cc_g" >&6; }
4252 if test "$ac_test_CFLAGS" = set; then
4253 CFLAGS=$ac_save_CFLAGS
4254 elif test $ac_cv_prog_cc_g = yes; then
4255 if test "$GCC" = yes; then
4256 CFLAGS="-g -O2"
4257 else
4258 CFLAGS="-g"
4260 else
4261 if test "$GCC" = yes; then
4262 CFLAGS="-O2"
4263 else
4264 CFLAGS=
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4268 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4269 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 ac_cv_prog_cc_c89=no
4273 ac_save_CC=$CC
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 #include <stdarg.h>
4277 #include <stdio.h>
4278 #include <sys/types.h>
4279 #include <sys/stat.h>
4280 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4281 struct buf { int x; };
4282 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4283 static char *e (p, i)
4284 char **p;
4285 int i;
4287 return p[i];
4289 static char *f (char * (*g) (char **, int), char **p, ...)
4291 char *s;
4292 va_list v;
4293 va_start (v,p);
4294 s = g (p, va_arg (v,int));
4295 va_end (v);
4296 return s;
4299 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4300 function prototypes and stuff, but not '\xHH' hex character constants.
4301 These don't provoke an error unfortunately, instead are silently treated
4302 as 'x'. The following induces an error, until -std is added to get
4303 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4304 array size at least. It's necessary to write '\x00'==0 to get something
4305 that's true only with -std. */
4306 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4308 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4309 inside strings and character constants. */
4310 #define FOO(x) 'x'
4311 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4313 int test (int i, double x);
4314 struct s1 {int (*f) (int a);};
4315 struct s2 {int (*f) (double a);};
4316 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4317 int argc;
4318 char **argv;
4320 main ()
4322 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4324 return 0;
4326 _ACEOF
4327 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4328 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4330 CC="$ac_save_CC $ac_arg"
4331 if ac_fn_c_try_compile "$LINENO"; then :
4332 ac_cv_prog_cc_c89=$ac_arg
4334 rm -f core conftest.err conftest.$ac_objext
4335 test "x$ac_cv_prog_cc_c89" != "xno" && break
4336 done
4337 rm -f conftest.$ac_ext
4338 CC=$ac_save_CC
4341 # AC_CACHE_VAL
4342 case "x$ac_cv_prog_cc_c89" in
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4345 $as_echo "none needed" >&6; } ;;
4346 xno)
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4348 $as_echo "unsupported" >&6; } ;;
4350 CC="$CC $ac_cv_prog_cc_c89"
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4352 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4353 esac
4354 if test "x$ac_cv_prog_cc_c89" != xno; then :
4358 ac_ext=c
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 DEPDIR="${am__leading_dot}deps"
4365 ac_config_commands="$ac_config_commands depfiles"
4368 am_make=${MAKE-make}
4369 cat > confinc << 'END'
4370 am__doit:
4371 @echo this is the am__doit target
4372 .PHONY: am__doit
4374 # If we don't find an include directive, just comment out the code.
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4376 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4377 am__include="#"
4378 am__quote=
4379 _am_result=none
4380 # First try GNU make style include.
4381 echo "include confinc" > confmf
4382 # Ignore all kinds of additional output from `make'.
4383 case `$am_make -s -f confmf 2> /dev/null` in #(
4384 *the\ am__doit\ target*)
4385 am__include=include
4386 am__quote=
4387 _am_result=GNU
4389 esac
4390 # Now try BSD make style include.
4391 if test "$am__include" = "#"; then
4392 echo '.include "confinc"' > confmf
4393 case `$am_make -s -f confmf 2> /dev/null` in #(
4394 *the\ am__doit\ target*)
4395 am__include=.include
4396 am__quote="\""
4397 _am_result=BSD
4399 esac
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4404 $as_echo "$_am_result" >&6; }
4405 rm -f confinc confmf
4407 # Check whether --enable-dependency-tracking was given.
4408 if test "${enable_dependency_tracking+set}" = set; then :
4409 enableval=$enable_dependency_tracking;
4412 if test "x$enable_dependency_tracking" != xno; then
4413 am_depcomp="$ac_aux_dir/depcomp"
4414 AMDEPBACKSLASH='\'
4416 if test "x$enable_dependency_tracking" != xno; then
4417 AMDEP_TRUE=
4418 AMDEP_FALSE='#'
4419 else
4420 AMDEP_TRUE='#'
4421 AMDEP_FALSE=
4426 depcc="$CC" am_compiler_list=
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4429 $as_echo_n "checking dependency style of $depcc... " >&6; }
4430 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4434 # We make a subdir and do the tests there. Otherwise we can end up
4435 # making bogus files that we don't know about and never remove. For
4436 # instance it was reported that on HP-UX the gcc test will end up
4437 # making a dummy file named `D' -- because `-MD' means `put the output
4438 # in D'.
4439 mkdir conftest.dir
4440 # Copy depcomp to subdir because otherwise we won't find it if we're
4441 # using a relative directory.
4442 cp "$am_depcomp" conftest.dir
4443 cd conftest.dir
4444 # We will build objects and dependencies in a subdirectory because
4445 # it helps to detect inapplicable dependency modes. For instance
4446 # both Tru64's cc and ICC support -MD to output dependencies as a
4447 # side effect of compilation, but ICC will put the dependencies in
4448 # the current directory while Tru64 will put them in the object
4449 # directory.
4450 mkdir sub
4452 am_cv_CC_dependencies_compiler_type=none
4453 if test "$am_compiler_list" = ""; then
4454 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4456 am__universal=false
4457 case " $depcc " in #(
4458 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4459 esac
4461 for depmode in $am_compiler_list; do
4462 # Setup a source with many dependencies, because some compilers
4463 # like to wrap large dependency lists on column 80 (with \), and
4464 # we should not choose a depcomp mode which is confused by this.
4466 # We need to recreate these files for each test, as the compiler may
4467 # overwrite some of them when testing with obscure command lines.
4468 # This happens at least with the AIX C compiler.
4469 : > sub/conftest.c
4470 for i in 1 2 3 4 5 6; do
4471 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4472 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4473 # Solaris 8's {/usr,}/bin/sh.
4474 touch sub/conftst$i.h
4475 done
4476 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4478 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4479 # mode. It turns out that the SunPro C++ compiler does not properly
4480 # handle `-M -o', and we need to detect this. Also, some Intel
4481 # versions had trouble with output in subdirs
4482 am__obj=sub/conftest.${OBJEXT-o}
4483 am__minus_obj="-o $am__obj"
4484 case $depmode in
4485 gcc)
4486 # This depmode causes a compiler race in universal mode.
4487 test "$am__universal" = false || continue
4489 nosideeffect)
4490 # after this tag, mechanisms are not by side-effect, so they'll
4491 # only be used when explicitly requested
4492 if test "x$enable_dependency_tracking" = xyes; then
4493 continue
4494 else
4495 break
4498 msvisualcpp | msvcmsys)
4499 # This compiler won't grok `-c -o', but also, the minuso test has
4500 # not run yet. These depmodes are late enough in the game, and
4501 # so weak that their functioning should not be impacted.
4502 am__obj=conftest.${OBJEXT-o}
4503 am__minus_obj=
4505 none) break ;;
4506 esac
4507 if depmode=$depmode \
4508 source=sub/conftest.c object=$am__obj \
4509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4510 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4511 >/dev/null 2>conftest.err &&
4512 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4514 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4516 # icc doesn't choke on unknown options, it will just issue warnings
4517 # or remarks (even with -Werror). So we grep stderr for any message
4518 # that says an option was ignored or not supported.
4519 # When given -MP, icc 7.0 and 7.1 complain thusly:
4520 # icc: Command line warning: ignoring option '-M'; no argument required
4521 # The diagnosis changed in icc 8.0:
4522 # icc: Command line remark: option '-MP' not supported
4523 if (grep 'ignoring option' conftest.err ||
4524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4525 am_cv_CC_dependencies_compiler_type=$depmode
4526 break
4529 done
4531 cd ..
4532 rm -rf conftest.dir
4533 else
4534 am_cv_CC_dependencies_compiler_type=none
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4539 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4540 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4543 test "x$enable_dependency_tracking" != xno \
4544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4545 am__fastdepCC_TRUE=
4546 am__fastdepCC_FALSE='#'
4547 else
4548 am__fastdepCC_TRUE='#'
4549 am__fastdepCC_FALSE=
4558 # If UPCFLAGS hasn't been set explicitly then default to "$CFLAGS".
4560 if test x"$UPCFLAGS" = "x"; then
4561 UPCFLAGS="$CFLAGS"
4566 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4567 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4568 # in both places for now and restore CFLAGS at the end of config.
4569 save_CFLAGS="$CFLAGS"
4571 # Add -Wall -Werror if we are using GCC.
4572 if test "x$GCC" = "xyes"; then
4573 XCFLAGS="$XCFLAGS -Wall -Werror"
4576 if echo "$CC" | grep '/xgcc ' >/dev/null 2>&1; then
4577 UPC=`echo "$CC" | sed -e 's=/xgcc =/gupc ='`
4578 else
4579 as_fn_error "cannot create UPC from CC because it does not contain the
4580 string '/xgcc '; the value of CC is: \"$CC\"" "$LINENO" 5
4582 # The just built UPC compiler is not fully functional as it is
4583 # unable to auto pre-include "gcc-upc.h" and "gcc-upc-lib.h".
4584 # Make sure that "upc-pre-include" feature is disabled for any of the
4585 # UPC program checks (e.g. checking for dependency options).
4586 saved_UPC="$UPC"
4587 UPC="$UPC -fno-upc-pre-include"
4588 if test -n "$ac_tool_prefix"; then
4589 for ac_prog in upcc upc
4591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if test "${ac_cv_prog_UPC+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$UPC"; then
4599 ac_cv_prog_UPC="$UPC" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_UPC="$ac_tool_prefix$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4612 done
4613 done
4614 IFS=$as_save_IFS
4618 UPC=$ac_cv_prog_UPC
4619 if test -n "$UPC"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPC" >&5
4621 $as_echo "$UPC" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4628 test -n "$UPC" && break
4629 done
4631 if test -z "$UPC"; then
4632 ac_ct_UPC=$UPC
4633 for ac_prog in upcc upc
4635 # Extract the first word of "$ac_prog", so it can be a program name with args.
4636 set dummy $ac_prog; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if test "${ac_cv_prog_ac_ct_UPC+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$ac_ct_UPC"; then
4643 ac_cv_prog_ac_ct_UPC="$ac_ct_UPC" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_ac_ct_UPC="$ac_prog"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4656 done
4657 done
4658 IFS=$as_save_IFS
4662 ac_ct_UPC=$ac_cv_prog_ac_ct_UPC
4663 if test -n "$ac_ct_UPC"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_UPC" >&5
4665 $as_echo "$ac_ct_UPC" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4672 test -n "$ac_ct_UPC" && break
4673 done
4675 if test "x$ac_ct_UPC" = x; then
4676 UPC=":"
4677 else
4678 case $cross_compiling:$ac_tool_warned in
4679 yes:)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4683 esac
4684 UPC=$ac_ct_UPC
4688 if test "$UPC" = :; then
4689 { as_fn_set_status 77
4690 as_fn_error "no Unified Parallel C compiler was found" "$LINENO" 5; }
4693 depcc="$UPC" am_compiler_list=
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4696 $as_echo_n "checking dependency style of $depcc... " >&6; }
4697 if test "${am_cv_UPC_dependencies_compiler_type+set}" = set; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4701 # We make a subdir and do the tests there. Otherwise we can end up
4702 # making bogus files that we don't know about and never remove. For
4703 # instance it was reported that on HP-UX the gcc test will end up
4704 # making a dummy file named `D' -- because `-MD' means `put the output
4705 # in D'.
4706 mkdir conftest.dir
4707 # Copy depcomp to subdir because otherwise we won't find it if we're
4708 # using a relative directory.
4709 cp "$am_depcomp" conftest.dir
4710 cd conftest.dir
4711 # We will build objects and dependencies in a subdirectory because
4712 # it helps to detect inapplicable dependency modes. For instance
4713 # both Tru64's cc and ICC support -MD to output dependencies as a
4714 # side effect of compilation, but ICC will put the dependencies in
4715 # the current directory while Tru64 will put them in the object
4716 # directory.
4717 mkdir sub
4719 am_cv_UPC_dependencies_compiler_type=none
4720 if test "$am_compiler_list" = ""; then
4721 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4723 am__universal=false
4726 for depmode in $am_compiler_list; do
4727 # Setup a source with many dependencies, because some compilers
4728 # like to wrap large dependency lists on column 80 (with \), and
4729 # we should not choose a depcomp mode which is confused by this.
4731 # We need to recreate these files for each test, as the compiler may
4732 # overwrite some of them when testing with obscure command lines.
4733 # This happens at least with the AIX C compiler.
4734 : > sub/conftest.c
4735 for i in 1 2 3 4 5 6; do
4736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4737 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4738 # Solaris 8's {/usr,}/bin/sh.
4739 touch sub/conftst$i.h
4740 done
4741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4744 # mode. It turns out that the SunPro C++ compiler does not properly
4745 # handle `-M -o', and we need to detect this. Also, some Intel
4746 # versions had trouble with output in subdirs
4747 am__obj=sub/conftest.${OBJEXT-o}
4748 am__minus_obj="-o $am__obj"
4749 case $depmode in
4750 gcc)
4751 # This depmode causes a compiler race in universal mode.
4752 test "$am__universal" = false || continue
4754 nosideeffect)
4755 # after this tag, mechanisms are not by side-effect, so they'll
4756 # only be used when explicitly requested
4757 if test "x$enable_dependency_tracking" = xyes; then
4758 continue
4759 else
4760 break
4763 msvisualcpp | msvcmsys)
4764 # This compiler won't grok `-c -o', but also, the minuso test has
4765 # not run yet. These depmodes are late enough in the game, and
4766 # so weak that their functioning should not be impacted.
4767 am__obj=conftest.${OBJEXT-o}
4768 am__minus_obj=
4770 none) break ;;
4771 esac
4772 if depmode=$depmode \
4773 source=sub/conftest.c object=$am__obj \
4774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4776 >/dev/null 2>conftest.err &&
4777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4781 # icc doesn't choke on unknown options, it will just issue warnings
4782 # or remarks (even with -Werror). So we grep stderr for any message
4783 # that says an option was ignored or not supported.
4784 # When given -MP, icc 7.0 and 7.1 complain thusly:
4785 # icc: Command line warning: ignoring option '-M'; no argument required
4786 # The diagnosis changed in icc 8.0:
4787 # icc: Command line remark: option '-MP' not supported
4788 if (grep 'ignoring option' conftest.err ||
4789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4790 am_cv_UPC_dependencies_compiler_type=$depmode
4791 break
4794 done
4796 cd ..
4797 rm -rf conftest.dir
4798 else
4799 am_cv_UPC_dependencies_compiler_type=none
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_UPC_dependencies_compiler_type" >&5
4804 $as_echo "$am_cv_UPC_dependencies_compiler_type" >&6; }
4805 UPCDEPMODE=depmode=$am_cv_UPC_dependencies_compiler_type
4808 test "x$enable_dependency_tracking" != xno \
4809 && test "$am_cv_UPC_dependencies_compiler_type" = gcc3; then
4810 am__fastdepUPC_TRUE=
4811 am__fastdepUPC_FALSE='#'
4812 else
4813 am__fastdepUPC_TRUE='#'
4814 am__fastdepUPC_FALSE=
4818 UPC="$saved_UPC"
4820 # Find other programs we need.
4821 if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4823 set dummy ${ac_tool_prefix}ar; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_AR+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 if test -n "$AR"; then
4830 ac_cv_prog_AR="$AR" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_AR="${ac_tool_prefix}ar"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4843 done
4844 done
4845 IFS=$as_save_IFS
4849 AR=$ac_cv_prog_AR
4850 if test -n "$AR"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4852 $as_echo "$AR" >&6; }
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4860 if test -z "$ac_cv_prog_AR"; then
4861 ac_ct_AR=$AR
4862 # Extract the first word of "ar", so it can be a program name with args.
4863 set dummy ar; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test -n "$ac_ct_AR"; then
4870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ac_ct_AR="ar"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4883 done
4884 done
4885 IFS=$as_save_IFS
4889 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4890 if test -n "$ac_ct_AR"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4892 $as_echo "$ac_ct_AR" >&6; }
4893 else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4898 if test "x$ac_ct_AR" = x; then
4899 AR=""
4900 else
4901 case $cross_compiling:$ac_tool_warned in
4902 yes:)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned=yes ;;
4906 esac
4907 AR=$ac_ct_AR
4909 else
4910 AR="$ac_cv_prog_AR"
4913 if test -n "$ac_tool_prefix"; then
4914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$RANLIB"; then
4922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4937 IFS=$as_save_IFS
4941 RANLIB=$ac_cv_prog_RANLIB
4942 if test -n "$RANLIB"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4944 $as_echo "$RANLIB" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4952 if test -z "$ac_cv_prog_RANLIB"; then
4953 ac_ct_RANLIB=$RANLIB
4954 # Extract the first word of "ranlib", so it can be a program name with args.
4955 set dummy ranlib; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$ac_ct_RANLIB"; then
4962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_prog_ac_ct_RANLIB="ranlib"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4975 done
4976 done
4977 IFS=$as_save_IFS
4981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4982 if test -n "$ac_ct_RANLIB"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4984 $as_echo "$ac_ct_RANLIB" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4990 if test "x$ac_ct_RANLIB" = x; then
4991 RANLIB="ranlib-not-found-in-path-error"
4992 else
4993 case $cross_compiling:$ac_tool_warned in
4994 yes:)
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997 ac_tool_warned=yes ;;
4998 esac
4999 RANLIB=$ac_ct_RANLIB
5001 else
5002 RANLIB="$ac_cv_prog_RANLIB"
5005 # Extract the first word of "perl", so it can be a program name with args.
5006 set dummy perl; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_path_PERL+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 case $PERL in
5013 [\\/]* | ?:[\\/]*)
5014 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5028 done
5029 done
5030 IFS=$as_save_IFS
5032 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5034 esac
5036 PERL=$ac_cv_path_PERL
5037 if test -n "$PERL"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5039 $as_echo "$PERL" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5046 # Extract the first word of "addr2line", so it can be a program name with args.
5047 set dummy addr2line; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_path_ADDR2LINE+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 case $ADDR2LINE in
5054 [\\/]* | ?:[\\/]*)
5055 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5069 done
5070 done
5071 IFS=$as_save_IFS
5073 test -z "$ac_cv_path_ADDR2LINE" && ac_cv_path_ADDR2LINE="addr2line-not-found-in-path-error"
5075 esac
5077 ADDR2LINE=$ac_cv_path_ADDR2LINE
5078 if test -n "$ADDR2LINE"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ADDR2LINE" >&5
5080 $as_echo "$ADDR2LINE" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5088 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5089 set x ${MAKE-make}
5090 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5091 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 cat >conftest.make <<\_ACEOF
5095 SHELL = /bin/sh
5096 all:
5097 @echo '@@@%%%=$(MAKE)=@@@%%%'
5098 _ACEOF
5099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5100 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5101 *@@@%%%=?*=@@@%%%*)
5102 eval ac_cv_prog_make_${ac_make}_set=yes;;
5104 eval ac_cv_prog_make_${ac_make}_set=no;;
5105 esac
5106 rm -f conftest.make
5108 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5110 $as_echo "yes" >&6; }
5111 SET_MAKE=
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5115 SET_MAKE="MAKE=${MAKE-make}"
5120 # See if makeinfo has been installed and is modern enough
5121 # that we can use it.
5123 # Extract the first word of "makeinfo", so it can be a program name with args.
5124 set dummy makeinfo; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -n "$MAKEINFO"; then
5131 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_MAKEINFO="makeinfo"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5144 done
5145 done
5146 IFS=$as_save_IFS
5150 MAKEINFO=$ac_cv_prog_MAKEINFO
5151 if test -n "$MAKEINFO"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5153 $as_echo "$MAKEINFO" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5160 if test -n "$MAKEINFO"; then
5161 # Found it, now check the version.
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5163 $as_echo_n "checking for modern makeinfo... " >&6; }
5164 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5168 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5170 case $ac_prog_version in
5171 '') gcc_cv_prog_makeinfo_modern=no;;
5172 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5173 *) gcc_cv_prog_makeinfo_modern=no;;
5174 esac
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5178 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5179 else
5180 gcc_cv_prog_makeinfo_modern=no
5182 if test $gcc_cv_prog_makeinfo_modern = no; then
5183 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5186 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5187 BUILD_INFO_TRUE=
5188 BUILD_INFO_FALSE='#'
5189 else
5190 BUILD_INFO_TRUE='#'
5191 BUILD_INFO_FALSE=
5196 # libgupc cannot be built as shared library
5197 enable_shared=no
5198 # Configure libtool
5199 # Check whether --enable-shared was given.
5200 if test "${enable_shared+set}" = set; then :
5201 enableval=$enable_shared; p=${PACKAGE-default}
5202 case $enableval in
5203 yes) enable_shared=yes ;;
5204 no) enable_shared=no ;;
5206 enable_shared=no
5207 # Look at the argument we got. We use all the common list separators.
5208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5209 for pkg in $enableval; do
5210 IFS="$lt_save_ifs"
5211 if test "X$pkg" = "X$p"; then
5212 enable_shared=yes
5214 done
5215 IFS="$lt_save_ifs"
5217 esac
5218 else
5219 enable_shared=no
5230 case `pwd` in
5231 *\ * | *\ *)
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5233 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5234 esac
5238 macro_version='2.2.7a'
5239 macro_revision='1.3134'
5253 ltmain="$ac_aux_dir/ltmain.sh"
5255 # Backslashify metacharacters that are still active within
5256 # double-quoted strings.
5257 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5259 # Same as above, but do not quote variable references.
5260 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5262 # Sed substitution to delay expansion of an escaped shell variable in a
5263 # double_quote_subst'ed string.
5264 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5266 # Sed substitution to delay expansion of an escaped single quote.
5267 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5269 # Sed substitution to avoid accidental globbing in evaled expressions
5270 no_glob_subst='s/\*/\\\*/g'
5272 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5273 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5274 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5277 $as_echo_n "checking how to print strings... " >&6; }
5278 # Test print first, because it will be a builtin if present.
5279 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5280 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5281 ECHO='print -r --'
5282 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5283 ECHO='printf %s\n'
5284 else
5285 # Use this function as a fallback that always works.
5286 func_fallback_echo ()
5288 eval 'cat <<_LTECHO_EOF
5290 _LTECHO_EOF'
5292 ECHO='func_fallback_echo'
5295 # func_echo_all arg...
5296 # Invoke $ECHO with all args, space-separated.
5297 func_echo_all ()
5299 $ECHO ""
5302 case "$ECHO" in
5303 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5304 $as_echo "printf" >&6; } ;;
5305 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5306 $as_echo "print -r" >&6; } ;;
5307 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5308 $as_echo "cat" >&6; } ;;
5309 esac
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5325 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5326 if test "${ac_cv_path_SED+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5330 for ac_i in 1 2 3 4 5 6 7; do
5331 ac_script="$ac_script$as_nl$ac_script"
5332 done
5333 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5334 { ac_script=; unset ac_script;}
5335 if test -z "$SED"; then
5336 ac_path_SED_found=false
5337 # Loop through the user's path and test for each of PROGNAME-LIST
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_prog in sed gsed; do
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5346 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5347 # Check for GNU ac_path_SED and select it if it is found.
5348 # Check for GNU $ac_path_SED
5349 case `"$ac_path_SED" --version 2>&1` in
5350 *GNU*)
5351 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5353 ac_count=0
5354 $as_echo_n 0123456789 >"conftest.in"
5355 while :
5357 cat "conftest.in" "conftest.in" >"conftest.tmp"
5358 mv "conftest.tmp" "conftest.in"
5359 cp "conftest.in" "conftest.nl"
5360 $as_echo '' >> "conftest.nl"
5361 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5363 as_fn_arith $ac_count + 1 && ac_count=$as_val
5364 if test $ac_count -gt ${ac_path_SED_max-0}; then
5365 # Best one so far, save it but keep looking for a better one
5366 ac_cv_path_SED="$ac_path_SED"
5367 ac_path_SED_max=$ac_count
5369 # 10*(2^10) chars as input seems more than enough
5370 test $ac_count -gt 10 && break
5371 done
5372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5373 esac
5375 $ac_path_SED_found && break 3
5376 done
5377 done
5378 done
5379 IFS=$as_save_IFS
5380 if test -z "$ac_cv_path_SED"; then
5381 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5383 else
5384 ac_cv_path_SED=$SED
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5389 $as_echo "$ac_cv_path_SED" >&6; }
5390 SED="$ac_cv_path_SED"
5391 rm -f conftest.sed
5393 test -z "$SED" && SED=sed
5394 Xsed="$SED -e 1s/^X//"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5407 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5408 if test "${ac_cv_path_GREP+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test -z "$GREP"; then
5412 ac_path_GREP_found=false
5413 # Loop through the user's path and test for each of PROGNAME-LIST
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_prog in grep ggrep; do
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5422 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5423 # Check for GNU ac_path_GREP and select it if it is found.
5424 # Check for GNU $ac_path_GREP
5425 case `"$ac_path_GREP" --version 2>&1` in
5426 *GNU*)
5427 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5429 ac_count=0
5430 $as_echo_n 0123456789 >"conftest.in"
5431 while :
5433 cat "conftest.in" "conftest.in" >"conftest.tmp"
5434 mv "conftest.tmp" "conftest.in"
5435 cp "conftest.in" "conftest.nl"
5436 $as_echo 'GREP' >> "conftest.nl"
5437 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5439 as_fn_arith $ac_count + 1 && ac_count=$as_val
5440 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5441 # Best one so far, save it but keep looking for a better one
5442 ac_cv_path_GREP="$ac_path_GREP"
5443 ac_path_GREP_max=$ac_count
5445 # 10*(2^10) chars as input seems more than enough
5446 test $ac_count -gt 10 && break
5447 done
5448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5449 esac
5451 $ac_path_GREP_found && break 3
5452 done
5453 done
5454 done
5455 IFS=$as_save_IFS
5456 if test -z "$ac_cv_path_GREP"; then
5457 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5459 else
5460 ac_cv_path_GREP=$GREP
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5465 $as_echo "$ac_cv_path_GREP" >&6; }
5466 GREP="$ac_cv_path_GREP"
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5470 $as_echo_n "checking for egrep... " >&6; }
5471 if test "${ac_cv_path_EGREP+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5475 then ac_cv_path_EGREP="$GREP -E"
5476 else
5477 if test -z "$EGREP"; then
5478 ac_path_EGREP_found=false
5479 # Loop through the user's path and test for each of PROGNAME-LIST
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 for ac_prog in egrep; do
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5488 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5489 # Check for GNU ac_path_EGREP and select it if it is found.
5490 # Check for GNU $ac_path_EGREP
5491 case `"$ac_path_EGREP" --version 2>&1` in
5492 *GNU*)
5493 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5495 ac_count=0
5496 $as_echo_n 0123456789 >"conftest.in"
5497 while :
5499 cat "conftest.in" "conftest.in" >"conftest.tmp"
5500 mv "conftest.tmp" "conftest.in"
5501 cp "conftest.in" "conftest.nl"
5502 $as_echo 'EGREP' >> "conftest.nl"
5503 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5505 as_fn_arith $ac_count + 1 && ac_count=$as_val
5506 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5507 # Best one so far, save it but keep looking for a better one
5508 ac_cv_path_EGREP="$ac_path_EGREP"
5509 ac_path_EGREP_max=$ac_count
5511 # 10*(2^10) chars as input seems more than enough
5512 test $ac_count -gt 10 && break
5513 done
5514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5515 esac
5517 $ac_path_EGREP_found && break 3
5518 done
5519 done
5520 done
5521 IFS=$as_save_IFS
5522 if test -z "$ac_cv_path_EGREP"; then
5523 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5525 else
5526 ac_cv_path_EGREP=$EGREP
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5532 $as_echo "$ac_cv_path_EGREP" >&6; }
5533 EGREP="$ac_cv_path_EGREP"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5537 $as_echo_n "checking for fgrep... " >&6; }
5538 if test "${ac_cv_path_FGREP+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5542 then ac_cv_path_FGREP="$GREP -F"
5543 else
5544 if test -z "$FGREP"; then
5545 ac_path_FGREP_found=false
5546 # Loop through the user's path and test for each of PROGNAME-LIST
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_prog in fgrep; do
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5555 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5556 # Check for GNU ac_path_FGREP and select it if it is found.
5557 # Check for GNU $ac_path_FGREP
5558 case `"$ac_path_FGREP" --version 2>&1` in
5559 *GNU*)
5560 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5562 ac_count=0
5563 $as_echo_n 0123456789 >"conftest.in"
5564 while :
5566 cat "conftest.in" "conftest.in" >"conftest.tmp"
5567 mv "conftest.tmp" "conftest.in"
5568 cp "conftest.in" "conftest.nl"
5569 $as_echo 'FGREP' >> "conftest.nl"
5570 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5572 as_fn_arith $ac_count + 1 && ac_count=$as_val
5573 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5574 # Best one so far, save it but keep looking for a better one
5575 ac_cv_path_FGREP="$ac_path_FGREP"
5576 ac_path_FGREP_max=$ac_count
5578 # 10*(2^10) chars as input seems more than enough
5579 test $ac_count -gt 10 && break
5580 done
5581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5582 esac
5584 $ac_path_FGREP_found && break 3
5585 done
5586 done
5587 done
5588 IFS=$as_save_IFS
5589 if test -z "$ac_cv_path_FGREP"; then
5590 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5592 else
5593 ac_cv_path_FGREP=$FGREP
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5599 $as_echo "$ac_cv_path_FGREP" >&6; }
5600 FGREP="$ac_cv_path_FGREP"
5603 test -z "$GREP" && GREP=grep
5623 # Check whether --with-gnu-ld was given.
5624 if test "${with_gnu_ld+set}" = set; then :
5625 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5626 else
5627 with_gnu_ld=no
5630 ac_prog=ld
5631 if test "$GCC" = yes; then
5632 # Check if gcc -print-prog-name=ld gives a path.
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5634 $as_echo_n "checking for ld used by $CC... " >&6; }
5635 case $host in
5636 *-*-mingw*)
5637 # gcc leaves a trailing carriage return which upsets mingw
5638 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5640 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5641 esac
5642 case $ac_prog in
5643 # Accept absolute paths.
5644 [\\/]* | ?:[\\/]*)
5645 re_direlt='/[^/][^/]*/\.\./'
5646 # Canonicalize the pathname of ld
5647 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5648 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5649 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5650 done
5651 test -z "$LD" && LD="$ac_prog"
5654 # If it fails, then pretend we aren't using GCC.
5655 ac_prog=ld
5658 # If it is relative, then search for the first ld in PATH.
5659 with_gnu_ld=unknown
5661 esac
5662 elif test "$with_gnu_ld" = yes; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5664 $as_echo_n "checking for GNU ld... " >&6; }
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5667 $as_echo_n "checking for non-GNU ld... " >&6; }
5669 if test "${lt_cv_path_LD+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if test -z "$LD"; then
5673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5674 for ac_dir in $PATH; do
5675 IFS="$lt_save_ifs"
5676 test -z "$ac_dir" && ac_dir=.
5677 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5678 lt_cv_path_LD="$ac_dir/$ac_prog"
5679 # Check to see if the program is GNU ld. I'd rather use --version,
5680 # but apparently some variants of GNU ld only accept -v.
5681 # Break only if it was the GNU/non-GNU ld that we prefer.
5682 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5683 *GNU* | *'with BFD'*)
5684 test "$with_gnu_ld" != no && break
5687 test "$with_gnu_ld" != yes && break
5689 esac
5691 done
5692 IFS="$lt_save_ifs"
5693 else
5694 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5698 LD="$lt_cv_path_LD"
5699 if test -n "$LD"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5701 $as_echo "$LD" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5706 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5708 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5709 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5713 case `$LD -v 2>&1 </dev/null` in
5714 *GNU* | *'with BFD'*)
5715 lt_cv_prog_gnu_ld=yes
5718 lt_cv_prog_gnu_ld=no
5720 esac
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5723 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5724 with_gnu_ld=$lt_cv_prog_gnu_ld
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5735 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5736 if test "${lt_cv_path_NM+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 if test -n "$NM"; then
5740 # Let the user override the test.
5741 lt_cv_path_NM="$NM"
5742 else
5743 lt_nm_to_check="${ac_tool_prefix}nm"
5744 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5745 lt_nm_to_check="$lt_nm_to_check nm"
5747 for lt_tmp_nm in $lt_nm_to_check; do
5748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5749 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5750 IFS="$lt_save_ifs"
5751 test -z "$ac_dir" && ac_dir=.
5752 tmp_nm="$ac_dir/$lt_tmp_nm"
5753 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5754 # Check to see if the nm accepts a BSD-compat flag.
5755 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5756 # nm: unknown option "B" ignored
5757 # Tru64's nm complains that /dev/null is an invalid object file
5758 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5759 */dev/null* | *'Invalid file or object type'*)
5760 lt_cv_path_NM="$tmp_nm -B"
5761 break
5764 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5765 */dev/null*)
5766 lt_cv_path_NM="$tmp_nm -p"
5767 break
5770 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5771 continue # so that we can try to find one that supports BSD flags
5773 esac
5775 esac
5777 done
5778 IFS="$lt_save_ifs"
5779 done
5780 : ${lt_cv_path_NM=no}
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5784 $as_echo "$lt_cv_path_NM" >&6; }
5785 if test "$lt_cv_path_NM" != "no"; then
5786 NM="$lt_cv_path_NM"
5787 else
5788 # Didn't find any BSD compatible name lister, look for dumpbin.
5789 if test -n "$DUMPBIN"; then :
5790 # Let the user override the test.
5791 else
5792 if test -n "$ac_tool_prefix"; then
5793 for ac_prog in dumpbin "link -dump"
5795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if test -n "$DUMPBIN"; then
5803 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5816 done
5817 done
5818 IFS=$as_save_IFS
5822 DUMPBIN=$ac_cv_prog_DUMPBIN
5823 if test -n "$DUMPBIN"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5825 $as_echo "$DUMPBIN" >&6; }
5826 else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5832 test -n "$DUMPBIN" && break
5833 done
5835 if test -z "$DUMPBIN"; then
5836 ac_ct_DUMPBIN=$DUMPBIN
5837 for ac_prog in dumpbin "link -dump"
5839 # Extract the first word of "$ac_prog", so it can be a program name with args.
5840 set dummy $ac_prog; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 if test -n "$ac_ct_DUMPBIN"; then
5847 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5852 IFS=$as_save_IFS
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 break 2
5860 done
5861 done
5862 IFS=$as_save_IFS
5866 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5867 if test -n "$ac_ct_DUMPBIN"; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5869 $as_echo "$ac_ct_DUMPBIN" >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5876 test -n "$ac_ct_DUMPBIN" && break
5877 done
5879 if test "x$ac_ct_DUMPBIN" = x; then
5880 DUMPBIN=":"
5881 else
5882 case $cross_compiling:$ac_tool_warned in
5883 yes:)
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886 ac_tool_warned=yes ;;
5887 esac
5888 DUMPBIN=$ac_ct_DUMPBIN
5892 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5893 *COFF*)
5894 DUMPBIN="$DUMPBIN -symbols"
5897 DUMPBIN=:
5899 esac
5902 if test "$DUMPBIN" != ":"; then
5903 NM="$DUMPBIN"
5906 test -z "$NM" && NM=nm
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5914 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5915 if test "${lt_cv_nm_interface+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 lt_cv_nm_interface="BSD nm"
5919 echo "int some_variable = 0;" > conftest.$ac_ext
5920 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5921 (eval "$ac_compile" 2>conftest.err)
5922 cat conftest.err >&5
5923 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5924 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5925 cat conftest.err >&5
5926 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5927 cat conftest.out >&5
5928 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5929 lt_cv_nm_interface="MS dumpbin"
5931 rm -f conftest*
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5934 $as_echo "$lt_cv_nm_interface" >&6; }
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5937 $as_echo_n "checking whether ln -s works... " >&6; }
5938 LN_S=$as_ln_s
5939 if test "$LN_S" = "ln -s"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5941 $as_echo "yes" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5944 $as_echo "no, using $LN_S" >&6; }
5947 # find the maximum length of command line arguments
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5949 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5950 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5954 teststring="ABCD"
5956 case $build_os in
5957 msdosdjgpp*)
5958 # On DJGPP, this test can blow up pretty badly due to problems in libc
5959 # (any single argument exceeding 2000 bytes causes a buffer overrun
5960 # during glob expansion). Even if it were fixed, the result of this
5961 # check would be larger than it should be.
5962 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5965 gnu*)
5966 # Under GNU Hurd, this test is not required because there is
5967 # no limit to the length of command line arguments.
5968 # Libtool will interpret -1 as no limit whatsoever
5969 lt_cv_sys_max_cmd_len=-1;
5972 cygwin* | mingw* | cegcc*)
5973 # On Win9x/ME, this test blows up -- it succeeds, but takes
5974 # about 5 minutes as the teststring grows exponentially.
5975 # Worse, since 9x/ME are not pre-emptively multitasking,
5976 # you end up with a "frozen" computer, even though with patience
5977 # the test eventually succeeds (with a max line length of 256k).
5978 # Instead, let's just punt: use the minimum linelength reported by
5979 # all of the supported platforms: 8192 (on NT/2K/XP).
5980 lt_cv_sys_max_cmd_len=8192;
5983 mint*)
5984 # On MiNT this can take a long time and run out of memory.
5985 lt_cv_sys_max_cmd_len=8192;
5988 amigaos*)
5989 # On AmigaOS with pdksh, this test takes hours, literally.
5990 # So we just punt and use a minimum line length of 8192.
5991 lt_cv_sys_max_cmd_len=8192;
5994 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5995 # This has been around since 386BSD, at least. Likely further.
5996 if test -x /sbin/sysctl; then
5997 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5998 elif test -x /usr/sbin/sysctl; then
5999 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6000 else
6001 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6003 # And add a safety zone
6004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6008 interix*)
6009 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6010 lt_cv_sys_max_cmd_len=196608
6013 osf*)
6014 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6015 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6016 # nice to cause kernel panics so lets avoid the loop below.
6017 # First set a reasonable default.
6018 lt_cv_sys_max_cmd_len=16384
6020 if test -x /sbin/sysconfig; then
6021 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6022 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6023 esac
6026 sco3.2v5*)
6027 lt_cv_sys_max_cmd_len=102400
6029 sysv5* | sco5v6* | sysv4.2uw2*)
6030 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6031 if test -n "$kargmax"; then
6032 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6033 else
6034 lt_cv_sys_max_cmd_len=32768
6038 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6039 if test -n "$lt_cv_sys_max_cmd_len"; then
6040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6042 else
6043 # Make teststring a little bigger before we do anything with it.
6044 # a 1K string should be a reasonable start.
6045 for i in 1 2 3 4 5 6 7 8 ; do
6046 teststring=$teststring$teststring
6047 done
6048 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6049 # If test is not a shell built-in, we'll probably end up computing a
6050 # maximum length that is only half of the actual maximum length, but
6051 # we can't tell.
6052 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6053 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6054 test $i != 17 # 1/2 MB should be enough
6056 i=`expr $i + 1`
6057 teststring=$teststring$teststring
6058 done
6059 # Only check the string length outside the loop.
6060 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6061 teststring=
6062 # Add a significant safety factor because C++ compilers can tack on
6063 # massive amounts of additional arguments before passing them to the
6064 # linker. It appears as though 1/2 is a usable value.
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6068 esac
6072 if test -n $lt_cv_sys_max_cmd_len ; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6074 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6077 $as_echo "none" >&6; }
6079 max_cmd_len=$lt_cv_sys_max_cmd_len
6086 : ${CP="cp -f"}
6087 : ${MV="mv -f"}
6088 : ${RM="rm -f"}
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6091 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6092 # Try some XSI features
6093 xsi_shell=no
6094 ( _lt_dummy="a/b/c"
6095 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6096 = c,a/b,, \
6097 && eval 'test $(( 1 + 1 )) -eq 2 \
6098 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6099 && xsi_shell=yes
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6101 $as_echo "$xsi_shell" >&6; }
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6105 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6106 lt_shell_append=no
6107 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6108 >/dev/null 2>&1 \
6109 && lt_shell_append=yes
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6111 $as_echo "$lt_shell_append" >&6; }
6114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6115 lt_unset=unset
6116 else
6117 lt_unset=false
6124 # test EBCDIC or ASCII
6125 case `echo X|tr X '\101'` in
6126 A) # ASCII based system
6127 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6128 lt_SP2NL='tr \040 \012'
6129 lt_NL2SP='tr \015\012 \040\040'
6131 *) # EBCDIC based system
6132 lt_SP2NL='tr \100 \n'
6133 lt_NL2SP='tr \r\n \100\100'
6135 esac
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6146 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6147 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 lt_cv_ld_reload_flag='-r'
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6153 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6154 reload_flag=$lt_cv_ld_reload_flag
6155 case $reload_flag in
6156 "" | " "*) ;;
6157 *) reload_flag=" $reload_flag" ;;
6158 esac
6159 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6160 case $host_os in
6161 darwin*)
6162 if test "$GCC" = yes; then
6163 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6164 else
6165 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6168 esac
6178 if test -n "$ac_tool_prefix"; then
6179 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6180 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 if test -n "$OBJDUMP"; then
6187 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6200 done
6201 done
6202 IFS=$as_save_IFS
6206 OBJDUMP=$ac_cv_prog_OBJDUMP
6207 if test -n "$OBJDUMP"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6209 $as_echo "$OBJDUMP" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6217 if test -z "$ac_cv_prog_OBJDUMP"; then
6218 ac_ct_OBJDUMP=$OBJDUMP
6219 # Extract the first word of "objdump", so it can be a program name with args.
6220 set dummy objdump; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 if test -n "$ac_ct_OBJDUMP"; then
6227 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6240 done
6241 done
6242 IFS=$as_save_IFS
6246 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6247 if test -n "$ac_ct_OBJDUMP"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6249 $as_echo "$ac_ct_OBJDUMP" >&6; }
6250 else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6255 if test "x$ac_ct_OBJDUMP" = x; then
6256 OBJDUMP="false"
6257 else
6258 case $cross_compiling:$ac_tool_warned in
6259 yes:)
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262 ac_tool_warned=yes ;;
6263 esac
6264 OBJDUMP=$ac_ct_OBJDUMP
6266 else
6267 OBJDUMP="$ac_cv_prog_OBJDUMP"
6270 test -z "$OBJDUMP" && OBJDUMP=objdump
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6281 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6282 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 lt_cv_file_magic_cmd='$MAGIC_CMD'
6286 lt_cv_file_magic_test_file=
6287 lt_cv_deplibs_check_method='unknown'
6288 # Need to set the preceding variable on all platforms that support
6289 # interlibrary dependencies.
6290 # 'none' -- dependencies not supported.
6291 # `unknown' -- same as none, but documents that we really don't know.
6292 # 'pass_all' -- all dependencies passed with no checks.
6293 # 'test_compile' -- check by making test program.
6294 # 'file_magic [[regex]]' -- check by looking for files in library path
6295 # which responds to the $file_magic_cmd with a given extended regex.
6296 # If you have `file' or equivalent on your system and you're not sure
6297 # whether `pass_all' will *always* work, you probably want this one.
6299 case $host_os in
6300 aix[4-9]*)
6301 lt_cv_deplibs_check_method=pass_all
6304 beos*)
6305 lt_cv_deplibs_check_method=pass_all
6308 bsdi[45]*)
6309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6310 lt_cv_file_magic_cmd='/usr/bin/file -L'
6311 lt_cv_file_magic_test_file=/shlib/libc.so
6314 cygwin*)
6315 # func_win32_libid is a shell function defined in ltmain.sh
6316 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6317 lt_cv_file_magic_cmd='func_win32_libid'
6320 mingw* | pw32*)
6321 # Base MSYS/MinGW do not provide the 'file' command needed by
6322 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6323 # unless we find 'file', for example because we are cross-compiling.
6324 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6325 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6327 lt_cv_file_magic_cmd='func_win32_libid'
6328 else
6329 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6330 lt_cv_file_magic_cmd='$OBJDUMP -f'
6334 cegcc*)
6335 # use the weaker test based on 'objdump'. See mingw*.
6336 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6337 lt_cv_file_magic_cmd='$OBJDUMP -f'
6340 darwin* | rhapsody*)
6341 lt_cv_deplibs_check_method=pass_all
6344 freebsd* | dragonfly*)
6345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6346 case $host_cpu in
6347 i*86 )
6348 # Not sure whether the presence of OpenBSD here was a mistake.
6349 # Let's accept both of them until this is cleared up.
6350 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6351 lt_cv_file_magic_cmd=/usr/bin/file
6352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6354 esac
6355 else
6356 lt_cv_deplibs_check_method=pass_all
6360 gnu*)
6361 lt_cv_deplibs_check_method=pass_all
6364 haiku*)
6365 lt_cv_deplibs_check_method=pass_all
6368 hpux10.20* | hpux11*)
6369 lt_cv_file_magic_cmd=/usr/bin/file
6370 case $host_cpu in
6371 ia64*)
6372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6375 hppa*64*)
6376 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]'
6377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6383 esac
6386 interix[3-9]*)
6387 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6391 irix5* | irix6* | nonstopux*)
6392 case $LD in
6393 *-32|*"-32 ") libmagic=32-bit;;
6394 *-n32|*"-n32 ") libmagic=N32;;
6395 *-64|*"-64 ") libmagic=64-bit;;
6396 *) libmagic=never-match;;
6397 esac
6398 lt_cv_deplibs_check_method=pass_all
6401 # This must be Linux ELF.
6402 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6403 lt_cv_deplibs_check_method=pass_all
6406 netbsd*)
6407 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409 else
6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6414 newos6*)
6415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6416 lt_cv_file_magic_cmd=/usr/bin/file
6417 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6420 *nto* | *qnx*)
6421 lt_cv_deplibs_check_method=pass_all
6424 openbsd*)
6425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427 else
6428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6432 osf3* | osf4* | osf5*)
6433 lt_cv_deplibs_check_method=pass_all
6436 rdos*)
6437 lt_cv_deplibs_check_method=pass_all
6440 solaris*)
6441 lt_cv_deplibs_check_method=pass_all
6444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445 lt_cv_deplibs_check_method=pass_all
6448 sysv4 | sysv4.3*)
6449 case $host_vendor in
6450 motorola)
6451 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]'
6452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6454 ncr)
6455 lt_cv_deplibs_check_method=pass_all
6457 sequent)
6458 lt_cv_file_magic_cmd='/bin/file'
6459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6461 sni)
6462 lt_cv_file_magic_cmd='/bin/file'
6463 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6464 lt_cv_file_magic_test_file=/lib/libc.so
6466 siemens)
6467 lt_cv_deplibs_check_method=pass_all
6470 lt_cv_deplibs_check_method=pass_all
6472 esac
6475 tpf*)
6476 lt_cv_deplibs_check_method=pass_all
6478 esac
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6482 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6483 file_magic_cmd=$lt_cv_file_magic_cmd
6484 deplibs_check_method=$lt_cv_deplibs_check_method
6485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}ar; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_AR+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 if test -n "$AR"; then
6507 ac_cv_prog_AR="$AR" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_AR="${ac_tool_prefix}ar"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6520 done
6521 done
6522 IFS=$as_save_IFS
6526 AR=$ac_cv_prog_AR
6527 if test -n "$AR"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6529 $as_echo "$AR" >&6; }
6530 else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6537 if test -z "$ac_cv_prog_AR"; then
6538 ac_ct_AR=$AR
6539 # Extract the first word of "ar", so it can be a program name with args.
6540 set dummy ar; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$ac_ct_AR"; then
6547 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_ac_ct_AR="ar"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6560 done
6561 done
6562 IFS=$as_save_IFS
6566 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6567 if test -n "$ac_ct_AR"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6569 $as_echo "$ac_ct_AR" >&6; }
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6575 if test "x$ac_ct_AR" = x; then
6576 AR="false"
6577 else
6578 case $cross_compiling:$ac_tool_warned in
6579 yes:)
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6583 esac
6584 AR=$ac_ct_AR
6586 else
6587 AR="$ac_cv_prog_AR"
6590 test -z "$AR" && AR=ar
6591 test -z "$AR_FLAGS" && AR_FLAGS=cru
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}strip; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_STRIP+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 if test -n "$STRIP"; then
6612 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6625 done
6626 done
6627 IFS=$as_save_IFS
6631 STRIP=$ac_cv_prog_STRIP
6632 if test -n "$STRIP"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6634 $as_echo "$STRIP" >&6; }
6635 else
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6642 if test -z "$ac_cv_prog_STRIP"; then
6643 ac_ct_STRIP=$STRIP
6644 # Extract the first word of "strip", so it can be a program name with args.
6645 set dummy strip; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 if test -n "$ac_ct_STRIP"; then
6652 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_STRIP="strip"
6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 break 2
6665 done
6666 done
6667 IFS=$as_save_IFS
6671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6672 if test -n "$ac_ct_STRIP"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6674 $as_echo "$ac_ct_STRIP" >&6; }
6675 else
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6680 if test "x$ac_ct_STRIP" = x; then
6681 STRIP=":"
6682 else
6683 case $cross_compiling:$ac_tool_warned in
6684 yes:)
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687 ac_tool_warned=yes ;;
6688 esac
6689 STRIP=$ac_ct_STRIP
6691 else
6692 STRIP="$ac_cv_prog_STRIP"
6695 test -z "$STRIP" && STRIP=:
6702 if test -n "$ac_tool_prefix"; then
6703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 if test -n "$RANLIB"; then
6711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6724 done
6725 done
6726 IFS=$as_save_IFS
6730 RANLIB=$ac_cv_prog_RANLIB
6731 if test -n "$RANLIB"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6733 $as_echo "$RANLIB" >&6; }
6734 else
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6741 if test -z "$ac_cv_prog_RANLIB"; then
6742 ac_ct_RANLIB=$RANLIB
6743 # Extract the first word of "ranlib", so it can be a program name with args.
6744 set dummy ranlib; ac_word=$2
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746 $as_echo_n "checking for $ac_word... " >&6; }
6747 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 if test -n "$ac_ct_RANLIB"; then
6751 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6752 else
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_prog_ac_ct_RANLIB="ranlib"
6761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6764 done
6765 done
6766 IFS=$as_save_IFS
6770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6771 if test -n "$ac_ct_RANLIB"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6773 $as_echo "$ac_ct_RANLIB" >&6; }
6774 else
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
6779 if test "x$ac_ct_RANLIB" = x; then
6780 RANLIB=":"
6781 else
6782 case $cross_compiling:$ac_tool_warned in
6783 yes:)
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6786 ac_tool_warned=yes ;;
6787 esac
6788 RANLIB=$ac_ct_RANLIB
6790 else
6791 RANLIB="$ac_cv_prog_RANLIB"
6794 test -z "$RANLIB" && RANLIB=:
6801 # Determine commands to create old-style static archives.
6802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6803 old_postinstall_cmds='chmod 644 $oldlib'
6804 old_postuninstall_cmds=
6806 if test -n "$RANLIB"; then
6807 case $host_os in
6808 openbsd*)
6809 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6812 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6814 esac
6815 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6818 case $host_os in
6819 darwin*)
6820 lock_old_archive_extraction=yes ;;
6822 lock_old_archive_extraction=no ;;
6823 esac
6863 # If no C compiler was specified, use CC.
6864 LTCC=${LTCC-"$CC"}
6866 # If no C compiler flags were specified, use CFLAGS.
6867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6869 # Allow CC to be a program name with arguments.
6870 compiler=$CC
6873 # Check for command to grab the raw symbol name followed by C symbol from nm.
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6875 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6876 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6880 # These are sane defaults that work on at least a few old systems.
6881 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6883 # Character class describing NM global symbol codes.
6884 symcode='[BCDEGRST]'
6886 # Regexp to match symbols that can be accessed directly from C.
6887 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6889 # Define system-specific variables.
6890 case $host_os in
6891 aix*)
6892 symcode='[BCDT]'
6894 cygwin* | mingw* | pw32* | cegcc*)
6895 symcode='[ABCDGISTW]'
6897 hpux*)
6898 if test "$host_cpu" = ia64; then
6899 symcode='[ABCDEGRST]'
6902 irix* | nonstopux*)
6903 symcode='[BCDEGRST]'
6905 osf*)
6906 symcode='[BCDEGQRST]'
6908 solaris*)
6909 symcode='[BDRT]'
6911 sco3.2v5*)
6912 symcode='[DT]'
6914 sysv4.2uw2*)
6915 symcode='[DT]'
6917 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6918 symcode='[ABDT]'
6920 sysv4)
6921 symcode='[DFNSTU]'
6923 esac
6925 # If we're using GNU nm, then use its standard symbol codes.
6926 case `$NM -V 2>&1` in
6927 *GNU* | *'with BFD'*)
6928 symcode='[ABCDGIRSTW]' ;;
6929 esac
6931 # Transform an extracted symbol line into a proper C declaration.
6932 # Some systems (esp. on ia64) link data and code symbols differently,
6933 # so use this general approach.
6934 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6936 # Transform an extracted symbol line into symbol name and symbol address
6937 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6938 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'"
6940 # Handle CRLF in mingw tool chain
6941 opt_cr=
6942 case $build_os in
6943 mingw*)
6944 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6946 esac
6948 # Try without a prefix underscore, then with it.
6949 for ac_symprfx in "" "_"; do
6951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6952 symxfrm="\\1 $ac_symprfx\\2 \\2"
6954 # Write the raw and C identifiers.
6955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6956 # Fake it for dumpbin and say T for any non-static function
6957 # and D for any global variable.
6958 # Also find C++ and __fastcall symbols from MSVC++,
6959 # which start with @ or ?.
6960 lt_cv_sys_global_symbol_pipe="$AWK '"\
6961 " {last_section=section; section=\$ 3};"\
6962 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6963 " \$ 0!~/External *\|/{next};"\
6964 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6965 " {if(hide[section]) next};"\
6966 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6967 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6968 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6969 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6970 " ' prfx=^$ac_symprfx"
6971 else
6972 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6975 # Check to see that the pipe works correctly.
6976 pipe_works=no
6978 rm -f conftest*
6979 cat > conftest.$ac_ext <<_LT_EOF
6980 #ifdef __cplusplus
6981 extern "C" {
6982 #endif
6983 char nm_test_var;
6984 void nm_test_func(void);
6985 void nm_test_func(void){}
6986 #ifdef __cplusplus
6988 #endif
6989 int main(){nm_test_var='a';nm_test_func();return(0);}
6990 _LT_EOF
6992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993 (eval $ac_compile) 2>&5
6994 ac_status=$?
6995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996 test $ac_status = 0; }; then
6997 # Now try to grab the symbols.
6998 nlist=conftest.nm
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7000 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7001 ac_status=$?
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; } && test -s "$nlist"; then
7004 # Try sorting and uniquifying the output.
7005 if sort "$nlist" | uniq > "$nlist"T; then
7006 mv -f "$nlist"T "$nlist"
7007 else
7008 rm -f "$nlist"T
7011 # Make sure that we snagged all the symbols we need.
7012 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7013 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7014 cat <<_LT_EOF > conftest.$ac_ext
7015 #ifdef __cplusplus
7016 extern "C" {
7017 #endif
7019 _LT_EOF
7020 # Now generate the symbol file.
7021 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7023 cat <<_LT_EOF >> conftest.$ac_ext
7025 /* The mapping between symbol names and symbols. */
7026 const struct {
7027 const char *name;
7028 void *address;
7030 lt__PROGRAM__LTX_preloaded_symbols[] =
7032 { "@PROGRAM@", (void *) 0 },
7033 _LT_EOF
7034 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7035 cat <<\_LT_EOF >> conftest.$ac_ext
7036 {0, (void *) 0}
7039 /* This works around a problem in FreeBSD linker */
7040 #ifdef FREEBSD_WORKAROUND
7041 static const void *lt_preloaded_setup() {
7042 return lt__PROGRAM__LTX_preloaded_symbols;
7044 #endif
7046 #ifdef __cplusplus
7048 #endif
7049 _LT_EOF
7050 # Now try linking the two files.
7051 mv conftest.$ac_objext conftstm.$ac_objext
7052 lt_save_LIBS="$LIBS"
7053 lt_save_CFLAGS="$CFLAGS"
7054 LIBS="conftstm.$ac_objext"
7055 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7057 (eval $ac_link) 2>&5
7058 ac_status=$?
7059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7060 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7061 pipe_works=yes
7063 LIBS="$lt_save_LIBS"
7064 CFLAGS="$lt_save_CFLAGS"
7065 else
7066 echo "cannot find nm_test_func in $nlist" >&5
7068 else
7069 echo "cannot find nm_test_var in $nlist" >&5
7071 else
7072 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7074 else
7075 echo "$progname: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 rm -rf conftest* conftst*
7080 # Do not use the global_symbol_pipe unless it works.
7081 if test "$pipe_works" = yes; then
7082 break
7083 else
7084 lt_cv_sys_global_symbol_pipe=
7086 done
7090 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7091 lt_cv_sys_global_symbol_to_cdecl=
7093 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7095 $as_echo "failed" >&6; }
7096 else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7098 $as_echo "ok" >&6; }
7123 # Check whether --enable-libtool-lock was given.
7124 if test "${enable_libtool_lock+set}" = set; then :
7125 enableval=$enable_libtool_lock;
7128 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7130 # Some flags need to be propagated to the compiler or linker for good
7131 # libtool support.
7132 case $host in
7133 ia64-*-hpux*)
7134 # Find out which ABI we are using.
7135 echo 'int i;' > conftest.$ac_ext
7136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7137 (eval $ac_compile) 2>&5
7138 ac_status=$?
7139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7140 test $ac_status = 0; }; then
7141 case `/usr/bin/file conftest.$ac_objext` in
7142 *ELF-32*)
7143 HPUX_IA64_MODE="32"
7145 *ELF-64*)
7146 HPUX_IA64_MODE="64"
7148 esac
7150 rm -rf conftest*
7152 *-*-irix6*)
7153 # Find out which ABI we are using.
7154 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7156 (eval $ac_compile) 2>&5
7157 ac_status=$?
7158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7159 test $ac_status = 0; }; then
7160 if test "$lt_cv_prog_gnu_ld" = yes; then
7161 case `/usr/bin/file conftest.$ac_objext` in
7162 *32-bit*)
7163 LD="${LD-ld} -melf32bsmip"
7165 *N32*)
7166 LD="${LD-ld} -melf32bmipn32"
7168 *64-bit*)
7169 LD="${LD-ld} -melf64bmip"
7171 esac
7172 else
7173 case `/usr/bin/file conftest.$ac_objext` in
7174 *32-bit*)
7175 LD="${LD-ld} -32"
7177 *N32*)
7178 LD="${LD-ld} -n32"
7180 *64-bit*)
7181 LD="${LD-ld} -64"
7183 esac
7186 rm -rf conftest*
7189 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7190 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7191 # Find out which ABI we are using.
7192 echo 'int i;' > conftest.$ac_ext
7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7194 (eval $ac_compile) 2>&5
7195 ac_status=$?
7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; }; then
7198 case `/usr/bin/file conftest.o` in
7199 *32-bit*)
7200 case $host in
7201 x86_64-*kfreebsd*-gnu)
7202 LD="${LD-ld} -m elf_i386_fbsd"
7204 x86_64-*linux*)
7205 case `/usr/bin/file conftest.o` in
7206 *x86-64*)
7207 LD="${LD-ld} -m elf32_x86_64"
7210 LD="${LD-ld} -m elf_i386"
7212 esac
7214 ppc64-*linux*|powerpc64-*linux*)
7215 LD="${LD-ld} -m elf32ppclinux"
7217 s390x-*linux*)
7218 LD="${LD-ld} -m elf_s390"
7220 sparc64-*linux*)
7221 LD="${LD-ld} -m elf32_sparc"
7223 esac
7225 *64-bit*)
7226 case $host in
7227 x86_64-*kfreebsd*-gnu)
7228 LD="${LD-ld} -m elf_x86_64_fbsd"
7230 x86_64-*linux*)
7231 LD="${LD-ld} -m elf_x86_64"
7233 ppc*-*linux*|powerpc*-*linux*)
7234 LD="${LD-ld} -m elf64ppc"
7236 s390*-*linux*|s390*-*tpf*)
7237 LD="${LD-ld} -m elf64_s390"
7239 sparc*-*linux*)
7240 LD="${LD-ld} -m elf64_sparc"
7242 esac
7244 esac
7246 rm -rf conftest*
7249 *-*-sco3.2v5*)
7250 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251 SAVE_CFLAGS="$CFLAGS"
7252 CFLAGS="$CFLAGS -belf"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7254 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7255 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 ac_ext=c
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7268 main ()
7272 return 0;
7274 _ACEOF
7275 if ac_fn_c_try_link "$LINENO"; then :
7276 lt_cv_cc_needs_belf=yes
7277 else
7278 lt_cv_cc_needs_belf=no
7280 rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7282 ac_ext=c
7283 ac_cpp='$CPP $CPPFLAGS'
7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7290 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7291 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7292 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7293 CFLAGS="$SAVE_CFLAGS"
7296 sparc*-*solaris*)
7297 # Find out which ABI we are using.
7298 echo 'int i;' > conftest.$ac_ext
7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7300 (eval $ac_compile) 2>&5
7301 ac_status=$?
7302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; }; then
7304 case `/usr/bin/file conftest.o` in
7305 *64-bit*)
7306 case $lt_cv_prog_gnu_ld in
7307 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7309 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7310 LD="${LD-ld} -64"
7313 esac
7315 esac
7317 rm -rf conftest*
7319 esac
7321 need_locks="$enable_libtool_lock"
7324 case $host_os in
7325 rhapsody* | darwin*)
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7328 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 if test -n "$DSYMUTIL"; then
7335 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7348 done
7349 done
7350 IFS=$as_save_IFS
7354 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7355 if test -n "$DSYMUTIL"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7357 $as_echo "$DSYMUTIL" >&6; }
7358 else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7365 if test -z "$ac_cv_prog_DSYMUTIL"; then
7366 ac_ct_DSYMUTIL=$DSYMUTIL
7367 # Extract the first word of "dsymutil", so it can be a program name with args.
7368 set dummy dsymutil; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 if test -n "$ac_ct_DSYMUTIL"; then
7375 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7388 done
7389 done
7390 IFS=$as_save_IFS
7394 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7395 if test -n "$ac_ct_DSYMUTIL"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7397 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7403 if test "x$ac_ct_DSYMUTIL" = x; then
7404 DSYMUTIL=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407 yes:)
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410 ac_tool_warned=yes ;;
7411 esac
7412 DSYMUTIL=$ac_ct_DSYMUTIL
7414 else
7415 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 if test -n "$NMEDIT"; then
7427 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7440 done
7441 done
7442 IFS=$as_save_IFS
7446 NMEDIT=$ac_cv_prog_NMEDIT
7447 if test -n "$NMEDIT"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7449 $as_echo "$NMEDIT" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7457 if test -z "$ac_cv_prog_NMEDIT"; then
7458 ac_ct_NMEDIT=$NMEDIT
7459 # Extract the first word of "nmedit", so it can be a program name with args.
7460 set dummy nmedit; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$ac_ct_NMEDIT"; then
7467 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7480 done
7481 done
7482 IFS=$as_save_IFS
7486 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7487 if test -n "$ac_ct_NMEDIT"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7489 $as_echo "$ac_ct_NMEDIT" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7495 if test "x$ac_ct_NMEDIT" = x; then
7496 NMEDIT=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499 yes:)
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned=yes ;;
7503 esac
7504 NMEDIT=$ac_ct_NMEDIT
7506 else
7507 NMEDIT="$ac_cv_prog_NMEDIT"
7510 if test -n "$ac_tool_prefix"; then
7511 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7512 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if test "${ac_cv_prog_LIPO+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 if test -n "$LIPO"; then
7519 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7532 done
7533 done
7534 IFS=$as_save_IFS
7538 LIPO=$ac_cv_prog_LIPO
7539 if test -n "$LIPO"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7541 $as_echo "$LIPO" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7549 if test -z "$ac_cv_prog_LIPO"; then
7550 ac_ct_LIPO=$LIPO
7551 # Extract the first word of "lipo", so it can be a program name with args.
7552 set dummy lipo; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 if test -n "$ac_ct_LIPO"; then
7559 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 ac_cv_prog_ac_ct_LIPO="lipo"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 break 2
7572 done
7573 done
7574 IFS=$as_save_IFS
7578 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7579 if test -n "$ac_ct_LIPO"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7581 $as_echo "$ac_ct_LIPO" >&6; }
7582 else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7587 if test "x$ac_ct_LIPO" = x; then
7588 LIPO=":"
7589 else
7590 case $cross_compiling:$ac_tool_warned in
7591 yes:)
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7594 ac_tool_warned=yes ;;
7595 esac
7596 LIPO=$ac_ct_LIPO
7598 else
7599 LIPO="$ac_cv_prog_LIPO"
7602 if test -n "$ac_tool_prefix"; then
7603 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7604 set dummy ${ac_tool_prefix}otool; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 if test -n "$OTOOL"; then
7611 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7624 done
7625 done
7626 IFS=$as_save_IFS
7630 OTOOL=$ac_cv_prog_OTOOL
7631 if test -n "$OTOOL"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7633 $as_echo "$OTOOL" >&6; }
7634 else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7641 if test -z "$ac_cv_prog_OTOOL"; then
7642 ac_ct_OTOOL=$OTOOL
7643 # Extract the first word of "otool", so it can be a program name with args.
7644 set dummy otool; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 if test -n "$ac_ct_OTOOL"; then
7651 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_prog_ac_ct_OTOOL="otool"
7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 break 2
7664 done
7665 done
7666 IFS=$as_save_IFS
7670 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7671 if test -n "$ac_ct_OTOOL"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7673 $as_echo "$ac_ct_OTOOL" >&6; }
7674 else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7679 if test "x$ac_ct_OTOOL" = x; then
7680 OTOOL=":"
7681 else
7682 case $cross_compiling:$ac_tool_warned in
7683 yes:)
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7686 ac_tool_warned=yes ;;
7687 esac
7688 OTOOL=$ac_ct_OTOOL
7690 else
7691 OTOOL="$ac_cv_prog_OTOOL"
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 if test -n "$OTOOL64"; then
7703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 break 2
7716 done
7717 done
7718 IFS=$as_save_IFS
7722 OTOOL64=$ac_cv_prog_OTOOL64
7723 if test -n "$OTOOL64"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7725 $as_echo "$OTOOL64" >&6; }
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7733 if test -z "$ac_cv_prog_OTOOL64"; then
7734 ac_ct_OTOOL64=$OTOOL64
7735 # Extract the first word of "otool64", so it can be a program name with args.
7736 set dummy otool64; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 if test -n "$ac_ct_OTOOL64"; then
7743 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_prog_ac_ct_OTOOL64="otool64"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7756 done
7757 done
7758 IFS=$as_save_IFS
7762 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7763 if test -n "$ac_ct_OTOOL64"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7765 $as_echo "$ac_ct_OTOOL64" >&6; }
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7771 if test "x$ac_ct_OTOOL64" = x; then
7772 OTOOL64=":"
7773 else
7774 case $cross_compiling:$ac_tool_warned in
7775 yes:)
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned=yes ;;
7779 esac
7780 OTOOL64=$ac_ct_OTOOL64
7782 else
7783 OTOOL64="$ac_cv_prog_OTOOL64"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7813 $as_echo_n "checking for -single_module linker flag... " >&6; }
7814 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 lt_cv_apple_cc_single_mod=no
7818 if test -z "${LT_MULTI_MODULE}"; then
7819 # By default we will add the -single_module flag. You can override
7820 # by either setting the environment variable LT_MULTI_MODULE
7821 # non-empty at configure time, or by adding -multi_module to the
7822 # link flags.
7823 rm -rf libconftest.dylib*
7824 echo "int foo(void){return 1;}" > conftest.c
7825 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7826 -dynamiclib -Wl,-single_module conftest.c" >&5
7827 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7828 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7829 _lt_result=$?
7830 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7831 lt_cv_apple_cc_single_mod=yes
7832 else
7833 cat conftest.err >&5
7835 rm -rf libconftest.dylib*
7836 rm -f conftest.*
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7840 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7842 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7843 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 lt_cv_ld_exported_symbols_list=no
7847 save_LDFLAGS=$LDFLAGS
7848 echo "_main" > conftest.sym
7849 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7854 main ()
7858 return 0;
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862 lt_cv_ld_exported_symbols_list=yes
7863 else
7864 lt_cv_ld_exported_symbols_list=no
7866 rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 LDFLAGS="$save_LDFLAGS"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7872 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7874 $as_echo_n "checking for -force_load linker flag... " >&6; }
7875 if test "${lt_cv_ld_force_load+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 lt_cv_ld_force_load=no
7879 cat > conftest.c << _LT_EOF
7880 int forced_loaded() { return 2;}
7881 _LT_EOF
7882 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7883 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7884 echo "$AR cru libconftest.a conftest.o" >&5
7885 $AR cru libconftest.a conftest.o 2>&5
7886 cat > conftest.c << _LT_EOF
7887 int main() { return 0;}
7888 _LT_EOF
7889 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7890 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7891 _lt_result=$?
7892 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7893 lt_cv_ld_force_load=yes
7894 else
7895 cat conftest.err >&5
7897 rm -f conftest.err libconftest.a conftest conftest.c
7898 rm -rf conftest.dSYM
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7902 $as_echo "$lt_cv_ld_force_load" >&6; }
7903 case $host_os in
7904 rhapsody* | darwin1.[012])
7905 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7906 darwin1.*)
7907 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7908 darwin*) # darwin 5.x on
7909 # if running on 10.5 or later, the deployment target defaults
7910 # to the OS version, if on x86, and 10.4, the deployment
7911 # target defaults to 10.4. Don't you love it?
7912 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7913 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7914 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7915 10.[012]*)
7916 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7917 10.*)
7918 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7919 esac
7921 esac
7922 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7923 _lt_dar_single_mod='$single_module'
7925 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7926 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7927 else
7928 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7930 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7931 _lt_dsymutil='~$DSYMUTIL $lib || :'
7932 else
7933 _lt_dsymutil=
7936 esac
7938 ac_ext=c
7939 ac_cpp='$CPP $CPPFLAGS'
7940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7944 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7945 # On Suns, sometimes $CPP names a directory.
7946 if test -n "$CPP" && test -d "$CPP"; then
7947 CPP=
7949 if test -z "$CPP"; then
7950 if test "${ac_cv_prog_CPP+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 # Double quotes because CPP needs to be expanded
7954 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7956 ac_preproc_ok=false
7957 for ac_c_preproc_warn_flag in '' yes
7959 # Use a header file that comes with gcc, so configuring glibc
7960 # with a fresh cross-compiler works.
7961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7962 # <limits.h> exists even on freestanding compilers.
7963 # On the NeXT, cc -E runs the code through the compiler's parser,
7964 # not just through cpp. "Syntax error" is here to catch this case.
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 #ifdef __STDC__
7968 # include <limits.h>
7969 #else
7970 # include <assert.h>
7971 #endif
7972 Syntax error
7973 _ACEOF
7974 if ac_fn_c_try_cpp "$LINENO"; then :
7976 else
7977 # Broken: fails on valid input.
7978 continue
7980 rm -f conftest.err conftest.$ac_ext
7982 # OK, works on sane cases. Now check whether nonexistent headers
7983 # can be detected and how.
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <ac_nonexistent.h>
7987 _ACEOF
7988 if ac_fn_c_try_cpp "$LINENO"; then :
7989 # Broken: success on invalid input.
7990 continue
7991 else
7992 # Passes both tests.
7993 ac_preproc_ok=:
7994 break
7996 rm -f conftest.err conftest.$ac_ext
7998 done
7999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8000 rm -f conftest.err conftest.$ac_ext
8001 if $ac_preproc_ok; then :
8002 break
8005 done
8006 ac_cv_prog_CPP=$CPP
8009 CPP=$ac_cv_prog_CPP
8010 else
8011 ac_cv_prog_CPP=$CPP
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8014 $as_echo "$CPP" >&6; }
8015 ac_preproc_ok=false
8016 for ac_c_preproc_warn_flag in '' yes
8018 # Use a header file that comes with gcc, so configuring glibc
8019 # with a fresh cross-compiler works.
8020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8021 # <limits.h> exists even on freestanding compilers.
8022 # On the NeXT, cc -E runs the code through the compiler's parser,
8023 # not just through cpp. "Syntax error" is here to catch this case.
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026 #ifdef __STDC__
8027 # include <limits.h>
8028 #else
8029 # include <assert.h>
8030 #endif
8031 Syntax error
8032 _ACEOF
8033 if ac_fn_c_try_cpp "$LINENO"; then :
8035 else
8036 # Broken: fails on valid input.
8037 continue
8039 rm -f conftest.err conftest.$ac_ext
8041 # OK, works on sane cases. Now check whether nonexistent headers
8042 # can be detected and how.
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 #include <ac_nonexistent.h>
8046 _ACEOF
8047 if ac_fn_c_try_cpp "$LINENO"; then :
8048 # Broken: success on invalid input.
8049 continue
8050 else
8051 # Passes both tests.
8052 ac_preproc_ok=:
8053 break
8055 rm -f conftest.err conftest.$ac_ext
8057 done
8058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8059 rm -f conftest.err conftest.$ac_ext
8060 if $ac_preproc_ok; then :
8062 else
8063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8065 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8066 See \`config.log' for more details." "$LINENO" 5; }
8069 ac_ext=c
8070 ac_cpp='$CPP $CPPFLAGS'
8071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8077 $as_echo_n "checking for ANSI C header files... " >&6; }
8078 if test "${ac_cv_header_stdc+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #include <stdlib.h>
8084 #include <stdarg.h>
8085 #include <string.h>
8086 #include <float.h>
8089 main ()
8093 return 0;
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 ac_cv_header_stdc=yes
8098 else
8099 ac_cv_header_stdc=no
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 if test $ac_cv_header_stdc = yes; then
8104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 #include <string.h>
8109 _ACEOF
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111 $EGREP "memchr" >/dev/null 2>&1; then :
8113 else
8114 ac_cv_header_stdc=no
8116 rm -f conftest*
8120 if test $ac_cv_header_stdc = yes; then
8121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 #include <stdlib.h>
8126 _ACEOF
8127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8128 $EGREP "free" >/dev/null 2>&1; then :
8130 else
8131 ac_cv_header_stdc=no
8133 rm -f conftest*
8137 if test $ac_cv_header_stdc = yes; then
8138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8139 if test "$cross_compiling" = yes; then :
8141 else
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144 #include <ctype.h>
8145 #include <stdlib.h>
8146 #if ((' ' & 0x0FF) == 0x020)
8147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8149 #else
8150 # define ISLOWER(c) \
8151 (('a' <= (c) && (c) <= 'i') \
8152 || ('j' <= (c) && (c) <= 'r') \
8153 || ('s' <= (c) && (c) <= 'z'))
8154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8155 #endif
8157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8159 main ()
8161 int i;
8162 for (i = 0; i < 256; i++)
8163 if (XOR (islower (i), ISLOWER (i))
8164 || toupper (i) != TOUPPER (i))
8165 return 2;
8166 return 0;
8168 _ACEOF
8169 if ac_fn_c_try_run "$LINENO"; then :
8171 else
8172 ac_cv_header_stdc=no
8174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8175 conftest.$ac_objext conftest.beam conftest.$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8181 $as_echo "$ac_cv_header_stdc" >&6; }
8182 if test $ac_cv_header_stdc = yes; then
8184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8189 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8190 inttypes.h stdint.h unistd.h
8191 do :
8192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8193 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8195 eval as_val=\$$as_ac_Header
8196 if test "x$as_val" = x""yes; then :
8197 cat >>confdefs.h <<_ACEOF
8198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8199 _ACEOF
8203 done
8206 for ac_header in dlfcn.h
8207 do :
8208 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8210 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8211 cat >>confdefs.h <<_ACEOF
8212 #define HAVE_DLFCN_H 1
8213 _ACEOF
8217 done
8223 # Set options
8227 enable_dlopen=no
8230 enable_win32_dll=no
8234 # Check whether --enable-static was given.
8235 if test "${enable_static+set}" = set; then :
8236 enableval=$enable_static; p=${PACKAGE-default}
8237 case $enableval in
8238 yes) enable_static=yes ;;
8239 no) enable_static=no ;;
8241 enable_static=no
8242 # Look at the argument we got. We use all the common list separators.
8243 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8244 for pkg in $enableval; do
8245 IFS="$lt_save_ifs"
8246 if test "X$pkg" = "X$p"; then
8247 enable_static=yes
8249 done
8250 IFS="$lt_save_ifs"
8252 esac
8253 else
8254 enable_static=yes
8266 # Check whether --with-pic was given.
8267 if test "${with_pic+set}" = set; then :
8268 withval=$with_pic; pic_mode="$withval"
8269 else
8270 pic_mode=default
8274 test -z "$pic_mode" && pic_mode=default
8282 # Check whether --enable-fast-install was given.
8283 if test "${enable_fast_install+set}" = set; then :
8284 enableval=$enable_fast_install; p=${PACKAGE-default}
8285 case $enableval in
8286 yes) enable_fast_install=yes ;;
8287 no) enable_fast_install=no ;;
8289 enable_fast_install=no
8290 # Look at the argument we got. We use all the common list separators.
8291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8292 for pkg in $enableval; do
8293 IFS="$lt_save_ifs"
8294 if test "X$pkg" = "X$p"; then
8295 enable_fast_install=yes
8297 done
8298 IFS="$lt_save_ifs"
8300 esac
8301 else
8302 enable_fast_install=yes
8315 # This can be used to rebuild libtool when needed
8316 LIBTOOL_DEPS="$ltmain"
8318 # Always use our own libtool.
8319 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8346 test -z "$LN_S" && LN_S="ln -s"
8361 if test -n "${ZSH_VERSION+set}" ; then
8362 setopt NO_GLOB_SUBST
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8366 $as_echo_n "checking for objdir... " >&6; }
8367 if test "${lt_cv_objdir+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 rm -f .libs 2>/dev/null
8371 mkdir .libs 2>/dev/null
8372 if test -d .libs; then
8373 lt_cv_objdir=.libs
8374 else
8375 # MS-DOS does not allow filenames that begin with a dot.
8376 lt_cv_objdir=_libs
8378 rmdir .libs 2>/dev/null
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8381 $as_echo "$lt_cv_objdir" >&6; }
8382 objdir=$lt_cv_objdir
8388 cat >>confdefs.h <<_ACEOF
8389 #define LT_OBJDIR "$lt_cv_objdir/"
8390 _ACEOF
8395 case $host_os in
8396 aix3*)
8397 # AIX sometimes has problems with the GCC collect2 program. For some
8398 # reason, if we set the COLLECT_NAMES environment variable, the problems
8399 # vanish in a puff of smoke.
8400 if test "X${COLLECT_NAMES+set}" != Xset; then
8401 COLLECT_NAMES=
8402 export COLLECT_NAMES
8405 esac
8407 # Global variables:
8408 ofile=libtool
8409 can_build_shared=yes
8411 # All known linkers require a `.a' archive for static linking (except MSVC,
8412 # which needs '.lib').
8413 libext=a
8415 with_gnu_ld="$lt_cv_prog_gnu_ld"
8417 old_CC="$CC"
8418 old_CFLAGS="$CFLAGS"
8420 # Set sane defaults for various variables
8421 test -z "$CC" && CC=cc
8422 test -z "$LTCC" && LTCC=$CC
8423 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8424 test -z "$LD" && LD=ld
8425 test -z "$ac_objext" && ac_objext=o
8427 for cc_temp in $compiler""; do
8428 case $cc_temp in
8429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8431 \-*) ;;
8432 *) break;;
8433 esac
8434 done
8435 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8438 # Only perform the check for file, if the check method requires it
8439 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8440 case $deplibs_check_method in
8441 file_magic*)
8442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8444 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 case $MAGIC_CMD in
8449 [\\/*] | ?:[\\/]*)
8450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8453 lt_save_MAGIC_CMD="$MAGIC_CMD"
8454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8456 for ac_dir in $ac_dummy; do
8457 IFS="$lt_save_ifs"
8458 test -z "$ac_dir" && ac_dir=.
8459 if test -f $ac_dir/${ac_tool_prefix}file; then
8460 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8461 if test -n "$file_magic_test_file"; then
8462 case $deplibs_check_method in
8463 "file_magic "*)
8464 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8467 $EGREP "$file_magic_regex" > /dev/null; then
8469 else
8470 cat <<_LT_EOF 1>&2
8472 *** Warning: the command libtool uses to detect shared libraries,
8473 *** $file_magic_cmd, produces output that libtool cannot recognize.
8474 *** The result is that libtool may fail to recognize shared libraries
8475 *** as such. This will affect the creation of libtool libraries that
8476 *** depend on shared libraries, but programs linked with such libtool
8477 *** libraries will work regardless of this problem. Nevertheless, you
8478 *** may want to report the problem to your system manager and/or to
8479 *** bug-libtool@gnu.org
8481 _LT_EOF
8482 fi ;;
8483 esac
8485 break
8487 done
8488 IFS="$lt_save_ifs"
8489 MAGIC_CMD="$lt_save_MAGIC_CMD"
8491 esac
8494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8495 if test -n "$MAGIC_CMD"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8497 $as_echo "$MAGIC_CMD" >&6; }
8498 else
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8507 if test -z "$lt_cv_path_MAGIC_CMD"; then
8508 if test -n "$ac_tool_prefix"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8510 $as_echo_n "checking for file... " >&6; }
8511 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 case $MAGIC_CMD in
8515 [\\/*] | ?:[\\/]*)
8516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8519 lt_save_MAGIC_CMD="$MAGIC_CMD"
8520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8521 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8522 for ac_dir in $ac_dummy; do
8523 IFS="$lt_save_ifs"
8524 test -z "$ac_dir" && ac_dir=.
8525 if test -f $ac_dir/file; then
8526 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8527 if test -n "$file_magic_test_file"; then
8528 case $deplibs_check_method in
8529 "file_magic "*)
8530 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8533 $EGREP "$file_magic_regex" > /dev/null; then
8535 else
8536 cat <<_LT_EOF 1>&2
8538 *** Warning: the command libtool uses to detect shared libraries,
8539 *** $file_magic_cmd, produces output that libtool cannot recognize.
8540 *** The result is that libtool may fail to recognize shared libraries
8541 *** as such. This will affect the creation of libtool libraries that
8542 *** depend on shared libraries, but programs linked with such libtool
8543 *** libraries will work regardless of this problem. Nevertheless, you
8544 *** may want to report the problem to your system manager and/or to
8545 *** bug-libtool@gnu.org
8547 _LT_EOF
8548 fi ;;
8549 esac
8551 break
8553 done
8554 IFS="$lt_save_ifs"
8555 MAGIC_CMD="$lt_save_MAGIC_CMD"
8557 esac
8560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8561 if test -n "$MAGIC_CMD"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8563 $as_echo "$MAGIC_CMD" >&6; }
8564 else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8570 else
8571 MAGIC_CMD=:
8577 esac
8579 # Use C for the default configuration in the libtool script
8581 lt_save_CC="$CC"
8582 ac_ext=c
8583 ac_cpp='$CPP $CPPFLAGS'
8584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8589 # Source file extension for C test sources.
8590 ac_ext=c
8592 # Object file extension for compiled C test sources.
8593 objext=o
8594 objext=$objext
8596 # Code to be used in simple compile tests
8597 lt_simple_compile_test_code="int some_variable = 0;"
8599 # Code to be used in simple link tests
8600 lt_simple_link_test_code='int main(){return(0);}'
8608 # If no C compiler was specified, use CC.
8609 LTCC=${LTCC-"$CC"}
8611 # If no C compiler flags were specified, use CFLAGS.
8612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8614 # Allow CC to be a program name with arguments.
8615 compiler=$CC
8617 # Save the default compiler, since it gets overwritten when the other
8618 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8619 compiler_DEFAULT=$CC
8621 # save warnings/boilerplate of simple test code
8622 ac_outfile=conftest.$ac_objext
8623 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8624 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8625 _lt_compiler_boilerplate=`cat conftest.err`
8626 $RM conftest*
8628 ac_outfile=conftest.$ac_objext
8629 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8630 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8631 _lt_linker_boilerplate=`cat conftest.err`
8632 $RM -r conftest*
8635 ## CAVEAT EMPTOR:
8636 ## There is no encapsulation within the following macros, do not change
8637 ## the running order or otherwise move them around unless you know exactly
8638 ## what you are doing...
8639 if test -n "$compiler"; then
8641 lt_prog_compiler_no_builtin_flag=
8643 if test "$GCC" = yes; then
8644 case $cc_basename in
8645 nvcc*)
8646 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8648 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8649 esac
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8652 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 lt_cv_prog_compiler_rtti_exceptions=no
8657 ac_outfile=conftest.$ac_objext
8658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8659 lt_compiler_flag="-fno-rtti -fno-exceptions"
8660 # Insert the option either (1) after the last *FLAGS variable, or
8661 # (2) before a word containing "conftest.", or (3) at the end.
8662 # Note that $ac_compile itself does not contain backslashes and begins
8663 # with a dollar sign (not a hyphen), so the echo should work correctly.
8664 # The option is referenced via a variable to avoid confusing sed.
8665 lt_compile=`echo "$ac_compile" | $SED \
8666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8668 -e 's:$: $lt_compiler_flag:'`
8669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8670 (eval "$lt_compile" 2>conftest.err)
8671 ac_status=$?
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 if (exit $ac_status) && test -s "$ac_outfile"; then
8675 # The compiler can only warn and ignore the option if not recognized
8676 # So say no if there are warnings other than the usual output.
8677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8680 lt_cv_prog_compiler_rtti_exceptions=yes
8683 $RM conftest*
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8687 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8690 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8691 else
8702 lt_prog_compiler_wl=
8703 lt_prog_compiler_pic=
8704 lt_prog_compiler_static=
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8707 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8709 if test "$GCC" = yes; then
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_static='-static'
8713 case $host_os in
8714 aix*)
8715 # All AIX code is PIC.
8716 if test "$host_cpu" = ia64; then
8717 # AIX 5 now supports IA64 processor
8718 lt_prog_compiler_static='-Bstatic'
8720 lt_prog_compiler_pic='-fPIC'
8723 amigaos*)
8724 case $host_cpu in
8725 powerpc)
8726 # see comment about AmigaOS4 .so support
8727 lt_prog_compiler_pic='-fPIC'
8729 m68k)
8730 # FIXME: we need at least 68020 code to build shared libraries, but
8731 # adding the `-m68020' flag to GCC prevents building anything better,
8732 # like `-m68040'.
8733 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8735 esac
8738 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8739 # PIC is the default for these OSes.
8742 mingw* | cygwin* | pw32* | os2* | cegcc*)
8743 # This hack is so that the source file can tell whether it is being
8744 # built for inclusion in a dll (and should export symbols for example).
8745 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8746 # (--disable-auto-import) libraries
8747 lt_prog_compiler_pic='-DDLL_EXPORT'
8750 darwin* | rhapsody*)
8751 # PIC is the default on this platform
8752 # Common symbols not allowed in MH_DYLIB files
8753 lt_prog_compiler_pic='-fno-common'
8756 haiku*)
8757 # PIC is the default for Haiku.
8758 # The "-static" flag exists, but is broken.
8759 lt_prog_compiler_static=
8762 hpux*)
8763 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8764 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8765 # sets the default TLS model and affects inlining.
8766 case $host_cpu in
8767 hppa*64*)
8768 # +Z the default
8771 lt_prog_compiler_pic='-fPIC'
8773 esac
8776 interix[3-9]*)
8777 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8778 # Instead, we relocate shared libraries at runtime.
8781 msdosdjgpp*)
8782 # Just because we use GCC doesn't mean we suddenly get shared libraries
8783 # on systems that don't support them.
8784 lt_prog_compiler_can_build_shared=no
8785 enable_shared=no
8788 *nto* | *qnx*)
8789 # QNX uses GNU C++, but need to define -shared option too, otherwise
8790 # it will coredump.
8791 lt_prog_compiler_pic='-fPIC -shared'
8794 sysv4*MP*)
8795 if test -d /usr/nec; then
8796 lt_prog_compiler_pic=-Kconform_pic
8801 lt_prog_compiler_pic='-fPIC'
8803 esac
8805 case $cc_basename in
8806 nvcc*) # Cuda Compiler Driver 2.2
8807 lt_prog_compiler_wl='-Xlinker '
8808 lt_prog_compiler_pic='-Xcompiler -fPIC'
8810 esac
8811 else
8812 # PORTME Check for flag to pass linker flags through the system compiler.
8813 case $host_os in
8814 aix*)
8815 lt_prog_compiler_wl='-Wl,'
8816 if test "$host_cpu" = ia64; then
8817 # AIX 5 now supports IA64 processor
8818 lt_prog_compiler_static='-Bstatic'
8819 else
8820 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8824 mingw* | cygwin* | pw32* | os2* | cegcc*)
8825 # This hack is so that the source file can tell whether it is being
8826 # built for inclusion in a dll (and should export symbols for example).
8827 lt_prog_compiler_pic='-DDLL_EXPORT'
8830 hpux9* | hpux10* | hpux11*)
8831 lt_prog_compiler_wl='-Wl,'
8832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8833 # not for PA HP-UX.
8834 case $host_cpu in
8835 hppa*64*|ia64*)
8836 # +Z the default
8839 lt_prog_compiler_pic='+Z'
8841 esac
8842 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8843 lt_prog_compiler_static='${wl}-a ${wl}archive'
8846 irix5* | irix6* | nonstopux*)
8847 lt_prog_compiler_wl='-Wl,'
8848 # PIC (with -KPIC) is the default.
8849 lt_prog_compiler_static='-non_shared'
8852 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8853 case $cc_basename in
8854 # old Intel for x86_64 which still supported -KPIC.
8855 ecc*)
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-static'
8860 # icc used to be incompatible with GCC.
8861 # ICC 10 doesn't accept -KPIC any more.
8862 icc* | ifort*)
8863 lt_prog_compiler_wl='-Wl,'
8864 lt_prog_compiler_pic='-fPIC'
8865 lt_prog_compiler_static='-static'
8867 # Lahey Fortran 8.1.
8868 lf95*)
8869 lt_prog_compiler_wl='-Wl,'
8870 lt_prog_compiler_pic='--shared'
8871 lt_prog_compiler_static='--static'
8873 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8874 # Portland Group compilers (*not* the Pentium gcc compiler,
8875 # which looks to be a dead project)
8876 lt_prog_compiler_wl='-Wl,'
8877 lt_prog_compiler_pic='-fpic'
8878 lt_prog_compiler_static='-Bstatic'
8880 ccc*)
8881 lt_prog_compiler_wl='-Wl,'
8882 # All Alpha code is PIC.
8883 lt_prog_compiler_static='-non_shared'
8885 xl* | bgxl* | bgf* | mpixl*)
8886 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='-qpic'
8889 lt_prog_compiler_static='-qstaticlink'
8892 case `$CC -V 2>&1 | sed 5q` in
8893 *Sun\ F* | *Sun*Fortran*)
8894 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8895 lt_prog_compiler_pic='-KPIC'
8896 lt_prog_compiler_static='-Bstatic'
8897 lt_prog_compiler_wl=''
8899 *Sun\ C*)
8900 # Sun C 5.9
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-Bstatic'
8903 lt_prog_compiler_wl='-Wl,'
8905 esac
8907 esac
8910 newsos6)
8911 lt_prog_compiler_pic='-KPIC'
8912 lt_prog_compiler_static='-Bstatic'
8915 *nto* | *qnx*)
8916 # QNX uses GNU C++, but need to define -shared option too, otherwise
8917 # it will coredump.
8918 lt_prog_compiler_pic='-fPIC -shared'
8921 osf3* | osf4* | osf5*)
8922 lt_prog_compiler_wl='-Wl,'
8923 # All OSF/1 code is PIC.
8924 lt_prog_compiler_static='-non_shared'
8927 rdos*)
8928 lt_prog_compiler_static='-non_shared'
8931 solaris*)
8932 lt_prog_compiler_pic='-KPIC'
8933 lt_prog_compiler_static='-Bstatic'
8934 case $cc_basename in
8935 f77* | f90* | f95*)
8936 lt_prog_compiler_wl='-Qoption ld ';;
8938 lt_prog_compiler_wl='-Wl,';;
8939 esac
8942 sunos4*)
8943 lt_prog_compiler_wl='-Qoption ld '
8944 lt_prog_compiler_pic='-PIC'
8945 lt_prog_compiler_static='-Bstatic'
8948 sysv4 | sysv4.2uw2* | sysv4.3*)
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_pic='-KPIC'
8951 lt_prog_compiler_static='-Bstatic'
8954 sysv4*MP*)
8955 if test -d /usr/nec ;then
8956 lt_prog_compiler_pic='-Kconform_pic'
8957 lt_prog_compiler_static='-Bstatic'
8961 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8962 lt_prog_compiler_wl='-Wl,'
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-Bstatic'
8967 unicos*)
8968 lt_prog_compiler_wl='-Wl,'
8969 lt_prog_compiler_can_build_shared=no
8972 uts4*)
8973 lt_prog_compiler_pic='-pic'
8974 lt_prog_compiler_static='-Bstatic'
8978 lt_prog_compiler_can_build_shared=no
8980 esac
8983 case $host_os in
8984 # For platforms which do not support PIC, -DPIC is meaningless:
8985 *djgpp*)
8986 lt_prog_compiler_pic=
8989 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8991 esac
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8993 $as_echo "$lt_prog_compiler_pic" >&6; }
9001 # Check to make sure the PIC flag actually works.
9003 if test -n "$lt_prog_compiler_pic"; then
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9005 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9006 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 lt_cv_prog_compiler_pic_works=no
9010 ac_outfile=conftest.$ac_objext
9011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9012 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9013 # Insert the option either (1) after the last *FLAGS variable, or
9014 # (2) before a word containing "conftest.", or (3) at the end.
9015 # Note that $ac_compile itself does not contain backslashes and begins
9016 # with a dollar sign (not a hyphen), so the echo should work correctly.
9017 # The option is referenced via a variable to avoid confusing sed.
9018 lt_compile=`echo "$ac_compile" | $SED \
9019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9021 -e 's:$: $lt_compiler_flag:'`
9022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9023 (eval "$lt_compile" 2>conftest.err)
9024 ac_status=$?
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 if (exit $ac_status) && test -s "$ac_outfile"; then
9028 # The compiler can only warn and ignore the option if not recognized
9029 # So say no if there are warnings other than the usual output.
9030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9033 lt_cv_prog_compiler_pic_works=yes
9036 $RM conftest*
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9040 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9042 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9043 case $lt_prog_compiler_pic in
9044 "" | " "*) ;;
9045 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9046 esac
9047 else
9048 lt_prog_compiler_pic=
9049 lt_prog_compiler_can_build_shared=no
9060 # Check to make sure the static flag actually works.
9062 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9064 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9065 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 lt_cv_prog_compiler_static_works=no
9069 save_LDFLAGS="$LDFLAGS"
9070 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9071 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9072 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9073 # The linker can only warn and ignore the option if not recognized
9074 # So say no if there are warnings
9075 if test -s conftest.err; then
9076 # Append any errors to the config.log.
9077 cat conftest.err 1>&5
9078 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9080 if diff conftest.exp conftest.er2 >/dev/null; then
9081 lt_cv_prog_compiler_static_works=yes
9083 else
9084 lt_cv_prog_compiler_static_works=yes
9087 $RM -r conftest*
9088 LDFLAGS="$save_LDFLAGS"
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9092 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9094 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9096 else
9097 lt_prog_compiler_static=
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9107 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9108 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 lt_cv_prog_compiler_c_o=no
9112 $RM -r conftest 2>/dev/null
9113 mkdir conftest
9114 cd conftest
9115 mkdir out
9116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9118 lt_compiler_flag="-o out/conftest2.$ac_objext"
9119 # Insert the option either (1) after the last *FLAGS variable, or
9120 # (2) before a word containing "conftest.", or (3) at the end.
9121 # Note that $ac_compile itself does not contain backslashes and begins
9122 # with a dollar sign (not a hyphen), so the echo should work correctly.
9123 lt_compile=`echo "$ac_compile" | $SED \
9124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9126 -e 's:$: $lt_compiler_flag:'`
9127 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9128 (eval "$lt_compile" 2>out/conftest.err)
9129 ac_status=$?
9130 cat out/conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9133 then
9134 # The compiler can only warn and ignore the option if not recognized
9135 # So say no if there are warnings
9136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9137 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9138 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9139 lt_cv_prog_compiler_c_o=yes
9142 chmod u+w . 2>&5
9143 $RM conftest*
9144 # SGI C++ compiler will create directory out/ii_files/ for
9145 # template instantiation
9146 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9147 $RM out/* && rmdir out
9148 cd ..
9149 $RM -r conftest
9150 $RM conftest*
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9154 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9162 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9163 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 lt_cv_prog_compiler_c_o=no
9167 $RM -r conftest 2>/dev/null
9168 mkdir conftest
9169 cd conftest
9170 mkdir out
9171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9173 lt_compiler_flag="-o out/conftest2.$ac_objext"
9174 # Insert the option either (1) after the last *FLAGS variable, or
9175 # (2) before a word containing "conftest.", or (3) at the end.
9176 # Note that $ac_compile itself does not contain backslashes and begins
9177 # with a dollar sign (not a hyphen), so the echo should work correctly.
9178 lt_compile=`echo "$ac_compile" | $SED \
9179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9181 -e 's:$: $lt_compiler_flag:'`
9182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9183 (eval "$lt_compile" 2>out/conftest.err)
9184 ac_status=$?
9185 cat out/conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9188 then
9189 # The compiler can only warn and ignore the option if not recognized
9190 # So say no if there are warnings
9191 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9192 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9193 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9194 lt_cv_prog_compiler_c_o=yes
9197 chmod u+w . 2>&5
9198 $RM conftest*
9199 # SGI C++ compiler will create directory out/ii_files/ for
9200 # template instantiation
9201 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9202 $RM out/* && rmdir out
9203 cd ..
9204 $RM -r conftest
9205 $RM conftest*
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9209 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9214 hard_links="nottested"
9215 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9216 # do not overwrite the value of need_locks provided by the user
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9218 $as_echo_n "checking if we can lock with hard links... " >&6; }
9219 hard_links=yes
9220 $RM conftest*
9221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9222 touch conftest.a
9223 ln conftest.a conftest.b 2>&5 || hard_links=no
9224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9226 $as_echo "$hard_links" >&6; }
9227 if test "$hard_links" = no; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9229 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9230 need_locks=warn
9232 else
9233 need_locks=no
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9242 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9244 runpath_var=
9245 allow_undefined_flag=
9246 always_export_symbols=no
9247 archive_cmds=
9248 archive_expsym_cmds=
9249 compiler_needs_object=no
9250 enable_shared_with_static_runtimes=no
9251 export_dynamic_flag_spec=
9252 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9253 hardcode_automatic=no
9254 hardcode_direct=no
9255 hardcode_direct_absolute=no
9256 hardcode_libdir_flag_spec=
9257 hardcode_libdir_flag_spec_ld=
9258 hardcode_libdir_separator=
9259 hardcode_minus_L=no
9260 hardcode_shlibpath_var=unsupported
9261 inherit_rpath=no
9262 link_all_deplibs=unknown
9263 module_cmds=
9264 module_expsym_cmds=
9265 old_archive_from_new_cmds=
9266 old_archive_from_expsyms_cmds=
9267 thread_safe_flag_spec=
9268 whole_archive_flag_spec=
9269 # include_expsyms should be a list of space-separated symbols to be *always*
9270 # included in the symbol list
9271 include_expsyms=
9272 # exclude_expsyms can be an extended regexp of symbols to exclude
9273 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9274 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9275 # as well as any symbol that contains `d'.
9276 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9277 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9278 # platforms (ab)use it in PIC code, but their linkers get confused if
9279 # the symbol is explicitly referenced. Since portable code cannot
9280 # rely on this symbol name, it's probably fine to never include it in
9281 # preloaded symbol tables.
9282 # Exclude shared library initialization/finalization symbols.
9283 extract_expsyms_cmds=
9285 case $host_os in
9286 cygwin* | mingw* | pw32* | cegcc*)
9287 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9288 # When not using gcc, we currently assume that we are using
9289 # Microsoft Visual C++.
9290 if test "$GCC" != yes; then
9291 with_gnu_ld=no
9294 interix*)
9295 # we just hope/assume this is gcc and not c89 (= MSVC++)
9296 with_gnu_ld=yes
9298 openbsd*)
9299 with_gnu_ld=no
9301 esac
9303 ld_shlibs=yes
9305 # On some targets, GNU ld is compatible enough with the native linker
9306 # that we're better off using the native interface for both.
9307 lt_use_gnu_ld_interface=no
9308 if test "$with_gnu_ld" = yes; then
9309 case $host_os in
9310 aix*)
9311 # The AIX port of GNU ld has always aspired to compatibility
9312 # with the native linker. However, as the warning in the GNU ld
9313 # block says, versions before 2.19.5* couldn't really create working
9314 # shared libraries, regardless of the interface used.
9315 case `$LD -v 2>&1` in
9316 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9317 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9318 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9320 lt_use_gnu_ld_interface=yes
9322 esac
9325 lt_use_gnu_ld_interface=yes
9327 esac
9330 if test "$lt_use_gnu_ld_interface" = yes; then
9331 # If archive_cmds runs LD, not CC, wlarc should be empty
9332 wlarc='${wl}'
9334 # Set some defaults for GNU ld with shared library support. These
9335 # are reset later if shared libraries are not supported. Putting them
9336 # here allows them to be overridden if necessary.
9337 runpath_var=LD_RUN_PATH
9338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9339 export_dynamic_flag_spec='${wl}--export-dynamic'
9340 # ancient GNU ld didn't support --whole-archive et. al.
9341 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9342 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9343 else
9344 whole_archive_flag_spec=
9346 supports_anon_versioning=no
9347 case `$LD -v 2>&1` in
9348 *GNU\ gold*) supports_anon_versioning=yes ;;
9349 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9350 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9351 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9352 *\ 2.11.*) ;; # other 2.11 versions
9353 *) supports_anon_versioning=yes ;;
9354 esac
9356 # See if GNU ld supports shared libraries.
9357 case $host_os in
9358 aix[3-9]*)
9359 # On AIX/PPC, the GNU linker is very broken
9360 if test "$host_cpu" != ia64; then
9361 ld_shlibs=no
9362 cat <<_LT_EOF 1>&2
9364 *** Warning: the GNU linker, at least up to release 2.19, is reported
9365 *** to be unable to reliably create shared libraries on AIX.
9366 *** Therefore, libtool is disabling shared libraries support. If you
9367 *** really care for shared libraries, you may want to install binutils
9368 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9369 *** You will then need to restart the configuration process.
9371 _LT_EOF
9375 amigaos*)
9376 case $host_cpu in
9377 powerpc)
9378 # see comment about AmigaOS4 .so support
9379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380 archive_expsym_cmds=''
9382 m68k)
9383 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)'
9384 hardcode_libdir_flag_spec='-L$libdir'
9385 hardcode_minus_L=yes
9387 esac
9390 beos*)
9391 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9392 allow_undefined_flag=unsupported
9393 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9394 # support --undefined. This deserves some investigation. FIXME
9395 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9396 else
9397 ld_shlibs=no
9401 cygwin* | mingw* | pw32* | cegcc*)
9402 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9403 # as there is no search path for DLLs.
9404 hardcode_libdir_flag_spec='-L$libdir'
9405 export_dynamic_flag_spec='${wl}--export-all-symbols'
9406 allow_undefined_flag=unsupported
9407 always_export_symbols=no
9408 enable_shared_with_static_runtimes=yes
9409 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9411 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9413 # If the export-symbols file already is a .def file (1st line
9414 # is EXPORTS), use it as is; otherwise, prepend...
9415 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9416 cp $export_symbols $output_objdir/$soname.def;
9417 else
9418 echo EXPORTS > $output_objdir/$soname.def;
9419 cat $export_symbols >> $output_objdir/$soname.def;
9421 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9422 else
9423 ld_shlibs=no
9427 haiku*)
9428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9429 link_all_deplibs=yes
9432 interix[3-9]*)
9433 hardcode_direct=no
9434 hardcode_shlibpath_var=no
9435 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9436 export_dynamic_flag_spec='${wl}-E'
9437 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9438 # Instead, shared libraries are loaded at an image base (0x10000000 by
9439 # default) and relocated if they conflict, which is a slow very memory
9440 # consuming and fragmenting process. To avoid this, we pick a random,
9441 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9442 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9444 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'
9447 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9448 tmp_diet=no
9449 if test "$host_os" = linux-dietlibc; then
9450 case $cc_basename in
9451 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9452 esac
9454 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9455 && test "$tmp_diet" = no
9456 then
9457 tmp_addflag=
9458 tmp_sharedflag='-shared'
9459 case $cc_basename,$host_cpu in
9460 pgcc*) # Portland Group C compiler
9461 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'
9462 tmp_addflag=' $pic_flag'
9464 pgf77* | pgf90* | pgf95* | pgfortran*)
9465 # Portland Group f77 and f90 compilers
9466 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'
9467 tmp_addflag=' $pic_flag -Mnomain' ;;
9468 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9469 tmp_addflag=' -i_dynamic' ;;
9470 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9471 tmp_addflag=' -i_dynamic -nofor_main' ;;
9472 ifc* | ifort*) # Intel Fortran compiler
9473 tmp_addflag=' -nofor_main' ;;
9474 lf95*) # Lahey Fortran 8.1
9475 whole_archive_flag_spec=
9476 tmp_sharedflag='--shared' ;;
9477 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9478 tmp_sharedflag='-qmkshrobj'
9479 tmp_addflag= ;;
9480 nvcc*) # Cuda Compiler Driver 2.2
9481 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'
9482 compiler_needs_object=yes
9484 esac
9485 case `$CC -V 2>&1 | sed 5q` in
9486 *Sun\ C*) # Sun C 5.9
9487 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'
9488 compiler_needs_object=yes
9489 tmp_sharedflag='-G' ;;
9490 *Sun\ F*) # Sun Fortran 8.3
9491 tmp_sharedflag='-G' ;;
9492 esac
9493 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495 if test "x$supports_anon_versioning" = xyes; then
9496 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9497 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9498 echo "local: *; };" >> $output_objdir/$libname.ver~
9499 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9502 case $cc_basename in
9503 xlf* | bgf* | bgxlf* | mpixlf*)
9504 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9505 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9506 hardcode_libdir_flag_spec=
9507 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9508 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9509 if test "x$supports_anon_versioning" = xyes; then
9510 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9512 echo "local: *; };" >> $output_objdir/$libname.ver~
9513 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9516 esac
9517 else
9518 ld_shlibs=no
9522 netbsd*)
9523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9524 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9525 wlarc=
9526 else
9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532 solaris*)
9533 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9534 ld_shlibs=no
9535 cat <<_LT_EOF 1>&2
9537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9538 *** create shared libraries on Solaris systems. Therefore, libtool
9539 *** is disabling shared libraries support. We urge you to upgrade GNU
9540 *** binutils to release 2.9.1 or newer. Another option is to modify
9541 *** your PATH or compiler configuration so that the native linker is
9542 *** used, and then restart.
9544 _LT_EOF
9545 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548 else
9549 ld_shlibs=no
9553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9554 case `$LD -v 2>&1` in
9555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9556 ld_shlibs=no
9557 cat <<_LT_EOF 1>&2
9559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9560 *** reliably create shared libraries on SCO systems. Therefore, libtool
9561 *** is disabling shared libraries support. We urge you to upgrade GNU
9562 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9563 *** your PATH or compiler configuration so that the native linker is
9564 *** used, and then restart.
9566 _LT_EOF
9569 # For security reasons, it is highly recommended that you always
9570 # use absolute paths for naming shared libraries, and exclude the
9571 # DT_RUNPATH tag from executables and libraries. But doing so
9572 # requires that you compile everything twice, which is a pain.
9573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9577 else
9578 ld_shlibs=no
9581 esac
9584 sunos4*)
9585 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9586 wlarc=
9587 hardcode_direct=yes
9588 hardcode_shlibpath_var=no
9592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9595 else
9596 ld_shlibs=no
9599 esac
9601 if test "$ld_shlibs" = no; then
9602 runpath_var=
9603 hardcode_libdir_flag_spec=
9604 export_dynamic_flag_spec=
9605 whole_archive_flag_spec=
9607 else
9608 # PORTME fill in a description of your system's linker (not GNU ld)
9609 case $host_os in
9610 aix3*)
9611 allow_undefined_flag=unsupported
9612 always_export_symbols=yes
9613 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'
9614 # Note: this linker hardcodes the directories in LIBPATH if there
9615 # are no directories specified by -L.
9616 hardcode_minus_L=yes
9617 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9618 # Neither direct hardcoding nor static linking is supported with a
9619 # broken collect2.
9620 hardcode_direct=unsupported
9624 aix[4-9]*)
9625 if test "$host_cpu" = ia64; then
9626 # On IA64, the linker does run time linking by default, so we don't
9627 # have to do anything special.
9628 aix_use_runtimelinking=no
9629 exp_sym_flag='-Bexport'
9630 no_entry_flag=""
9631 else
9632 # If we're using GNU nm, then we don't want the "-C" option.
9633 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9634 # Also, AIX nm treats weak defined symbols like other global
9635 # defined symbols, whereas GNU nm marks them as "W".
9636 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9637 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'
9638 else
9639 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9641 aix_use_runtimelinking=no
9643 # Test if we are trying to use run time linking or normal
9644 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9645 # need to do runtime linking.
9646 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9647 for ld_flag in $LDFLAGS; do
9648 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9649 aix_use_runtimelinking=yes
9650 break
9652 done
9654 esac
9656 exp_sym_flag='-bexport'
9657 no_entry_flag='-bnoentry'
9660 # When large executables or shared objects are built, AIX ld can
9661 # have problems creating the table of contents. If linking a library
9662 # or program results in "error TOC overflow" add -mminimal-toc to
9663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9666 archive_cmds=''
9667 hardcode_direct=yes
9668 hardcode_direct_absolute=yes
9669 hardcode_libdir_separator=':'
9670 link_all_deplibs=yes
9671 file_list_spec='${wl}-f,'
9673 if test "$GCC" = yes; then
9674 case $host_os in aix4.[012]|aix4.[012].*)
9675 # We only want to do this on AIX 4.2 and lower, the check
9676 # below for broken collect2 doesn't work under 4.3+
9677 collect2name=`${CC} -print-prog-name=collect2`
9678 if test -f "$collect2name" &&
9679 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9680 then
9681 # We have reworked collect2
9683 else
9684 # We have old collect2
9685 hardcode_direct=unsupported
9686 # It fails to find uninstalled libraries when the uninstalled
9687 # path is not listed in the libpath. Setting hardcode_minus_L
9688 # to unsupported forces relinking
9689 hardcode_minus_L=yes
9690 hardcode_libdir_flag_spec='-L$libdir'
9691 hardcode_libdir_separator=
9694 esac
9695 shared_flag='-shared'
9696 if test "$aix_use_runtimelinking" = yes; then
9697 shared_flag="$shared_flag "'${wl}-G'
9699 else
9700 # not using gcc
9701 if test "$host_cpu" = ia64; then
9702 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9703 # chokes on -Wl,-G. The following line is correct:
9704 shared_flag='-G'
9705 else
9706 if test "$aix_use_runtimelinking" = yes; then
9707 shared_flag='${wl}-G'
9708 else
9709 shared_flag='${wl}-bM:SRE'
9714 export_dynamic_flag_spec='${wl}-bexpall'
9715 # It seems that -bexpall does not export symbols beginning with
9716 # underscore (_), so it is better to generate a list of symbols to export.
9717 always_export_symbols=yes
9718 if test "$aix_use_runtimelinking" = yes; then
9719 # Warning - without using the other runtime loading flags (-brtl),
9720 # -berok will link without error, but may produce a broken library.
9721 allow_undefined_flag='-berok'
9722 # Determine the default libpath from the value encoded in an
9723 # empty executable.
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9728 main ()
9732 return 0;
9734 _ACEOF
9735 if ac_fn_c_try_link "$LINENO"; then :
9737 lt_aix_libpath_sed='
9738 /Import File Strings/,/^$/ {
9739 /^0/ {
9740 s/^0 *\(.*\)$/\1/
9744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9745 # Check for a 64-bit object if we didn't find anything.
9746 if test -z "$aix_libpath"; then
9747 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9754 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9755 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"
9756 else
9757 if test "$host_cpu" = ia64; then
9758 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9759 allow_undefined_flag="-z nodefs"
9760 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"
9761 else
9762 # Determine the default libpath from the value encoded in an
9763 # empty executable.
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9768 main ()
9772 return 0;
9774 _ACEOF
9775 if ac_fn_c_try_link "$LINENO"; then :
9777 lt_aix_libpath_sed='
9778 /Import File Strings/,/^$/ {
9779 /^0/ {
9780 s/^0 *\(.*\)$/\1/
9784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785 # Check for a 64-bit object if we didn't find anything.
9786 if test -z "$aix_libpath"; then
9787 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9790 rm -f core conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9794 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9795 # Warning - without using the other run time loading flags,
9796 # -berok will link without error, but may produce a broken library.
9797 no_undefined_flag=' ${wl}-bernotok'
9798 allow_undefined_flag=' ${wl}-berok'
9799 if test "$with_gnu_ld" = yes; then
9800 # We only use this code for GNU lds that support --whole-archive.
9801 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9802 else
9803 # Exported symbols can be pulled into shared objects from archives
9804 whole_archive_flag_spec='$convenience'
9806 archive_cmds_need_lc=yes
9807 # This is similar to how AIX traditionally builds its shared libraries.
9808 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'
9813 amigaos*)
9814 case $host_cpu in
9815 powerpc)
9816 # see comment about AmigaOS4 .so support
9817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818 archive_expsym_cmds=''
9820 m68k)
9821 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)'
9822 hardcode_libdir_flag_spec='-L$libdir'
9823 hardcode_minus_L=yes
9825 esac
9828 bsdi[45]*)
9829 export_dynamic_flag_spec=-rdynamic
9832 cygwin* | mingw* | pw32* | cegcc*)
9833 # When not using gcc, we currently assume that we are using
9834 # Microsoft Visual C++.
9835 # hardcode_libdir_flag_spec is actually meaningless, as there is
9836 # no search path for DLLs.
9837 hardcode_libdir_flag_spec=' '
9838 allow_undefined_flag=unsupported
9839 # Tell ltmain to make .lib files, not .a files.
9840 libext=lib
9841 # Tell ltmain to make .dll files, not .so files.
9842 shrext_cmds=".dll"
9843 # FIXME: Setting linknames here is a bad hack.
9844 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9845 # The linker will automatically build a .lib file if we build a DLL.
9846 old_archive_from_new_cmds='true'
9847 # FIXME: Should let the user specify the lib program.
9848 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9849 fix_srcfile_path='`cygpath -w "$srcfile"`'
9850 enable_shared_with_static_runtimes=yes
9853 darwin* | rhapsody*)
9856 archive_cmds_need_lc=no
9857 hardcode_direct=no
9858 hardcode_automatic=yes
9859 hardcode_shlibpath_var=unsupported
9860 if test "$lt_cv_ld_force_load" = "yes"; then
9861 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\"`'
9862 else
9863 whole_archive_flag_spec=''
9865 link_all_deplibs=yes
9866 allow_undefined_flag="$_lt_dar_allow_undefined"
9867 case $cc_basename in
9868 ifort*) _lt_dar_can_shared=yes ;;
9869 *) _lt_dar_can_shared=$GCC ;;
9870 esac
9871 if test "$_lt_dar_can_shared" = "yes"; then
9872 output_verbose_link_cmd=func_echo_all
9873 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9874 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9875 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}"
9876 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}"
9878 else
9879 ld_shlibs=no
9884 dgux*)
9885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 hardcode_libdir_flag_spec='-L$libdir'
9887 hardcode_shlibpath_var=no
9890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9891 # support. Future versions do this automatically, but an explicit c++rt0.o
9892 # does not break anything, and helps significantly (at the cost of a little
9893 # extra space).
9894 freebsd2.2*)
9895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9896 hardcode_libdir_flag_spec='-R$libdir'
9897 hardcode_direct=yes
9898 hardcode_shlibpath_var=no
9901 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9902 freebsd2.*)
9903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_direct=yes
9905 hardcode_minus_L=yes
9906 hardcode_shlibpath_var=no
9909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9910 freebsd* | dragonfly*)
9911 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9912 hardcode_libdir_flag_spec='-R$libdir'
9913 hardcode_direct=yes
9914 hardcode_shlibpath_var=no
9917 hpux9*)
9918 if test "$GCC" = yes; then
9919 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'
9920 else
9921 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'
9923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9924 hardcode_libdir_separator=:
9925 hardcode_direct=yes
9927 # hardcode_minus_L: Not really in the search PATH,
9928 # but as the default location of the library.
9929 hardcode_minus_L=yes
9930 export_dynamic_flag_spec='${wl}-E'
9933 hpux10*)
9934 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9935 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9936 else
9937 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9939 if test "$with_gnu_ld" = no; then
9940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9941 hardcode_libdir_flag_spec_ld='+b $libdir'
9942 hardcode_libdir_separator=:
9943 hardcode_direct=yes
9944 hardcode_direct_absolute=yes
9945 export_dynamic_flag_spec='${wl}-E'
9946 # hardcode_minus_L: Not really in the search PATH,
9947 # but as the default location of the library.
9948 hardcode_minus_L=yes
9952 hpux11*)
9953 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9954 case $host_cpu in
9955 hppa*64*)
9956 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 ia64*)
9959 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9964 esac
9965 else
9966 case $host_cpu in
9967 hppa*64*)
9968 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9970 ia64*)
9971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9975 # Older versions of the 11.00 compiler do not understand -b yet
9976 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9978 $as_echo_n "checking if $CC understands -b... " >&6; }
9979 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 lt_cv_prog_compiler__b=no
9983 save_LDFLAGS="$LDFLAGS"
9984 LDFLAGS="$LDFLAGS -b"
9985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9987 # The linker can only warn and ignore the option if not recognized
9988 # So say no if there are warnings
9989 if test -s conftest.err; then
9990 # Append any errors to the config.log.
9991 cat conftest.err 1>&5
9992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9994 if diff conftest.exp conftest.er2 >/dev/null; then
9995 lt_cv_prog_compiler__b=yes
9997 else
9998 lt_cv_prog_compiler__b=yes
10001 $RM -r conftest*
10002 LDFLAGS="$save_LDFLAGS"
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10006 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10008 if test x"$lt_cv_prog_compiler__b" = xyes; then
10009 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10010 else
10011 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10015 esac
10017 if test "$with_gnu_ld" = no; then
10018 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10019 hardcode_libdir_separator=:
10021 case $host_cpu in
10022 hppa*64*|ia64*)
10023 hardcode_direct=no
10024 hardcode_shlibpath_var=no
10027 hardcode_direct=yes
10028 hardcode_direct_absolute=yes
10029 export_dynamic_flag_spec='${wl}-E'
10031 # hardcode_minus_L: Not really in the search PATH,
10032 # but as the default location of the library.
10033 hardcode_minus_L=yes
10035 esac
10039 irix5* | irix6* | nonstopux*)
10040 if test "$GCC" = yes; then
10041 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'
10042 # Try to use the -exported_symbol ld option, if it does not
10043 # work, assume that -exports_file does not work either and
10044 # implicitly export all symbols.
10045 save_LDFLAGS="$LDFLAGS"
10046 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 int foo(void) {}
10050 _ACEOF
10051 if ac_fn_c_try_link "$LINENO"; then :
10052 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'
10055 rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057 LDFLAGS="$save_LDFLAGS"
10058 else
10059 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'
10060 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'
10062 archive_cmds_need_lc='no'
10063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10064 hardcode_libdir_separator=:
10065 inherit_rpath=yes
10066 link_all_deplibs=yes
10069 netbsd*)
10070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10072 else
10073 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10075 hardcode_libdir_flag_spec='-R$libdir'
10076 hardcode_direct=yes
10077 hardcode_shlibpath_var=no
10080 newsos6)
10081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082 hardcode_direct=yes
10083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10084 hardcode_libdir_separator=:
10085 hardcode_shlibpath_var=no
10088 *nto* | *qnx*)
10091 openbsd*)
10092 if test -f /usr/libexec/ld.so; then
10093 hardcode_direct=yes
10094 hardcode_shlibpath_var=no
10095 hardcode_direct_absolute=yes
10096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10098 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10100 export_dynamic_flag_spec='${wl}-E'
10101 else
10102 case $host_os in
10103 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10105 hardcode_libdir_flag_spec='-R$libdir'
10108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10111 esac
10113 else
10114 ld_shlibs=no
10118 os2*)
10119 hardcode_libdir_flag_spec='-L$libdir'
10120 hardcode_minus_L=yes
10121 allow_undefined_flag=unsupported
10122 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'
10123 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10126 osf3*)
10127 if test "$GCC" = yes; then
10128 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10129 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'
10130 else
10131 allow_undefined_flag=' -expect_unresolved \*'
10132 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'
10134 archive_cmds_need_lc='no'
10135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10136 hardcode_libdir_separator=:
10139 osf4* | osf5*) # as osf3* with the addition of -msym flag
10140 if test "$GCC" = yes; then
10141 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10142 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'
10143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10144 else
10145 allow_undefined_flag=' -expect_unresolved \*'
10146 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'
10147 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~
10148 $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'
10150 # Both c and cxx compiler support -rpath directly
10151 hardcode_libdir_flag_spec='-rpath $libdir'
10153 archive_cmds_need_lc='no'
10154 hardcode_libdir_separator=:
10157 solaris*)
10158 no_undefined_flag=' -z defs'
10159 if test "$GCC" = yes; then
10160 wlarc='${wl}'
10161 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10163 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10164 else
10165 case `$CC -V 2>&1` in
10166 *"Compilers 5.0"*)
10167 wlarc=''
10168 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10173 wlarc='${wl}'
10174 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10175 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10176 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10178 esac
10180 hardcode_libdir_flag_spec='-R$libdir'
10181 hardcode_shlibpath_var=no
10182 case $host_os in
10183 solaris2.[0-5] | solaris2.[0-5].*) ;;
10185 # The compiler driver will combine and reorder linker options,
10186 # but understands `-z linker_flag'. GCC discards it without `$wl',
10187 # but is careful enough not to reorder.
10188 # Supported since Solaris 2.6 (maybe 2.5.1?)
10189 if test "$GCC" = yes; then
10190 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10191 else
10192 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10195 esac
10196 link_all_deplibs=yes
10199 sunos4*)
10200 if test "x$host_vendor" = xsequent; then
10201 # Use $CC to link under sequent, because it throws in some extra .o
10202 # files that make .init and .fini sections work.
10203 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10204 else
10205 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_libdir_flag_spec='-L$libdir'
10208 hardcode_direct=yes
10209 hardcode_minus_L=yes
10210 hardcode_shlibpath_var=no
10213 sysv4)
10214 case $host_vendor in
10215 sni)
10216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_direct=yes # is this really true???
10219 siemens)
10220 ## LD is ld it makes a PLAMLIB
10221 ## CC just makes a GrossModule.
10222 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10223 reload_cmds='$CC -r -o $output$reload_objs'
10224 hardcode_direct=no
10226 motorola)
10227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10230 esac
10231 runpath_var='LD_RUN_PATH'
10232 hardcode_shlibpath_var=no
10235 sysv4.3*)
10236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237 hardcode_shlibpath_var=no
10238 export_dynamic_flag_spec='-Bexport'
10241 sysv4*MP*)
10242 if test -d /usr/nec; then
10243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244 hardcode_shlibpath_var=no
10245 runpath_var=LD_RUN_PATH
10246 hardcode_runpath_var=yes
10247 ld_shlibs=yes
10251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10252 no_undefined_flag='${wl}-z,text'
10253 archive_cmds_need_lc=no
10254 hardcode_shlibpath_var=no
10255 runpath_var='LD_RUN_PATH'
10257 if test "$GCC" = yes; then
10258 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 else
10261 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 sysv5* | sco3.2v5* | sco5v6*)
10267 # Note: We can NOT use -z defs as we might desire, because we do not
10268 # link with -lc, and that would cause any symbols used from libc to
10269 # always be unresolved, which means just about no library would
10270 # ever link correctly. If we're not using GNU ld we use -z text
10271 # though, which does catch some bad symbols but isn't as heavy-handed
10272 # as -z defs.
10273 no_undefined_flag='${wl}-z,text'
10274 allow_undefined_flag='${wl}-z,nodefs'
10275 archive_cmds_need_lc=no
10276 hardcode_shlibpath_var=no
10277 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10278 hardcode_libdir_separator=':'
10279 link_all_deplibs=yes
10280 export_dynamic_flag_spec='${wl}-Bexport'
10281 runpath_var='LD_RUN_PATH'
10283 if test "$GCC" = yes; then
10284 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10285 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286 else
10287 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 uts4*)
10293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294 hardcode_libdir_flag_spec='-L$libdir'
10295 hardcode_shlibpath_var=no
10299 ld_shlibs=no
10301 esac
10303 if test x$host_vendor = xsni; then
10304 case $host in
10305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10306 export_dynamic_flag_spec='${wl}-Blargedynsym'
10308 esac
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10313 $as_echo "$ld_shlibs" >&6; }
10314 test "$ld_shlibs" = no && can_build_shared=no
10316 with_gnu_ld=$with_gnu_ld
10333 # Do we need to explicitly link libc?
10335 case "x$archive_cmds_need_lc" in
10336 x|xyes)
10337 # Assume -lc should be added
10338 archive_cmds_need_lc=yes
10340 if test "$enable_shared" = yes && test "$GCC" = yes; then
10341 case $archive_cmds in
10342 *'~'*)
10343 # FIXME: we may have to deal with multi-command sequences.
10345 '$CC '*)
10346 # Test whether the compiler implicitly links with -lc since on some
10347 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10348 # to ld, don't add -lc before -lgcc.
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10350 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10351 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 $RM conftest*
10355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10358 (eval $ac_compile) 2>&5
10359 ac_status=$?
10360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10361 test $ac_status = 0; } 2>conftest.err; then
10362 soname=conftest
10363 lib=conftest
10364 libobjs=conftest.$ac_objext
10365 deplibs=
10366 wl=$lt_prog_compiler_wl
10367 pic_flag=$lt_prog_compiler_pic
10368 compiler_flags=-v
10369 linker_flags=-v
10370 verstring=
10371 output_objdir=.
10372 libname=conftest
10373 lt_save_allow_undefined_flag=$allow_undefined_flag
10374 allow_undefined_flag=
10375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10376 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10377 ac_status=$?
10378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10379 test $ac_status = 0; }
10380 then
10381 lt_cv_archive_cmds_need_lc=no
10382 else
10383 lt_cv_archive_cmds_need_lc=yes
10385 allow_undefined_flag=$lt_save_allow_undefined_flag
10386 else
10387 cat conftest.err 1>&5
10389 $RM conftest*
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10393 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10394 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10396 esac
10399 esac
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10558 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10560 if test "$GCC" = yes; then
10561 case $host_os in
10562 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10563 *) lt_awk_arg="/^libraries:/" ;;
10564 esac
10565 case $host_os in
10566 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10567 *) lt_sed_strip_eq="s,=/,/,g" ;;
10568 esac
10569 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10570 case $lt_search_path_spec in
10571 *\;*)
10572 # if the path contains ";" then we assume it to be the separator
10573 # otherwise default to the standard path separator (i.e. ":") - it is
10574 # assumed that no part of a normal pathname contains ";" but that should
10575 # okay in the real world where ";" in dirpaths is itself problematic.
10576 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10581 esac
10582 # Ok, now we have the path, separated by spaces, we can step through it
10583 # and add multilib dir if necessary.
10584 lt_tmp_lt_search_path_spec=
10585 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10586 for lt_sys_path in $lt_search_path_spec; do
10587 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10588 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10589 else
10590 test -d "$lt_sys_path" && \
10591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10593 done
10594 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10595 BEGIN {RS=" "; FS="/|\n";} {
10596 lt_foo="";
10597 lt_count=0;
10598 for (lt_i = NF; lt_i > 0; lt_i--) {
10599 if ($lt_i != "" && $lt_i != ".") {
10600 if ($lt_i == "..") {
10601 lt_count++;
10602 } else {
10603 if (lt_count == 0) {
10604 lt_foo="/" $lt_i lt_foo;
10605 } else {
10606 lt_count--;
10611 if (lt_foo != "") { lt_freq[lt_foo]++; }
10612 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10614 # AWK program above erroneously prepends '/' to C:/dos/paths
10615 # for these hosts.
10616 case $host_os in
10617 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10618 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10619 esac
10620 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10621 else
10622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10624 library_names_spec=
10625 libname_spec='lib$name'
10626 soname_spec=
10627 shrext_cmds=".so"
10628 postinstall_cmds=
10629 postuninstall_cmds=
10630 finish_cmds=
10631 finish_eval=
10632 shlibpath_var=
10633 shlibpath_overrides_runpath=unknown
10634 version_type=none
10635 dynamic_linker="$host_os ld.so"
10636 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10637 need_lib_prefix=unknown
10638 hardcode_into_libs=no
10640 # when you set need_version to no, make sure it does not cause -set_version
10641 # flags to be left without arguments
10642 need_version=unknown
10644 case $host_os in
10645 aix3*)
10646 version_type=linux
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10648 shlibpath_var=LIBPATH
10650 # AIX 3 has no versioning support, so we append a major version to the name.
10651 soname_spec='${libname}${release}${shared_ext}$major'
10654 aix[4-9]*)
10655 version_type=linux
10656 need_lib_prefix=no
10657 need_version=no
10658 hardcode_into_libs=yes
10659 if test "$host_cpu" = ia64; then
10660 # AIX 5 supports IA64
10661 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 else
10664 # With GCC up to 2.95.x, collect2 would create an import file
10665 # for dependence libraries. The import file would start with
10666 # the line `#! .'. This would cause the generated library to
10667 # depend on `.', always an invalid library. This was fixed in
10668 # development snapshots of GCC prior to 3.0.
10669 case $host_os in
10670 aix4 | aix4.[01] | aix4.[01].*)
10671 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10672 echo ' yes '
10673 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10675 else
10676 can_build_shared=no
10679 esac
10680 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10681 # soname into executable. Probably we can add versioning support to
10682 # collect2, so additional links can be useful in future.
10683 if test "$aix_use_runtimelinking" = yes; then
10684 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10685 # instead of lib<name>.a to let people know that these are not
10686 # typical AIX shared libraries.
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688 else
10689 # We preserve .a as extension for shared libraries through AIX4.2
10690 # and later when we are not doing run time linking.
10691 library_names_spec='${libname}${release}.a $libname.a'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10694 shlibpath_var=LIBPATH
10698 amigaos*)
10699 case $host_cpu in
10700 powerpc)
10701 # Since July 2007 AmigaOS4 officially supports .so libraries.
10702 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 m68k)
10706 library_names_spec='$libname.ixlibrary $libname.a'
10707 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10708 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'
10710 esac
10713 beos*)
10714 library_names_spec='${libname}${shared_ext}'
10715 dynamic_linker="$host_os ld.so"
10716 shlibpath_var=LIBRARY_PATH
10719 bsdi[45]*)
10720 version_type=linux
10721 need_version=no
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10727 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10728 # the default ld.so.conf also contains /usr/contrib/lib and
10729 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10730 # libtool to hard-code these into programs
10733 cygwin* | mingw* | pw32* | cegcc*)
10734 version_type=windows
10735 shrext_cmds=".dll"
10736 need_version=no
10737 need_lib_prefix=no
10739 case $GCC,$host_os in
10740 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10741 library_names_spec='$libname.dll.a'
10742 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10743 postinstall_cmds='base_file=`basename \${file}`~
10744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10745 dldir=$destdir/`dirname \$dlpath`~
10746 test -d \$dldir || mkdir -p \$dldir~
10747 $install_prog $dir/$dlname \$dldir/$dlname~
10748 chmod a+x \$dldir/$dlname~
10749 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10750 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10753 dlpath=$dir/\$dldll~
10754 $RM \$dlpath'
10755 shlibpath_overrides_runpath=yes
10757 case $host_os in
10758 cygwin*)
10759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10760 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10762 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10764 mingw* | cegcc*)
10765 # MinGW DLLs use traditional 'lib' prefix
10766 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768 pw32*)
10769 # pw32 DLLs use 'pw' prefix rather than 'lib'
10770 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772 esac
10776 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10778 esac
10779 dynamic_linker='Win32 ld.exe'
10780 # FIXME: first we should search . and the directory the executable is in
10781 shlibpath_var=PATH
10784 darwin* | rhapsody*)
10785 dynamic_linker="$host_os dyld"
10786 version_type=darwin
10787 need_lib_prefix=no
10788 need_version=no
10789 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10790 soname_spec='${libname}${release}${major}$shared_ext'
10791 shlibpath_overrides_runpath=yes
10792 shlibpath_var=DYLD_LIBRARY_PATH
10793 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10796 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10799 dgux*)
10800 version_type=linux
10801 need_lib_prefix=no
10802 need_version=no
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 shlibpath_var=LD_LIBRARY_PATH
10808 freebsd* | dragonfly*)
10809 # DragonFly does not have aout. When/if they implement a new
10810 # versioning mechanism, adjust this.
10811 if test -x /usr/bin/objformat; then
10812 objformat=`/usr/bin/objformat`
10813 else
10814 case $host_os in
10815 freebsd[23].*) objformat=aout ;;
10816 *) objformat=elf ;;
10817 esac
10819 version_type=freebsd-$objformat
10820 case $version_type in
10821 freebsd-elf*)
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10823 need_version=no
10824 need_lib_prefix=no
10826 freebsd-*)
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10828 need_version=yes
10830 esac
10831 shlibpath_var=LD_LIBRARY_PATH
10832 case $host_os in
10833 freebsd2.*)
10834 shlibpath_overrides_runpath=yes
10836 freebsd3.[01]* | freebsdelf3.[01]*)
10837 shlibpath_overrides_runpath=yes
10838 hardcode_into_libs=yes
10840 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10841 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10842 shlibpath_overrides_runpath=no
10843 hardcode_into_libs=yes
10845 *) # from 4.6 on, and DragonFly
10846 shlibpath_overrides_runpath=yes
10847 hardcode_into_libs=yes
10849 esac
10852 gnu*)
10853 version_type=linux
10854 need_lib_prefix=no
10855 need_version=no
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 hardcode_into_libs=yes
10862 haiku*)
10863 version_type=linux
10864 need_lib_prefix=no
10865 need_version=no
10866 dynamic_linker="$host_os runtime_loader"
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LIBRARY_PATH
10870 shlibpath_overrides_runpath=yes
10871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10872 hardcode_into_libs=yes
10875 hpux9* | hpux10* | hpux11*)
10876 # Give a soname corresponding to the major version so that dld.sl refuses to
10877 # link against other versions.
10878 version_type=sunos
10879 need_lib_prefix=no
10880 need_version=no
10881 case $host_cpu in
10882 ia64*)
10883 shrext_cmds='.so'
10884 hardcode_into_libs=yes
10885 dynamic_linker="$host_os dld.so"
10886 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 if test "X$HPUX_IA64_MODE" = X32; then
10891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10892 else
10893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10897 hppa*64*)
10898 shrext_cmds='.sl'
10899 hardcode_into_libs=yes
10900 dynamic_linker="$host_os dld.sl"
10901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10909 shrext_cmds='.sl'
10910 dynamic_linker="$host_os dld.sl"
10911 shlibpath_var=SHLIB_PATH
10912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10916 esac
10917 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10918 postinstall_cmds='chmod 555 $lib'
10919 # or fails outright, so override atomically:
10920 install_override_mode=555
10923 interix[3-9]*)
10924 version_type=linux
10925 need_lib_prefix=no
10926 need_version=no
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=no
10932 hardcode_into_libs=yes
10935 irix5* | irix6* | nonstopux*)
10936 case $host_os in
10937 nonstopux*) version_type=nonstopux ;;
10939 if test "$lt_cv_prog_gnu_ld" = yes; then
10940 version_type=linux
10941 else
10942 version_type=irix
10943 fi ;;
10944 esac
10945 need_lib_prefix=no
10946 need_version=no
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10949 case $host_os in
10950 irix5* | nonstopux*)
10951 libsuff= shlibsuff=
10954 case $LD in # libtool.m4 will add one of these switches to LD
10955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10956 libsuff= shlibsuff= libmagic=32-bit;;
10957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10958 libsuff=32 shlibsuff=N32 libmagic=N32;;
10959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10961 *) libsuff= shlibsuff= libmagic=never-match;;
10962 esac
10964 esac
10965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10966 shlibpath_overrides_runpath=no
10967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10969 hardcode_into_libs=yes
10972 # No shared lib support for Linux oldld, aout, or coff.
10973 linux*oldld* | linux*aout* | linux*coff*)
10974 dynamic_linker=no
10977 # This must be Linux ELF.
10978 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10979 version_type=linux
10980 need_lib_prefix=no
10981 need_version=no
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=no
10988 # Some binutils ld are patched to set DT_RUNPATH
10989 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 lt_cv_shlibpath_overrides_runpath=no
10993 save_LDFLAGS=$LDFLAGS
10994 save_libdir=$libdir
10995 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10996 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11001 main ()
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11010 lt_cv_shlibpath_overrides_runpath=yes
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LDFLAGS=$save_LDFLAGS
11016 libdir=$save_libdir
11020 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11022 # This implies no fast_install, which is unacceptable.
11023 # Some rework will be needed to allow for fast_install
11024 # before this can be enabled.
11025 hardcode_into_libs=yes
11027 # Append ld.so.conf contents to the search path
11028 if test -f /etc/ld.so.conf; then
11029 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' ' '`
11030 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11033 # We used to test for /lib/ld.so.1 and disable shared libraries on
11034 # powerpc, because MkLinux only supported shared libraries with the
11035 # GNU dynamic linker. Since this was broken with cross compilers,
11036 # most powerpc-linux boxes support dynamic linking these days and
11037 # people can always --disable-shared, the test was removed, and we
11038 # assume the GNU/Linux dynamic linker is in use.
11039 dynamic_linker='GNU/Linux ld.so'
11042 netbsd*)
11043 version_type=sunos
11044 need_lib_prefix=no
11045 need_version=no
11046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11049 dynamic_linker='NetBSD (a.out) ld.so'
11050 else
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 dynamic_linker='NetBSD ld.elf_so'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 shlibpath_overrides_runpath=yes
11057 hardcode_into_libs=yes
11060 newsos6)
11061 version_type=linux
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=yes
11067 *nto* | *qnx*)
11068 version_type=qnx
11069 need_lib_prefix=no
11070 need_version=no
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072 soname_spec='${libname}${release}${shared_ext}$major'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 shlibpath_overrides_runpath=no
11075 hardcode_into_libs=yes
11076 dynamic_linker='ldqnx.so'
11079 openbsd*)
11080 version_type=sunos
11081 sys_lib_dlsearch_path_spec="/usr/lib"
11082 need_lib_prefix=no
11083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11084 case $host_os in
11085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11086 *) need_version=no ;;
11087 esac
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11092 case $host_os in
11093 openbsd2.[89] | openbsd2.[89].*)
11094 shlibpath_overrides_runpath=no
11097 shlibpath_overrides_runpath=yes
11099 esac
11100 else
11101 shlibpath_overrides_runpath=yes
11105 os2*)
11106 libname_spec='$name'
11107 shrext_cmds=".dll"
11108 need_lib_prefix=no
11109 library_names_spec='$libname${shared_ext} $libname.a'
11110 dynamic_linker='OS/2 ld.exe'
11111 shlibpath_var=LIBPATH
11114 osf3* | osf4* | osf5*)
11115 version_type=osf
11116 need_lib_prefix=no
11117 need_version=no
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11125 rdos*)
11126 dynamic_linker=no
11129 solaris*)
11130 version_type=linux
11131 need_lib_prefix=no
11132 need_version=no
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11137 hardcode_into_libs=yes
11138 # ldd complains unless libraries are executable
11139 postinstall_cmds='chmod +x $lib'
11142 sunos4*)
11143 version_type=sunos
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=yes
11148 if test "$with_gnu_ld" = yes; then
11149 need_lib_prefix=no
11151 need_version=yes
11154 sysv4 | sysv4.3*)
11155 version_type=linux
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 shlibpath_var=LD_LIBRARY_PATH
11159 case $host_vendor in
11160 sni)
11161 shlibpath_overrides_runpath=no
11162 need_lib_prefix=no
11163 runpath_var=LD_RUN_PATH
11165 siemens)
11166 need_lib_prefix=no
11168 motorola)
11169 need_lib_prefix=no
11170 need_version=no
11171 shlibpath_overrides_runpath=no
11172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11174 esac
11177 sysv4*MP*)
11178 if test -d /usr/nec ;then
11179 version_type=linux
11180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11181 soname_spec='$libname${shared_ext}.$major'
11182 shlibpath_var=LD_LIBRARY_PATH
11186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11187 version_type=freebsd-elf
11188 need_lib_prefix=no
11189 need_version=no
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 shlibpath_overrides_runpath=yes
11194 hardcode_into_libs=yes
11195 if test "$with_gnu_ld" = yes; then
11196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11197 else
11198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11199 case $host_os in
11200 sco3.2v5*)
11201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11203 esac
11205 sys_lib_dlsearch_path_spec='/usr/lib'
11208 tpf*)
11209 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11210 version_type=linux
11211 need_lib_prefix=no
11212 need_version=no
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 shlibpath_overrides_runpath=no
11216 hardcode_into_libs=yes
11219 uts4*)
11220 version_type=linux
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 shlibpath_var=LD_LIBRARY_PATH
11227 dynamic_linker=no
11229 esac
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11231 $as_echo "$dynamic_linker" >&6; }
11232 test "$dynamic_linker" = no && can_build_shared=no
11234 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11235 if test "$GCC" = yes; then
11236 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11239 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11240 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11242 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11243 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11339 hardcode_action=
11340 if test -n "$hardcode_libdir_flag_spec" ||
11341 test -n "$runpath_var" ||
11342 test "X$hardcode_automatic" = "Xyes" ; then
11344 # We can hardcode non-existent directories.
11345 if test "$hardcode_direct" != no &&
11346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11347 # have to relink, otherwise we might link with an installed library
11348 # when we should be linking with a yet-to-be-installed one
11349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11350 test "$hardcode_minus_L" != no; then
11351 # Linking always hardcodes the temporary library directory.
11352 hardcode_action=relink
11353 else
11354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11355 hardcode_action=immediate
11357 else
11358 # We cannot hardcode anything, or else we can only hardcode existing
11359 # directories.
11360 hardcode_action=unsupported
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11363 $as_echo "$hardcode_action" >&6; }
11365 if test "$hardcode_action" = relink ||
11366 test "$inherit_rpath" = yes; then
11367 # Fast installation is not supported
11368 enable_fast_install=no
11369 elif test "$shlibpath_overrides_runpath" = yes ||
11370 test "$enable_shared" = no; then
11371 # Fast installation is not necessary
11372 enable_fast_install=needless
11380 if test "x$enable_dlopen" != xyes; then
11381 enable_dlopen=unknown
11382 enable_dlopen_self=unknown
11383 enable_dlopen_self_static=unknown
11384 else
11385 lt_cv_dlopen=no
11386 lt_cv_dlopen_libs=
11388 case $host_os in
11389 beos*)
11390 lt_cv_dlopen="load_add_on"
11391 lt_cv_dlopen_libs=
11392 lt_cv_dlopen_self=yes
11395 mingw* | pw32* | cegcc*)
11396 lt_cv_dlopen="LoadLibrary"
11397 lt_cv_dlopen_libs=
11400 cygwin*)
11401 lt_cv_dlopen="dlopen"
11402 lt_cv_dlopen_libs=
11405 darwin*)
11406 # if libdl is installed we need to link against it
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11408 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 ac_check_lib_save_LIBS=$LIBS
11413 LIBS="-ldl $LIBS"
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11417 /* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11420 #ifdef __cplusplus
11421 extern "C"
11422 #endif
11423 char dlopen ();
11425 main ()
11427 return dlopen ();
11429 return 0;
11431 _ACEOF
11432 if ac_fn_c_try_link "$LINENO"; then :
11433 ac_cv_lib_dl_dlopen=yes
11434 else
11435 ac_cv_lib_dl_dlopen=no
11437 rm -f core conftest.err conftest.$ac_objext \
11438 conftest$ac_exeext conftest.$ac_ext
11439 LIBS=$ac_check_lib_save_LIBS
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11442 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11443 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11445 else
11447 lt_cv_dlopen="dyld"
11448 lt_cv_dlopen_libs=
11449 lt_cv_dlopen_self=yes
11456 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11457 if test "x$ac_cv_func_shl_load" = x""yes; then :
11458 lt_cv_dlopen="shl_load"
11459 else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11461 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11462 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 ac_check_lib_save_LIBS=$LIBS
11466 LIBS="-ldld $LIBS"
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11470 /* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 char shl_load ();
11478 main ()
11480 return shl_load ();
11482 return 0;
11484 _ACEOF
11485 if ac_fn_c_try_link "$LINENO"; then :
11486 ac_cv_lib_dld_shl_load=yes
11487 else
11488 ac_cv_lib_dld_shl_load=no
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_lib_save_LIBS
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11495 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11496 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11497 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11498 else
11499 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11500 if test "x$ac_cv_func_dlopen" = x""yes; then :
11501 lt_cv_dlopen="dlopen"
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11504 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 ac_check_lib_save_LIBS=$LIBS
11509 LIBS="-ldl $LIBS"
11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11513 /* Override any GCC internal prototype to avoid an error.
11514 Use char because int might match the return type of a GCC
11515 builtin and then its argument prototype would still apply. */
11516 #ifdef __cplusplus
11517 extern "C"
11518 #endif
11519 char dlopen ();
11521 main ()
11523 return dlopen ();
11525 return 0;
11527 _ACEOF
11528 if ac_fn_c_try_link "$LINENO"; then :
11529 ac_cv_lib_dl_dlopen=yes
11530 else
11531 ac_cv_lib_dl_dlopen=no
11533 rm -f core conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11535 LIBS=$ac_check_lib_save_LIBS
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11538 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11539 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11541 else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11543 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11544 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 ac_check_lib_save_LIBS=$LIBS
11548 LIBS="-lsvld $LIBS"
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11552 /* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11555 #ifdef __cplusplus
11556 extern "C"
11557 #endif
11558 char dlopen ();
11560 main ()
11562 return dlopen ();
11564 return 0;
11566 _ACEOF
11567 if ac_fn_c_try_link "$LINENO"; then :
11568 ac_cv_lib_svld_dlopen=yes
11569 else
11570 ac_cv_lib_svld_dlopen=no
11572 rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11577 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11578 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11582 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-ldld $LIBS"
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11591 /* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11594 #ifdef __cplusplus
11595 extern "C"
11596 #endif
11597 char dld_link ();
11599 main ()
11601 return dld_link ();
11603 return 0;
11605 _ACEOF
11606 if ac_fn_c_try_link "$LINENO"; then :
11607 ac_cv_lib_dld_dld_link=yes
11608 else
11609 ac_cv_lib_dld_dld_link=no
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613 LIBS=$ac_check_lib_save_LIBS
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11616 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11617 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11618 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11637 esac
11639 if test "x$lt_cv_dlopen" != xno; then
11640 enable_dlopen=yes
11641 else
11642 enable_dlopen=no
11645 case $lt_cv_dlopen in
11646 dlopen)
11647 save_CPPFLAGS="$CPPFLAGS"
11648 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11650 save_LDFLAGS="$LDFLAGS"
11651 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11653 save_LIBS="$LIBS"
11654 LIBS="$lt_cv_dlopen_libs $LIBS"
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11657 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11658 if test "${lt_cv_dlopen_self+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 if test "$cross_compiling" = yes; then :
11662 lt_cv_dlopen_self=cross
11663 else
11664 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11665 lt_status=$lt_dlunknown
11666 cat > conftest.$ac_ext <<_LT_EOF
11667 #line 11667 "configure"
11668 #include "confdefs.h"
11670 #if HAVE_DLFCN_H
11671 #include <dlfcn.h>
11672 #endif
11674 #include <stdio.h>
11676 #ifdef RTLD_GLOBAL
11677 # define LT_DLGLOBAL RTLD_GLOBAL
11678 #else
11679 # ifdef DL_GLOBAL
11680 # define LT_DLGLOBAL DL_GLOBAL
11681 # else
11682 # define LT_DLGLOBAL 0
11683 # endif
11684 #endif
11686 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11687 find out it does not work in some platform. */
11688 #ifndef LT_DLLAZY_OR_NOW
11689 # ifdef RTLD_LAZY
11690 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11691 # else
11692 # ifdef DL_LAZY
11693 # define LT_DLLAZY_OR_NOW DL_LAZY
11694 # else
11695 # ifdef RTLD_NOW
11696 # define LT_DLLAZY_OR_NOW RTLD_NOW
11697 # else
11698 # ifdef DL_NOW
11699 # define LT_DLLAZY_OR_NOW DL_NOW
11700 # else
11701 # define LT_DLLAZY_OR_NOW 0
11702 # endif
11703 # endif
11704 # endif
11705 # endif
11706 #endif
11708 /* When -fvisbility=hidden is used, assume the code has been annotated
11709 correspondingly for the symbols needed. */
11710 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11711 void fnord () __attribute__((visibility("default")));
11712 #endif
11714 void fnord () { int i=42; }
11715 int main ()
11717 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11718 int status = $lt_dlunknown;
11720 if (self)
11722 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11723 else
11725 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11726 else puts (dlerror ());
11728 /* dlclose (self); */
11730 else
11731 puts (dlerror ());
11733 return status;
11735 _LT_EOF
11736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11737 (eval $ac_link) 2>&5
11738 ac_status=$?
11739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11741 (./conftest; exit; ) >&5 2>/dev/null
11742 lt_status=$?
11743 case x$lt_status in
11744 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11745 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11746 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11747 esac
11748 else :
11749 # compilation failed
11750 lt_cv_dlopen_self=no
11753 rm -fr conftest*
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11758 $as_echo "$lt_cv_dlopen_self" >&6; }
11760 if test "x$lt_cv_dlopen_self" = xyes; then
11761 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11763 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11764 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 if test "$cross_compiling" = yes; then :
11768 lt_cv_dlopen_self_static=cross
11769 else
11770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11771 lt_status=$lt_dlunknown
11772 cat > conftest.$ac_ext <<_LT_EOF
11773 #line 11773 "configure"
11774 #include "confdefs.h"
11776 #if HAVE_DLFCN_H
11777 #include <dlfcn.h>
11778 #endif
11780 #include <stdio.h>
11782 #ifdef RTLD_GLOBAL
11783 # define LT_DLGLOBAL RTLD_GLOBAL
11784 #else
11785 # ifdef DL_GLOBAL
11786 # define LT_DLGLOBAL DL_GLOBAL
11787 # else
11788 # define LT_DLGLOBAL 0
11789 # endif
11790 #endif
11792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11793 find out it does not work in some platform. */
11794 #ifndef LT_DLLAZY_OR_NOW
11795 # ifdef RTLD_LAZY
11796 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11797 # else
11798 # ifdef DL_LAZY
11799 # define LT_DLLAZY_OR_NOW DL_LAZY
11800 # else
11801 # ifdef RTLD_NOW
11802 # define LT_DLLAZY_OR_NOW RTLD_NOW
11803 # else
11804 # ifdef DL_NOW
11805 # define LT_DLLAZY_OR_NOW DL_NOW
11806 # else
11807 # define LT_DLLAZY_OR_NOW 0
11808 # endif
11809 # endif
11810 # endif
11811 # endif
11812 #endif
11814 /* When -fvisbility=hidden is used, assume the code has been annotated
11815 correspondingly for the symbols needed. */
11816 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11817 void fnord () __attribute__((visibility("default")));
11818 #endif
11820 void fnord () { int i=42; }
11821 int main ()
11823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11824 int status = $lt_dlunknown;
11826 if (self)
11828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11829 else
11831 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11832 else puts (dlerror ());
11834 /* dlclose (self); */
11836 else
11837 puts (dlerror ());
11839 return status;
11841 _LT_EOF
11842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11843 (eval $ac_link) 2>&5
11844 ac_status=$?
11845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11846 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11847 (./conftest; exit; ) >&5 2>/dev/null
11848 lt_status=$?
11849 case x$lt_status in
11850 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11851 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11852 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11853 esac
11854 else :
11855 # compilation failed
11856 lt_cv_dlopen_self_static=no
11859 rm -fr conftest*
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11864 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11867 CPPFLAGS="$save_CPPFLAGS"
11868 LDFLAGS="$save_LDFLAGS"
11869 LIBS="$save_LIBS"
11871 esac
11873 case $lt_cv_dlopen_self in
11874 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11875 *) enable_dlopen_self=unknown ;;
11876 esac
11878 case $lt_cv_dlopen_self_static in
11879 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11880 *) enable_dlopen_self_static=unknown ;;
11881 esac
11900 striplib=
11901 old_striplib=
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11903 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11904 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11905 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11906 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11908 $as_echo "yes" >&6; }
11909 else
11910 # FIXME - insert some real tests, host_os isn't really good enough
11911 case $host_os in
11912 darwin*)
11913 if test -n "$STRIP" ; then
11914 striplib="$STRIP -x"
11915 old_striplib="$STRIP -S"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11917 $as_echo "yes" >&6; }
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11927 esac
11941 # Report which library types will actually be built
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11943 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11945 $as_echo "$can_build_shared" >&6; }
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11948 $as_echo_n "checking whether to build shared libraries... " >&6; }
11949 test "$can_build_shared" = "no" && enable_shared=no
11951 # On AIX, shared libraries and static libraries use the same namespace, and
11952 # are all built from PIC.
11953 case $host_os in
11954 aix3*)
11955 test "$enable_shared" = yes && enable_static=no
11956 if test -n "$RANLIB"; then
11957 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11958 postinstall_cmds='$RANLIB $lib'
11962 aix[4-9]*)
11963 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11964 test "$enable_shared" = yes && enable_static=no
11967 esac
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11969 $as_echo "$enable_shared" >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11972 $as_echo_n "checking whether to build static libraries... " >&6; }
11973 # Make sure either enable_shared or enable_static is yes.
11974 test "$enable_shared" = yes || enable_static=yes
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11976 $as_echo "$enable_static" >&6; }
11982 ac_ext=c
11983 ac_cpp='$CPP $CPPFLAGS'
11984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11988 CC="$lt_save_CC"
12002 ac_config_commands="$ac_config_commands libtool"
12007 # Only expand once:
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12013 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12014 # Check whether --enable-maintainer-mode was given.
12015 if test "${enable_maintainer_mode+set}" = set; then :
12016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12017 else
12018 USE_MAINTAINER_MODE=no
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12022 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12023 if test $USE_MAINTAINER_MODE = yes; then
12024 MAINTAINER_MODE_TRUE=
12025 MAINTAINER_MODE_FALSE='#'
12026 else
12027 MAINTAINER_MODE_TRUE='#'
12028 MAINTAINER_MODE_FALSE=
12031 MAINT=$MAINTAINER_MODE_TRUE
12035 # For libtool versioning info, format is CURRENT:REVISION:AGE
12036 libtool_VERSION=1:0:0
12039 # Check header files.
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12041 $as_echo_n "checking for ANSI C header files... " >&6; }
12042 if test "${ac_cv_header_stdc+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047 #include <stdlib.h>
12048 #include <stdarg.h>
12049 #include <string.h>
12050 #include <float.h>
12053 main ()
12057 return 0;
12059 _ACEOF
12060 if ac_fn_c_try_compile "$LINENO"; then :
12061 ac_cv_header_stdc=yes
12062 else
12063 ac_cv_header_stdc=no
12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067 if test $ac_cv_header_stdc = yes; then
12068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12071 #include <string.h>
12073 _ACEOF
12074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12075 $EGREP "memchr" >/dev/null 2>&1; then :
12077 else
12078 ac_cv_header_stdc=no
12080 rm -f conftest*
12084 if test $ac_cv_header_stdc = yes; then
12085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088 #include <stdlib.h>
12090 _ACEOF
12091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12092 $EGREP "free" >/dev/null 2>&1; then :
12094 else
12095 ac_cv_header_stdc=no
12097 rm -f conftest*
12101 if test $ac_cv_header_stdc = yes; then
12102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12103 if test "$cross_compiling" = yes; then :
12105 else
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12108 #include <ctype.h>
12109 #include <stdlib.h>
12110 #if ((' ' & 0x0FF) == 0x020)
12111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12113 #else
12114 # define ISLOWER(c) \
12115 (('a' <= (c) && (c) <= 'i') \
12116 || ('j' <= (c) && (c) <= 'r') \
12117 || ('s' <= (c) && (c) <= 'z'))
12118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12119 #endif
12121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12123 main ()
12125 int i;
12126 for (i = 0; i < 256; i++)
12127 if (XOR (islower (i), ISLOWER (i))
12128 || toupper (i) != TOUPPER (i))
12129 return 2;
12130 return 0;
12132 _ACEOF
12133 if ac_fn_c_try_run "$LINENO"; then :
12135 else
12136 ac_cv_header_stdc=no
12138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12139 conftest.$ac_objext conftest.beam conftest.$ac_ext
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12145 $as_echo "$ac_cv_header_stdc" >&6; }
12146 if test $ac_cv_header_stdc = yes; then
12148 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
12153 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
12154 if test "${gcc_cv_header_string+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159 #include <string.h>
12160 #include <strings.h>
12162 main ()
12166 return 0;
12168 _ACEOF
12169 if ac_fn_c_try_compile "$LINENO"; then :
12170 gcc_cv_header_string=yes
12171 else
12172 gcc_cv_header_string=no
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
12177 $as_echo "$gcc_cv_header_string" >&6; }
12178 if test $gcc_cv_header_string = yes; then
12180 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
12186 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12188 acx_cv_header_stdint=stddef.h
12189 acx_cv_header_stdint_kind="(already complete)"
12190 for i in stdint.h $inttype_headers; do
12191 unset ac_cv_type_uintptr_t
12192 unset ac_cv_type_uintmax_t
12193 unset ac_cv_type_int_least32_t
12194 unset ac_cv_type_int_fast32_t
12195 unset ac_cv_type_uint64_t
12196 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12197 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12198 #include <$i>
12200 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12201 acx_cv_header_stdint=$i
12202 else
12203 continue
12206 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12207 #include <$i>
12209 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12211 else
12212 acx_cv_header_stdint_kind="(mostly complete)"
12215 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12216 #include <$i>
12218 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12220 else
12221 acx_cv_header_stdint_kind="(mostly complete)"
12224 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12225 #include <$i>
12227 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12229 else
12230 acx_cv_header_stdint_kind="(mostly complete)"
12233 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12234 #include <$i>
12236 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12238 else
12239 acx_cv_header_stdint_kind="(lacks uint64_t)"
12242 break
12243 done
12244 if test "$acx_cv_header_stdint" = stddef.h; then
12245 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12246 for i in stdint.h $inttype_headers; do
12247 unset ac_cv_type_uintptr_t
12248 unset ac_cv_type_uint32_t
12249 unset ac_cv_type_uint64_t
12250 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12251 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12252 #include <$i>
12254 if test "x$ac_cv_type_uint32_t" = x""yes; then :
12255 acx_cv_header_stdint=$i
12256 else
12257 continue
12260 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12261 #include <$i>
12263 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12267 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12268 #include <$i>
12270 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12274 break
12275 done
12277 if test "$acx_cv_header_stdint" = stddef.h; then
12278 acx_cv_header_stdint_kind="(u_intXX_t style)"
12279 for i in sys/types.h $inttype_headers; do
12280 unset ac_cv_type_u_int32_t
12281 unset ac_cv_type_u_int64_t
12282 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12283 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12284 #include <$i>
12286 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12287 acx_cv_header_stdint=$i
12288 else
12289 continue
12292 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12293 #include <$i>
12295 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
12299 break
12300 done
12302 if test "$acx_cv_header_stdint" = stddef.h; then
12303 acx_cv_header_stdint_kind="(using manual detection)"
12306 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12307 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12308 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12309 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12310 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12312 # ----------------- Summarize what we found so far
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12315 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12317 case `$as_basename -- gstdint.h ||
12318 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12319 Xgstdint.h : 'X\(//\)$' \| \
12320 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12321 $as_echo X/gstdint.h |
12322 sed '/^.*\/\([^/][^/]*\)\/*$/{
12323 s//\1/
12326 /^X\/\(\/\/\)$/{
12327 s//\1/
12330 /^X\/\(\/\).*/{
12331 s//\1/
12334 s/.*/./; q'` in
12335 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12336 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12337 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12338 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12339 *) ;;
12340 esac
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12343 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12345 # ----------------- done included file, check C basic types --------
12347 # Lacking an uintptr_t? Test size of void *
12348 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12349 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12352 # This bug is HP SR number 8606223364.
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12354 $as_echo_n "checking size of void *... " >&6; }
12355 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12360 else
12361 if test "$ac_cv_type_void_p" = yes; then
12362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12364 { as_fn_set_status 77
12365 as_fn_error "cannot compute sizeof (void *)
12366 See \`config.log' for more details." "$LINENO" 5; }; }
12367 else
12368 ac_cv_sizeof_void_p=0
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12374 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12378 cat >>confdefs.h <<_ACEOF
12379 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12380 _ACEOF
12383 esac
12385 # Lacking an uint64_t? Test size of long
12386 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12387 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12388 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12389 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12390 # This bug is HP SR number 8606223364.
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12392 $as_echo_n "checking size of long... " >&6; }
12393 if test "${ac_cv_sizeof_long+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12398 else
12399 if test "$ac_cv_type_long" = yes; then
12400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12402 { as_fn_set_status 77
12403 as_fn_error "cannot compute sizeof (long)
12404 See \`config.log' for more details." "$LINENO" 5; }; }
12405 else
12406 ac_cv_sizeof_long=0
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12412 $as_echo "$ac_cv_sizeof_long" >&6; }
12416 cat >>confdefs.h <<_ACEOF
12417 #define SIZEOF_LONG $ac_cv_sizeof_long
12418 _ACEOF
12421 esac
12423 if test $acx_cv_header_stdint = stddef.h; then
12424 # Lacking a good header? Test size of everything and deduce all types.
12425 # The cast to long int works around a bug in the HP C Compiler
12426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12428 # This bug is HP SR number 8606223364.
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12430 $as_echo_n "checking size of int... " >&6; }
12431 if test "${ac_cv_sizeof_int+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12436 else
12437 if test "$ac_cv_type_int" = yes; then
12438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12440 { as_fn_set_status 77
12441 as_fn_error "cannot compute sizeof (int)
12442 See \`config.log' for more details." "$LINENO" 5; }; }
12443 else
12444 ac_cv_sizeof_int=0
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12450 $as_echo "$ac_cv_sizeof_int" >&6; }
12454 cat >>confdefs.h <<_ACEOF
12455 #define SIZEOF_INT $ac_cv_sizeof_int
12456 _ACEOF
12459 # The cast to long int works around a bug in the HP C Compiler
12460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12462 # This bug is HP SR number 8606223364.
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12464 $as_echo_n "checking size of short... " >&6; }
12465 if test "${ac_cv_sizeof_short+set}" = set; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12470 else
12471 if test "$ac_cv_type_short" = yes; then
12472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12474 { as_fn_set_status 77
12475 as_fn_error "cannot compute sizeof (short)
12476 See \`config.log' for more details." "$LINENO" 5; }; }
12477 else
12478 ac_cv_sizeof_short=0
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12484 $as_echo "$ac_cv_sizeof_short" >&6; }
12488 cat >>confdefs.h <<_ACEOF
12489 #define SIZEOF_SHORT $ac_cv_sizeof_short
12490 _ACEOF
12493 # The cast to long int works around a bug in the HP C Compiler
12494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12496 # This bug is HP SR number 8606223364.
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12498 $as_echo_n "checking size of char... " >&6; }
12499 if test "${ac_cv_sizeof_char+set}" = set; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12504 else
12505 if test "$ac_cv_type_char" = yes; then
12506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12508 { as_fn_set_status 77
12509 as_fn_error "cannot compute sizeof (char)
12510 See \`config.log' for more details." "$LINENO" 5; }; }
12511 else
12512 ac_cv_sizeof_char=0
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12518 $as_echo "$ac_cv_sizeof_char" >&6; }
12522 cat >>confdefs.h <<_ACEOF
12523 #define SIZEOF_CHAR $ac_cv_sizeof_char
12524 _ACEOF
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12529 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12530 case "$ac_cv_sizeof_char" in
12531 1) acx_cv_type_int8_t=char ;;
12532 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12533 esac
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12535 $as_echo "$acx_cv_type_int8_t" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12538 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12539 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12540 2:*) acx_cv_type_int16_t=int ;;
12541 *:2) acx_cv_type_int16_t=short ;;
12542 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12543 esac
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12545 $as_echo "$acx_cv_type_int16_t" >&6; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12548 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12549 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12550 4:*) acx_cv_type_int32_t=int ;;
12551 *:4) acx_cv_type_int32_t=long ;;
12552 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12553 esac
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12555 $as_echo "$acx_cv_type_int32_t" >&6; }
12558 # These tests are here to make the output prettier
12560 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12561 case "$ac_cv_sizeof_long" in
12562 8) acx_cv_type_int64_t=long ;;
12563 esac
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12565 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12567 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12570 # Now we can use the above types
12572 if test "$ac_cv_type_uintptr_t" != yes; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12574 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12575 case $ac_cv_sizeof_void_p in
12576 2) acx_cv_type_intptr_t=int16_t ;;
12577 4) acx_cv_type_intptr_t=int32_t ;;
12578 8) acx_cv_type_intptr_t=int64_t ;;
12579 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12580 esac
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12582 $as_echo "$acx_cv_type_intptr_t" >&6; }
12585 # ----------------- done all checks, emit header -------------
12586 ac_config_commands="$ac_config_commands gstdint.h"
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12591 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12592 if test "${ac_cv_header_time+set}" = set; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 #include <sys/types.h>
12598 #include <sys/time.h>
12599 #include <time.h>
12602 main ()
12604 if ((struct tm *) 0)
12605 return 0;
12607 return 0;
12609 _ACEOF
12610 if ac_fn_c_try_compile "$LINENO"; then :
12611 ac_cv_header_time=yes
12612 else
12613 ac_cv_header_time=no
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12618 $as_echo "$ac_cv_header_time" >&6; }
12619 if test $ac_cv_header_time = yes; then
12621 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12626 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12627 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12632 #include <sys/types.h>
12633 #include <sys/wait.h>
12634 #ifndef WEXITSTATUS
12635 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12636 #endif
12637 #ifndef WIFEXITED
12638 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12639 #endif
12642 main ()
12644 int s;
12645 wait (&s);
12646 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12648 return 0;
12650 _ACEOF
12651 if ac_fn_c_try_compile "$LINENO"; then :
12652 ac_cv_header_sys_wait_h=yes
12653 else
12654 ac_cv_header_sys_wait_h=no
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12659 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12660 if test $ac_cv_header_sys_wait_h = yes; then
12662 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12667 for ac_header in execinfo.h fcntl.h limits.h netdb.h netinet/in.h
12668 do :
12669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12670 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12671 eval as_val=\$$as_ac_Header
12672 if test "x$as_val" = x""yes; then :
12673 cat >>confdefs.h <<_ACEOF
12674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12675 _ACEOF
12679 done
12681 for ac_header in sched.h semaphore.h stddef.h stdlib.h sys/loadavg.h
12682 do :
12683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12684 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12685 eval as_val=\$$as_ac_Header
12686 if test "x$as_val" = x""yes; then :
12687 cat >>confdefs.h <<_ACEOF
12688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12689 _ACEOF
12693 done
12695 for ac_header in sys/socket.h unistd.h
12696 do :
12697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12698 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12699 eval as_val=\$$as_ac_Header
12700 if test "x$as_val" = x""yes; then :
12701 cat >>confdefs.h <<_ACEOF
12702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12703 _ACEOF
12707 done
12710 # Checks for typedefs, structures, and compiler characteristics.
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12712 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12713 if test "${ac_cv_c_const+set}" = set; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12720 main ()
12722 /* FIXME: Include the comments suggested by Paul. */
12723 #ifndef __cplusplus
12724 /* Ultrix mips cc rejects this. */
12725 typedef int charset[2];
12726 const charset cs;
12727 /* SunOS 4.1.1 cc rejects this. */
12728 char const *const *pcpcc;
12729 char **ppc;
12730 /* NEC SVR4.0.2 mips cc rejects this. */
12731 struct point {int x, y;};
12732 static struct point const zero = {0,0};
12733 /* AIX XL C 1.02.0.0 rejects this.
12734 It does not let you subtract one const X* pointer from another in
12735 an arm of an if-expression whose if-part is not a constant
12736 expression */
12737 const char *g = "string";
12738 pcpcc = &g + (g ? g-g : 0);
12739 /* HPUX 7.0 cc rejects these. */
12740 ++pcpcc;
12741 ppc = (char**) pcpcc;
12742 pcpcc = (char const *const *) ppc;
12743 { /* SCO 3.2v4 cc rejects this. */
12744 char *t;
12745 char const *s = 0 ? (char *) 0 : (char const *) 0;
12747 *t++ = 0;
12748 if (s) return 0;
12750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12751 int x[] = {25, 17};
12752 const int *foo = &x[0];
12753 ++foo;
12755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12756 typedef const int *iptr;
12757 iptr p = 0;
12758 ++p;
12760 { /* AIX XL C 1.02.0.0 rejects this saying
12761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12762 struct s { int j; const int *ap[3]; };
12763 struct s *b; b->j = 5;
12765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12766 const int foo = 10;
12767 if (!foo) return 0;
12769 return !cs[0] && !zero.x;
12770 #endif
12773 return 0;
12775 _ACEOF
12776 if ac_fn_c_try_compile "$LINENO"; then :
12777 ac_cv_c_const=yes
12778 else
12779 ac_cv_c_const=no
12781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12784 $as_echo "$ac_cv_c_const" >&6; }
12785 if test $ac_cv_c_const = no; then
12787 $as_echo "#define const /**/" >>confdefs.h
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12792 $as_echo_n "checking for inline... " >&6; }
12793 if test "${ac_cv_c_inline+set}" = set; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796 ac_cv_c_inline=no
12797 for ac_kw in inline __inline__ __inline; do
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800 #ifndef __cplusplus
12801 typedef int foo_t;
12802 static $ac_kw foo_t static_foo () {return 0; }
12803 $ac_kw foo_t foo () {return 0; }
12804 #endif
12806 _ACEOF
12807 if ac_fn_c_try_compile "$LINENO"; then :
12808 ac_cv_c_inline=$ac_kw
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811 test "$ac_cv_c_inline" != no && break
12812 done
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12816 $as_echo "$ac_cv_c_inline" >&6; }
12818 case $ac_cv_c_inline in
12819 inline | yes) ;;
12821 case $ac_cv_c_inline in
12822 no) ac_val=;;
12823 *) ac_val=$ac_cv_c_inline;;
12824 esac
12825 cat >>confdefs.h <<_ACEOF
12826 #ifndef __cplusplus
12827 #define inline $ac_val
12828 #endif
12829 _ACEOF
12831 esac
12833 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12834 if test "x$ac_cv_type_mode_t" = x""yes; then :
12836 else
12838 cat >>confdefs.h <<_ACEOF
12839 #define mode_t int
12840 _ACEOF
12844 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12845 if test "x$ac_cv_type_off_t" = x""yes; then :
12847 else
12849 cat >>confdefs.h <<_ACEOF
12850 #define off_t long int
12851 _ACEOF
12855 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12856 if test "x$ac_cv_type_pid_t" = x""yes; then :
12858 else
12860 cat >>confdefs.h <<_ACEOF
12861 #define pid_t int
12862 _ACEOF
12866 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12867 if test "x$ac_cv_type_size_t" = x""yes; then :
12869 else
12871 cat >>confdefs.h <<_ACEOF
12872 #define size_t unsigned int
12873 _ACEOF
12877 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
12878 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
12879 ac_have_decl=1
12880 else
12881 ac_have_decl=0
12884 cat >>confdefs.h <<_ACEOF
12885 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
12886 _ACEOF
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12889 $as_echo_n "checking for working volatile... " >&6; }
12890 if test "${ac_cv_c_volatile+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12897 main ()
12900 volatile int x;
12901 int * volatile y = (int *) 0;
12902 return !x && !y;
12904 return 0;
12906 _ACEOF
12907 if ac_fn_c_try_compile "$LINENO"; then :
12908 ac_cv_c_volatile=yes
12909 else
12910 ac_cv_c_volatile=no
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
12915 $as_echo "$ac_cv_c_volatile" >&6; }
12916 if test $ac_cv_c_volatile = no; then
12918 $as_echo "#define volatile /**/" >>confdefs.h
12922 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12923 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
12925 cat >>confdefs.h <<_ACEOF
12926 #define HAVE_PTRDIFF_T 1
12927 _ACEOF
12933 # Check to see if -pthread or -lpthread is needed. Prefer the former.
12934 # In case the pthread.h system header is not found, this test will fail.
12935 XPCFLAGS=""
12936 CFLAGS="$CFLAGS -pthread"
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12939 #include <pthread.h>
12940 void *g(void *d) { return NULL; }
12942 main ()
12944 pthread_t t; pthread_create(&t,NULL,g,NULL);
12946 return 0;
12948 _ACEOF
12949 if ac_fn_c_try_link "$LINENO"; then :
12950 XPCFLAGS=" -Wc,-pthread"
12951 else
12952 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12955 #include <pthread.h>
12956 void *g(void *d) { return NULL; }
12958 main ()
12960 pthread_t t; pthread_create(&t,NULL,g,NULL);
12962 return 0;
12964 _ACEOF
12965 if ac_fn_c_try_link "$LINENO"; then :
12967 else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: Pthreads are not supported in this libgupc build" >&5
12969 $as_echo "$as_me: Pthreads are not supported in this libgupc build" >&6;}
12971 rm -f core conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
12974 rm -f core conftest.err conftest.$ac_objext \
12975 conftest$ac_exeext conftest.$ac_ext
12977 # Check for functions needed.
12978 for ac_header in vfork.h
12979 do :
12980 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12981 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12982 cat >>confdefs.h <<_ACEOF
12983 #define HAVE_VFORK_H 1
12984 _ACEOF
12988 done
12990 for ac_func in fork vfork
12991 do :
12992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12994 eval as_val=\$$as_ac_var
12995 if test "x$as_val" = x""yes; then :
12996 cat >>confdefs.h <<_ACEOF
12997 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12998 _ACEOF
13001 done
13003 if test "x$ac_cv_func_fork" = xyes; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13005 $as_echo_n "checking for working fork... " >&6; }
13006 if test "${ac_cv_func_fork_works+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 if test "$cross_compiling" = yes; then :
13010 ac_cv_func_fork_works=cross
13011 else
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 $ac_includes_default
13016 main ()
13019 /* By Ruediger Kuhlmann. */
13020 return fork () < 0;
13023 return 0;
13025 _ACEOF
13026 if ac_fn_c_try_run "$LINENO"; then :
13027 ac_cv_func_fork_works=yes
13028 else
13029 ac_cv_func_fork_works=no
13031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13032 conftest.$ac_objext conftest.beam conftest.$ac_ext
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13037 $as_echo "$ac_cv_func_fork_works" >&6; }
13039 else
13040 ac_cv_func_fork_works=$ac_cv_func_fork
13042 if test "x$ac_cv_func_fork_works" = xcross; then
13043 case $host in
13044 *-*-amigaos* | *-*-msdosdjgpp*)
13045 # Override, as these systems have only a dummy fork() stub
13046 ac_cv_func_fork_works=no
13049 ac_cv_func_fork_works=yes
13051 esac
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13053 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13055 ac_cv_func_vfork_works=$ac_cv_func_vfork
13056 if test "x$ac_cv_func_vfork" = xyes; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13058 $as_echo_n "checking for working vfork... " >&6; }
13059 if test "${ac_cv_func_vfork_works+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 if test "$cross_compiling" = yes; then :
13063 ac_cv_func_vfork_works=cross
13064 else
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13067 /* Thanks to Paul Eggert for this test. */
13068 $ac_includes_default
13069 #include <sys/wait.h>
13070 #ifdef HAVE_VFORK_H
13071 # include <vfork.h>
13072 #endif
13073 /* On some sparc systems, changes by the child to local and incoming
13074 argument registers are propagated back to the parent. The compiler
13075 is told about this with #include <vfork.h>, but some compilers
13076 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13077 static variable whose address is put into a register that is
13078 clobbered by the vfork. */
13079 static void
13080 #ifdef __cplusplus
13081 sparc_address_test (int arg)
13082 # else
13083 sparc_address_test (arg) int arg;
13084 #endif
13086 static pid_t child;
13087 if (!child) {
13088 child = vfork ();
13089 if (child < 0) {
13090 perror ("vfork");
13091 _exit(2);
13093 if (!child) {
13094 arg = getpid();
13095 write(-1, "", 0);
13096 _exit (arg);
13102 main ()
13104 pid_t parent = getpid ();
13105 pid_t child;
13107 sparc_address_test (0);
13109 child = vfork ();
13111 if (child == 0) {
13112 /* Here is another test for sparc vfork register problems. This
13113 test uses lots of local variables, at least as many local
13114 variables as main has allocated so far including compiler
13115 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13116 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13117 reuse the register of parent for one of the local variables,
13118 since it will think that parent can't possibly be used any more
13119 in this routine. Assigning to the local variable will thus
13120 munge parent in the parent process. */
13121 pid_t
13122 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13123 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13124 /* Convince the compiler that p..p7 are live; otherwise, it might
13125 use the same hardware register for all 8 local variables. */
13126 if (p != p1 || p != p2 || p != p3 || p != p4
13127 || p != p5 || p != p6 || p != p7)
13128 _exit(1);
13130 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13131 from child file descriptors. If the child closes a descriptor
13132 before it execs or exits, this munges the parent's descriptor
13133 as well. Test for this by closing stdout in the child. */
13134 _exit(close(fileno(stdout)) != 0);
13135 } else {
13136 int status;
13137 struct stat st;
13139 while (wait(&status) != child)
13141 return (
13142 /* Was there some problem with vforking? */
13143 child < 0
13145 /* Did the child fail? (This shouldn't happen.) */
13146 || status
13148 /* Did the vfork/compiler bug occur? */
13149 || parent != getpid()
13151 /* Did the file descriptor bug occur? */
13152 || fstat(fileno(stdout), &st) != 0
13156 _ACEOF
13157 if ac_fn_c_try_run "$LINENO"; then :
13158 ac_cv_func_vfork_works=yes
13159 else
13160 ac_cv_func_vfork_works=no
13162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13163 conftest.$ac_objext conftest.beam conftest.$ac_ext
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13168 $as_echo "$ac_cv_func_vfork_works" >&6; }
13171 if test "x$ac_cv_func_fork_works" = xcross; then
13172 ac_cv_func_vfork_works=$ac_cv_func_vfork
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13174 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13177 if test "x$ac_cv_func_vfork_works" = xyes; then
13179 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13181 else
13183 $as_echo "#define vfork fork" >>confdefs.h
13186 if test "x$ac_cv_func_fork_works" = xyes; then
13188 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13192 for ac_header in stdlib.h
13193 do :
13194 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13195 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
13196 cat >>confdefs.h <<_ACEOF
13197 #define HAVE_STDLIB_H 1
13198 _ACEOF
13202 done
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13205 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13206 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 if test "$cross_compiling" = yes; then :
13210 ac_cv_func_malloc_0_nonnull=no
13211 else
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13214 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13215 # include <stdlib.h>
13216 #else
13217 char *malloc ();
13218 #endif
13221 main ()
13223 return ! malloc (0);
13225 return 0;
13227 _ACEOF
13228 if ac_fn_c_try_run "$LINENO"; then :
13229 ac_cv_func_malloc_0_nonnull=yes
13230 else
13231 ac_cv_func_malloc_0_nonnull=no
13233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13234 conftest.$ac_objext conftest.beam conftest.$ac_ext
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13239 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13240 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13242 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13244 else
13245 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13247 case " $LIBOBJS " in
13248 *" malloc.$ac_objext "* ) ;;
13249 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13251 esac
13254 $as_echo "#define malloc rpl_malloc" >>confdefs.h
13259 for ac_header in stdlib.h unistd.h
13260 do :
13261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13262 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13263 eval as_val=\$$as_ac_Header
13264 if test "x$as_val" = x""yes; then :
13265 cat >>confdefs.h <<_ACEOF
13266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13267 _ACEOF
13271 done
13273 for ac_func in getpagesize
13274 do :
13275 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13276 if test "x$ac_cv_func_getpagesize" = x""yes; then :
13277 cat >>confdefs.h <<_ACEOF
13278 #define HAVE_GETPAGESIZE 1
13279 _ACEOF
13282 done
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13285 $as_echo_n "checking for working mmap... " >&6; }
13286 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 if test "$cross_compiling" = yes; then :
13290 ac_cv_func_mmap_fixed_mapped=no
13291 else
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294 $ac_includes_default
13295 /* malloc might have been renamed as rpl_malloc. */
13296 #undef malloc
13298 /* Thanks to Mike Haertel and Jim Avera for this test.
13299 Here is a matrix of mmap possibilities:
13300 mmap private not fixed
13301 mmap private fixed at somewhere currently unmapped
13302 mmap private fixed at somewhere already mapped
13303 mmap shared not fixed
13304 mmap shared fixed at somewhere currently unmapped
13305 mmap shared fixed at somewhere already mapped
13306 For private mappings, we should verify that changes cannot be read()
13307 back from the file, nor mmap's back from the file at a different
13308 address. (There have been systems where private was not correctly
13309 implemented like the infamous i386 svr4.0, and systems where the
13310 VM page cache was not coherent with the file system buffer cache
13311 like early versions of FreeBSD and possibly contemporary NetBSD.)
13312 For shared mappings, we should conversely verify that changes get
13313 propagated back to all the places they're supposed to be.
13315 Grep wants private fixed already mapped.
13316 The main things grep needs to know about mmap are:
13317 * does it exist and is it safe to write into the mmap'd area
13318 * how to use it (BSD variants) */
13320 #include <fcntl.h>
13321 #include <sys/mman.h>
13323 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13324 char *malloc ();
13325 #endif
13327 /* This mess was copied from the GNU getpagesize.h. */
13328 #ifndef HAVE_GETPAGESIZE
13329 /* Assume that all systems that can run configure have sys/param.h. */
13330 # ifndef HAVE_SYS_PARAM_H
13331 # define HAVE_SYS_PARAM_H 1
13332 # endif
13334 # ifdef _SC_PAGESIZE
13335 # define getpagesize() sysconf(_SC_PAGESIZE)
13336 # else /* no _SC_PAGESIZE */
13337 # ifdef HAVE_SYS_PARAM_H
13338 # include <sys/param.h>
13339 # ifdef EXEC_PAGESIZE
13340 # define getpagesize() EXEC_PAGESIZE
13341 # else /* no EXEC_PAGESIZE */
13342 # ifdef NBPG
13343 # define getpagesize() NBPG * CLSIZE
13344 # ifndef CLSIZE
13345 # define CLSIZE 1
13346 # endif /* no CLSIZE */
13347 # else /* no NBPG */
13348 # ifdef NBPC
13349 # define getpagesize() NBPC
13350 # else /* no NBPC */
13351 # ifdef PAGESIZE
13352 # define getpagesize() PAGESIZE
13353 # endif /* PAGESIZE */
13354 # endif /* no NBPC */
13355 # endif /* no NBPG */
13356 # endif /* no EXEC_PAGESIZE */
13357 # else /* no HAVE_SYS_PARAM_H */
13358 # define getpagesize() 8192 /* punt totally */
13359 # endif /* no HAVE_SYS_PARAM_H */
13360 # endif /* no _SC_PAGESIZE */
13362 #endif /* no HAVE_GETPAGESIZE */
13365 main ()
13367 char *data, *data2, *data3;
13368 int i, pagesize;
13369 int fd;
13371 pagesize = getpagesize ();
13373 /* First, make a file with some known garbage in it. */
13374 data = (char *) malloc (pagesize);
13375 if (!data)
13376 return 1;
13377 for (i = 0; i < pagesize; ++i)
13378 *(data + i) = rand ();
13379 umask (0);
13380 fd = creat ("conftest.mmap", 0600);
13381 if (fd < 0)
13382 return 1;
13383 if (write (fd, data, pagesize) != pagesize)
13384 return 1;
13385 close (fd);
13387 /* Next, try to mmap the file at a fixed address which already has
13388 something else allocated at it. If we can, also make sure that
13389 we see the same garbage. */
13390 fd = open ("conftest.mmap", O_RDWR);
13391 if (fd < 0)
13392 return 1;
13393 data2 = (char *) malloc (2 * pagesize);
13394 if (!data2)
13395 return 1;
13396 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13397 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13398 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13399 return 1;
13400 for (i = 0; i < pagesize; ++i)
13401 if (*(data + i) != *(data2 + i))
13402 return 1;
13404 /* Finally, make sure that changes to the mapped area do not
13405 percolate back to the file as seen by read(). (This is a bug on
13406 some variants of i386 svr4.0.) */
13407 for (i = 0; i < pagesize; ++i)
13408 *(data2 + i) = *(data2 + i) + 1;
13409 data3 = (char *) malloc (pagesize);
13410 if (!data3)
13411 return 1;
13412 if (read (fd, data3, pagesize) != pagesize)
13413 return 1;
13414 for (i = 0; i < pagesize; ++i)
13415 if (*(data + i) != *(data3 + i))
13416 return 1;
13417 close (fd);
13418 return 0;
13420 _ACEOF
13421 if ac_fn_c_try_run "$LINENO"; then :
13422 ac_cv_func_mmap_fixed_mapped=yes
13423 else
13424 ac_cv_func_mmap_fixed_mapped=no
13426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13427 conftest.$ac_objext conftest.beam conftest.$ac_ext
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13432 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13433 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13435 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13438 rm -f conftest.mmap
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13441 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
13442 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 rm -f conftest.sym conftest.file
13446 echo >conftest.file
13447 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13448 if test "$cross_compiling" = yes; then :
13449 ac_cv_func_lstat_dereferences_slashed_symlink=no
13450 else
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13453 $ac_includes_default
13455 main ()
13457 struct stat sbuf;
13458 /* Linux will dereference the symlink and fail.
13459 That is better in the sense that it means we will not
13460 have to compile and use the lstat wrapper. */
13461 return lstat ("conftest.sym/", &sbuf) == 0;
13463 return 0;
13465 _ACEOF
13466 if ac_fn_c_try_run "$LINENO"; then :
13467 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13468 else
13469 ac_cv_func_lstat_dereferences_slashed_symlink=no
13471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13472 conftest.$ac_objext conftest.beam conftest.$ac_ext
13475 else
13476 # If the `ln -s' command failed, then we probably don't even
13477 # have an lstat function.
13478 ac_cv_func_lstat_dereferences_slashed_symlink=no
13480 rm -f conftest.sym conftest.file
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13484 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13486 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13488 cat >>confdefs.h <<_ACEOF
13489 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13490 _ACEOF
13493 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
13494 case " $LIBOBJS " in
13495 *" lstat.$ac_objext "* ) ;;
13496 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13498 esac
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13503 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
13504 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
13505 $as_echo_n "(cached) " >&6
13506 else
13507 if test "$cross_compiling" = yes; then :
13508 ac_cv_func_stat_empty_string_bug=yes
13509 else
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 $ac_includes_default
13514 main ()
13516 struct stat sbuf;
13517 return stat ("", &sbuf) == 0;
13519 return 0;
13521 _ACEOF
13522 if ac_fn_c_try_run "$LINENO"; then :
13523 ac_cv_func_stat_empty_string_bug=no
13524 else
13525 ac_cv_func_stat_empty_string_bug=yes
13527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13528 conftest.$ac_objext conftest.beam conftest.$ac_ext
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13533 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
13534 if test $ac_cv_func_stat_empty_string_bug = yes; then
13535 case " $LIBOBJS " in
13536 *" stat.$ac_objext "* ) ;;
13537 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13539 esac
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_STAT_EMPTY_STRING_BUG 1
13544 _ACEOF
13548 for ac_func in clock_gettime ftruncate getcwd gethostbyname gethostname
13549 do :
13550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13551 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13552 eval as_val=\$$as_ac_var
13553 if test "x$as_val" = x""yes; then :
13554 cat >>confdefs.h <<_ACEOF
13555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13556 _ACEOF
13559 done
13561 for ac_func in getloadavg memset mkdir munmap socket
13562 do :
13563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13565 eval as_val=\$$as_ac_var
13566 if test "x$as_val" = x""yes; then :
13567 cat >>confdefs.h <<_ACEOF
13568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13569 _ACEOF
13572 done
13574 for ac_func in strcasecmp strdup strerror strtol strtoull
13575 do :
13576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13577 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13578 eval as_val=\$$as_ac_var
13579 if test "x$as_val" = x""yes; then :
13580 cat >>confdefs.h <<_ACEOF
13581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13582 _ACEOF
13585 done
13587 for ac_func in backtrace backtrace_symbols backtrace_symbols_fd
13588 do :
13589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13591 eval as_val=\$$as_ac_var
13592 if test "x$as_val" = x""yes; then :
13593 cat >>confdefs.h <<_ACEOF
13594 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13595 _ACEOF
13598 done
13600 # Check whether --enable-largefile was given.
13601 if test "${enable_largefile+set}" = set; then :
13602 enableval=$enable_largefile;
13605 if test "$enable_largefile" != no; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13608 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13609 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 ac_cv_sys_largefile_CC=no
13613 if test "$GCC" != yes; then
13614 ac_save_CC=$CC
13615 while :; do
13616 # IRIX 6.2 and later do not support large files by default,
13617 # so use the C compiler's -n32 option if that helps.
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620 #include <sys/types.h>
13621 /* Check that off_t can represent 2**63 - 1 correctly.
13622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13623 since some C++ compilers masquerading as C compilers
13624 incorrectly reject 9223372036854775807. */
13625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13627 && LARGE_OFF_T % 2147483647 == 1)
13628 ? 1 : -1];
13630 main ()
13634 return 0;
13636 _ACEOF
13637 if ac_fn_c_try_compile "$LINENO"; then :
13638 break
13640 rm -f core conftest.err conftest.$ac_objext
13641 CC="$CC -n32"
13642 if ac_fn_c_try_compile "$LINENO"; then :
13643 ac_cv_sys_largefile_CC=' -n32'; break
13645 rm -f core conftest.err conftest.$ac_objext
13646 break
13647 done
13648 CC=$ac_save_CC
13649 rm -f conftest.$ac_ext
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13653 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13654 if test "$ac_cv_sys_largefile_CC" != no; then
13655 CC=$CC$ac_cv_sys_largefile_CC
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13659 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13660 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 while :; do
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 #include <sys/types.h>
13667 /* Check that off_t can represent 2**63 - 1 correctly.
13668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13669 since some C++ compilers masquerading as C compilers
13670 incorrectly reject 9223372036854775807. */
13671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13673 && LARGE_OFF_T % 2147483647 == 1)
13674 ? 1 : -1];
13676 main ()
13680 return 0;
13682 _ACEOF
13683 if ac_fn_c_try_compile "$LINENO"; then :
13684 ac_cv_sys_file_offset_bits=no; break
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689 #define _FILE_OFFSET_BITS 64
13690 #include <sys/types.h>
13691 /* Check that off_t can represent 2**63 - 1 correctly.
13692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13693 since some C++ compilers masquerading as C compilers
13694 incorrectly reject 9223372036854775807. */
13695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13697 && LARGE_OFF_T % 2147483647 == 1)
13698 ? 1 : -1];
13700 main ()
13704 return 0;
13706 _ACEOF
13707 if ac_fn_c_try_compile "$LINENO"; then :
13708 ac_cv_sys_file_offset_bits=64; break
13710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13711 ac_cv_sys_file_offset_bits=unknown
13712 break
13713 done
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13716 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13717 case $ac_cv_sys_file_offset_bits in #(
13718 no | unknown) ;;
13720 cat >>confdefs.h <<_ACEOF
13721 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13722 _ACEOF
13724 esac
13725 rm -rf conftest*
13726 if test $ac_cv_sys_file_offset_bits = unknown; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13728 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13729 if test "${ac_cv_sys_large_files+set}" = set; then :
13730 $as_echo_n "(cached) " >&6
13731 else
13732 while :; do
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 #include <sys/types.h>
13736 /* Check that off_t can represent 2**63 - 1 correctly.
13737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13738 since some C++ compilers masquerading as C compilers
13739 incorrectly reject 9223372036854775807. */
13740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13742 && LARGE_OFF_T % 2147483647 == 1)
13743 ? 1 : -1];
13745 main ()
13749 return 0;
13751 _ACEOF
13752 if ac_fn_c_try_compile "$LINENO"; then :
13753 ac_cv_sys_large_files=no; break
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758 #define _LARGE_FILES 1
13759 #include <sys/types.h>
13760 /* Check that off_t can represent 2**63 - 1 correctly.
13761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13762 since some C++ compilers masquerading as C compilers
13763 incorrectly reject 9223372036854775807. */
13764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13766 && LARGE_OFF_T % 2147483647 == 1)
13767 ? 1 : -1];
13769 main ()
13773 return 0;
13775 _ACEOF
13776 if ac_fn_c_try_compile "$LINENO"; then :
13777 ac_cv_sys_large_files=1; break
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 ac_cv_sys_large_files=unknown
13781 break
13782 done
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13785 $as_echo "$ac_cv_sys_large_files" >&6; }
13786 case $ac_cv_sys_large_files in #(
13787 no | unknown) ;;
13789 cat >>confdefs.h <<_ACEOF
13790 #define _LARGE_FILES $ac_cv_sys_large_files
13791 _ACEOF
13793 esac
13794 rm -rf conftest*
13799 # Check for broken semaphore implementation on darwin.
13800 # sem_init returns: sem_init error: Function not implemented.
13801 case "$host" in
13802 *-darwin*)
13804 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
13807 esac
13809 # Check whether --enable-linux-futex was given.
13810 if test "${enable_linux_futex+set}" = set; then :
13811 enableval=$enable_linux_futex;
13812 case "$enableval" in
13813 yes|no|default) ;;
13814 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
13815 esac
13817 else
13818 enable_linux_futex=default
13822 case "$target" in
13823 *-linux*)
13824 case "$enable_linux_futex" in
13825 default)
13826 # If headers don't have gettid/futex syscalls definition, then
13827 # default to no, otherwise there will be compile time failures.
13828 # Otherwise, default to yes. If we don't detect we are
13829 # compiled/linked against NPTL and not cross-compiling, check
13830 # if programs are run by default against NPTL and if not, issue
13831 # a warning.
13832 enable_linux_futex=no
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 #include <sys/syscall.h>
13836 int lk;
13838 main ()
13840 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
13842 return 0;
13844 _ACEOF
13845 if ac_fn_c_try_link "$LINENO"; then :
13846 save_LIBS="$LIBS"
13847 LIBS="-lpthread $LIBS"
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 #ifndef _GNU_SOURCE
13851 #define _GNU_SOURCE 1
13852 #endif
13853 #include <pthread.h>
13854 pthread_t th; void *status;
13856 main ()
13858 pthread_tryjoin_np (th, &status);
13860 return 0;
13862 _ACEOF
13863 if ac_fn_c_try_link "$LINENO"; then :
13864 enable_linux_futex=yes
13865 else
13866 if test x$cross_compiling = xno; then
13867 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
13868 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
13870 If so, please configure with --disable-linux-futex" >&5
13871 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
13872 If so, please configure with --disable-linux-futex" >&2;}
13875 enable_linux_futex=yes
13877 rm -f core conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879 LIBS="$save_LIBS"
13881 rm -f core conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13884 yes)
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13887 #include <sys/syscall.h>
13888 int lk;
13890 main ()
13892 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
13894 return 0;
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13899 else
13900 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13905 esac
13908 enable_linux_futex=no
13910 esac
13911 if test x$enable_linux_futex = xyes; then
13916 # Check for pthread_{,attr_}[sg]etaffinity_np.
13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918 /* end confdefs.h. */
13919 #define _GNU_SOURCE
13920 #include <pthread.h>
13922 main ()
13924 cpu_set_t cpuset;
13925 pthread_attr_t attr;
13926 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
13927 if (CPU_ISSET (0, &cpuset))
13928 CPU_SET (1, &cpuset);
13929 else
13930 CPU_ZERO (&cpuset);
13931 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
13932 pthread_attr_init (&attr);
13933 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
13934 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
13936 return 0;
13938 _ACEOF
13939 if ac_fn_c_try_link "$LINENO"; then :
13941 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
13944 rm -f core conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
13947 # At least for glibc, clock_gettime is in librt. But don't pull that
13948 # in if it still doesn't give us the function we want.
13949 if test $ac_cv_func_clock_gettime = no; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13951 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13952 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955 ac_check_lib_save_LIBS=$LIBS
13956 LIBS="-lrt $LIBS"
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13963 #ifdef __cplusplus
13964 extern "C"
13965 #endif
13966 char clock_gettime ();
13968 main ()
13970 return clock_gettime ();
13972 return 0;
13974 _ACEOF
13975 if ac_fn_c_try_link "$LINENO"; then :
13976 ac_cv_lib_rt_clock_gettime=yes
13977 else
13978 ac_cv_lib_rt_clock_gettime=no
13980 rm -f core conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13985 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13986 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
13987 ac_cv_func_clock_gettime="yes"
13990 if test $ac_cv_func_clock_gettime = yes; then
13991 LIBS="-lrt $LIBS"
13993 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13998 # See if we support thread-local storage.
14001 # Check whether --enable-tls was given.
14002 if test "${enable_tls+set}" = set; then :
14003 enableval=$enable_tls;
14004 case "$enableval" in
14005 yes|no) ;;
14006 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
14007 esac
14009 else
14010 enable_tls=yes
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
14015 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
14016 if test "${gcc_cv_have_tls+set}" = set; then :
14017 $as_echo_n "(cached) " >&6
14018 else
14020 if test "$cross_compiling" = yes; then :
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023 __thread int a; int b; int main() { return a = b; }
14024 _ACEOF
14025 if ac_fn_c_try_link "$LINENO"; then :
14026 chktls_save_LDFLAGS="$LDFLAGS"
14027 case $host in
14028 *-*-linux*)
14029 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
14031 esac
14032 chktls_save_CFLAGS="$CFLAGS"
14033 CFLAGS="-fPIC $CFLAGS"
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14036 int f() { return 0; }
14037 _ACEOF
14038 if ac_fn_c_try_link "$LINENO"; then :
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041 __thread int a; int b; int f() { return a = b; }
14042 _ACEOF
14043 if ac_fn_c_try_link "$LINENO"; then :
14044 gcc_cv_have_tls=yes
14045 else
14046 gcc_cv_have_tls=no
14048 rm -f core conftest.err conftest.$ac_objext \
14049 conftest$ac_exeext conftest.$ac_ext
14050 else
14051 gcc_cv_have_tls=yes
14053 rm -f core conftest.err conftest.$ac_objext \
14054 conftest$ac_exeext conftest.$ac_ext
14055 CFLAGS="$chktls_save_CFLAGS"
14056 LDFLAGS="$chktls_save_LDFLAGS"
14057 else
14058 gcc_cv_have_tls=no
14060 rm -f core conftest.err conftest.$ac_objext \
14061 conftest$ac_exeext conftest.$ac_ext
14064 else
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14067 __thread int a; int b; int main() { return a = b; }
14068 _ACEOF
14069 if ac_fn_c_try_run "$LINENO"; then :
14070 chktls_save_LDFLAGS="$LDFLAGS"
14071 LDFLAGS="-static $LDFLAGS"
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14074 int main() { return 0; }
14075 _ACEOF
14076 if ac_fn_c_try_link "$LINENO"; then :
14077 if test "$cross_compiling" = yes; then :
14078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14080 as_fn_error "cannot run test program while cross compiling
14081 See \`config.log' for more details." "$LINENO" 5; }
14082 else
14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h. */
14085 __thread int a; int b; int main() { return a = b; }
14086 _ACEOF
14087 if ac_fn_c_try_run "$LINENO"; then :
14088 gcc_cv_have_tls=yes
14089 else
14090 gcc_cv_have_tls=no
14092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14093 conftest.$ac_objext conftest.beam conftest.$ac_ext
14096 else
14097 gcc_cv_have_tls=yes
14099 rm -f core conftest.err conftest.$ac_objext \
14100 conftest$ac_exeext conftest.$ac_ext
14101 LDFLAGS="$chktls_save_LDFLAGS"
14102 if test $gcc_cv_have_tls = yes; then
14103 chktls_save_CFLAGS="$CFLAGS"
14104 thread_CFLAGS=failed
14105 for flag in '' '-pthread' '-lpthread'; do
14106 CFLAGS="$flag $chktls_save_CFLAGS"
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 #include <pthread.h>
14110 void *g(void *d) { return NULL; }
14112 main ()
14114 pthread_t t; pthread_create(&t,NULL,g,NULL);
14116 return 0;
14118 _ACEOF
14119 if ac_fn_c_try_link "$LINENO"; then :
14120 thread_CFLAGS="$flag"
14122 rm -f core conftest.err conftest.$ac_objext \
14123 conftest$ac_exeext conftest.$ac_ext
14124 if test "X$thread_CFLAGS" != Xfailed; then
14125 break
14127 done
14128 CFLAGS="$chktls_save_CFLAGS"
14129 if test "X$thread_CFLAGS" != Xfailed; then
14130 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
14131 if test "$cross_compiling" = yes; then :
14132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14134 as_fn_error "cannot run test program while cross compiling
14135 See \`config.log' for more details." "$LINENO" 5; }
14136 else
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14139 #include <pthread.h>
14140 __thread int a;
14141 static int *volatile a_in_other_thread;
14142 static void *
14143 thread_func (void *arg)
14145 a_in_other_thread = &a;
14146 return (void *)0;
14149 main ()
14151 pthread_t thread;
14152 void *thread_retval;
14153 int *volatile a_in_main_thread;
14154 a_in_main_thread = &a;
14155 if (pthread_create (&thread, (pthread_attr_t *)0,
14156 thread_func, (void *)0))
14157 return 0;
14158 if (pthread_join (thread, &thread_retval))
14159 return 0;
14160 return (a_in_other_thread == a_in_main_thread);
14162 return 0;
14164 _ACEOF
14165 if ac_fn_c_try_run "$LINENO"; then :
14166 gcc_cv_have_tls=yes
14167 else
14168 gcc_cv_have_tls=no
14170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14171 conftest.$ac_objext conftest.beam conftest.$ac_ext
14174 CFLAGS="$chktls_save_CFLAGS"
14177 else
14178 gcc_cv_have_tls=no
14180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14181 conftest.$ac_objext conftest.beam conftest.$ac_ext
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
14186 $as_echo "$gcc_cv_have_tls" >&6; }
14187 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
14189 $as_echo "#define HAVE_TLS 1" >>confdefs.h
14193 # See what sort of export controls are availible.
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14196 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
14197 if test "${libgupc_cv_have_attribute_visibility+set}" = set; then :
14198 $as_echo_n "(cached) " >&6
14199 else
14201 save_CFLAGS="$CFLAGS"
14202 CFLAGS="$CFLAGS -Werror"
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14205 void __attribute__((visibility("hidden"))) foo(void) { }
14207 main ()
14211 return 0;
14213 _ACEOF
14214 if ac_fn_c_try_compile "$LINENO"; then :
14215 libgupc_cv_have_attribute_visibility=yes
14216 else
14217 libgupc_cv_have_attribute_visibility=no
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 CFLAGS="$save_CFLAGS"
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgupc_cv_have_attribute_visibility" >&5
14223 $as_echo "$libgupc_cv_have_attribute_visibility" >&6; }
14224 if test $libgupc_cv_have_attribute_visibility = yes; then
14226 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14231 $as_echo_n "checking whether the target supports dllexport... " >&6; }
14232 if test "${libgupc_cv_have_attribute_dllexport+set}" = set; then :
14233 $as_echo_n "(cached) " >&6
14234 else
14236 save_CFLAGS="$CFLAGS"
14237 CFLAGS="$CFLAGS -Werror"
14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h. */
14240 void __attribute__((dllexport)) foo(void) { }
14242 main ()
14246 return 0;
14248 _ACEOF
14249 if ac_fn_c_try_compile "$LINENO"; then :
14250 libgupc_cv_have_attribute_dllexport=yes
14251 else
14252 libgupc_cv_have_attribute_dllexport=no
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 CFLAGS="$save_CFLAGS"
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgupc_cv_have_attribute_dllexport" >&5
14258 $as_echo "$libgupc_cv_have_attribute_dllexport" >&6; }
14259 if test $libgupc_cv_have_attribute_dllexport = yes; then
14261 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14266 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
14267 if test "${libgupc_cv_have_attribute_alias+set}" = set; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14274 void foo(void) { }
14275 extern void bar(void) __attribute__((alias("foo")));
14277 main ()
14279 bar();
14281 return 0;
14283 _ACEOF
14284 if ac_fn_c_try_link "$LINENO"; then :
14285 libgupc_cv_have_attribute_alias=yes
14286 else
14287 libgupc_cv_have_attribute_alias=no
14289 rm -f core conftest.err conftest.$ac_objext \
14290 conftest$ac_exeext conftest.$ac_ext
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgupc_cv_have_attribute_alias" >&5
14293 $as_echo "$libgupc_cv_have_attribute_alias" >&6; }
14294 if test $libgupc_cv_have_attribute_alias = yes; then
14296 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
14301 # Check whether --with-gnu-ld was given.
14302 if test "${with_gnu_ld+set}" = set; then :
14303 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14304 else
14305 with_gnu_ld=no
14308 ac_prog=ld
14309 if test "$GCC" = yes; then
14310 # Check if gcc -print-prog-name=ld gives a path.
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14312 $as_echo_n "checking for ld used by $CC... " >&6; }
14313 case $host in
14314 *-*-mingw*)
14315 # gcc leaves a trailing carriage return which upsets mingw
14316 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14318 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14319 esac
14320 case $ac_prog in
14321 # Accept absolute paths.
14322 [\\/]* | ?:[\\/]*)
14323 re_direlt='/[^/][^/]*/\.\./'
14324 # Canonicalize the pathname of ld
14325 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14326 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14327 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14328 done
14329 test -z "$LD" && LD="$ac_prog"
14332 # If it fails, then pretend we aren't using GCC.
14333 ac_prog=ld
14336 # If it is relative, then search for the first ld in PATH.
14337 with_gnu_ld=unknown
14339 esac
14340 elif test "$with_gnu_ld" = yes; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14342 $as_echo_n "checking for GNU ld... " >&6; }
14343 else
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14345 $as_echo_n "checking for non-GNU ld... " >&6; }
14347 if test "${lt_cv_path_LD+set}" = set; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14350 if test -z "$LD"; then
14351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14352 for ac_dir in $PATH; do
14353 IFS="$lt_save_ifs"
14354 test -z "$ac_dir" && ac_dir=.
14355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14356 lt_cv_path_LD="$ac_dir/$ac_prog"
14357 # Check to see if the program is GNU ld. I'd rather use --version,
14358 # but apparently some variants of GNU ld only accept -v.
14359 # Break only if it was the GNU/non-GNU ld that we prefer.
14360 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14361 *GNU* | *'with BFD'*)
14362 test "$with_gnu_ld" != no && break
14365 test "$with_gnu_ld" != yes && break
14367 esac
14369 done
14370 IFS="$lt_save_ifs"
14371 else
14372 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14376 LD="$lt_cv_path_LD"
14377 if test -n "$LD"; then
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14379 $as_echo "$LD" >&6; }
14380 else
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382 $as_echo "no" >&6; }
14384 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14386 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14387 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14391 case `$LD -v 2>&1 </dev/null` in
14392 *GNU* | *'with BFD'*)
14393 lt_cv_prog_gnu_ld=yes
14396 lt_cv_prog_gnu_ld=no
14398 esac
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14401 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14402 with_gnu_ld=$lt_cv_prog_gnu_ld
14410 # If we're not using GNU ld, then there's no point in even trying these
14411 # tests. Check for that first. We should have already tested for gld
14412 # by now (in libtool), but require it now just to be safe...
14413 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
14414 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
14418 # The name set by libtool depends on the version of libtool. Shame on us
14419 # for depending on an impl detail, but c'est la vie. Older versions used
14420 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
14421 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
14422 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
14423 # set (hence we're using an older libtool), then set it.
14424 if test x${with_gnu_ld+set} != xset; then
14425 if test x${ac_cv_prog_gnu_ld+set} != xset; then
14426 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
14427 with_gnu_ld=no
14428 else
14429 with_gnu_ld=$ac_cv_prog_gnu_ld
14433 # Start by getting the version number. I think the libtool test already
14434 # does some of this, but throws away the result.
14435 libgupc_ld_is_gold=no
14436 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
14437 libgupc_ld_is_gold=yes
14440 ldver=`$LD --version 2>/dev/null |
14441 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
14443 libgupc_gnu_ld_version=`echo $ldver | \
14444 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
14446 # Set --gc-sections.
14447 if test "$with_gnu_ld" = "notbroken"; then
14448 # GNU ld it is! Joy and bunny rabbits!
14450 # All these tests are for C++; save the language and the compiler flags.
14451 # Need to do this so that g++ won't try to link in libstdc++
14452 ac_test_CFLAGS="${CFLAGS+set}"
14453 ac_save_CFLAGS="$CFLAGS"
14454 CFLAGS='-x c++ -Wl,--gc-sections'
14456 # Check for -Wl,--gc-sections
14457 # XXX This test is broken at the moment, as symbols required for linking
14458 # are now in libsupc++ (not built yet). In addition, this test has
14459 # cored on solaris in the past. In addition, --gc-sections doesn't
14460 # really work at the moment (keeps on discarding used sections, first
14461 # .eh_frame and now some of the glibc sections for iconv).
14462 # Bzzzzt. Thanks for playing, maybe next time.
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
14464 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
14465 if test "$cross_compiling" = yes; then :
14466 ac_sectionLDflags=yes
14467 else
14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14471 int main(void)
14473 try { throw 1; }
14474 catch (...) { };
14475 return 0;
14478 _ACEOF
14479 if ac_fn_c_try_run "$LINENO"; then :
14480 ac_sectionLDflags=yes
14481 else
14482 ac_sectionLDflags=no
14484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14485 conftest.$ac_objext conftest.beam conftest.$ac_ext
14488 if test "$ac_test_CFLAGS" = set; then
14489 CFLAGS="$ac_save_CFLAGS"
14490 else
14491 # this is the suspicious part
14492 CFLAGS=''
14494 if test "$ac_sectionLDflags" = "yes"; then
14495 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
14498 $as_echo "$ac_sectionLDflags" >&6; }
14501 # Set linker optimization flags.
14502 if test x"$with_gnu_ld" = x"yes"; then
14503 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
14511 # Check whether --enable-symvers was given.
14512 if test "${enable_symvers+set}" = set; then :
14513 enableval=$enable_symvers;
14514 case "$enableval" in
14515 yes|no|gnu) ;;
14516 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
14517 esac
14519 else
14520 enable_symvers=yes
14525 # If we never went through the LIBGUPC_CHECK_LINKER_FEATURES macro, then we
14526 # don't know enough about $LD to do tricks...
14528 # FIXME The following test is too strict, in theory.
14529 if test $enable_shared = no ||
14530 test "x$LD" = x ||
14531 test x$libgupc_gnu_ld_version = x; then
14532 enable_symvers=no
14535 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
14536 if test $enable_symvers != no; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
14538 $as_echo_n "checking for shared libgcc... " >&6; }
14539 ac_save_CFLAGS="$CFLAGS"
14540 CFLAGS=' -lgcc_s'
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14545 main ()
14547 return 0;
14549 return 0;
14551 _ACEOF
14552 if ac_fn_c_try_link "$LINENO"; then :
14553 libgupc_shared_libgcc=yes
14554 else
14555 libgupc_shared_libgcc=no
14557 rm -f core conftest.err conftest.$ac_objext \
14558 conftest$ac_exeext conftest.$ac_ext
14559 CFLAGS="$ac_save_CFLAGS"
14560 if test $libgupc_shared_libgcc = no; then
14561 cat > conftest.c <<EOF
14562 int main (void) { return 0; }
14564 libgupc_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
14565 -shared -shared-libgcc -o conftest.so \
14566 conftest.c -v 2>&1 >/dev/null \
14567 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
14568 rm -f conftest.c conftest.so
14569 if test x${libgupc_libgcc_s_suffix+set} = xset; then
14570 CFLAGS=" -lgcc_s$libgupc_libgcc_s_suffix"
14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14575 main ()
14577 return 0;
14579 return 0;
14581 _ACEOF
14582 if ac_fn_c_try_link "$LINENO"; then :
14583 libgupc_shared_libgcc=yes
14585 rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14587 CFLAGS="$ac_save_CFLAGS"
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgupc_shared_libgcc" >&5
14591 $as_echo "$libgupc_shared_libgcc" >&6; }
14594 # For GNU ld, we need at least this version. The format is described in
14595 # LIBGUPC_CHECK_LINKER_FEATURES above.
14596 libgupc_min_gnu_ld_version=21400
14597 # XXXXXXXXXXX libgupc_gnu_ld_version=21390
14599 # Check to see if unspecified "yes" value can win, given results above.
14600 # Change "yes" into either "no" or a style name.
14601 if test $enable_symvers = yes; then
14602 if test $with_gnu_ld = yes &&
14603 test $libgupc_shared_libgcc = yes;
14604 then
14605 if test $libgupc_gnu_ld_version -ge $libgupc_min_gnu_ld_version ; then
14606 enable_symvers=gnu
14607 elif test $libgupc_ld_is_gold = yes ; then
14608 enable_symvers=gnu
14609 else
14610 # The right tools, the right setup, but too old. Fallbacks?
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgupc_gnu_ld_version is too old for" >&5
14612 $as_echo "$as_me: WARNING: === Linker version $libgupc_gnu_ld_version is too old for" >&2;}
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
14614 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
14616 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgupc_min_gnu_ld_version or later and rebuild GCC." >&5
14618 $as_echo "$as_me: WARNING: === $libgupc_min_gnu_ld_version or later and rebuild GCC." >&2;}
14619 if test $libgupc_gnu_ld_version -ge 21200 ; then
14620 # Globbing fix is present, proper block support is not.
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14622 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14623 enable_symvers=no
14624 else
14625 # 2.11 or older.
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14627 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14628 enable_symvers=no
14631 else
14632 # just fail for now
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
14634 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
14636 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
14638 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14640 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14641 enable_symvers=no
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
14646 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
14647 if test "${libgupc_cv_have_as_symver_directive+set}" = set; then :
14648 $as_echo_n "(cached) " >&6
14649 else
14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14653 void foo (void); __asm (".symver foo, bar@SYMVER");
14655 main ()
14659 return 0;
14661 _ACEOF
14662 if ac_fn_c_try_compile "$LINENO"; then :
14663 libgupc_cv_have_as_symver_directive=yes
14664 else
14665 libgupc_cv_have_as_symver_directive=no
14667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgupc_cv_have_as_symver_directive" >&5
14670 $as_echo "$libgupc_cv_have_as_symver_directive" >&6; }
14671 if test $libgupc_cv_have_as_symver_directive = yes; then
14673 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
14677 if test $enable_symvers != no; then
14678 LIBGUPC_BUILD_VERSIONED_SHLIB_TRUE=
14679 LIBGUPC_BUILD_VERSIONED_SHLIB_FALSE='#'
14680 else
14681 LIBGUPC_BUILD_VERSIONED_SHLIB_TRUE='#'
14682 LIBGUPC_BUILD_VERSIONED_SHLIB_FALSE=
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
14686 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
14689 if test $enable_symvers = gnu; then
14691 $as_echo "#define LIBGUPC_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
14695 CFLAGS="$save_CFLAGS $XCFLAGS"
14697 # Check for __sync_val_compare_and_swap, but only after the target has
14698 # had a chance to set XCFLAGS.
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
14701 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
14702 if test "${libgupc_cv_have_sync_builtins+set}" = set; then :
14703 $as_echo_n "(cached) " >&6
14704 else
14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14710 main ()
14712 int foo; (void) __sync_val_compare_and_swap(&foo, 0, 1);
14714 return 0;
14716 _ACEOF
14717 if ac_fn_c_try_link "$LINENO"; then :
14718 libgupc_cv_have_sync_builtins=yes
14719 else
14720 libgupc_cv_have_sync_builtins=no
14722 rm -f core conftest.err conftest.$ac_objext \
14723 conftest$ac_exeext conftest.$ac_ext
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgupc_cv_have_sync_builtins" >&5
14726 $as_echo "$libgupc_cv_have_sync_builtins" >&6; }
14727 if test $libgupc_cv_have_sync_builtins = yes; then
14729 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
14733 # Check for __sync_fetch_and_add
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14735 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14736 if test "${upc_cv_sync_fetch_and_add_4+set}" = set; then :
14737 $as_echo_n "(cached) " >&6
14738 else
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14742 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14743 uint32 i;
14744 int main() { return __sync_fetch_and_add (&i, 1); }
14746 _ACEOF
14747 if ac_fn_c_try_link "$LINENO"; then :
14748 upc_cv_sync_fetch_and_add_4=yes
14749 else
14750 upc_cv_sync_fetch_and_add_4=no
14752 rm -f core conftest.err conftest.$ac_objext \
14753 conftest$ac_exeext conftest.$ac_ext
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_cv_sync_fetch_and_add_4" >&5
14756 $as_echo "$upc_cv_sync_fetch_and_add_4" >&6; }
14757 if test "$upc_cv_sync_fetch_and_add_4" = "yes"; then
14759 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_8" >&5
14764 $as_echo_n "checking for __sync_fetch_and_add_8... " >&6; }
14765 if test "${upc_cv_sync_fetch_and_add_8+set}" = set; then :
14766 $as_echo_n "(cached) " >&6
14767 else
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14771 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14772 uint64 i;
14773 int main() { return __sync_fetch_and_add (&i, 1); }
14775 _ACEOF
14776 if ac_fn_c_try_link "$LINENO"; then :
14777 upc_cv_sync_fetch_and_add_8=yes
14778 else
14779 upc_cv_sync_fetch_and_add_8=no
14781 rm -f core conftest.err conftest.$ac_objext \
14782 conftest$ac_exeext conftest.$ac_ext
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_cv_sync_fetch_and_add_8" >&5
14785 $as_echo "$upc_cv_sync_fetch_and_add_8" >&6; }
14786 if test "$upc_cv_sync_fetch_and_add_8" = "yes"; then
14788 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_8 1" >>confdefs.h
14792 XCFLAGS="$XCFLAGS"
14795 # Cleanup and exit.
14796 CFLAGS="$save_CFLAGS"
14797 cat >confcache <<\_ACEOF
14798 # This file is a shell script that caches the results of configure
14799 # tests run on this system so they can be shared between configure
14800 # scripts and configure runs, see configure's option --config-cache.
14801 # It is not useful on other systems. If it contains results you don't
14802 # want to keep, you may remove or edit it.
14804 # config.status only pays attention to the cache file if you give it
14805 # the --recheck option to rerun configure.
14807 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14808 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14809 # following values.
14811 _ACEOF
14813 # The following way of writing the cache mishandles newlines in values,
14814 # but we know of no workaround that is simple, portable, and efficient.
14815 # So, we kill variables containing newlines.
14816 # Ultrix sh set writes to stderr and can't be redirected directly,
14817 # and sets the high bit in the cache file unless we assign to the vars.
14819 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14820 eval ac_val=\$$ac_var
14821 case $ac_val in #(
14822 *${as_nl}*)
14823 case $ac_var in #(
14824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14826 esac
14827 case $ac_var in #(
14828 _ | IFS | as_nl) ;; #(
14829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14830 *) { eval $ac_var=; unset $ac_var;} ;;
14831 esac ;;
14832 esac
14833 done
14835 (set) 2>&1 |
14836 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14837 *${as_nl}ac_space=\ *)
14838 # `set' does not quote correctly, so add quotes: double-quote
14839 # substitution turns \\\\ into \\, and sed turns \\ into \.
14840 sed -n \
14841 "s/'/'\\\\''/g;
14842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14843 ;; #(
14845 # `set' quotes correctly as required by POSIX, so do not add quotes.
14846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14848 esac |
14849 sort
14851 sed '
14852 /^ac_cv_env_/b end
14853 t clear
14854 :clear
14855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14856 t end
14857 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14858 :end' >>confcache
14859 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14860 if test -w "$cache_file"; then
14861 test "x$cache_file" != "x/dev/null" &&
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14863 $as_echo "$as_me: updating cache $cache_file" >&6;}
14864 cat confcache >$cache_file
14865 else
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14867 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14870 rm -f confcache
14872 if test "x${multilib}" = xyes; then
14873 multilib_arg="--enable-multilib"
14874 else
14875 multilib_arg=
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
14879 $as_echo_n "checking for thread model used by GCC... " >&6; }
14880 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
14882 $as_echo "$target_thread_file" >&6; }
14884 if test $target_thread_file != single; then
14886 $as_echo "#define HAVE_GTHR_DEFAULT 1" >>confdefs.h
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking UPC shared pointer representation" >&5
14891 $as_echo_n "checking UPC shared pointer representation... " >&6; }
14892 cat > conftest.upc << _ACEOF
14893 #define _XSTR(X) #X
14894 #define _STR(S) _XSTR(S)
14895 #ifdef __UPC_VADDR_FIRST__
14896 GUPCR_PTS_VADDR_FIRST=1
14897 #else
14898 GUPCR_PTS_VADDR_FIRST=0
14899 #endif
14900 GUPCR_PTS_VADDR_SIZE=_STR(__UPC_VADDR_SIZE__)
14901 GUPCR_PTS_PHASE_SIZE=_STR(__UPC_PHASE_SIZE__)
14902 GUPCR_PTS_THREAD_SIZE=_STR(__UPC_THREAD_SIZE__)
14903 #if __UPC_PTS_STRUCT_REP__
14904 GUPCR_PTS_REP="struct"
14905 GUPCR_PTS_STRUCT_REP=1
14906 GUPCR_PTS_VADDR_TYPE=_STR(__UPC_VADDR_TYPE__)
14907 GUPCR_PTS_PHASE_TYPE=_STR(__UPC_PHASE_TYPE__)
14908 GUPCR_PTS_THREAD_TYPE=_STR(__UPC_THREAD_TYPE__)
14909 #if __UPC_PTS_ALIGN__
14910 GUPCR_PTS_ALIGN=_STR(__UPC_PTS_ALIGN__)
14911 #endif
14912 #else
14913 GUPCR_PTS_REP="packed"
14914 GUPCR_PTS_PACKED_REP=1
14915 #endif
14916 _ACEOF
14917 eval `$UPC -fno-upc-pre-include -DNO_GCC_UPC_LIB=1 -E conftest.upc | \
14918 grep '^ *GUPCR_[A-Z0-9_]*='`
14919 rm -f conftest.upc
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPCR_PTS_REP" >&5
14921 $as_echo "$GUPCR_PTS_REP" >&6; }
14922 if test -z "$GUPCR_PTS_REP"; then
14923 as_fn_error "can't determine UPC sptr representation" "$LINENO" 5
14925 for cfg in \
14926 GUPCR_PTS_PACKED_REP \
14927 GUPCR_PTS_PHASE_SIZE \
14928 GUPCR_PTS_PHASE_TYPE \
14929 GUPCR_PTS_REP \
14930 GUPCR_PTS_STRUCT_REP \
14931 GUPCR_PTS_ALIGN \
14932 GUPCR_PTS_THREAD_SIZE \
14933 GUPCR_PTS_THREAD_TYPE \
14934 GUPCR_PTS_VADDR_FIRST \
14935 GUPCR_PTS_VADDR_SIZE \
14936 GUPCR_PTS_VADDR_TYPE ; do
14937 eval "cval=\$$cfg"
14938 if test -n "$cval"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of $cfg" >&5
14940 $as_echo_n "checking value of $cfg... " >&6; }
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cval" >&5
14942 $as_echo "$cval" >&6; }
14944 done
14945 if test "$with_upc_pts" -a "$with_upc_pts" != "$GUPCR_PTS_REP" ; then
14946 as_fn_error "--with-upc-pts=$with_upc_pts is incompatible with the
14947 UPC compiler's supported pointer-to-shared representation ($GUPCR_PTS_REP)" "$LINENO" 5
14950 cat >>confdefs.h <<_ACEOF
14951 #define GUPCR_PTS_VADDR_SIZE $GUPCR_PTS_VADDR_SIZE
14952 _ACEOF
14955 cat >>confdefs.h <<_ACEOF
14956 #define GUPCR_PTS_THREAD_SIZE $GUPCR_PTS_THREAD_SIZE
14957 _ACEOF
14960 cat >>confdefs.h <<_ACEOF
14961 #define GUPCR_PTS_PHASE_SIZE $GUPCR_PTS_PHASE_SIZE
14962 _ACEOF
14964 if test "$GUPCR_PTS_REP" = "struct"; then
14966 $as_echo "#define GUPCR_PTS_STRUCT_REP 1" >>confdefs.h
14969 cat >>confdefs.h <<_ACEOF
14970 #define GUPCR_PTS_VADDR_TYPE $GUPCR_PTS_VADDR_TYPE
14971 _ACEOF
14974 cat >>confdefs.h <<_ACEOF
14975 #define GUPCR_PTS_THREAD_TYPE $GUPCR_PTS_THREAD_TYPE
14976 _ACEOF
14979 cat >>confdefs.h <<_ACEOF
14980 #define GUPCR_PTS_PHASE_TYPE $GUPCR_PTS_PHASE_TYPE
14981 _ACEOF
14983 if test -n "$GUPCR_PTS_ALIGN"; then
14985 cat >>confdefs.h <<_ACEOF
14986 #define GUPCR_PTS_ALIGN $GUPCR_PTS_ALIGN
14987 _ACEOF
14990 else
14992 $as_echo "#define GUPCR_PTS_PACKED_REP 1" >>confdefs.h
14995 if test "$GUPCR_PTS_VADDR_FIRST" -eq 1; then
14997 $as_echo "#define GUPCR_PTS_VADDR_FIRST 1" >>confdefs.h
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime model" >&5
15003 $as_echo_n "checking for UPC runtime model... " >&6; }
15005 # Check whether --with-upc-runtime was given.
15006 if test "${with_upc_runtime+set}" = set; then :
15007 withval=$with_upc_runtime;
15008 case "$withval" in
15009 [Ss][Mm][Pp])
15010 upc_runtime_model=smp
15012 [Pp][Oo][Rr][Tt][Aa][Ll][Ss]4)
15013 upc_runtime_model=portals4
15016 as_fn_error "$withval is an invalid runtime model for
15017 --with-upc-runtime" "$LINENO" 5
15019 esac
15021 else
15023 upc_runtime_model=smp
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_runtime_model" >&5
15028 $as_echo "$upc_runtime_model" >&6; }
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime checking support" >&5
15031 $as_echo_n "checking for UPC runtime checking support... " >&6; }
15032 # Check whether --enable-upc-runtime-checks was given.
15033 if test "${enable_upc_runtime_checks+set}" = set; then :
15034 enableval=$enable_upc_runtime_checks;
15035 case $enableval in
15036 yes | no) ;;
15038 as_fn_error "--enable-upc-runtime-checks accepts only yes or no." "$LINENO" 5
15039 esac
15041 else
15043 enable_upc_runtime_checks=no
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_runtime_checks" >&5
15048 $as_echo "$enable_upc_runtime_checks" >&6; }
15049 if test "$enable_upc_runtime_checks" = "yes"; then
15051 $as_echo "#define GUPCR_HAVE_CHECKS 1" >>confdefs.h
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime statistics support" >&5
15056 $as_echo_n "checking for UPC runtime statistics support... " >&6; }
15057 # Check whether --enable-upc-runtime-stats was given.
15058 if test "${enable_upc_runtime_stats+set}" = set; then :
15059 enableval=$enable_upc_runtime_stats;
15060 case $enableval in
15061 yes | no) ;;
15063 as_fn_error "--enable-upc-runtime-stats accepts only yes or no." "$LINENO" 5
15064 esac
15066 else
15068 enable_upc_runtime_stats=no
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_runtime_stats" >&5
15073 $as_echo "$enable_upc_runtime_stats" >&6; }
15074 if test "$enable_upc_runtime_stats" = "yes"; then
15076 $as_echo "#define GUPCR_HAVE_STATS 1" >>confdefs.h
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime trace support" >&5
15081 $as_echo_n "checking for UPC runtime trace support... " >&6; }
15082 # Check whether --enable-upc-runtime-trace was given.
15083 if test "${enable_upc_runtime_trace+set}" = set; then :
15084 enableval=$enable_upc_runtime_trace;
15085 case $enableval in
15086 yes | no) ;;
15088 as_fn_error "--enable-upc-runtime-trace accepts only yes or no." "$LINENO" 5
15089 esac
15091 else
15093 enable_upc_runtime_trace=no
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_runtime_trace" >&5
15098 $as_echo "$enable_upc_runtime_trace" >&6; }
15099 if test "$enable_upc_runtime_trace" = "yes"; then
15101 $as_echo "#define GUPCR_HAVE_TRACE 1" >>confdefs.h
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime debug configuration" >&5
15106 $as_echo_n "checking for UPC runtime debug configuration... " >&6; }
15107 # Check whether --enable-upc-runtime-debug was given.
15108 if test "${enable_upc_runtime_debug+set}" = set; then :
15109 enableval=$enable_upc_runtime_debug;
15110 case $enableval in
15111 yes | no) ;;
15113 as_fn_error "--enable-upc-runtime-debug accepts only yes or no." "$LINENO" 5
15114 esac
15116 else
15118 enable_upc_runtime_debug=no
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_runtime_debug" >&5
15123 $as_echo "$enable_upc_runtime_debug" >&6; }
15124 if test "$enable_upc_runtime_debug" = "yes"; then
15126 $as_echo "#define GUPCR_HAVE_DEBUG 1" >>confdefs.h
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
15133 $as_echo_n "checking for UPC link script support... " >&6; }
15134 # Check whether --enable-upc-link-script was given.
15135 if test "${enable_upc_link_script+set}" = set; then :
15136 enableval=$enable_upc_link_script;
15137 case $enableval in
15138 yes | no) ;;
15140 as_fn_error "--enable-upc-link-script accepts only yes or no" "$LINENO" 5
15141 esac
15143 else
15145 enable_upc_link_script=no
15149 if test "$enable_upc_link_script" = yes; then
15150 if test "$with_gnu_ld" = yes; then
15151 gen_ld_script=${srcdir}/${targ_runtime}/gen-upc-ld-script.pl
15152 if ! ${LD} --verbose | ${PERL} $gen_ld_script 1>/dev/null ; then
15153 # if gen-upc-ld-script did not accept the output of the linker
15154 # then disable UPC link script support.
15155 as_fn_error "selected linker does not support linker scripts" "$LINENO" 5
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
15160 $as_echo "$enable_upc_link_script" >&6; }
15161 if test "$enable_upc_link_script" = yes; then
15163 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime tree fanout" >&5
15168 $as_echo_n "checking for UPC runtime tree fanout... " >&6; }
15170 # Check whether --with-upc-runtime-tree-fanout was given.
15171 if test "${with_upc_runtime_tree_fanout+set}" = set; then :
15172 withval=$with_upc_runtime_tree_fanout;
15173 # $withval must be a decimal integer
15174 if ! echo "$withval" | grep '^[0-9][0-9]*$' >/dev/null 2>&1; then
15175 as_fn_error "$withval is an invalid option to
15176 --with-upc-runtime-tree-fanout" "$LINENO" 5
15178 upc_runtime_tree_fanout="$withval"
15180 else
15182 upc_runtime_tree_fanout=4
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_runtime_tree_fanout" >&5
15187 $as_echo "$upc_runtime_tree_fanout" >&6; }
15189 cat >>confdefs.h <<_ACEOF
15190 #define GUPCR_TREE_FANOUT $upc_runtime_tree_fanout
15191 _ACEOF
15194 if test "$upc_runtime_model" = "smp"; then
15195 targ_runtime_pthreads=
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GCC __threads extension is supported." >&5
15198 $as_echo_n "checking whether the GCC __threads extension is supported.... " >&6; }
15199 if test "${upc_cv_gcc_tls_supported+set}" = set; then :
15200 $as_echo_n "(cached) " >&6
15201 else
15202 SAVE_LIBS="$LIBS"
15203 LIBS="$LIBS -lpthread"
15204 if test "$cross_compiling" = yes; then :
15205 upc_cv_gcc_tls_supported="no"
15206 else
15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h. */
15209 #include <stdio.h>
15210 #include <stddef.h>
15211 #include <malloc.h>
15212 #include <errno.h>
15213 #include <pthread.h>
15215 #define NTHREADS 5
15217 pthread_t p[NTHREADS];
15219 pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
15221 __thread long tlocal = 0;
15223 void *
15224 thread_start (void *arg)
15226 int id = *((int *)arg);
15227 int *return_val = malloc(sizeof(int));
15228 if (pthread_mutex_lock (&lock))
15229 { exit (2); }
15230 /* if the value is truly thread-local, this assignment
15231 will yield the value 1, for each thread. If tlocal
15232 is instead a process global static value then tlocal
15233 will be incremented by each thread, and its final
15234 value will be the number of threads. */
15235 tlocal += 1;
15236 if (pthread_mutex_unlock (&lock))
15237 { exit (2); }
15238 *return_val = tlocal;
15239 return return_val;
15243 main()
15245 int i;
15246 for (i = 0; i < NTHREADS; ++i)
15248 int *id = (int *)malloc(sizeof(int));
15249 *id = i;
15250 if (pthread_create(&p[i], NULL, thread_start, id))
15251 { exit (2); }
15253 for (i = 0; i < NTHREADS; ++i)
15255 int *rc;
15256 if (pthread_join (p[i], (void **)&rc))
15257 { exit (2); }
15258 if (*rc != 1)
15259 { exit (1); }
15261 return 0;
15264 _ACEOF
15265 if ac_fn_c_try_run "$LINENO"; then :
15266 upc_cv_gcc_tls_supported="yes"
15267 else
15268 upc_cv_gcc_tls_supported="no"
15270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15271 conftest.$ac_objext conftest.beam conftest.$ac_ext
15274 LIBS="$SAVE_LIBS"
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_cv_gcc_tls_supported" >&5
15278 $as_echo "$upc_cv_gcc_tls_supported" >&6; }
15280 if test "$upc_cv_gcc_tls_supported"x = "yes"x ; then
15281 targ_runtime_pthreads=yes
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux scheduling affinity" >&5
15284 $as_echo_n "checking for Linux scheduling affinity... " >&6; }
15285 if test "$cross_compiling" = yes; then :
15286 upc_affinity=no
15288 else
15289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290 /* end confdefs.h. */
15291 #define _GNU_SOURCE
15292 #include <sched.h>
15293 cpu_set_t mask;
15294 main ()
15296 unsigned int len = sizeof(mask);
15297 if (sched_getaffinity(0, len, &mask) < 0) {
15298 return 1;
15300 return 0;
15303 _ACEOF
15304 if ac_fn_c_try_run "$LINENO"; then :
15305 upc_affinity=yes
15306 else
15307 upc_affinity=no
15309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15310 conftest.$ac_objext conftest.beam conftest.$ac_ext
15313 if test "x$enable_upc_affinity" = "xyes" &&
15314 test "x$upc_affinity" = "xno"; then
15315 as_fn_error "scheduling affinity enabled but not supported
15316 - use --disable-upc-affinity" "$LINENO" 5
15318 if test "x$enable_upc_affinity" = "xno"; then
15319 upc_affinity=no;
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_affinity" >&5
15322 $as_echo "$upc_affinity" >&6; }
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if NUMA available" >&5
15324 $as_echo_n "checking if NUMA available... " >&6; }
15325 save_LIBS="$LIBS"
15326 LIBS="-lnuma"
15327 if test "$cross_compiling" = yes; then :
15328 upc_numa=no
15329 else
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332 #include <numa.h>
15334 main ()
15336 if (numa_available() < 0) return 1;
15337 else return 0;
15340 _ACEOF
15341 if ac_fn_c_try_run "$LINENO"; then :
15342 upc_numa=yes
15343 else
15344 upc_numa=no
15346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15347 conftest.$ac_objext conftest.beam conftest.$ac_ext
15350 LIBS="$save_LIBS"
15351 if test "x$enable_upc_numa" = "xyes" &&
15352 test "x$upc_numa" = "xno"; then
15353 as_fn_error "NUMA enabled but not supported - use --disable-upc-numa" "$LINENO" 5
15355 if test "x$enable_upc_numa" = "xno" \
15356 -o "x$enable_upc_affinity" = "xno"; then
15357 upc_numa=no;
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_numa" >&5
15360 $as_echo "$upc_numa" >&6; }
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC GUM debugging support" >&5
15362 $as_echo_n "checking for UPC GUM debugging support... " >&6; }
15363 # Check whether --enable-upc-gum-debug was given.
15364 if test "${enable_upc_gum_debug+set}" = set; then :
15365 enableval=$enable_upc_gum_debug;
15366 case $enableval in
15367 yes | no) ;;
15369 as_fn_error "--enable-upc-gum-debug accepts only yes or no" "$LINENO" 5
15370 esac
15371 upc_gum_debug=$enableval
15373 else
15375 upc_gum_debug=no
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_gum_debug" >&5
15380 $as_echo "$upc_gum_debug" >&6; }
15381 if test "x${upc_gum_debug}" = "xyes"; then
15383 cat >>confdefs.h <<_ACEOF
15384 #define GUPCR_HAVE_GUM_DEBUG 1
15385 _ACEOF
15388 # Use the generic (reference implementation)
15389 use_generic_collectives="yes"
15394 #Variables:
15395 DX_PROJECT=${PACKAGE}
15398 # Files:
15399 DX_CONFIG=doxygen.cfg
15401 DX_DOCDIR=doc
15404 # Environment variables used inside doxygen.cfg:
15405 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
15407 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
15409 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
15411 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
15414 # Doxygen itself:
15418 # Check whether --enable-doxygen-doc was given.
15419 if test "${enable_doxygen_doc+set}" = set; then :
15420 enableval=$enable_doxygen_doc;
15421 case "$enableval" in
15423 y|Y|yes|Yes|YES)
15424 DX_FLAG_doc=1
15427 ;; #(
15428 n|N|no|No|NO)
15429 DX_FLAG_doc=0
15431 ;; #(
15433 as_fn_error "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
15435 esac
15437 else
15439 DX_FLAG_doc=0
15445 if test "$DX_FLAG_doc" = 1; then
15447 if test -n "$ac_tool_prefix"; then
15448 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
15449 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15451 $as_echo_n "checking for $ac_word... " >&6; }
15452 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 case $DX_DOXYGEN in
15456 [\\/]* | ?:[\\/]*)
15457 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
15460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15461 for as_dir in $PATH
15463 IFS=$as_save_IFS
15464 test -z "$as_dir" && as_dir=.
15465 for ac_exec_ext in '' $ac_executable_extensions; do
15466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15467 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15469 break 2
15471 done
15472 done
15473 IFS=$as_save_IFS
15476 esac
15478 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
15479 if test -n "$DX_DOXYGEN"; then
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
15481 $as_echo "$DX_DOXYGEN" >&6; }
15482 else
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15484 $as_echo "no" >&6; }
15489 if test -z "$ac_cv_path_DX_DOXYGEN"; then
15490 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
15491 # Extract the first word of "doxygen", so it can be a program name with args.
15492 set dummy doxygen; ac_word=$2
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15494 $as_echo_n "checking for $ac_word... " >&6; }
15495 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
15496 $as_echo_n "(cached) " >&6
15497 else
15498 case $ac_pt_DX_DOXYGEN in
15499 [\\/]* | ?:[\\/]*)
15500 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
15503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15504 for as_dir in $PATH
15506 IFS=$as_save_IFS
15507 test -z "$as_dir" && as_dir=.
15508 for ac_exec_ext in '' $ac_executable_extensions; do
15509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15510 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15512 break 2
15514 done
15515 done
15516 IFS=$as_save_IFS
15519 esac
15521 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
15522 if test -n "$ac_pt_DX_DOXYGEN"; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
15524 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
15525 else
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15527 $as_echo "no" >&6; }
15530 if test "x$ac_pt_DX_DOXYGEN" = x; then
15531 DX_DOXYGEN=""
15532 else
15533 case $cross_compiling:$ac_tool_warned in
15534 yes:)
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15537 ac_tool_warned=yes ;;
15538 esac
15539 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
15541 else
15542 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
15545 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
15547 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
15548 DX_FLAG_doc=0
15553 if test -n "$ac_tool_prefix"; then
15554 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
15555 set dummy ${ac_tool_prefix}perl; ac_word=$2
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15557 $as_echo_n "checking for $ac_word... " >&6; }
15558 if test "${ac_cv_path_DX_PERL+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15560 else
15561 case $DX_PERL in
15562 [\\/]* | ?:[\\/]*)
15563 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
15566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15567 for as_dir in $PATH
15569 IFS=$as_save_IFS
15570 test -z "$as_dir" && as_dir=.
15571 for ac_exec_ext in '' $ac_executable_extensions; do
15572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15573 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
15574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15575 break 2
15577 done
15578 done
15579 IFS=$as_save_IFS
15582 esac
15584 DX_PERL=$ac_cv_path_DX_PERL
15585 if test -n "$DX_PERL"; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
15587 $as_echo "$DX_PERL" >&6; }
15588 else
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15590 $as_echo "no" >&6; }
15595 if test -z "$ac_cv_path_DX_PERL"; then
15596 ac_pt_DX_PERL=$DX_PERL
15597 # Extract the first word of "perl", so it can be a program name with args.
15598 set dummy perl; ac_word=$2
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15600 $as_echo_n "checking for $ac_word... " >&6; }
15601 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 case $ac_pt_DX_PERL in
15605 [\\/]* | ?:[\\/]*)
15606 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
15609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15610 for as_dir in $PATH
15612 IFS=$as_save_IFS
15613 test -z "$as_dir" && as_dir=.
15614 for ac_exec_ext in '' $ac_executable_extensions; do
15615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15616 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
15617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15618 break 2
15620 done
15621 done
15622 IFS=$as_save_IFS
15625 esac
15627 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
15628 if test -n "$ac_pt_DX_PERL"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
15630 $as_echo "$ac_pt_DX_PERL" >&6; }
15631 else
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 $as_echo "no" >&6; }
15636 if test "x$ac_pt_DX_PERL" = x; then
15637 DX_PERL=""
15638 else
15639 case $cross_compiling:$ac_tool_warned in
15640 yes:)
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15643 ac_tool_warned=yes ;;
15644 esac
15645 DX_PERL=$ac_pt_DX_PERL
15647 else
15648 DX_PERL="$ac_cv_path_DX_PERL"
15651 if test "$DX_FLAG_doc$DX_PERL" = 1; then
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
15653 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
15654 DX_FLAG_doc=0
15659 if test -n "$ac_tool_prefix"; then
15660 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
15661 set dummy ${ac_tool_prefix}file; ac_word=$2
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15663 $as_echo_n "checking for $ac_word... " >&6; }
15664 if test "${ac_cv_path_DX_FILE+set}" = set; then :
15665 $as_echo_n "(cached) " >&6
15666 else
15667 case $DX_FILE in
15668 [\\/]* | ?:[\\/]*)
15669 ac_cv_path_DX_FILE="$DX_FILE" # Let the user override the test with a path.
15672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15673 for as_dir in $PATH
15675 IFS=$as_save_IFS
15676 test -z "$as_dir" && as_dir=.
15677 for ac_exec_ext in '' $ac_executable_extensions; do
15678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15679 ac_cv_path_DX_FILE="$as_dir/$ac_word$ac_exec_ext"
15680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15681 break 2
15683 done
15684 done
15685 IFS=$as_save_IFS
15688 esac
15690 DX_FILE=$ac_cv_path_DX_FILE
15691 if test -n "$DX_FILE"; then
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_FILE" >&5
15693 $as_echo "$DX_FILE" >&6; }
15694 else
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15696 $as_echo "no" >&6; }
15701 if test -z "$ac_cv_path_DX_FILE"; then
15702 ac_pt_DX_FILE=$DX_FILE
15703 # Extract the first word of "file", so it can be a program name with args.
15704 set dummy file; ac_word=$2
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15706 $as_echo_n "checking for $ac_word... " >&6; }
15707 if test "${ac_cv_path_ac_pt_DX_FILE+set}" = set; then :
15708 $as_echo_n "(cached) " >&6
15709 else
15710 case $ac_pt_DX_FILE in
15711 [\\/]* | ?:[\\/]*)
15712 ac_cv_path_ac_pt_DX_FILE="$ac_pt_DX_FILE" # Let the user override the test with a path.
15715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15716 for as_dir in $PATH
15718 IFS=$as_save_IFS
15719 test -z "$as_dir" && as_dir=.
15720 for ac_exec_ext in '' $ac_executable_extensions; do
15721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15722 ac_cv_path_ac_pt_DX_FILE="$as_dir/$ac_word$ac_exec_ext"
15723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15724 break 2
15726 done
15727 done
15728 IFS=$as_save_IFS
15731 esac
15733 ac_pt_DX_FILE=$ac_cv_path_ac_pt_DX_FILE
15734 if test -n "$ac_pt_DX_FILE"; then
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_FILE" >&5
15736 $as_echo "$ac_pt_DX_FILE" >&6; }
15737 else
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15739 $as_echo "no" >&6; }
15742 if test "x$ac_pt_DX_FILE" = x; then
15743 DX_FILE=""
15744 else
15745 case $cross_compiling:$ac_tool_warned in
15746 yes:)
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15749 ac_tool_warned=yes ;;
15750 esac
15751 DX_FILE=$ac_pt_DX_FILE
15753 else
15754 DX_FILE="$ac_cv_path_DX_FILE"
15757 if test "$DX_FLAG_doc$DX_FILE" = 1; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: file not found - will not generate any doxygen documentation" >&5
15759 $as_echo "$as_me: WARNING: file not found - will not generate any doxygen documentation" >&2;}
15760 DX_FLAG_doc=0
15766 if test "$DX_FLAG_doc" = 1; then
15767 if :; then
15768 DX_COND_doc_TRUE=
15769 DX_COND_doc_FALSE='#'
15770 else
15771 DX_COND_doc_TRUE='#'
15772 DX_COND_doc_FALSE=
15775 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
15777 DOXYGEN_VERSION=`${DX_DOXYGEN} --version`
15780 else
15781 if false; then
15782 DX_COND_doc_TRUE=
15783 DX_COND_doc_FALSE='#'
15784 else
15785 DX_COND_doc_TRUE='#'
15786 DX_COND_doc_FALSE=
15794 # Dot for graphics:
15798 # Check whether --enable-doxygen-dot was given.
15799 if test "${enable_doxygen_dot+set}" = set; then :
15800 enableval=$enable_doxygen_dot;
15801 case "$enableval" in
15803 y|Y|yes|Yes|YES)
15804 DX_FLAG_dot=1
15807 test "$DX_FLAG_doc" = "1" \
15808 || as_fn_error "doxygen-dot requires doxygen-dot" "$LINENO" 5
15810 ;; #(
15811 n|N|no|No|NO)
15812 DX_FLAG_dot=0
15814 ;; #(
15816 as_fn_error "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
15818 esac
15820 else
15822 DX_FLAG_dot=0
15825 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
15831 if test "$DX_FLAG_dot" = 1; then
15833 if test -n "$ac_tool_prefix"; then
15834 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
15835 set dummy ${ac_tool_prefix}dot; ac_word=$2
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15837 $as_echo_n "checking for $ac_word... " >&6; }
15838 if test "${ac_cv_path_DX_DOT+set}" = set; then :
15839 $as_echo_n "(cached) " >&6
15840 else
15841 case $DX_DOT in
15842 [\\/]* | ?:[\\/]*)
15843 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
15846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15847 for as_dir in $PATH
15849 IFS=$as_save_IFS
15850 test -z "$as_dir" && as_dir=.
15851 for ac_exec_ext in '' $ac_executable_extensions; do
15852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15853 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
15854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15855 break 2
15857 done
15858 done
15859 IFS=$as_save_IFS
15862 esac
15864 DX_DOT=$ac_cv_path_DX_DOT
15865 if test -n "$DX_DOT"; then
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
15867 $as_echo "$DX_DOT" >&6; }
15868 else
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15870 $as_echo "no" >&6; }
15875 if test -z "$ac_cv_path_DX_DOT"; then
15876 ac_pt_DX_DOT=$DX_DOT
15877 # Extract the first word of "dot", so it can be a program name with args.
15878 set dummy dot; ac_word=$2
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15880 $as_echo_n "checking for $ac_word... " >&6; }
15881 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
15882 $as_echo_n "(cached) " >&6
15883 else
15884 case $ac_pt_DX_DOT in
15885 [\\/]* | ?:[\\/]*)
15886 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
15889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890 for as_dir in $PATH
15892 IFS=$as_save_IFS
15893 test -z "$as_dir" && as_dir=.
15894 for ac_exec_ext in '' $ac_executable_extensions; do
15895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15896 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
15897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15898 break 2
15900 done
15901 done
15902 IFS=$as_save_IFS
15905 esac
15907 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
15908 if test -n "$ac_pt_DX_DOT"; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
15910 $as_echo "$ac_pt_DX_DOT" >&6; }
15911 else
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15913 $as_echo "no" >&6; }
15916 if test "x$ac_pt_DX_DOT" = x; then
15917 DX_DOT=""
15918 else
15919 case $cross_compiling:$ac_tool_warned in
15920 yes:)
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15923 ac_tool_warned=yes ;;
15924 esac
15925 DX_DOT=$ac_pt_DX_DOT
15927 else
15928 DX_DOT="$ac_cv_path_DX_DOT"
15931 if test "$DX_FLAG_dot$DX_DOT" = 1; then
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
15933 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
15934 DX_FLAG_dot=0
15940 if test "$DX_FLAG_dot" = 1; then
15941 if :; then
15942 DX_COND_dot_TRUE=
15943 DX_COND_dot_FALSE='#'
15944 else
15945 DX_COND_dot_TRUE='#'
15946 DX_COND_dot_FALSE=
15949 DX_ENV="$DX_ENV HAVE_DOT='YES'"
15951 HAVE_DOT=YES
15953 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
15956 else
15957 if false; then
15958 DX_COND_dot_TRUE=
15959 DX_COND_dot_FALSE='#'
15960 else
15961 DX_COND_dot_TRUE='#'
15962 DX_COND_dot_FALSE=
15965 HAVE_DOT=NO
15967 DX_ENV="$DX_ENV HAVE_DOT='NO'"
15973 # Man pages generation:
15977 # Check whether --enable-doxygen-man was given.
15978 if test "${enable_doxygen_man+set}" = set; then :
15979 enableval=$enable_doxygen_man;
15980 case "$enableval" in
15982 y|Y|yes|Yes|YES)
15983 DX_FLAG_man=1
15986 test "$DX_FLAG_doc" = "1" \
15987 || as_fn_error "doxygen-man requires doxygen-man" "$LINENO" 5
15989 ;; #(
15990 n|N|no|No|NO)
15991 DX_FLAG_man=0
15993 ;; #(
15995 as_fn_error "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
15997 esac
15999 else
16001 DX_FLAG_man=0
16004 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
16010 if test "$DX_FLAG_man" = 1; then
16014 if test "$DX_FLAG_man" = 1; then
16015 if :; then
16016 DX_COND_man_TRUE=
16017 DX_COND_man_FALSE='#'
16018 else
16019 DX_COND_man_TRUE='#'
16020 DX_COND_man_FALSE=
16023 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
16026 else
16027 if false; then
16028 DX_COND_man_TRUE=
16029 DX_COND_man_FALSE='#'
16030 else
16031 DX_COND_man_TRUE='#'
16032 DX_COND_man_FALSE=
16035 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
16041 # RTF file generation:
16045 # Check whether --enable-doxygen-rtf was given.
16046 if test "${enable_doxygen_rtf+set}" = set; then :
16047 enableval=$enable_doxygen_rtf;
16048 case "$enableval" in
16050 y|Y|yes|Yes|YES)
16051 DX_FLAG_rtf=1
16054 test "$DX_FLAG_doc" = "1" \
16055 || as_fn_error "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
16057 ;; #(
16058 n|N|no|No|NO)
16059 DX_FLAG_rtf=0
16061 ;; #(
16063 as_fn_error "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
16065 esac
16067 else
16069 DX_FLAG_rtf=0
16072 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
16078 if test "$DX_FLAG_rtf" = 1; then
16082 if test "$DX_FLAG_rtf" = 1; then
16083 if :; then
16084 DX_COND_rtf_TRUE=
16085 DX_COND_rtf_FALSE='#'
16086 else
16087 DX_COND_rtf_TRUE='#'
16088 DX_COND_rtf_FALSE=
16091 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
16094 else
16095 if false; then
16096 DX_COND_rtf_TRUE=
16097 DX_COND_rtf_FALSE='#'
16098 else
16099 DX_COND_rtf_TRUE='#'
16100 DX_COND_rtf_FALSE=
16103 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
16109 # XML file generation:
16113 # Check whether --enable-doxygen-xml was given.
16114 if test "${enable_doxygen_xml+set}" = set; then :
16115 enableval=$enable_doxygen_xml;
16116 case "$enableval" in
16118 y|Y|yes|Yes|YES)
16119 DX_FLAG_xml=1
16122 test "$DX_FLAG_doc" = "1" \
16123 || as_fn_error "doxygen-xml requires doxygen-xml" "$LINENO" 5
16125 ;; #(
16126 n|N|no|No|NO)
16127 DX_FLAG_xml=0
16129 ;; #(
16131 as_fn_error "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
16133 esac
16135 else
16137 DX_FLAG_xml=0
16140 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
16146 if test "$DX_FLAG_xml" = 1; then
16150 if test "$DX_FLAG_xml" = 1; then
16151 if :; then
16152 DX_COND_xml_TRUE=
16153 DX_COND_xml_FALSE='#'
16154 else
16155 DX_COND_xml_TRUE='#'
16156 DX_COND_xml_FALSE=
16159 DX_ENV="$DX_ENV GENERATE_XML='YES'"
16162 else
16163 if false; then
16164 DX_COND_xml_TRUE=
16165 DX_COND_xml_FALSE='#'
16166 else
16167 DX_COND_xml_TRUE='#'
16168 DX_COND_xml_FALSE=
16171 DX_ENV="$DX_ENV GENERATE_XML='NO'"
16177 # (Compressed) HTML help generation:
16181 # Check whether --enable-doxygen-chm was given.
16182 if test "${enable_doxygen_chm+set}" = set; then :
16183 enableval=$enable_doxygen_chm;
16184 case "$enableval" in
16186 y|Y|yes|Yes|YES)
16187 DX_FLAG_chm=1
16190 test "$DX_FLAG_doc" = "1" \
16191 || as_fn_error "doxygen-chm requires doxygen-chm" "$LINENO" 5
16193 ;; #(
16194 n|N|no|No|NO)
16195 DX_FLAG_chm=0
16197 ;; #(
16199 as_fn_error "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
16201 esac
16203 else
16205 DX_FLAG_chm=0
16208 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
16214 if test "$DX_FLAG_chm" = 1; then
16216 if test -n "$ac_tool_prefix"; then
16217 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
16218 set dummy ${ac_tool_prefix}hhc; ac_word=$2
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16220 $as_echo_n "checking for $ac_word... " >&6; }
16221 if test "${ac_cv_path_DX_HHC+set}" = set; then :
16222 $as_echo_n "(cached) " >&6
16223 else
16224 case $DX_HHC in
16225 [\\/]* | ?:[\\/]*)
16226 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
16229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16230 for as_dir in $PATH
16232 IFS=$as_save_IFS
16233 test -z "$as_dir" && as_dir=.
16234 for ac_exec_ext in '' $ac_executable_extensions; do
16235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16236 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
16237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16238 break 2
16240 done
16241 done
16242 IFS=$as_save_IFS
16245 esac
16247 DX_HHC=$ac_cv_path_DX_HHC
16248 if test -n "$DX_HHC"; then
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
16250 $as_echo "$DX_HHC" >&6; }
16251 else
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16253 $as_echo "no" >&6; }
16258 if test -z "$ac_cv_path_DX_HHC"; then
16259 ac_pt_DX_HHC=$DX_HHC
16260 # Extract the first word of "hhc", so it can be a program name with args.
16261 set dummy hhc; ac_word=$2
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16263 $as_echo_n "checking for $ac_word... " >&6; }
16264 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
16265 $as_echo_n "(cached) " >&6
16266 else
16267 case $ac_pt_DX_HHC in
16268 [\\/]* | ?:[\\/]*)
16269 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
16272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16273 for as_dir in $PATH
16275 IFS=$as_save_IFS
16276 test -z "$as_dir" && as_dir=.
16277 for ac_exec_ext in '' $ac_executable_extensions; do
16278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16279 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
16280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16281 break 2
16283 done
16284 done
16285 IFS=$as_save_IFS
16288 esac
16290 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
16291 if test -n "$ac_pt_DX_HHC"; then
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
16293 $as_echo "$ac_pt_DX_HHC" >&6; }
16294 else
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16296 $as_echo "no" >&6; }
16299 if test "x$ac_pt_DX_HHC" = x; then
16300 DX_HHC=""
16301 else
16302 case $cross_compiling:$ac_tool_warned in
16303 yes:)
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16306 ac_tool_warned=yes ;;
16307 esac
16308 DX_HHC=$ac_pt_DX_HHC
16310 else
16311 DX_HHC="$ac_cv_path_DX_HHC"
16314 if test "$DX_FLAG_chm$DX_HHC" = 1; then
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
16316 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
16317 DX_FLAG_chm=0
16323 if test "$DX_FLAG_chm" = 1; then
16324 if :; then
16325 DX_COND_chm_TRUE=
16326 DX_COND_chm_FALSE='#'
16327 else
16328 DX_COND_chm_TRUE='#'
16329 DX_COND_chm_FALSE=
16332 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
16334 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
16336 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
16339 else
16340 if false; then
16341 DX_COND_chm_TRUE=
16342 DX_COND_chm_FALSE='#'
16343 else
16344 DX_COND_chm_TRUE='#'
16345 DX_COND_chm_FALSE=
16348 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
16354 # Seperate CHI file generation.
16358 # Check whether --enable-doxygen-chi was given.
16359 if test "${enable_doxygen_chi+set}" = set; then :
16360 enableval=$enable_doxygen_chi;
16361 case "$enableval" in
16363 y|Y|yes|Yes|YES)
16364 DX_FLAG_chi=1
16367 test "$DX_FLAG_chm" = "1" \
16368 || as_fn_error "doxygen-chi requires doxygen-chi" "$LINENO" 5
16370 ;; #(
16371 n|N|no|No|NO)
16372 DX_FLAG_chi=0
16374 ;; #(
16376 as_fn_error "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
16378 esac
16380 else
16382 DX_FLAG_chi=0
16385 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
16391 if test "$DX_FLAG_chi" = 1; then
16395 if test "$DX_FLAG_chi" = 1; then
16396 if :; then
16397 DX_COND_chi_TRUE=
16398 DX_COND_chi_FALSE='#'
16399 else
16400 DX_COND_chi_TRUE='#'
16401 DX_COND_chi_FALSE=
16404 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
16407 else
16408 if false; then
16409 DX_COND_chi_TRUE=
16410 DX_COND_chi_FALSE='#'
16411 else
16412 DX_COND_chi_TRUE='#'
16413 DX_COND_chi_FALSE=
16416 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
16422 # Plain HTML pages generation:
16426 # Check whether --enable-doxygen-html was given.
16427 if test "${enable_doxygen_html+set}" = set; then :
16428 enableval=$enable_doxygen_html;
16429 case "$enableval" in
16431 y|Y|yes|Yes|YES)
16432 DX_FLAG_html=1
16435 test "$DX_FLAG_doc" = "1" \
16436 || as_fn_error "doxygen-html requires doxygen-html" "$LINENO" 5
16438 test "$DX_FLAG_chm" = "0" \
16439 || as_fn_error "doxygen-html contradicts doxygen-html" "$LINENO" 5
16441 ;; #(
16442 n|N|no|No|NO)
16443 DX_FLAG_html=0
16445 ;; #(
16447 as_fn_error "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
16449 esac
16451 else
16453 DX_FLAG_html=1
16456 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
16459 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
16465 if test "$DX_FLAG_html" = 1; then
16469 if test "$DX_FLAG_html" = 1; then
16470 if :; then
16471 DX_COND_html_TRUE=
16472 DX_COND_html_FALSE='#'
16473 else
16474 DX_COND_html_TRUE='#'
16475 DX_COND_html_FALSE=
16478 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
16481 else
16482 if false; then
16483 DX_COND_html_TRUE=
16484 DX_COND_html_FALSE='#'
16485 else
16486 DX_COND_html_TRUE='#'
16487 DX_COND_html_FALSE=
16490 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
16496 # PostScript file generation:
16500 # Check whether --enable-doxygen-ps was given.
16501 if test "${enable_doxygen_ps+set}" = set; then :
16502 enableval=$enable_doxygen_ps;
16503 case "$enableval" in
16505 y|Y|yes|Yes|YES)
16506 DX_FLAG_ps=1
16509 test "$DX_FLAG_doc" = "1" \
16510 || as_fn_error "doxygen-ps requires doxygen-ps" "$LINENO" 5
16512 ;; #(
16513 n|N|no|No|NO)
16514 DX_FLAG_ps=0
16516 ;; #(
16518 as_fn_error "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
16520 esac
16522 else
16524 DX_FLAG_ps=1
16527 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
16533 if test "$DX_FLAG_ps" = 1; then
16535 if test -n "$ac_tool_prefix"; then
16536 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
16537 set dummy ${ac_tool_prefix}latex; ac_word=$2
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16539 $as_echo_n "checking for $ac_word... " >&6; }
16540 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
16541 $as_echo_n "(cached) " >&6
16542 else
16543 case $DX_LATEX in
16544 [\\/]* | ?:[\\/]*)
16545 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
16548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16549 for as_dir in $PATH
16551 IFS=$as_save_IFS
16552 test -z "$as_dir" && as_dir=.
16553 for ac_exec_ext in '' $ac_executable_extensions; do
16554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16555 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
16556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16557 break 2
16559 done
16560 done
16561 IFS=$as_save_IFS
16564 esac
16566 DX_LATEX=$ac_cv_path_DX_LATEX
16567 if test -n "$DX_LATEX"; then
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
16569 $as_echo "$DX_LATEX" >&6; }
16570 else
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572 $as_echo "no" >&6; }
16577 if test -z "$ac_cv_path_DX_LATEX"; then
16578 ac_pt_DX_LATEX=$DX_LATEX
16579 # Extract the first word of "latex", so it can be a program name with args.
16580 set dummy latex; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 case $ac_pt_DX_LATEX in
16587 [\\/]* | ?:[\\/]*)
16588 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
16591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16594 IFS=$as_save_IFS
16595 test -z "$as_dir" && as_dir=.
16596 for ac_exec_ext in '' $ac_executable_extensions; do
16597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16598 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
16599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16600 break 2
16602 done
16603 done
16604 IFS=$as_save_IFS
16607 esac
16609 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
16610 if test -n "$ac_pt_DX_LATEX"; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
16612 $as_echo "$ac_pt_DX_LATEX" >&6; }
16613 else
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16615 $as_echo "no" >&6; }
16618 if test "x$ac_pt_DX_LATEX" = x; then
16619 DX_LATEX=""
16620 else
16621 case $cross_compiling:$ac_tool_warned in
16622 yes:)
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16625 ac_tool_warned=yes ;;
16626 esac
16627 DX_LATEX=$ac_pt_DX_LATEX
16629 else
16630 DX_LATEX="$ac_cv_path_DX_LATEX"
16633 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
16635 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
16636 DX_FLAG_ps=0
16641 if test -n "$ac_tool_prefix"; then
16642 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
16643 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16645 $as_echo_n "checking for $ac_word... " >&6; }
16646 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
16647 $as_echo_n "(cached) " >&6
16648 else
16649 case $DX_MAKEINDEX in
16650 [\\/]* | ?:[\\/]*)
16651 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
16654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16655 for as_dir in $PATH
16657 IFS=$as_save_IFS
16658 test -z "$as_dir" && as_dir=.
16659 for ac_exec_ext in '' $ac_executable_extensions; do
16660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16661 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16663 break 2
16665 done
16666 done
16667 IFS=$as_save_IFS
16670 esac
16672 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
16673 if test -n "$DX_MAKEINDEX"; then
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
16675 $as_echo "$DX_MAKEINDEX" >&6; }
16676 else
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16678 $as_echo "no" >&6; }
16683 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
16684 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
16685 # Extract the first word of "makeindex", so it can be a program name with args.
16686 set dummy makeindex; ac_word=$2
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16688 $as_echo_n "checking for $ac_word... " >&6; }
16689 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
16690 $as_echo_n "(cached) " >&6
16691 else
16692 case $ac_pt_DX_MAKEINDEX in
16693 [\\/]* | ?:[\\/]*)
16694 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
16697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16698 for as_dir in $PATH
16700 IFS=$as_save_IFS
16701 test -z "$as_dir" && as_dir=.
16702 for ac_exec_ext in '' $ac_executable_extensions; do
16703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16704 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16706 break 2
16708 done
16709 done
16710 IFS=$as_save_IFS
16713 esac
16715 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
16716 if test -n "$ac_pt_DX_MAKEINDEX"; then
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
16718 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
16719 else
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16721 $as_echo "no" >&6; }
16724 if test "x$ac_pt_DX_MAKEINDEX" = x; then
16725 DX_MAKEINDEX=""
16726 else
16727 case $cross_compiling:$ac_tool_warned in
16728 yes:)
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16731 ac_tool_warned=yes ;;
16732 esac
16733 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
16735 else
16736 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
16739 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
16741 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
16742 DX_FLAG_ps=0
16747 if test -n "$ac_tool_prefix"; then
16748 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
16749 set dummy ${ac_tool_prefix}dvips; ac_word=$2
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16751 $as_echo_n "checking for $ac_word... " >&6; }
16752 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
16753 $as_echo_n "(cached) " >&6
16754 else
16755 case $DX_DVIPS in
16756 [\\/]* | ?:[\\/]*)
16757 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
16760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761 for as_dir in $PATH
16763 IFS=$as_save_IFS
16764 test -z "$as_dir" && as_dir=.
16765 for ac_exec_ext in '' $ac_executable_extensions; do
16766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16767 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
16768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16769 break 2
16771 done
16772 done
16773 IFS=$as_save_IFS
16776 esac
16778 DX_DVIPS=$ac_cv_path_DX_DVIPS
16779 if test -n "$DX_DVIPS"; then
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
16781 $as_echo "$DX_DVIPS" >&6; }
16782 else
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784 $as_echo "no" >&6; }
16789 if test -z "$ac_cv_path_DX_DVIPS"; then
16790 ac_pt_DX_DVIPS=$DX_DVIPS
16791 # Extract the first word of "dvips", so it can be a program name with args.
16792 set dummy dvips; ac_word=$2
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16794 $as_echo_n "checking for $ac_word... " >&6; }
16795 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
16796 $as_echo_n "(cached) " >&6
16797 else
16798 case $ac_pt_DX_DVIPS in
16799 [\\/]* | ?:[\\/]*)
16800 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
16803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16804 for as_dir in $PATH
16806 IFS=$as_save_IFS
16807 test -z "$as_dir" && as_dir=.
16808 for ac_exec_ext in '' $ac_executable_extensions; do
16809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16810 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
16811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16812 break 2
16814 done
16815 done
16816 IFS=$as_save_IFS
16819 esac
16821 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
16822 if test -n "$ac_pt_DX_DVIPS"; then
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
16824 $as_echo "$ac_pt_DX_DVIPS" >&6; }
16825 else
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16827 $as_echo "no" >&6; }
16830 if test "x$ac_pt_DX_DVIPS" = x; then
16831 DX_DVIPS=""
16832 else
16833 case $cross_compiling:$ac_tool_warned in
16834 yes:)
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16837 ac_tool_warned=yes ;;
16838 esac
16839 DX_DVIPS=$ac_pt_DX_DVIPS
16841 else
16842 DX_DVIPS="$ac_cv_path_DX_DVIPS"
16845 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
16847 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
16848 DX_FLAG_ps=0
16853 if test -n "$ac_tool_prefix"; then
16854 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
16855 set dummy ${ac_tool_prefix}egrep; ac_word=$2
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16857 $as_echo_n "checking for $ac_word... " >&6; }
16858 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
16859 $as_echo_n "(cached) " >&6
16860 else
16861 case $DX_EGREP in
16862 [\\/]* | ?:[\\/]*)
16863 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
16866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16867 for as_dir in $PATH
16869 IFS=$as_save_IFS
16870 test -z "$as_dir" && as_dir=.
16871 for ac_exec_ext in '' $ac_executable_extensions; do
16872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16873 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
16874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16875 break 2
16877 done
16878 done
16879 IFS=$as_save_IFS
16882 esac
16884 DX_EGREP=$ac_cv_path_DX_EGREP
16885 if test -n "$DX_EGREP"; then
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
16887 $as_echo "$DX_EGREP" >&6; }
16888 else
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16890 $as_echo "no" >&6; }
16895 if test -z "$ac_cv_path_DX_EGREP"; then
16896 ac_pt_DX_EGREP=$DX_EGREP
16897 # Extract the first word of "egrep", so it can be a program name with args.
16898 set dummy egrep; ac_word=$2
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16900 $as_echo_n "checking for $ac_word... " >&6; }
16901 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
16902 $as_echo_n "(cached) " >&6
16903 else
16904 case $ac_pt_DX_EGREP in
16905 [\\/]* | ?:[\\/]*)
16906 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
16909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16910 for as_dir in $PATH
16912 IFS=$as_save_IFS
16913 test -z "$as_dir" && as_dir=.
16914 for ac_exec_ext in '' $ac_executable_extensions; do
16915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16916 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
16917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16918 break 2
16920 done
16921 done
16922 IFS=$as_save_IFS
16925 esac
16927 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
16928 if test -n "$ac_pt_DX_EGREP"; then
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
16930 $as_echo "$ac_pt_DX_EGREP" >&6; }
16931 else
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16933 $as_echo "no" >&6; }
16936 if test "x$ac_pt_DX_EGREP" = x; then
16937 DX_EGREP=""
16938 else
16939 case $cross_compiling:$ac_tool_warned in
16940 yes:)
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16943 ac_tool_warned=yes ;;
16944 esac
16945 DX_EGREP=$ac_pt_DX_EGREP
16947 else
16948 DX_EGREP="$ac_cv_path_DX_EGREP"
16951 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
16953 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
16954 DX_FLAG_ps=0
16960 if test "$DX_FLAG_ps" = 1; then
16961 if :; then
16962 DX_COND_ps_TRUE=
16963 DX_COND_ps_FALSE='#'
16964 else
16965 DX_COND_ps_TRUE='#'
16966 DX_COND_ps_FALSE=
16971 else
16972 if false; then
16973 DX_COND_ps_TRUE=
16974 DX_COND_ps_FALSE='#'
16975 else
16976 DX_COND_ps_TRUE='#'
16977 DX_COND_ps_FALSE=
16985 # PDF file generation:
16989 # Check whether --enable-doxygen-pdf was given.
16990 if test "${enable_doxygen_pdf+set}" = set; then :
16991 enableval=$enable_doxygen_pdf;
16992 case "$enableval" in
16994 y|Y|yes|Yes|YES)
16995 DX_FLAG_pdf=1
16998 test "$DX_FLAG_doc" = "1" \
16999 || as_fn_error "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
17001 ;; #(
17002 n|N|no|No|NO)
17003 DX_FLAG_pdf=0
17005 ;; #(
17007 as_fn_error "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
17009 esac
17011 else
17013 DX_FLAG_pdf=1
17016 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
17022 if test "$DX_FLAG_pdf" = 1; then
17024 if test -n "$ac_tool_prefix"; then
17025 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
17026 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17028 $as_echo_n "checking for $ac_word... " >&6; }
17029 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
17030 $as_echo_n "(cached) " >&6
17031 else
17032 case $DX_PDFLATEX in
17033 [\\/]* | ?:[\\/]*)
17034 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
17037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17038 for as_dir in $PATH
17040 IFS=$as_save_IFS
17041 test -z "$as_dir" && as_dir=.
17042 for ac_exec_ext in '' $ac_executable_extensions; do
17043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17044 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17046 break 2
17048 done
17049 done
17050 IFS=$as_save_IFS
17053 esac
17055 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
17056 if test -n "$DX_PDFLATEX"; then
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
17058 $as_echo "$DX_PDFLATEX" >&6; }
17059 else
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17061 $as_echo "no" >&6; }
17066 if test -z "$ac_cv_path_DX_PDFLATEX"; then
17067 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
17068 # Extract the first word of "pdflatex", so it can be a program name with args.
17069 set dummy pdflatex; ac_word=$2
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17071 $as_echo_n "checking for $ac_word... " >&6; }
17072 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
17073 $as_echo_n "(cached) " >&6
17074 else
17075 case $ac_pt_DX_PDFLATEX in
17076 [\\/]* | ?:[\\/]*)
17077 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
17080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17081 for as_dir in $PATH
17083 IFS=$as_save_IFS
17084 test -z "$as_dir" && as_dir=.
17085 for ac_exec_ext in '' $ac_executable_extensions; do
17086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17087 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17089 break 2
17091 done
17092 done
17093 IFS=$as_save_IFS
17096 esac
17098 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
17099 if test -n "$ac_pt_DX_PDFLATEX"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
17101 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
17102 else
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104 $as_echo "no" >&6; }
17107 if test "x$ac_pt_DX_PDFLATEX" = x; then
17108 DX_PDFLATEX=""
17109 else
17110 case $cross_compiling:$ac_tool_warned in
17111 yes:)
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17114 ac_tool_warned=yes ;;
17115 esac
17116 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
17118 else
17119 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
17122 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
17124 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
17125 DX_FLAG_pdf=0
17130 if test -n "$ac_tool_prefix"; then
17131 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17132 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17134 $as_echo_n "checking for $ac_word... " >&6; }
17135 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
17136 $as_echo_n "(cached) " >&6
17137 else
17138 case $DX_MAKEINDEX in
17139 [\\/]* | ?:[\\/]*)
17140 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17144 for as_dir in $PATH
17146 IFS=$as_save_IFS
17147 test -z "$as_dir" && as_dir=.
17148 for ac_exec_ext in '' $ac_executable_extensions; do
17149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17150 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17152 break 2
17154 done
17155 done
17156 IFS=$as_save_IFS
17159 esac
17161 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17162 if test -n "$DX_MAKEINDEX"; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17164 $as_echo "$DX_MAKEINDEX" >&6; }
17165 else
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167 $as_echo "no" >&6; }
17172 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17173 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17174 # Extract the first word of "makeindex", so it can be a program name with args.
17175 set dummy makeindex; ac_word=$2
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17177 $as_echo_n "checking for $ac_word... " >&6; }
17178 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
17179 $as_echo_n "(cached) " >&6
17180 else
17181 case $ac_pt_DX_MAKEINDEX in
17182 [\\/]* | ?:[\\/]*)
17183 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17187 for as_dir in $PATH
17189 IFS=$as_save_IFS
17190 test -z "$as_dir" && as_dir=.
17191 for ac_exec_ext in '' $ac_executable_extensions; do
17192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17193 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17195 break 2
17197 done
17198 done
17199 IFS=$as_save_IFS
17202 esac
17204 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17205 if test -n "$ac_pt_DX_MAKEINDEX"; then
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17207 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17208 else
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17210 $as_echo "no" >&6; }
17213 if test "x$ac_pt_DX_MAKEINDEX" = x; then
17214 DX_MAKEINDEX=""
17215 else
17216 case $cross_compiling:$ac_tool_warned in
17217 yes:)
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17220 ac_tool_warned=yes ;;
17221 esac
17222 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17224 else
17225 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17228 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
17230 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
17231 DX_FLAG_pdf=0
17236 if test -n "$ac_tool_prefix"; then
17237 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17238 set dummy ${ac_tool_prefix}egrep; ac_word=$2
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17240 $as_echo_n "checking for $ac_word... " >&6; }
17241 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
17242 $as_echo_n "(cached) " >&6
17243 else
17244 case $DX_EGREP in
17245 [\\/]* | ?:[\\/]*)
17246 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17250 for as_dir in $PATH
17252 IFS=$as_save_IFS
17253 test -z "$as_dir" && as_dir=.
17254 for ac_exec_ext in '' $ac_executable_extensions; do
17255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17256 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17258 break 2
17260 done
17261 done
17262 IFS=$as_save_IFS
17265 esac
17267 DX_EGREP=$ac_cv_path_DX_EGREP
17268 if test -n "$DX_EGREP"; then
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17270 $as_echo "$DX_EGREP" >&6; }
17271 else
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17273 $as_echo "no" >&6; }
17278 if test -z "$ac_cv_path_DX_EGREP"; then
17279 ac_pt_DX_EGREP=$DX_EGREP
17280 # Extract the first word of "egrep", so it can be a program name with args.
17281 set dummy egrep; ac_word=$2
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17283 $as_echo_n "checking for $ac_word... " >&6; }
17284 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
17285 $as_echo_n "(cached) " >&6
17286 else
17287 case $ac_pt_DX_EGREP in
17288 [\\/]* | ?:[\\/]*)
17289 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17293 for as_dir in $PATH
17295 IFS=$as_save_IFS
17296 test -z "$as_dir" && as_dir=.
17297 for ac_exec_ext in '' $ac_executable_extensions; do
17298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17299 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17301 break 2
17303 done
17304 done
17305 IFS=$as_save_IFS
17308 esac
17310 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17311 if test -n "$ac_pt_DX_EGREP"; then
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17313 $as_echo "$ac_pt_DX_EGREP" >&6; }
17314 else
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17316 $as_echo "no" >&6; }
17319 if test "x$ac_pt_DX_EGREP" = x; then
17320 DX_EGREP=""
17321 else
17322 case $cross_compiling:$ac_tool_warned in
17323 yes:)
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17326 ac_tool_warned=yes ;;
17327 esac
17328 DX_EGREP=$ac_pt_DX_EGREP
17330 else
17331 DX_EGREP="$ac_cv_path_DX_EGREP"
17334 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
17336 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
17337 DX_FLAG_pdf=0
17343 if test "$DX_FLAG_pdf" = 1; then
17344 if :; then
17345 DX_COND_pdf_TRUE=
17346 DX_COND_pdf_FALSE='#'
17347 else
17348 DX_COND_pdf_TRUE='#'
17349 DX_COND_pdf_FALSE=
17354 else
17355 if false; then
17356 DX_COND_pdf_TRUE=
17357 DX_COND_pdf_FALSE='#'
17358 else
17359 DX_COND_pdf_TRUE='#'
17360 DX_COND_pdf_FALSE=
17368 # LaTeX generation for PS and/or PDF:
17369 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
17370 if :; then
17371 DX_COND_latex_TRUE=
17372 DX_COND_latex_FALSE='#'
17373 else
17374 DX_COND_latex_TRUE='#'
17375 DX_COND_latex_FALSE=
17378 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
17380 else
17381 if false; then
17382 DX_COND_latex_TRUE=
17383 DX_COND_latex_FALSE='#'
17384 else
17385 DX_COND_latex_TRUE='#'
17386 DX_COND_latex_FALSE=
17389 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
17393 # Paper size for PS and/or PDF:
17395 case "$DOXYGEN_PAPER_SIZE" in
17398 DOXYGEN_PAPER_SIZE="letter"
17399 ;; #(
17400 a4wide|a4|letter|legal|executive)
17401 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
17403 ;; #(
17405 as_fn_error "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
17406 DOXYGEN_PAPER_SIZE="letter"
17408 esac
17409 DX_ENV="$DX_ENV PAPER_SIZE='"$DOXYGEN_PAPER_SIZE"'"
17413 if test -n "$DOXYGEN_HTML_LOGO"; then
17414 if ! test -f "$DOXYGEN_HTML_LOGO"; then
17415 as_fn_error "not a file: \"$DOXYGEN_HTML_LOGO\"" "$LINENO" 5
17420 if test -n "$DOXYGEN_LOGO"; then
17421 if ! test -f "$DOXYGEN_LOGO"; then
17422 as_fn_error "not a file: \"$DOXYGEN_LOGO\"" "$LINENO" 5
17427 if test -z "$DOXYGEN_TITLE"; then
17428 DOXYGEN_TITLE="${PACKAGE_NAME}"
17432 if test -z "$DOXYGEN_AUTHOR"; then
17433 DOXYGEN_AUTHOR="Generated by doxygen ${DOXYGEN_VERSION}"
17437 if test -z "$DOXYGEN_DATETIME"; then
17438 DOXYGEN_DATETIME=`date +'%D %T'`
17442 if test -z "$DOXYGEN_DATE"; then
17443 DOXYGEN_DATE=`date +%D`
17446 #For debugging:
17447 #echo DX_FLAG_doc=$DX_FLAG_doc
17448 #echo DX_FLAG_dot=$DX_FLAG_dot
17449 #echo DX_FLAG_man=$DX_FLAG_man
17450 #echo DX_FLAG_html=$DX_FLAG_html
17451 #echo DX_FLAG_chm=$DX_FLAG_chm
17452 #echo DX_FLAG_chi=$DX_FLAG_chi
17453 #echo DX_FLAG_rtf=$DX_FLAG_rtf
17454 #echo DX_FLAG_xml=$DX_FLAG_xml
17455 #echo DX_FLAG_pdf=$DX_FLAG_pdf
17456 #echo DX_FLAG_ps=$DX_FLAG_ps
17457 #echo DX_ENV=$DX_ENV
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC backtrace support" >&5
17461 $as_echo_n "checking for UPC backtrace support... " >&6; }
17462 # Check whether --enable-upc-backtrace was given.
17463 if test "${enable_upc_backtrace+set}" = set; then :
17464 enableval=$enable_upc_backtrace;
17465 case $enableval in
17466 yes | no) ;;
17468 as_fn_error "--enable-upc-backtrace accepts only yes or no" "$LINENO" 5
17469 esac
17471 else
17473 enable_upc_backtrace=yes
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_backtrace" >&5
17478 $as_echo "$enable_upc_backtrace" >&6; }
17479 if test "$enable_upc_backtrace" = yes; then
17481 $as_echo "#define HAVE_UPC_BACKTRACE 1" >>confdefs.h
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC backtrace GDB support" >&5
17486 $as_echo_n "checking for UPC backtrace GDB support... " >&6; }
17487 # Check whether --enable-upc-backtrace-gdb was given.
17488 if test "${enable_upc_backtrace_gdb+set}" = set; then :
17489 enableval=$enable_upc_backtrace_gdb;
17490 case "$enableval" in
17491 yes | no) ;;
17493 as_fn_error "--enable-upc-backtrace-gdb accepts only yes or no" "$LINENO" 5
17494 esac
17496 else
17498 enable_upc_backtrace_gdb=yes
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_backtrace_gdb" >&5
17503 $as_echo "$enable_upc_backtrace_gdb" >&6; }
17504 if test "$enable_upc_backtrace_gdb" = yes; then
17506 $as_echo "#define HAVE_UPC_BACKTRACE_GDB 1" >>confdefs.h
17509 # Check for user specified GDB
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC backtrace GDB to use" >&5
17511 $as_echo_n "checking for UPC backtrace GDB to use... " >&6; }
17513 # Check whether --with-upc-backtrace-gdb was given.
17514 if test "${with_upc_backtrace_gdb+set}" = set; then :
17515 withval=$with_upc_backtrace_gdb;
17516 upc_backtrace_gdb=$withval
17518 else
17520 upc_backtrace_gdb=gdb
17524 for ac_prog in $GDB $upc_backtrace_gdb
17526 # Extract the first word of "$ac_prog", so it can be a program name with args.
17527 set dummy $ac_prog; ac_word=$2
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17529 $as_echo_n "checking for $ac_word... " >&6; }
17530 if test "${ac_cv_path_PATH_TO_GDB+set}" = set; then :
17531 $as_echo_n "(cached) " >&6
17532 else
17533 case $PATH_TO_GDB in
17534 [\\/]* | ?:[\\/]*)
17535 ac_cv_path_PATH_TO_GDB="$PATH_TO_GDB" # Let the user override the test with a path.
17538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17539 as_dummy="/usr/bin:${PATH}"
17540 for as_dir in $as_dummy
17542 IFS=$as_save_IFS
17543 test -z "$as_dir" && as_dir=.
17544 for ac_exec_ext in '' $ac_executable_extensions; do
17545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17546 ac_cv_path_PATH_TO_GDB="$as_dir/$ac_word$ac_exec_ext"
17547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17548 break 2
17550 done
17551 done
17552 IFS=$as_save_IFS
17555 esac
17557 PATH_TO_GDB=$ac_cv_path_PATH_TO_GDB
17558 if test -n "$PATH_TO_GDB"; then
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_GDB" >&5
17560 $as_echo "$PATH_TO_GDB" >&6; }
17561 else
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17563 $as_echo "no" >&6; }
17567 test -n "$PATH_TO_GDB" && break
17568 done
17570 if test -n "$PATH_TO_GDB"; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define GUPCR_BACKTRACE_GDB "$PATH_TO_GDB"
17574 _ACEOF
17576 else
17577 as_fn_error "cannot find gdb. Try the correct --with-upc-backtrace-gdb
17578 option or disable GDB for backtrace with
17579 --disable-upc-backtrace option)" "$LINENO" 5
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_GDB" >&5
17582 $as_echo "$PATH_TO_GDB" >&6; }
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC backtrace signal support" >&5
17586 $as_echo_n "checking for UPC backtrace signal support... " >&6; }
17587 # Check whether --enable-upc-backtrace-signal was given.
17588 if test "${enable_upc_backtrace_signal+set}" = set; then :
17589 enableval=$enable_upc_backtrace_signal;
17590 case "$enableval" in
17591 yes | no) ;;
17593 as_fn_error "--enable-upc-backtrace-signal accepts only yes or no" "$LINENO" 5
17594 esac
17596 else
17598 enable_upc_backtrace_signal=yes
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_backtrace_signal" >&5
17603 $as_echo "$enable_upc_backtrace_signal" >&6; }
17604 if test "$enable_upc_backtrace_signal" = yes; then
17606 $as_echo "#define HAVE_UPC_BACKTRACE_SIGNAL 1" >>confdefs.h
17609 # Check for user specified signal name/number
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC backtrace signal name/number" >&5
17611 $as_echo_n "checking for UPC backtrace signal name/number... " >&6; }
17613 # Check whether --with-upc-backtrace-signal was given.
17614 if test "${with_upc_backtrace_signal+set}" = set; then :
17615 withval=$with_upc_backtrace_signal;
17616 upc_backtrace_signal=$withval
17618 else
17620 upc_backtrace_signal=SIGUSR1
17625 cat >>confdefs.h <<_ACEOF
17626 #define GUPCR_BACKTRACE_SIGNAL $upc_backtrace_signal
17627 _ACEOF
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_backtrace_signal" >&5
17630 $as_echo "$upc_backtrace_signal" >&6; }
17633 # UPC source file/line backtrace requires BFD library
17634 if test "$enable_upc_backtrace" = yes; then
17635 # Specify a location for BFD lib
17637 # Check whether --with-bfd was given.
17638 if test "${with_bfd+set}" = set; then :
17639 withval=$with_bfd;
17643 # Check whether --with-bfd-include was given.
17644 if test "${with_bfd_include+set}" = set; then :
17645 withval=$with_bfd_include;
17649 # Check whether --with-bfd-lib was given.
17650 if test "${with_bfd_lib+set}" = set; then :
17651 withval=$with_bfd_lib;
17655 if test "x$with_bfd" != x; then
17656 bfdlibs="-L$with_bfd/lib $bfdlibs"
17657 bfdinc="-I$with_bfd/include $bfdinc"
17659 if test "x$with_bfd_include" != x; then
17660 bfdinc="-I$with_bfd_include $bfdinc"
17662 if test "x$with_bfd_lib" != x; then
17663 bfdlibs="-L$with_bfd_lib $bfdlibs"
17666 have_bfd=yes
17667 saved_CFLAGS="$CFLAGS"
17668 saved_LIBS="$LIBS"
17669 CFLAGS="$CFLAGS $bfdinc"
17670 LIBS="$LIBS -lbfd -ldl"
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the libbfd" >&5
17672 $as_echo_n "checking for the libbfd... " >&6; }
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17676 #include <bfd.h>
17677 bfd_error_type error;
17678 void foo () { error = bfd_get_error (); }
17681 main ()
17685 return 0;
17687 _ACEOF
17688 if ac_fn_c_try_link "$LINENO"; then :
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17690 $as_echo "yes" >&6; }
17691 else
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17693 $as_echo "no" >&6; }; have_bfd=no
17695 rm -f core conftest.err conftest.$ac_objext \
17696 conftest$ac_exeext conftest.$ac_ext
17697 CFLAGS="$saved_CFLAGS"
17698 LIBS="$saved_LIBS"
17700 if test "$have_bfd" = "yes"; then
17702 $as_echo "#define HAVE_LIBBFD 1" >>confdefs.h
17706 # Check for "-rdynamic" for UPC backtrace
17707 case "${host}" in
17708 *-*-darwin*)
17709 if test x$build = x$host; then
17710 export_sym_check="nm${exeext} -g"
17711 elif test x$host = x$target; then
17712 export_sym_check="$gcc_cv_nm -g"
17713 else
17714 export_sym_check=
17718 if test x$build = x$host; then
17719 export_sym_check="objdump${exeext} -T"
17720 elif test x$host = x$target; then
17721 export_sym_check="$gcc_cv_objdump -T"
17722 else
17723 export_sym_check=
17726 esac
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
17728 $as_echo_n "checking for -rdynamic... " >&6; }
17729 if test "x$export_sym_check" != x; then
17730 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
17731 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c \
17732 -o conftest > /dev/null 2>&1
17733 if $export_sym_check conftest | grep foobar > /dev/null; then
17734 have_rdynamic=yes
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_rdynamic" >&5
17738 $as_echo "$have_rdynamic" >&6; }
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime maximum number of locks held per thread" >&5
17742 $as_echo_n "checking for UPC runtime maximum number of locks held per thread... " >&6; }
17744 # Check whether --with-upc-runtime-max-locks was given.
17745 if test "${with_upc_runtime_max_locks+set}" = set; then :
17746 withval=$with_upc_runtime_max_locks;
17747 # $withval must be a decimal integer
17748 if ! echo "$withval" | grep '^[0-9][0-9]*$' >/dev/null 2>&1; then
17749 as_fn_error "$withval is an invalid option to
17750 --with-upc-runtime-max-locks" "$LINENO" 5
17752 upc_runtime_max_locks="$withval"
17754 else
17756 upc_runtime_max_locks=1024
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_runtime_max_locks" >&5
17761 $as_echo "$upc_runtime_max_locks" >&6; }
17763 cat >>confdefs.h <<_ACEOF
17764 #define GUPCR_MAX_LOCKS $upc_runtime_max_locks
17765 _ACEOF
17768 fi #### End: SMP runtime configuration
17770 if test "$upc_runtime_model" = "portals4"; then
17772 #### Portals4 runtime library configuration ####
17774 # Use the generic (reference implementation)
17775 use_generic_collectives="no"
17777 # Check for Portals4 libs
17778 portals4libs="-lportals"
17779 portals4inc=
17780 have_portals4=no
17782 # Check whether --with-portals4 was given.
17783 if test "${with_portals4+set}" = set; then :
17784 withval=$with_portals4;
17788 # Check whether --with-portals4-include was given.
17789 if test "${with_portals4_include+set}" = set; then :
17790 withval=$with_portals4_include;
17794 # Check whether --with-portals4-lib was given.
17795 if test "${with_portals4_lib+set}" = set; then :
17796 withval=$with_portals4_lib;
17800 if test "x$with_portals4" != x; then
17801 portals4libs="-L$with_portals4/lib $portals4libs"
17802 portals4inc="-I$with_portals4/include $portals4inc"
17804 if test "x$with_portals4_include" != x; then
17805 portals4inc="-I$with_portals4_include $portals4inc"
17807 if test "x$with_portals4_lib" != x; then
17808 portals4libs="-L$with_portals4_lib $portals4libs"
17810 if test "x$with_portals4$with_portals4_include$with_portals4_lib" = x \
17811 && test -d ${srcdir}/portals4; then
17812 portals4libs='-L$$r/$(HOST_SUBDIR)/portals4/ '"$lt_cv_objdir $portals4libs"
17813 portals4inc='-I$$r/$(HOST_SUBDIR)/portals4 -I$$s/portals4 '"$portals4inc"
17814 # Do not test the portals4 version. Assume that it is sufficient, since
17815 # it is in the source tree, and the library has not been built yet
17816 # but it would be included on the link line in the version check below
17817 # hence making the test fail.
17818 have_portals4=yes
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime Portals4 PTE base index" >&5
17824 $as_echo_n "checking for UPC runtime Portals4 PTE base index... " >&6; }
17826 # Check whether --with-upc-runtime-pte-base was given.
17827 if test "${with_upc_runtime_pte_base+set}" = set; then :
17828 withval=$with_upc_runtime_pte_base;
17829 # $withval must be a decimal integer
17830 if ! echo "$withval" | grep '^[0-9][0-9]*$' >/dev/null 2>&1; then
17831 as_fn_error "$withval is an invalid option to --with-upc-runtime-pte-base" "$LINENO" 5
17833 upc_runtime_pte_base="$withval"
17835 else
17837 upc_runtime_pte_base=16
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_runtime_pte_base" >&5
17842 $as_echo "$upc_runtime_pte_base" >&6; }
17844 cat >>confdefs.h <<_ACEOF
17845 #define GUPCR_PTE_BASE $upc_runtime_pte_base
17846 _ACEOF
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime maximum number of locks held per thread" >&5
17850 $as_echo_n "checking for UPC runtime maximum number of locks held per thread... " >&6; }
17852 # Check whether --with-upc-runtime-max-locks was given.
17853 if test "${with_upc_runtime_max_locks+set}" = set; then :
17854 withval=$with_upc_runtime_max_locks;
17855 # $withval must be a decimal integer
17856 if ! echo "$withval" | grep '^[0-9][0-9]*$' >/dev/null 2>&1; then
17857 as_fn_error "$withval is an invalid option to
17858 --with-upc-runtime-max-locks" "$LINENO" 5
17860 upc_runtime_max_locks="$withval"
17862 else
17864 upc_runtime_max_locks=1024
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_runtime_max_locks" >&5
17869 $as_echo "$upc_runtime_max_locks" >&6; }
17871 cat >>confdefs.h <<_ACEOF
17872 #define GUPCR_MAX_LOCKS $upc_runtime_max_locks
17873 _ACEOF
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime bounce buffer size" >&5
17877 $as_echo_n "checking for UPC runtime bounce buffer size... " >&6; }
17879 # Check whether --with-upc-runtime-bounce-buffer-size was given.
17880 if test "${with_upc_runtime_bounce_buffer_size+set}" = set; then :
17881 withval=$with_upc_runtime_bounce_buffer_size;
17882 # $withval must be a decimal integer
17883 if ! echo "$withval" | egrep -i '^[0-9]+[kmg]?$' >/dev/null 2>&1; then
17884 as_fn_error "$withval is an invalid option to
17885 --with-upc-runtime-bounce-buffer-size" "$LINENO" 5
17887 bb_size="$withval"
17889 else
17891 bb_size="256K"
17895 bb_size_expr=`echo "$bb_size" | \
17896 sed -e 's/[gG]$/*1024M/;s/[mM]$/*1024K/;s/[kK]$/*1024/;s/\\*/ \\\\* /g'`
17897 upc_runtime_bounce_buffer_size=`eval expr $bb_size_expr`
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_runtime_bounce_buffer_size" >&5
17899 $as_echo "$upc_runtime_bounce_buffer_size" >&6; }
17901 cat >>confdefs.h <<_ACEOF
17902 #define GUPCR_BOUNCE_BUFFER_SIZE $upc_runtime_bounce_buffer_size
17903 _ACEOF
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC maximum number of outstanding remote puts" >&5
17907 $as_echo_n "checking for UPC maximum number of outstanding remote puts... " >&6; }
17909 # Check whether --with-upc-max-outstanding-puts was given.
17910 if test "${with_upc_max_outstanding_puts+set}" = set; then :
17911 withval=$with_upc_max_outstanding_puts;
17912 # $withval must be a decimal integer
17913 if ! echo "$withval" | grep '^[0-9]*$' >/dev/null 2>&1; then
17914 as_fn_error "$withval is an invalid option to
17915 --with-upc-max-outstanding-puts" "$LINENO" 5
17917 upc_max_puts_count="$withval"
17919 else
17921 upc_max_puts_count="256"
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_max_puts_count" >&5
17926 $as_echo "$upc_max_puts_count" >&6; }
17928 cat >>confdefs.h <<_ACEOF
17929 #define GUPCR_MAX_OUTSTANDING_PUTS $upc_max_puts_count
17930 _ACEOF
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime collectives tree fanout" >&5
17934 $as_echo_n "checking for UPC runtime collectives tree fanout... " >&6; }
17936 # Check whether --with-upc-runtime-tree-fanout was given.
17937 if test "${with_upc_runtime_tree_fanout+set}" = set; then :
17938 withval=$with_upc_runtime_tree_fanout;
17939 # $withval must be a decimal integer
17940 if ! echo "$withval" | grep '^[0-9][0-9]*$' >/dev/null 2>&1; then
17941 as_fn_error "$withval is an invalid option to
17942 --with-upc-runtime-tree-fanout" "$LINENO" 5
17944 upc_runtime_tree_fanout="$withval"
17946 else
17948 upc_runtime_tree_fanout=4
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_runtime_tree_fanout" >&5
17953 $as_echo "$upc_runtime_tree_fanout" >&6; }
17955 cat >>confdefs.h <<_ACEOF
17956 #define GUPCR_TREE_FANOUT $upc_runtime_tree_fanout
17957 _ACEOF
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime Portals4 triggered operation support" >&5
17961 $as_echo_n "checking for UPC runtime Portals4 triggered operation support... " >&6; }
17962 # Check whether --enable-upc-runtime-triggered-ops was given.
17963 if test "${enable_upc_runtime_triggered_ops+set}" = set; then :
17964 enableval=$enable_upc_runtime_triggered_ops;
17965 case $enableval in
17966 yes | no) ;;
17968 as_fn_error "--enable-upc-runtime-triggered-ops accepts only yes or no." "$LINENO" 5
17969 esac
17971 else
17973 enable_upc_runtime_triggered_ops=yes
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_runtime_triggered_ops" >&5
17978 $as_echo "$enable_upc_runtime_triggered_ops" >&6; }
17979 if test "$enable_upc_runtime_triggered_ops" = "yes"; then
17981 $as_echo "#define GUPCR_USE_PORTALS4_TRIGGERED_OPS 1" >>confdefs.h
17985 # Portals4 node local memory optimization
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime node local memory access" >&5
17988 $as_echo_n "checking for UPC runtime node local memory access... " >&6; }
17989 # Check whether --enable-upc-node-local-mem was given.
17990 if test "${enable_upc_node_local_mem+set}" = set; then :
17991 enableval=$enable_upc_node_local_mem;
17992 case $enableval in
17993 yes | no) ;;
17995 as_fn_error "--enable-upc-node-local-mem accepts only yes or no." "$LINENO" 5
17996 esac
17998 else
18000 enable_upc_node_local_mem=yes
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_node_local_mem" >&5
18005 $as_echo "$enable_upc_node_local_mem" >&6; }
18006 if test "$enable_upc_node_local_mem" = "yes"; then
18008 $as_echo "#define GUPCR_NODE_LOCAL_MEM 1" >>confdefs.h
18012 if test "$enable_upc_node_local_mem" = "yes"; then
18013 # START - check for shared memory type
18014 # Check for Posix based shm
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC node local memory type" >&5
18016 $as_echo_n "checking for UPC node local memory type... " >&6; }
18018 # Check whether --with-upc-node-local-mem was given.
18019 if test "${with_upc_node_local_mem+set}" = set; then :
18020 withval=$with_upc_node_local_mem;
18021 case $withval in
18022 posix | mmap)
18023 upc_node_local=$withval
18026 as_fn_error "--with-upc-node-local-mem accepts only posix or mmap." "$LINENO" 5
18027 esac
18029 else
18031 upc_node_local=posix
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_node_local" >&5
18036 $as_echo "$upc_node_local" >&6; };
18038 # Check if POSIX shm is available
18039 if test "$upc_node_local" = "posix"; then
18040 # Check if it is part of librt
18041 have_shm_open=no
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
18043 $as_echo_n "checking for shm_open in -lrt... " >&6; }
18044 if test "${ac_cv_lib_rt_shm_open+set}" = set; then :
18045 $as_echo_n "(cached) " >&6
18046 else
18047 ac_check_lib_save_LIBS=$LIBS
18048 LIBS="-lrt $LIBS"
18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18052 /* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
18055 #ifdef __cplusplus
18056 extern "C"
18057 #endif
18058 char shm_open ();
18060 main ()
18062 return shm_open ();
18064 return 0;
18066 _ACEOF
18067 if ac_fn_c_try_link "$LINENO"; then :
18068 ac_cv_lib_rt_shm_open=yes
18069 else
18070 ac_cv_lib_rt_shm_open=no
18072 rm -f core conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
18074 LIBS=$ac_check_lib_save_LIBS
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
18077 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
18078 if test "x$ac_cv_lib_rt_shm_open" = x""yes; then :
18079 LIBS="-lrt $LIBS"
18080 have_shm_open=yes
18082 $as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h
18086 if test "$have_shm_open" = "no"; then
18087 # Must probe for Posix shmem
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the shm_open" >&5
18089 $as_echo_n "checking for the shm_open... " >&6; }
18090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h. */
18093 #include <sys/types.h>
18094 #include <sys/stat.h>
18095 #include <sys/mman.h>
18096 #include <unistd.h>
18097 #include <fcntl.h>
18098 #include <stdlib.h>
18099 int size = 4096;
18100 int fd;
18101 void * addr;
18103 main ()
18107 fd = shm_open("shm-config-test", O_CREAT|O_RDWR, S_IRUSR|S_IWUSR);
18108 (void)shm_unlink("shm-config-test");
18109 if (fd < 0) return 1;
18110 if (ftruncate(fd, size) < 0) return 1;
18111 addr = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
18112 (void)close(fd);
18113 if (!addr || (addr == MAP_FAILED)) return 1;
18114 (void)munmap(addr, size);
18115 return 0;
18118 return 0;
18120 _ACEOF
18121 if ac_fn_c_try_link "$LINENO"; then :
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18123 $as_echo "yes" >&6; }; have_shm_open=yes
18124 else
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18126 $as_echo "no" >&6; }; have_shm_open=no
18128 rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18132 if test "$have_shm_open" = "yes"; then
18134 $as_echo "#define GUPCR_NODE_LOCAL_MEM_POSIX 1" >>confdefs.h
18136 else
18137 as_fn_error "Posix shared memory is not available" "$LINENO" 5
18139 else
18140 # mmap is always available
18142 $as_echo "#define GUPCR_NODE_LOCAL_MEM_MMAP 1" >>confdefs.h
18145 # END - check for shared memory type
18148 # Check for portals job launcher
18149 ac_fn_c_check_header_mongrel "$LINENO" "slurm/slurm.h" "ac_cv_header_slurm_slurm_h" "$ac_includes_default"
18150 if test "x$ac_cv_header_slurm_slurm_h" = x""yes; then :
18151 have_slurm=yes
18152 else
18153 have_slurm=no
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC runtime Portals4 job launcher" >&5
18158 $as_echo_n "checking for UPC runtime Portals4 job launcher... " >&6; }
18160 # Check whether --with-upc-job-launcher was given.
18161 if test "${with_upc_job_launcher+set}" = set; then :
18162 withval=$with_upc_job_launcher;
18163 case $withval in
18164 slurm | yod)
18165 upc_job_launcher=$withval
18168 as_fn_error "--with-upc-job-launcher accepts only slurm or yod." "$LINENO" 5
18169 esac
18171 else
18173 if test "$have_slurm" = "yes"; then
18174 upc_job_launcher=slurm
18175 else
18176 upc_job_launcher=yod
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_job_launcher" >&5
18182 $as_echo "$upc_job_launcher" >&6; }
18184 if test "$upc_job_launcher" = "slurm"; then
18185 if test "$have_slurm" = "yes"; then
18187 $as_echo "#define GUPCR_JOB_LAUNCHER_SLURM 1" >>confdefs.h
18189 portals4libs="$portals4libs -lpmi"
18190 else
18191 as_fn_error "--with-upc-job-launcher specified slurm,
18192 but slurm is not available." "$LINENO" 5
18194 else
18196 $as_echo "#define GUPCR_JOB_LAUNCHER_YOD 1" >>confdefs.h
18198 portals4libs="$portals4libs -lportals_runtime"
18201 # Check for target memory page size
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory page size" >&5
18203 $as_echo_n "checking for memory page size... " >&6; }
18205 # Check whether --with-upc-memory-page-size was given.
18206 if test "${with_upc_memory_page_size+set}" = set; then :
18207 withval=$with_upc_memory_page_size;
18208 # $withval must be a decimal integer
18209 if ! echo "$withval" | grep '^[0-9][0-9]*$' >/dev/null 2>&1; then
18210 as_fn_error "$withval is an invalid option to --with-upc-memory-page-size" "$LINENO" 5
18212 memory_page_size="$withval"
18214 else
18216 memory_page_size="4096"
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $memory_page_size" >&5
18221 $as_echo "$memory_page_size" >&6; }
18223 cat >>confdefs.h <<_ACEOF
18224 #define GUPCR_MEMORY_PAGE_SIZE $memory_page_size
18225 _ACEOF
18229 $as_echo "#define GUPCR_GLOBAL_EXIT_TIMEOUT 2" >>confdefs.h
18239 #Variables:
18240 DX_PROJECT=${PACKAGE}
18243 # Files:
18244 DX_CONFIG=doxygen.cfg
18246 DX_DOCDIR=doc
18249 # Environment variables used inside doxygen.cfg:
18250 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
18252 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
18254 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
18256 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
18259 # Doxygen itself:
18263 # Check whether --enable-doxygen-doc was given.
18264 if test "${enable_doxygen_doc+set}" = set; then :
18265 enableval=$enable_doxygen_doc;
18266 case "$enableval" in
18268 y|Y|yes|Yes|YES)
18269 DX_FLAG_doc=1
18272 ;; #(
18273 n|N|no|No|NO)
18274 DX_FLAG_doc=0
18276 ;; #(
18278 as_fn_error "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
18280 esac
18282 else
18284 DX_FLAG_doc=1
18290 if test "$DX_FLAG_doc" = 1; then
18292 if test -n "$ac_tool_prefix"; then
18293 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
18294 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18296 $as_echo_n "checking for $ac_word... " >&6; }
18297 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
18298 $as_echo_n "(cached) " >&6
18299 else
18300 case $DX_DOXYGEN in
18301 [\\/]* | ?:[\\/]*)
18302 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
18305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18306 for as_dir in $PATH
18308 IFS=$as_save_IFS
18309 test -z "$as_dir" && as_dir=.
18310 for ac_exec_ext in '' $ac_executable_extensions; do
18311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18312 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18314 break 2
18316 done
18317 done
18318 IFS=$as_save_IFS
18321 esac
18323 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
18324 if test -n "$DX_DOXYGEN"; then
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
18326 $as_echo "$DX_DOXYGEN" >&6; }
18327 else
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18329 $as_echo "no" >&6; }
18334 if test -z "$ac_cv_path_DX_DOXYGEN"; then
18335 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
18336 # Extract the first word of "doxygen", so it can be a program name with args.
18337 set dummy doxygen; ac_word=$2
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18339 $as_echo_n "checking for $ac_word... " >&6; }
18340 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
18341 $as_echo_n "(cached) " >&6
18342 else
18343 case $ac_pt_DX_DOXYGEN in
18344 [\\/]* | ?:[\\/]*)
18345 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
18348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18349 for as_dir in $PATH
18351 IFS=$as_save_IFS
18352 test -z "$as_dir" && as_dir=.
18353 for ac_exec_ext in '' $ac_executable_extensions; do
18354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18355 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18357 break 2
18359 done
18360 done
18361 IFS=$as_save_IFS
18364 esac
18366 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
18367 if test -n "$ac_pt_DX_DOXYGEN"; then
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
18369 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
18370 else
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372 $as_echo "no" >&6; }
18375 if test "x$ac_pt_DX_DOXYGEN" = x; then
18376 DX_DOXYGEN=""
18377 else
18378 case $cross_compiling:$ac_tool_warned in
18379 yes:)
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18382 ac_tool_warned=yes ;;
18383 esac
18384 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
18386 else
18387 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
18390 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
18392 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
18393 DX_FLAG_doc=0
18398 if test -n "$ac_tool_prefix"; then
18399 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
18400 set dummy ${ac_tool_prefix}perl; ac_word=$2
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18402 $as_echo_n "checking for $ac_word... " >&6; }
18403 if test "${ac_cv_path_DX_PERL+set}" = set; then :
18404 $as_echo_n "(cached) " >&6
18405 else
18406 case $DX_PERL in
18407 [\\/]* | ?:[\\/]*)
18408 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
18411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18412 for as_dir in $PATH
18414 IFS=$as_save_IFS
18415 test -z "$as_dir" && as_dir=.
18416 for ac_exec_ext in '' $ac_executable_extensions; do
18417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18418 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
18419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18420 break 2
18422 done
18423 done
18424 IFS=$as_save_IFS
18427 esac
18429 DX_PERL=$ac_cv_path_DX_PERL
18430 if test -n "$DX_PERL"; then
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
18432 $as_echo "$DX_PERL" >&6; }
18433 else
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18435 $as_echo "no" >&6; }
18440 if test -z "$ac_cv_path_DX_PERL"; then
18441 ac_pt_DX_PERL=$DX_PERL
18442 # Extract the first word of "perl", so it can be a program name with args.
18443 set dummy perl; ac_word=$2
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18445 $as_echo_n "checking for $ac_word... " >&6; }
18446 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
18447 $as_echo_n "(cached) " >&6
18448 else
18449 case $ac_pt_DX_PERL in
18450 [\\/]* | ?:[\\/]*)
18451 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
18454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18455 for as_dir in $PATH
18457 IFS=$as_save_IFS
18458 test -z "$as_dir" && as_dir=.
18459 for ac_exec_ext in '' $ac_executable_extensions; do
18460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18461 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
18462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18463 break 2
18465 done
18466 done
18467 IFS=$as_save_IFS
18470 esac
18472 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
18473 if test -n "$ac_pt_DX_PERL"; then
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
18475 $as_echo "$ac_pt_DX_PERL" >&6; }
18476 else
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18478 $as_echo "no" >&6; }
18481 if test "x$ac_pt_DX_PERL" = x; then
18482 DX_PERL=""
18483 else
18484 case $cross_compiling:$ac_tool_warned in
18485 yes:)
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18488 ac_tool_warned=yes ;;
18489 esac
18490 DX_PERL=$ac_pt_DX_PERL
18492 else
18493 DX_PERL="$ac_cv_path_DX_PERL"
18496 if test "$DX_FLAG_doc$DX_PERL" = 1; then
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
18498 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
18499 DX_FLAG_doc=0
18504 if test -n "$ac_tool_prefix"; then
18505 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
18506 set dummy ${ac_tool_prefix}file; ac_word=$2
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18508 $as_echo_n "checking for $ac_word... " >&6; }
18509 if test "${ac_cv_path_DX_FILE+set}" = set; then :
18510 $as_echo_n "(cached) " >&6
18511 else
18512 case $DX_FILE in
18513 [\\/]* | ?:[\\/]*)
18514 ac_cv_path_DX_FILE="$DX_FILE" # Let the user override the test with a path.
18517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18520 IFS=$as_save_IFS
18521 test -z "$as_dir" && as_dir=.
18522 for ac_exec_ext in '' $ac_executable_extensions; do
18523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18524 ac_cv_path_DX_FILE="$as_dir/$ac_word$ac_exec_ext"
18525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18526 break 2
18528 done
18529 done
18530 IFS=$as_save_IFS
18533 esac
18535 DX_FILE=$ac_cv_path_DX_FILE
18536 if test -n "$DX_FILE"; then
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_FILE" >&5
18538 $as_echo "$DX_FILE" >&6; }
18539 else
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18541 $as_echo "no" >&6; }
18546 if test -z "$ac_cv_path_DX_FILE"; then
18547 ac_pt_DX_FILE=$DX_FILE
18548 # Extract the first word of "file", so it can be a program name with args.
18549 set dummy file; ac_word=$2
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18551 $as_echo_n "checking for $ac_word... " >&6; }
18552 if test "${ac_cv_path_ac_pt_DX_FILE+set}" = set; then :
18553 $as_echo_n "(cached) " >&6
18554 else
18555 case $ac_pt_DX_FILE in
18556 [\\/]* | ?:[\\/]*)
18557 ac_cv_path_ac_pt_DX_FILE="$ac_pt_DX_FILE" # Let the user override the test with a path.
18560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18561 for as_dir in $PATH
18563 IFS=$as_save_IFS
18564 test -z "$as_dir" && as_dir=.
18565 for ac_exec_ext in '' $ac_executable_extensions; do
18566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18567 ac_cv_path_ac_pt_DX_FILE="$as_dir/$ac_word$ac_exec_ext"
18568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18569 break 2
18571 done
18572 done
18573 IFS=$as_save_IFS
18576 esac
18578 ac_pt_DX_FILE=$ac_cv_path_ac_pt_DX_FILE
18579 if test -n "$ac_pt_DX_FILE"; then
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_FILE" >&5
18581 $as_echo "$ac_pt_DX_FILE" >&6; }
18582 else
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18584 $as_echo "no" >&6; }
18587 if test "x$ac_pt_DX_FILE" = x; then
18588 DX_FILE=""
18589 else
18590 case $cross_compiling:$ac_tool_warned in
18591 yes:)
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18594 ac_tool_warned=yes ;;
18595 esac
18596 DX_FILE=$ac_pt_DX_FILE
18598 else
18599 DX_FILE="$ac_cv_path_DX_FILE"
18602 if test "$DX_FLAG_doc$DX_FILE" = 1; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: file not found - will not generate any doxygen documentation" >&5
18604 $as_echo "$as_me: WARNING: file not found - will not generate any doxygen documentation" >&2;}
18605 DX_FLAG_doc=0
18611 if test "$DX_FLAG_doc" = 1; then
18612 if :; then
18613 DX_COND_doc_TRUE=
18614 DX_COND_doc_FALSE='#'
18615 else
18616 DX_COND_doc_TRUE='#'
18617 DX_COND_doc_FALSE=
18620 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
18622 DOXYGEN_VERSION=`${DX_DOXYGEN} --version`
18625 else
18626 if false; then
18627 DX_COND_doc_TRUE=
18628 DX_COND_doc_FALSE='#'
18629 else
18630 DX_COND_doc_TRUE='#'
18631 DX_COND_doc_FALSE=
18639 # Dot for graphics:
18643 # Check whether --enable-doxygen-dot was given.
18644 if test "${enable_doxygen_dot+set}" = set; then :
18645 enableval=$enable_doxygen_dot;
18646 case "$enableval" in
18648 y|Y|yes|Yes|YES)
18649 DX_FLAG_dot=1
18652 test "$DX_FLAG_doc" = "1" \
18653 || as_fn_error "doxygen-dot requires doxygen-dot" "$LINENO" 5
18655 ;; #(
18656 n|N|no|No|NO)
18657 DX_FLAG_dot=0
18659 ;; #(
18661 as_fn_error "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
18663 esac
18665 else
18667 DX_FLAG_dot=1
18670 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
18676 if test "$DX_FLAG_dot" = 1; then
18678 if test -n "$ac_tool_prefix"; then
18679 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
18680 set dummy ${ac_tool_prefix}dot; ac_word=$2
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18682 $as_echo_n "checking for $ac_word... " >&6; }
18683 if test "${ac_cv_path_DX_DOT+set}" = set; then :
18684 $as_echo_n "(cached) " >&6
18685 else
18686 case $DX_DOT in
18687 [\\/]* | ?:[\\/]*)
18688 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
18691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18692 for as_dir in $PATH
18694 IFS=$as_save_IFS
18695 test -z "$as_dir" && as_dir=.
18696 for ac_exec_ext in '' $ac_executable_extensions; do
18697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18698 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
18699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18700 break 2
18702 done
18703 done
18704 IFS=$as_save_IFS
18707 esac
18709 DX_DOT=$ac_cv_path_DX_DOT
18710 if test -n "$DX_DOT"; then
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
18712 $as_echo "$DX_DOT" >&6; }
18713 else
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18715 $as_echo "no" >&6; }
18720 if test -z "$ac_cv_path_DX_DOT"; then
18721 ac_pt_DX_DOT=$DX_DOT
18722 # Extract the first word of "dot", so it can be a program name with args.
18723 set dummy dot; ac_word=$2
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18725 $as_echo_n "checking for $ac_word... " >&6; }
18726 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
18727 $as_echo_n "(cached) " >&6
18728 else
18729 case $ac_pt_DX_DOT in
18730 [\\/]* | ?:[\\/]*)
18731 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
18734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18735 for as_dir in $PATH
18737 IFS=$as_save_IFS
18738 test -z "$as_dir" && as_dir=.
18739 for ac_exec_ext in '' $ac_executable_extensions; do
18740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18741 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
18742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18743 break 2
18745 done
18746 done
18747 IFS=$as_save_IFS
18750 esac
18752 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
18753 if test -n "$ac_pt_DX_DOT"; then
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
18755 $as_echo "$ac_pt_DX_DOT" >&6; }
18756 else
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18758 $as_echo "no" >&6; }
18761 if test "x$ac_pt_DX_DOT" = x; then
18762 DX_DOT=""
18763 else
18764 case $cross_compiling:$ac_tool_warned in
18765 yes:)
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18768 ac_tool_warned=yes ;;
18769 esac
18770 DX_DOT=$ac_pt_DX_DOT
18772 else
18773 DX_DOT="$ac_cv_path_DX_DOT"
18776 if test "$DX_FLAG_dot$DX_DOT" = 1; then
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
18778 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
18779 DX_FLAG_dot=0
18785 if test "$DX_FLAG_dot" = 1; then
18786 if :; then
18787 DX_COND_dot_TRUE=
18788 DX_COND_dot_FALSE='#'
18789 else
18790 DX_COND_dot_TRUE='#'
18791 DX_COND_dot_FALSE=
18794 DX_ENV="$DX_ENV HAVE_DOT='YES'"
18796 HAVE_DOT=YES
18798 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
18801 else
18802 if false; then
18803 DX_COND_dot_TRUE=
18804 DX_COND_dot_FALSE='#'
18805 else
18806 DX_COND_dot_TRUE='#'
18807 DX_COND_dot_FALSE=
18810 HAVE_DOT=NO
18812 DX_ENV="$DX_ENV HAVE_DOT='NO'"
18818 # Man pages generation:
18822 # Check whether --enable-doxygen-man was given.
18823 if test "${enable_doxygen_man+set}" = set; then :
18824 enableval=$enable_doxygen_man;
18825 case "$enableval" in
18827 y|Y|yes|Yes|YES)
18828 DX_FLAG_man=1
18831 test "$DX_FLAG_doc" = "1" \
18832 || as_fn_error "doxygen-man requires doxygen-man" "$LINENO" 5
18834 ;; #(
18835 n|N|no|No|NO)
18836 DX_FLAG_man=0
18838 ;; #(
18840 as_fn_error "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
18842 esac
18844 else
18846 DX_FLAG_man=0
18849 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
18855 if test "$DX_FLAG_man" = 1; then
18859 if test "$DX_FLAG_man" = 1; then
18860 if :; then
18861 DX_COND_man_TRUE=
18862 DX_COND_man_FALSE='#'
18863 else
18864 DX_COND_man_TRUE='#'
18865 DX_COND_man_FALSE=
18868 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
18871 else
18872 if false; then
18873 DX_COND_man_TRUE=
18874 DX_COND_man_FALSE='#'
18875 else
18876 DX_COND_man_TRUE='#'
18877 DX_COND_man_FALSE=
18880 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
18886 # RTF file generation:
18890 # Check whether --enable-doxygen-rtf was given.
18891 if test "${enable_doxygen_rtf+set}" = set; then :
18892 enableval=$enable_doxygen_rtf;
18893 case "$enableval" in
18895 y|Y|yes|Yes|YES)
18896 DX_FLAG_rtf=1
18899 test "$DX_FLAG_doc" = "1" \
18900 || as_fn_error "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
18902 ;; #(
18903 n|N|no|No|NO)
18904 DX_FLAG_rtf=0
18906 ;; #(
18908 as_fn_error "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
18910 esac
18912 else
18914 DX_FLAG_rtf=0
18917 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
18923 if test "$DX_FLAG_rtf" = 1; then
18927 if test "$DX_FLAG_rtf" = 1; then
18928 if :; then
18929 DX_COND_rtf_TRUE=
18930 DX_COND_rtf_FALSE='#'
18931 else
18932 DX_COND_rtf_TRUE='#'
18933 DX_COND_rtf_FALSE=
18936 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
18939 else
18940 if false; then
18941 DX_COND_rtf_TRUE=
18942 DX_COND_rtf_FALSE='#'
18943 else
18944 DX_COND_rtf_TRUE='#'
18945 DX_COND_rtf_FALSE=
18948 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
18954 # XML file generation:
18958 # Check whether --enable-doxygen-xml was given.
18959 if test "${enable_doxygen_xml+set}" = set; then :
18960 enableval=$enable_doxygen_xml;
18961 case "$enableval" in
18963 y|Y|yes|Yes|YES)
18964 DX_FLAG_xml=1
18967 test "$DX_FLAG_doc" = "1" \
18968 || as_fn_error "doxygen-xml requires doxygen-xml" "$LINENO" 5
18970 ;; #(
18971 n|N|no|No|NO)
18972 DX_FLAG_xml=0
18974 ;; #(
18976 as_fn_error "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
18978 esac
18980 else
18982 DX_FLAG_xml=0
18985 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
18991 if test "$DX_FLAG_xml" = 1; then
18995 if test "$DX_FLAG_xml" = 1; then
18996 if :; then
18997 DX_COND_xml_TRUE=
18998 DX_COND_xml_FALSE='#'
18999 else
19000 DX_COND_xml_TRUE='#'
19001 DX_COND_xml_FALSE=
19004 DX_ENV="$DX_ENV GENERATE_XML='YES'"
19007 else
19008 if false; then
19009 DX_COND_xml_TRUE=
19010 DX_COND_xml_FALSE='#'
19011 else
19012 DX_COND_xml_TRUE='#'
19013 DX_COND_xml_FALSE=
19016 DX_ENV="$DX_ENV GENERATE_XML='NO'"
19022 # (Compressed) HTML help generation:
19026 # Check whether --enable-doxygen-chm was given.
19027 if test "${enable_doxygen_chm+set}" = set; then :
19028 enableval=$enable_doxygen_chm;
19029 case "$enableval" in
19031 y|Y|yes|Yes|YES)
19032 DX_FLAG_chm=1
19035 test "$DX_FLAG_doc" = "1" \
19036 || as_fn_error "doxygen-chm requires doxygen-chm" "$LINENO" 5
19038 ;; #(
19039 n|N|no|No|NO)
19040 DX_FLAG_chm=0
19042 ;; #(
19044 as_fn_error "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
19046 esac
19048 else
19050 DX_FLAG_chm=0
19053 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
19059 if test "$DX_FLAG_chm" = 1; then
19061 if test -n "$ac_tool_prefix"; then
19062 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
19063 set dummy ${ac_tool_prefix}hhc; ac_word=$2
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19065 $as_echo_n "checking for $ac_word... " >&6; }
19066 if test "${ac_cv_path_DX_HHC+set}" = set; then :
19067 $as_echo_n "(cached) " >&6
19068 else
19069 case $DX_HHC in
19070 [\\/]* | ?:[\\/]*)
19071 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
19074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19075 for as_dir in $PATH
19077 IFS=$as_save_IFS
19078 test -z "$as_dir" && as_dir=.
19079 for ac_exec_ext in '' $ac_executable_extensions; do
19080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19081 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
19082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19083 break 2
19085 done
19086 done
19087 IFS=$as_save_IFS
19090 esac
19092 DX_HHC=$ac_cv_path_DX_HHC
19093 if test -n "$DX_HHC"; then
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
19095 $as_echo "$DX_HHC" >&6; }
19096 else
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19098 $as_echo "no" >&6; }
19103 if test -z "$ac_cv_path_DX_HHC"; then
19104 ac_pt_DX_HHC=$DX_HHC
19105 # Extract the first word of "hhc", so it can be a program name with args.
19106 set dummy hhc; ac_word=$2
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19108 $as_echo_n "checking for $ac_word... " >&6; }
19109 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
19110 $as_echo_n "(cached) " >&6
19111 else
19112 case $ac_pt_DX_HHC in
19113 [\\/]* | ?:[\\/]*)
19114 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
19117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19118 for as_dir in $PATH
19120 IFS=$as_save_IFS
19121 test -z "$as_dir" && as_dir=.
19122 for ac_exec_ext in '' $ac_executable_extensions; do
19123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19124 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
19125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19126 break 2
19128 done
19129 done
19130 IFS=$as_save_IFS
19133 esac
19135 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
19136 if test -n "$ac_pt_DX_HHC"; then
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
19138 $as_echo "$ac_pt_DX_HHC" >&6; }
19139 else
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19141 $as_echo "no" >&6; }
19144 if test "x$ac_pt_DX_HHC" = x; then
19145 DX_HHC=""
19146 else
19147 case $cross_compiling:$ac_tool_warned in
19148 yes:)
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19151 ac_tool_warned=yes ;;
19152 esac
19153 DX_HHC=$ac_pt_DX_HHC
19155 else
19156 DX_HHC="$ac_cv_path_DX_HHC"
19159 if test "$DX_FLAG_chm$DX_HHC" = 1; then
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
19161 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
19162 DX_FLAG_chm=0
19168 if test "$DX_FLAG_chm" = 1; then
19169 if :; then
19170 DX_COND_chm_TRUE=
19171 DX_COND_chm_FALSE='#'
19172 else
19173 DX_COND_chm_TRUE='#'
19174 DX_COND_chm_FALSE=
19177 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
19179 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
19181 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
19184 else
19185 if false; then
19186 DX_COND_chm_TRUE=
19187 DX_COND_chm_FALSE='#'
19188 else
19189 DX_COND_chm_TRUE='#'
19190 DX_COND_chm_FALSE=
19193 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
19199 # Seperate CHI file generation.
19203 # Check whether --enable-doxygen-chi was given.
19204 if test "${enable_doxygen_chi+set}" = set; then :
19205 enableval=$enable_doxygen_chi;
19206 case "$enableval" in
19208 y|Y|yes|Yes|YES)
19209 DX_FLAG_chi=1
19212 test "$DX_FLAG_chm" = "1" \
19213 || as_fn_error "doxygen-chi requires doxygen-chi" "$LINENO" 5
19215 ;; #(
19216 n|N|no|No|NO)
19217 DX_FLAG_chi=0
19219 ;; #(
19221 as_fn_error "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
19223 esac
19225 else
19227 DX_FLAG_chi=0
19230 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
19236 if test "$DX_FLAG_chi" = 1; then
19240 if test "$DX_FLAG_chi" = 1; then
19241 if :; then
19242 DX_COND_chi_TRUE=
19243 DX_COND_chi_FALSE='#'
19244 else
19245 DX_COND_chi_TRUE='#'
19246 DX_COND_chi_FALSE=
19249 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
19252 else
19253 if false; then
19254 DX_COND_chi_TRUE=
19255 DX_COND_chi_FALSE='#'
19256 else
19257 DX_COND_chi_TRUE='#'
19258 DX_COND_chi_FALSE=
19261 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
19267 # Plain HTML pages generation:
19271 # Check whether --enable-doxygen-html was given.
19272 if test "${enable_doxygen_html+set}" = set; then :
19273 enableval=$enable_doxygen_html;
19274 case "$enableval" in
19276 y|Y|yes|Yes|YES)
19277 DX_FLAG_html=1
19280 test "$DX_FLAG_doc" = "1" \
19281 || as_fn_error "doxygen-html requires doxygen-html" "$LINENO" 5
19283 test "$DX_FLAG_chm" = "0" \
19284 || as_fn_error "doxygen-html contradicts doxygen-html" "$LINENO" 5
19286 ;; #(
19287 n|N|no|No|NO)
19288 DX_FLAG_html=0
19290 ;; #(
19292 as_fn_error "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
19294 esac
19296 else
19298 DX_FLAG_html=1
19301 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
19304 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
19310 if test "$DX_FLAG_html" = 1; then
19314 if test "$DX_FLAG_html" = 1; then
19315 if :; then
19316 DX_COND_html_TRUE=
19317 DX_COND_html_FALSE='#'
19318 else
19319 DX_COND_html_TRUE='#'
19320 DX_COND_html_FALSE=
19323 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
19326 else
19327 if false; then
19328 DX_COND_html_TRUE=
19329 DX_COND_html_FALSE='#'
19330 else
19331 DX_COND_html_TRUE='#'
19332 DX_COND_html_FALSE=
19335 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
19341 # PostScript file generation:
19345 # Check whether --enable-doxygen-ps was given.
19346 if test "${enable_doxygen_ps+set}" = set; then :
19347 enableval=$enable_doxygen_ps;
19348 case "$enableval" in
19350 y|Y|yes|Yes|YES)
19351 DX_FLAG_ps=1
19354 test "$DX_FLAG_doc" = "1" \
19355 || as_fn_error "doxygen-ps requires doxygen-ps" "$LINENO" 5
19357 ;; #(
19358 n|N|no|No|NO)
19359 DX_FLAG_ps=0
19361 ;; #(
19363 as_fn_error "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
19365 esac
19367 else
19369 DX_FLAG_ps=0
19372 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
19378 if test "$DX_FLAG_ps" = 1; then
19380 if test -n "$ac_tool_prefix"; then
19381 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
19382 set dummy ${ac_tool_prefix}latex; ac_word=$2
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19384 $as_echo_n "checking for $ac_word... " >&6; }
19385 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
19386 $as_echo_n "(cached) " >&6
19387 else
19388 case $DX_LATEX in
19389 [\\/]* | ?:[\\/]*)
19390 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
19393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19394 for as_dir in $PATH
19396 IFS=$as_save_IFS
19397 test -z "$as_dir" && as_dir=.
19398 for ac_exec_ext in '' $ac_executable_extensions; do
19399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19400 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
19401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19402 break 2
19404 done
19405 done
19406 IFS=$as_save_IFS
19409 esac
19411 DX_LATEX=$ac_cv_path_DX_LATEX
19412 if test -n "$DX_LATEX"; then
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
19414 $as_echo "$DX_LATEX" >&6; }
19415 else
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19417 $as_echo "no" >&6; }
19422 if test -z "$ac_cv_path_DX_LATEX"; then
19423 ac_pt_DX_LATEX=$DX_LATEX
19424 # Extract the first word of "latex", so it can be a program name with args.
19425 set dummy latex; ac_word=$2
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19427 $as_echo_n "checking for $ac_word... " >&6; }
19428 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
19429 $as_echo_n "(cached) " >&6
19430 else
19431 case $ac_pt_DX_LATEX in
19432 [\\/]* | ?:[\\/]*)
19433 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
19436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19437 for as_dir in $PATH
19439 IFS=$as_save_IFS
19440 test -z "$as_dir" && as_dir=.
19441 for ac_exec_ext in '' $ac_executable_extensions; do
19442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19443 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
19444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19445 break 2
19447 done
19448 done
19449 IFS=$as_save_IFS
19452 esac
19454 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
19455 if test -n "$ac_pt_DX_LATEX"; then
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
19457 $as_echo "$ac_pt_DX_LATEX" >&6; }
19458 else
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19460 $as_echo "no" >&6; }
19463 if test "x$ac_pt_DX_LATEX" = x; then
19464 DX_LATEX=""
19465 else
19466 case $cross_compiling:$ac_tool_warned in
19467 yes:)
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19470 ac_tool_warned=yes ;;
19471 esac
19472 DX_LATEX=$ac_pt_DX_LATEX
19474 else
19475 DX_LATEX="$ac_cv_path_DX_LATEX"
19478 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
19480 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
19481 DX_FLAG_ps=0
19486 if test -n "$ac_tool_prefix"; then
19487 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
19488 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19490 $as_echo_n "checking for $ac_word... " >&6; }
19491 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
19492 $as_echo_n "(cached) " >&6
19493 else
19494 case $DX_MAKEINDEX in
19495 [\\/]* | ?:[\\/]*)
19496 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
19499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19500 for as_dir in $PATH
19502 IFS=$as_save_IFS
19503 test -z "$as_dir" && as_dir=.
19504 for ac_exec_ext in '' $ac_executable_extensions; do
19505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19506 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
19507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19508 break 2
19510 done
19511 done
19512 IFS=$as_save_IFS
19515 esac
19517 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
19518 if test -n "$DX_MAKEINDEX"; then
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
19520 $as_echo "$DX_MAKEINDEX" >&6; }
19521 else
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19523 $as_echo "no" >&6; }
19528 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
19529 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
19530 # Extract the first word of "makeindex", so it can be a program name with args.
19531 set dummy makeindex; ac_word=$2
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19533 $as_echo_n "checking for $ac_word... " >&6; }
19534 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
19535 $as_echo_n "(cached) " >&6
19536 else
19537 case $ac_pt_DX_MAKEINDEX in
19538 [\\/]* | ?:[\\/]*)
19539 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
19542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19543 for as_dir in $PATH
19545 IFS=$as_save_IFS
19546 test -z "$as_dir" && as_dir=.
19547 for ac_exec_ext in '' $ac_executable_extensions; do
19548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19549 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
19550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19551 break 2
19553 done
19554 done
19555 IFS=$as_save_IFS
19558 esac
19560 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
19561 if test -n "$ac_pt_DX_MAKEINDEX"; then
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
19563 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
19564 else
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19566 $as_echo "no" >&6; }
19569 if test "x$ac_pt_DX_MAKEINDEX" = x; then
19570 DX_MAKEINDEX=""
19571 else
19572 case $cross_compiling:$ac_tool_warned in
19573 yes:)
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19576 ac_tool_warned=yes ;;
19577 esac
19578 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
19580 else
19581 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
19584 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
19586 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
19587 DX_FLAG_ps=0
19592 if test -n "$ac_tool_prefix"; then
19593 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
19594 set dummy ${ac_tool_prefix}dvips; ac_word=$2
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19596 $as_echo_n "checking for $ac_word... " >&6; }
19597 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
19598 $as_echo_n "(cached) " >&6
19599 else
19600 case $DX_DVIPS in
19601 [\\/]* | ?:[\\/]*)
19602 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
19605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19606 for as_dir in $PATH
19608 IFS=$as_save_IFS
19609 test -z "$as_dir" && as_dir=.
19610 for ac_exec_ext in '' $ac_executable_extensions; do
19611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19612 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
19613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19614 break 2
19616 done
19617 done
19618 IFS=$as_save_IFS
19621 esac
19623 DX_DVIPS=$ac_cv_path_DX_DVIPS
19624 if test -n "$DX_DVIPS"; then
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
19626 $as_echo "$DX_DVIPS" >&6; }
19627 else
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19629 $as_echo "no" >&6; }
19634 if test -z "$ac_cv_path_DX_DVIPS"; then
19635 ac_pt_DX_DVIPS=$DX_DVIPS
19636 # Extract the first word of "dvips", so it can be a program name with args.
19637 set dummy dvips; ac_word=$2
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19639 $as_echo_n "checking for $ac_word... " >&6; }
19640 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
19641 $as_echo_n "(cached) " >&6
19642 else
19643 case $ac_pt_DX_DVIPS in
19644 [\\/]* | ?:[\\/]*)
19645 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
19648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649 for as_dir in $PATH
19651 IFS=$as_save_IFS
19652 test -z "$as_dir" && as_dir=.
19653 for ac_exec_ext in '' $ac_executable_extensions; do
19654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19655 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
19656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19657 break 2
19659 done
19660 done
19661 IFS=$as_save_IFS
19664 esac
19666 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
19667 if test -n "$ac_pt_DX_DVIPS"; then
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
19669 $as_echo "$ac_pt_DX_DVIPS" >&6; }
19670 else
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19672 $as_echo "no" >&6; }
19675 if test "x$ac_pt_DX_DVIPS" = x; then
19676 DX_DVIPS=""
19677 else
19678 case $cross_compiling:$ac_tool_warned in
19679 yes:)
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19682 ac_tool_warned=yes ;;
19683 esac
19684 DX_DVIPS=$ac_pt_DX_DVIPS
19686 else
19687 DX_DVIPS="$ac_cv_path_DX_DVIPS"
19690 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
19692 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
19693 DX_FLAG_ps=0
19698 if test -n "$ac_tool_prefix"; then
19699 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
19700 set dummy ${ac_tool_prefix}egrep; ac_word=$2
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19702 $as_echo_n "checking for $ac_word... " >&6; }
19703 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
19704 $as_echo_n "(cached) " >&6
19705 else
19706 case $DX_EGREP in
19707 [\\/]* | ?:[\\/]*)
19708 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
19711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19712 for as_dir in $PATH
19714 IFS=$as_save_IFS
19715 test -z "$as_dir" && as_dir=.
19716 for ac_exec_ext in '' $ac_executable_extensions; do
19717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19718 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
19719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19720 break 2
19722 done
19723 done
19724 IFS=$as_save_IFS
19727 esac
19729 DX_EGREP=$ac_cv_path_DX_EGREP
19730 if test -n "$DX_EGREP"; then
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
19732 $as_echo "$DX_EGREP" >&6; }
19733 else
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19735 $as_echo "no" >&6; }
19740 if test -z "$ac_cv_path_DX_EGREP"; then
19741 ac_pt_DX_EGREP=$DX_EGREP
19742 # Extract the first word of "egrep", so it can be a program name with args.
19743 set dummy egrep; ac_word=$2
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19745 $as_echo_n "checking for $ac_word... " >&6; }
19746 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
19747 $as_echo_n "(cached) " >&6
19748 else
19749 case $ac_pt_DX_EGREP in
19750 [\\/]* | ?:[\\/]*)
19751 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
19754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19755 for as_dir in $PATH
19757 IFS=$as_save_IFS
19758 test -z "$as_dir" && as_dir=.
19759 for ac_exec_ext in '' $ac_executable_extensions; do
19760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19761 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
19762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19763 break 2
19765 done
19766 done
19767 IFS=$as_save_IFS
19770 esac
19772 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
19773 if test -n "$ac_pt_DX_EGREP"; then
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
19775 $as_echo "$ac_pt_DX_EGREP" >&6; }
19776 else
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19778 $as_echo "no" >&6; }
19781 if test "x$ac_pt_DX_EGREP" = x; then
19782 DX_EGREP=""
19783 else
19784 case $cross_compiling:$ac_tool_warned in
19785 yes:)
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19788 ac_tool_warned=yes ;;
19789 esac
19790 DX_EGREP=$ac_pt_DX_EGREP
19792 else
19793 DX_EGREP="$ac_cv_path_DX_EGREP"
19796 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
19798 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
19799 DX_FLAG_ps=0
19805 if test "$DX_FLAG_ps" = 1; then
19806 if :; then
19807 DX_COND_ps_TRUE=
19808 DX_COND_ps_FALSE='#'
19809 else
19810 DX_COND_ps_TRUE='#'
19811 DX_COND_ps_FALSE=
19816 else
19817 if false; then
19818 DX_COND_ps_TRUE=
19819 DX_COND_ps_FALSE='#'
19820 else
19821 DX_COND_ps_TRUE='#'
19822 DX_COND_ps_FALSE=
19830 # PDF file generation:
19834 # Check whether --enable-doxygen-pdf was given.
19835 if test "${enable_doxygen_pdf+set}" = set; then :
19836 enableval=$enable_doxygen_pdf;
19837 case "$enableval" in
19839 y|Y|yes|Yes|YES)
19840 DX_FLAG_pdf=1
19843 test "$DX_FLAG_doc" = "1" \
19844 || as_fn_error "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
19846 ;; #(
19847 n|N|no|No|NO)
19848 DX_FLAG_pdf=0
19850 ;; #(
19852 as_fn_error "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
19854 esac
19856 else
19858 DX_FLAG_pdf=1
19861 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
19867 if test "$DX_FLAG_pdf" = 1; then
19869 if test -n "$ac_tool_prefix"; then
19870 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
19871 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19873 $as_echo_n "checking for $ac_word... " >&6; }
19874 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
19875 $as_echo_n "(cached) " >&6
19876 else
19877 case $DX_PDFLATEX in
19878 [\\/]* | ?:[\\/]*)
19879 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
19882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19883 for as_dir in $PATH
19885 IFS=$as_save_IFS
19886 test -z "$as_dir" && as_dir=.
19887 for ac_exec_ext in '' $ac_executable_extensions; do
19888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19889 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
19890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19891 break 2
19893 done
19894 done
19895 IFS=$as_save_IFS
19898 esac
19900 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
19901 if test -n "$DX_PDFLATEX"; then
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
19903 $as_echo "$DX_PDFLATEX" >&6; }
19904 else
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19906 $as_echo "no" >&6; }
19911 if test -z "$ac_cv_path_DX_PDFLATEX"; then
19912 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
19913 # Extract the first word of "pdflatex", so it can be a program name with args.
19914 set dummy pdflatex; ac_word=$2
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19916 $as_echo_n "checking for $ac_word... " >&6; }
19917 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
19918 $as_echo_n "(cached) " >&6
19919 else
19920 case $ac_pt_DX_PDFLATEX in
19921 [\\/]* | ?:[\\/]*)
19922 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
19925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19926 for as_dir in $PATH
19928 IFS=$as_save_IFS
19929 test -z "$as_dir" && as_dir=.
19930 for ac_exec_ext in '' $ac_executable_extensions; do
19931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19932 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
19933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19934 break 2
19936 done
19937 done
19938 IFS=$as_save_IFS
19941 esac
19943 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
19944 if test -n "$ac_pt_DX_PDFLATEX"; then
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
19946 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
19947 else
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19949 $as_echo "no" >&6; }
19952 if test "x$ac_pt_DX_PDFLATEX" = x; then
19953 DX_PDFLATEX=""
19954 else
19955 case $cross_compiling:$ac_tool_warned in
19956 yes:)
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19959 ac_tool_warned=yes ;;
19960 esac
19961 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
19963 else
19964 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
19967 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
19969 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
19970 DX_FLAG_pdf=0
19975 if test -n "$ac_tool_prefix"; then
19976 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
19977 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19979 $as_echo_n "checking for $ac_word... " >&6; }
19980 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
19981 $as_echo_n "(cached) " >&6
19982 else
19983 case $DX_MAKEINDEX in
19984 [\\/]* | ?:[\\/]*)
19985 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
19988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19989 for as_dir in $PATH
19991 IFS=$as_save_IFS
19992 test -z "$as_dir" && as_dir=.
19993 for ac_exec_ext in '' $ac_executable_extensions; do
19994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19995 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
19996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19997 break 2
19999 done
20000 done
20001 IFS=$as_save_IFS
20004 esac
20006 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
20007 if test -n "$DX_MAKEINDEX"; then
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
20009 $as_echo "$DX_MAKEINDEX" >&6; }
20010 else
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20012 $as_echo "no" >&6; }
20017 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
20018 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
20019 # Extract the first word of "makeindex", so it can be a program name with args.
20020 set dummy makeindex; ac_word=$2
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20022 $as_echo_n "checking for $ac_word... " >&6; }
20023 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
20024 $as_echo_n "(cached) " >&6
20025 else
20026 case $ac_pt_DX_MAKEINDEX in
20027 [\\/]* | ?:[\\/]*)
20028 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
20031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20032 for as_dir in $PATH
20034 IFS=$as_save_IFS
20035 test -z "$as_dir" && as_dir=.
20036 for ac_exec_ext in '' $ac_executable_extensions; do
20037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20038 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
20039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20040 break 2
20042 done
20043 done
20044 IFS=$as_save_IFS
20047 esac
20049 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
20050 if test -n "$ac_pt_DX_MAKEINDEX"; then
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
20052 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
20053 else
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20055 $as_echo "no" >&6; }
20058 if test "x$ac_pt_DX_MAKEINDEX" = x; then
20059 DX_MAKEINDEX=""
20060 else
20061 case $cross_compiling:$ac_tool_warned in
20062 yes:)
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20065 ac_tool_warned=yes ;;
20066 esac
20067 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
20069 else
20070 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
20073 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
20075 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
20076 DX_FLAG_pdf=0
20081 if test -n "$ac_tool_prefix"; then
20082 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
20083 set dummy ${ac_tool_prefix}egrep; ac_word=$2
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20085 $as_echo_n "checking for $ac_word... " >&6; }
20086 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
20087 $as_echo_n "(cached) " >&6
20088 else
20089 case $DX_EGREP in
20090 [\\/]* | ?:[\\/]*)
20091 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
20094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20095 for as_dir in $PATH
20097 IFS=$as_save_IFS
20098 test -z "$as_dir" && as_dir=.
20099 for ac_exec_ext in '' $ac_executable_extensions; do
20100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20101 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
20102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20103 break 2
20105 done
20106 done
20107 IFS=$as_save_IFS
20110 esac
20112 DX_EGREP=$ac_cv_path_DX_EGREP
20113 if test -n "$DX_EGREP"; then
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
20115 $as_echo "$DX_EGREP" >&6; }
20116 else
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20118 $as_echo "no" >&6; }
20123 if test -z "$ac_cv_path_DX_EGREP"; then
20124 ac_pt_DX_EGREP=$DX_EGREP
20125 # Extract the first word of "egrep", so it can be a program name with args.
20126 set dummy egrep; ac_word=$2
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20128 $as_echo_n "checking for $ac_word... " >&6; }
20129 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
20130 $as_echo_n "(cached) " >&6
20131 else
20132 case $ac_pt_DX_EGREP in
20133 [\\/]* | ?:[\\/]*)
20134 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
20137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20138 for as_dir in $PATH
20140 IFS=$as_save_IFS
20141 test -z "$as_dir" && as_dir=.
20142 for ac_exec_ext in '' $ac_executable_extensions; do
20143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20144 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
20145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20146 break 2
20148 done
20149 done
20150 IFS=$as_save_IFS
20153 esac
20155 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
20156 if test -n "$ac_pt_DX_EGREP"; then
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
20158 $as_echo "$ac_pt_DX_EGREP" >&6; }
20159 else
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20161 $as_echo "no" >&6; }
20164 if test "x$ac_pt_DX_EGREP" = x; then
20165 DX_EGREP=""
20166 else
20167 case $cross_compiling:$ac_tool_warned in
20168 yes:)
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20171 ac_tool_warned=yes ;;
20172 esac
20173 DX_EGREP=$ac_pt_DX_EGREP
20175 else
20176 DX_EGREP="$ac_cv_path_DX_EGREP"
20179 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
20181 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
20182 DX_FLAG_pdf=0
20188 if test "$DX_FLAG_pdf" = 1; then
20189 if :; then
20190 DX_COND_pdf_TRUE=
20191 DX_COND_pdf_FALSE='#'
20192 else
20193 DX_COND_pdf_TRUE='#'
20194 DX_COND_pdf_FALSE=
20199 else
20200 if false; then
20201 DX_COND_pdf_TRUE=
20202 DX_COND_pdf_FALSE='#'
20203 else
20204 DX_COND_pdf_TRUE='#'
20205 DX_COND_pdf_FALSE=
20213 # LaTeX generation for PS and/or PDF:
20214 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
20215 if :; then
20216 DX_COND_latex_TRUE=
20217 DX_COND_latex_FALSE='#'
20218 else
20219 DX_COND_latex_TRUE='#'
20220 DX_COND_latex_FALSE=
20223 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
20225 else
20226 if false; then
20227 DX_COND_latex_TRUE=
20228 DX_COND_latex_FALSE='#'
20229 else
20230 DX_COND_latex_TRUE='#'
20231 DX_COND_latex_FALSE=
20234 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
20238 # Paper size for PS and/or PDF:
20240 case "$DOXYGEN_PAPER_SIZE" in
20243 DOXYGEN_PAPER_SIZE="letter"
20244 ;; #(
20245 a4wide|a4|letter|legal|executive)
20246 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
20248 ;; #(
20250 as_fn_error "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
20251 DOXYGEN_PAPER_SIZE="letter"
20253 esac
20254 DX_ENV="$DX_ENV PAPER_SIZE='"$DOXYGEN_PAPER_SIZE"'"
20258 if test -n "$DOXYGEN_HTML_LOGO"; then
20259 if ! test -f "$DOXYGEN_HTML_LOGO"; then
20260 as_fn_error "not a file: \"$DOXYGEN_HTML_LOGO\"" "$LINENO" 5
20265 if test -n "$DOXYGEN_LOGO"; then
20266 if ! test -f "$DOXYGEN_LOGO"; then
20267 as_fn_error "not a file: \"$DOXYGEN_LOGO\"" "$LINENO" 5
20272 if test -z "$DOXYGEN_TITLE"; then
20273 DOXYGEN_TITLE="${PACKAGE_NAME}"
20277 if test -z "$DOXYGEN_AUTHOR"; then
20278 DOXYGEN_AUTHOR="Generated by doxygen ${DOXYGEN_VERSION}"
20282 if test -z "$DOXYGEN_DATETIME"; then
20283 DOXYGEN_DATETIME=`date +'%D %T'`
20287 if test -z "$DOXYGEN_DATE"; then
20288 DOXYGEN_DATE=`date +%D`
20291 #For debugging:
20292 #echo DX_FLAG_doc=$DX_FLAG_doc
20293 #echo DX_FLAG_dot=$DX_FLAG_dot
20294 #echo DX_FLAG_man=$DX_FLAG_man
20295 #echo DX_FLAG_html=$DX_FLAG_html
20296 #echo DX_FLAG_chm=$DX_FLAG_chm
20297 #echo DX_FLAG_chi=$DX_FLAG_chi
20298 #echo DX_FLAG_rtf=$DX_FLAG_rtf
20299 #echo DX_FLAG_xml=$DX_FLAG_xml
20300 #echo DX_FLAG_pdf=$DX_FLAG_pdf
20301 #echo DX_FLAG_ps=$DX_FLAG_ps
20302 #echo DX_ENV=$DX_ENV
20304 ac_config_files="$ac_config_files header.tex doxygen.sty"
20306 ac_config_files="$ac_config_files doxygen.cfg:portals4/doxygen.cfg.in"
20309 fi #### End: Portals4 runtime configuration
20311 # Get target configury.
20312 . ${srcdir}/configure.tgt
20314 # configure.tgt sets these substitution variables.
20315 # It also sets 'upc_crtstuff=yes' if upc-crtstuff needs
20316 # to be compiled.
20330 if test "$upc_runtime_model" = "smp"; then
20331 LIBGUPC_SMP_RUNTIME_TRUE=
20332 LIBGUPC_SMP_RUNTIME_FALSE='#'
20333 else
20334 LIBGUPC_SMP_RUNTIME_TRUE='#'
20335 LIBGUPC_SMP_RUNTIME_FALSE=
20338 if test "$upc_runtime_model" = "portals4"; then
20339 LIBGUPC_PORTALS4_RUNTIME_TRUE=
20340 LIBGUPC_PORTALS4_RUNTIME_FALSE='#'
20341 else
20342 LIBGUPC_PORTALS4_RUNTIME_TRUE='#'
20343 LIBGUPC_PORTALS4_RUNTIME_FALSE=
20346 if test "$enable_upc_runtime_debug" = "yes"; then
20347 LIBGUPC_RUNTIME_DEBUG_TRUE=
20348 LIBGUPC_RUNTIME_DEBUG_FALSE='#'
20349 else
20350 LIBGUPC_RUNTIME_DEBUG_TRUE='#'
20351 LIBGUPC_RUNTIME_DEBUG_FALSE=
20355 if test "$upc_crtstuff" = "yes"; then
20356 LIBGUPC_CRTSTUFF_TRUE=
20357 LIBGUPC_CRTSTUFF_FALSE='#'
20358 else
20359 LIBGUPC_CRTSTUFF_TRUE='#'
20360 LIBGUPC_CRTSTUFF_FALSE=
20363 if test "$enable_upc_link_script" = "yes"; then
20364 LIBGUPC_LINK_SCRIPT_TRUE=
20365 LIBGUPC_LINK_SCRIPT_FALSE='#'
20366 else
20367 LIBGUPC_LINK_SCRIPT_TRUE='#'
20368 LIBGUPC_LINK_SCRIPT_FALSE=
20371 if test "$use_generic_collectives" = "yes"; then
20372 LIBGUPC_GENERIC_COLLECTIVES_TRUE=
20373 LIBGUPC_GENERIC_COLLECTIVES_FALSE='#'
20374 else
20375 LIBGUPC_GENERIC_COLLECTIVES_TRUE='#'
20376 LIBGUPC_GENERIC_COLLECTIVES_FALSE=
20380 if test "$targ_runtime_pthreads" = "yes"; then
20381 LIBGUPC_PTHREADS_TRUE=
20382 LIBGUPC_PTHREADS_FALSE='#'
20383 else
20384 LIBGUPC_PTHREADS_TRUE='#'
20385 LIBGUPC_PTHREADS_FALSE=
20388 if test "$upc_affinity" = "yes"; then
20389 LIBGUPC_AFFINITY_TRUE=
20390 LIBGUPC_AFFINITY_FALSE='#'
20391 else
20392 LIBGUPC_AFFINITY_TRUE='#'
20393 LIBGUPC_AFFINITY_FALSE=
20396 if test "$upc_numa" = "yes"; then
20397 LIBGUPC_NUMA_TRUE=
20398 LIBGUPC_NUMA_FALSE='#'
20399 else
20400 LIBGUPC_NUMA_TRUE='#'
20401 LIBGUPC_NUMA_FALSE=
20404 if test "$upc_gum_debug" = "yes"; then
20405 LIBGUPC_GUM_TRUE=
20406 LIBGUPC_GUM_FALSE='#'
20407 else
20408 LIBGUPC_GUM_TRUE='#'
20409 LIBGUPC_GUM_FALSE=
20412 if test "$enable_upc_backtrace" = "yes"; then
20413 LIBGUPC_BACKTRACE_TRUE=
20414 LIBGUPC_BACKTRACE_FALSE='#'
20415 else
20416 LIBGUPC_BACKTRACE_TRUE='#'
20417 LIBGUPC_BACKTRACE_FALSE=
20420 if test "$have_bfd" = "yes"; then
20421 LIBGUPC_BACKTRACE_SUP_TRUE=
20422 LIBGUPC_BACKTRACE_SUP_FALSE='#'
20423 else
20424 LIBGUPC_BACKTRACE_SUP_TRUE='#'
20425 LIBGUPC_BACKTRACE_SUP_FALSE=
20428 if test "$upc_node_local" = "posix"; then
20429 LIBGUPC_NODE_LOCAL_MEM_POSIX_TRUE=
20430 LIBGUPC_NODE_LOCAL_MEM_POSIX_FALSE='#'
20431 else
20432 LIBGUPC_NODE_LOCAL_MEM_POSIX_TRUE='#'
20433 LIBGUPC_NODE_LOCAL_MEM_POSIX_FALSE=
20436 if test "$upc_node_local" = "mmap"; then
20437 LIBGUPC_NODE_LOCAL_MEM_MMAP_TRUE=
20438 LIBGUPC_NODE_LOCAL_MEM_MMAP_FALSE='#'
20439 else
20440 LIBGUPC_NODE_LOCAL_MEM_MMAP_TRUE='#'
20441 LIBGUPC_NODE_LOCAL_MEM_MMAP_FALSE=
20450 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
20452 ac_config_files="$ac_config_files upc-crtbegin.spec libgupc.spec upc-crtend.spec"
20454 cat >confcache <<\_ACEOF
20455 # This file is a shell script that caches the results of configure
20456 # tests run on this system so they can be shared between configure
20457 # scripts and configure runs, see configure's option --config-cache.
20458 # It is not useful on other systems. If it contains results you don't
20459 # want to keep, you may remove or edit it.
20461 # config.status only pays attention to the cache file if you give it
20462 # the --recheck option to rerun configure.
20464 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20465 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20466 # following values.
20468 _ACEOF
20470 # The following way of writing the cache mishandles newlines in values,
20471 # but we know of no workaround that is simple, portable, and efficient.
20472 # So, we kill variables containing newlines.
20473 # Ultrix sh set writes to stderr and can't be redirected directly,
20474 # and sets the high bit in the cache file unless we assign to the vars.
20476 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20477 eval ac_val=\$$ac_var
20478 case $ac_val in #(
20479 *${as_nl}*)
20480 case $ac_var in #(
20481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20483 esac
20484 case $ac_var in #(
20485 _ | IFS | as_nl) ;; #(
20486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20487 *) { eval $ac_var=; unset $ac_var;} ;;
20488 esac ;;
20489 esac
20490 done
20492 (set) 2>&1 |
20493 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20494 *${as_nl}ac_space=\ *)
20495 # `set' does not quote correctly, so add quotes: double-quote
20496 # substitution turns \\\\ into \\, and sed turns \\ into \.
20497 sed -n \
20498 "s/'/'\\\\''/g;
20499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20500 ;; #(
20502 # `set' quotes correctly as required by POSIX, so do not add quotes.
20503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20505 esac |
20506 sort
20508 sed '
20509 /^ac_cv_env_/b end
20510 t clear
20511 :clear
20512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20513 t end
20514 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20515 :end' >>confcache
20516 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20517 if test -w "$cache_file"; then
20518 test "x$cache_file" != "x/dev/null" &&
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20520 $as_echo "$as_me: updating cache $cache_file" >&6;}
20521 cat confcache >$cache_file
20522 else
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20524 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20527 rm -f confcache
20529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20530 # Let make expand exec_prefix.
20531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20533 DEFS=-DHAVE_CONFIG_H
20535 ac_libobjs=
20536 ac_ltlibobjs=
20537 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20538 # 1. Remove the extension, and $U if already installed.
20539 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20540 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20541 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20542 # will be set to the directory where LIBOBJS objects are built.
20543 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20544 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20545 done
20546 LIBOBJS=$ac_libobjs
20548 LTLIBOBJS=$ac_ltlibobjs
20551 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
20552 as_fn_error "conditional \"GENINSRC\" was never defined.
20553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20555 if test -n "$EXEEXT"; then
20556 am__EXEEXT_TRUE=
20557 am__EXEEXT_FALSE='#'
20558 else
20559 am__EXEEXT_TRUE='#'
20560 am__EXEEXT_FALSE=
20563 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20564 as_fn_error "conditional \"AMDEP\" was never defined.
20565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20567 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20568 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20571 if test -z "${am__fastdepUPC_TRUE}" && test -z "${am__fastdepUPC_FALSE}"; then
20572 as_fn_error "conditional \"am__fastdepUPC\" was never defined.
20573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20575 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
20576 as_fn_error "conditional \"BUILD_INFO\" was never defined.
20577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20579 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20580 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
20581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20583 if test -z "${LIBGUPC_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGUPC_BUILD_VERSIONED_SHLIB_FALSE}"; then
20584 as_fn_error "conditional \"LIBGUPC_BUILD_VERSIONED_SHLIB\" was never defined.
20585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20587 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
20588 as_fn_error "conditional \"DX_COND_doc\" was never defined.
20589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20591 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
20592 as_fn_error "conditional \"DX_COND_doc\" was never defined.
20593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20595 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
20596 as_fn_error "conditional \"DX_COND_dot\" was never defined.
20597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20599 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
20600 as_fn_error "conditional \"DX_COND_dot\" was never defined.
20601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20603 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
20604 as_fn_error "conditional \"DX_COND_man\" was never defined.
20605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20607 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
20608 as_fn_error "conditional \"DX_COND_man\" was never defined.
20609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20611 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
20612 as_fn_error "conditional \"DX_COND_rtf\" was never defined.
20613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20615 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
20616 as_fn_error "conditional \"DX_COND_rtf\" was never defined.
20617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20619 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
20620 as_fn_error "conditional \"DX_COND_xml\" was never defined.
20621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20623 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
20624 as_fn_error "conditional \"DX_COND_xml\" was never defined.
20625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20627 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
20628 as_fn_error "conditional \"DX_COND_chm\" was never defined.
20629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20631 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
20632 as_fn_error "conditional \"DX_COND_chm\" was never defined.
20633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20635 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
20636 as_fn_error "conditional \"DX_COND_chi\" was never defined.
20637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20639 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
20640 as_fn_error "conditional \"DX_COND_chi\" was never defined.
20641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20643 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
20644 as_fn_error "conditional \"DX_COND_html\" was never defined.
20645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20647 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
20648 as_fn_error "conditional \"DX_COND_html\" was never defined.
20649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20651 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
20652 as_fn_error "conditional \"DX_COND_ps\" was never defined.
20653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20655 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
20656 as_fn_error "conditional \"DX_COND_ps\" was never defined.
20657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20659 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
20660 as_fn_error "conditional \"DX_COND_pdf\" was never defined.
20661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20663 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
20664 as_fn_error "conditional \"DX_COND_pdf\" was never defined.
20665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20667 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
20668 as_fn_error "conditional \"DX_COND_latex\" was never defined.
20669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20671 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
20672 as_fn_error "conditional \"DX_COND_latex\" was never defined.
20673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20675 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
20676 as_fn_error "conditional \"DX_COND_doc\" was never defined.
20677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20679 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
20680 as_fn_error "conditional \"DX_COND_doc\" was never defined.
20681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20683 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
20684 as_fn_error "conditional \"DX_COND_dot\" was never defined.
20685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20687 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
20688 as_fn_error "conditional \"DX_COND_dot\" was never defined.
20689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20691 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
20692 as_fn_error "conditional \"DX_COND_man\" was never defined.
20693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20695 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
20696 as_fn_error "conditional \"DX_COND_man\" was never defined.
20697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20699 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
20700 as_fn_error "conditional \"DX_COND_rtf\" was never defined.
20701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20703 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
20704 as_fn_error "conditional \"DX_COND_rtf\" was never defined.
20705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20707 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
20708 as_fn_error "conditional \"DX_COND_xml\" was never defined.
20709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20711 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
20712 as_fn_error "conditional \"DX_COND_xml\" was never defined.
20713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20715 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
20716 as_fn_error "conditional \"DX_COND_chm\" was never defined.
20717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20719 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
20720 as_fn_error "conditional \"DX_COND_chm\" was never defined.
20721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20723 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
20724 as_fn_error "conditional \"DX_COND_chi\" was never defined.
20725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20727 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
20728 as_fn_error "conditional \"DX_COND_chi\" was never defined.
20729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20731 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
20732 as_fn_error "conditional \"DX_COND_html\" was never defined.
20733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20735 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
20736 as_fn_error "conditional \"DX_COND_html\" was never defined.
20737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20739 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
20740 as_fn_error "conditional \"DX_COND_ps\" was never defined.
20741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20743 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
20744 as_fn_error "conditional \"DX_COND_ps\" was never defined.
20745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20747 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
20748 as_fn_error "conditional \"DX_COND_pdf\" was never defined.
20749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20751 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
20752 as_fn_error "conditional \"DX_COND_pdf\" was never defined.
20753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20755 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
20756 as_fn_error "conditional \"DX_COND_latex\" was never defined.
20757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20759 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
20760 as_fn_error "conditional \"DX_COND_latex\" was never defined.
20761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20763 if test -z "${LIBGUPC_SMP_RUNTIME_TRUE}" && test -z "${LIBGUPC_SMP_RUNTIME_FALSE}"; then
20764 as_fn_error "conditional \"LIBGUPC_SMP_RUNTIME\" was never defined.
20765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20767 if test -z "${LIBGUPC_PORTALS4_RUNTIME_TRUE}" && test -z "${LIBGUPC_PORTALS4_RUNTIME_FALSE}"; then
20768 as_fn_error "conditional \"LIBGUPC_PORTALS4_RUNTIME\" was never defined.
20769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20771 if test -z "${LIBGUPC_RUNTIME_DEBUG_TRUE}" && test -z "${LIBGUPC_RUNTIME_DEBUG_FALSE}"; then
20772 as_fn_error "conditional \"LIBGUPC_RUNTIME_DEBUG\" was never defined.
20773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20775 if test -z "${LIBGUPC_CRTSTUFF_TRUE}" && test -z "${LIBGUPC_CRTSTUFF_FALSE}"; then
20776 as_fn_error "conditional \"LIBGUPC_CRTSTUFF\" was never defined.
20777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20779 if test -z "${LIBGUPC_LINK_SCRIPT_TRUE}" && test -z "${LIBGUPC_LINK_SCRIPT_FALSE}"; then
20780 as_fn_error "conditional \"LIBGUPC_LINK_SCRIPT\" was never defined.
20781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20783 if test -z "${LIBGUPC_GENERIC_COLLECTIVES_TRUE}" && test -z "${LIBGUPC_GENERIC_COLLECTIVES_FALSE}"; then
20784 as_fn_error "conditional \"LIBGUPC_GENERIC_COLLECTIVES\" was never defined.
20785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20787 if test -z "${LIBGUPC_PTHREADS_TRUE}" && test -z "${LIBGUPC_PTHREADS_FALSE}"; then
20788 as_fn_error "conditional \"LIBGUPC_PTHREADS\" was never defined.
20789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20791 if test -z "${LIBGUPC_AFFINITY_TRUE}" && test -z "${LIBGUPC_AFFINITY_FALSE}"; then
20792 as_fn_error "conditional \"LIBGUPC_AFFINITY\" was never defined.
20793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20795 if test -z "${LIBGUPC_NUMA_TRUE}" && test -z "${LIBGUPC_NUMA_FALSE}"; then
20796 as_fn_error "conditional \"LIBGUPC_NUMA\" was never defined.
20797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20799 if test -z "${LIBGUPC_GUM_TRUE}" && test -z "${LIBGUPC_GUM_FALSE}"; then
20800 as_fn_error "conditional \"LIBGUPC_GUM\" was never defined.
20801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20803 if test -z "${LIBGUPC_BACKTRACE_TRUE}" && test -z "${LIBGUPC_BACKTRACE_FALSE}"; then
20804 as_fn_error "conditional \"LIBGUPC_BACKTRACE\" was never defined.
20805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20807 if test -z "${LIBGUPC_BACKTRACE_SUP_TRUE}" && test -z "${LIBGUPC_BACKTRACE_SUP_FALSE}"; then
20808 as_fn_error "conditional \"LIBGUPC_BACKTRACE_SUP\" was never defined.
20809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20811 if test -z "${LIBGUPC_NODE_LOCAL_MEM_POSIX_TRUE}" && test -z "${LIBGUPC_NODE_LOCAL_MEM_POSIX_FALSE}"; then
20812 as_fn_error "conditional \"LIBGUPC_NODE_LOCAL_MEM_POSIX\" was never defined.
20813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20815 if test -z "${LIBGUPC_NODE_LOCAL_MEM_MMAP_TRUE}" && test -z "${LIBGUPC_NODE_LOCAL_MEM_MMAP_FALSE}"; then
20816 as_fn_error "conditional \"LIBGUPC_NODE_LOCAL_MEM_MMAP\" was never defined.
20817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20820 : ${CONFIG_STATUS=./config.status}
20821 ac_write_fail=0
20822 ac_clean_files_save=$ac_clean_files
20823 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20825 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20826 as_write_fail=0
20827 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20828 #! $SHELL
20829 # Generated by $as_me.
20830 # Run this file to recreate the current configuration.
20831 # Compiler output produced by configure, useful for debugging
20832 # configure, is in config.log if it exists.
20834 debug=false
20835 ac_cs_recheck=false
20836 ac_cs_silent=false
20838 SHELL=\${CONFIG_SHELL-$SHELL}
20839 export SHELL
20840 _ASEOF
20841 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20842 ## -------------------- ##
20843 ## M4sh Initialization. ##
20844 ## -------------------- ##
20846 # Be more Bourne compatible
20847 DUALCASE=1; export DUALCASE # for MKS sh
20848 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20849 emulate sh
20850 NULLCMD=:
20851 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20852 # is contrary to our usage. Disable this feature.
20853 alias -g '${1+"$@"}'='"$@"'
20854 setopt NO_GLOB_SUBST
20855 else
20856 case `(set -o) 2>/dev/null` in #(
20857 *posix*) :
20858 set -o posix ;; #(
20859 *) :
20861 esac
20865 as_nl='
20867 export as_nl
20868 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20869 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20872 # Prefer a ksh shell builtin over an external printf program on Solaris,
20873 # but without wasting forks for bash or zsh.
20874 if test -z "$BASH_VERSION$ZSH_VERSION" \
20875 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20876 as_echo='print -r --'
20877 as_echo_n='print -rn --'
20878 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20879 as_echo='printf %s\n'
20880 as_echo_n='printf %s'
20881 else
20882 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20883 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20884 as_echo_n='/usr/ucb/echo -n'
20885 else
20886 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20887 as_echo_n_body='eval
20888 arg=$1;
20889 case $arg in #(
20890 *"$as_nl"*)
20891 expr "X$arg" : "X\\(.*\\)$as_nl";
20892 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20893 esac;
20894 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20896 export as_echo_n_body
20897 as_echo_n='sh -c $as_echo_n_body as_echo'
20899 export as_echo_body
20900 as_echo='sh -c $as_echo_body as_echo'
20903 # The user is always right.
20904 if test "${PATH_SEPARATOR+set}" != set; then
20905 PATH_SEPARATOR=:
20906 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20907 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20908 PATH_SEPARATOR=';'
20913 # IFS
20914 # We need space, tab and new line, in precisely that order. Quoting is
20915 # there to prevent editors from complaining about space-tab.
20916 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20917 # splitting by setting IFS to empty value.)
20918 IFS=" "" $as_nl"
20920 # Find who we are. Look in the path if we contain no directory separator.
20921 case $0 in #((
20922 *[\\/]* ) as_myself=$0 ;;
20923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20924 for as_dir in $PATH
20926 IFS=$as_save_IFS
20927 test -z "$as_dir" && as_dir=.
20928 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20929 done
20930 IFS=$as_save_IFS
20933 esac
20934 # We did not find ourselves, most probably we were run as `sh COMMAND'
20935 # in which case we are not to be found in the path.
20936 if test "x$as_myself" = x; then
20937 as_myself=$0
20939 if test ! -f "$as_myself"; then
20940 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20941 exit 1
20944 # Unset variables that we do not need and which cause bugs (e.g. in
20945 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20946 # suppresses any "Segmentation fault" message there. '((' could
20947 # trigger a bug in pdksh 5.2.14.
20948 for as_var in BASH_ENV ENV MAIL MAILPATH
20949 do eval test x\${$as_var+set} = xset \
20950 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20951 done
20952 PS1='$ '
20953 PS2='> '
20954 PS4='+ '
20956 # NLS nuisances.
20957 LC_ALL=C
20958 export LC_ALL
20959 LANGUAGE=C
20960 export LANGUAGE
20962 # CDPATH.
20963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20966 # as_fn_error ERROR [LINENO LOG_FD]
20967 # ---------------------------------
20968 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20969 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20970 # script with status $?, using 1 if that was 0.
20971 as_fn_error ()
20973 as_status=$?; test $as_status -eq 0 && as_status=1
20974 if test "$3"; then
20975 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20976 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20978 $as_echo "$as_me: error: $1" >&2
20979 as_fn_exit $as_status
20980 } # as_fn_error
20983 # as_fn_set_status STATUS
20984 # -----------------------
20985 # Set $? to STATUS, without forking.
20986 as_fn_set_status ()
20988 return $1
20989 } # as_fn_set_status
20991 # as_fn_exit STATUS
20992 # -----------------
20993 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20994 as_fn_exit ()
20996 set +e
20997 as_fn_set_status $1
20998 exit $1
20999 } # as_fn_exit
21001 # as_fn_unset VAR
21002 # ---------------
21003 # Portably unset VAR.
21004 as_fn_unset ()
21006 { eval $1=; unset $1;}
21008 as_unset=as_fn_unset
21009 # as_fn_append VAR VALUE
21010 # ----------------------
21011 # Append the text in VALUE to the end of the definition contained in VAR. Take
21012 # advantage of any shell optimizations that allow amortized linear growth over
21013 # repeated appends, instead of the typical quadratic growth present in naive
21014 # implementations.
21015 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21016 eval 'as_fn_append ()
21018 eval $1+=\$2
21020 else
21021 as_fn_append ()
21023 eval $1=\$$1\$2
21025 fi # as_fn_append
21027 # as_fn_arith ARG...
21028 # ------------------
21029 # Perform arithmetic evaluation on the ARGs, and store the result in the
21030 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21031 # must be portable across $(()) and expr.
21032 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21033 eval 'as_fn_arith ()
21035 as_val=$(( $* ))
21037 else
21038 as_fn_arith ()
21040 as_val=`expr "$@" || test $? -eq 1`
21042 fi # as_fn_arith
21045 if expr a : '\(a\)' >/dev/null 2>&1 &&
21046 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21047 as_expr=expr
21048 else
21049 as_expr=false
21052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21053 as_basename=basename
21054 else
21055 as_basename=false
21058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21059 as_dirname=dirname
21060 else
21061 as_dirname=false
21064 as_me=`$as_basename -- "$0" ||
21065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21066 X"$0" : 'X\(//\)$' \| \
21067 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21068 $as_echo X/"$0" |
21069 sed '/^.*\/\([^/][^/]*\)\/*$/{
21070 s//\1/
21073 /^X\/\(\/\/\)$/{
21074 s//\1/
21077 /^X\/\(\/\).*/{
21078 s//\1/
21081 s/.*/./; q'`
21083 # Avoid depending upon Character Ranges.
21084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21087 as_cr_digits='0123456789'
21088 as_cr_alnum=$as_cr_Letters$as_cr_digits
21090 ECHO_C= ECHO_N= ECHO_T=
21091 case `echo -n x` in #(((((
21092 -n*)
21093 case `echo 'xy\c'` in
21094 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21095 xy) ECHO_C='\c';;
21096 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21097 ECHO_T=' ';;
21098 esac;;
21100 ECHO_N='-n';;
21101 esac
21103 rm -f conf$$ conf$$.exe conf$$.file
21104 if test -d conf$$.dir; then
21105 rm -f conf$$.dir/conf$$.file
21106 else
21107 rm -f conf$$.dir
21108 mkdir conf$$.dir 2>/dev/null
21110 if (echo >conf$$.file) 2>/dev/null; then
21111 if ln -s conf$$.file conf$$ 2>/dev/null; then
21112 as_ln_s='ln -s'
21113 # ... but there are two gotchas:
21114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21116 # In both cases, we have to default to `cp -p'.
21117 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21118 as_ln_s='cp -p'
21119 elif ln conf$$.file conf$$ 2>/dev/null; then
21120 as_ln_s=ln
21121 else
21122 as_ln_s='cp -p'
21124 else
21125 as_ln_s='cp -p'
21127 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21128 rmdir conf$$.dir 2>/dev/null
21131 # as_fn_mkdir_p
21132 # -------------
21133 # Create "$as_dir" as a directory, including parents if necessary.
21134 as_fn_mkdir_p ()
21137 case $as_dir in #(
21138 -*) as_dir=./$as_dir;;
21139 esac
21140 test -d "$as_dir" || eval $as_mkdir_p || {
21141 as_dirs=
21142 while :; do
21143 case $as_dir in #(
21144 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21145 *) as_qdir=$as_dir;;
21146 esac
21147 as_dirs="'$as_qdir' $as_dirs"
21148 as_dir=`$as_dirname -- "$as_dir" ||
21149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21150 X"$as_dir" : 'X\(//\)[^/]' \| \
21151 X"$as_dir" : 'X\(//\)$' \| \
21152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21153 $as_echo X"$as_dir" |
21154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21155 s//\1/
21158 /^X\(\/\/\)[^/].*/{
21159 s//\1/
21162 /^X\(\/\/\)$/{
21163 s//\1/
21166 /^X\(\/\).*/{
21167 s//\1/
21170 s/.*/./; q'`
21171 test -d "$as_dir" && break
21172 done
21173 test -z "$as_dirs" || eval "mkdir $as_dirs"
21174 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21177 } # as_fn_mkdir_p
21178 if mkdir -p . 2>/dev/null; then
21179 as_mkdir_p='mkdir -p "$as_dir"'
21180 else
21181 test -d ./-p && rmdir ./-p
21182 as_mkdir_p=false
21185 if test -x / >/dev/null 2>&1; then
21186 as_test_x='test -x'
21187 else
21188 if ls -dL / >/dev/null 2>&1; then
21189 as_ls_L_option=L
21190 else
21191 as_ls_L_option=
21193 as_test_x='
21194 eval sh -c '\''
21195 if test -d "$1"; then
21196 test -d "$1/.";
21197 else
21198 case $1 in #(
21199 -*)set "./$1";;
21200 esac;
21201 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21202 ???[sx]*):;;*)false;;esac;fi
21203 '\'' sh
21206 as_executable_p=$as_test_x
21208 # Sed expression to map a string onto a valid CPP name.
21209 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21211 # Sed expression to map a string onto a valid variable name.
21212 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21215 exec 6>&1
21216 ## ----------------------------------- ##
21217 ## Main body of $CONFIG_STATUS script. ##
21218 ## ----------------------------------- ##
21219 _ASEOF
21220 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21223 # Save the log message, to keep $0 and so on meaningful, and to
21224 # report actual input values of CONFIG_FILES etc. instead of their
21225 # values after options handling.
21226 ac_log="
21227 This file was extended by GNU UPC Runtime Library $as_me 1.0, which was
21228 generated by GNU Autoconf 2.64. Invocation command line was
21230 CONFIG_FILES = $CONFIG_FILES
21231 CONFIG_HEADERS = $CONFIG_HEADERS
21232 CONFIG_LINKS = $CONFIG_LINKS
21233 CONFIG_COMMANDS = $CONFIG_COMMANDS
21234 $ $0 $@
21236 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21239 _ACEOF
21241 case $ac_config_files in *"
21242 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21243 esac
21245 case $ac_config_headers in *"
21246 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21247 esac
21250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21251 # Files that config.status was made for.
21252 config_files="$ac_config_files"
21253 config_headers="$ac_config_headers"
21254 config_commands="$ac_config_commands"
21256 _ACEOF
21258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21259 ac_cs_usage="\
21260 \`$as_me' instantiates files and other configuration actions
21261 from templates according to the current configuration. Unless the files
21262 and actions are specified as TAGs, all are instantiated by default.
21264 Usage: $0 [OPTION]... [TAG]...
21266 -h, --help print this help, then exit
21267 -V, --version print version number and configuration settings, then exit
21268 -q, --quiet, --silent
21269 do not print progress messages
21270 -d, --debug don't remove temporary files
21271 --recheck update $as_me by reconfiguring in the same conditions
21272 --file=FILE[:TEMPLATE]
21273 instantiate the configuration file FILE
21274 --header=FILE[:TEMPLATE]
21275 instantiate the configuration header FILE
21277 Configuration files:
21278 $config_files
21280 Configuration headers:
21281 $config_headers
21283 Configuration commands:
21284 $config_commands
21286 Report bugs to the package provider.
21287 GNU UPC Runtime Library home page: <http://www.gnu.org/software/libgupc/>.
21288 General help using GNU software: <http://www.gnu.org/gethelp/>."
21290 _ACEOF
21291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21292 ac_cs_version="\\
21293 GNU UPC Runtime Library config.status 1.0
21294 configured by $0, generated by GNU Autoconf 2.64,
21295 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21297 Copyright (C) 2009 Free Software Foundation, Inc.
21298 This config.status script is free software; the Free Software Foundation
21299 gives unlimited permission to copy, distribute and modify it."
21301 ac_pwd='$ac_pwd'
21302 srcdir='$srcdir'
21303 INSTALL='$INSTALL'
21304 MKDIR_P='$MKDIR_P'
21305 AWK='$AWK'
21306 test -n "\$AWK" || AWK=awk
21307 _ACEOF
21309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21310 # The default lists apply if the user does not specify any file.
21311 ac_need_defaults=:
21312 while test $# != 0
21314 case $1 in
21315 --*=*)
21316 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21317 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21318 ac_shift=:
21321 ac_option=$1
21322 ac_optarg=$2
21323 ac_shift=shift
21325 esac
21327 case $ac_option in
21328 # Handling of the options.
21329 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21330 ac_cs_recheck=: ;;
21331 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21332 $as_echo "$ac_cs_version"; exit ;;
21333 --debug | --debu | --deb | --de | --d | -d )
21334 debug=: ;;
21335 --file | --fil | --fi | --f )
21336 $ac_shift
21337 case $ac_optarg in
21338 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21339 esac
21340 as_fn_append CONFIG_FILES " '$ac_optarg'"
21341 ac_need_defaults=false;;
21342 --header | --heade | --head | --hea )
21343 $ac_shift
21344 case $ac_optarg in
21345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21346 esac
21347 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21348 ac_need_defaults=false;;
21349 --he | --h)
21350 # Conflict between --help and --header
21351 as_fn_error "ambiguous option: \`$1'
21352 Try \`$0 --help' for more information.";;
21353 --help | --hel | -h )
21354 $as_echo "$ac_cs_usage"; exit ;;
21355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21357 ac_cs_silent=: ;;
21359 # This is an error.
21360 -*) as_fn_error "unrecognized option: \`$1'
21361 Try \`$0 --help' for more information." ;;
21363 *) as_fn_append ac_config_targets " $1"
21364 ac_need_defaults=false ;;
21366 esac
21367 shift
21368 done
21370 ac_configure_extra_args=
21372 if $ac_cs_silent; then
21373 exec 6>/dev/null
21374 ac_configure_extra_args="$ac_configure_extra_args --silent"
21377 _ACEOF
21378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21379 if \$ac_cs_recheck; then
21380 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21381 shift
21382 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21383 CONFIG_SHELL='$SHELL'
21384 export CONFIG_SHELL
21385 exec "\$@"
21388 _ACEOF
21389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21390 exec 5>>config.log
21392 echo
21393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21394 ## Running $as_me. ##
21395 _ASBOX
21396 $as_echo "$ac_log"
21397 } >&5
21399 _ACEOF
21400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21402 # INIT-COMMANDS
21405 srcdir="$srcdir"
21406 host="$host"
21407 target="$target"
21408 with_multisubdir="$with_multisubdir"
21409 with_multisrctop="$with_multisrctop"
21410 with_target_subdir="$with_target_subdir"
21411 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21412 multi_basedir="$multi_basedir"
21413 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21414 CC="$CC"
21415 CXX="$CXX"
21416 GFORTRAN="$GFORTRAN"
21417 GCJ="$GCJ"
21418 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21421 # The HP-UX ksh and POSIX shell print the target directory to stdout
21422 # if CDPATH is set.
21423 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21425 sed_quote_subst='$sed_quote_subst'
21426 double_quote_subst='$double_quote_subst'
21427 delay_variable_subst='$delay_variable_subst'
21428 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21429 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21430 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21431 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21432 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21433 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21434 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21435 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21436 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21437 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21438 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21439 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21440 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21441 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21442 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21443 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21444 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21445 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21446 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21447 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21448 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21449 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21450 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21451 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21452 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21453 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21454 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21455 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21456 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21457 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21458 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21459 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21460 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21461 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21462 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21463 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21464 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21465 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21466 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21467 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21468 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21469 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21470 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21471 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21472 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21473 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21474 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21475 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21476 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"`'
21477 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21478 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21479 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21480 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21481 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21482 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21483 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21484 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21485 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21486 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21487 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21488 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21489 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21490 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21491 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21492 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21493 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21494 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21495 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21496 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21497 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21498 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21499 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21500 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21501 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21502 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21503 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21504 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21505 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21506 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21507 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21508 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21509 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21510 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21511 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21512 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21513 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21514 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21515 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21516 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21517 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
21518 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21519 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21520 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21521 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21522 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21523 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21524 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21525 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21526 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21527 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21528 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21529 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21530 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21531 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21532 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21533 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21534 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21535 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21536 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21537 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21538 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21539 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21540 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21541 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21542 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21543 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21544 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21545 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21546 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21547 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21549 LTCC='$LTCC'
21550 LTCFLAGS='$LTCFLAGS'
21551 compiler='$compiler_DEFAULT'
21553 # A function that is used when there is no print builtin or printf.
21554 func_fallback_echo ()
21556 eval 'cat <<_LTECHO_EOF
21558 _LTECHO_EOF'
21561 # Quote evaled strings.
21562 for var in SHELL \
21563 ECHO \
21564 SED \
21565 GREP \
21566 EGREP \
21567 FGREP \
21568 LD \
21569 NM \
21570 LN_S \
21571 lt_SP2NL \
21572 lt_NL2SP \
21573 reload_flag \
21574 OBJDUMP \
21575 deplibs_check_method \
21576 file_magic_cmd \
21577 AR \
21578 AR_FLAGS \
21579 STRIP \
21580 RANLIB \
21581 CC \
21582 CFLAGS \
21583 compiler \
21584 lt_cv_sys_global_symbol_pipe \
21585 lt_cv_sys_global_symbol_to_cdecl \
21586 lt_cv_sys_global_symbol_to_c_name_address \
21587 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21588 lt_prog_compiler_no_builtin_flag \
21589 lt_prog_compiler_wl \
21590 lt_prog_compiler_pic \
21591 lt_prog_compiler_static \
21592 lt_cv_prog_compiler_c_o \
21593 need_locks \
21594 DSYMUTIL \
21595 NMEDIT \
21596 LIPO \
21597 OTOOL \
21598 OTOOL64 \
21599 shrext_cmds \
21600 export_dynamic_flag_spec \
21601 whole_archive_flag_spec \
21602 compiler_needs_object \
21603 with_gnu_ld \
21604 allow_undefined_flag \
21605 no_undefined_flag \
21606 hardcode_libdir_flag_spec \
21607 hardcode_libdir_flag_spec_ld \
21608 hardcode_libdir_separator \
21609 fix_srcfile_path \
21610 exclude_expsyms \
21611 include_expsyms \
21612 file_list_spec \
21613 variables_saved_for_relink \
21614 libname_spec \
21615 library_names_spec \
21616 soname_spec \
21617 install_override_mode \
21618 finish_eval \
21619 old_striplib \
21620 striplib; do
21621 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21622 *[\\\\\\\`\\"\\\$]*)
21623 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21626 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21628 esac
21629 done
21631 # Double-quote double-evaled strings.
21632 for var in reload_cmds \
21633 old_postinstall_cmds \
21634 old_postuninstall_cmds \
21635 old_archive_cmds \
21636 extract_expsyms_cmds \
21637 old_archive_from_new_cmds \
21638 old_archive_from_expsyms_cmds \
21639 archive_cmds \
21640 archive_expsym_cmds \
21641 module_cmds \
21642 module_expsym_cmds \
21643 export_symbols_cmds \
21644 prelink_cmds \
21645 postinstall_cmds \
21646 postuninstall_cmds \
21647 finish_cmds \
21648 sys_lib_search_path_spec \
21649 sys_lib_dlsearch_path_spec; do
21650 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21651 *[\\\\\\\`\\"\\\$]*)
21652 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21655 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21657 esac
21658 done
21660 ac_aux_dir='$ac_aux_dir'
21661 xsi_shell='$xsi_shell'
21662 lt_shell_append='$lt_shell_append'
21664 # See if we are running on zsh, and set the options which allow our
21665 # commands through without removal of \ escapes INIT.
21666 if test -n "\${ZSH_VERSION+set}" ; then
21667 setopt NO_GLOB_SUBST
21671 PACKAGE='$PACKAGE'
21672 VERSION='$VERSION'
21673 TIMESTAMP='$TIMESTAMP'
21674 RM='$RM'
21675 ofile='$ofile'
21680 GCC="$GCC"
21681 CC="$CC"
21682 acx_cv_header_stdint="$acx_cv_header_stdint"
21683 acx_cv_type_int8_t="$acx_cv_type_int8_t"
21684 acx_cv_type_int16_t="$acx_cv_type_int16_t"
21685 acx_cv_type_int32_t="$acx_cv_type_int32_t"
21686 acx_cv_type_int64_t="$acx_cv_type_int64_t"
21687 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21688 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21689 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21690 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21691 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21692 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21693 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21694 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21695 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21698 _ACEOF
21700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21702 # Handling of arguments.
21703 for ac_config_target in $ac_config_targets
21705 case $ac_config_target in
21706 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21707 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21708 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21709 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21710 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
21711 "header.tex") CONFIG_FILES="$CONFIG_FILES header.tex" ;;
21712 "doxygen.sty") CONFIG_FILES="$CONFIG_FILES doxygen.sty" ;;
21713 "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg:portals4/doxygen.cfg.in" ;;
21714 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21715 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
21716 "upc-crtbegin.spec") CONFIG_FILES="$CONFIG_FILES upc-crtbegin.spec" ;;
21717 "libgupc.spec") CONFIG_FILES="$CONFIG_FILES libgupc.spec" ;;
21718 "upc-crtend.spec") CONFIG_FILES="$CONFIG_FILES upc-crtend.spec" ;;
21720 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21721 esac
21722 done
21725 # If the user did not use the arguments to specify the items to instantiate,
21726 # then the envvar interface is used. Set only those that are not.
21727 # We use the long form for the default assignment because of an extremely
21728 # bizarre bug on SunOS 4.1.3.
21729 if $ac_need_defaults; then
21730 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21731 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21732 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21735 # Have a temporary directory for convenience. Make it in the build tree
21736 # simply because there is no reason against having it here, and in addition,
21737 # creating and moving files from /tmp can sometimes cause problems.
21738 # Hook for its removal unless debugging.
21739 # Note that there is a small window in which the directory will not be cleaned:
21740 # after its creation but before its name has been assigned to `$tmp'.
21741 $debug ||
21743 tmp=
21744 trap 'exit_status=$?
21745 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21747 trap 'as_fn_exit 1' 1 2 13 15
21749 # Create a (secure) tmp directory for tmp files.
21752 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21753 test -n "$tmp" && test -d "$tmp"
21754 } ||
21756 tmp=./conf$$-$RANDOM
21757 (umask 077 && mkdir "$tmp")
21758 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21760 # Set up the scripts for CONFIG_FILES section.
21761 # No need to generate them if there are no CONFIG_FILES.
21762 # This happens for instance with `./config.status config.h'.
21763 if test -n "$CONFIG_FILES"; then
21766 ac_cr=`echo X | tr X '\015'`
21767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21768 # But we know of no other shell where ac_cr would be empty at this
21769 # point, so we can use a bashism as a fallback.
21770 if test "x$ac_cr" = x; then
21771 eval ac_cr=\$\'\\r\'
21773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21775 ac_cs_awk_cr='\r'
21776 else
21777 ac_cs_awk_cr=$ac_cr
21780 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21781 _ACEOF
21785 echo "cat >conf$$subs.awk <<_ACEOF" &&
21786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21787 echo "_ACEOF"
21788 } >conf$$subs.sh ||
21789 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21791 ac_delim='%!_!# '
21792 for ac_last_try in false false false false false :; do
21793 . ./conf$$subs.sh ||
21794 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21797 if test $ac_delim_n = $ac_delim_num; then
21798 break
21799 elif $ac_last_try; then
21800 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21801 else
21802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21804 done
21805 rm -f conf$$subs.sh
21807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21808 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21809 _ACEOF
21810 sed -n '
21812 s/^/S["/; s/!.*/"]=/
21815 s/^[^!]*!//
21816 :repl
21817 t repl
21818 s/'"$ac_delim"'$//
21819 t delim
21822 s/\(.\{148\}\).*/\1/
21823 t more1
21824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21827 b repl
21828 :more1
21829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21832 s/.\{148\}//
21833 t nl
21834 :delim
21836 s/\(.\{148\}\).*/\1/
21837 t more2
21838 s/["\\]/\\&/g; s/^/"/; s/$/"/
21841 :more2
21842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21845 s/.\{148\}//
21846 t delim
21847 ' <conf$$subs.awk | sed '
21848 /^[^""]/{
21850 s/\n//
21852 ' >>$CONFIG_STATUS || ac_write_fail=1
21853 rm -f conf$$subs.awk
21854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21855 _ACAWK
21856 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21857 for (key in S) S_is_set[key] = 1
21858 FS = "\a"
21862 line = $ 0
21863 nfields = split(line, field, "@")
21864 substed = 0
21865 len = length(field[1])
21866 for (i = 2; i < nfields; i++) {
21867 key = field[i]
21868 keylen = length(key)
21869 if (S_is_set[key]) {
21870 value = S[key]
21871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21872 len += length(value) + length(field[++i])
21873 substed = 1
21874 } else
21875 len += 1 + keylen
21878 print line
21881 _ACAWK
21882 _ACEOF
21883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21885 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21886 else
21888 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21889 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21890 _ACEOF
21892 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21893 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21894 # trailing colons and then remove the whole line if VPATH becomes empty
21895 # (actually we leave an empty line to preserve line numbers).
21896 if test "x$srcdir" = x.; then
21897 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21898 s/:*\$(srcdir):*/:/
21899 s/:*\${srcdir}:*/:/
21900 s/:*@srcdir@:*/:/
21901 s/^\([^=]*=[ ]*\):*/\1/
21902 s/:*$//
21903 s/^[^=]*=[ ]*$//
21907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21908 fi # test -n "$CONFIG_FILES"
21910 # Set up the scripts for CONFIG_HEADERS section.
21911 # No need to generate them if there are no CONFIG_HEADERS.
21912 # This happens for instance with `./config.status Makefile'.
21913 if test -n "$CONFIG_HEADERS"; then
21914 cat >"$tmp/defines.awk" <<\_ACAWK ||
21915 BEGIN {
21916 _ACEOF
21918 # Transform confdefs.h into an awk script `defines.awk', embedded as
21919 # here-document in config.status, that substitutes the proper values into
21920 # config.h.in to produce config.h.
21922 # Create a delimiter string that does not exist in confdefs.h, to ease
21923 # handling of long lines.
21924 ac_delim='%!_!# '
21925 for ac_last_try in false false :; do
21926 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21927 if test -z "$ac_t"; then
21928 break
21929 elif $ac_last_try; then
21930 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21931 else
21932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21934 done
21936 # For the awk script, D is an array of macro values keyed by name,
21937 # likewise P contains macro parameters if any. Preserve backslash
21938 # newline sequences.
21940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21941 sed -n '
21942 s/.\{148\}/&'"$ac_delim"'/g
21943 t rset
21944 :rset
21945 s/^[ ]*#[ ]*define[ ][ ]*/ /
21946 t def
21948 :def
21949 s/\\$//
21950 t bsnl
21951 s/["\\]/\\&/g
21952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21953 D["\1"]=" \3"/p
21954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21956 :bsnl
21957 s/["\\]/\\&/g
21958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21959 D["\1"]=" \3\\\\\\n"\\/p
21960 t cont
21961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21962 t cont
21964 :cont
21966 s/.\{148\}/&'"$ac_delim"'/g
21967 t clear
21968 :clear
21969 s/\\$//
21970 t bsnlc
21971 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21973 :bsnlc
21974 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21975 b cont
21976 ' <confdefs.h | sed '
21977 s/'"$ac_delim"'/"\\\
21978 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21981 for (key in D) D_is_set[key] = 1
21982 FS = "\a"
21984 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21985 line = \$ 0
21986 split(line, arg, " ")
21987 if (arg[1] == "#") {
21988 defundef = arg[2]
21989 mac1 = arg[3]
21990 } else {
21991 defundef = substr(arg[1], 2)
21992 mac1 = arg[2]
21994 split(mac1, mac2, "(") #)
21995 macro = mac2[1]
21996 prefix = substr(line, 1, index(line, defundef) - 1)
21997 if (D_is_set[macro]) {
21998 # Preserve the white space surrounding the "#".
21999 print prefix "define", macro P[macro] D[macro]
22000 next
22001 } else {
22002 # Replace #undef with comments. This is necessary, for example,
22003 # in the case of _POSIX_SOURCE, which is predefined and required
22004 # on some systems where configure will not decide to define it.
22005 if (defundef == "undef") {
22006 print "/*", prefix defundef, macro, "*/"
22007 next
22011 { print }
22012 _ACAWK
22013 _ACEOF
22014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22015 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22016 fi # test -n "$CONFIG_HEADERS"
22019 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22020 shift
22021 for ac_tag
22023 case $ac_tag in
22024 :[FHLC]) ac_mode=$ac_tag; continue;;
22025 esac
22026 case $ac_mode$ac_tag in
22027 :[FHL]*:*);;
22028 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22029 :[FH]-) ac_tag=-:-;;
22030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22031 esac
22032 ac_save_IFS=$IFS
22033 IFS=:
22034 set x $ac_tag
22035 IFS=$ac_save_IFS
22036 shift
22037 ac_file=$1
22038 shift
22040 case $ac_mode in
22041 :L) ac_source=$1;;
22042 :[FH])
22043 ac_file_inputs=
22044 for ac_f
22046 case $ac_f in
22047 -) ac_f="$tmp/stdin";;
22048 *) # Look for the file first in the build tree, then in the source tree
22049 # (if the path is not absolute). The absolute path cannot be DOS-style,
22050 # because $ac_f cannot contain `:'.
22051 test -f "$ac_f" ||
22052 case $ac_f in
22053 [\\/$]*) false;;
22054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22055 esac ||
22056 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22057 esac
22058 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22059 as_fn_append ac_file_inputs " '$ac_f'"
22060 done
22062 # Let's still pretend it is `configure' which instantiates (i.e., don't
22063 # use $as_me), people would be surprised to read:
22064 # /* config.h. Generated by config.status. */
22065 configure_input='Generated from '`
22066 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22067 `' by configure.'
22068 if test x"$ac_file" != x-; then
22069 configure_input="$ac_file. $configure_input"
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22071 $as_echo "$as_me: creating $ac_file" >&6;}
22073 # Neutralize special characters interpreted by sed in replacement strings.
22074 case $configure_input in #(
22075 *\&* | *\|* | *\\* )
22076 ac_sed_conf_input=`$as_echo "$configure_input" |
22077 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22078 *) ac_sed_conf_input=$configure_input;;
22079 esac
22081 case $ac_tag in
22082 *:-:* | *:-) cat >"$tmp/stdin" \
22083 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22084 esac
22086 esac
22088 ac_dir=`$as_dirname -- "$ac_file" ||
22089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22090 X"$ac_file" : 'X\(//\)[^/]' \| \
22091 X"$ac_file" : 'X\(//\)$' \| \
22092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22093 $as_echo X"$ac_file" |
22094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22095 s//\1/
22098 /^X\(\/\/\)[^/].*/{
22099 s//\1/
22102 /^X\(\/\/\)$/{
22103 s//\1/
22106 /^X\(\/\).*/{
22107 s//\1/
22110 s/.*/./; q'`
22111 as_dir="$ac_dir"; as_fn_mkdir_p
22112 ac_builddir=.
22114 case "$ac_dir" in
22115 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22117 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22118 # A ".." for each directory in $ac_dir_suffix.
22119 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22120 case $ac_top_builddir_sub in
22121 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22122 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22123 esac ;;
22124 esac
22125 ac_abs_top_builddir=$ac_pwd
22126 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22127 # for backward compatibility:
22128 ac_top_builddir=$ac_top_build_prefix
22130 case $srcdir in
22131 .) # We are building in place.
22132 ac_srcdir=.
22133 ac_top_srcdir=$ac_top_builddir_sub
22134 ac_abs_top_srcdir=$ac_pwd ;;
22135 [\\/]* | ?:[\\/]* ) # Absolute name.
22136 ac_srcdir=$srcdir$ac_dir_suffix;
22137 ac_top_srcdir=$srcdir
22138 ac_abs_top_srcdir=$srcdir ;;
22139 *) # Relative name.
22140 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22141 ac_top_srcdir=$ac_top_build_prefix$srcdir
22142 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22143 esac
22144 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22147 case $ac_mode in
22150 # CONFIG_FILE
22153 case $INSTALL in
22154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22155 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22156 esac
22157 ac_MKDIR_P=$MKDIR_P
22158 case $MKDIR_P in
22159 [\\/$]* | ?:[\\/]* ) ;;
22160 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22161 esac
22162 _ACEOF
22164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22165 # If the template does not know about datarootdir, expand it.
22166 # FIXME: This hack should be removed a few years after 2.60.
22167 ac_datarootdir_hack=; ac_datarootdir_seen=
22168 ac_sed_dataroot='
22169 /datarootdir/ {
22173 /@datadir@/p
22174 /@docdir@/p
22175 /@infodir@/p
22176 /@localedir@/p
22177 /@mandir@/p'
22178 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22179 *datarootdir*) ac_datarootdir_seen=yes;;
22180 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22182 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22183 _ACEOF
22184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22185 ac_datarootdir_hack='
22186 s&@datadir@&$datadir&g
22187 s&@docdir@&$docdir&g
22188 s&@infodir@&$infodir&g
22189 s&@localedir@&$localedir&g
22190 s&@mandir@&$mandir&g
22191 s&\\\${datarootdir}&$datarootdir&g' ;;
22192 esac
22193 _ACEOF
22195 # Neutralize VPATH when `$srcdir' = `.'.
22196 # Shell code in configure.ac might set extrasub.
22197 # FIXME: do we really want to maintain this feature?
22198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22199 ac_sed_extra="$ac_vpsub
22200 $extrasub
22201 _ACEOF
22202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22205 s|@configure_input@|$ac_sed_conf_input|;t t
22206 s&@top_builddir@&$ac_top_builddir_sub&;t t
22207 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22208 s&@srcdir@&$ac_srcdir&;t t
22209 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22210 s&@top_srcdir@&$ac_top_srcdir&;t t
22211 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22212 s&@builddir@&$ac_builddir&;t t
22213 s&@abs_builddir@&$ac_abs_builddir&;t t
22214 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22215 s&@INSTALL@&$ac_INSTALL&;t t
22216 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22217 $ac_datarootdir_hack
22219 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22220 || as_fn_error "could not create $ac_file" "$LINENO" 5
22222 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22223 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22226 which seems to be undefined. Please make sure it is defined." >&5
22227 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22228 which seems to be undefined. Please make sure it is defined." >&2;}
22230 rm -f "$tmp/stdin"
22231 case $ac_file in
22232 -) cat "$tmp/out" && rm -f "$tmp/out";;
22233 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22234 esac \
22235 || as_fn_error "could not create $ac_file" "$LINENO" 5
22239 # CONFIG_HEADER
22241 if test x"$ac_file" != x-; then
22243 $as_echo "/* $configure_input */" \
22244 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22245 } >"$tmp/config.h" \
22246 || as_fn_error "could not create $ac_file" "$LINENO" 5
22247 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22249 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22250 else
22251 rm -f "$ac_file"
22252 mv "$tmp/config.h" "$ac_file" \
22253 || as_fn_error "could not create $ac_file" "$LINENO" 5
22255 else
22256 $as_echo "/* $configure_input */" \
22257 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22258 || as_fn_error "could not create -" "$LINENO" 5
22260 # Compute "$ac_file"'s index in $config_headers.
22261 _am_arg="$ac_file"
22262 _am_stamp_count=1
22263 for _am_header in $config_headers :; do
22264 case $_am_header in
22265 $_am_arg | $_am_arg:* )
22266 break ;;
22268 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22269 esac
22270 done
22271 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22272 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22273 X"$_am_arg" : 'X\(//\)[^/]' \| \
22274 X"$_am_arg" : 'X\(//\)$' \| \
22275 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22276 $as_echo X"$_am_arg" |
22277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22278 s//\1/
22281 /^X\(\/\/\)[^/].*/{
22282 s//\1/
22285 /^X\(\/\/\)$/{
22286 s//\1/
22289 /^X\(\/\).*/{
22290 s//\1/
22293 s/.*/./; q'`/stamp-h$_am_stamp_count
22296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22297 $as_echo "$as_me: executing $ac_file commands" >&6;}
22299 esac
22302 case $ac_file$ac_mode in
22303 "default-1":C)
22304 # Only add multilib support code if we just rebuilt the top-level
22305 # Makefile.
22306 case " $CONFIG_FILES " in
22307 *" Makefile "*)
22308 ac_file=Makefile . ${multi_basedir}/config-ml.in
22310 esac ;;
22311 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22312 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22313 # are listed without --file. Let's play safe and only enable the eval
22314 # if we detect the quoting.
22315 case $CONFIG_FILES in
22316 *\'*) eval set x "$CONFIG_FILES" ;;
22317 *) set x $CONFIG_FILES ;;
22318 esac
22319 shift
22320 for mf
22322 # Strip MF so we end up with the name of the file.
22323 mf=`echo "$mf" | sed -e 's/:.*$//'`
22324 # Check whether this is an Automake generated Makefile or not.
22325 # We used to match only the files named `Makefile.in', but
22326 # some people rename them; so instead we look at the file content.
22327 # Grep'ing the first line is not enough: some people post-process
22328 # each Makefile.in and add a new line on top of each file to say so.
22329 # Grep'ing the whole file is not good either: AIX grep has a line
22330 # limit of 2048, but all sed's we know have understand at least 4000.
22331 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22332 dirpart=`$as_dirname -- "$mf" ||
22333 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22334 X"$mf" : 'X\(//\)[^/]' \| \
22335 X"$mf" : 'X\(//\)$' \| \
22336 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22337 $as_echo X"$mf" |
22338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22339 s//\1/
22342 /^X\(\/\/\)[^/].*/{
22343 s//\1/
22346 /^X\(\/\/\)$/{
22347 s//\1/
22350 /^X\(\/\).*/{
22351 s//\1/
22354 s/.*/./; q'`
22355 else
22356 continue
22358 # Extract the definition of DEPDIR, am__include, and am__quote
22359 # from the Makefile without running `make'.
22360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22361 test -z "$DEPDIR" && continue
22362 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22363 test -z "am__include" && continue
22364 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22365 # When using ansi2knr, U may be empty or an underscore; expand it
22366 U=`sed -n 's/^U = //p' < "$mf"`
22367 # Find all dependency output files, they are included files with
22368 # $(DEPDIR) in their names. We invoke sed twice because it is the
22369 # simplest approach to changing $(DEPDIR) to its actual value in the
22370 # expansion.
22371 for file in `sed -n "
22372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22374 # Make sure the directory exists.
22375 test -f "$dirpart/$file" && continue
22376 fdir=`$as_dirname -- "$file" ||
22377 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378 X"$file" : 'X\(//\)[^/]' \| \
22379 X"$file" : 'X\(//\)$' \| \
22380 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22381 $as_echo X"$file" |
22382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22383 s//\1/
22386 /^X\(\/\/\)[^/].*/{
22387 s//\1/
22390 /^X\(\/\/\)$/{
22391 s//\1/
22394 /^X\(\/\).*/{
22395 s//\1/
22398 s/.*/./; q'`
22399 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22400 # echo "creating $dirpart/$file"
22401 echo '# dummy' > "$dirpart/$file"
22402 done
22403 done
22406 "libtool":C)
22408 # See if we are running on zsh, and set the options which allow our
22409 # commands through without removal of \ escapes.
22410 if test -n "${ZSH_VERSION+set}" ; then
22411 setopt NO_GLOB_SUBST
22414 cfgfile="${ofile}T"
22415 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22416 $RM "$cfgfile"
22418 cat <<_LT_EOF >> "$cfgfile"
22419 #! $SHELL
22421 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22422 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22423 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22424 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22426 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22427 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
22428 # Written by Gordon Matzigkeit, 1996
22430 # This file is part of GNU Libtool.
22432 # GNU Libtool is free software; you can redistribute it and/or
22433 # modify it under the terms of the GNU General Public License as
22434 # published by the Free Software Foundation; either version 2 of
22435 # the License, or (at your option) any later version.
22437 # As a special exception to the GNU General Public License,
22438 # if you distribute this file as part of a program or library that
22439 # is built using GNU Libtool, you may include this file under the
22440 # same distribution terms that you use for the rest of that program.
22442 # GNU Libtool is distributed in the hope that it will be useful,
22443 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22444 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22445 # GNU General Public License for more details.
22447 # You should have received a copy of the GNU General Public License
22448 # along with GNU Libtool; see the file COPYING. If not, a copy
22449 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22450 # obtained by writing to the Free Software Foundation, Inc.,
22451 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22454 # The names of the tagged configurations supported by this script.
22455 available_tags=""
22457 # ### BEGIN LIBTOOL CONFIG
22459 # Whether or not to build shared libraries.
22460 build_libtool_libs=$enable_shared
22462 # Which release of libtool.m4 was used?
22463 macro_version=$macro_version
22464 macro_revision=$macro_revision
22466 # Whether or not to build static libraries.
22467 build_old_libs=$enable_static
22469 # What type of objects to build.
22470 pic_mode=$pic_mode
22472 # Whether or not to optimize for fast installation.
22473 fast_install=$enable_fast_install
22475 # Shell to use when invoking shell scripts.
22476 SHELL=$lt_SHELL
22478 # An echo program that protects backslashes.
22479 ECHO=$lt_ECHO
22481 # The host system.
22482 host_alias=$host_alias
22483 host=$host
22484 host_os=$host_os
22486 # The build system.
22487 build_alias=$build_alias
22488 build=$build
22489 build_os=$build_os
22491 # A sed program that does not truncate output.
22492 SED=$lt_SED
22494 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22495 Xsed="\$SED -e 1s/^X//"
22497 # A grep program that handles long lines.
22498 GREP=$lt_GREP
22500 # An ERE matcher.
22501 EGREP=$lt_EGREP
22503 # A literal string matcher.
22504 FGREP=$lt_FGREP
22506 # A BSD- or MS-compatible name lister.
22507 NM=$lt_NM
22509 # Whether we need soft or hard links.
22510 LN_S=$lt_LN_S
22512 # What is the maximum length of a command?
22513 max_cmd_len=$max_cmd_len
22515 # Object file suffix (normally "o").
22516 objext=$ac_objext
22518 # Executable file suffix (normally "").
22519 exeext=$exeext
22521 # whether the shell understands "unset".
22522 lt_unset=$lt_unset
22524 # turn spaces into newlines.
22525 SP2NL=$lt_lt_SP2NL
22527 # turn newlines into spaces.
22528 NL2SP=$lt_lt_NL2SP
22530 # An object symbol dumper.
22531 OBJDUMP=$lt_OBJDUMP
22533 # Method to check whether dependent libraries are shared objects.
22534 deplibs_check_method=$lt_deplibs_check_method
22536 # Command to use when deplibs_check_method == "file_magic".
22537 file_magic_cmd=$lt_file_magic_cmd
22539 # The archiver.
22540 AR=$lt_AR
22541 AR_FLAGS=$lt_AR_FLAGS
22543 # A symbol stripping program.
22544 STRIP=$lt_STRIP
22546 # Commands used to install an old-style archive.
22547 RANLIB=$lt_RANLIB
22548 old_postinstall_cmds=$lt_old_postinstall_cmds
22549 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22551 # Whether to use a lock for old archive extraction.
22552 lock_old_archive_extraction=$lock_old_archive_extraction
22554 # A C compiler.
22555 LTCC=$lt_CC
22557 # LTCC compiler flags.
22558 LTCFLAGS=$lt_CFLAGS
22560 # Take the output of nm and produce a listing of raw symbols and C names.
22561 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22563 # Transform the output of nm in a proper C declaration.
22564 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22566 # Transform the output of nm in a C name address pair.
22567 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22569 # Transform the output of nm in a C name address pair when lib prefix is needed.
22570 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22572 # The name of the directory that contains temporary libtool files.
22573 objdir=$objdir
22575 # Used to examine libraries when file_magic_cmd begins with "file".
22576 MAGIC_CMD=$MAGIC_CMD
22578 # Must we lock files when doing compilation?
22579 need_locks=$lt_need_locks
22581 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22582 DSYMUTIL=$lt_DSYMUTIL
22584 # Tool to change global to local symbols on Mac OS X.
22585 NMEDIT=$lt_NMEDIT
22587 # Tool to manipulate fat objects and archives on Mac OS X.
22588 LIPO=$lt_LIPO
22590 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22591 OTOOL=$lt_OTOOL
22593 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22594 OTOOL64=$lt_OTOOL64
22596 # Old archive suffix (normally "a").
22597 libext=$libext
22599 # Shared library suffix (normally ".so").
22600 shrext_cmds=$lt_shrext_cmds
22602 # The commands to extract the exported symbol list from a shared archive.
22603 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22605 # Variables whose values should be saved in libtool wrapper scripts and
22606 # restored at link time.
22607 variables_saved_for_relink=$lt_variables_saved_for_relink
22609 # Do we need the "lib" prefix for modules?
22610 need_lib_prefix=$need_lib_prefix
22612 # Do we need a version for libraries?
22613 need_version=$need_version
22615 # Library versioning type.
22616 version_type=$version_type
22618 # Shared library runtime path variable.
22619 runpath_var=$runpath_var
22621 # Shared library path variable.
22622 shlibpath_var=$shlibpath_var
22624 # Is shlibpath searched before the hard-coded library search path?
22625 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22627 # Format of library name prefix.
22628 libname_spec=$lt_libname_spec
22630 # List of archive names. First name is the real one, the rest are links.
22631 # The last name is the one that the linker finds with -lNAME
22632 library_names_spec=$lt_library_names_spec
22634 # The coded name of the library, if different from the real name.
22635 soname_spec=$lt_soname_spec
22637 # Permission mode override for installation of shared libraries.
22638 install_override_mode=$lt_install_override_mode
22640 # Command to use after installation of a shared archive.
22641 postinstall_cmds=$lt_postinstall_cmds
22643 # Command to use after uninstallation of a shared archive.
22644 postuninstall_cmds=$lt_postuninstall_cmds
22646 # Commands used to finish a libtool library installation in a directory.
22647 finish_cmds=$lt_finish_cmds
22649 # As "finish_cmds", except a single script fragment to be evaled but
22650 # not shown.
22651 finish_eval=$lt_finish_eval
22653 # Whether we should hardcode library paths into libraries.
22654 hardcode_into_libs=$hardcode_into_libs
22656 # Compile-time system search path for libraries.
22657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22659 # Run-time system search path for libraries.
22660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22662 # Whether dlopen is supported.
22663 dlopen_support=$enable_dlopen
22665 # Whether dlopen of programs is supported.
22666 dlopen_self=$enable_dlopen_self
22668 # Whether dlopen of statically linked programs is supported.
22669 dlopen_self_static=$enable_dlopen_self_static
22671 # Commands to strip libraries.
22672 old_striplib=$lt_old_striplib
22673 striplib=$lt_striplib
22676 # The linker used to build libraries.
22677 LD=$lt_LD
22679 # How to create reloadable object files.
22680 reload_flag=$lt_reload_flag
22681 reload_cmds=$lt_reload_cmds
22683 # Commands used to build an old-style archive.
22684 old_archive_cmds=$lt_old_archive_cmds
22686 # A language specific compiler.
22687 CC=$lt_compiler
22689 # Is the compiler the GNU compiler?
22690 with_gcc=$GCC
22692 # Compiler flag to turn off builtin functions.
22693 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22695 # How to pass a linker flag through the compiler.
22696 wl=$lt_lt_prog_compiler_wl
22698 # Additional compiler flags for building library objects.
22699 pic_flag=$lt_lt_prog_compiler_pic
22701 # Compiler flag to prevent dynamic linking.
22702 link_static_flag=$lt_lt_prog_compiler_static
22704 # Does compiler simultaneously support -c and -o options?
22705 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22707 # Whether or not to add -lc for building shared libraries.
22708 build_libtool_need_lc=$archive_cmds_need_lc
22710 # Whether or not to disallow shared libs when runtime libs are static.
22711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22713 # Compiler flag to allow reflexive dlopens.
22714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22716 # Compiler flag to generate shared objects directly from archives.
22717 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22719 # Whether the compiler copes with passing no objects directly.
22720 compiler_needs_object=$lt_compiler_needs_object
22722 # Create an old-style archive from a shared archive.
22723 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22725 # Create a temporary old-style archive to link instead of a shared archive.
22726 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22728 # Commands used to build a shared archive.
22729 archive_cmds=$lt_archive_cmds
22730 archive_expsym_cmds=$lt_archive_expsym_cmds
22732 # Commands used to build a loadable module if different from building
22733 # a shared archive.
22734 module_cmds=$lt_module_cmds
22735 module_expsym_cmds=$lt_module_expsym_cmds
22737 # Whether we are building with GNU ld or not.
22738 with_gnu_ld=$lt_with_gnu_ld
22740 # Flag that allows shared libraries with undefined symbols to be built.
22741 allow_undefined_flag=$lt_allow_undefined_flag
22743 # Flag that enforces no undefined symbols.
22744 no_undefined_flag=$lt_no_undefined_flag
22746 # Flag to hardcode \$libdir into a binary during linking.
22747 # This must work even if \$libdir does not exist
22748 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22750 # If ld is used when linking, flag to hardcode \$libdir into a binary
22751 # during linking. This must work even if \$libdir does not exist.
22752 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22754 # Whether we need a single "-rpath" flag with a separated argument.
22755 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22757 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22758 # DIR into the resulting binary.
22759 hardcode_direct=$hardcode_direct
22761 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22762 # DIR into the resulting binary and the resulting library dependency is
22763 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22764 # library is relocated.
22765 hardcode_direct_absolute=$hardcode_direct_absolute
22767 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22768 # into the resulting binary.
22769 hardcode_minus_L=$hardcode_minus_L
22771 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22772 # into the resulting binary.
22773 hardcode_shlibpath_var=$hardcode_shlibpath_var
22775 # Set to "yes" if building a shared library automatically hardcodes DIR
22776 # into the library and all subsequent libraries and executables linked
22777 # against it.
22778 hardcode_automatic=$hardcode_automatic
22780 # Set to yes if linker adds runtime paths of dependent libraries
22781 # to runtime path list.
22782 inherit_rpath=$inherit_rpath
22784 # Whether libtool must link a program against all its dependency libraries.
22785 link_all_deplibs=$link_all_deplibs
22787 # Fix the shell variable \$srcfile for the compiler.
22788 fix_srcfile_path=$lt_fix_srcfile_path
22790 # Set to "yes" if exported symbols are required.
22791 always_export_symbols=$always_export_symbols
22793 # The commands to list exported symbols.
22794 export_symbols_cmds=$lt_export_symbols_cmds
22796 # Symbols that should not be listed in the preloaded symbols.
22797 exclude_expsyms=$lt_exclude_expsyms
22799 # Symbols that must always be exported.
22800 include_expsyms=$lt_include_expsyms
22802 # Commands necessary for linking programs (against libraries) with templates.
22803 prelink_cmds=$lt_prelink_cmds
22805 # Specify filename containing input files.
22806 file_list_spec=$lt_file_list_spec
22808 # How to hardcode a shared library path into an executable.
22809 hardcode_action=$hardcode_action
22811 # ### END LIBTOOL CONFIG
22813 _LT_EOF
22815 case $host_os in
22816 aix3*)
22817 cat <<\_LT_EOF >> "$cfgfile"
22818 # AIX sometimes has problems with the GCC collect2 program. For some
22819 # reason, if we set the COLLECT_NAMES environment variable, the problems
22820 # vanish in a puff of smoke.
22821 if test "X${COLLECT_NAMES+set}" != Xset; then
22822 COLLECT_NAMES=
22823 export COLLECT_NAMES
22825 _LT_EOF
22827 esac
22830 ltmain="$ac_aux_dir/ltmain.sh"
22833 # We use sed instead of cat because bash on DJGPP gets confused if
22834 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22835 # text mode, it properly converts lines to CR/LF. This bash problem
22836 # is reportedly fixed, but why not run on old versions too?
22837 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22838 || (rm -f "$cfgfile"; exit 1)
22840 case $xsi_shell in
22841 yes)
22842 cat << \_LT_EOF >> "$cfgfile"
22844 # func_dirname file append nondir_replacement
22845 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22846 # otherwise set result to NONDIR_REPLACEMENT.
22847 func_dirname ()
22849 case ${1} in
22850 */*) func_dirname_result="${1%/*}${2}" ;;
22851 * ) func_dirname_result="${3}" ;;
22852 esac
22855 # func_basename file
22856 func_basename ()
22858 func_basename_result="${1##*/}"
22861 # func_dirname_and_basename file append nondir_replacement
22862 # perform func_basename and func_dirname in a single function
22863 # call:
22864 # dirname: Compute the dirname of FILE. If nonempty,
22865 # add APPEND to the result, otherwise set result
22866 # to NONDIR_REPLACEMENT.
22867 # value returned in "$func_dirname_result"
22868 # basename: Compute filename of FILE.
22869 # value retuned in "$func_basename_result"
22870 # Implementation must be kept synchronized with func_dirname
22871 # and func_basename. For efficiency, we do not delegate to
22872 # those functions but instead duplicate the functionality here.
22873 func_dirname_and_basename ()
22875 case ${1} in
22876 */*) func_dirname_result="${1%/*}${2}" ;;
22877 * ) func_dirname_result="${3}" ;;
22878 esac
22879 func_basename_result="${1##*/}"
22882 # func_stripname prefix suffix name
22883 # strip PREFIX and SUFFIX off of NAME.
22884 # PREFIX and SUFFIX must not contain globbing or regex special
22885 # characters, hashes, percent signs, but SUFFIX may contain a leading
22886 # dot (in which case that matches only a dot).
22887 func_stripname ()
22889 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22890 # positional parameters, so assign one to ordinary parameter first.
22891 func_stripname_result=${3}
22892 func_stripname_result=${func_stripname_result#"${1}"}
22893 func_stripname_result=${func_stripname_result%"${2}"}
22896 # func_opt_split
22897 func_opt_split ()
22899 func_opt_split_opt=${1%%=*}
22900 func_opt_split_arg=${1#*=}
22903 # func_lo2o object
22904 func_lo2o ()
22906 case ${1} in
22907 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22908 *) func_lo2o_result=${1} ;;
22909 esac
22912 # func_xform libobj-or-source
22913 func_xform ()
22915 func_xform_result=${1%.*}.lo
22918 # func_arith arithmetic-term...
22919 func_arith ()
22921 func_arith_result=$(( $* ))
22924 # func_len string
22925 # STRING may not start with a hyphen.
22926 func_len ()
22928 func_len_result=${#1}
22931 _LT_EOF
22933 *) # Bourne compatible functions.
22934 cat << \_LT_EOF >> "$cfgfile"
22936 # func_dirname file append nondir_replacement
22937 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22938 # otherwise set result to NONDIR_REPLACEMENT.
22939 func_dirname ()
22941 # Extract subdirectory from the argument.
22942 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
22943 if test "X$func_dirname_result" = "X${1}"; then
22944 func_dirname_result="${3}"
22945 else
22946 func_dirname_result="$func_dirname_result${2}"
22950 # func_basename file
22951 func_basename ()
22953 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
22957 # func_stripname prefix suffix name
22958 # strip PREFIX and SUFFIX off of NAME.
22959 # PREFIX and SUFFIX must not contain globbing or regex special
22960 # characters, hashes, percent signs, but SUFFIX may contain a leading
22961 # dot (in which case that matches only a dot).
22962 # func_strip_suffix prefix name
22963 func_stripname ()
22965 case ${2} in
22966 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
22967 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
22968 esac
22971 # sed scripts:
22972 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22973 my_sed_long_arg='1s/^-[^=]*=//'
22975 # func_opt_split
22976 func_opt_split ()
22978 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
22979 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
22982 # func_lo2o object
22983 func_lo2o ()
22985 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
22988 # func_xform libobj-or-source
22989 func_xform ()
22991 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
22994 # func_arith arithmetic-term...
22995 func_arith ()
22997 func_arith_result=`expr "$@"`
23000 # func_len string
23001 # STRING may not start with a hyphen.
23002 func_len ()
23004 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23007 _LT_EOF
23008 esac
23010 case $lt_shell_append in
23011 yes)
23012 cat << \_LT_EOF >> "$cfgfile"
23014 # func_append var value
23015 # Append VALUE to the end of shell variable VAR.
23016 func_append ()
23018 eval "$1+=\$2"
23020 _LT_EOF
23023 cat << \_LT_EOF >> "$cfgfile"
23025 # func_append var value
23026 # Append VALUE to the end of shell variable VAR.
23027 func_append ()
23029 eval "$1=\$$1\$2"
23032 _LT_EOF
23034 esac
23037 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23038 || (rm -f "$cfgfile"; exit 1)
23040 mv -f "$cfgfile" "$ofile" ||
23041 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23042 chmod +x "$ofile"
23045 "gstdint.h":C)
23046 if test "$GCC" = yes; then
23047 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23048 else
23049 echo "/* generated for $CC */" > tmp-stdint.h
23052 sed 's/^ *//' >> tmp-stdint.h <<EOF
23054 #ifndef GCC_GENERATED_STDINT_H
23055 #define GCC_GENERATED_STDINT_H 1
23057 #include <sys/types.h>
23060 if test "$acx_cv_header_stdint" != stdint.h; then
23061 echo "#include <stddef.h>" >> tmp-stdint.h
23063 if test "$acx_cv_header_stdint" != stddef.h; then
23064 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23067 sed 's/^ *//' >> tmp-stdint.h <<EOF
23068 /* glibc uses these symbols as guards to prevent redefinitions. */
23069 #ifdef __int8_t_defined
23070 #define _INT8_T
23071 #define _INT16_T
23072 #define _INT32_T
23073 #endif
23074 #ifdef __uint32_t_defined
23075 #define _UINT32_T
23076 #endif
23080 # ----------------- done header, emit basic int types -------------
23081 if test "$acx_cv_header_stdint" = stddef.h; then
23082 sed 's/^ *//' >> tmp-stdint.h <<EOF
23084 #ifndef _UINT8_T
23085 #define _UINT8_T
23086 #ifndef __uint8_t_defined
23087 #define __uint8_t_defined
23088 #ifndef uint8_t
23089 typedef unsigned $acx_cv_type_int8_t uint8_t;
23090 #endif
23091 #endif
23092 #endif
23094 #ifndef _UINT16_T
23095 #define _UINT16_T
23096 #ifndef __uint16_t_defined
23097 #define __uint16_t_defined
23098 #ifndef uint16_t
23099 typedef unsigned $acx_cv_type_int16_t uint16_t;
23100 #endif
23101 #endif
23102 #endif
23104 #ifndef _UINT32_T
23105 #define _UINT32_T
23106 #ifndef __uint32_t_defined
23107 #define __uint32_t_defined
23108 #ifndef uint32_t
23109 typedef unsigned $acx_cv_type_int32_t uint32_t;
23110 #endif
23111 #endif
23112 #endif
23114 #ifndef _INT8_T
23115 #define _INT8_T
23116 #ifndef __int8_t_defined
23117 #define __int8_t_defined
23118 #ifndef int8_t
23119 typedef $acx_cv_type_int8_t int8_t;
23120 #endif
23121 #endif
23122 #endif
23124 #ifndef _INT16_T
23125 #define _INT16_T
23126 #ifndef __int16_t_defined
23127 #define __int16_t_defined
23128 #ifndef int16_t
23129 typedef $acx_cv_type_int16_t int16_t;
23130 #endif
23131 #endif
23132 #endif
23134 #ifndef _INT32_T
23135 #define _INT32_T
23136 #ifndef __int32_t_defined
23137 #define __int32_t_defined
23138 #ifndef int32_t
23139 typedef $acx_cv_type_int32_t int32_t;
23140 #endif
23141 #endif
23142 #endif
23144 elif test "$ac_cv_type_u_int32_t" = yes; then
23145 sed 's/^ *//' >> tmp-stdint.h <<EOF
23147 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23148 #ifndef _INT8_T
23149 #define _INT8_T
23150 #endif
23151 #ifndef _INT16_T
23152 #define _INT16_T
23153 #endif
23154 #ifndef _INT32_T
23155 #define _INT32_T
23156 #endif
23158 #ifndef _UINT8_T
23159 #define _UINT8_T
23160 #ifndef __uint8_t_defined
23161 #define __uint8_t_defined
23162 #ifndef uint8_t
23163 typedef u_int8_t uint8_t;
23164 #endif
23165 #endif
23166 #endif
23168 #ifndef _UINT16_T
23169 #define _UINT16_T
23170 #ifndef __uint16_t_defined
23171 #define __uint16_t_defined
23172 #ifndef uint16_t
23173 typedef u_int16_t uint16_t;
23174 #endif
23175 #endif
23176 #endif
23178 #ifndef _UINT32_T
23179 #define _UINT32_T
23180 #ifndef __uint32_t_defined
23181 #define __uint32_t_defined
23182 #ifndef uint32_t
23183 typedef u_int32_t uint32_t;
23184 #endif
23185 #endif
23186 #endif
23188 else
23189 sed 's/^ *//' >> tmp-stdint.h <<EOF
23191 /* Some systems have guard macros to prevent redefinitions, define them. */
23192 #ifndef _INT8_T
23193 #define _INT8_T
23194 #endif
23195 #ifndef _INT16_T
23196 #define _INT16_T
23197 #endif
23198 #ifndef _INT32_T
23199 #define _INT32_T
23200 #endif
23201 #ifndef _UINT8_T
23202 #define _UINT8_T
23203 #endif
23204 #ifndef _UINT16_T
23205 #define _UINT16_T
23206 #endif
23207 #ifndef _UINT32_T
23208 #define _UINT32_T
23209 #endif
23213 # ------------- done basic int types, emit int64_t types ------------
23214 if test "$ac_cv_type_uint64_t" = yes; then
23215 sed 's/^ *//' >> tmp-stdint.h <<EOF
23217 /* system headers have good uint64_t and int64_t */
23218 #ifndef _INT64_T
23219 #define _INT64_T
23220 #endif
23221 #ifndef _UINT64_T
23222 #define _UINT64_T
23223 #endif
23225 elif test "$ac_cv_type_u_int64_t" = yes; then
23226 sed 's/^ *//' >> tmp-stdint.h <<EOF
23228 /* system headers have an u_int64_t (and int64_t) */
23229 #ifndef _INT64_T
23230 #define _INT64_T
23231 #endif
23232 #ifndef _UINT64_T
23233 #define _UINT64_T
23234 #ifndef __uint64_t_defined
23235 #define __uint64_t_defined
23236 #ifndef uint64_t
23237 typedef u_int64_t uint64_t;
23238 #endif
23239 #endif
23240 #endif
23242 elif test -n "$acx_cv_type_int64_t"; then
23243 sed 's/^ *//' >> tmp-stdint.h <<EOF
23245 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23246 #ifndef _INT64_T
23247 #define _INT64_T
23248 #ifndef int64_t
23249 typedef $acx_cv_type_int64_t int64_t;
23250 #endif
23251 #endif
23252 #ifndef _UINT64_T
23253 #define _UINT64_T
23254 #ifndef __uint64_t_defined
23255 #define __uint64_t_defined
23256 #ifndef uint64_t
23257 typedef unsigned $acx_cv_type_int64_t uint64_t;
23258 #endif
23259 #endif
23260 #endif
23262 else
23263 sed 's/^ *//' >> tmp-stdint.h <<EOF
23265 /* some common heuristics for int64_t, using compiler-specific tests */
23266 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23267 #ifndef _INT64_T
23268 #define _INT64_T
23269 #ifndef __int64_t_defined
23270 #ifndef int64_t
23271 typedef long long int64_t;
23272 #endif
23273 #endif
23274 #endif
23275 #ifndef _UINT64_T
23276 #define _UINT64_T
23277 #ifndef uint64_t
23278 typedef unsigned long long uint64_t;
23279 #endif
23280 #endif
23282 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23283 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23284 does not implement __extension__. But that compiler doesn't define
23285 __GNUC_MINOR__. */
23286 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23287 # define __extension__
23288 # endif
23290 # ifndef _INT64_T
23291 # define _INT64_T
23292 # ifndef int64_t
23293 __extension__ typedef long long int64_t;
23294 # endif
23295 # endif
23296 # ifndef _UINT64_T
23297 # define _UINT64_T
23298 # ifndef uint64_t
23299 __extension__ typedef unsigned long long uint64_t;
23300 # endif
23301 # endif
23303 #elif !defined __STRICT_ANSI__
23304 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23306 # ifndef _INT64_T
23307 # define _INT64_T
23308 # ifndef int64_t
23309 typedef __int64 int64_t;
23310 # endif
23311 # endif
23312 # ifndef _UINT64_T
23313 # define _UINT64_T
23314 # ifndef uint64_t
23315 typedef unsigned __int64 uint64_t;
23316 # endif
23317 # endif
23318 # endif /* compiler */
23320 #endif /* ANSI version */
23324 # ------------- done int64_t types, emit intptr types ------------
23325 if test "$ac_cv_type_uintptr_t" != yes; then
23326 sed 's/^ *//' >> tmp-stdint.h <<EOF
23328 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23329 #ifndef __uintptr_t_defined
23330 #ifndef uintptr_t
23331 typedef u$acx_cv_type_intptr_t uintptr_t;
23332 #endif
23333 #endif
23334 #ifndef __intptr_t_defined
23335 #ifndef intptr_t
23336 typedef $acx_cv_type_intptr_t intptr_t;
23337 #endif
23338 #endif
23342 # ------------- done intptr types, emit int_least types ------------
23343 if test "$ac_cv_type_int_least32_t" != yes; then
23344 sed 's/^ *//' >> tmp-stdint.h <<EOF
23346 /* Define int_least types */
23347 typedef int8_t int_least8_t;
23348 typedef int16_t int_least16_t;
23349 typedef int32_t int_least32_t;
23350 #ifdef _INT64_T
23351 typedef int64_t int_least64_t;
23352 #endif
23354 typedef uint8_t uint_least8_t;
23355 typedef uint16_t uint_least16_t;
23356 typedef uint32_t uint_least32_t;
23357 #ifdef _UINT64_T
23358 typedef uint64_t uint_least64_t;
23359 #endif
23363 # ------------- done intptr types, emit int_fast types ------------
23364 if test "$ac_cv_type_int_fast32_t" != yes; then
23365 sed 's/^ *//' >> tmp-stdint.h <<EOF
23367 /* Define int_fast types. short is often slow */
23368 typedef int8_t int_fast8_t;
23369 typedef int int_fast16_t;
23370 typedef int32_t int_fast32_t;
23371 #ifdef _INT64_T
23372 typedef int64_t int_fast64_t;
23373 #endif
23375 typedef uint8_t uint_fast8_t;
23376 typedef unsigned int uint_fast16_t;
23377 typedef uint32_t uint_fast32_t;
23378 #ifdef _UINT64_T
23379 typedef uint64_t uint_fast64_t;
23380 #endif
23384 if test "$ac_cv_type_uintmax_t" != yes; then
23385 sed 's/^ *//' >> tmp-stdint.h <<EOF
23387 /* Define intmax based on what we found */
23388 #ifndef intmax_t
23389 #ifdef _INT64_T
23390 typedef int64_t intmax_t;
23391 #else
23392 typedef long intmax_t;
23393 #endif
23394 #endif
23395 #ifndef uintmax_t
23396 #ifdef _UINT64_T
23397 typedef uint64_t uintmax_t;
23398 #else
23399 typedef unsigned long uintmax_t;
23400 #endif
23401 #endif
23405 sed 's/^ *//' >> tmp-stdint.h <<EOF
23407 #endif /* GCC_GENERATED_STDINT_H */
23410 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
23411 rm -f tmp-stdint.h
23412 else
23413 mv -f tmp-stdint.h gstdint.h
23418 esac
23419 done # for ac_tag
23422 as_fn_exit 0
23423 _ACEOF
23424 ac_clean_files=$ac_clean_files_save
23426 test $ac_write_fail = 0 ||
23427 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23430 # configure is writing to config.log, and then calls config.status.
23431 # config.status does its own redirection, appending to config.log.
23432 # Unfortunately, on DOS this fails, as config.log is still kept open
23433 # by configure, so config.status won't be able to write to it; its
23434 # output is simply discarded. So we exec the FD to /dev/null,
23435 # effectively closing config.log, so it can be properly (re)opened and
23436 # appended to by config.status. When coming back to configure, we
23437 # need to make the FD available again.
23438 if test "$no_create" != yes; then
23439 ac_cs_success=:
23440 ac_config_status_args=
23441 test "$silent" = yes &&
23442 ac_config_status_args="$ac_config_status_args --quiet"
23443 exec 5>/dev/null
23444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23445 exec 5>>config.log
23446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23447 # would make configure fail if this is the last instruction.
23448 $ac_cs_success || as_fn_exit $?
23450 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23452 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}