]> git.ipfire.org Git - thirdparty/gcc.git/blame - liboffloadmic/configure
regenerate configure files and config.h.in files
[thirdparty/gcc.git] / liboffloadmic / configure
CommitLineData
5f520819
KY
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for MIC Offload Runtime Library 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5f520819 7#
5f520819
KY
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5f520819
KY
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5f520819
KY
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5f520819
KY
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
5f520819
KY
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5f520819
KY
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
5f520819
KY
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
5f520819
KY
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
5f520819
KY
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5f520819 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
5f520819
KY
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
5f520819
KY
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
5f520819 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
5f520819
KY
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
5f520819
KY
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
5f520819
KY
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
5f520819
KY
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
5f520819
KY
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5f520819
KY
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='MIC Offload Runtime Library'
589PACKAGE_TARNAME='liboffloadmic'
590PACKAGE_VERSION='1.0'
591PACKAGE_STRING='MIC Offload Runtime Library 1.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
9d73ec14 595enable_option_checking=no
5f520819
KY
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
3c36aa6b 636get_gcc_base_ver
5f520819
KY
637link_offloadmic_target
638link_offloadmic_host
639lt_cv_dlopen_libs
640toolexeclibdir
641toolexecdir
642CXXCPP
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
648RANLIB
649AR
650OBJDUMP
651LN_S
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657SED
658LIBTOOL
659LIBOFFLOADMIC_HOST_FALSE
660LIBOFFLOADMIC_HOST_TRUE
22e05272 661ALLOCA
5f520819
KY
662EGREP
663GREP
664CPP
9d73ec14 665subdirs
5f520819
KY
666multi_basedir
667am__fastdepCXX_FALSE
668am__fastdepCXX_TRUE
669CXXDEPMODE
670ac_ct_CXX
671CXXFLAGS
672CXX
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
735aacba 676am__nodep
5f520819
KY
677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690MAINT
691MAINTAINER_MODE_FALSE
692MAINTAINER_MODE_TRUE
22e05272
JM
693AM_BACKSLASH
694AM_DEFAULT_VERBOSITY
695AM_DEFAULT_V
696AM_V
5f520819
KY
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_os
721target_vendor
722target_cpu
723target
724host_os
725host_vendor
726host_cpu
727host
728build_os
729build_vendor
730build_cpu
731build
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
22e05272 773enable_silent_rules
5f520819
KY
774enable_maintainer_mode
775enable_dependency_tracking
776enable_multilib
777enable_version_specific_runtime_libs
e8e66971 778with_toolexeclibdir
5f520819
KY
779enable_shared
780enable_static
781with_pic
782enable_fast_install
783with_gnu_ld
784enable_libtool_lock
3c36aa6b 785with_gcc_major_version_only
5f520819
KY
786'
787 ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CXX
796CXXFLAGS
797CCC
798CPP
799CXXCPP'
9d73ec14 800ac_subdirs_all='plugin'
5f520819
KY
801
802# Initialize some variables set by options.
803ac_init_help=
804ac_init_version=false
805ac_unrecognized_opts=
806ac_unrecognized_sep=
807# The variables have the same names as the options, with
808# dashes changed to underlines.
809cache_file=/dev/null
810exec_prefix=NONE
811no_create=
812no_recursion=
813prefix=NONE
814program_prefix=NONE
815program_suffix=NONE
816program_transform_name=s,x,x,
817silent=
818site=
819srcdir=
820verbose=
821x_includes=NONE
822x_libraries=NONE
823
824# Installation directory options.
825# These are left unexpanded so users can "make install exec_prefix=/foo"
826# and all the variables that are supposed to be based on exec_prefix
827# by default will actually change.
828# Use braces instead of parens because sh, perl, etc. also accept them.
829# (The list follows the same order as the GNU Coding Standards.)
830bindir='${exec_prefix}/bin'
831sbindir='${exec_prefix}/sbin'
832libexecdir='${exec_prefix}/libexec'
833datarootdir='${prefix}/share'
834datadir='${datarootdir}'
835sysconfdir='${prefix}/etc'
836sharedstatedir='${prefix}/com'
837localstatedir='${prefix}/var'
838includedir='${prefix}/include'
839oldincludedir='/usr/include'
840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841infodir='${datarootdir}/info'
842htmldir='${docdir}'
843dvidir='${docdir}'
844pdfdir='${docdir}'
845psdir='${docdir}'
846libdir='${exec_prefix}/lib'
847localedir='${datarootdir}/locale'
848mandir='${datarootdir}/man'
849
850ac_prev=
851ac_dashdash=
852for ac_option
853do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
22e05272
JM
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
5f520819
KY
865 esac
866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
893 -datadir | --datadir | --datadi | --datad)
894 ac_prev=datadir ;;
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
897
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 909 as_fn_error $? "invalid feature name: $ac_useropt"
5f520819
KY
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914"enable_$ac_useropt"
915"*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
930
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 935 as_fn_error $? "invalid feature name: $ac_useropt"
5f520819
KY
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940"enable_$ac_useropt"
941"*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1139 as_fn_error $? "invalid package name: $ac_useropt"
5f520819
KY
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1155 as_fn_error $? "invalid package name: $ac_useropt"
5f520819
KY
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
22e05272
JM
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186Try \`$0 --help' for more information"
5f520819
KY
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5f520819
KY
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
5f520819
KY
1205 ;;
1206
1207 esac
1208done
1209
1210if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1212 as_fn_error $? "missing argument to $ac_option"
5f520819
KY
1213fi
1214
1215if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
22e05272 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5f520819
KY
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221fi
1222
1223# Check all directory arguments for consistency.
1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1228do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
22e05272 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
5f520819
KY
1242done
1243
1244# There might be people who depend on the old broken behavior: `$host'
1245# used to hold the argument of --host etc.
1246# FIXME: To remove some day.
1247build=$build_alias
1248host=$host_alias
1249target=$target_alias
1250
1251# FIXME: To remove some day.
1252if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
5f520819
KY
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258fi
1259
1260ac_tool_prefix=
1261test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263test "$silent" = yes && exec 6>/dev/null
1264
1265
1266ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267ac_ls_di=`ls -di .` &&
1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1269 as_fn_error $? "working directory cannot be determined"
5f520819 1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1271 as_fn_error $? "pwd does not report name of working directory"
5f520819
KY
1272
1273
1274# Find the source files, if location was not specified.
1275if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283$as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305else
1306 ac_srcdir_defaulted=no
1307fi
1308if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5f520819
KY
1311fi
1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313ac_abs_confdir=`(
22e05272 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5f520819
KY
1315 pwd)`
1316# When building in place, set srcdir=.
1317if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319fi
1320# Remove unnecessary trailing slashes from srcdir.
1321# Double slashes in file names in object file debugging info
1322# mess up M-x gdb in Emacs.
1323case $srcdir in
1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325esac
1326for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331done
1332
1333#
1334# Report the --help message.
1335#
1336if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340\`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
1341
1342Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347Defaults for the options are specified in brackets.
1348
1349Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
22e05272 1354 -q, --quiet, --silent do not print \`checking ...' messages
5f520819
KY
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366By default, \`make install' will install all the files in
1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369for instance \`--prefix=\$HOME'.
1370
1371For better control, use the options below.
1372
1373Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393_ACEOF
1394
1395 cat <<\_ACEOF
1396
1397Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 --target=TARGET configure for building compilers for TARGET [HOST]
1406_ACEOF
1407fi
1408
1409if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
22e05272
JM
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-maintainer-mode
1422 enable make rules and dependencies not useful (and
1423 sometimes confusing) to the casual installer
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
5f520819
KY
1428 --enable-multilib build many library versions (default)
1429 --enable-version-specific-runtime-libs
1430 Specify that runtime libraries should be installed
1431 in a compiler-specific directory
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-static[=PKGS] build static libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437
1438Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
e8e66971
MR
1441 --with-toolexeclibdir=DIR
1442 install libraries built with a cross compiler within
1443 DIR
5f520819
KY
1444 --with-pic try to use only PIC/non-PIC objects [default=use
1445 both]
1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1447 --with-gcc-major-version-only
1448 use only GCC major number in filesystem paths
5f520819
KY
1449
1450Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5f520819
KY
1457 you have headers in a nonstandard directory <include dir>
1458 CXX C++ compiler command
1459 CXXFLAGS C++ compiler flags
1460 CPP C preprocessor
1461 CXXCPP C++ preprocessor
1462
1463Use these variables to override the choices made by `configure' or to help
1464it to find libraries and programs with nonstandard names/locations.
1465
1466Report bugs to the package provider.
1467_ACEOF
1468ac_status=$?
1469fi
1470
1471if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 continue
1477 ac_builddir=.
1478
1479case "$ac_dir" in
1480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481*)
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 esac ;;
1489esac
1490ac_abs_top_builddir=$ac_pwd
1491ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492# for backward compatibility:
1493ac_top_builddir=$ac_top_build_prefix
1494
1495case $srcdir in
1496 .) # We are building in place.
1497 ac_srcdir=.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1504 *) # Relative name.
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508esac
1509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1524fi
1525
1526test -n "$ac_init_help" && exit $ac_status
1527if $ac_init_version; then
1528 cat <<\_ACEOF
1529MIC Offload Runtime Library configure 1.0
22e05272 1530generated by GNU Autoconf 2.69
5f520819 1531
22e05272 1532Copyright (C) 2012 Free Software Foundation, Inc.
5f520819
KY
1533This configure script is free software; the Free Software Foundation
1534gives unlimited permission to copy, distribute and modify it.
1535_ACEOF
1536 exit
1537fi
1538
1539## ------------------------ ##
1540## Autoconf initialization. ##
1541## ------------------------ ##
1542
1543# ac_fn_c_try_compile LINENO
1544# --------------------------
1545# Try to compile conftest.$ac_ext, and return whether this succeeded.
1546ac_fn_c_try_compile ()
1547{
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554esac
1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556$as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570else
1571 $as_echo "$as_me: failed program was:" >&5
1572sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1
1575fi
22e05272
JM
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
5f520819
KY
1578
1579} # ac_fn_c_try_compile
1580
1581# ac_fn_cxx_try_compile LINENO
1582# ----------------------------
1583# Try to compile conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_cxx_try_compile ()
1585{
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_cxx_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608else
1609 $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613fi
22e05272
JM
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
5f520819
KY
1616
1617} # ac_fn_cxx_try_compile
1618
22e05272
JM
1619# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1620# -------------------------------------------
1621# Tests whether TYPE exists after having included INCLUDES, setting cache
1622# variable VAR accordingly.
1623ac_fn_c_check_type ()
5f520819
KY
1624{
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272
JM
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627$as_echo_n "checking for $2... " >&6; }
1628if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1630else
1631 eval "$3=no"
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633/* end confdefs.h. */
1634$4
1635int
1636main ()
1637{
1638if (sizeof ($2))
1639 return 0;
1640 ;
1641 return 0;
1642}
1643_ACEOF
1644if ac_fn_c_try_compile "$LINENO"; then :
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646/* end confdefs.h. */
1647$4
1648int
1649main ()
1650{
1651if (sizeof (($2)))
1652 return 0;
1653 ;
1654 return 0;
1655}
1656_ACEOF
1657if ac_fn_c_try_compile "$LINENO"; then :
1658
1659else
1660 eval "$3=yes"
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663fi
1664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665fi
1666eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668$as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671} # ac_fn_c_check_type
1672
1673# ac_fn_c_try_cpp LINENO
1674# ----------------------
1675# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_cpp ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
5f520819
KY
1680case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
22e05272 1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5f520819
KY
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272
JM
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5f520819 1696 test ! -s conftest.err
5f520819
KY
1697 }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
22e05272 1703 ac_retval=1
5f520819 1704fi
22e05272
JM
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
5f520819 1707
22e05272 1708} # ac_fn_c_try_cpp
5f520819 1709
22e05272 1710# ac_fn_c_try_run LINENO
5f520819 1711# ----------------------
22e05272
JM
1712# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713# that executables *can* be run.
1714ac_fn_c_try_run ()
5f520819
KY
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1717 if { { ac_try="$ac_link"
5f520819
KY
1718case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
22e05272
JM
1724 (eval "$ac_link") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1738 ac_retval=0
1739else
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=$ac_status
1745fi
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750} # ac_fn_c_try_run
1751
1752# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753# -------------------------------------------------------
1754# Tests whether HEADER exists and can be compiled using the include files in
1755# INCLUDES, setting the cache variable VAR accordingly.
1756ac_fn_c_check_header_compile ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760$as_echo_n "checking for $2... " >&6; }
1761if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h. */
1766$4
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771else
1772 eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} # ac_fn_c_check_header_compile
1782
1783# ac_fn_c_try_link LINENO
1784# -----------------------
1785# Try to link conftest.$ac_ext, and return whether this succeeded.
1786ac_fn_c_try_link ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
5f520819
KY
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272
JM
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
5f520819 1807 test ! -s conftest.err
22e05272
JM
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 test -x conftest$ac_exeext
5f520819
KY
1811 }; then :
1812 ac_retval=0
1813else
1814 $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
22e05272 1817 ac_retval=1
5f520819 1818fi
22e05272
JM
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
5f520819 1826
22e05272 1827} # ac_fn_c_try_link
5f520819
KY
1828
1829# ac_fn_c_check_func LINENO FUNC VAR
1830# ----------------------------------
1831# Tests whether FUNC exists, setting the cache variable VAR accordingly
1832ac_fn_c_check_func ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836$as_echo_n "checking for $2... " >&6; }
22e05272 1837if eval \${$3+:} false; then :
5f520819
KY
1838 $as_echo_n "(cached) " >&6
1839else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h. */
1842/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1844#define $2 innocuous_$2
1845
1846/* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char $2 (); below.
1848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849 <limits.h> exists even on freestanding compilers. */
1850
1851#ifdef __STDC__
1852# include <limits.h>
1853#else
1854# include <assert.h>
1855#endif
1856
1857#undef $2
1858
1859/* Override any GCC internal prototype to avoid an error.
1860 Use char because int might match the return type of a GCC
1861 builtin and then its argument prototype would still apply. */
1862#ifdef __cplusplus
1863extern "C"
1864#endif
1865char $2 ();
1866/* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869#if defined __stub_$2 || defined __stub___$2
1870choke me
1871#endif
1872
1873int
1874main ()
1875{
1876return $2 ();
1877 ;
1878 return 0;
1879}
1880_ACEOF
1881if ac_fn_c_try_link "$LINENO"; then :
1882 eval "$3=yes"
1883else
1884 eval "$3=no"
1885fi
1886rm -f core conftest.err conftest.$ac_objext \
1887 conftest$ac_exeext conftest.$ac_ext
1888fi
1889eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
22e05272 1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5f520819
KY
1893
1894} # ac_fn_c_check_func
1895
5f520819
KY
1896# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1897# -------------------------------------------------------
1898# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1899# the include files in INCLUDES and setting the cache variable VAR
1900# accordingly.
1901ac_fn_c_check_header_mongrel ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1904 if eval \${$3+:} false; then :
5f520819
KY
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
22e05272 1907if eval \${$3+:} false; then :
5f520819
KY
1908 $as_echo_n "(cached) " >&6
1909fi
1910eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913else
1914 # Is the header compilable?
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1916$as_echo_n "checking $2 usability... " >&6; }
1917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h. */
1919$4
1920#include <$2>
1921_ACEOF
1922if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_header_compiler=yes
1924else
1925 ac_header_compiler=no
1926fi
1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1929$as_echo "$ac_header_compiler" >&6; }
1930
1931# Is the header present?
1932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1933$as_echo_n "checking $2 presence... " >&6; }
1934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936#include <$2>
1937_ACEOF
1938if ac_fn_c_try_cpp "$LINENO"; then :
1939 ac_header_preproc=yes
1940else
1941 ac_header_preproc=no
1942fi
22e05272 1943rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1945$as_echo "$ac_header_preproc" >&6; }
1946
1947# So? What about this header?
1948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1949 yes:no: )
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1951$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 ;;
1955 no:yes:* )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1957$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1959$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1961$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1963$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 ;;
1967esac
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
22e05272 1970if eval \${$3+:} false; then :
5f520819
KY
1971 $as_echo_n "(cached) " >&6
1972else
1973 eval "$3=\$ac_header_compiler"
1974fi
1975eval ac_res=\$$3
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977$as_echo "$ac_res" >&6; }
1978fi
22e05272 1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5f520819
KY
1980
1981} # ac_fn_c_check_header_mongrel
1982
1983# ac_fn_cxx_try_cpp LINENO
1984# ------------------------
1985# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1986ac_fn_cxx_try_cpp ()
1987{
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if { { ac_try="$ac_cpp conftest.$ac_ext"
1990case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993esac
1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995$as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1997 ac_status=$?
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2002 fi
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 2004 test $ac_status = 0; } > conftest.i && {
5f520819
KY
2005 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2006 test ! -s conftest.err
2007 }; then :
2008 ac_retval=0
2009else
2010 $as_echo "$as_me: failed program was:" >&5
2011sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_retval=1
2014fi
22e05272
JM
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 as_fn_set_status $ac_retval
5f520819
KY
2017
2018} # ac_fn_cxx_try_cpp
2019
2020# ac_fn_cxx_try_link LINENO
2021# -------------------------
2022# Try to link conftest.$ac_ext, and return whether this succeeded.
2023ac_fn_cxx_try_link ()
2024{
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 rm -f conftest.$ac_objext conftest$ac_exeext
2027 if { { ac_try="$ac_link"
2028case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_link") 2>conftest.err
2035 ac_status=$?
2036 if test -s conftest.err; then
2037 grep -v '^ *+' conftest.err >conftest.er1
2038 cat conftest.er1 >&5
2039 mv -f conftest.er1 conftest.err
2040 fi
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; } && {
2043 test -z "$ac_cxx_werror_flag" ||
2044 test ! -s conftest.err
2045 } && test -s conftest$ac_exeext && {
2046 test "$cross_compiling" = yes ||
22e05272 2047 test -x conftest$ac_exeext
5f520819
KY
2048 }; then :
2049 ac_retval=0
2050else
2051 $as_echo "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_retval=1
2055fi
2056 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2057 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2058 # interfere with the next link command; also delete a directory that is
2059 # left behind by Apple's compiler. We do this before executing the actions.
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status $ac_retval
5f520819
KY
2063
2064} # ac_fn_cxx_try_link
2065cat >config.log <<_ACEOF
2066This file contains any messages produced by compilers while
2067running configure, to aid debugging if configure makes a mistake.
2068
2069It was created by MIC Offload Runtime Library $as_me 1.0, which was
22e05272 2070generated by GNU Autoconf 2.69. Invocation command line was
5f520819
KY
2071
2072 $ $0 $@
2073
2074_ACEOF
2075exec 5>>config.log
2076{
2077cat <<_ASUNAME
2078## --------- ##
2079## Platform. ##
2080## --------- ##
2081
2082hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086uname -v = `(uname -v) 2>/dev/null || echo unknown`
2087
2088/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2090
2091/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2092/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2093/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2095/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2096/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2097/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2098
2099_ASUNAME
2100
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 $as_echo "PATH: $as_dir"
2107 done
2108IFS=$as_save_IFS
2109
2110} >&5
2111
2112cat >&5 <<_ACEOF
2113
2114
2115## ----------- ##
2116## Core tests. ##
2117## ----------- ##
2118
2119_ACEOF
2120
2121
2122# Keep a trace of the command line.
2123# Strip out --no-create and --no-recursion so they do not pile up.
2124# Strip out --silent because we don't want to record it for future runs.
2125# Also quote any args containing shell meta-characters.
2126# Make two passes to allow for proper duplicate-argument suppression.
2127ac_configure_args=
2128ac_configure_args0=
2129ac_configure_args1=
2130ac_must_keep_next=false
2131for ac_pass in 1 2
2132do
2133 for ac_arg
2134 do
2135 case $ac_arg in
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2139 continue ;;
2140 *\'*)
2141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 esac
2143 case $ac_pass in
2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2145 2)
2146 as_fn_append ac_configure_args1 " '$ac_arg'"
2147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2149 else
2150 case $ac_arg in
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157 esac
2158 ;;
2159 -* ) ac_must_keep_next=true ;;
2160 esac
2161 fi
2162 as_fn_append ac_configure_args " '$ac_arg'"
2163 ;;
2164 esac
2165 done
2166done
2167{ ac_configure_args0=; unset ac_configure_args0;}
2168{ ac_configure_args1=; unset ac_configure_args1;}
2169
2170# When interrupted or exit'd, cleanup temporary files, and complete
2171# config.log. We remove comments because anyway the quotes in there
2172# would cause problems or look ugly.
2173# WARNING: Use '\'' to represent an apostrophe within the trap.
2174# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175trap 'exit_status=$?
2176 # Save into config.log some information that might help in debugging.
2177 {
2178 echo
2179
22e05272 2180 $as_echo "## ---------------- ##
5f520819 2181## Cache variables. ##
22e05272 2182## ---------------- ##"
5f520819
KY
2183 echo
2184 # The following way of writing the cache mishandles newlines in values,
2185(
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in #(
2189 *${as_nl}*)
2190 case $ac_var in #(
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2193 esac
2194 case $ac_var in #(
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2198 esac ;;
2199 esac
2200 done
2201 (set) 2>&1 |
2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2204 sed -n \
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207 ;; #(
2208 *)
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 ;;
2211 esac |
2212 sort
2213)
2214 echo
2215
22e05272 2216 $as_echo "## ----------------- ##
5f520819 2217## Output variables. ##
22e05272 2218## ----------------- ##"
5f520819
KY
2219 echo
2220 for ac_var in $ac_subst_vars
2221 do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 $as_echo "$ac_var='\''$ac_val'\''"
2227 done | sort
2228 echo
2229
2230 if test -n "$ac_subst_files"; then
22e05272 2231 $as_echo "## ------------------- ##
5f520819 2232## File substitutions. ##
22e05272 2233## ------------------- ##"
5f520819
KY
2234 echo
2235 for ac_var in $ac_subst_files
2236 do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240 esac
2241 $as_echo "$ac_var='\''$ac_val'\''"
2242 done | sort
2243 echo
2244 fi
2245
2246 if test -s confdefs.h; then
22e05272 2247 $as_echo "## ----------- ##
5f520819 2248## confdefs.h. ##
22e05272 2249## ----------- ##"
5f520819
KY
2250 echo
2251 cat confdefs.h
2252 echo
2253 fi
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2257 } >&5
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260 exit $exit_status
2261' 0
2262for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264done
2265ac_signal=0
2266
2267# confdefs.h avoids OS command line length limits that DEFS can exceed.
2268rm -f -r conftest* confdefs.h
2269
2270$as_echo "/* confdefs.h */" > confdefs.h
2271
2272# Predefined preprocessor variables.
2273
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_NAME "$PACKAGE_NAME"
2276_ACEOF
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280_ACEOF
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_VERSION "$PACKAGE_VERSION"
2284_ACEOF
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_STRING "$PACKAGE_STRING"
2288_ACEOF
2289
2290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292_ACEOF
2293
2294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_URL "$PACKAGE_URL"
2296_ACEOF
2297
2298
2299# Let the site file select an alternate cache file if it wants to.
2300# Prefer an explicitly selected file to automatically selected ones.
2301ac_site_file1=NONE
2302ac_site_file2=NONE
2303if test -n "$CONFIG_SITE"; then
22e05272
JM
2304 # We do not want a PATH search for config.site.
2305 case $CONFIG_SITE in #((
2306 -*) ac_site_file1=./$CONFIG_SITE;;
2307 */*) ac_site_file1=$CONFIG_SITE;;
2308 *) ac_site_file1=./$CONFIG_SITE;;
2309 esac
5f520819
KY
2310elif test "x$prefix" != xNONE; then
2311 ac_site_file1=$prefix/share/config.site
2312 ac_site_file2=$prefix/etc/config.site
2313else
2314 ac_site_file1=$ac_default_prefix/share/config.site
2315 ac_site_file2=$ac_default_prefix/etc/config.site
2316fi
2317for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2318do
2319 test "x$ac_site_file" = xNONE && continue
22e05272 2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5f520819
KY
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2324 . "$ac_site_file" \
2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327as_fn_error $? "failed to load site script $ac_site_file
2328See \`config.log' for more details" "$LINENO" 5; }
5f520819
KY
2329 fi
2330done
2331
2332if test -r "$cache_file"; then
22e05272
JM
2333 # Some versions of bash will fail to source /dev/null (special files
2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5f520819
KY
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337$as_echo "$as_me: loading cache $cache_file" >&6;}
2338 case $cache_file in
2339 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340 *) . "./$cache_file";;
2341 esac
2342 fi
2343else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345$as_echo "$as_me: creating cache $cache_file" >&6;}
2346 >$cache_file
2347fi
2348
2349# Check that the precious variables saved in the cache have kept the same
2350# value.
2351ac_cache_corrupted=false
2352for ac_var in $ac_precious_vars; do
2353 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354 eval ac_new_set=\$ac_env_${ac_var}_set
2355 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356 eval ac_new_val=\$ac_env_${ac_var}_value
2357 case $ac_old_set,$ac_new_set in
2358 set,)
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2360$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2362 ,set)
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2364$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2365 ac_cache_corrupted=: ;;
2366 ,);;
2367 *)
2368 if test "x$ac_old_val" != "x$ac_new_val"; then
2369 # differences in whitespace do not lead to failure.
2370 ac_old_val_w=`echo x $ac_old_val`
2371 ac_new_val_w=`echo x $ac_new_val`
2372 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2375 ac_cache_corrupted=:
2376 else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2378$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379 eval $ac_var=\$ac_old_val
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2382$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2384$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2385 fi;;
2386 esac
2387 # Pass precious variables to config.status.
2388 if test "$ac_new_set" = set; then
2389 case $ac_new_val in
2390 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2391 *) ac_arg=$ac_var=$ac_new_val ;;
2392 esac
2393 case " $ac_configure_args " in
2394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2395 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2396 esac
2397 fi
2398done
2399if $ac_cache_corrupted; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2404 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5f520819
KY
2405fi
2406## -------------------- ##
2407## Main body of script. ##
2408## -------------------- ##
2409
2410ac_ext=c
2411ac_cpp='$CPP $CPPFLAGS'
2412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415
2416
2417
2418
2419
2420
2421ac_aux_dir=
2422for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2423 if test -f "$ac_dir/install-sh"; then
2424 ac_aux_dir=$ac_dir
2425 ac_install_sh="$ac_aux_dir/install-sh -c"
2426 break
2427 elif test -f "$ac_dir/install.sh"; then
2428 ac_aux_dir=$ac_dir
2429 ac_install_sh="$ac_aux_dir/install.sh -c"
2430 break
2431 elif test -f "$ac_dir/shtool"; then
2432 ac_aux_dir=$ac_dir
2433 ac_install_sh="$ac_aux_dir/shtool install -c"
2434 break
2435 fi
5f520819
KY
2436done
2437if test -z "$ac_aux_dir"; then
22e05272 2438 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5f520819
KY
2439fi
2440
2441# These three variables are undocumented and unsupported,
2442# and are intended to be withdrawn in a future Autoconf release.
2443# They can cause serious problems if a builder's source tree is in a directory
2444# whose full name contains unusual characters.
2445ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2446ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2447ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2448
2449
2450# Make sure we can run config.sub.
2451$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2452 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5f520819
KY
2453
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2455$as_echo_n "checking build system type... " >&6; }
22e05272 2456if ${ac_cv_build+:} false; then :
5f520819
KY
2457 $as_echo_n "(cached) " >&6
2458else
2459 ac_build_alias=$build_alias
2460test "x$ac_build_alias" = x &&
2461 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2462test "x$ac_build_alias" = x &&
22e05272 2463 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5f520819 2464ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5f520819
KY
2466
2467fi
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2469$as_echo "$ac_cv_build" >&6; }
2470case $ac_cv_build in
2471*-*-*) ;;
22e05272 2472*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5f520819
KY
2473esac
2474build=$ac_cv_build
2475ac_save_IFS=$IFS; IFS='-'
2476set x $ac_cv_build
2477shift
2478build_cpu=$1
2479build_vendor=$2
2480shift; shift
2481# Remember, the first character of IFS is used to create $*,
2482# except with old shells:
2483build_os=$*
2484IFS=$ac_save_IFS
2485case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2486
2487
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2489$as_echo_n "checking host system type... " >&6; }
22e05272 2490if ${ac_cv_host+:} false; then :
5f520819
KY
2491 $as_echo_n "(cached) " >&6
2492else
2493 if test "x$host_alias" = x; then
2494 ac_cv_host=$ac_cv_build
2495else
2496 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5f520819
KY
2498fi
2499
2500fi
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2502$as_echo "$ac_cv_host" >&6; }
2503case $ac_cv_host in
2504*-*-*) ;;
22e05272 2505*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5f520819
KY
2506esac
2507host=$ac_cv_host
2508ac_save_IFS=$IFS; IFS='-'
2509set x $ac_cv_host
2510shift
2511host_cpu=$1
2512host_vendor=$2
2513shift; shift
2514# Remember, the first character of IFS is used to create $*,
2515# except with old shells:
2516host_os=$*
2517IFS=$ac_save_IFS
2518case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2519
2520
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2522$as_echo_n "checking target system type... " >&6; }
22e05272 2523if ${ac_cv_target+:} false; then :
5f520819
KY
2524 $as_echo_n "(cached) " >&6
2525else
2526 if test "x$target_alias" = x; then
2527 ac_cv_target=$ac_cv_host
2528else
2529 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5f520819
KY
2531fi
2532
2533fi
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2535$as_echo "$ac_cv_target" >&6; }
2536case $ac_cv_target in
2537*-*-*) ;;
22e05272 2538*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5f520819
KY
2539esac
2540target=$ac_cv_target
2541ac_save_IFS=$IFS; IFS='-'
2542set x $ac_cv_target
2543shift
2544target_cpu=$1
2545target_vendor=$2
2546shift; shift
2547# Remember, the first character of IFS is used to create $*,
2548# except with old shells:
2549target_os=$*
2550IFS=$ac_save_IFS
2551case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2552
2553
2554# The aliases save the names the user supplied, while $host etc.
2555# will get canonicalized.
2556test -n "$target_alias" &&
2557 test "$program_prefix$program_suffix$program_transform_name" = \
2558 NONENONEs,x,x, &&
2559 program_prefix=${target_alias}-
2560
2561target_alias=${target_alias-$host_alias}
2562
2563
22e05272 2564am__api_version='1.15'
5f520819
KY
2565
2566# Find a good install program. We prefer a C program (faster),
2567# so one script is as good as another. But avoid the broken or
2568# incompatible versions:
2569# SysV /etc/install, /usr/sbin/install
2570# SunOS /usr/etc/install
2571# IRIX /sbin/install
2572# AIX /bin/install
2573# AmigaOS /C/install, which installs bootblocks on floppy discs
2574# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2575# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2576# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2577# OS/2's system install, which has a completely different semantic
2578# ./install, which can be erroneously created by make from ./install.sh.
2579# Reject install programs that cannot install multiple files.
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2581$as_echo_n "checking for a BSD-compatible install... " >&6; }
2582if test -z "$INSTALL"; then
22e05272 2583if ${ac_cv_path_install+:} false; then :
5f520819
KY
2584 $as_echo_n "(cached) " >&6
2585else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 # Account for people who put trailing slashes in PATH elements.
2592case $as_dir/ in #((
2593 ./ | .// | /[cC]/* | \
2594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2595 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2596 /usr/ucb/* ) ;;
2597 *)
2598 # OSF1 and SCO ODT 3.0 have their own names for install.
2599 # Don't use installbsd from OSF since it installs stuff as root
2600 # by default.
2601 for ac_prog in ginstall scoinst install; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2603 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5f520819
KY
2604 if test $ac_prog = install &&
2605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # AIX install. It has an incompatible calling convention.
2607 :
2608 elif test $ac_prog = install &&
2609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2610 # program-specific install script used by HP pwplus--don't use.
2611 :
2612 else
2613 rm -rf conftest.one conftest.two conftest.dir
2614 echo one > conftest.one
2615 echo two > conftest.two
2616 mkdir conftest.dir
2617 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2618 test -s conftest.one && test -s conftest.two &&
2619 test -s conftest.dir/conftest.one &&
2620 test -s conftest.dir/conftest.two
2621 then
2622 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2623 break 3
2624 fi
2625 fi
2626 fi
2627 done
2628 done
2629 ;;
2630esac
2631
2632 done
2633IFS=$as_save_IFS
2634
2635rm -rf conftest.one conftest.two conftest.dir
2636
2637fi
2638 if test "${ac_cv_path_install+set}" = set; then
2639 INSTALL=$ac_cv_path_install
2640 else
2641 # As a last resort, use the slow shell script. Don't cache a
2642 # value for INSTALL within a source directory, because that will
2643 # break other packages using the cache if that directory is
2644 # removed, or if the value is a relative name.
2645 INSTALL=$ac_install_sh
2646 fi
2647fi
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2649$as_echo "$INSTALL" >&6; }
2650
2651# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2652# It thinks the first close brace ends the variable substitution.
2653test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2654
2655test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2656
2657test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2660$as_echo_n "checking whether build environment is sane... " >&6; }
5f520819
KY
2661# Reject unsafe characters in $srcdir or the absolute working directory
2662# name. Accept space and tab only in the latter.
2663am_lf='
2664'
2665case `pwd` in
2666 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2667 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5f520819
KY
2668esac
2669case $srcdir in
2670 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2671 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5f520819
KY
2672esac
2673
22e05272 2674# Do 'set' in a subshell so we don't clobber the current shell's
5f520819
KY
2675# arguments. Must try -L first in case configure is actually a
2676# symlink; some systems play weird games with the mod time of symlinks
2677# (eg FreeBSD returns the mod time of the symlink's containing
2678# directory).
2679if (
22e05272
JM
2680 am_has_slept=no
2681 for am_try in 1 2; do
2682 echo "timestamp, slept: $am_has_slept" > conftest.file
2683 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2684 if test "$*" = "X"; then
2685 # -L didn't work.
2686 set X `ls -t "$srcdir/configure" conftest.file`
2687 fi
2688 if test "$*" != "X $srcdir/configure conftest.file" \
2689 && test "$*" != "X conftest.file $srcdir/configure"; then
2690
2691 # If neither matched, then we have a broken ls. This can happen
2692 # if, for instance, CONFIG_SHELL is bash and it inherits a
2693 # broken ls alias from the environment. This has actually
2694 # happened. Such a system could not be considered "sane".
2695 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2696 alias in your environment" "$LINENO" 5
2697 fi
2698 if test "$2" = conftest.file || test $am_try -eq 2; then
2699 break
2700 fi
2701 # Just in case.
2702 sleep 1
2703 am_has_slept=yes
2704 done
5f520819
KY
2705 test "$2" = conftest.file
2706 )
2707then
2708 # Ok.
2709 :
2710else
22e05272 2711 as_fn_error $? "newly created file is older than distributed files!
5f520819
KY
2712Check your system clock" "$LINENO" 5
2713fi
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715$as_echo "yes" >&6; }
22e05272
JM
2716# If we didn't sleep, we still need to ensure time stamps of config.status and
2717# generated files are strictly newer.
2718am_sleep_pid=
2719if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2720 ( sleep 1 ) &
2721 am_sleep_pid=$!
2722fi
2723
2724rm -f conftest.file
2725
5f520819
KY
2726test "$program_prefix" != NONE &&
2727 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2728# Use a double $ so make ignores it.
2729test "$program_suffix" != NONE &&
2730 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2731# Double any \ or $.
2732# By default was `s,x,x', remove it if useless.
2733ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2734program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2735
22e05272
JM
2736# Expand $ac_aux_dir to an absolute path.
2737am_aux_dir=`cd "$ac_aux_dir" && pwd`
5f520819
KY
2738
2739if test x"${MISSING+set}" != xset; then
2740 case $am_aux_dir in
2741 *\ * | *\ *)
2742 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2743 *)
2744 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2745 esac
2746fi
2747# Use eval to expand $SHELL
22e05272
JM
2748if eval "$MISSING --is-lightweight"; then
2749 am_missing_run="$MISSING "
5f520819
KY
2750else
2751 am_missing_run=
22e05272
JM
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2753$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5f520819
KY
2754fi
2755
22e05272 2756if test x"${install_sh+set}" != xset; then
5f520819
KY
2757 case $am_aux_dir in
2758 *\ * | *\ *)
2759 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2760 *)
2761 install_sh="\${SHELL} $am_aux_dir/install-sh"
2762 esac
2763fi
2764
22e05272
JM
2765# Installed binaries are usually stripped using 'strip' when the user
2766# run "make install-strip". However 'strip' might not be the right
5f520819 2767# tool to use in cross-compilation environments, therefore Automake
22e05272 2768# will honor the 'STRIP' environment variable to overrule this program.
5f520819
KY
2769if test "$cross_compiling" != no; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2772set dummy ${ac_tool_prefix}strip; ac_word=$2
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2775if ${ac_cv_prog_STRIP+:} false; then :
5f520819
KY
2776 $as_echo_n "(cached) " >&6
2777else
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2780else
2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782for as_dir in $PATH
2783do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
2788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792done
2793 done
2794IFS=$as_save_IFS
2795
2796fi
2797fi
2798STRIP=$ac_cv_prog_STRIP
2799if test -n "$STRIP"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2801$as_echo "$STRIP" >&6; }
2802else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804$as_echo "no" >&6; }
2805fi
2806
2807
2808fi
2809if test -z "$ac_cv_prog_STRIP"; then
2810 ac_ct_STRIP=$STRIP
2811 # Extract the first word of "strip", so it can be a program name with args.
2812set dummy strip; ac_word=$2
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2815if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5f520819
KY
2816 $as_echo_n "(cached) " >&6
2817else
2818 if test -n "$ac_ct_STRIP"; then
2819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
2828 ac_cv_prog_ac_ct_STRIP="strip"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833 done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2839if test -n "$ac_ct_STRIP"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2841$as_echo "$ac_ct_STRIP" >&6; }
2842else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845fi
2846
2847 if test "x$ac_ct_STRIP" = x; then
2848 STRIP=":"
2849 else
2850 case $cross_compiling:$ac_tool_warned in
2851yes:)
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854ac_tool_warned=yes ;;
2855esac
2856 STRIP=$ac_ct_STRIP
2857 fi
2858else
2859 STRIP="$ac_cv_prog_STRIP"
2860fi
2861
2862fi
2863INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2864
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2866$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2867if test -z "$MKDIR_P"; then
22e05272 2868 if ${ac_cv_path_mkdir+:} false; then :
5f520819
KY
2869 $as_echo_n "(cached) " >&6
2870else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2873do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_prog in mkdir gmkdir; do
2877 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2878 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5f520819
KY
2879 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2880 'mkdir (GNU coreutils) '* | \
2881 'mkdir (coreutils) '* | \
2882 'mkdir (fileutils) '4.1*)
2883 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2884 break 3;;
2885 esac
2886 done
2887 done
2888 done
2889IFS=$as_save_IFS
2890
2891fi
2892
22e05272 2893 test -d ./--version && rmdir ./--version
5f520819
KY
2894 if test "${ac_cv_path_mkdir+set}" = set; then
2895 MKDIR_P="$ac_cv_path_mkdir -p"
2896 else
2897 # As a last resort, use the slow shell script. Don't cache a
2898 # value for MKDIR_P within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the value is a relative name.
5f520819
KY
2901 MKDIR_P="$ac_install_sh -d"
2902 fi
2903fi
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2905$as_echo "$MKDIR_P" >&6; }
2906
5f520819
KY
2907for ac_prog in gawk mawk nawk awk
2908do
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910set dummy $ac_prog; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2913if ${ac_cv_prog_AWK+:} false; then :
5f520819
KY
2914 $as_echo_n "(cached) " >&6
2915else
2916 if test -n "$AWK"; then
2917 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
2926 ac_cv_prog_AWK="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930done
2931 done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936AWK=$ac_cv_prog_AWK
2937if test -n "$AWK"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2939$as_echo "$AWK" >&6; }
2940else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945
2946 test -n "$AWK" && break
2947done
2948
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2950$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2951set x ${MAKE-make}
2952ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2953if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5f520819
KY
2954 $as_echo_n "(cached) " >&6
2955else
2956 cat >conftest.make <<\_ACEOF
2957SHELL = /bin/sh
2958all:
2959 @echo '@@@%%%=$(MAKE)=@@@%%%'
2960_ACEOF
22e05272 2961# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5f520819
KY
2962case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963 *@@@%%%=?*=@@@%%%*)
2964 eval ac_cv_prog_make_${ac_make}_set=yes;;
2965 *)
2966 eval ac_cv_prog_make_${ac_make}_set=no;;
2967esac
2968rm -f conftest.make
2969fi
2970if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972$as_echo "yes" >&6; }
2973 SET_MAKE=
2974else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977 SET_MAKE="MAKE=${MAKE-make}"
2978fi
2979
2980rm -rf .tst 2>/dev/null
2981mkdir .tst 2>/dev/null
2982if test -d .tst; then
2983 am__leading_dot=.
2984else
2985 am__leading_dot=_
2986fi
2987rmdir .tst 2>/dev/null
2988
22e05272
JM
2989# Check whether --enable-silent-rules was given.
2990if test "${enable_silent_rules+set}" = set; then :
2991 enableval=$enable_silent_rules;
2992fi
2993
2994case $enable_silent_rules in # (((
2995 yes) AM_DEFAULT_VERBOSITY=0;;
2996 no) AM_DEFAULT_VERBOSITY=1;;
2997 *) AM_DEFAULT_VERBOSITY=1;;
2998esac
2999am_make=${MAKE-make}
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3001$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3002if ${am_cv_make_support_nested_variables+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004else
3005 if $as_echo 'TRUE=$(BAR$(V))
3006BAR0=false
3007BAR1=true
3008V=1
3009am__doit:
3010 @$(TRUE)
3011.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3012 am_cv_make_support_nested_variables=yes
3013else
3014 am_cv_make_support_nested_variables=no
3015fi
3016fi
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3018$as_echo "$am_cv_make_support_nested_variables" >&6; }
3019if test $am_cv_make_support_nested_variables = yes; then
3020 AM_V='$(V)'
3021 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3022else
3023 AM_V=$AM_DEFAULT_VERBOSITY
3024 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3025fi
3026AM_BACKSLASH='\'
3027
5f520819
KY
3028if test "`cd $srcdir && pwd`" != "`pwd`"; then
3029 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3030 # is not polluted with repeated "-I."
3031 am__isrc=' -I$(srcdir)'
3032 # test to see if srcdir already configured
3033 if test -f $srcdir/config.status; then
22e05272 3034 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5f520819
KY
3035 fi
3036fi
3037
3038# test whether we have cygpath
3039if test -z "$CYGPATH_W"; then
3040 if (cygpath --version) >/dev/null 2>/dev/null; then
3041 CYGPATH_W='cygpath -w'
3042 else
3043 CYGPATH_W=echo
3044 fi
3045fi
3046
3047
3048# Define the identity of the package.
3049 PACKAGE='liboffloadmic'
3050 VERSION='1.0'
3051
3052
3053cat >>confdefs.h <<_ACEOF
3054#define PACKAGE "$PACKAGE"
3055_ACEOF
3056
3057
3058cat >>confdefs.h <<_ACEOF
3059#define VERSION "$VERSION"
3060_ACEOF
3061
3062# Some tools Automake needs.
3063
3064ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3065
3066
3067AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3068
3069
3070AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3071
3072
3073AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3074
3075
3076MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3077
22e05272
JM
3078# For better backward compatibility. To be removed once Automake 1.9.x
3079# dies out for good. For more background, see:
3080# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3081# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3082mkdir_p='$(MKDIR_P)'
3083
3084# We need awk for the "check" target (and possibly the TAP driver). The
3085# system "awk" is bad on some platforms.
735aacba
MH
3086# Always define AMTAR for backward compatibility. Yes, it's still used
3087# in the wild :-( We should find a proper way to deprecate it ...
3088AMTAR='$${TAR-tar}'
5f520819 3089
22e05272
JM
3090
3091# We'll loop over all known methods to create a tar archive until one works.
3092_am_tools='gnutar pax cpio none'
3093
735aacba 3094am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5f520819
KY
3095
3096
3097
3098
3099
3100
22e05272
JM
3101# POSIX will say in a future version that running "rm -f" with no argument
3102# is OK; and we want to be able to make that assumption in our Makefile
3103# recipes. So use an aggressive probe to check that the usage we want is
3104# actually supported "in the wild" to an acceptable degree.
3105# See automake bug#10828.
3106# To make any issue more visible, cause the running configure to be aborted
3107# by default if the 'rm' program in use doesn't match our expectations; the
3108# user can still override this though.
3109if rm -f && rm -fr && rm -rf; then : OK; else
3110 cat >&2 <<'END'
3111Oops!
3112
3113Your 'rm' program seems unable to run without file operands specified
3114on the command line, even when the '-f' option is present. This is contrary
3115to the behaviour of most rm programs out there, and not conforming with
3116the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3117
3118Please tell bug-automake@gnu.org about your system, including the value
3119of your $PATH and any error possibly output before this message. This
3120can help us improve future automake versions.
3121
3122END
3123 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3124 echo 'Configuration will proceed anyway, since you have set the' >&2
3125 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3126 echo >&2
3127 else
3128 cat >&2 <<'END'
3129Aborting the configuration process, to ensure you take notice of the issue.
3130
3131You can download and install GNU coreutils to get an 'rm' implementation
3132that behaves properly: <http://www.gnu.org/software/coreutils/>.
3133
3134If you want to complete the configuration process using your problematic
3135'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3136to "yes", and re-run configure.
3137
3138END
3139 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3140 fi
3141fi
3142
3143
5f520819
KY
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3145$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3146 # Check whether --enable-maintainer-mode was given.
3147if test "${enable_maintainer_mode+set}" = set; then :
3148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3149else
3150 USE_MAINTAINER_MODE=no
3151fi
3152
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3154$as_echo "$USE_MAINTAINER_MODE" >&6; }
3155 if test $USE_MAINTAINER_MODE = yes; then
3156 MAINTAINER_MODE_TRUE=
3157 MAINTAINER_MODE_FALSE='#'
3158else
3159 MAINTAINER_MODE_TRUE='#'
3160 MAINTAINER_MODE_FALSE=
3161fi
3162
3163 MAINT=$MAINTAINER_MODE_TRUE
3164
3165
3166
3167ac_ext=c
3168ac_cpp='$CPP $CPPFLAGS'
3169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172if test -n "$ac_tool_prefix"; then
3173 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3174set dummy ${ac_tool_prefix}gcc; 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; }
22e05272 3177if ${ac_cv_prog_CC+:} false; then :
5f520819
KY
3178 $as_echo_n "(cached) " >&6
3179else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3190 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194done
3195 done
3196IFS=$as_save_IFS
3197
3198fi
3199fi
3200CC=$ac_cv_prog_CC
3201if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203$as_echo "$CC" >&6; }
3204else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207fi
3208
3209
3210fi
3211if test -z "$ac_cv_prog_CC"; then
3212 ac_ct_CC=$CC
3213 # Extract the first word of "gcc", so it can be a program name with args.
3214set dummy gcc; 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; }
22e05272 3217if ${ac_cv_prog_ac_ct_CC+:} false; then :
5f520819
KY
3218 $as_echo_n "(cached) " >&6
3219else
3220 if test -n "$ac_ct_CC"; then
3221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3222else
3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH
3225do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3230 ac_cv_prog_ac_ct_CC="gcc"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234done
3235 done
3236IFS=$as_save_IFS
3237
3238fi
3239fi
3240ac_ct_CC=$ac_cv_prog_ac_ct_CC
3241if test -n "$ac_ct_CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3243$as_echo "$ac_ct_CC" >&6; }
3244else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246$as_echo "no" >&6; }
3247fi
3248
3249 if test "x$ac_ct_CC" = x; then
3250 CC=""
3251 else
3252 case $cross_compiling:$ac_tool_warned in
3253yes:)
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;}
3256ac_tool_warned=yes ;;
3257esac
3258 CC=$ac_ct_CC
3259 fi
3260else
3261 CC="$ac_cv_prog_CC"
3262fi
3263
3264if test -z "$CC"; then
3265 if test -n "$ac_tool_prefix"; then
3266 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3267set dummy ${ac_tool_prefix}cc; ac_word=$2
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3270if ${ac_cv_prog_CC+:} false; then :
5f520819
KY
3271 $as_echo_n "(cached) " >&6
3272else
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3283 ac_cv_prog_CC="${ac_tool_prefix}cc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287done
3288 done
3289IFS=$as_save_IFS
3290
3291fi
3292fi
3293CC=$ac_cv_prog_CC
3294if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296$as_echo "$CC" >&6; }
3297else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300fi
3301
3302
3303 fi
3304fi
3305if test -z "$CC"; then
3306 # Extract the first word of "cc", so it can be a program name with args.
3307set dummy cc; ac_word=$2
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3310if ${ac_cv_prog_CC+:} false; then :
5f520819
KY
3311 $as_echo_n "(cached) " >&6
3312else
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC="$CC" # Let the user override the test.
3315else
3316 ac_prog_rejected=no
3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318for as_dir in $PATH
3319do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3324 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3325 ac_prog_rejected=yes
3326 continue
3327 fi
3328 ac_cv_prog_CC="cc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332done
3333 done
3334IFS=$as_save_IFS
3335
3336if test $ac_prog_rejected = yes; then
3337 # We found a bogon in the path, so make sure we never use it.
3338 set dummy $ac_cv_prog_CC
3339 shift
3340 if test $# != 0; then
3341 # We chose a different compiler from the bogus one.
3342 # However, it has the same basename, so the bogon will be chosen
3343 # first if we set CC to just the basename; use the full file name.
3344 shift
3345 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3346 fi
3347fi
3348fi
3349fi
3350CC=$ac_cv_prog_CC
3351if test -n "$CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353$as_echo "$CC" >&6; }
3354else
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356$as_echo "no" >&6; }
3357fi
3358
3359
3360fi
3361if test -z "$CC"; then
3362 if test -n "$ac_tool_prefix"; then
3363 for ac_prog in cl.exe
3364 do
3365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3366set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3369if ${ac_cv_prog_CC+:} false; then :
5f520819
KY
3370 $as_echo_n "(cached) " >&6
3371else
3372 if test -n "$CC"; then
3373 ac_cv_prog_CC="$CC" # Let the user override the test.
3374else
3375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376for as_dir in $PATH
3377do
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3382 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386done
3387 done
3388IFS=$as_save_IFS
3389
3390fi
3391fi
3392CC=$ac_cv_prog_CC
3393if test -n "$CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395$as_echo "$CC" >&6; }
3396else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398$as_echo "no" >&6; }
3399fi
3400
3401
3402 test -n "$CC" && break
3403 done
3404fi
3405if test -z "$CC"; then
3406 ac_ct_CC=$CC
3407 for ac_prog in cl.exe
3408do
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410set dummy $ac_prog; ac_word=$2
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3413if ${ac_cv_prog_ac_ct_CC+:} false; then :
5f520819
KY
3414 $as_echo_n "(cached) " >&6
3415else
3416 if test -n "$ac_ct_CC"; then
3417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3418else
3419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420for as_dir in $PATH
3421do
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3426 ac_cv_prog_ac_ct_CC="$ac_prog"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3429 fi
3430done
3431 done
3432IFS=$as_save_IFS
3433
3434fi
3435fi
3436ac_ct_CC=$ac_cv_prog_ac_ct_CC
3437if test -n "$ac_ct_CC"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3439$as_echo "$ac_ct_CC" >&6; }
3440else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442$as_echo "no" >&6; }
3443fi
3444
3445
3446 test -n "$ac_ct_CC" && break
3447done
3448
3449 if test "x$ac_ct_CC" = x; then
3450 CC=""
3451 else
3452 case $cross_compiling:$ac_tool_warned in
3453yes:)
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3456ac_tool_warned=yes ;;
3457esac
3458 CC=$ac_ct_CC
3459 fi
3460fi
3461
3462fi
3463
3464
3465test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3467as_fn_error $? "no acceptable C compiler found in \$PATH
3468See \`config.log' for more details" "$LINENO" 5; }
5f520819
KY
3469
3470# Provide some information about the compiler.
3471$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3472set X $ac_compile
3473ac_compiler=$2
3474for ac_option in --version -v -V -qversion; do
3475 { { ac_try="$ac_compiler $ac_option >&5"
3476case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479esac
3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481$as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3483 ac_status=$?
3484 if test -s conftest.err; then
3485 sed '10a\
3486... rest of stderr output deleted ...
3487 10q' conftest.err >conftest.er1
3488 cat conftest.er1 >&5
5f520819 3489 fi
22e05272 3490 rm -f conftest.er1 conftest.err
5f520819
KY
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }
3493done
3494
3495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496/* end confdefs.h. */
3497
3498int
3499main ()
3500{
3501
3502 ;
3503 return 0;
3504}
3505_ACEOF
3506ac_clean_files_save=$ac_clean_files
22e05272 3507ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5f520819
KY
3508# Try to create an executable without -o first, disregard a.out.
3509# It will help us diagnose broken compilers, and finding out an intuition
3510# of exeext.
22e05272
JM
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3512$as_echo_n "checking whether the C compiler works... " >&6; }
5f520819
KY
3513ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3514
3515# The possible output files:
3516ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3517
3518ac_rmfiles=
3519for ac_file in $ac_files
3520do
3521 case $ac_file in
3522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3523 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3524 esac
3525done
3526rm -f $ac_rmfiles
3527
3528if { { ac_try="$ac_link_default"
3529case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534$as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_link_default") 2>&5
3536 ac_status=$?
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; then :
3539 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3540# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3541# in a Makefile. We should not override ac_cv_exeext if it was cached,
3542# so that the user can short-circuit this test for compilers unknown to
3543# Autoconf.
3544for ac_file in $ac_files ''
3545do
3546 test -f "$ac_file" || continue
3547 case $ac_file in
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3549 ;;
3550 [ab].out )
3551 # We found the default executable, but exeext='' is most
3552 # certainly right.
3553 break;;
3554 *.* )
3555 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3556 then :; else
3557 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3558 fi
3559 # We set ac_cv_exeext here because the later test for it is not
3560 # safe: cross compilers may not add the suffix if given an `-o'
3561 # argument, so we may need to know it at that point already.
3562 # Even if this section looks crufty: it has the advantage of
3563 # actually working.
3564 break;;
3565 * )
3566 break;;
3567 esac
3568done
3569test "$ac_cv_exeext" = no && ac_cv_exeext=
3570
3571else
3572 ac_file=''
3573fi
5f520819 3574if test -z "$ac_file"; then :
22e05272
JM
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576$as_echo "no" >&6; }
3577$as_echo "$as_me: failed program was:" >&5
5f520819
KY
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3582as_fn_error 77 "C compiler cannot create executables
3583See \`config.log' for more details" "$LINENO" 5; }
3584else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3586$as_echo "yes" >&6; }
5f520819 3587fi
22e05272
JM
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3589$as_echo_n "checking for C compiler default output file name... " >&6; }
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3591$as_echo "$ac_file" >&6; }
5f520819
KY
3592ac_exeext=$ac_cv_exeext
3593
22e05272 3594rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5f520819 3595ac_clean_files=$ac_clean_files_save
5f520819
KY
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3597$as_echo_n "checking for suffix of executables... " >&6; }
3598if { { ac_try="$ac_link"
3599case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602esac
3603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604$as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_link") 2>&5
3606 ac_status=$?
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }; then :
3609 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3610# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3611# work properly (i.e., refer to `conftest.exe'), while it won't with
3612# `rm'.
3613for ac_file in conftest.exe conftest conftest.*; do
3614 test -f "$ac_file" || continue
3615 case $ac_file in
3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3617 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618 break;;
3619 * ) break;;
3620 esac
3621done
3622else
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3625as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3626See \`config.log' for more details" "$LINENO" 5; }
5f520819 3627fi
22e05272 3628rm -f conftest conftest$ac_cv_exeext
5f520819
KY
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3630$as_echo "$ac_cv_exeext" >&6; }
3631
3632rm -f conftest.$ac_ext
3633EXEEXT=$ac_cv_exeext
3634ac_exeext=$EXEEXT
22e05272
JM
3635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h. */
3637#include <stdio.h>
3638int
3639main ()
3640{
3641FILE *f = fopen ("conftest.out", "w");
3642 return ferror (f) || fclose (f) != 0;
3643
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648ac_clean_files="$ac_clean_files conftest.out"
3649# Check that the compiler produces executables we can run. If not, either
3650# the compiler is broken, or we cross compile.
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3652$as_echo_n "checking whether we are cross compiling... " >&6; }
3653if test "$cross_compiling" != yes; then
3654 { { ac_try="$ac_link"
3655case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658esac
3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660$as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }
3665 if { ac_try='./conftest$ac_cv_exeext'
3666 { { case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671$as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_try") 2>&5
3673 ac_status=$?
3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }; }; then
3676 cross_compiling=no
3677 else
3678 if test "$cross_compiling" = maybe; then
3679 cross_compiling=yes
3680 else
3681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683as_fn_error $? "cannot run C compiled programs.
3684If you meant to cross compile, use \`--host'.
3685See \`config.log' for more details" "$LINENO" 5; }
3686 fi
3687 fi
3688fi
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3690$as_echo "$cross_compiling" >&6; }
3691
3692rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3693ac_clean_files=$ac_clean_files_save
5f520819
KY
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3695$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3696if ${ac_cv_objext+:} false; then :
5f520819
KY
3697 $as_echo_n "(cached) " >&6
3698else
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h. */
3701
3702int
3703main ()
3704{
3705
3706 ;
3707 return 0;
3708}
3709_ACEOF
3710rm -f conftest.o conftest.obj
3711if { { ac_try="$ac_compile"
3712case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715esac
3716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717$as_echo "$ac_try_echo"; } >&5
3718 (eval "$ac_compile") 2>&5
3719 ac_status=$?
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }; then :
3722 for ac_file in conftest.o conftest.obj conftest.*; do
3723 test -f "$ac_file" || continue;
3724 case $ac_file in
3725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3726 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3727 break;;
3728 esac
3729done
3730else
3731 $as_echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3736as_fn_error $? "cannot compute suffix of object files: cannot compile
3737See \`config.log' for more details" "$LINENO" 5; }
5f520819
KY
3738fi
3739rm -f conftest.$ac_cv_objext conftest.$ac_ext
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3742$as_echo "$ac_cv_objext" >&6; }
3743OBJEXT=$ac_cv_objext
3744ac_objext=$OBJEXT
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3746$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3747if ${ac_cv_c_compiler_gnu+:} false; then :
5f520819
KY
3748 $as_echo_n "(cached) " >&6
3749else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h. */
3752
3753int
3754main ()
3755{
3756#ifndef __GNUC__
3757 choke me
3758#endif
3759
3760 ;
3761 return 0;
3762}
3763_ACEOF
3764if ac_fn_c_try_compile "$LINENO"; then :
3765 ac_compiler_gnu=yes
3766else
3767 ac_compiler_gnu=no
3768fi
3769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770ac_cv_c_compiler_gnu=$ac_compiler_gnu
3771
3772fi
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3774$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3775if test $ac_compiler_gnu = yes; then
3776 GCC=yes
3777else
3778 GCC=
3779fi
3780ac_test_CFLAGS=${CFLAGS+set}
3781ac_save_CFLAGS=$CFLAGS
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3783$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3784if ${ac_cv_prog_cc_g+:} false; then :
5f520819
KY
3785 $as_echo_n "(cached) " >&6
3786else
3787 ac_save_c_werror_flag=$ac_c_werror_flag
3788 ac_c_werror_flag=yes
3789 ac_cv_prog_cc_g=no
3790 CFLAGS="-g"
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h. */
3793
3794int
3795main ()
3796{
3797
3798 ;
3799 return 0;
3800}
3801_ACEOF
3802if ac_fn_c_try_compile "$LINENO"; then :
3803 ac_cv_prog_cc_g=yes
3804else
3805 CFLAGS=""
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h. */
3808
3809int
3810main ()
3811{
3812
3813 ;
3814 return 0;
3815}
3816_ACEOF
3817if ac_fn_c_try_compile "$LINENO"; then :
3818
3819else
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3821 CFLAGS="-g"
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h. */
3824
3825int
3826main ()
3827{
3828
3829 ;
3830 return 0;
3831}
3832_ACEOF
3833if ac_fn_c_try_compile "$LINENO"; then :
3834 ac_cv_prog_cc_g=yes
3835fi
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837fi
3838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839fi
3840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 ac_c_werror_flag=$ac_save_c_werror_flag
3842fi
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3844$as_echo "$ac_cv_prog_cc_g" >&6; }
3845if test "$ac_test_CFLAGS" = set; then
3846 CFLAGS=$ac_save_CFLAGS
3847elif test $ac_cv_prog_cc_g = yes; then
3848 if test "$GCC" = yes; then
3849 CFLAGS="-g -O2"
3850 else
3851 CFLAGS="-g"
3852 fi
3853else
3854 if test "$GCC" = yes; then
3855 CFLAGS="-O2"
3856 else
3857 CFLAGS=
3858 fi
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3861$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3862if ${ac_cv_prog_cc_c89+:} false; then :
5f520819
KY
3863 $as_echo_n "(cached) " >&6
3864else
3865 ac_cv_prog_cc_c89=no
3866ac_save_CC=$CC
3867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h. */
3869#include <stdarg.h>
3870#include <stdio.h>
22e05272 3871struct stat;
5f520819
KY
3872/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3873struct buf { int x; };
3874FILE * (*rcsopen) (struct buf *, struct stat *, int);
3875static char *e (p, i)
3876 char **p;
3877 int i;
3878{
3879 return p[i];
3880}
3881static char *f (char * (*g) (char **, int), char **p, ...)
3882{
3883 char *s;
3884 va_list v;
3885 va_start (v,p);
3886 s = g (p, va_arg (v,int));
3887 va_end (v);
3888 return s;
3889}
3890
3891/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3892 function prototypes and stuff, but not '\xHH' hex character constants.
3893 These don't provoke an error unfortunately, instead are silently treated
3894 as 'x'. The following induces an error, until -std is added to get
3895 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3896 array size at least. It's necessary to write '\x00'==0 to get something
3897 that's true only with -std. */
3898int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3899
3900/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3901 inside strings and character constants. */
3902#define FOO(x) 'x'
3903int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3904
3905int test (int i, double x);
3906struct s1 {int (*f) (int a);};
3907struct s2 {int (*f) (double a);};
3908int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909int argc;
3910char **argv;
3911int
3912main ()
3913{
3914return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3915 ;
3916 return 0;
3917}
3918_ACEOF
3919for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3920 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3921do
3922 CC="$ac_save_CC $ac_arg"
3923 if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_cv_prog_cc_c89=$ac_arg
3925fi
3926rm -f core conftest.err conftest.$ac_objext
3927 test "x$ac_cv_prog_cc_c89" != "xno" && break
3928done
3929rm -f conftest.$ac_ext
3930CC=$ac_save_CC
3931
3932fi
3933# AC_CACHE_VAL
3934case "x$ac_cv_prog_cc_c89" in
3935 x)
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3937$as_echo "none needed" >&6; } ;;
3938 xno)
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3940$as_echo "unsupported" >&6; } ;;
3941 *)
3942 CC="$CC $ac_cv_prog_cc_c89"
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3944$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3945esac
3946if test "x$ac_cv_prog_cc_c89" != xno; then :
3947
3948fi
3949
3950ac_ext=c
3951ac_cpp='$CPP $CPPFLAGS'
3952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954ac_compiler_gnu=$ac_cv_c_compiler_gnu
22e05272
JM
3955
3956ac_ext=c
3957ac_cpp='$CPP $CPPFLAGS'
3958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3962$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3963if ${am_cv_prog_cc_c_o+:} false; then :
3964 $as_echo_n "(cached) " >&6
3965else
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h. */
3968
3969int
3970main ()
3971{
3972
3973 ;
3974 return 0;
3975}
3976_ACEOF
3977 # Make sure it works both with $CC and with simple cc.
3978 # Following AC_PROG_CC_C_O, we do the test twice because some
3979 # compilers refuse to overwrite an existing .o file with -o,
3980 # though they will create one.
3981 am_cv_prog_cc_c_o=yes
3982 for am_i in 1 2; do
3983 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3984 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } \
3988 && test -f conftest2.$ac_objext; then
3989 : OK
3990 else
3991 am_cv_prog_cc_c_o=no
3992 break
3993 fi
3994 done
3995 rm -f core conftest*
3996 unset am_i
3997fi
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3999$as_echo "$am_cv_prog_cc_c_o" >&6; }
4000if test "$am_cv_prog_cc_c_o" != yes; then
4001 # Losing compiler, so override with the script.
4002 # FIXME: It is wrong to rewrite CC.
4003 # But if we don't then we get into trouble of one sort or another.
4004 # A longer-term fix would be to have automake use am__CC in this case,
4005 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4006 CC="$am_aux_dir/compile $CC"
4007fi
4008ac_ext=c
4009ac_cpp='$CPP $CPPFLAGS'
4010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013
5f520819
KY
4014DEPDIR="${am__leading_dot}deps"
4015
4016ac_config_commands="$ac_config_commands depfiles"
4017
4018
4019am_make=${MAKE-make}
4020cat > confinc << 'END'
4021am__doit:
4022 @echo this is the am__doit target
4023.PHONY: am__doit
4024END
4025# If we don't find an include directive, just comment out the code.
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4027$as_echo_n "checking for style of include used by $am_make... " >&6; }
4028am__include="#"
4029am__quote=
4030_am_result=none
4031# First try GNU make style include.
4032echo "include confinc" > confmf
22e05272 4033# Ignore all kinds of additional output from 'make'.
5f520819
KY
4034case `$am_make -s -f confmf 2> /dev/null` in #(
4035*the\ am__doit\ target*)
4036 am__include=include
4037 am__quote=
4038 _am_result=GNU
4039 ;;
4040esac
4041# Now try BSD make style include.
4042if test "$am__include" = "#"; then
4043 echo '.include "confinc"' > confmf
4044 case `$am_make -s -f confmf 2> /dev/null` in #(
4045 *the\ am__doit\ target*)
4046 am__include=.include
4047 am__quote="\""
4048 _am_result=BSD
4049 ;;
4050 esac
4051fi
4052
4053
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4055$as_echo "$_am_result" >&6; }
4056rm -f confinc confmf
4057
4058# Check whether --enable-dependency-tracking was given.
4059if test "${enable_dependency_tracking+set}" = set; then :
4060 enableval=$enable_dependency_tracking;
4061fi
4062
4063if test "x$enable_dependency_tracking" != xno; then
4064 am_depcomp="$ac_aux_dir/depcomp"
4065 AMDEPBACKSLASH='\'
735aacba 4066 am__nodep='_no'
5f520819
KY
4067fi
4068 if test "x$enable_dependency_tracking" != xno; then
4069 AMDEP_TRUE=
4070 AMDEP_FALSE='#'
4071else
4072 AMDEP_TRUE='#'
4073 AMDEP_FALSE=
4074fi
4075
4076
4077
4078depcc="$CC" am_compiler_list=
4079
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4081$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4082if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5f520819
KY
4083 $as_echo_n "(cached) " >&6
4084else
4085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4086 # We make a subdir and do the tests there. Otherwise we can end up
4087 # making bogus files that we don't know about and never remove. For
4088 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4089 # making a dummy file named 'D' -- because '-MD' means "put the output
4090 # in D".
735aacba 4091 rm -rf conftest.dir
5f520819
KY
4092 mkdir conftest.dir
4093 # Copy depcomp to subdir because otherwise we won't find it if we're
4094 # using a relative directory.
4095 cp "$am_depcomp" conftest.dir
4096 cd conftest.dir
4097 # We will build objects and dependencies in a subdirectory because
4098 # it helps to detect inapplicable dependency modes. For instance
4099 # both Tru64's cc and ICC support -MD to output dependencies as a
4100 # side effect of compilation, but ICC will put the dependencies in
4101 # the current directory while Tru64 will put them in the object
4102 # directory.
4103 mkdir sub
4104
4105 am_cv_CC_dependencies_compiler_type=none
4106 if test "$am_compiler_list" = ""; then
4107 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4108 fi
4109 am__universal=false
4110 case " $depcc " in #(
4111 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4112 esac
4113
4114 for depmode in $am_compiler_list; do
4115 # Setup a source with many dependencies, because some compilers
4116 # like to wrap large dependency lists on column 80 (with \), and
4117 # we should not choose a depcomp mode which is confused by this.
4118 #
4119 # We need to recreate these files for each test, as the compiler may
4120 # overwrite some of them when testing with obscure command lines.
4121 # This happens at least with the AIX C compiler.
4122 : > sub/conftest.c
4123 for i in 1 2 3 4 5 6; do
4124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4125 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4126 # Solaris 10 /bin/sh.
4127 echo '/* dummy */' > sub/conftst$i.h
5f520819
KY
4128 done
4129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4130
22e05272 4131 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5f520819 4132 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4133 # handle '-M -o', and we need to detect this. Also, some Intel
4134 # versions had trouble with output in subdirs.
5f520819
KY
4135 am__obj=sub/conftest.${OBJEXT-o}
4136 am__minus_obj="-o $am__obj"
4137 case $depmode in
4138 gcc)
4139 # This depmode causes a compiler race in universal mode.
4140 test "$am__universal" = false || continue
4141 ;;
4142 nosideeffect)
22e05272
JM
4143 # After this tag, mechanisms are not by side-effect, so they'll
4144 # only be used when explicitly requested.
5f520819
KY
4145 if test "x$enable_dependency_tracking" = xyes; then
4146 continue
4147 else
4148 break
4149 fi
4150 ;;
735aacba 4151 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4152 # This compiler won't grok '-c -o', but also, the minuso test has
5f520819
KY
4153 # not run yet. These depmodes are late enough in the game, and
4154 # so weak that their functioning should not be impacted.
4155 am__obj=conftest.${OBJEXT-o}
4156 am__minus_obj=
4157 ;;
4158 none) break ;;
4159 esac
4160 if depmode=$depmode \
4161 source=sub/conftest.c object=$am__obj \
4162 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4163 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4164 >/dev/null 2>conftest.err &&
4165 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4168 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4169 # icc doesn't choke on unknown options, it will just issue warnings
4170 # or remarks (even with -Werror). So we grep stderr for any message
4171 # that says an option was ignored or not supported.
4172 # When given -MP, icc 7.0 and 7.1 complain thusly:
4173 # icc: Command line warning: ignoring option '-M'; no argument required
4174 # The diagnosis changed in icc 8.0:
4175 # icc: Command line remark: option '-MP' not supported
4176 if (grep 'ignoring option' conftest.err ||
4177 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4178 am_cv_CC_dependencies_compiler_type=$depmode
4179 break
4180 fi
4181 fi
4182 done
4183
4184 cd ..
4185 rm -rf conftest.dir
4186else
4187 am_cv_CC_dependencies_compiler_type=none
4188fi
4189
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4192$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4193CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4194
4195 if
4196 test "x$enable_dependency_tracking" != xno \
4197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4198 am__fastdepCC_TRUE=
4199 am__fastdepCC_FALSE='#'
4200else
4201 am__fastdepCC_TRUE='#'
4202 am__fastdepCC_FALSE=
4203fi
4204
4205
4206ac_ext=cpp
4207ac_cpp='$CXXCPP $CPPFLAGS'
4208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4211if test -z "$CXX"; then
4212 if test -n "$CCC"; then
4213 CXX=$CCC
4214 else
4215 if test -n "$ac_tool_prefix"; then
4216 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4217 do
4218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4222if ${ac_cv_prog_CXX+:} false; then :
5f520819
KY
4223 $as_echo_n "(cached) " >&6
4224else
4225 if test -n "$CXX"; then
4226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4227else
4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
4235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4238 fi
4239done
4240 done
4241IFS=$as_save_IFS
4242
4243fi
4244fi
4245CXX=$ac_cv_prog_CXX
4246if test -n "$CXX"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4248$as_echo "$CXX" >&6; }
4249else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251$as_echo "no" >&6; }
4252fi
4253
4254
4255 test -n "$CXX" && break
4256 done
4257fi
4258if test -z "$CXX"; then
4259 ac_ct_CXX=$CXX
4260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4261do
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263set dummy $ac_prog; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4266if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5f520819
KY
4267 $as_echo_n "(cached) " >&6
4268else
4269 if test -n "$ac_ct_CXX"; then
4270 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
4279 ac_cv_prog_ac_ct_CXX="$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283done
4284 done
4285IFS=$as_save_IFS
4286
4287fi
4288fi
4289ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4290if test -n "$ac_ct_CXX"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4292$as_echo "$ac_ct_CXX" >&6; }
4293else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
4296fi
4297
4298
4299 test -n "$ac_ct_CXX" && break
4300done
4301
4302 if test "x$ac_ct_CXX" = x; then
4303 CXX="g++"
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306yes:)
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309ac_tool_warned=yes ;;
4310esac
4311 CXX=$ac_ct_CXX
4312 fi
4313fi
4314
4315 fi
4316fi
4317# Provide some information about the compiler.
4318$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4319set X $ac_compile
4320ac_compiler=$2
4321for ac_option in --version -v -V -qversion; do
4322 { { ac_try="$ac_compiler $ac_option >&5"
4323case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326esac
4327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328$as_echo "$ac_try_echo"; } >&5
4329 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4330 ac_status=$?
4331 if test -s conftest.err; then
4332 sed '10a\
4333... rest of stderr output deleted ...
4334 10q' conftest.err >conftest.er1
4335 cat conftest.er1 >&5
5f520819 4336 fi
22e05272 4337 rm -f conftest.er1 conftest.err
5f520819
KY
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }
4340done
4341
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4343$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 4344if ${ac_cv_cxx_compiler_gnu+:} false; then :
5f520819
KY
4345 $as_echo_n "(cached) " >&6
4346else
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h. */
4349
4350int
4351main ()
4352{
4353#ifndef __GNUC__
4354 choke me
4355#endif
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
4361if ac_fn_cxx_try_compile "$LINENO"; then :
4362 ac_compiler_gnu=yes
4363else
4364 ac_compiler_gnu=no
4365fi
4366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4368
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4371$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4372if test $ac_compiler_gnu = yes; then
4373 GXX=yes
4374else
4375 GXX=
4376fi
4377ac_test_CXXFLAGS=${CXXFLAGS+set}
4378ac_save_CXXFLAGS=$CXXFLAGS
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4380$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 4381if ${ac_cv_prog_cxx_g+:} false; then :
5f520819
KY
4382 $as_echo_n "(cached) " >&6
4383else
4384 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4385 ac_cxx_werror_flag=yes
4386 ac_cv_prog_cxx_g=no
4387 CXXFLAGS="-g"
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h. */
4390
4391int
4392main ()
4393{
4394
4395 ;
4396 return 0;
4397}
4398_ACEOF
4399if ac_fn_cxx_try_compile "$LINENO"; then :
4400 ac_cv_prog_cxx_g=yes
4401else
4402 CXXFLAGS=""
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h. */
4405
4406int
4407main ()
4408{
4409
4410 ;
4411 return 0;
4412}
4413_ACEOF
4414if ac_fn_cxx_try_compile "$LINENO"; then :
4415
4416else
4417 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4418 CXXFLAGS="-g"
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h. */
4421
4422int
4423main ()
4424{
4425
4426 ;
4427 return 0;
4428}
4429_ACEOF
4430if ac_fn_cxx_try_compile "$LINENO"; then :
4431 ac_cv_prog_cxx_g=yes
4432fi
4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434fi
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436fi
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4439fi
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4441$as_echo "$ac_cv_prog_cxx_g" >&6; }
4442if test "$ac_test_CXXFLAGS" = set; then
4443 CXXFLAGS=$ac_save_CXXFLAGS
4444elif test $ac_cv_prog_cxx_g = yes; then
4445 if test "$GXX" = yes; then
4446 CXXFLAGS="-g -O2"
4447 else
4448 CXXFLAGS="-g"
4449 fi
4450else
4451 if test "$GXX" = yes; then
4452 CXXFLAGS="-O2"
4453 else
4454 CXXFLAGS=
4455 fi
4456fi
4457ac_ext=c
4458ac_cpp='$CPP $CPPFLAGS'
4459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462
4463depcc="$CXX" am_compiler_list=
4464
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4466$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4467if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5f520819
KY
4468 $as_echo_n "(cached) " >&6
4469else
4470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4471 # We make a subdir and do the tests there. Otherwise we can end up
4472 # making bogus files that we don't know about and never remove. For
4473 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4474 # making a dummy file named 'D' -- because '-MD' means "put the output
4475 # in D".
735aacba 4476 rm -rf conftest.dir
5f520819
KY
4477 mkdir conftest.dir
4478 # Copy depcomp to subdir because otherwise we won't find it if we're
4479 # using a relative directory.
4480 cp "$am_depcomp" conftest.dir
4481 cd conftest.dir
4482 # We will build objects and dependencies in a subdirectory because
4483 # it helps to detect inapplicable dependency modes. For instance
4484 # both Tru64's cc and ICC support -MD to output dependencies as a
4485 # side effect of compilation, but ICC will put the dependencies in
4486 # the current directory while Tru64 will put them in the object
4487 # directory.
4488 mkdir sub
4489
4490 am_cv_CXX_dependencies_compiler_type=none
4491 if test "$am_compiler_list" = ""; then
4492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4493 fi
4494 am__universal=false
4495 case " $depcc " in #(
4496 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4497 esac
4498
4499 for depmode in $am_compiler_list; do
4500 # Setup a source with many dependencies, because some compilers
4501 # like to wrap large dependency lists on column 80 (with \), and
4502 # we should not choose a depcomp mode which is confused by this.
4503 #
4504 # We need to recreate these files for each test, as the compiler may
4505 # overwrite some of them when testing with obscure command lines.
4506 # This happens at least with the AIX C compiler.
4507 : > sub/conftest.c
4508 for i in 1 2 3 4 5 6; do
4509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4510 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4511 # Solaris 10 /bin/sh.
4512 echo '/* dummy */' > sub/conftst$i.h
5f520819
KY
4513 done
4514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4515
22e05272 4516 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5f520819 4517 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4518 # handle '-M -o', and we need to detect this. Also, some Intel
4519 # versions had trouble with output in subdirs.
5f520819
KY
4520 am__obj=sub/conftest.${OBJEXT-o}
4521 am__minus_obj="-o $am__obj"
4522 case $depmode in
4523 gcc)
4524 # This depmode causes a compiler race in universal mode.
4525 test "$am__universal" = false || continue
4526 ;;
4527 nosideeffect)
22e05272
JM
4528 # After this tag, mechanisms are not by side-effect, so they'll
4529 # only be used when explicitly requested.
5f520819
KY
4530 if test "x$enable_dependency_tracking" = xyes; then
4531 continue
4532 else
4533 break
4534 fi
4535 ;;
735aacba 4536 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4537 # This compiler won't grok '-c -o', but also, the minuso test has
5f520819
KY
4538 # not run yet. These depmodes are late enough in the game, and
4539 # so weak that their functioning should not be impacted.
4540 am__obj=conftest.${OBJEXT-o}
4541 am__minus_obj=
4542 ;;
4543 none) break ;;
4544 esac
4545 if depmode=$depmode \
4546 source=sub/conftest.c object=$am__obj \
4547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4548 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4549 >/dev/null 2>conftest.err &&
4550 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4551 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4553 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4554 # icc doesn't choke on unknown options, it will just issue warnings
4555 # or remarks (even with -Werror). So we grep stderr for any message
4556 # that says an option was ignored or not supported.
4557 # When given -MP, icc 7.0 and 7.1 complain thusly:
4558 # icc: Command line warning: ignoring option '-M'; no argument required
4559 # The diagnosis changed in icc 8.0:
4560 # icc: Command line remark: option '-MP' not supported
4561 if (grep 'ignoring option' conftest.err ||
4562 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4563 am_cv_CXX_dependencies_compiler_type=$depmode
4564 break
4565 fi
4566 fi
4567 done
4568
4569 cd ..
4570 rm -rf conftest.dir
4571else
4572 am_cv_CXX_dependencies_compiler_type=none
4573fi
4574
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4577$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4578CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4579
4580 if
4581 test "x$enable_dependency_tracking" != xno \
4582 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4583 am__fastdepCXX_TRUE=
4584 am__fastdepCXX_FALSE='#'
4585else
4586 am__fastdepCXX_TRUE='#'
4587 am__fastdepCXX_FALSE=
4588fi
4589
4590
4591ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
4592
4593# Default to --enable-multilib
4594# Check whether --enable-multilib was given.
4595if test "${enable_multilib+set}" = set; then :
4596 enableval=$enable_multilib; case "$enableval" in
4597 yes) multilib=yes ;;
4598 no) multilib=no ;;
22e05272 4599 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
5f520819
KY
4600 esac
4601else
4602 multilib=yes
4603fi
4604
4605
4606# We may get other options which we leave undocumented:
4607# --with-target-subdir, --with-multisrctop, --with-multisubdir
4608# See config-ml.in if you want the gory details.
4609
4610if test "$srcdir" = "."; then
4611 if test "$with_target_subdir" != "."; then
4612 multi_basedir="$srcdir/$with_multisrctop../.."
4613 else
4614 multi_basedir="$srcdir/$with_multisrctop.."
4615 fi
4616else
4617 multi_basedir="$srcdir/.."
4618fi
4619
4620
4621# Even if the default multilib is not a cross compilation,
4622# it may be that some of the other multilibs are.
4623if test $cross_compiling = no && test $multilib = yes \
4624 && test "x${with_multisubdir}" != x ; then
4625 cross_compiling=maybe
4626fi
4627
4628ac_config_commands="$ac_config_commands default-1"
4629
4630
9d73ec14
IV
4631
4632subdirs="$subdirs plugin"
4633
4634
5f520819
KY
4635ac_ext=c
4636ac_cpp='$CPP $CPPFLAGS'
4637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4641$as_echo_n "checking how to run the C preprocessor... " >&6; }
4642# On Suns, sometimes $CPP names a directory.
4643if test -n "$CPP" && test -d "$CPP"; then
4644 CPP=
4645fi
4646if test -z "$CPP"; then
22e05272 4647 if ${ac_cv_prog_CPP+:} false; then :
5f520819
KY
4648 $as_echo_n "(cached) " >&6
4649else
4650 # Double quotes because CPP needs to be expanded
4651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4652 do
4653 ac_preproc_ok=false
4654for ac_c_preproc_warn_flag in '' yes
4655do
4656 # Use a header file that comes with gcc, so configuring glibc
4657 # with a fresh cross-compiler works.
4658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4659 # <limits.h> exists even on freestanding compilers.
4660 # On the NeXT, cc -E runs the code through the compiler's parser,
4661 # not just through cpp. "Syntax error" is here to catch this case.
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663/* end confdefs.h. */
4664#ifdef __STDC__
4665# include <limits.h>
4666#else
4667# include <assert.h>
4668#endif
4669 Syntax error
4670_ACEOF
4671if ac_fn_c_try_cpp "$LINENO"; then :
4672
4673else
4674 # Broken: fails on valid input.
4675continue
4676fi
22e05272 4677rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
4678
4679 # OK, works on sane cases. Now check whether nonexistent headers
4680 # can be detected and how.
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682/* end confdefs.h. */
4683#include <ac_nonexistent.h>
4684_ACEOF
4685if ac_fn_c_try_cpp "$LINENO"; then :
4686 # Broken: success on invalid input.
4687continue
4688else
4689 # Passes both tests.
4690ac_preproc_ok=:
4691break
4692fi
22e05272 4693rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
4694
4695done
4696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4697rm -f conftest.i conftest.err conftest.$ac_ext
5f520819
KY
4698if $ac_preproc_ok; then :
4699 break
4700fi
4701
4702 done
4703 ac_cv_prog_CPP=$CPP
4704
4705fi
4706 CPP=$ac_cv_prog_CPP
4707else
4708 ac_cv_prog_CPP=$CPP
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4711$as_echo "$CPP" >&6; }
4712ac_preproc_ok=false
4713for ac_c_preproc_warn_flag in '' yes
4714do
4715 # Use a header file that comes with gcc, so configuring glibc
4716 # with a fresh cross-compiler works.
4717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4718 # <limits.h> exists even on freestanding compilers.
4719 # On the NeXT, cc -E runs the code through the compiler's parser,
4720 # not just through cpp. "Syntax error" is here to catch this case.
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h. */
4723#ifdef __STDC__
4724# include <limits.h>
4725#else
4726# include <assert.h>
4727#endif
4728 Syntax error
4729_ACEOF
4730if ac_fn_c_try_cpp "$LINENO"; then :
4731
4732else
4733 # Broken: fails on valid input.
4734continue
4735fi
22e05272 4736rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
4737
4738 # OK, works on sane cases. Now check whether nonexistent headers
4739 # can be detected and how.
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741/* end confdefs.h. */
4742#include <ac_nonexistent.h>
4743_ACEOF
4744if ac_fn_c_try_cpp "$LINENO"; then :
4745 # Broken: success on invalid input.
4746continue
4747else
4748 # Passes both tests.
4749ac_preproc_ok=:
4750break
4751fi
22e05272 4752rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
4753
4754done
4755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4756rm -f conftest.i conftest.err conftest.$ac_ext
5f520819
KY
4757if $ac_preproc_ok; then :
4758
4759else
4760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4762as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4763See \`config.log' for more details" "$LINENO" 5; }
5f520819
KY
4764fi
4765
4766ac_ext=c
4767ac_cpp='$CPP $CPPFLAGS'
4768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771
4772
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4774$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4775if ${ac_cv_path_GREP+:} false; then :
5f520819
KY
4776 $as_echo_n "(cached) " >&6
4777else
4778 if test -z "$GREP"; then
4779 ac_path_GREP_found=false
4780 # Loop through the user's path and test for each of PROGNAME-LIST
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4783do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_prog in grep ggrep; do
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4789 as_fn_executable_p "$ac_path_GREP" || continue
5f520819
KY
4790# Check for GNU ac_path_GREP and select it if it is found.
4791 # Check for GNU $ac_path_GREP
4792case `"$ac_path_GREP" --version 2>&1` in
4793*GNU*)
4794 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4795*)
4796 ac_count=0
4797 $as_echo_n 0123456789 >"conftest.in"
4798 while :
4799 do
4800 cat "conftest.in" "conftest.in" >"conftest.tmp"
4801 mv "conftest.tmp" "conftest.in"
4802 cp "conftest.in" "conftest.nl"
4803 $as_echo 'GREP' >> "conftest.nl"
4804 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806 as_fn_arith $ac_count + 1 && ac_count=$as_val
4807 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4808 # Best one so far, save it but keep looking for a better one
4809 ac_cv_path_GREP="$ac_path_GREP"
4810 ac_path_GREP_max=$ac_count
4811 fi
4812 # 10*(2^10) chars as input seems more than enough
4813 test $ac_count -gt 10 && break
4814 done
4815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4816esac
4817
4818 $ac_path_GREP_found && break 3
4819 done
4820 done
4821 done
4822IFS=$as_save_IFS
4823 if test -z "$ac_cv_path_GREP"; then
22e05272 4824 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5f520819
KY
4825 fi
4826else
4827 ac_cv_path_GREP=$GREP
4828fi
4829
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4832$as_echo "$ac_cv_path_GREP" >&6; }
4833 GREP="$ac_cv_path_GREP"
4834
4835
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4837$as_echo_n "checking for egrep... " >&6; }
22e05272 4838if ${ac_cv_path_EGREP+:} false; then :
5f520819
KY
4839 $as_echo_n "(cached) " >&6
4840else
4841 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4842 then ac_cv_path_EGREP="$GREP -E"
4843 else
4844 if test -z "$EGREP"; then
4845 ac_path_EGREP_found=false
4846 # Loop through the user's path and test for each of PROGNAME-LIST
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4849do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_prog in egrep; do
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4855 as_fn_executable_p "$ac_path_EGREP" || continue
5f520819
KY
4856# Check for GNU ac_path_EGREP and select it if it is found.
4857 # Check for GNU $ac_path_EGREP
4858case `"$ac_path_EGREP" --version 2>&1` in
4859*GNU*)
4860 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4861*)
4862 ac_count=0
4863 $as_echo_n 0123456789 >"conftest.in"
4864 while :
4865 do
4866 cat "conftest.in" "conftest.in" >"conftest.tmp"
4867 mv "conftest.tmp" "conftest.in"
4868 cp "conftest.in" "conftest.nl"
4869 $as_echo 'EGREP' >> "conftest.nl"
4870 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4872 as_fn_arith $ac_count + 1 && ac_count=$as_val
4873 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4874 # Best one so far, save it but keep looking for a better one
4875 ac_cv_path_EGREP="$ac_path_EGREP"
4876 ac_path_EGREP_max=$ac_count
4877 fi
4878 # 10*(2^10) chars as input seems more than enough
4879 test $ac_count -gt 10 && break
4880 done
4881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4882esac
4883
4884 $ac_path_EGREP_found && break 3
4885 done
4886 done
4887 done
4888IFS=$as_save_IFS
4889 if test -z "$ac_cv_path_EGREP"; then
22e05272 4890 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5f520819
KY
4891 fi
4892else
4893 ac_cv_path_EGREP=$EGREP
4894fi
4895
4896 fi
4897fi
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4899$as_echo "$ac_cv_path_EGREP" >&6; }
4900 EGREP="$ac_cv_path_EGREP"
4901
4902
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4904$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4905if ${ac_cv_header_stdc+:} false; then :
5f520819
KY
4906 $as_echo_n "(cached) " >&6
4907else
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909/* end confdefs.h. */
4910#include <stdlib.h>
4911#include <stdarg.h>
4912#include <string.h>
4913#include <float.h>
4914
4915int
4916main ()
4917{
4918
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_header_stdc=yes
4925else
4926 ac_cv_header_stdc=no
4927fi
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929
4930if test $ac_cv_header_stdc = yes; then
4931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h. */
4934#include <string.h>
4935
4936_ACEOF
4937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4938 $EGREP "memchr" >/dev/null 2>&1; then :
4939
4940else
4941 ac_cv_header_stdc=no
4942fi
4943rm -f conftest*
4944
4945fi
4946
4947if test $ac_cv_header_stdc = yes; then
4948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950/* end confdefs.h. */
4951#include <stdlib.h>
4952
4953_ACEOF
4954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4955 $EGREP "free" >/dev/null 2>&1; then :
4956
4957else
4958 ac_cv_header_stdc=no
4959fi
4960rm -f conftest*
4961
4962fi
4963
4964if test $ac_cv_header_stdc = yes; then
4965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4966 if test "$cross_compiling" = yes; then :
4967 :
4968else
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970/* end confdefs.h. */
4971#include <ctype.h>
4972#include <stdlib.h>
4973#if ((' ' & 0x0FF) == 0x020)
4974# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4975# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4976#else
4977# define ISLOWER(c) \
4978 (('a' <= (c) && (c) <= 'i') \
4979 || ('j' <= (c) && (c) <= 'r') \
4980 || ('s' <= (c) && (c) <= 'z'))
4981# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4982#endif
4983
4984#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4985int
4986main ()
4987{
4988 int i;
4989 for (i = 0; i < 256; i++)
4990 if (XOR (islower (i), ISLOWER (i))
4991 || toupper (i) != TOUPPER (i))
4992 return 2;
4993 return 0;
4994}
4995_ACEOF
4996if ac_fn_c_try_run "$LINENO"; then :
4997
4998else
4999 ac_cv_header_stdc=no
5000fi
5001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5002 conftest.$ac_objext conftest.beam conftest.$ac_ext
5003fi
5004
5005fi
5006fi
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5008$as_echo "$ac_cv_header_stdc" >&6; }
5009if test $ac_cv_header_stdc = yes; then
5010
5011$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5012
5013fi
5014
5015# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5016for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5017 inttypes.h stdint.h unistd.h
5018do :
5019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5020ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5021"
22e05272 5022if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5f520819
KY
5023 cat >>confdefs.h <<_ACEOF
5024#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5025_ACEOF
5026
5027fi
5028
5029done
5030
5031
22e05272
JM
5032ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5033if test "x$ac_cv_type_size_t" = xyes; then :
5034
5035else
5036
5037cat >>confdefs.h <<_ACEOF
5038#define size_t unsigned int
5039_ACEOF
5040
5041fi
5042
5f520819
KY
5043# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5044# for constant arguments. Useless!
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5046$as_echo_n "checking for working alloca.h... " >&6; }
22e05272 5047if ${ac_cv_working_alloca_h+:} false; then :
5f520819
KY
5048 $as_echo_n "(cached) " >&6
5049else
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051/* end confdefs.h. */
5052#include <alloca.h>
5053int
5054main ()
5055{
5056char *p = (char *) alloca (2 * sizeof (int));
5057 if (p) return 0;
5058 ;
5059 return 0;
5060}
5061_ACEOF
5062if ac_fn_c_try_link "$LINENO"; then :
5063 ac_cv_working_alloca_h=yes
5064else
5065 ac_cv_working_alloca_h=no
5066fi
5067rm -f core conftest.err conftest.$ac_objext \
5068 conftest$ac_exeext conftest.$ac_ext
5069fi
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5071$as_echo "$ac_cv_working_alloca_h" >&6; }
5072if test $ac_cv_working_alloca_h = yes; then
5073
5074$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5075
5076fi
5077
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5079$as_echo_n "checking for alloca... " >&6; }
22e05272 5080if ${ac_cv_func_alloca_works+:} false; then :
5f520819
KY
5081 $as_echo_n "(cached) " >&6
5082else
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h. */
5085#ifdef __GNUC__
5086# define alloca __builtin_alloca
5087#else
5088# ifdef _MSC_VER
5089# include <malloc.h>
5090# define alloca _alloca
5091# else
5092# ifdef HAVE_ALLOCA_H
5093# include <alloca.h>
5094# else
5095# ifdef _AIX
5096 #pragma alloca
5097# else
5098# ifndef alloca /* predefined by HP cc +Olibcalls */
22e05272 5099void *alloca (size_t);
5f520819
KY
5100# endif
5101# endif
5102# endif
5103# endif
5104#endif
5105
5106int
5107main ()
5108{
5109char *p = (char *) alloca (1);
5110 if (p) return 0;
5111 ;
5112 return 0;
5113}
5114_ACEOF
5115if ac_fn_c_try_link "$LINENO"; then :
5116 ac_cv_func_alloca_works=yes
5117else
5118 ac_cv_func_alloca_works=no
5119fi
5120rm -f core conftest.err conftest.$ac_objext \
5121 conftest$ac_exeext conftest.$ac_ext
5122fi
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5124$as_echo "$ac_cv_func_alloca_works" >&6; }
5125
5126if test $ac_cv_func_alloca_works = yes; then
5127
5128$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5129
5130else
5131 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5132# that cause trouble. Some versions do not even contain alloca or
5133# contain a buggy version. If you still want to use their alloca,
5134# use ar to extract alloca.o from them instead of compiling alloca.c.
5135
5136ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5137
5138$as_echo "#define C_ALLOCA 1" >>confdefs.h
5139
5140
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5142$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
22e05272 5143if ${ac_cv_os_cray+:} false; then :
5f520819
KY
5144 $as_echo_n "(cached) " >&6
5145else
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h. */
5148#if defined CRAY && ! defined CRAY2
5149webecray
5150#else
5151wenotbecray
5152#endif
5153
5154_ACEOF
5155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5156 $EGREP "webecray" >/dev/null 2>&1; then :
5157 ac_cv_os_cray=yes
5158else
5159 ac_cv_os_cray=no
5160fi
5161rm -f conftest*
5162
5163fi
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5165$as_echo "$ac_cv_os_cray" >&6; }
5166if test $ac_cv_os_cray = yes; then
5167 for ac_func in _getb67 GETB67 getb67; do
5168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5169ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 5170if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5f520819
KY
5171
5172cat >>confdefs.h <<_ACEOF
5173#define CRAY_STACKSEG_END $ac_func
5174_ACEOF
5175
5176 break
5177fi
5178
5179 done
5180fi
5181
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5183$as_echo_n "checking stack direction for C alloca... " >&6; }
22e05272 5184if ${ac_cv_c_stack_direction+:} false; then :
5f520819
KY
5185 $as_echo_n "(cached) " >&6
5186else
5187 if test "$cross_compiling" = yes; then :
5188 ac_cv_c_stack_direction=0
5189else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191/* end confdefs.h. */
5192$ac_includes_default
5193int
22e05272 5194find_stack_direction (int *addr, int depth)
5f520819 5195{
22e05272
JM
5196 int dir, dummy = 0;
5197 if (! addr)
5198 addr = &dummy;
5199 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5200 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5201 return dir + dummy;
5f520819
KY
5202}
5203
5204int
22e05272 5205main (int argc, char **argv)
5f520819 5206{
22e05272 5207 return find_stack_direction (0, argc + !argv + 20) < 0;
5f520819
KY
5208}
5209_ACEOF
5210if ac_fn_c_try_run "$LINENO"; then :
5211 ac_cv_c_stack_direction=1
5212else
5213 ac_cv_c_stack_direction=-1
5214fi
5215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5216 conftest.$ac_objext conftest.beam conftest.$ac_ext
5217fi
5218
5219fi
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5221$as_echo "$ac_cv_c_stack_direction" >&6; }
5222cat >>confdefs.h <<_ACEOF
5223#define STACK_DIRECTION $ac_cv_c_stack_direction
5224_ACEOF
5225
5226
5227fi
5228
5229for ac_header in mm_malloc.h
5230do :
5231 ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
22e05272 5232if test "x$ac_cv_header_mm_malloc_h" = xyes; then :
5f520819
KY
5233 cat >>confdefs.h <<_ACEOF
5234#define HAVE_MM_MALLOC_H 1
5235_ACEOF
5236
5237else
22e05272 5238 as_fn_error $? "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
5f520819
KY
5239fi
5240
5241done
5242
5243for ac_func in __secure_getenv secure_getenv
5244do :
5245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5246ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 5247if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5f520819
KY
5248 cat >>confdefs.h <<_ACEOF
5249#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5250_ACEOF
5251
5252fi
5253done
5254
5255
5256# Get target configure.
5257. ${srcdir}/configure.tgt
5258if test -n "$UNSUPPORTED"; then
22e05272 5259 as_fn_error $? "Configuration ${target} is unsupported" "$LINENO" 5
5f520819
KY
5260fi
5261
5262if test "${multilib}" = "yes"; then
5263 multilib_arg="--enable-multilib"
5264else
5265 multilib_arg=
5266fi
5267
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5269$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5270# Check whether --enable-version-specific-runtime-libs was given.
5271if test "${enable_version_specific_runtime_libs+set}" = set; then :
5272 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5273 yes) enable_version_specific_runtime_libs=yes ;;
5274 no) enable_version_specific_runtime_libs=no ;;
22e05272 5275 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
5f520819
KY
5276 esac
5277else
5278 enable_version_specific_runtime_libs=no
5279fi
5280
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
5282$as_echo "$enable_version_specific_runtime_libs" >&6; }
5283
5284# Make sure liboffloadmic is enabled
5285case "$enable_liboffloadmic" in
5286 host | target)
5287 ;;
5288 *)
22e05272 5289 as_fn_error $? "Liboffloadmic is disabled" "$LINENO" 5 ;;
5f520819
KY
5290esac
5291 if test x"$enable_liboffloadmic" = xhost; then
5292 LIBOFFLOADMIC_HOST_TRUE=
5293 LIBOFFLOADMIC_HOST_FALSE='#'
5294else
5295 LIBOFFLOADMIC_HOST_TRUE='#'
5296 LIBOFFLOADMIC_HOST_FALSE=
5297fi
5298
5299
e8e66971
MR
5300
5301# Check whether --with-toolexeclibdir was given.
5302if test "${with_toolexeclibdir+set}" = set; then :
5303 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5304 /)
5305 ;;
5306 */)
5307 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5308 ;;
5309esac
5310else
5311 with_toolexeclibdir=no
5312fi
5313
5314
5315
5f520819
KY
5316# Calculate toolexeclibdir.
5317# Also toolexecdir, though it's only used in toolexeclibdir.
5318case ${enable_version_specific_runtime_libs} in
5319 yes)
5320 # Need the gcc compiler version to know where to install libraries
5321 # and header files if --enable-version-specific-runtime-libs option
5322 # is selected.
5323 toolexecdir='$(libdir)/gcc/$(target_alias)'
5324 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5325 ;;
5326 no)
5327 if test -n "$with_cross_host" &&
5328 test x"$with_cross_host" != x"no"; then
5329 # Install a library built with a cross compiler in tooldir, not libdir.
5330 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
5331 case ${with_toolexeclibdir} in
5332 no)
5333 toolexeclibdir='$(toolexecdir)/lib'
5334 ;;
5335 *)
5336 toolexeclibdir=${with_toolexeclibdir}
5337 ;;
5338 esac
5f520819
KY
5339 else
5340 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5341 toolexeclibdir='$(libdir)'
5342 fi
5343 multi_os_directory=`$CC -print-multi-os-directory`
5344 case $multi_os_directory in
5345 .) ;; # Avoid trailing /.
5346 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5347 esac
5348 ;;
5349esac
5350
5351enable_dlopen=yes
5352
5353
5354
5355case `pwd` in
5356 *\ * | *\ *)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5358$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5359esac
5360
5361
5362
5363macro_version='2.2.7a'
5364macro_revision='1.3134'
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378ltmain="$ac_aux_dir/ltmain.sh"
5379
5380# Backslashify metacharacters that are still active within
5381# double-quoted strings.
5382sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5383
5384# Same as above, but do not quote variable references.
5385double_quote_subst='s/\(["`\\]\)/\\\1/g'
5386
5387# Sed substitution to delay expansion of an escaped shell variable in a
5388# double_quote_subst'ed string.
5389delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5390
5391# Sed substitution to delay expansion of an escaped single quote.
5392delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5393
5394# Sed substitution to avoid accidental globbing in evaled expressions
5395no_glob_subst='s/\*/\\\*/g'
5396
5397ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5398ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5399ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5400
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5402$as_echo_n "checking how to print strings... " >&6; }
5403# Test print first, because it will be a builtin if present.
5404if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5405 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5406 ECHO='print -r --'
5407elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5408 ECHO='printf %s\n'
5409else
5410 # Use this function as a fallback that always works.
5411 func_fallback_echo ()
5412 {
5413 eval 'cat <<_LTECHO_EOF
5414$1
5415_LTECHO_EOF'
5416 }
5417 ECHO='func_fallback_echo'
5418fi
5419
5420# func_echo_all arg...
5421# Invoke $ECHO with all args, space-separated.
5422func_echo_all ()
5423{
5424 $ECHO ""
5425}
5426
5427case "$ECHO" in
5428 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5429$as_echo "printf" >&6; } ;;
5430 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5431$as_echo "print -r" >&6; } ;;
5432 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5433$as_echo "cat" >&6; } ;;
5434esac
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5450$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5451if ${ac_cv_path_SED+:} false; then :
5f520819
KY
5452 $as_echo_n "(cached) " >&6
5453else
5454 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5455 for ac_i in 1 2 3 4 5 6 7; do
5456 ac_script="$ac_script$as_nl$ac_script"
5457 done
5458 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5459 { ac_script=; unset ac_script;}
5460 if test -z "$SED"; then
5461 ac_path_SED_found=false
5462 # Loop through the user's path and test for each of PROGNAME-LIST
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_prog in sed gsed; do
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5471 as_fn_executable_p "$ac_path_SED" || continue
5f520819
KY
5472# Check for GNU ac_path_SED and select it if it is found.
5473 # Check for GNU $ac_path_SED
5474case `"$ac_path_SED" --version 2>&1` in
5475*GNU*)
5476 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5477*)
5478 ac_count=0
5479 $as_echo_n 0123456789 >"conftest.in"
5480 while :
5481 do
5482 cat "conftest.in" "conftest.in" >"conftest.tmp"
5483 mv "conftest.tmp" "conftest.in"
5484 cp "conftest.in" "conftest.nl"
5485 $as_echo '' >> "conftest.nl"
5486 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5488 as_fn_arith $ac_count + 1 && ac_count=$as_val
5489 if test $ac_count -gt ${ac_path_SED_max-0}; then
5490 # Best one so far, save it but keep looking for a better one
5491 ac_cv_path_SED="$ac_path_SED"
5492 ac_path_SED_max=$ac_count
5493 fi
5494 # 10*(2^10) chars as input seems more than enough
5495 test $ac_count -gt 10 && break
5496 done
5497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5498esac
5499
5500 $ac_path_SED_found && break 3
5501 done
5502 done
5503 done
5504IFS=$as_save_IFS
5505 if test -z "$ac_cv_path_SED"; then
22e05272 5506 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5f520819
KY
5507 fi
5508else
5509 ac_cv_path_SED=$SED
5510fi
5511
5512fi
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5514$as_echo "$ac_cv_path_SED" >&6; }
5515 SED="$ac_cv_path_SED"
5516 rm -f conftest.sed
5517
5518test -z "$SED" && SED=sed
5519Xsed="$SED -e 1s/^X//"
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5532$as_echo_n "checking for fgrep... " >&6; }
22e05272 5533if ${ac_cv_path_FGREP+:} false; then :
5f520819
KY
5534 $as_echo_n "(cached) " >&6
5535else
5536 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5537 then ac_cv_path_FGREP="$GREP -F"
5538 else
5539 if test -z "$FGREP"; then
5540 ac_path_FGREP_found=false
5541 # Loop through the user's path and test for each of PROGNAME-LIST
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5544do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_prog in fgrep; do
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5550 as_fn_executable_p "$ac_path_FGREP" || continue
5f520819
KY
5551# Check for GNU ac_path_FGREP and select it if it is found.
5552 # Check for GNU $ac_path_FGREP
5553case `"$ac_path_FGREP" --version 2>&1` in
5554*GNU*)
5555 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5556*)
5557 ac_count=0
5558 $as_echo_n 0123456789 >"conftest.in"
5559 while :
5560 do
5561 cat "conftest.in" "conftest.in" >"conftest.tmp"
5562 mv "conftest.tmp" "conftest.in"
5563 cp "conftest.in" "conftest.nl"
5564 $as_echo 'FGREP' >> "conftest.nl"
5565 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5567 as_fn_arith $ac_count + 1 && ac_count=$as_val
5568 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5569 # Best one so far, save it but keep looking for a better one
5570 ac_cv_path_FGREP="$ac_path_FGREP"
5571 ac_path_FGREP_max=$ac_count
5572 fi
5573 # 10*(2^10) chars as input seems more than enough
5574 test $ac_count -gt 10 && break
5575 done
5576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5577esac
5578
5579 $ac_path_FGREP_found && break 3
5580 done
5581 done
5582 done
5583IFS=$as_save_IFS
5584 if test -z "$ac_cv_path_FGREP"; then
22e05272 5585 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5f520819
KY
5586 fi
5587else
5588 ac_cv_path_FGREP=$FGREP
5589fi
5590
5591 fi
5592fi
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5594$as_echo "$ac_cv_path_FGREP" >&6; }
5595 FGREP="$ac_cv_path_FGREP"
5596
5597
5598test -z "$GREP" && GREP=grep
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618# Check whether --with-gnu-ld was given.
5619if test "${with_gnu_ld+set}" = set; then :
5620 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5621else
5622 with_gnu_ld=no
5623fi
5624
5625ac_prog=ld
5626if test "$GCC" = yes; then
5627 # Check if gcc -print-prog-name=ld gives a path.
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5629$as_echo_n "checking for ld used by $CC... " >&6; }
5630 case $host in
5631 *-*-mingw*)
5632 # gcc leaves a trailing carriage return which upsets mingw
5633 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5634 *)
5635 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5636 esac
5637 case $ac_prog in
5638 # Accept absolute paths.
5639 [\\/]* | ?:[\\/]*)
5640 re_direlt='/[^/][^/]*/\.\./'
5641 # Canonicalize the pathname of ld
5642 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5643 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5644 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5645 done
5646 test -z "$LD" && LD="$ac_prog"
5647 ;;
5648 "")
5649 # If it fails, then pretend we aren't using GCC.
5650 ac_prog=ld
5651 ;;
5652 *)
5653 # If it is relative, then search for the first ld in PATH.
5654 with_gnu_ld=unknown
5655 ;;
5656 esac
5657elif test "$with_gnu_ld" = yes; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5659$as_echo_n "checking for GNU ld... " >&6; }
5660else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5662$as_echo_n "checking for non-GNU ld... " >&6; }
5663fi
22e05272 5664if ${lt_cv_path_LD+:} false; then :
5f520819
KY
5665 $as_echo_n "(cached) " >&6
5666else
5667 if test -z "$LD"; then
5668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5669 for ac_dir in $PATH; do
5670 IFS="$lt_save_ifs"
5671 test -z "$ac_dir" && ac_dir=.
5672 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5673 lt_cv_path_LD="$ac_dir/$ac_prog"
5674 # Check to see if the program is GNU ld. I'd rather use --version,
5675 # but apparently some variants of GNU ld only accept -v.
5676 # Break only if it was the GNU/non-GNU ld that we prefer.
5677 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5678 *GNU* | *'with BFD'*)
5679 test "$with_gnu_ld" != no && break
5680 ;;
5681 *)
5682 test "$with_gnu_ld" != yes && break
5683 ;;
5684 esac
5685 fi
5686 done
5687 IFS="$lt_save_ifs"
5688else
5689 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5690fi
5691fi
5692
5693LD="$lt_cv_path_LD"
5694if test -n "$LD"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5696$as_echo "$LD" >&6; }
5697else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }
5700fi
22e05272 5701test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5f520819
KY
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5703$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5704if ${lt_cv_prog_gnu_ld+:} false; then :
5f520819
KY
5705 $as_echo_n "(cached) " >&6
5706else
5707 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5708case `$LD -v 2>&1 </dev/null` in
5709*GNU* | *'with BFD'*)
5710 lt_cv_prog_gnu_ld=yes
5711 ;;
5712*)
5713 lt_cv_prog_gnu_ld=no
5714 ;;
5715esac
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5718$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5719with_gnu_ld=$lt_cv_prog_gnu_ld
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5730$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5731if ${lt_cv_path_NM+:} false; then :
5f520819
KY
5732 $as_echo_n "(cached) " >&6
5733else
5734 if test -n "$NM"; then
5735 # Let the user override the test.
5736 lt_cv_path_NM="$NM"
5737else
5738 lt_nm_to_check="${ac_tool_prefix}nm"
5739 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5740 lt_nm_to_check="$lt_nm_to_check nm"
5741 fi
5742 for lt_tmp_nm in $lt_nm_to_check; do
5743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5744 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5745 IFS="$lt_save_ifs"
5746 test -z "$ac_dir" && ac_dir=.
5747 tmp_nm="$ac_dir/$lt_tmp_nm"
5748 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5749 # Check to see if the nm accepts a BSD-compat flag.
5750 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5751 # nm: unknown option "B" ignored
5752 # Tru64's nm complains that /dev/null is an invalid object file
5753 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5754 */dev/null* | *'Invalid file or object type'*)
5755 lt_cv_path_NM="$tmp_nm -B"
5756 break
5757 ;;
5758 *)
5759 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5760 */dev/null*)
5761 lt_cv_path_NM="$tmp_nm -p"
5762 break
5763 ;;
5764 *)
5765 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5766 continue # so that we can try to find one that supports BSD flags
5767 ;;
5768 esac
5769 ;;
5770 esac
5771 fi
5772 done
5773 IFS="$lt_save_ifs"
5774 done
5775 : ${lt_cv_path_NM=no}
5776fi
5777fi
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5779$as_echo "$lt_cv_path_NM" >&6; }
5780if test "$lt_cv_path_NM" != "no"; then
5781 NM="$lt_cv_path_NM"
5782else
5783 # Didn't find any BSD compatible name lister, look for dumpbin.
5784 if test -n "$DUMPBIN"; then :
5785 # Let the user override the test.
5786 else
5787 if test -n "$ac_tool_prefix"; then
5788 for ac_prog in dumpbin "link -dump"
5789 do
5790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5794if ${ac_cv_prog_DUMPBIN+:} false; then :
5f520819
KY
5795 $as_echo_n "(cached) " >&6
5796else
5797 if test -n "$DUMPBIN"; then
5798 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
5807 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811done
5812 done
5813IFS=$as_save_IFS
5814
5815fi
5816fi
5817DUMPBIN=$ac_cv_prog_DUMPBIN
5818if test -n "$DUMPBIN"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5820$as_echo "$DUMPBIN" >&6; }
5821else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
5824fi
5825
5826
5827 test -n "$DUMPBIN" && break
5828 done
5829fi
5830if test -z "$DUMPBIN"; then
5831 ac_ct_DUMPBIN=$DUMPBIN
5832 for ac_prog in dumpbin "link -dump"
5833do
5834 # Extract the first word of "$ac_prog", so it can be a program name with args.
5835set dummy $ac_prog; ac_word=$2
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5838if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5f520819
KY
5839 $as_echo_n "(cached) " >&6
5840else
5841 if test -n "$ac_ct_DUMPBIN"; then
5842 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
5851 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855done
5856 done
5857IFS=$as_save_IFS
5858
5859fi
5860fi
5861ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5862if test -n "$ac_ct_DUMPBIN"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5864$as_echo "$ac_ct_DUMPBIN" >&6; }
5865else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867$as_echo "no" >&6; }
5868fi
5869
5870
5871 test -n "$ac_ct_DUMPBIN" && break
5872done
5873
5874 if test "x$ac_ct_DUMPBIN" = x; then
5875 DUMPBIN=":"
5876 else
5877 case $cross_compiling:$ac_tool_warned in
5878yes:)
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881ac_tool_warned=yes ;;
5882esac
5883 DUMPBIN=$ac_ct_DUMPBIN
5884 fi
5885fi
5886
5887 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5888 *COFF*)
5889 DUMPBIN="$DUMPBIN -symbols"
5890 ;;
5891 *)
5892 DUMPBIN=:
5893 ;;
5894 esac
5895 fi
5896
5897 if test "$DUMPBIN" != ":"; then
5898 NM="$DUMPBIN"
5899 fi
5900fi
5901test -z "$NM" && NM=nm
5902
5903
5904
5905
5906
5907
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5909$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5910if ${lt_cv_nm_interface+:} false; then :
5f520819
KY
5911 $as_echo_n "(cached) " >&6
5912else
5913 lt_cv_nm_interface="BSD nm"
5914 echo "int some_variable = 0;" > conftest.$ac_ext
5915 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5916 (eval "$ac_compile" 2>conftest.err)
5917 cat conftest.err >&5
5918 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5919 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5920 cat conftest.err >&5
5921 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5922 cat conftest.out >&5
5923 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5924 lt_cv_nm_interface="MS dumpbin"
5925 fi
5926 rm -f conftest*
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5929$as_echo "$lt_cv_nm_interface" >&6; }
5930
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5932$as_echo_n "checking whether ln -s works... " >&6; }
5933LN_S=$as_ln_s
5934if test "$LN_S" = "ln -s"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5936$as_echo "yes" >&6; }
5937else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5939$as_echo "no, using $LN_S" >&6; }
5940fi
5941
5942# find the maximum length of command line arguments
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5944$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5945if ${lt_cv_sys_max_cmd_len+:} false; then :
5f520819
KY
5946 $as_echo_n "(cached) " >&6
5947else
5948 i=0
5949 teststring="ABCD"
5950
5951 case $build_os in
5952 msdosdjgpp*)
5953 # On DJGPP, this test can blow up pretty badly due to problems in libc
5954 # (any single argument exceeding 2000 bytes causes a buffer overrun
5955 # during glob expansion). Even if it were fixed, the result of this
5956 # check would be larger than it should be.
5957 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5958 ;;
5959
5960 gnu*)
5961 # Under GNU Hurd, this test is not required because there is
5962 # no limit to the length of command line arguments.
5963 # Libtool will interpret -1 as no limit whatsoever
5964 lt_cv_sys_max_cmd_len=-1;
5965 ;;
5966
5967 cygwin* | mingw* | cegcc*)
5968 # On Win9x/ME, this test blows up -- it succeeds, but takes
5969 # about 5 minutes as the teststring grows exponentially.
5970 # Worse, since 9x/ME are not pre-emptively multitasking,
5971 # you end up with a "frozen" computer, even though with patience
5972 # the test eventually succeeds (with a max line length of 256k).
5973 # Instead, let's just punt: use the minimum linelength reported by
5974 # all of the supported platforms: 8192 (on NT/2K/XP).
5975 lt_cv_sys_max_cmd_len=8192;
5976 ;;
5977
5978 mint*)
5979 # On MiNT this can take a long time and run out of memory.
5980 lt_cv_sys_max_cmd_len=8192;
5981 ;;
5982
5983 amigaos*)
5984 # On AmigaOS with pdksh, this test takes hours, literally.
5985 # So we just punt and use a minimum line length of 8192.
5986 lt_cv_sys_max_cmd_len=8192;
5987 ;;
5988
5989 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5990 # This has been around since 386BSD, at least. Likely further.
5991 if test -x /sbin/sysctl; then
5992 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5993 elif test -x /usr/sbin/sysctl; then
5994 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5995 else
5996 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5997 fi
5998 # And add a safety zone
5999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6001 ;;
6002
6003 interix*)
6004 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6005 lt_cv_sys_max_cmd_len=196608
6006 ;;
6007
6008 osf*)
6009 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6010 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6011 # nice to cause kernel panics so lets avoid the loop below.
6012 # First set a reasonable default.
6013 lt_cv_sys_max_cmd_len=16384
6014 #
6015 if test -x /sbin/sysconfig; then
6016 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6017 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6018 esac
6019 fi
6020 ;;
6021 sco3.2v5*)
6022 lt_cv_sys_max_cmd_len=102400
6023 ;;
6024 sysv5* | sco5v6* | sysv4.2uw2*)
6025 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6026 if test -n "$kargmax"; then
6027 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6028 else
6029 lt_cv_sys_max_cmd_len=32768
6030 fi
6031 ;;
6032 *)
6033 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6034 if test -n "$lt_cv_sys_max_cmd_len"; then
6035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6037 else
6038 # Make teststring a little bigger before we do anything with it.
6039 # a 1K string should be a reasonable start.
6040 for i in 1 2 3 4 5 6 7 8 ; do
6041 teststring=$teststring$teststring
6042 done
6043 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6044 # If test is not a shell built-in, we'll probably end up computing a
6045 # maximum length that is only half of the actual maximum length, but
6046 # we can't tell.
6047 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6048 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6049 test $i != 17 # 1/2 MB should be enough
6050 do
6051 i=`expr $i + 1`
6052 teststring=$teststring$teststring
6053 done
6054 # Only check the string length outside the loop.
6055 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6056 teststring=
6057 # Add a significant safety factor because C++ compilers can tack on
6058 # massive amounts of additional arguments before passing them to the
6059 # linker. It appears as though 1/2 is a usable value.
6060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6061 fi
6062 ;;
6063 esac
6064
6065fi
6066
6067if test -n $lt_cv_sys_max_cmd_len ; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6069$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6070else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6072$as_echo "none" >&6; }
6073fi
6074max_cmd_len=$lt_cv_sys_max_cmd_len
6075
6076
6077
6078
6079
6080
6081: ${CP="cp -f"}
6082: ${MV="mv -f"}
6083: ${RM="rm -f"}
6084
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6086$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6087# Try some XSI features
6088xsi_shell=no
6089( _lt_dummy="a/b/c"
6090 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6091 = c,a/b,, \
6092 && eval 'test $(( 1 + 1 )) -eq 2 \
6093 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6094 && xsi_shell=yes
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6096$as_echo "$xsi_shell" >&6; }
6097
6098
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6100$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6101lt_shell_append=no
6102( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6103 >/dev/null 2>&1 \
6104 && lt_shell_append=yes
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6106$as_echo "$lt_shell_append" >&6; }
6107
6108
6109if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6110 lt_unset=unset
6111else
6112 lt_unset=false
6113fi
6114
6115
6116
6117
6118
6119# test EBCDIC or ASCII
6120case `echo X|tr X '\101'` in
6121 A) # ASCII based system
6122 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6123 lt_SP2NL='tr \040 \012'
6124 lt_NL2SP='tr \015\012 \040\040'
6125 ;;
6126 *) # EBCDIC based system
6127 lt_SP2NL='tr \100 \n'
6128 lt_NL2SP='tr \r\n \100\100'
6129 ;;
6130esac
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6141$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6142if ${lt_cv_ld_reload_flag+:} false; then :
5f520819
KY
6143 $as_echo_n "(cached) " >&6
6144else
6145 lt_cv_ld_reload_flag='-r'
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6148$as_echo "$lt_cv_ld_reload_flag" >&6; }
6149reload_flag=$lt_cv_ld_reload_flag
6150case $reload_flag in
6151"" | " "*) ;;
6152*) reload_flag=" $reload_flag" ;;
6153esac
6154reload_cmds='$LD$reload_flag -o $output$reload_objs'
6155case $host_os in
6156 darwin*)
6157 if test "$GCC" = yes; then
6158 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6159 else
6160 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6161 fi
6162 ;;
6163esac
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6175set dummy ${ac_tool_prefix}objdump; ac_word=$2
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6178if ${ac_cv_prog_OBJDUMP+:} false; then :
5f520819
KY
6179 $as_echo_n "(cached) " >&6
6180else
6181 if test -n "$OBJDUMP"; then
6182 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6191 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195done
6196 done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201OBJDUMP=$ac_cv_prog_OBJDUMP
6202if test -n "$OBJDUMP"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6204$as_echo "$OBJDUMP" >&6; }
6205else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210
6211fi
6212if test -z "$ac_cv_prog_OBJDUMP"; then
6213 ac_ct_OBJDUMP=$OBJDUMP
6214 # Extract the first word of "objdump", so it can be a program name with args.
6215set dummy objdump; ac_word=$2
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6218if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5f520819
KY
6219 $as_echo_n "(cached) " >&6
6220else
6221 if test -n "$ac_ct_OBJDUMP"; then
6222 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6223else
6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH
6226do
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6231 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 break 2
6234 fi
6235done
6236 done
6237IFS=$as_save_IFS
6238
6239fi
6240fi
6241ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6242if test -n "$ac_ct_OBJDUMP"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6244$as_echo "$ac_ct_OBJDUMP" >&6; }
6245else
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247$as_echo "no" >&6; }
6248fi
6249
6250 if test "x$ac_ct_OBJDUMP" = x; then
6251 OBJDUMP="false"
6252 else
6253 case $cross_compiling:$ac_tool_warned in
6254yes:)
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257ac_tool_warned=yes ;;
6258esac
6259 OBJDUMP=$ac_ct_OBJDUMP
6260 fi
6261else
6262 OBJDUMP="$ac_cv_prog_OBJDUMP"
6263fi
6264
6265test -z "$OBJDUMP" && OBJDUMP=objdump
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6276$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6277if ${lt_cv_deplibs_check_method+:} false; then :
5f520819
KY
6278 $as_echo_n "(cached) " >&6
6279else
6280 lt_cv_file_magic_cmd='$MAGIC_CMD'
6281lt_cv_file_magic_test_file=
6282lt_cv_deplibs_check_method='unknown'
6283# Need to set the preceding variable on all platforms that support
6284# interlibrary dependencies.
6285# 'none' -- dependencies not supported.
6286# `unknown' -- same as none, but documents that we really don't know.
6287# 'pass_all' -- all dependencies passed with no checks.
6288# 'test_compile' -- check by making test program.
6289# 'file_magic [[regex]]' -- check by looking for files in library path
6290# which responds to the $file_magic_cmd with a given extended regex.
6291# If you have `file' or equivalent on your system and you're not sure
6292# whether `pass_all' will *always* work, you probably want this one.
6293
6294case $host_os in
6295aix[4-9]*)
6296 lt_cv_deplibs_check_method=pass_all
6297 ;;
6298
6299beos*)
6300 lt_cv_deplibs_check_method=pass_all
6301 ;;
6302
6303bsdi[45]*)
6304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6305 lt_cv_file_magic_cmd='/usr/bin/file -L'
6306 lt_cv_file_magic_test_file=/shlib/libc.so
6307 ;;
6308
6309cygwin*)
6310 # func_win32_libid is a shell function defined in ltmain.sh
6311 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6312 lt_cv_file_magic_cmd='func_win32_libid'
6313 ;;
6314
6315mingw* | pw32*)
6316 # Base MSYS/MinGW do not provide the 'file' command needed by
6317 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6318 # unless we find 'file', for example because we are cross-compiling.
6319 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6320 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6321 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6322 lt_cv_file_magic_cmd='func_win32_libid'
6323 else
6324 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6325 lt_cv_file_magic_cmd='$OBJDUMP -f'
6326 fi
6327 ;;
6328
6329cegcc*)
6330 # use the weaker test based on 'objdump'. See mingw*.
6331 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6332 lt_cv_file_magic_cmd='$OBJDUMP -f'
6333 ;;
6334
6335darwin* | rhapsody*)
6336 lt_cv_deplibs_check_method=pass_all
6337 ;;
6338
6339freebsd* | dragonfly*)
6340 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6341 case $host_cpu in
6342 i*86 )
6343 # Not sure whether the presence of OpenBSD here was a mistake.
6344 # Let's accept both of them until this is cleared up.
6345 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6346 lt_cv_file_magic_cmd=/usr/bin/file
6347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6348 ;;
6349 esac
6350 else
6351 lt_cv_deplibs_check_method=pass_all
6352 fi
6353 ;;
6354
6355gnu*)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358
6359haiku*)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
6362
6363hpux10.20* | hpux11*)
6364 lt_cv_file_magic_cmd=/usr/bin/file
6365 case $host_cpu in
6366 ia64*)
6367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6368 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6369 ;;
6370 hppa*64*)
6371 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]'
6372 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6373 ;;
6374 *)
6375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6376 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6377 ;;
6378 esac
6379 ;;
6380
6381interix[3-9]*)
6382 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6384 ;;
6385
6386irix5* | irix6* | nonstopux*)
6387 case $LD in
6388 *-32|*"-32 ") libmagic=32-bit;;
6389 *-n32|*"-n32 ") libmagic=N32;;
6390 *-64|*"-64 ") libmagic=64-bit;;
6391 *) libmagic=never-match;;
6392 esac
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396# This must be Linux ELF.
e9085da5 6397linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5f520819
KY
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401netbsd*)
6402 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6404 else
6405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6406 fi
6407 ;;
6408
6409newos6*)
6410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6411 lt_cv_file_magic_cmd=/usr/bin/file
6412 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6413 ;;
6414
6415*nto* | *qnx*)
6416 lt_cv_deplibs_check_method=pass_all
6417 ;;
6418
6419openbsd*)
6420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6422 else
6423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6424 fi
6425 ;;
6426
6427osf3* | osf4* | osf5*)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430
6431rdos*)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
6434
6435solaris*)
6436 lt_cv_deplibs_check_method=pass_all
6437 ;;
6438
6439sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6440 lt_cv_deplibs_check_method=pass_all
6441 ;;
6442
6443sysv4 | sysv4.3*)
6444 case $host_vendor in
6445 motorola)
6446 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]'
6447 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6448 ;;
6449 ncr)
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
6452 sequent)
6453 lt_cv_file_magic_cmd='/bin/file'
6454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6455 ;;
6456 sni)
6457 lt_cv_file_magic_cmd='/bin/file'
6458 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6459 lt_cv_file_magic_test_file=/lib/libc.so
6460 ;;
6461 siemens)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464 pc)
6465 lt_cv_deplibs_check_method=pass_all
6466 ;;
6467 esac
6468 ;;
6469
6470tpf*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473esac
6474
6475fi
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6477$as_echo "$lt_cv_deplibs_check_method" >&6; }
6478file_magic_cmd=$lt_cv_file_magic_cmd
6479deplibs_check_method=$lt_cv_deplibs_check_method
6480test -z "$deplibs_check_method" && deplibs_check_method=unknown
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6495set dummy ${ac_tool_prefix}ar; ac_word=$2
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6498if ${ac_cv_prog_AR+:} false; then :
5f520819
KY
6499 $as_echo_n "(cached) " >&6
6500else
6501 if test -n "$AR"; then
6502 ac_cv_prog_AR="$AR" # Let the user override the test.
6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6511 ac_cv_prog_AR="${ac_tool_prefix}ar"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515done
6516 done
6517IFS=$as_save_IFS
6518
6519fi
6520fi
6521AR=$ac_cv_prog_AR
6522if test -n "$AR"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6524$as_echo "$AR" >&6; }
6525else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529
6530
6531fi
6532if test -z "$ac_cv_prog_AR"; then
6533 ac_ct_AR=$AR
6534 # Extract the first word of "ar", so it can be a program name with args.
6535set dummy ar; ac_word=$2
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6538if ${ac_cv_prog_ac_ct_AR+:} false; then :
5f520819
KY
6539 $as_echo_n "(cached) " >&6
6540else
6541 if test -n "$ac_ct_AR"; then
6542 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6543else
6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in $PATH
6546do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6551 ac_cv_prog_ac_ct_AR="ar"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555done
6556 done
6557IFS=$as_save_IFS
6558
6559fi
6560fi
6561ac_ct_AR=$ac_cv_prog_ac_ct_AR
6562if test -n "$ac_ct_AR"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6564$as_echo "$ac_ct_AR" >&6; }
6565else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567$as_echo "no" >&6; }
6568fi
6569
6570 if test "x$ac_ct_AR" = x; then
6571 AR="false"
6572 else
6573 case $cross_compiling:$ac_tool_warned in
6574yes:)
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577ac_tool_warned=yes ;;
6578esac
6579 AR=$ac_ct_AR
6580 fi
6581else
6582 AR="$ac_cv_prog_AR"
6583fi
6584
6585test -z "$AR" && AR=ar
6586test -z "$AR_FLAGS" && AR_FLAGS=cru
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598if test -n "$ac_tool_prefix"; then
6599 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6600set dummy ${ac_tool_prefix}strip; ac_word=$2
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6603if ${ac_cv_prog_STRIP+:} false; then :
5f520819
KY
6604 $as_echo_n "(cached) " >&6
6605else
6606 if test -n "$STRIP"; then
6607 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6608else
6609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610for as_dir in $PATH
6611do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6616 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620done
6621 done
6622IFS=$as_save_IFS
6623
6624fi
6625fi
6626STRIP=$ac_cv_prog_STRIP
6627if test -n "$STRIP"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6629$as_echo "$STRIP" >&6; }
6630else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632$as_echo "no" >&6; }
6633fi
6634
6635
6636fi
6637if test -z "$ac_cv_prog_STRIP"; then
6638 ac_ct_STRIP=$STRIP
6639 # Extract the first word of "strip", so it can be a program name with args.
6640set dummy strip; ac_word=$2
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6643if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5f520819
KY
6644 $as_echo_n "(cached) " >&6
6645else
6646 if test -n "$ac_ct_STRIP"; then
6647 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6656 ac_cv_prog_ac_ct_STRIP="strip"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660done
6661 done
6662IFS=$as_save_IFS
6663
6664fi
6665fi
6666ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6667if test -n "$ac_ct_STRIP"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6669$as_echo "$ac_ct_STRIP" >&6; }
6670else
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672$as_echo "no" >&6; }
6673fi
6674
6675 if test "x$ac_ct_STRIP" = x; then
6676 STRIP=":"
6677 else
6678 case $cross_compiling:$ac_tool_warned in
6679yes:)
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6682ac_tool_warned=yes ;;
6683esac
6684 STRIP=$ac_ct_STRIP
6685 fi
6686else
6687 STRIP="$ac_cv_prog_STRIP"
6688fi
6689
6690test -z "$STRIP" && STRIP=:
6691
6692
6693
6694
6695
6696
6697if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6699set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6702if ${ac_cv_prog_RANLIB+:} false; then :
5f520819
KY
6703 $as_echo_n "(cached) " >&6
6704else
6705 if test -n "$RANLIB"; then
6706 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6707else
6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6715 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719done
6720 done
6721IFS=$as_save_IFS
6722
6723fi
6724fi
6725RANLIB=$ac_cv_prog_RANLIB
6726if test -n "$RANLIB"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6728$as_echo "$RANLIB" >&6; }
6729else
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731$as_echo "no" >&6; }
6732fi
6733
6734
6735fi
6736if test -z "$ac_cv_prog_RANLIB"; then
6737 ac_ct_RANLIB=$RANLIB
6738 # Extract the first word of "ranlib", so it can be a program name with args.
6739set dummy ranlib; ac_word=$2
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6742if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5f520819
KY
6743 $as_echo_n "(cached) " >&6
6744else
6745 if test -n "$ac_ct_RANLIB"; then
6746 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6747else
6748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6755 ac_cv_prog_ac_ct_RANLIB="ranlib"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759done
6760 done
6761IFS=$as_save_IFS
6762
6763fi
6764fi
6765ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6766if test -n "$ac_ct_RANLIB"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6768$as_echo "$ac_ct_RANLIB" >&6; }
6769else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771$as_echo "no" >&6; }
6772fi
6773
6774 if test "x$ac_ct_RANLIB" = x; then
6775 RANLIB=":"
6776 else
6777 case $cross_compiling:$ac_tool_warned in
6778yes:)
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6781ac_tool_warned=yes ;;
6782esac
6783 RANLIB=$ac_ct_RANLIB
6784 fi
6785else
6786 RANLIB="$ac_cv_prog_RANLIB"
6787fi
6788
6789test -z "$RANLIB" && RANLIB=:
6790
6791
6792
6793
6794
6795
6796# Determine commands to create old-style static archives.
6797old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6798old_postinstall_cmds='chmod 644 $oldlib'
6799old_postuninstall_cmds=
6800
6801if test -n "$RANLIB"; then
6802 case $host_os in
6803 openbsd*)
6804 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6805 ;;
6806 *)
6807 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6808 ;;
6809 esac
6810 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6811fi
6812
6813case $host_os in
6814 darwin*)
6815 lock_old_archive_extraction=yes ;;
6816 *)
6817 lock_old_archive_extraction=no ;;
6818esac
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858# If no C compiler was specified, use CC.
6859LTCC=${LTCC-"$CC"}
6860
6861# If no C compiler flags were specified, use CFLAGS.
6862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6863
6864# Allow CC to be a program name with arguments.
6865compiler=$CC
6866
6867
6868# Check for command to grab the raw symbol name followed by C symbol from nm.
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6870$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6871if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5f520819
KY
6872 $as_echo_n "(cached) " >&6
6873else
6874
6875# These are sane defaults that work on at least a few old systems.
6876# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6877
6878# Character class describing NM global symbol codes.
6879symcode='[BCDEGRST]'
6880
6881# Regexp to match symbols that can be accessed directly from C.
6882sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6883
6884# Define system-specific variables.
6885case $host_os in
6886aix*)
6887 symcode='[BCDT]'
6888 ;;
6889cygwin* | mingw* | pw32* | cegcc*)
6890 symcode='[ABCDGISTW]'
6891 ;;
6892hpux*)
6893 if test "$host_cpu" = ia64; then
6894 symcode='[ABCDEGRST]'
6895 fi
6896 ;;
6897irix* | nonstopux*)
6898 symcode='[BCDEGRST]'
6899 ;;
6900osf*)
6901 symcode='[BCDEGQRST]'
6902 ;;
6903solaris*)
6904 symcode='[BDRT]'
6905 ;;
6906sco3.2v5*)
6907 symcode='[DT]'
6908 ;;
6909sysv4.2uw2*)
6910 symcode='[DT]'
6911 ;;
6912sysv5* | sco5v6* | unixware* | OpenUNIX*)
6913 symcode='[ABDT]'
6914 ;;
6915sysv4)
6916 symcode='[DFNSTU]'
6917 ;;
6918esac
6919
6920# If we're using GNU nm, then use its standard symbol codes.
6921case `$NM -V 2>&1` in
6922*GNU* | *'with BFD'*)
6923 symcode='[ABCDGIRSTW]' ;;
6924esac
6925
6926# Transform an extracted symbol line into a proper C declaration.
6927# Some systems (esp. on ia64) link data and code symbols differently,
6928# so use this general approach.
6929lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6930
6931# Transform an extracted symbol line into symbol name and symbol address
6932lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6933lt_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'"
6934
6935# Handle CRLF in mingw tool chain
6936opt_cr=
6937case $build_os in
6938mingw*)
6939 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6940 ;;
6941esac
6942
6943# Try without a prefix underscore, then with it.
6944for ac_symprfx in "" "_"; do
6945
6946 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6947 symxfrm="\\1 $ac_symprfx\\2 \\2"
6948
6949 # Write the raw and C identifiers.
6950 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6951 # Fake it for dumpbin and say T for any non-static function
6952 # and D for any global variable.
6953 # Also find C++ and __fastcall symbols from MSVC++,
6954 # which start with @ or ?.
6955 lt_cv_sys_global_symbol_pipe="$AWK '"\
6956" {last_section=section; section=\$ 3};"\
6957" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6958" \$ 0!~/External *\|/{next};"\
6959" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6960" {if(hide[section]) next};"\
6961" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6962" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6963" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6964" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6965" ' prfx=^$ac_symprfx"
6966 else
6967 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6968 fi
6969
6970 # Check to see that the pipe works correctly.
6971 pipe_works=no
6972
6973 rm -f conftest*
6974 cat > conftest.$ac_ext <<_LT_EOF
6975#ifdef __cplusplus
6976extern "C" {
6977#endif
6978char nm_test_var;
6979void nm_test_func(void);
6980void nm_test_func(void){}
6981#ifdef __cplusplus
6982}
6983#endif
6984int main(){nm_test_var='a';nm_test_func();return(0);}
6985_LT_EOF
6986
6987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6988 (eval $ac_compile) 2>&5
6989 ac_status=$?
6990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991 test $ac_status = 0; }; then
6992 # Now try to grab the symbols.
6993 nlist=conftest.nm
6994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6995 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6996 ac_status=$?
6997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998 test $ac_status = 0; } && test -s "$nlist"; then
6999 # Try sorting and uniquifying the output.
7000 if sort "$nlist" | uniq > "$nlist"T; then
7001 mv -f "$nlist"T "$nlist"
7002 else
7003 rm -f "$nlist"T
7004 fi
7005
7006 # Make sure that we snagged all the symbols we need.
7007 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7008 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7009 cat <<_LT_EOF > conftest.$ac_ext
7010#ifdef __cplusplus
7011extern "C" {
7012#endif
7013
7014_LT_EOF
7015 # Now generate the symbol file.
7016 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7017
7018 cat <<_LT_EOF >> conftest.$ac_ext
7019
7020/* The mapping between symbol names and symbols. */
7021const struct {
7022 const char *name;
7023 void *address;
7024}
7025lt__PROGRAM__LTX_preloaded_symbols[] =
7026{
7027 { "@PROGRAM@", (void *) 0 },
7028_LT_EOF
7029 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7030 cat <<\_LT_EOF >> conftest.$ac_ext
7031 {0, (void *) 0}
7032};
7033
7034/* This works around a problem in FreeBSD linker */
7035#ifdef FREEBSD_WORKAROUND
7036static const void *lt_preloaded_setup() {
7037 return lt__PROGRAM__LTX_preloaded_symbols;
7038}
7039#endif
7040
7041#ifdef __cplusplus
7042}
7043#endif
7044_LT_EOF
7045 # Now try linking the two files.
7046 mv conftest.$ac_objext conftstm.$ac_objext
7047 lt_save_LIBS="$LIBS"
7048 lt_save_CFLAGS="$CFLAGS"
7049 LIBS="conftstm.$ac_objext"
7050 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7052 (eval $ac_link) 2>&5
7053 ac_status=$?
7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7056 pipe_works=yes
7057 fi
7058 LIBS="$lt_save_LIBS"
7059 CFLAGS="$lt_save_CFLAGS"
7060 else
7061 echo "cannot find nm_test_func in $nlist" >&5
7062 fi
7063 else
7064 echo "cannot find nm_test_var in $nlist" >&5
7065 fi
7066 else
7067 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7068 fi
7069 else
7070 echo "$progname: failed program was:" >&5
7071 cat conftest.$ac_ext >&5
7072 fi
7073 rm -rf conftest* conftst*
7074
7075 # Do not use the global_symbol_pipe unless it works.
7076 if test "$pipe_works" = yes; then
7077 break
7078 else
7079 lt_cv_sys_global_symbol_pipe=
7080 fi
7081done
7082
7083fi
7084
7085if test -z "$lt_cv_sys_global_symbol_pipe"; then
7086 lt_cv_sys_global_symbol_to_cdecl=
7087fi
7088if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7090$as_echo "failed" >&6; }
7091else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7093$as_echo "ok" >&6; }
7094fi
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117# Check whether --enable-libtool-lock was given.
7118if test "${enable_libtool_lock+set}" = set; then :
7119 enableval=$enable_libtool_lock;
7120fi
7121
7122test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7123
7124# Some flags need to be propagated to the compiler or linker for good
7125# libtool support.
7126case $host in
7127ia64-*-hpux*)
7128 # Find out which ABI we are using.
7129 echo 'int i;' > conftest.$ac_ext
7130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7131 (eval $ac_compile) 2>&5
7132 ac_status=$?
7133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7134 test $ac_status = 0; }; then
7135 case `/usr/bin/file conftest.$ac_objext` in
7136 *ELF-32*)
7137 HPUX_IA64_MODE="32"
7138 ;;
7139 *ELF-64*)
7140 HPUX_IA64_MODE="64"
7141 ;;
7142 esac
7143 fi
7144 rm -rf conftest*
7145 ;;
7146*-*-irix6*)
7147 # Find out which ABI we are using.
7148 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150 (eval $ac_compile) 2>&5
7151 ac_status=$?
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }; then
7154 if test "$lt_cv_prog_gnu_ld" = yes; then
7155 case `/usr/bin/file conftest.$ac_objext` in
7156 *32-bit*)
7157 LD="${LD-ld} -melf32bsmip"
7158 ;;
7159 *N32*)
7160 LD="${LD-ld} -melf32bmipn32"
7161 ;;
7162 *64-bit*)
7163 LD="${LD-ld} -melf64bmip"
7164 ;;
7165 esac
7166 else
7167 case `/usr/bin/file conftest.$ac_objext` in
7168 *32-bit*)
7169 LD="${LD-ld} -32"
7170 ;;
7171 *N32*)
7172 LD="${LD-ld} -n32"
7173 ;;
7174 *64-bit*)
7175 LD="${LD-ld} -64"
7176 ;;
7177 esac
7178 fi
7179 fi
7180 rm -rf conftest*
7181 ;;
7182
7183x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7184s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7185 # Find out which ABI we are using.
7186 echo 'int i;' > conftest.$ac_ext
7187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7188 (eval $ac_compile) 2>&5
7189 ac_status=$?
7190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7191 test $ac_status = 0; }; then
7192 case `/usr/bin/file conftest.o` in
7193 *32-bit*)
7194 case $host in
7195 x86_64-*kfreebsd*-gnu)
7196 LD="${LD-ld} -m elf_i386_fbsd"
7197 ;;
7198 x86_64-*linux*)
7199 case `/usr/bin/file conftest.o` in
7200 *x86-64*)
7201 LD="${LD-ld} -m elf32_x86_64"
7202 ;;
7203 *)
7204 LD="${LD-ld} -m elf_i386"
7205 ;;
7206 esac
7207 ;;
7208 powerpc64le-*linux*)
7209 LD="${LD-ld} -m elf32lppclinux"
7210 ;;
7211 powerpc64-*linux*)
7212 LD="${LD-ld} -m elf32ppclinux"
7213 ;;
7214 s390x-*linux*)
7215 LD="${LD-ld} -m elf_s390"
7216 ;;
7217 sparc64-*linux*)
7218 LD="${LD-ld} -m elf32_sparc"
7219 ;;
7220 esac
7221 ;;
7222 *64-bit*)
7223 case $host in
7224 x86_64-*kfreebsd*-gnu)
7225 LD="${LD-ld} -m elf_x86_64_fbsd"
7226 ;;
7227 x86_64-*linux*)
7228 LD="${LD-ld} -m elf_x86_64"
7229 ;;
7230 powerpcle-*linux*)
7231 LD="${LD-ld} -m elf64lppc"
7232 ;;
7233 powerpc-*linux*)
7234 LD="${LD-ld} -m elf64ppc"
7235 ;;
7236 s390*-*linux*|s390*-*tpf*)
7237 LD="${LD-ld} -m elf64_s390"
7238 ;;
7239 sparc*-*linux*)
7240 LD="${LD-ld} -m elf64_sparc"
7241 ;;
7242 esac
7243 ;;
7244 esac
7245 fi
7246 rm -rf conftest*
7247 ;;
7248
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; }
22e05272 7255if ${lt_cv_cc_needs_belf+:} false; then :
5f520819
KY
7256 $as_echo_n "(cached) " >&6
7257else
7258 ac_ext=c
7259ac_cpp='$CPP $CPPFLAGS'
7260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262ac_compiler_gnu=$ac_cv_c_compiler_gnu
7263
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265/* end confdefs.h. */
7266
7267int
7268main ()
7269{
7270
7271 ;
7272 return 0;
7273}
7274_ACEOF
7275if ac_fn_c_try_link "$LINENO"; then :
7276 lt_cv_cc_needs_belf=yes
7277else
7278 lt_cv_cc_needs_belf=no
7279fi
7280rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7282 ac_ext=c
7283ac_cpp='$CPP $CPPFLAGS'
7284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286ac_compiler_gnu=$ac_cv_c_compiler_gnu
7287
7288fi
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"
7294 fi
7295 ;;
7296sparc*-*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" ;;
7308 *)
7309 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7310 LD="${LD-ld} -64"
7311 fi
7312 ;;
7313 esac
7314 ;;
7315 esac
7316 fi
7317 rm -rf conftest*
7318 ;;
7319esac
7320
7321need_locks="$enable_libtool_lock"
7322
7323
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.
7328set 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; }
22e05272 7331if ${ac_cv_prog_DSYMUTIL+:} false; then :
5f520819
KY
7332 $as_echo_n "(cached) " >&6
7333else
7334 if test -n "$DSYMUTIL"; then
7335 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
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
7347 fi
7348done
7349 done
7350IFS=$as_save_IFS
7351
7352fi
7353fi
7354DSYMUTIL=$ac_cv_prog_DSYMUTIL
7355if test -n "$DSYMUTIL"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7357$as_echo "$DSYMUTIL" >&6; }
7358else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360$as_echo "no" >&6; }
7361fi
7362
7363
7364fi
7365if 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.
7368set 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; }
22e05272 7371if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5f520819
KY
7372 $as_echo_n "(cached) " >&6
7373else
7374 if test -n "$ac_ct_DSYMUTIL"; then
7375 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7376else
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
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
7387 fi
7388done
7389 done
7390IFS=$as_save_IFS
7391
7392fi
7393fi
7394ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7395if 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; }
7398else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
7401fi
7402
7403 if test "x$ac_ct_DSYMUTIL" = x; then
7404 DSYMUTIL=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407yes:)
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;}
7410ac_tool_warned=yes ;;
7411esac
7412 DSYMUTIL=$ac_ct_DSYMUTIL
7413 fi
7414else
7415 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7416fi
7417
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.
7420set 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; }
22e05272 7423if ${ac_cv_prog_NMEDIT+:} false; then :
5f520819
KY
7424 $as_echo_n "(cached) " >&6
7425else
7426 if test -n "$NMEDIT"; then
7427 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7428else
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
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
7439 fi
7440done
7441 done
7442IFS=$as_save_IFS
7443
7444fi
7445fi
7446NMEDIT=$ac_cv_prog_NMEDIT
7447if test -n "$NMEDIT"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7449$as_echo "$NMEDIT" >&6; }
7450else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
7453fi
7454
7455
7456fi
7457if 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.
7460set 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; }
22e05272 7463if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5f520819
KY
7464 $as_echo_n "(cached) " >&6
7465else
7466 if test -n "$ac_ct_NMEDIT"; then
7467 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
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
7479 fi
7480done
7481 done
7482IFS=$as_save_IFS
7483
7484fi
7485fi
7486ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7487if 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; }
7490else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492$as_echo "no" >&6; }
7493fi
7494
7495 if test "x$ac_ct_NMEDIT" = x; then
7496 NMEDIT=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499yes:)
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;}
7502ac_tool_warned=yes ;;
7503esac
7504 NMEDIT=$ac_ct_NMEDIT
7505 fi
7506else
7507 NMEDIT="$ac_cv_prog_NMEDIT"
7508fi
7509
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.
7512set 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; }
22e05272 7515if ${ac_cv_prog_LIPO+:} false; then :
5f520819
KY
7516 $as_echo_n "(cached) " >&6
7517else
7518 if test -n "$LIPO"; then
7519 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7520else
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
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
7531 fi
7532done
7533 done
7534IFS=$as_save_IFS
7535
7536fi
7537fi
7538LIPO=$ac_cv_prog_LIPO
7539if test -n "$LIPO"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7541$as_echo "$LIPO" >&6; }
7542else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544$as_echo "no" >&6; }
7545fi
7546
7547
7548fi
7549if 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.
7552set 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; }
22e05272 7555if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5f520819
KY
7556 $as_echo_n "(cached) " >&6
7557else
7558 if test -n "$ac_ct_LIPO"; then
7559 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
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
7571 fi
7572done
7573 done
7574IFS=$as_save_IFS
7575
7576fi
7577fi
7578ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7579if 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; }
7582else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
7585fi
7586
7587 if test "x$ac_ct_LIPO" = x; then
7588 LIPO=":"
7589 else
7590 case $cross_compiling:$ac_tool_warned in
7591yes:)
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;}
7594ac_tool_warned=yes ;;
7595esac
7596 LIPO=$ac_ct_LIPO
7597 fi
7598else
7599 LIPO="$ac_cv_prog_LIPO"
7600fi
7601
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.
7604set 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; }
22e05272 7607if ${ac_cv_prog_OTOOL+:} false; then :
5f520819
KY
7608 $as_echo_n "(cached) " >&6
7609else
7610 if test -n "$OTOOL"; then
7611 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7612else
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
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
7623 fi
7624done
7625 done
7626IFS=$as_save_IFS
7627
7628fi
7629fi
7630OTOOL=$ac_cv_prog_OTOOL
7631if test -n "$OTOOL"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7633$as_echo "$OTOOL" >&6; }
7634else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636$as_echo "no" >&6; }
7637fi
7638
7639
7640fi
7641if 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.
7644set 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; }
22e05272 7647if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5f520819
KY
7648 $as_echo_n "(cached) " >&6
7649else
7650 if test -n "$ac_ct_OTOOL"; then
7651 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7652else
7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
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
7663 fi
7664done
7665 done
7666IFS=$as_save_IFS
7667
7668fi
7669fi
7670ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7671if 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; }
7674else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676$as_echo "no" >&6; }
7677fi
7678
7679 if test "x$ac_ct_OTOOL" = x; then
7680 OTOOL=":"
7681 else
7682 case $cross_compiling:$ac_tool_warned in
7683yes:)
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;}
7686ac_tool_warned=yes ;;
7687esac
7688 OTOOL=$ac_ct_OTOOL
7689 fi
7690else
7691 OTOOL="$ac_cv_prog_OTOOL"
7692fi
7693
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.
7696set 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; }
22e05272 7699if ${ac_cv_prog_OTOOL64+:} false; then :
5f520819
KY
7700 $as_echo_n "(cached) " >&6
7701else
7702 if test -n "$OTOOL64"; then
7703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7704else
7705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706for as_dir in $PATH
7707do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
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
7715 fi
7716done
7717 done
7718IFS=$as_save_IFS
7719
7720fi
7721fi
7722OTOOL64=$ac_cv_prog_OTOOL64
7723if test -n "$OTOOL64"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7725$as_echo "$OTOOL64" >&6; }
7726else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728$as_echo "no" >&6; }
7729fi
7730
7731
7732fi
7733if 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.
7736set 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; }
22e05272 7739if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5f520819
KY
7740 $as_echo_n "(cached) " >&6
7741else
7742 if test -n "$ac_ct_OTOOL64"; then
7743 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7744else
7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
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
7755 fi
7756done
7757 done
7758IFS=$as_save_IFS
7759
7760fi
7761fi
7762ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7763if 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; }
7766else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768$as_echo "no" >&6; }
7769fi
7770
7771 if test "x$ac_ct_OTOOL64" = x; then
7772 OTOOL64=":"
7773 else
7774 case $cross_compiling:$ac_tool_warned in
7775yes:)
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;}
7778ac_tool_warned=yes ;;
7779esac
7780 OTOOL64=$ac_ct_OTOOL64
7781 fi
7782else
7783 OTOOL64="$ac_cv_prog_OTOOL64"
7784fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
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; }
22e05272 7814if ${lt_cv_apple_cc_single_mod+:} false; then :
5f520819
KY
7815 $as_echo_n "(cached) " >&6
7816else
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
7834 fi
7835 rm -rf libconftest.dylib*
7836 rm -f conftest.*
7837 fi
7838fi
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; }
22e05272 7843if ${lt_cv_ld_exported_symbols_list+:} false; then :
5f520819
KY
7844 $as_echo_n "(cached) " >&6
7845else
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. */
7852
7853int
7854main ()
7855{
7856
7857 ;
7858 return 0;
7859}
7860_ACEOF
7861if ac_fn_c_try_link "$LINENO"; then :
7862 lt_cv_ld_exported_symbols_list=yes
7863else
7864 lt_cv_ld_exported_symbols_list=no
7865fi
7866rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 LDFLAGS="$save_LDFLAGS"
7869
7870fi
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; }
22e05272 7875if ${lt_cv_ld_force_load+:} false; then :
5f520819
KY
7876 $as_echo_n "(cached) " >&6
7877else
7878 lt_cv_ld_force_load=no
7879 cat > conftest.c << _LT_EOF
7880int 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
7887int 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
7896 fi
7897 rm -f conftest.err libconftest.a conftest conftest.c
7898 rm -rf conftest.dSYM
7899
7900fi
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7902$as_echo "$lt_cv_ld_force_load" >&6; }
b1a3d2b7
ML
7903 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7904 # build without first building modern cctools / linker.
7905 case $host_cpu-$host_os in
7906 *-rhapsody* | *-darwin1.[012])
5f520819 7907 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
b1a3d2b7 7908 *-darwin1.*)
5f520819 7909 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
b1a3d2b7
ML
7910 *-darwin*)
7911 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7912 # deployment target is forced to an earlier version.
7913 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7914 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7915 ;;
735aacba 7916 10.[012][,.]*)
b1a3d2b7
ML
7917 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7918 ;;
7919 *)
7920 ;;
7921 esac
5f520819
KY
7922 ;;
7923 esac
7924 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7925 _lt_dar_single_mod='$single_module'
7926 fi
7927 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7928 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7929 else
7930 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7931 fi
7932 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7933 _lt_dsymutil='~$DSYMUTIL $lib || :'
7934 else
7935 _lt_dsymutil=
7936 fi
7937 ;;
7938 esac
7939
7940for ac_header in dlfcn.h
7941do :
7942 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7943"
22e05272 7944if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5f520819
KY
7945 cat >>confdefs.h <<_ACEOF
7946#define HAVE_DLFCN_H 1
7947_ACEOF
7948
7949fi
7950
7951done
7952
7953
7954
7955
7956
7957
7958# Set options
7959
7960
7961
7962
7963 enable_win32_dll=no
7964
7965
7966 # Check whether --enable-shared was given.
7967if test "${enable_shared+set}" = set; then :
7968 enableval=$enable_shared; p=${PACKAGE-default}
7969 case $enableval in
7970 yes) enable_shared=yes ;;
7971 no) enable_shared=no ;;
7972 *)
7973 enable_shared=no
7974 # Look at the argument we got. We use all the common list separators.
7975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7976 for pkg in $enableval; do
7977 IFS="$lt_save_ifs"
7978 if test "X$pkg" = "X$p"; then
7979 enable_shared=yes
7980 fi
7981 done
7982 IFS="$lt_save_ifs"
7983 ;;
7984 esac
7985else
7986 enable_shared=yes
7987fi
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997 # Check whether --enable-static was given.
7998if test "${enable_static+set}" = set; then :
7999 enableval=$enable_static; p=${PACKAGE-default}
8000 case $enableval in
8001 yes) enable_static=yes ;;
8002 no) enable_static=no ;;
8003 *)
8004 enable_static=no
8005 # Look at the argument we got. We use all the common list separators.
8006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8007 for pkg in $enableval; do
8008 IFS="$lt_save_ifs"
8009 if test "X$pkg" = "X$p"; then
8010 enable_static=yes
8011 fi
8012 done
8013 IFS="$lt_save_ifs"
8014 ;;
8015 esac
8016else
8017 enable_static=yes
8018fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029# Check whether --with-pic was given.
8030if test "${with_pic+set}" = set; then :
8031 withval=$with_pic; pic_mode="$withval"
8032else
8033 pic_mode=default
8034fi
8035
8036
8037test -z "$pic_mode" && pic_mode=default
8038
8039
8040
8041
8042
8043
8044
8045 # Check whether --enable-fast-install was given.
8046if test "${enable_fast_install+set}" = set; then :
8047 enableval=$enable_fast_install; p=${PACKAGE-default}
8048 case $enableval in
8049 yes) enable_fast_install=yes ;;
8050 no) enable_fast_install=no ;;
8051 *)
8052 enable_fast_install=no
8053 # Look at the argument we got. We use all the common list separators.
8054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8055 for pkg in $enableval; do
8056 IFS="$lt_save_ifs"
8057 if test "X$pkg" = "X$p"; then
8058 enable_fast_install=yes
8059 fi
8060 done
8061 IFS="$lt_save_ifs"
8062 ;;
8063 esac
8064else
8065 enable_fast_install=yes
8066fi
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078# This can be used to rebuild libtool when needed
8079LIBTOOL_DEPS="$ltmain"
8080
8081# Always use our own libtool.
8082LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109test -z "$LN_S" && LN_S="ln -s"
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124if test -n "${ZSH_VERSION+set}" ; then
8125 setopt NO_GLOB_SUBST
8126fi
8127
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8129$as_echo_n "checking for objdir... " >&6; }
22e05272 8130if ${lt_cv_objdir+:} false; then :
5f520819
KY
8131 $as_echo_n "(cached) " >&6
8132else
8133 rm -f .libs 2>/dev/null
8134mkdir .libs 2>/dev/null
8135if test -d .libs; then
8136 lt_cv_objdir=.libs
8137else
8138 # MS-DOS does not allow filenames that begin with a dot.
8139 lt_cv_objdir=_libs
8140fi
8141rmdir .libs 2>/dev/null
8142fi
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8144$as_echo "$lt_cv_objdir" >&6; }
8145objdir=$lt_cv_objdir
8146
8147
8148
8149
8150
8151cat >>confdefs.h <<_ACEOF
8152#define LT_OBJDIR "$lt_cv_objdir/"
8153_ACEOF
8154
8155
8156
8157
8158case $host_os in
8159aix3*)
8160 # AIX sometimes has problems with the GCC collect2 program. For some
8161 # reason, if we set the COLLECT_NAMES environment variable, the problems
8162 # vanish in a puff of smoke.
8163 if test "X${COLLECT_NAMES+set}" != Xset; then
8164 COLLECT_NAMES=
8165 export COLLECT_NAMES
8166 fi
8167 ;;
8168esac
8169
8170# Global variables:
8171ofile=libtool
8172can_build_shared=yes
8173
8174# All known linkers require a `.a' archive for static linking (except MSVC,
8175# which needs '.lib').
8176libext=a
8177
8178with_gnu_ld="$lt_cv_prog_gnu_ld"
8179
8180old_CC="$CC"
8181old_CFLAGS="$CFLAGS"
8182
8183# Set sane defaults for various variables
8184test -z "$CC" && CC=cc
8185test -z "$LTCC" && LTCC=$CC
8186test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8187test -z "$LD" && LD=ld
8188test -z "$ac_objext" && ac_objext=o
8189
8190for cc_temp in $compiler""; do
8191 case $cc_temp in
8192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8194 \-*) ;;
8195 *) break;;
8196 esac
8197done
8198cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8199
8200
8201# Only perform the check for file, if the check method requires it
8202test -z "$MAGIC_CMD" && MAGIC_CMD=file
8203case $deplibs_check_method in
8204file_magic*)
8205 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8207$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8208if ${lt_cv_path_MAGIC_CMD+:} false; then :
5f520819
KY
8209 $as_echo_n "(cached) " >&6
8210else
8211 case $MAGIC_CMD in
8212[\\/*] | ?:[\\/]*)
8213 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8214 ;;
8215*)
8216 lt_save_MAGIC_CMD="$MAGIC_CMD"
8217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8218 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8219 for ac_dir in $ac_dummy; do
8220 IFS="$lt_save_ifs"
8221 test -z "$ac_dir" && ac_dir=.
8222 if test -f $ac_dir/${ac_tool_prefix}file; then
8223 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8224 if test -n "$file_magic_test_file"; then
8225 case $deplibs_check_method in
8226 "file_magic "*)
8227 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8230 $EGREP "$file_magic_regex" > /dev/null; then
8231 :
8232 else
8233 cat <<_LT_EOF 1>&2
8234
8235*** Warning: the command libtool uses to detect shared libraries,
8236*** $file_magic_cmd, produces output that libtool cannot recognize.
8237*** The result is that libtool may fail to recognize shared libraries
8238*** as such. This will affect the creation of libtool libraries that
8239*** depend on shared libraries, but programs linked with such libtool
8240*** libraries will work regardless of this problem. Nevertheless, you
8241*** may want to report the problem to your system manager and/or to
8242*** bug-libtool@gnu.org
8243
8244_LT_EOF
8245 fi ;;
8246 esac
8247 fi
8248 break
8249 fi
8250 done
8251 IFS="$lt_save_ifs"
8252 MAGIC_CMD="$lt_save_MAGIC_CMD"
8253 ;;
8254esac
8255fi
8256
8257MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8258if test -n "$MAGIC_CMD"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8260$as_echo "$MAGIC_CMD" >&6; }
8261else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263$as_echo "no" >&6; }
8264fi
8265
8266
8267
8268
8269
8270if test -z "$lt_cv_path_MAGIC_CMD"; then
8271 if test -n "$ac_tool_prefix"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8273$as_echo_n "checking for file... " >&6; }
22e05272 8274if ${lt_cv_path_MAGIC_CMD+:} false; then :
5f520819
KY
8275 $as_echo_n "(cached) " >&6
8276else
8277 case $MAGIC_CMD in
8278[\\/*] | ?:[\\/]*)
8279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8280 ;;
8281*)
8282 lt_save_MAGIC_CMD="$MAGIC_CMD"
8283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8285 for ac_dir in $ac_dummy; do
8286 IFS="$lt_save_ifs"
8287 test -z "$ac_dir" && ac_dir=.
8288 if test -f $ac_dir/file; then
8289 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8290 if test -n "$file_magic_test_file"; then
8291 case $deplibs_check_method in
8292 "file_magic "*)
8293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8296 $EGREP "$file_magic_regex" > /dev/null; then
8297 :
8298 else
8299 cat <<_LT_EOF 1>&2
8300
8301*** Warning: the command libtool uses to detect shared libraries,
8302*** $file_magic_cmd, produces output that libtool cannot recognize.
8303*** The result is that libtool may fail to recognize shared libraries
8304*** as such. This will affect the creation of libtool libraries that
8305*** depend on shared libraries, but programs linked with such libtool
8306*** libraries will work regardless of this problem. Nevertheless, you
8307*** may want to report the problem to your system manager and/or to
8308*** bug-libtool@gnu.org
8309
8310_LT_EOF
8311 fi ;;
8312 esac
8313 fi
8314 break
8315 fi
8316 done
8317 IFS="$lt_save_ifs"
8318 MAGIC_CMD="$lt_save_MAGIC_CMD"
8319 ;;
8320esac
8321fi
8322
8323MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8324if test -n "$MAGIC_CMD"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8326$as_echo "$MAGIC_CMD" >&6; }
8327else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329$as_echo "no" >&6; }
8330fi
8331
8332
8333 else
8334 MAGIC_CMD=:
8335 fi
8336fi
8337
8338 fi
8339 ;;
8340esac
8341
8342# Use C for the default configuration in the libtool script
8343
8344lt_save_CC="$CC"
8345ac_ext=c
8346ac_cpp='$CPP $CPPFLAGS'
8347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350
8351
8352# Source file extension for C test sources.
8353ac_ext=c
8354
8355# Object file extension for compiled C test sources.
8356objext=o
8357objext=$objext
8358
8359# Code to be used in simple compile tests
8360lt_simple_compile_test_code="int some_variable = 0;"
8361
8362# Code to be used in simple link tests
8363lt_simple_link_test_code='int main(){return(0);}'
8364
8365
8366
8367
8368
8369
8370
8371# If no C compiler was specified, use CC.
8372LTCC=${LTCC-"$CC"}
8373
8374# If no C compiler flags were specified, use CFLAGS.
8375LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8376
8377# Allow CC to be a program name with arguments.
8378compiler=$CC
8379
8380# Save the default compiler, since it gets overwritten when the other
8381# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8382compiler_DEFAULT=$CC
8383
8384# save warnings/boilerplate of simple test code
8385ac_outfile=conftest.$ac_objext
8386echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8387eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8388_lt_compiler_boilerplate=`cat conftest.err`
8389$RM conftest*
8390
8391ac_outfile=conftest.$ac_objext
8392echo "$lt_simple_link_test_code" >conftest.$ac_ext
8393eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8394_lt_linker_boilerplate=`cat conftest.err`
8395$RM -r conftest*
8396
8397
8398## CAVEAT EMPTOR:
8399## There is no encapsulation within the following macros, do not change
8400## the running order or otherwise move them around unless you know exactly
8401## what you are doing...
8402if test -n "$compiler"; then
8403
8404lt_prog_compiler_no_builtin_flag=
8405
8406if test "$GCC" = yes; then
8407 case $cc_basename in
8408 nvcc*)
8409 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8410 *)
8411 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8412 esac
8413
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8415$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8416if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
5f520819
KY
8417 $as_echo_n "(cached) " >&6
8418else
8419 lt_cv_prog_compiler_rtti_exceptions=no
8420 ac_outfile=conftest.$ac_objext
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422 lt_compiler_flag="-fno-rtti -fno-exceptions"
8423 # Insert the option either (1) after the last *FLAGS variable, or
8424 # (2) before a word containing "conftest.", or (3) at the end.
8425 # Note that $ac_compile itself does not contain backslashes and begins
8426 # with a dollar sign (not a hyphen), so the echo should work correctly.
8427 # The option is referenced via a variable to avoid confusing sed.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>conftest.err)
8434 ac_status=$?
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s "$ac_outfile"; then
8438 # The compiler can only warn and ignore the option if not recognized
8439 # So say no if there are warnings other than the usual output.
8440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8443 lt_cv_prog_compiler_rtti_exceptions=yes
8444 fi
8445 fi
8446 $RM conftest*
8447
8448fi
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8450$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8451
8452if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8453 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8454else
8455 :
8456fi
8457
8458fi
8459
8460
8461
8462
8463
8464
8465 lt_prog_compiler_wl=
8466lt_prog_compiler_pic=
8467lt_prog_compiler_static=
8468
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8470$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8471
8472 if test "$GCC" = yes; then
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_static='-static'
8475
8476 case $host_os in
8477 aix*)
8478 # All AIX code is PIC.
8479 if test "$host_cpu" = ia64; then
8480 # AIX 5 now supports IA64 processor
8481 lt_prog_compiler_static='-Bstatic'
8482 fi
8483 lt_prog_compiler_pic='-fPIC'
8484 ;;
8485
8486 amigaos*)
8487 case $host_cpu in
8488 powerpc)
8489 # see comment about AmigaOS4 .so support
8490 lt_prog_compiler_pic='-fPIC'
8491 ;;
8492 m68k)
8493 # FIXME: we need at least 68020 code to build shared libraries, but
8494 # adding the `-m68020' flag to GCC prevents building anything better,
8495 # like `-m68040'.
8496 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8497 ;;
8498 esac
8499 ;;
8500
8501 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8502 # PIC is the default for these OSes.
8503 ;;
8504
8505 mingw* | cygwin* | pw32* | os2* | cegcc*)
8506 # This hack is so that the source file can tell whether it is being
8507 # built for inclusion in a dll (and should export symbols for example).
8508 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8509 # (--disable-auto-import) libraries
8510 lt_prog_compiler_pic='-DDLL_EXPORT'
8511 ;;
8512
8513 darwin* | rhapsody*)
8514 # PIC is the default on this platform
8515 # Common symbols not allowed in MH_DYLIB files
8516 lt_prog_compiler_pic='-fno-common'
8517 ;;
8518
8519 haiku*)
8520 # PIC is the default for Haiku.
8521 # The "-static" flag exists, but is broken.
8522 lt_prog_compiler_static=
8523 ;;
8524
8525 hpux*)
8526 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8527 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8528 # sets the default TLS model and affects inlining.
8529 case $host_cpu in
8530 hppa*64*)
8531 # +Z the default
8532 ;;
8533 *)
8534 lt_prog_compiler_pic='-fPIC'
8535 ;;
8536 esac
8537 ;;
8538
8539 interix[3-9]*)
8540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8541 # Instead, we relocate shared libraries at runtime.
8542 ;;
8543
8544 msdosdjgpp*)
8545 # Just because we use GCC doesn't mean we suddenly get shared libraries
8546 # on systems that don't support them.
8547 lt_prog_compiler_can_build_shared=no
8548 enable_shared=no
8549 ;;
8550
8551 *nto* | *qnx*)
8552 # QNX uses GNU C++, but need to define -shared option too, otherwise
8553 # it will coredump.
8554 lt_prog_compiler_pic='-fPIC -shared'
8555 ;;
8556
8557 sysv4*MP*)
8558 if test -d /usr/nec; then
8559 lt_prog_compiler_pic=-Kconform_pic
8560 fi
8561 ;;
8562
8563 *)
8564 lt_prog_compiler_pic='-fPIC'
8565 ;;
8566 esac
8567
8568 case $cc_basename in
8569 nvcc*) # Cuda Compiler Driver 2.2
8570 lt_prog_compiler_wl='-Xlinker '
8571 lt_prog_compiler_pic='-Xcompiler -fPIC'
8572 ;;
8573 esac
8574 else
8575 # PORTME Check for flag to pass linker flags through the system compiler.
8576 case $host_os in
8577 aix*)
8578 lt_prog_compiler_wl='-Wl,'
8579 if test "$host_cpu" = ia64; then
8580 # AIX 5 now supports IA64 processor
8581 lt_prog_compiler_static='-Bstatic'
8582 else
8583 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8584 fi
8585 ;;
8586
8587 mingw* | cygwin* | pw32* | os2* | cegcc*)
8588 # This hack is so that the source file can tell whether it is being
8589 # built for inclusion in a dll (and should export symbols for example).
8590 lt_prog_compiler_pic='-DDLL_EXPORT'
8591 ;;
8592
8593 hpux9* | hpux10* | hpux11*)
8594 lt_prog_compiler_wl='-Wl,'
8595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8596 # not for PA HP-UX.
8597 case $host_cpu in
8598 hppa*64*|ia64*)
8599 # +Z the default
8600 ;;
8601 *)
8602 lt_prog_compiler_pic='+Z'
8603 ;;
8604 esac
8605 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8606 lt_prog_compiler_static='${wl}-a ${wl}archive'
8607 ;;
8608
8609 irix5* | irix6* | nonstopux*)
8610 lt_prog_compiler_wl='-Wl,'
8611 # PIC (with -KPIC) is the default.
8612 lt_prog_compiler_static='-non_shared'
8613 ;;
8614
8615 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8616 case $cc_basename in
8617 # old Intel for x86_64 which still supported -KPIC.
8618 ecc*)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-KPIC'
8621 lt_prog_compiler_static='-static'
8622 ;;
8623 # icc used to be incompatible with GCC.
8624 # ICC 10 doesn't accept -KPIC any more.
8625 icc* | ifort*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-fPIC'
8628 lt_prog_compiler_static='-static'
8629 ;;
8630 # Lahey Fortran 8.1.
8631 lf95*)
8632 lt_prog_compiler_wl='-Wl,'
8633 lt_prog_compiler_pic='--shared'
8634 lt_prog_compiler_static='--static'
8635 ;;
8636 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8637 # Portland Group compilers (*not* the Pentium gcc compiler,
8638 # which looks to be a dead project)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-fpic'
8641 lt_prog_compiler_static='-Bstatic'
8642 ;;
8643 ccc*)
8644 lt_prog_compiler_wl='-Wl,'
8645 # All Alpha code is PIC.
8646 lt_prog_compiler_static='-non_shared'
8647 ;;
8648 xl* | bgxl* | bgf* | mpixl*)
8649 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8650 lt_prog_compiler_wl='-Wl,'
8651 lt_prog_compiler_pic='-qpic'
8652 lt_prog_compiler_static='-qstaticlink'
8653 ;;
8654 *)
8655 case `$CC -V 2>&1 | sed 5q` in
8656 *Sun\ F* | *Sun*Fortran*)
8657 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8658 lt_prog_compiler_pic='-KPIC'
8659 lt_prog_compiler_static='-Bstatic'
8660 lt_prog_compiler_wl=''
8661 ;;
8662 *Sun\ C*)
8663 # Sun C 5.9
8664 lt_prog_compiler_pic='-KPIC'
8665 lt_prog_compiler_static='-Bstatic'
8666 lt_prog_compiler_wl='-Wl,'
8667 ;;
8668 esac
8669 ;;
8670 esac
8671 ;;
8672
8673 newsos6)
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 ;;
8677
8678 *nto* | *qnx*)
8679 # QNX uses GNU C++, but need to define -shared option too, otherwise
8680 # it will coredump.
8681 lt_prog_compiler_pic='-fPIC -shared'
8682 ;;
8683
8684 osf3* | osf4* | osf5*)
8685 lt_prog_compiler_wl='-Wl,'
8686 # All OSF/1 code is PIC.
8687 lt_prog_compiler_static='-non_shared'
8688 ;;
8689
8690 rdos*)
8691 lt_prog_compiler_static='-non_shared'
8692 ;;
8693
8694 solaris*)
8695 lt_prog_compiler_pic='-KPIC'
8696 lt_prog_compiler_static='-Bstatic'
8697 case $cc_basename in
8698 f77* | f90* | f95*)
8699 lt_prog_compiler_wl='-Qoption ld ';;
8700 *)
8701 lt_prog_compiler_wl='-Wl,';;
8702 esac
8703 ;;
8704
8705 sunos4*)
8706 lt_prog_compiler_wl='-Qoption ld '
8707 lt_prog_compiler_pic='-PIC'
8708 lt_prog_compiler_static='-Bstatic'
8709 ;;
8710
8711 sysv4 | sysv4.2uw2* | sysv4.3*)
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_pic='-KPIC'
8714 lt_prog_compiler_static='-Bstatic'
8715 ;;
8716
8717 sysv4*MP*)
8718 if test -d /usr/nec ;then
8719 lt_prog_compiler_pic='-Kconform_pic'
8720 lt_prog_compiler_static='-Bstatic'
8721 fi
8722 ;;
8723
8724 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8725 lt_prog_compiler_wl='-Wl,'
8726 lt_prog_compiler_pic='-KPIC'
8727 lt_prog_compiler_static='-Bstatic'
8728 ;;
8729
8730 unicos*)
8731 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_can_build_shared=no
8733 ;;
8734
8735 uts4*)
8736 lt_prog_compiler_pic='-pic'
8737 lt_prog_compiler_static='-Bstatic'
8738 ;;
8739
8740 *)
8741 lt_prog_compiler_can_build_shared=no
8742 ;;
8743 esac
8744 fi
8745
8746case $host_os in
8747 # For platforms which do not support PIC, -DPIC is meaningless:
8748 *djgpp*)
8749 lt_prog_compiler_pic=
8750 ;;
8751 *)
8752 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8753 ;;
8754esac
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8756$as_echo "$lt_prog_compiler_pic" >&6; }
8757
8758
8759
8760
8761
8762
8763#
8764# Check to make sure the PIC flag actually works.
8765#
8766if test -n "$lt_prog_compiler_pic"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8768$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8769if ${lt_cv_prog_compiler_pic_works+:} false; then :
5f520819
KY
8770 $as_echo_n "(cached) " >&6
8771else
8772 lt_cv_prog_compiler_pic_works=no
8773 ac_outfile=conftest.$ac_objext
8774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8776 # Insert the option either (1) after the last *FLAGS variable, or
8777 # (2) before a word containing "conftest.", or (3) at the end.
8778 # Note that $ac_compile itself does not contain backslashes and begins
8779 # with a dollar sign (not a hyphen), so the echo should work correctly.
8780 # The option is referenced via a variable to avoid confusing sed.
8781 lt_compile=`echo "$ac_compile" | $SED \
8782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784 -e 's:$: $lt_compiler_flag:'`
8785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8786 (eval "$lt_compile" 2>conftest.err)
8787 ac_status=$?
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 if (exit $ac_status) && test -s "$ac_outfile"; then
8791 # The compiler can only warn and ignore the option if not recognized
8792 # So say no if there are warnings other than the usual output.
8793 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8796 lt_cv_prog_compiler_pic_works=yes
8797 fi
8798 fi
8799 $RM conftest*
8800
8801fi
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8803$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8804
8805if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8806 case $lt_prog_compiler_pic in
8807 "" | " "*) ;;
8808 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8809 esac
8810else
8811 lt_prog_compiler_pic=
8812 lt_prog_compiler_can_build_shared=no
8813fi
8814
8815fi
8816
8817
8818
8819
8820
8821
8822#
8823# Check to make sure the static flag actually works.
8824#
8825wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8827$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8828if ${lt_cv_prog_compiler_static_works+:} false; then :
5f520819
KY
8829 $as_echo_n "(cached) " >&6
8830else
8831 lt_cv_prog_compiler_static_works=no
8832 save_LDFLAGS="$LDFLAGS"
8833 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8834 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8835 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8836 # The linker can only warn and ignore the option if not recognized
8837 # So say no if there are warnings
8838 if test -s conftest.err; then
8839 # Append any errors to the config.log.
8840 cat conftest.err 1>&5
8841 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8843 if diff conftest.exp conftest.er2 >/dev/null; then
8844 lt_cv_prog_compiler_static_works=yes
8845 fi
8846 else
8847 lt_cv_prog_compiler_static_works=yes
8848 fi
8849 fi
8850 $RM -r conftest*
8851 LDFLAGS="$save_LDFLAGS"
8852
8853fi
8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8855$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8856
8857if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8858 :
8859else
8860 lt_prog_compiler_static=
8861fi
8862
8863
8864
8865
8866
8867
8868
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8870$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8871if ${lt_cv_prog_compiler_c_o+:} false; then :
5f520819
KY
8872 $as_echo_n "(cached) " >&6
8873else
8874 lt_cv_prog_compiler_c_o=no
8875 $RM -r conftest 2>/dev/null
8876 mkdir conftest
8877 cd conftest
8878 mkdir out
8879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8880
8881 lt_compiler_flag="-o out/conftest2.$ac_objext"
8882 # Insert the option either (1) after the last *FLAGS variable, or
8883 # (2) before a word containing "conftest.", or (3) at the end.
8884 # Note that $ac_compile itself does not contain backslashes and begins
8885 # with a dollar sign (not a hyphen), so the echo should work correctly.
8886 lt_compile=`echo "$ac_compile" | $SED \
8887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8889 -e 's:$: $lt_compiler_flag:'`
8890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8891 (eval "$lt_compile" 2>out/conftest.err)
8892 ac_status=$?
8893 cat out/conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8896 then
8897 # The compiler can only warn and ignore the option if not recognized
8898 # So say no if there are warnings
8899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8902 lt_cv_prog_compiler_c_o=yes
8903 fi
8904 fi
8905 chmod u+w . 2>&5
8906 $RM conftest*
8907 # SGI C++ compiler will create directory out/ii_files/ for
8908 # template instantiation
8909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8910 $RM out/* && rmdir out
8911 cd ..
8912 $RM -r conftest
8913 $RM conftest*
8914
8915fi
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8917$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8918
8919
8920
8921
8922
8923
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8925$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8926if ${lt_cv_prog_compiler_c_o+:} false; then :
5f520819
KY
8927 $as_echo_n "(cached) " >&6
8928else
8929 lt_cv_prog_compiler_c_o=no
8930 $RM -r conftest 2>/dev/null
8931 mkdir conftest
8932 cd conftest
8933 mkdir out
8934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8935
8936 lt_compiler_flag="-o out/conftest2.$ac_objext"
8937 # Insert the option either (1) after the last *FLAGS variable, or
8938 # (2) before a word containing "conftest.", or (3) at the end.
8939 # Note that $ac_compile itself does not contain backslashes and begins
8940 # with a dollar sign (not a hyphen), so the echo should work correctly.
8941 lt_compile=`echo "$ac_compile" | $SED \
8942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8944 -e 's:$: $lt_compiler_flag:'`
8945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8946 (eval "$lt_compile" 2>out/conftest.err)
8947 ac_status=$?
8948 cat out/conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8951 then
8952 # The compiler can only warn and ignore the option if not recognized
8953 # So say no if there are warnings
8954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8957 lt_cv_prog_compiler_c_o=yes
8958 fi
8959 fi
8960 chmod u+w . 2>&5
8961 $RM conftest*
8962 # SGI C++ compiler will create directory out/ii_files/ for
8963 # template instantiation
8964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8965 $RM out/* && rmdir out
8966 cd ..
8967 $RM -r conftest
8968 $RM conftest*
8969
8970fi
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8972$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8973
8974
8975
8976
8977hard_links="nottested"
8978if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8979 # do not overwrite the value of need_locks provided by the user
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8981$as_echo_n "checking if we can lock with hard links... " >&6; }
8982 hard_links=yes
8983 $RM conftest*
8984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8985 touch conftest.a
8986 ln conftest.a conftest.b 2>&5 || hard_links=no
8987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8989$as_echo "$hard_links" >&6; }
8990 if test "$hard_links" = no; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8992$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8993 need_locks=warn
8994 fi
8995else
8996 need_locks=no
8997fi
8998
8999
9000
9001
9002
9003
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9005$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9006
9007 runpath_var=
9008 allow_undefined_flag=
9009 always_export_symbols=no
9010 archive_cmds=
9011 archive_expsym_cmds=
9012 compiler_needs_object=no
9013 enable_shared_with_static_runtimes=no
9014 export_dynamic_flag_spec=
9015 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9016 hardcode_automatic=no
9017 hardcode_direct=no
9018 hardcode_direct_absolute=no
9019 hardcode_libdir_flag_spec=
9020 hardcode_libdir_flag_spec_ld=
9021 hardcode_libdir_separator=
9022 hardcode_minus_L=no
9023 hardcode_shlibpath_var=unsupported
9024 inherit_rpath=no
9025 link_all_deplibs=unknown
9026 module_cmds=
9027 module_expsym_cmds=
9028 old_archive_from_new_cmds=
9029 old_archive_from_expsyms_cmds=
9030 thread_safe_flag_spec=
9031 whole_archive_flag_spec=
9032 # include_expsyms should be a list of space-separated symbols to be *always*
9033 # included in the symbol list
9034 include_expsyms=
9035 # exclude_expsyms can be an extended regexp of symbols to exclude
9036 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9038 # as well as any symbol that contains `d'.
9039 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9041 # platforms (ab)use it in PIC code, but their linkers get confused if
9042 # the symbol is explicitly referenced. Since portable code cannot
9043 # rely on this symbol name, it's probably fine to never include it in
9044 # preloaded symbol tables.
9045 # Exclude shared library initialization/finalization symbols.
9046 extract_expsyms_cmds=
9047
9048 case $host_os in
9049 cygwin* | mingw* | pw32* | cegcc*)
9050 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9051 # When not using gcc, we currently assume that we are using
9052 # Microsoft Visual C++.
9053 if test "$GCC" != yes; then
9054 with_gnu_ld=no
9055 fi
9056 ;;
9057 interix*)
9058 # we just hope/assume this is gcc and not c89 (= MSVC++)
9059 with_gnu_ld=yes
9060 ;;
9061 openbsd*)
9062 with_gnu_ld=no
9063 ;;
9064 esac
9065
9066 ld_shlibs=yes
9067
9068 # On some targets, GNU ld is compatible enough with the native linker
9069 # that we're better off using the native interface for both.
9070 lt_use_gnu_ld_interface=no
9071 if test "$with_gnu_ld" = yes; then
9072 case $host_os in
9073 aix*)
9074 # The AIX port of GNU ld has always aspired to compatibility
9075 # with the native linker. However, as the warning in the GNU ld
9076 # block says, versions before 2.19.5* couldn't really create working
9077 # shared libraries, regardless of the interface used.
9078 case `$LD -v 2>&1` in
9079 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9080 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9081 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9082 *)
9083 lt_use_gnu_ld_interface=yes
9084 ;;
9085 esac
9086 ;;
9087 *)
9088 lt_use_gnu_ld_interface=yes
9089 ;;
9090 esac
9091 fi
9092
9093 if test "$lt_use_gnu_ld_interface" = yes; then
9094 # If archive_cmds runs LD, not CC, wlarc should be empty
9095 wlarc='${wl}'
9096
9097 # Set some defaults for GNU ld with shared library support. These
9098 # are reset later if shared libraries are not supported. Putting them
9099 # here allows them to be overridden if necessary.
9100 runpath_var=LD_RUN_PATH
9101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9102 export_dynamic_flag_spec='${wl}--export-dynamic'
9103 # ancient GNU ld didn't support --whole-archive et. al.
9104 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9105 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9106 else
9107 whole_archive_flag_spec=
9108 fi
9109 supports_anon_versioning=no
9110 case `$LD -v 2>&1` in
9111 *GNU\ gold*) supports_anon_versioning=yes ;;
9112 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9113 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9114 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9115 *\ 2.11.*) ;; # other 2.11 versions
9116 *) supports_anon_versioning=yes ;;
9117 esac
9118
9119 # See if GNU ld supports shared libraries.
9120 case $host_os in
9121 aix[3-9]*)
9122 # On AIX/PPC, the GNU linker is very broken
9123 if test "$host_cpu" != ia64; then
9124 ld_shlibs=no
9125 cat <<_LT_EOF 1>&2
9126
9127*** Warning: the GNU linker, at least up to release 2.19, is reported
9128*** to be unable to reliably create shared libraries on AIX.
9129*** Therefore, libtool is disabling shared libraries support. If you
9130*** really care for shared libraries, you may want to install binutils
9131*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9132*** You will then need to restart the configuration process.
9133
9134_LT_EOF
9135 fi
9136 ;;
9137
9138 amigaos*)
9139 case $host_cpu in
9140 powerpc)
9141 # see comment about AmigaOS4 .so support
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9143 archive_expsym_cmds=''
9144 ;;
9145 m68k)
9146 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)'
9147 hardcode_libdir_flag_spec='-L$libdir'
9148 hardcode_minus_L=yes
9149 ;;
9150 esac
9151 ;;
9152
9153 beos*)
9154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9155 allow_undefined_flag=unsupported
9156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9157 # support --undefined. This deserves some investigation. FIXME
9158 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 else
9160 ld_shlibs=no
9161 fi
9162 ;;
9163
9164 cygwin* | mingw* | pw32* | cegcc*)
9165 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9166 # as there is no search path for DLLs.
9167 hardcode_libdir_flag_spec='-L$libdir'
9168 export_dynamic_flag_spec='${wl}--export-all-symbols'
9169 allow_undefined_flag=unsupported
9170 always_export_symbols=no
9171 enable_shared_with_static_runtimes=yes
9172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9173
9174 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9176 # If the export-symbols file already is a .def file (1st line
9177 # is EXPORTS), use it as is; otherwise, prepend...
9178 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9179 cp $export_symbols $output_objdir/$soname.def;
9180 else
9181 echo EXPORTS > $output_objdir/$soname.def;
9182 cat $export_symbols >> $output_objdir/$soname.def;
9183 fi~
9184 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9185 else
9186 ld_shlibs=no
9187 fi
9188 ;;
9189
9190 haiku*)
9191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192 link_all_deplibs=yes
9193 ;;
9194
9195 interix[3-9]*)
9196 hardcode_direct=no
9197 hardcode_shlibpath_var=no
9198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9199 export_dynamic_flag_spec='${wl}-E'
9200 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9201 # Instead, shared libraries are loaded at an image base (0x10000000 by
9202 # default) and relocated if they conflict, which is a slow very memory
9203 # consuming and fragmenting process. To avoid this, we pick a random,
9204 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9205 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9206 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9207 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'
9208 ;;
9209
e9085da5 9210 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5f520819
KY
9211 tmp_diet=no
9212 if test "$host_os" = linux-dietlibc; then
9213 case $cc_basename in
9214 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9215 esac
9216 fi
9217 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9218 && test "$tmp_diet" = no
9219 then
735aacba 9220 tmp_addflag=' $pic_flag'
5f520819
KY
9221 tmp_sharedflag='-shared'
9222 case $cc_basename,$host_cpu in
9223 pgcc*) # Portland Group C compiler
9224 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'
9225 tmp_addflag=' $pic_flag'
9226 ;;
9227 pgf77* | pgf90* | pgf95* | pgfortran*)
9228 # Portland Group f77 and f90 compilers
9229 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'
9230 tmp_addflag=' $pic_flag -Mnomain' ;;
9231 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9232 tmp_addflag=' -i_dynamic' ;;
9233 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9234 tmp_addflag=' -i_dynamic -nofor_main' ;;
9235 ifc* | ifort*) # Intel Fortran compiler
9236 tmp_addflag=' -nofor_main' ;;
9237 lf95*) # Lahey Fortran 8.1
9238 whole_archive_flag_spec=
9239 tmp_sharedflag='--shared' ;;
9240 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9241 tmp_sharedflag='-qmkshrobj'
9242 tmp_addflag= ;;
9243 nvcc*) # Cuda Compiler Driver 2.2
9244 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'
9245 compiler_needs_object=yes
9246 ;;
9247 esac
9248 case `$CC -V 2>&1 | sed 5q` in
9249 *Sun\ C*) # Sun C 5.9
9250 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'
9251 compiler_needs_object=yes
9252 tmp_sharedflag='-G' ;;
9253 *Sun\ F*) # Sun Fortran 8.3
9254 tmp_sharedflag='-G' ;;
9255 esac
9256 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257
9258 if test "x$supports_anon_versioning" = xyes; then
9259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9261 echo "local: *; };" >> $output_objdir/$libname.ver~
9262 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9263 fi
9264
9265 case $cc_basename in
9266 xlf* | bgf* | bgxlf* | mpixlf*)
9267 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9268 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9269 hardcode_libdir_flag_spec=
9270 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9271 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9272 if test "x$supports_anon_versioning" = xyes; then
9273 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9274 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9275 echo "local: *; };" >> $output_objdir/$libname.ver~
9276 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9277 fi
9278 ;;
9279 esac
9280 else
9281 ld_shlibs=no
9282 fi
9283 ;;
9284
9285 netbsd*)
9286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9287 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9288 wlarc=
9289 else
9290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9292 fi
9293 ;;
9294
9295 solaris*)
9296 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9297 ld_shlibs=no
9298 cat <<_LT_EOF 1>&2
9299
9300*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9301*** create shared libraries on Solaris systems. Therefore, libtool
9302*** is disabling shared libraries support. We urge you to upgrade GNU
9303*** binutils to release 2.9.1 or newer. Another option is to modify
9304*** your PATH or compiler configuration so that the native linker is
9305*** used, and then restart.
9306
9307_LT_EOF
9308 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9311 else
9312 ld_shlibs=no
9313 fi
9314 ;;
9315
9316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9317 case `$LD -v 2>&1` in
9318 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9319 ld_shlibs=no
9320 cat <<_LT_EOF 1>&2
9321
9322*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9323*** reliably create shared libraries on SCO systems. Therefore, libtool
9324*** is disabling shared libraries support. We urge you to upgrade GNU
9325*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9326*** your PATH or compiler configuration so that the native linker is
9327*** used, and then restart.
9328
9329_LT_EOF
9330 ;;
9331 *)
9332 # For security reasons, it is highly recommended that you always
9333 # use absolute paths for naming shared libraries, and exclude the
9334 # DT_RUNPATH tag from executables and libraries. But doing so
9335 # requires that you compile everything twice, which is a pain.
9336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9340 else
9341 ld_shlibs=no
9342 fi
9343 ;;
9344 esac
9345 ;;
9346
9347 sunos4*)
9348 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9349 wlarc=
9350 hardcode_direct=yes
9351 hardcode_shlibpath_var=no
9352 ;;
9353
9354 *)
9355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9358 else
9359 ld_shlibs=no
9360 fi
9361 ;;
9362 esac
9363
9364 if test "$ld_shlibs" = no; then
9365 runpath_var=
9366 hardcode_libdir_flag_spec=
9367 export_dynamic_flag_spec=
9368 whole_archive_flag_spec=
9369 fi
9370 else
9371 # PORTME fill in a description of your system's linker (not GNU ld)
9372 case $host_os in
9373 aix3*)
9374 allow_undefined_flag=unsupported
9375 always_export_symbols=yes
9376 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'
9377 # Note: this linker hardcodes the directories in LIBPATH if there
9378 # are no directories specified by -L.
9379 hardcode_minus_L=yes
9380 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9381 # Neither direct hardcoding nor static linking is supported with a
9382 # broken collect2.
9383 hardcode_direct=unsupported
9384 fi
9385 ;;
9386
9387 aix[4-9]*)
9388 if test "$host_cpu" = ia64; then
9389 # On IA64, the linker does run time linking by default, so we don't
9390 # have to do anything special.
9391 aix_use_runtimelinking=no
9392 exp_sym_flag='-Bexport'
9393 no_entry_flag=""
9394 else
9395 # If we're using GNU nm, then we don't want the "-C" option.
9396 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9397 # Also, AIX nm treats weak defined symbols like other global
9398 # defined symbols, whereas GNU nm marks them as "W".
9399 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9400 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'
9401 else
84c1b9d3 9402 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5f520819
KY
9403 fi
9404 aix_use_runtimelinking=no
9405
9406 # Test if we are trying to use run time linking or normal
9407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9408 # need to do runtime linking.
9409 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9410 for ld_flag in $LDFLAGS; do
9411 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9412 aix_use_runtimelinking=yes
9413 break
9414 fi
9415 done
9416 ;;
9417 esac
9418
9419 exp_sym_flag='-bexport'
9420 no_entry_flag='-bnoentry'
9421 fi
9422
9423 # When large executables or shared objects are built, AIX ld can
9424 # have problems creating the table of contents. If linking a library
9425 # or program results in "error TOC overflow" add -mminimal-toc to
9426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9428
9429 archive_cmds=''
9430 hardcode_direct=yes
9431 hardcode_direct_absolute=yes
9432 hardcode_libdir_separator=':'
9433 link_all_deplibs=yes
9434 file_list_spec='${wl}-f,'
9435
9436 if test "$GCC" = yes; then
9437 case $host_os in aix4.[012]|aix4.[012].*)
9438 # We only want to do this on AIX 4.2 and lower, the check
9439 # below for broken collect2 doesn't work under 4.3+
9440 collect2name=`${CC} -print-prog-name=collect2`
9441 if test -f "$collect2name" &&
9442 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9443 then
9444 # We have reworked collect2
9445 :
9446 else
9447 # We have old collect2
9448 hardcode_direct=unsupported
9449 # It fails to find uninstalled libraries when the uninstalled
9450 # path is not listed in the libpath. Setting hardcode_minus_L
9451 # to unsupported forces relinking
9452 hardcode_minus_L=yes
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_libdir_separator=
9455 fi
9456 ;;
9457 esac
9458 shared_flag='-shared'
9459 if test "$aix_use_runtimelinking" = yes; then
9460 shared_flag="$shared_flag "'${wl}-G'
9461 fi
9462 else
9463 # not using gcc
9464 if test "$host_cpu" = ia64; then
9465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9466 # chokes on -Wl,-G. The following line is correct:
9467 shared_flag='-G'
9468 else
9469 if test "$aix_use_runtimelinking" = yes; then
9470 shared_flag='${wl}-G'
9471 else
9472 shared_flag='${wl}-bM:SRE'
9473 fi
9474 fi
9475 fi
9476
9477 export_dynamic_flag_spec='${wl}-bexpall'
9478 # It seems that -bexpall does not export symbols beginning with
9479 # underscore (_), so it is better to generate a list of symbols to export.
9480 always_export_symbols=yes
9481 if test "$aix_use_runtimelinking" = yes; then
9482 # Warning - without using the other runtime loading flags (-brtl),
9483 # -berok will link without error, but may produce a broken library.
9484 allow_undefined_flag='-berok'
9485 # Determine the default libpath from the value encoded in an
9486 # empty executable.
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488/* end confdefs.h. */
9489
9490int
9491main ()
9492{
9493
9494 ;
9495 return 0;
9496}
9497_ACEOF
9498if ac_fn_c_try_link "$LINENO"; then :
9499
9500lt_aix_libpath_sed='
9501 /Import File Strings/,/^$/ {
9502 /^0/ {
9503 s/^0 *\(.*\)$/\1/
9504 p
9505 }
9506 }'
9507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9508# Check for a 64-bit object if we didn't find anything.
9509if test -z "$aix_libpath"; then
9510 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9511fi
9512fi
9513rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9516
9517 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9518 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"
9519 else
9520 if test "$host_cpu" = ia64; then
9521 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9522 allow_undefined_flag="-z nodefs"
9523 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"
9524 else
9525 # Determine the default libpath from the value encoded in an
9526 # empty executable.
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h. */
9529
9530int
9531main ()
9532{
9533
9534 ;
9535 return 0;
9536}
9537_ACEOF
9538if ac_fn_c_try_link "$LINENO"; then :
9539
9540lt_aix_libpath_sed='
9541 /Import File Strings/,/^$/ {
9542 /^0/ {
9543 s/^0 *\(.*\)$/\1/
9544 p
9545 }
9546 }'
9547aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9548# Check for a 64-bit object if we didn't find anything.
9549if test -z "$aix_libpath"; then
9550 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551fi
9552fi
9553rm -f core conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext conftest.$ac_ext
9555if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9556
9557 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9558 # Warning - without using the other run time loading flags,
9559 # -berok will link without error, but may produce a broken library.
9560 no_undefined_flag=' ${wl}-bernotok'
9561 allow_undefined_flag=' ${wl}-berok'
9562 if test "$with_gnu_ld" = yes; then
9563 # We only use this code for GNU lds that support --whole-archive.
9564 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9565 else
9566 # Exported symbols can be pulled into shared objects from archives
9567 whole_archive_flag_spec='$convenience'
9568 fi
9569 archive_cmds_need_lc=yes
9570 # This is similar to how AIX traditionally builds its shared libraries.
9571 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'
9572 fi
9573 fi
9574 ;;
9575
9576 amigaos*)
9577 case $host_cpu in
9578 powerpc)
9579 # see comment about AmigaOS4 .so support
9580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581 archive_expsym_cmds=''
9582 ;;
9583 m68k)
9584 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)'
9585 hardcode_libdir_flag_spec='-L$libdir'
9586 hardcode_minus_L=yes
9587 ;;
9588 esac
9589 ;;
9590
9591 bsdi[45]*)
9592 export_dynamic_flag_spec=-rdynamic
9593 ;;
9594
9595 cygwin* | mingw* | pw32* | cegcc*)
9596 # When not using gcc, we currently assume that we are using
9597 # Microsoft Visual C++.
9598 # hardcode_libdir_flag_spec is actually meaningless, as there is
9599 # no search path for DLLs.
9600 hardcode_libdir_flag_spec=' '
9601 allow_undefined_flag=unsupported
9602 # Tell ltmain to make .lib files, not .a files.
9603 libext=lib
9604 # Tell ltmain to make .dll files, not .so files.
9605 shrext_cmds=".dll"
9606 # FIXME: Setting linknames here is a bad hack.
9607 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9608 # The linker will automatically build a .lib file if we build a DLL.
9609 old_archive_from_new_cmds='true'
9610 # FIXME: Should let the user specify the lib program.
9611 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9612 fix_srcfile_path='`cygpath -w "$srcfile"`'
9613 enable_shared_with_static_runtimes=yes
9614 ;;
9615
9616 darwin* | rhapsody*)
9617
9618
9619 archive_cmds_need_lc=no
9620 hardcode_direct=no
9621 hardcode_automatic=yes
9622 hardcode_shlibpath_var=unsupported
9623 if test "$lt_cv_ld_force_load" = "yes"; then
9624 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\"`'
9625 else
9626 whole_archive_flag_spec=''
9627 fi
9628 link_all_deplibs=yes
9629 allow_undefined_flag="$_lt_dar_allow_undefined"
9630 case $cc_basename in
9631 ifort*) _lt_dar_can_shared=yes ;;
9632 *) _lt_dar_can_shared=$GCC ;;
9633 esac
9634 if test "$_lt_dar_can_shared" = "yes"; then
9635 output_verbose_link_cmd=func_echo_all
9636 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9637 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9638 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}"
9639 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}"
9640
9641 else
9642 ld_shlibs=no
9643 fi
9644
9645 ;;
9646
9647 dgux*)
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 hardcode_shlibpath_var=no
9651 ;;
9652
9653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9654 # support. Future versions do this automatically, but an explicit c++rt0.o
9655 # does not break anything, and helps significantly (at the cost of a little
9656 # extra space).
9657 freebsd2.2*)
9658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9659 hardcode_libdir_flag_spec='-R$libdir'
9660 hardcode_direct=yes
9661 hardcode_shlibpath_var=no
9662 ;;
9663
9664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9665 freebsd2.*)
9666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_direct=yes
9668 hardcode_minus_L=yes
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9673 freebsd* | dragonfly*)
9674 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9675 hardcode_libdir_flag_spec='-R$libdir'
9676 hardcode_direct=yes
9677 hardcode_shlibpath_var=no
9678 ;;
9679
9680 hpux9*)
9681 if test "$GCC" = yes; then
9682 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'
9683 else
9684 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'
9685 fi
9686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9687 hardcode_libdir_separator=:
9688 hardcode_direct=yes
9689
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L=yes
9693 export_dynamic_flag_spec='${wl}-E'
9694 ;;
9695
9696 hpux10*)
9697 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699 else
9700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701 fi
9702 if test "$with_gnu_ld" = no; then
9703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9704 hardcode_libdir_flag_spec_ld='+b $libdir'
9705 hardcode_libdir_separator=:
9706 hardcode_direct=yes
9707 hardcode_direct_absolute=yes
9708 export_dynamic_flag_spec='${wl}-E'
9709 # hardcode_minus_L: Not really in the search PATH,
9710 # but as the default location of the library.
9711 hardcode_minus_L=yes
9712 fi
9713 ;;
9714
9715 hpux11*)
9716 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9717 case $host_cpu in
9718 hppa*64*)
4e4ba647 9719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5f520819
KY
9720 ;;
9721 ia64*)
9722 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9723 ;;
9724 *)
9725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9726 ;;
9727 esac
9728 else
9729 case $host_cpu in
9730 hppa*64*)
4e4ba647 9731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5f520819
KY
9732 ;;
9733 ia64*)
9734 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9735 ;;
9736 *)
9737
9738 # Older versions of the 11.00 compiler do not understand -b yet
9739 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9741$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9742if ${lt_cv_prog_compiler__b+:} false; then :
5f520819
KY
9743 $as_echo_n "(cached) " >&6
9744else
9745 lt_cv_prog_compiler__b=no
9746 save_LDFLAGS="$LDFLAGS"
9747 LDFLAGS="$LDFLAGS -b"
9748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9750 # The linker can only warn and ignore the option if not recognized
9751 # So say no if there are warnings
9752 if test -s conftest.err; then
9753 # Append any errors to the config.log.
9754 cat conftest.err 1>&5
9755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9757 if diff conftest.exp conftest.er2 >/dev/null; then
9758 lt_cv_prog_compiler__b=yes
9759 fi
9760 else
9761 lt_cv_prog_compiler__b=yes
9762 fi
9763 fi
9764 $RM -r conftest*
9765 LDFLAGS="$save_LDFLAGS"
9766
9767fi
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9769$as_echo "$lt_cv_prog_compiler__b" >&6; }
9770
9771if test x"$lt_cv_prog_compiler__b" = xyes; then
9772 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9773else
9774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9775fi
9776
9777 ;;
9778 esac
9779 fi
9780 if test "$with_gnu_ld" = no; then
9781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9782 hardcode_libdir_separator=:
9783
9784 case $host_cpu in
9785 hppa*64*|ia64*)
9786 hardcode_direct=no
9787 hardcode_shlibpath_var=no
9788 ;;
9789 *)
9790 hardcode_direct=yes
9791 hardcode_direct_absolute=yes
9792 export_dynamic_flag_spec='${wl}-E'
9793
9794 # hardcode_minus_L: Not really in the search PATH,
9795 # but as the default location of the library.
9796 hardcode_minus_L=yes
9797 ;;
9798 esac
9799 fi
9800 ;;
9801
9802 irix5* | irix6* | nonstopux*)
9803 if test "$GCC" = yes; then
9804 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'
9805 # Try to use the -exported_symbol ld option, if it does not
9806 # work, assume that -exports_file does not work either and
9807 # implicitly export all symbols.
9808 save_LDFLAGS="$LDFLAGS"
9809 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h. */
9812int foo(void) {}
9813_ACEOF
9814if ac_fn_c_try_link "$LINENO"; then :
9815 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'
9816
9817fi
9818rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LDFLAGS="$save_LDFLAGS"
9821 else
9822 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'
9823 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'
9824 fi
9825 archive_cmds_need_lc='no'
9826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9827 hardcode_libdir_separator=:
9828 inherit_rpath=yes
9829 link_all_deplibs=yes
9830 ;;
9831
9832 netbsd*)
9833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9835 else
9836 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9837 fi
9838 hardcode_libdir_flag_spec='-R$libdir'
9839 hardcode_direct=yes
9840 hardcode_shlibpath_var=no
9841 ;;
9842
9843 newsos6)
9844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_direct=yes
9846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9847 hardcode_libdir_separator=:
9848 hardcode_shlibpath_var=no
9849 ;;
9850
9851 *nto* | *qnx*)
9852 ;;
9853
9854 openbsd*)
9855 if test -f /usr/libexec/ld.so; then
9856 hardcode_direct=yes
9857 hardcode_shlibpath_var=no
9858 hardcode_direct_absolute=yes
9859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9861 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9862 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9863 export_dynamic_flag_spec='${wl}-E'
9864 else
9865 case $host_os in
9866 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9868 hardcode_libdir_flag_spec='-R$libdir'
9869 ;;
9870 *)
9871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9873 ;;
9874 esac
9875 fi
9876 else
9877 ld_shlibs=no
9878 fi
9879 ;;
9880
9881 os2*)
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 hardcode_minus_L=yes
9884 allow_undefined_flag=unsupported
9885 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'
9886 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9887 ;;
9888
9889 osf3*)
9890 if test "$GCC" = yes; then
9891 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9892 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'
9893 else
9894 allow_undefined_flag=' -expect_unresolved \*'
9895 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'
9896 fi
9897 archive_cmds_need_lc='no'
9898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9899 hardcode_libdir_separator=:
9900 ;;
9901
9902 osf4* | osf5*) # as osf3* with the addition of -msym flag
9903 if test "$GCC" = yes; then
9904 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9905 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'
9906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9907 else
9908 allow_undefined_flag=' -expect_unresolved \*'
9909 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'
9910 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~
9911 $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'
9912
9913 # Both c and cxx compiler support -rpath directly
9914 hardcode_libdir_flag_spec='-rpath $libdir'
9915 fi
9916 archive_cmds_need_lc='no'
9917 hardcode_libdir_separator=:
9918 ;;
9919
9920 solaris*)
9921 no_undefined_flag=' -z defs'
9922 if test "$GCC" = yes; then
9923 wlarc='${wl}'
9924 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9925 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9926 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9927 else
9928 case `$CC -V 2>&1` in
9929 *"Compilers 5.0"*)
9930 wlarc=''
9931 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9932 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9934 ;;
9935 *)
9936 wlarc='${wl}'
9937 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9939 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9940 ;;
9941 esac
9942 fi
9943 hardcode_libdir_flag_spec='-R$libdir'
9944 hardcode_shlibpath_var=no
9945 case $host_os in
9946 solaris2.[0-5] | solaris2.[0-5].*) ;;
9947 *)
9948 # The compiler driver will combine and reorder linker options,
9949 # but understands `-z linker_flag'. GCC discards it without `$wl',
9950 # but is careful enough not to reorder.
9951 # Supported since Solaris 2.6 (maybe 2.5.1?)
9952 if test "$GCC" = yes; then
9953 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9954 else
9955 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9956 fi
9957 ;;
9958 esac
9959 link_all_deplibs=yes
9960 ;;
9961
9962 sunos4*)
9963 if test "x$host_vendor" = xsequent; then
9964 # Use $CC to link under sequent, because it throws in some extra .o
9965 # files that make .init and .fini sections work.
9966 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9967 else
9968 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9969 fi
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 hardcode_direct=yes
9972 hardcode_minus_L=yes
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 sysv4)
9977 case $host_vendor in
9978 sni)
9979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980 hardcode_direct=yes # is this really true???
9981 ;;
9982 siemens)
9983 ## LD is ld it makes a PLAMLIB
9984 ## CC just makes a GrossModule.
9985 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9986 reload_cmds='$CC -r -o $output$reload_objs'
9987 hardcode_direct=no
9988 ;;
9989 motorola)
9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9992 ;;
9993 esac
9994 runpath_var='LD_RUN_PATH'
9995 hardcode_shlibpath_var=no
9996 ;;
9997
9998 sysv4.3*)
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_shlibpath_var=no
10001 export_dynamic_flag_spec='-Bexport'
10002 ;;
10003
10004 sysv4*MP*)
10005 if test -d /usr/nec; then
10006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007 hardcode_shlibpath_var=no
10008 runpath_var=LD_RUN_PATH
10009 hardcode_runpath_var=yes
10010 ld_shlibs=yes
10011 fi
10012 ;;
10013
10014 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10015 no_undefined_flag='${wl}-z,text'
10016 archive_cmds_need_lc=no
10017 hardcode_shlibpath_var=no
10018 runpath_var='LD_RUN_PATH'
10019
10020 if test "$GCC" = yes; then
10021 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 else
10024 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 fi
10027 ;;
10028
10029 sysv5* | sco3.2v5* | sco5v6*)
10030 # Note: We can NOT use -z defs as we might desire, because we do not
10031 # link with -lc, and that would cause any symbols used from libc to
10032 # always be unresolved, which means just about no library would
10033 # ever link correctly. If we're not using GNU ld we use -z text
10034 # though, which does catch some bad symbols but isn't as heavy-handed
10035 # as -z defs.
10036 no_undefined_flag='${wl}-z,text'
10037 allow_undefined_flag='${wl}-z,nodefs'
10038 archive_cmds_need_lc=no
10039 hardcode_shlibpath_var=no
10040 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10041 hardcode_libdir_separator=':'
10042 link_all_deplibs=yes
10043 export_dynamic_flag_spec='${wl}-Bexport'
10044 runpath_var='LD_RUN_PATH'
10045
10046 if test "$GCC" = yes; then
10047 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049 else
10050 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052 fi
10053 ;;
10054
10055 uts4*)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_libdir_flag_spec='-L$libdir'
10058 hardcode_shlibpath_var=no
10059 ;;
10060
10061 *)
10062 ld_shlibs=no
10063 ;;
10064 esac
10065
10066 if test x$host_vendor = xsni; then
10067 case $host in
10068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10069 export_dynamic_flag_spec='${wl}-Blargedynsym'
10070 ;;
10071 esac
10072 fi
10073 fi
10074
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10076$as_echo "$ld_shlibs" >&6; }
10077test "$ld_shlibs" = no && can_build_shared=no
10078
10079with_gnu_ld=$with_gnu_ld
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095#
10096# Do we need to explicitly link libc?
10097#
10098case "x$archive_cmds_need_lc" in
10099x|xyes)
10100 # Assume -lc should be added
10101 archive_cmds_need_lc=yes
10102
10103 if test "$enable_shared" = yes && test "$GCC" = yes; then
10104 case $archive_cmds in
10105 *'~'*)
10106 # FIXME: we may have to deal with multi-command sequences.
10107 ;;
10108 '$CC '*)
10109 # Test whether the compiler implicitly links with -lc since on some
10110 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10111 # to ld, don't add -lc before -lgcc.
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10113$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10114if ${lt_cv_archive_cmds_need_lc+:} false; then :
5f520819
KY
10115 $as_echo_n "(cached) " >&6
10116else
10117 $RM conftest*
10118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10119
10120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10121 (eval $ac_compile) 2>&5
10122 ac_status=$?
10123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124 test $ac_status = 0; } 2>conftest.err; then
10125 soname=conftest
10126 lib=conftest
10127 libobjs=conftest.$ac_objext
10128 deplibs=
10129 wl=$lt_prog_compiler_wl
10130 pic_flag=$lt_prog_compiler_pic
10131 compiler_flags=-v
10132 linker_flags=-v
10133 verstring=
10134 output_objdir=.
10135 libname=conftest
10136 lt_save_allow_undefined_flag=$allow_undefined_flag
10137 allow_undefined_flag=
10138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10139 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10140 ac_status=$?
10141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10142 test $ac_status = 0; }
10143 then
10144 lt_cv_archive_cmds_need_lc=no
10145 else
10146 lt_cv_archive_cmds_need_lc=yes
10147 fi
10148 allow_undefined_flag=$lt_save_allow_undefined_flag
10149 else
10150 cat conftest.err 1>&5
10151 fi
10152 $RM conftest*
10153
10154fi
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10156$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10157 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10158 ;;
10159 esac
10160 fi
10161 ;;
10162esac
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10321$as_echo_n "checking dynamic linker characteristics... " >&6; }
10322
10323if test "$GCC" = yes; then
10324 case $host_os in
10325 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10326 *) lt_awk_arg="/^libraries:/" ;;
10327 esac
10328 case $host_os in
10329 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10330 *) lt_sed_strip_eq="s,=/,/,g" ;;
10331 esac
10332 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10333 case $lt_search_path_spec in
10334 *\;*)
10335 # if the path contains ";" then we assume it to be the separator
10336 # otherwise default to the standard path separator (i.e. ":") - it is
10337 # assumed that no part of a normal pathname contains ";" but that should
10338 # okay in the real world where ";" in dirpaths is itself problematic.
10339 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10340 ;;
10341 *)
10342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10343 ;;
10344 esac
10345 # Ok, now we have the path, separated by spaces, we can step through it
10346 # and add multilib dir if necessary.
10347 lt_tmp_lt_search_path_spec=
10348 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10349 for lt_sys_path in $lt_search_path_spec; do
10350 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10351 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10352 else
10353 test -d "$lt_sys_path" && \
10354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10355 fi
10356 done
10357 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10358BEGIN {RS=" "; FS="/|\n";} {
10359 lt_foo="";
10360 lt_count=0;
10361 for (lt_i = NF; lt_i > 0; lt_i--) {
10362 if ($lt_i != "" && $lt_i != ".") {
10363 if ($lt_i == "..") {
10364 lt_count++;
10365 } else {
10366 if (lt_count == 0) {
10367 lt_foo="/" $lt_i lt_foo;
10368 } else {
10369 lt_count--;
10370 }
10371 }
10372 }
10373 }
10374 if (lt_foo != "") { lt_freq[lt_foo]++; }
10375 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10376}'`
10377 # AWK program above erroneously prepends '/' to C:/dos/paths
10378 # for these hosts.
10379 case $host_os in
10380 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10381 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10382 esac
10383 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10384else
10385 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10386fi
10387library_names_spec=
10388libname_spec='lib$name'
10389soname_spec=
10390shrext_cmds=".so"
10391postinstall_cmds=
10392postuninstall_cmds=
10393finish_cmds=
10394finish_eval=
10395shlibpath_var=
10396shlibpath_overrides_runpath=unknown
10397version_type=none
10398dynamic_linker="$host_os ld.so"
10399sys_lib_dlsearch_path_spec="/lib /usr/lib"
10400need_lib_prefix=unknown
10401hardcode_into_libs=no
10402
10403# when you set need_version to no, make sure it does not cause -set_version
10404# flags to be left without arguments
10405need_version=unknown
10406
10407case $host_os in
10408aix3*)
10409 version_type=linux
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10411 shlibpath_var=LIBPATH
10412
10413 # AIX 3 has no versioning support, so we append a major version to the name.
10414 soname_spec='${libname}${release}${shared_ext}$major'
10415 ;;
10416
10417aix[4-9]*)
10418 version_type=linux
10419 need_lib_prefix=no
10420 need_version=no
10421 hardcode_into_libs=yes
10422 if test "$host_cpu" = ia64; then
10423 # AIX 5 supports IA64
10424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 else
10427 # With GCC up to 2.95.x, collect2 would create an import file
10428 # for dependence libraries. The import file would start with
10429 # the line `#! .'. This would cause the generated library to
10430 # depend on `.', always an invalid library. This was fixed in
10431 # development snapshots of GCC prior to 3.0.
10432 case $host_os in
10433 aix4 | aix4.[01] | aix4.[01].*)
10434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10435 echo ' yes '
10436 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10437 :
10438 else
10439 can_build_shared=no
10440 fi
10441 ;;
10442 esac
10443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10444 # soname into executable. Probably we can add versioning support to
10445 # collect2, so additional links can be useful in future.
10446 if test "$aix_use_runtimelinking" = yes; then
10447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10448 # instead of lib<name>.a to let people know that these are not
10449 # typical AIX shared libraries.
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 else
10452 # We preserve .a as extension for shared libraries through AIX4.2
10453 # and later when we are not doing run time linking.
10454 library_names_spec='${libname}${release}.a $libname.a'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 fi
10457 shlibpath_var=LIBPATH
10458 fi
10459 ;;
10460
10461amigaos*)
10462 case $host_cpu in
10463 powerpc)
10464 # Since July 2007 AmigaOS4 officially supports .so libraries.
10465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 ;;
10468 m68k)
10469 library_names_spec='$libname.ixlibrary $libname.a'
10470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10471 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'
10472 ;;
10473 esac
10474 ;;
10475
10476beos*)
10477 library_names_spec='${libname}${shared_ext}'
10478 dynamic_linker="$host_os ld.so"
10479 shlibpath_var=LIBRARY_PATH
10480 ;;
10481
10482bsdi[45]*)
10483 version_type=linux
10484 need_version=no
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10491 # the default ld.so.conf also contains /usr/contrib/lib and
10492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10493 # libtool to hard-code these into programs
10494 ;;
10495
10496cygwin* | mingw* | pw32* | cegcc*)
10497 version_type=windows
10498 shrext_cmds=".dll"
10499 need_version=no
10500 need_lib_prefix=no
10501
10502 case $GCC,$host_os in
10503 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10504 library_names_spec='$libname.dll.a'
10505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10506 postinstall_cmds='base_file=`basename \${file}`~
10507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10508 dldir=$destdir/`dirname \$dlpath`~
10509 test -d \$dldir || mkdir -p \$dldir~
10510 $install_prog $dir/$dlname \$dldir/$dlname~
10511 chmod a+x \$dldir/$dlname~
10512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10514 fi'
10515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10516 dlpath=$dir/\$dldll~
10517 $RM \$dlpath'
10518 shlibpath_overrides_runpath=yes
10519
10520 case $host_os in
10521 cygwin*)
10522 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10523 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524
10525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10526 ;;
10527 mingw* | cegcc*)
10528 # MinGW DLLs use traditional 'lib' prefix
10529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10530 ;;
10531 pw32*)
10532 # pw32 DLLs use 'pw' prefix rather than 'lib'
10533 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10534 ;;
10535 esac
10536 ;;
10537
10538 *)
10539 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10540 ;;
10541 esac
10542 dynamic_linker='Win32 ld.exe'
10543 # FIXME: first we should search . and the directory the executable is in
10544 shlibpath_var=PATH
10545 ;;
10546
10547darwin* | rhapsody*)
10548 dynamic_linker="$host_os dyld"
10549 version_type=darwin
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10553 soname_spec='${libname}${release}${major}$shared_ext'
10554 shlibpath_overrides_runpath=yes
10555 shlibpath_var=DYLD_LIBRARY_PATH
10556 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10557
10558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10559 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10560 ;;
10561
10562dgux*)
10563 version_type=linux
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 ;;
10570
10571freebsd* | dragonfly*)
10572 # DragonFly does not have aout. When/if they implement a new
10573 # versioning mechanism, adjust this.
10574 if test -x /usr/bin/objformat; then
10575 objformat=`/usr/bin/objformat`
10576 else
10577 case $host_os in
10578 freebsd[23].*) objformat=aout ;;
10579 *) objformat=elf ;;
10580 esac
10581 fi
10582 version_type=freebsd-$objformat
10583 case $version_type in
10584 freebsd-elf*)
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10586 need_version=no
10587 need_lib_prefix=no
10588 ;;
10589 freebsd-*)
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10591 need_version=yes
10592 ;;
10593 esac
10594 shlibpath_var=LD_LIBRARY_PATH
10595 case $host_os in
10596 freebsd2.*)
10597 shlibpath_overrides_runpath=yes
10598 ;;
10599 freebsd3.[01]* | freebsdelf3.[01]*)
10600 shlibpath_overrides_runpath=yes
10601 hardcode_into_libs=yes
10602 ;;
10603 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10604 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10605 shlibpath_overrides_runpath=no
10606 hardcode_into_libs=yes
10607 ;;
10608 *) # from 4.6 on, and DragonFly
10609 shlibpath_overrides_runpath=yes
10610 hardcode_into_libs=yes
10611 ;;
10612 esac
10613 ;;
10614
5f520819
KY
10615haiku*)
10616 version_type=linux
10617 need_lib_prefix=no
10618 need_version=no
10619 dynamic_linker="$host_os runtime_loader"
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 shlibpath_var=LIBRARY_PATH
10623 shlibpath_overrides_runpath=yes
10624 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10625 hardcode_into_libs=yes
10626 ;;
10627
10628hpux9* | hpux10* | hpux11*)
10629 # Give a soname corresponding to the major version so that dld.sl refuses to
10630 # link against other versions.
10631 version_type=sunos
10632 need_lib_prefix=no
10633 need_version=no
10634 case $host_cpu in
10635 ia64*)
10636 shrext_cmds='.so'
10637 hardcode_into_libs=yes
10638 dynamic_linker="$host_os dld.so"
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 if test "X$HPUX_IA64_MODE" = X32; then
10644 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10645 else
10646 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10647 fi
10648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10649 ;;
10650 hppa*64*)
10651 shrext_cmds='.sl'
10652 hardcode_into_libs=yes
10653 dynamic_linker="$host_os dld.sl"
10654 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10660 ;;
10661 *)
10662 shrext_cmds='.sl'
10663 dynamic_linker="$host_os dld.sl"
10664 shlibpath_var=SHLIB_PATH
10665 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10668 ;;
10669 esac
10670 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10671 postinstall_cmds='chmod 555 $lib'
10672 # or fails outright, so override atomically:
10673 install_override_mode=555
10674 ;;
10675
10676interix[3-9]*)
10677 version_type=linux
10678 need_lib_prefix=no
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 shlibpath_overrides_runpath=no
10685 hardcode_into_libs=yes
10686 ;;
10687
10688irix5* | irix6* | nonstopux*)
10689 case $host_os in
10690 nonstopux*) version_type=nonstopux ;;
10691 *)
10692 if test "$lt_cv_prog_gnu_ld" = yes; then
10693 version_type=linux
10694 else
10695 version_type=irix
10696 fi ;;
10697 esac
10698 need_lib_prefix=no
10699 need_version=no
10700 soname_spec='${libname}${release}${shared_ext}$major'
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10702 case $host_os in
10703 irix5* | nonstopux*)
10704 libsuff= shlibsuff=
10705 ;;
10706 *)
10707 case $LD in # libtool.m4 will add one of these switches to LD
10708 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10709 libsuff= shlibsuff= libmagic=32-bit;;
10710 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10711 libsuff=32 shlibsuff=N32 libmagic=N32;;
10712 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10713 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10714 *) libsuff= shlibsuff= libmagic=never-match;;
10715 esac
10716 ;;
10717 esac
10718 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10719 shlibpath_overrides_runpath=no
10720 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10721 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10722 hardcode_into_libs=yes
10723 ;;
10724
10725# No shared lib support for Linux oldld, aout, or coff.
10726linux*oldld* | linux*aout* | linux*coff*)
10727 dynamic_linker=no
10728 ;;
10729
10730# This must be Linux ELF.
e9085da5
MR
10731
10732# uclinux* changes (here and below) have been submitted to the libtool
10733# project, but have not yet been accepted: they are GCC-local changes
10734# for the time being. (See
10735# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 10736linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
5f520819
KY
10737 version_type=linux
10738 need_lib_prefix=no
10739 need_version=no
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 soname_spec='${libname}${release}${shared_ext}$major'
10742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10743 shlibpath_var=LD_LIBRARY_PATH
10744 shlibpath_overrides_runpath=no
10745
10746 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10747 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5f520819
KY
10748 $as_echo_n "(cached) " >&6
10749else
10750 lt_cv_shlibpath_overrides_runpath=no
10751 save_LDFLAGS=$LDFLAGS
10752 save_libdir=$libdir
10753 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10754 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756/* end confdefs.h. */
10757
10758int
10759main ()
10760{
10761
10762 ;
10763 return 0;
10764}
10765_ACEOF
10766if ac_fn_c_try_link "$LINENO"; then :
10767 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10768 lt_cv_shlibpath_overrides_runpath=yes
10769fi
10770fi
10771rm -f core conftest.err conftest.$ac_objext \
10772 conftest$ac_exeext conftest.$ac_ext
10773 LDFLAGS=$save_LDFLAGS
10774 libdir=$save_libdir
10775
10776fi
10777
10778 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10779
10780 # This implies no fast_install, which is unacceptable.
10781 # Some rework will be needed to allow for fast_install
10782 # before this can be enabled.
10783 hardcode_into_libs=yes
10784
10785 # Append ld.so.conf contents to the search path
10786 if test -f /etc/ld.so.conf; then
10787 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' ' '`
10788 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10789 fi
10790
10791 # We used to test for /lib/ld.so.1 and disable shared libraries on
10792 # powerpc, because MkLinux only supported shared libraries with the
10793 # GNU dynamic linker. Since this was broken with cross compilers,
10794 # most powerpc-linux boxes support dynamic linking these days and
10795 # people can always --disable-shared, the test was removed, and we
10796 # assume the GNU/Linux dynamic linker is in use.
10797 dynamic_linker='GNU/Linux ld.so'
10798 ;;
10799
10800netbsd*)
10801 version_type=sunos
10802 need_lib_prefix=no
10803 need_version=no
10804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10807 dynamic_linker='NetBSD (a.out) ld.so'
10808 else
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 dynamic_linker='NetBSD ld.elf_so'
10812 fi
10813 shlibpath_var=LD_LIBRARY_PATH
10814 shlibpath_overrides_runpath=yes
10815 hardcode_into_libs=yes
10816 ;;
10817
10818newsos6)
10819 version_type=linux
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821 shlibpath_var=LD_LIBRARY_PATH
10822 shlibpath_overrides_runpath=yes
10823 ;;
10824
10825*nto* | *qnx*)
10826 version_type=qnx
10827 need_lib_prefix=no
10828 need_version=no
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 shlibpath_overrides_runpath=no
10833 hardcode_into_libs=yes
10834 dynamic_linker='ldqnx.so'
10835 ;;
10836
10837openbsd*)
10838 version_type=sunos
10839 sys_lib_dlsearch_path_spec="/usr/lib"
10840 need_lib_prefix=no
10841 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10842 case $host_os in
10843 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10844 *) need_version=no ;;
10845 esac
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10850 case $host_os in
10851 openbsd2.[89] | openbsd2.[89].*)
10852 shlibpath_overrides_runpath=no
10853 ;;
10854 *)
10855 shlibpath_overrides_runpath=yes
10856 ;;
10857 esac
10858 else
10859 shlibpath_overrides_runpath=yes
10860 fi
10861 ;;
10862
10863os2*)
10864 libname_spec='$name'
10865 shrext_cmds=".dll"
10866 need_lib_prefix=no
10867 library_names_spec='$libname${shared_ext} $libname.a'
10868 dynamic_linker='OS/2 ld.exe'
10869 shlibpath_var=LIBPATH
10870 ;;
10871
10872osf3* | osf4* | osf5*)
10873 version_type=osf
10874 need_lib_prefix=no
10875 need_version=no
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878 shlibpath_var=LD_LIBRARY_PATH
10879 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10880 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10881 ;;
10882
10883rdos*)
10884 dynamic_linker=no
10885 ;;
10886
10887solaris*)
10888 version_type=linux
10889 need_lib_prefix=no
10890 need_version=no
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=yes
10895 hardcode_into_libs=yes
10896 # ldd complains unless libraries are executable
10897 postinstall_cmds='chmod +x $lib'
10898 ;;
10899
10900sunos4*)
10901 version_type=sunos
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes
10906 if test "$with_gnu_ld" = yes; then
10907 need_lib_prefix=no
10908 fi
10909 need_version=yes
10910 ;;
10911
10912sysv4 | sysv4.3*)
10913 version_type=linux
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 case $host_vendor in
10918 sni)
10919 shlibpath_overrides_runpath=no
10920 need_lib_prefix=no
10921 runpath_var=LD_RUN_PATH
10922 ;;
10923 siemens)
10924 need_lib_prefix=no
10925 ;;
10926 motorola)
10927 need_lib_prefix=no
10928 need_version=no
10929 shlibpath_overrides_runpath=no
10930 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10931 ;;
10932 esac
10933 ;;
10934
10935sysv4*MP*)
10936 if test -d /usr/nec ;then
10937 version_type=linux
10938 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10939 soname_spec='$libname${shared_ext}.$major'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 fi
10942 ;;
10943
10944sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10945 version_type=freebsd-elf
10946 need_lib_prefix=no
10947 need_version=no
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 shlibpath_overrides_runpath=yes
10952 hardcode_into_libs=yes
10953 if test "$with_gnu_ld" = yes; then
10954 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10955 else
10956 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10957 case $host_os in
10958 sco3.2v5*)
10959 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10960 ;;
10961 esac
10962 fi
10963 sys_lib_dlsearch_path_spec='/usr/lib'
10964 ;;
10965
10966tpf*)
10967 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10968 version_type=linux
10969 need_lib_prefix=no
10970 need_version=no
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 shlibpath_var=LD_LIBRARY_PATH
10973 shlibpath_overrides_runpath=no
10974 hardcode_into_libs=yes
10975 ;;
10976
10977uts4*)
10978 version_type=linux
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 ;;
10983
10984*)
10985 dynamic_linker=no
10986 ;;
10987esac
10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10989$as_echo "$dynamic_linker" >&6; }
10990test "$dynamic_linker" = no && can_build_shared=no
10991
10992variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10993if test "$GCC" = yes; then
10994 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10995fi
10996
10997if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10998 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10999fi
11000if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11001 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11002fi
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11096$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11097hardcode_action=
11098if test -n "$hardcode_libdir_flag_spec" ||
11099 test -n "$runpath_var" ||
11100 test "X$hardcode_automatic" = "Xyes" ; then
11101
11102 # We can hardcode non-existent directories.
11103 if test "$hardcode_direct" != no &&
11104 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11105 # have to relink, otherwise we might link with an installed library
11106 # when we should be linking with a yet-to-be-installed one
11107 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11108 test "$hardcode_minus_L" != no; then
11109 # Linking always hardcodes the temporary library directory.
11110 hardcode_action=relink
11111 else
11112 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11113 hardcode_action=immediate
11114 fi
11115else
11116 # We cannot hardcode anything, or else we can only hardcode existing
11117 # directories.
11118 hardcode_action=unsupported
11119fi
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11121$as_echo "$hardcode_action" >&6; }
11122
11123if test "$hardcode_action" = relink ||
11124 test "$inherit_rpath" = yes; then
11125 # Fast installation is not supported
11126 enable_fast_install=no
11127elif test "$shlibpath_overrides_runpath" = yes ||
11128 test "$enable_shared" = no; then
11129 # Fast installation is not necessary
11130 enable_fast_install=needless
11131fi
11132
11133
11134
11135
11136
11137
11138 if test "x$enable_dlopen" != xyes; then
11139 enable_dlopen=unknown
11140 enable_dlopen_self=unknown
11141 enable_dlopen_self_static=unknown
11142else
11143 lt_cv_dlopen=no
11144 lt_cv_dlopen_libs=
11145
11146 case $host_os in
11147 beos*)
11148 lt_cv_dlopen="load_add_on"
11149 lt_cv_dlopen_libs=
11150 lt_cv_dlopen_self=yes
11151 ;;
11152
11153 mingw* | pw32* | cegcc*)
11154 lt_cv_dlopen="LoadLibrary"
11155 lt_cv_dlopen_libs=
11156 ;;
11157
11158 cygwin*)
11159 lt_cv_dlopen="dlopen"
11160 lt_cv_dlopen_libs=
11161 ;;
11162
11163 darwin*)
11164 # if libdl is installed we need to link against it
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11166$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11167if ${ac_cv_lib_dl_dlopen+:} false; then :
5f520819
KY
11168 $as_echo_n "(cached) " >&6
11169else
11170 ac_check_lib_save_LIBS=$LIBS
11171LIBS="-ldl $LIBS"
11172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h. */
11174
11175/* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
11178#ifdef __cplusplus
11179extern "C"
11180#endif
11181char dlopen ();
11182int
11183main ()
11184{
11185return dlopen ();
11186 ;
11187 return 0;
11188}
11189_ACEOF
11190if ac_fn_c_try_link "$LINENO"; then :
11191 ac_cv_lib_dl_dlopen=yes
11192else
11193 ac_cv_lib_dl_dlopen=no
11194fi
11195rm -f core conftest.err conftest.$ac_objext \
11196 conftest$ac_exeext conftest.$ac_ext
11197LIBS=$ac_check_lib_save_LIBS
11198fi
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11200$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11201if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5f520819
KY
11202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11203else
11204
11205 lt_cv_dlopen="dyld"
11206 lt_cv_dlopen_libs=
11207 lt_cv_dlopen_self=yes
11208
11209fi
11210
11211 ;;
11212
11213 *)
11214 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11215if test "x$ac_cv_func_shl_load" = xyes; then :
5f520819
KY
11216 lt_cv_dlopen="shl_load"
11217else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11219$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11220if ${ac_cv_lib_dld_shl_load+:} false; then :
5f520819
KY
11221 $as_echo_n "(cached) " >&6
11222else
11223 ac_check_lib_save_LIBS=$LIBS
11224LIBS="-ldld $LIBS"
11225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226/* end confdefs.h. */
11227
11228/* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11231#ifdef __cplusplus
11232extern "C"
11233#endif
11234char shl_load ();
11235int
11236main ()
11237{
11238return shl_load ();
11239 ;
11240 return 0;
11241}
11242_ACEOF
11243if ac_fn_c_try_link "$LINENO"; then :
11244 ac_cv_lib_dld_shl_load=yes
11245else
11246 ac_cv_lib_dld_shl_load=no
11247fi
11248rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250LIBS=$ac_check_lib_save_LIBS
11251fi
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11253$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11254if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
5f520819
KY
11255 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11256else
11257 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11258if test "x$ac_cv_func_dlopen" = xyes; then :
5f520819
KY
11259 lt_cv_dlopen="dlopen"
11260else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11262$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11263if ${ac_cv_lib_dl_dlopen+:} false; then :
5f520819
KY
11264 $as_echo_n "(cached) " >&6
11265else
11266 ac_check_lib_save_LIBS=$LIBS
11267LIBS="-ldl $LIBS"
11268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269/* end confdefs.h. */
11270
11271/* Override any GCC internal prototype to avoid an error.
11272 Use char because int might match the return type of a GCC
11273 builtin and then its argument prototype would still apply. */
11274#ifdef __cplusplus
11275extern "C"
11276#endif
11277char dlopen ();
11278int
11279main ()
11280{
11281return dlopen ();
11282 ;
11283 return 0;
11284}
11285_ACEOF
11286if ac_fn_c_try_link "$LINENO"; then :
11287 ac_cv_lib_dl_dlopen=yes
11288else
11289 ac_cv_lib_dl_dlopen=no
11290fi
11291rm -f core conftest.err conftest.$ac_objext \
11292 conftest$ac_exeext conftest.$ac_ext
11293LIBS=$ac_check_lib_save_LIBS
11294fi
11295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11296$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11297if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5f520819
KY
11298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11299else
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11301$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11302if ${ac_cv_lib_svld_dlopen+:} false; then :
5f520819
KY
11303 $as_echo_n "(cached) " >&6
11304else
11305 ac_check_lib_save_LIBS=$LIBS
11306LIBS="-lsvld $LIBS"
11307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308/* end confdefs.h. */
11309
11310/* Override any GCC internal prototype to avoid an error.
11311 Use char because int might match the return type of a GCC
11312 builtin and then its argument prototype would still apply. */
11313#ifdef __cplusplus
11314extern "C"
11315#endif
11316char dlopen ();
11317int
11318main ()
11319{
11320return dlopen ();
11321 ;
11322 return 0;
11323}
11324_ACEOF
11325if ac_fn_c_try_link "$LINENO"; then :
11326 ac_cv_lib_svld_dlopen=yes
11327else
11328 ac_cv_lib_svld_dlopen=no
11329fi
11330rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11332LIBS=$ac_check_lib_save_LIBS
11333fi
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11335$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11336if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
5f520819
KY
11337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11338else
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11340$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11341if ${ac_cv_lib_dld_dld_link+:} false; then :
5f520819
KY
11342 $as_echo_n "(cached) " >&6
11343else
11344 ac_check_lib_save_LIBS=$LIBS
11345LIBS="-ldld $LIBS"
11346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347/* end confdefs.h. */
11348
11349/* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11352#ifdef __cplusplus
11353extern "C"
11354#endif
11355char dld_link ();
11356int
11357main ()
11358{
11359return dld_link ();
11360 ;
11361 return 0;
11362}
11363_ACEOF
11364if ac_fn_c_try_link "$LINENO"; then :
11365 ac_cv_lib_dld_dld_link=yes
11366else
11367 ac_cv_lib_dld_dld_link=no
11368fi
11369rm -f core conftest.err conftest.$ac_objext \
11370 conftest$ac_exeext conftest.$ac_ext
11371LIBS=$ac_check_lib_save_LIBS
11372fi
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11374$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11375if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
5f520819
KY
11376 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11377fi
11378
11379
11380fi
11381
11382
11383fi
11384
11385
11386fi
11387
11388
11389fi
11390
11391
11392fi
11393
11394 ;;
11395 esac
11396
11397 if test "x$lt_cv_dlopen" != xno; then
11398 enable_dlopen=yes
11399 else
11400 enable_dlopen=no
11401 fi
11402
11403 case $lt_cv_dlopen in
11404 dlopen)
11405 save_CPPFLAGS="$CPPFLAGS"
11406 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11407
11408 save_LDFLAGS="$LDFLAGS"
11409 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11410
11411 save_LIBS="$LIBS"
11412 LIBS="$lt_cv_dlopen_libs $LIBS"
11413
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11415$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11416if ${lt_cv_dlopen_self+:} false; then :
5f520819
KY
11417 $as_echo_n "(cached) " >&6
11418else
11419 if test "$cross_compiling" = yes; then :
11420 lt_cv_dlopen_self=cross
11421else
11422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11423 lt_status=$lt_dlunknown
11424 cat > conftest.$ac_ext <<_LT_EOF
b1a3d2b7 11425#line 11425 "configure"
5f520819
KY
11426#include "confdefs.h"
11427
11428#if HAVE_DLFCN_H
11429#include <dlfcn.h>
11430#endif
11431
11432#include <stdio.h>
11433
11434#ifdef RTLD_GLOBAL
11435# define LT_DLGLOBAL RTLD_GLOBAL
11436#else
11437# ifdef DL_GLOBAL
11438# define LT_DLGLOBAL DL_GLOBAL
11439# else
11440# define LT_DLGLOBAL 0
11441# endif
11442#endif
11443
11444/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11445 find out it does not work in some platform. */
11446#ifndef LT_DLLAZY_OR_NOW
11447# ifdef RTLD_LAZY
11448# define LT_DLLAZY_OR_NOW RTLD_LAZY
11449# else
11450# ifdef DL_LAZY
11451# define LT_DLLAZY_OR_NOW DL_LAZY
11452# else
11453# ifdef RTLD_NOW
11454# define LT_DLLAZY_OR_NOW RTLD_NOW
11455# else
11456# ifdef DL_NOW
11457# define LT_DLLAZY_OR_NOW DL_NOW
11458# else
11459# define LT_DLLAZY_OR_NOW 0
11460# endif
11461# endif
11462# endif
11463# endif
11464#endif
11465
11466/* When -fvisbility=hidden is used, assume the code has been annotated
11467 correspondingly for the symbols needed. */
11468#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11469void fnord () __attribute__((visibility("default")));
11470#endif
11471
11472void fnord () { int i=42; }
11473int main ()
11474{
11475 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11476 int status = $lt_dlunknown;
11477
11478 if (self)
11479 {
11480 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11481 else
11482 {
11483 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11484 else puts (dlerror ());
11485 }
11486 /* dlclose (self); */
11487 }
11488 else
11489 puts (dlerror ());
11490
11491 return status;
11492}
11493_LT_EOF
11494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11495 (eval $ac_link) 2>&5
11496 ac_status=$?
11497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11498 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11499 (./conftest; exit; ) >&5 2>/dev/null
11500 lt_status=$?
11501 case x$lt_status in
11502 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11503 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11504 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11505 esac
11506 else :
11507 # compilation failed
11508 lt_cv_dlopen_self=no
11509 fi
11510fi
11511rm -fr conftest*
11512
11513
11514fi
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11516$as_echo "$lt_cv_dlopen_self" >&6; }
11517
11518 if test "x$lt_cv_dlopen_self" = xyes; then
11519 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11521$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11522if ${lt_cv_dlopen_self_static+:} false; then :
5f520819
KY
11523 $as_echo_n "(cached) " >&6
11524else
11525 if test "$cross_compiling" = yes; then :
11526 lt_cv_dlopen_self_static=cross
11527else
11528 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11529 lt_status=$lt_dlunknown
11530 cat > conftest.$ac_ext <<_LT_EOF
b1a3d2b7 11531#line 11531 "configure"
5f520819
KY
11532#include "confdefs.h"
11533
11534#if HAVE_DLFCN_H
11535#include <dlfcn.h>
11536#endif
11537
11538#include <stdio.h>
11539
11540#ifdef RTLD_GLOBAL
11541# define LT_DLGLOBAL RTLD_GLOBAL
11542#else
11543# ifdef DL_GLOBAL
11544# define LT_DLGLOBAL DL_GLOBAL
11545# else
11546# define LT_DLGLOBAL 0
11547# endif
11548#endif
11549
11550/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11551 find out it does not work in some platform. */
11552#ifndef LT_DLLAZY_OR_NOW
11553# ifdef RTLD_LAZY
11554# define LT_DLLAZY_OR_NOW RTLD_LAZY
11555# else
11556# ifdef DL_LAZY
11557# define LT_DLLAZY_OR_NOW DL_LAZY
11558# else
11559# ifdef RTLD_NOW
11560# define LT_DLLAZY_OR_NOW RTLD_NOW
11561# else
11562# ifdef DL_NOW
11563# define LT_DLLAZY_OR_NOW DL_NOW
11564# else
11565# define LT_DLLAZY_OR_NOW 0
11566# endif
11567# endif
11568# endif
11569# endif
11570#endif
11571
11572/* When -fvisbility=hidden is used, assume the code has been annotated
11573 correspondingly for the symbols needed. */
11574#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11575void fnord () __attribute__((visibility("default")));
11576#endif
11577
11578void fnord () { int i=42; }
11579int main ()
11580{
11581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11582 int status = $lt_dlunknown;
11583
11584 if (self)
11585 {
11586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11587 else
11588 {
11589 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11590 else puts (dlerror ());
11591 }
11592 /* dlclose (self); */
11593 }
11594 else
11595 puts (dlerror ());
11596
11597 return status;
11598}
11599_LT_EOF
11600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11601 (eval $ac_link) 2>&5
11602 ac_status=$?
11603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11604 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11605 (./conftest; exit; ) >&5 2>/dev/null
11606 lt_status=$?
11607 case x$lt_status in
11608 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11609 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11610 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11611 esac
11612 else :
11613 # compilation failed
11614 lt_cv_dlopen_self_static=no
11615 fi
11616fi
11617rm -fr conftest*
11618
11619
11620fi
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11622$as_echo "$lt_cv_dlopen_self_static" >&6; }
11623 fi
11624
11625 CPPFLAGS="$save_CPPFLAGS"
11626 LDFLAGS="$save_LDFLAGS"
11627 LIBS="$save_LIBS"
11628 ;;
11629 esac
11630
11631 case $lt_cv_dlopen_self in
11632 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11633 *) enable_dlopen_self=unknown ;;
11634 esac
11635
11636 case $lt_cv_dlopen_self_static in
11637 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11638 *) enable_dlopen_self_static=unknown ;;
11639 esac
11640fi
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658striplib=
11659old_striplib=
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11661$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11662if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11663 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11664 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11666$as_echo "yes" >&6; }
11667else
11668# FIXME - insert some real tests, host_os isn't really good enough
11669 case $host_os in
11670 darwin*)
11671 if test -n "$STRIP" ; then
11672 striplib="$STRIP -x"
11673 old_striplib="$STRIP -S"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675$as_echo "yes" >&6; }
11676 else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678$as_echo "no" >&6; }
11679 fi
11680 ;;
11681 *)
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683$as_echo "no" >&6; }
11684 ;;
11685 esac
11686fi
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699 # Report which library types will actually be built
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11701$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11703$as_echo "$can_build_shared" >&6; }
11704
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11706$as_echo_n "checking whether to build shared libraries... " >&6; }
11707 test "$can_build_shared" = "no" && enable_shared=no
11708
11709 # On AIX, shared libraries and static libraries use the same namespace, and
11710 # are all built from PIC.
11711 case $host_os in
11712 aix3*)
11713 test "$enable_shared" = yes && enable_static=no
11714 if test -n "$RANLIB"; then
11715 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11716 postinstall_cmds='$RANLIB $lib'
11717 fi
11718 ;;
11719
11720 aix[4-9]*)
11721 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11722 test "$enable_shared" = yes && enable_static=no
11723 fi
11724 ;;
11725 esac
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11727$as_echo "$enable_shared" >&6; }
11728
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11730$as_echo_n "checking whether to build static libraries... " >&6; }
11731 # Make sure either enable_shared or enable_static is yes.
11732 test "$enable_shared" = yes || enable_static=yes
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11734$as_echo "$enable_static" >&6; }
11735
11736
11737
11738
11739fi
11740ac_ext=c
11741ac_cpp='$CPP $CPPFLAGS'
11742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11744ac_compiler_gnu=$ac_cv_c_compiler_gnu
11745
11746CC="$lt_save_CC"
11747
11748 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11749 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11750 (test "X$CXX" != "Xg++"))) ; then
11751 ac_ext=cpp
11752ac_cpp='$CXXCPP $CPPFLAGS'
11753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11757$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11758if test -z "$CXXCPP"; then
22e05272 11759 if ${ac_cv_prog_CXXCPP+:} false; then :
5f520819
KY
11760 $as_echo_n "(cached) " >&6
11761else
11762 # Double quotes because CXXCPP needs to be expanded
11763 for CXXCPP in "$CXX -E" "/lib/cpp"
11764 do
11765 ac_preproc_ok=false
11766for ac_cxx_preproc_warn_flag in '' yes
11767do
11768 # Use a header file that comes with gcc, so configuring glibc
11769 # with a fresh cross-compiler works.
11770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11771 # <limits.h> exists even on freestanding compilers.
11772 # On the NeXT, cc -E runs the code through the compiler's parser,
11773 # not just through cpp. "Syntax error" is here to catch this case.
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775/* end confdefs.h. */
11776#ifdef __STDC__
11777# include <limits.h>
11778#else
11779# include <assert.h>
11780#endif
11781 Syntax error
11782_ACEOF
11783if ac_fn_cxx_try_cpp "$LINENO"; then :
11784
11785else
11786 # Broken: fails on valid input.
11787continue
11788fi
22e05272 11789rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
11790
11791 # OK, works on sane cases. Now check whether nonexistent headers
11792 # can be detected and how.
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794/* end confdefs.h. */
11795#include <ac_nonexistent.h>
11796_ACEOF
11797if ac_fn_cxx_try_cpp "$LINENO"; then :
11798 # Broken: success on invalid input.
11799continue
11800else
11801 # Passes both tests.
11802ac_preproc_ok=:
11803break
11804fi
22e05272 11805rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
11806
11807done
11808# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 11809rm -f conftest.i conftest.err conftest.$ac_ext
5f520819
KY
11810if $ac_preproc_ok; then :
11811 break
11812fi
11813
11814 done
11815 ac_cv_prog_CXXCPP=$CXXCPP
11816
11817fi
11818 CXXCPP=$ac_cv_prog_CXXCPP
11819else
11820 ac_cv_prog_CXXCPP=$CXXCPP
11821fi
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11823$as_echo "$CXXCPP" >&6; }
11824ac_preproc_ok=false
11825for ac_cxx_preproc_warn_flag in '' yes
11826do
11827 # Use a header file that comes with gcc, so configuring glibc
11828 # with a fresh cross-compiler works.
11829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11830 # <limits.h> exists even on freestanding compilers.
11831 # On the NeXT, cc -E runs the code through the compiler's parser,
11832 # not just through cpp. "Syntax error" is here to catch this case.
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834/* end confdefs.h. */
11835#ifdef __STDC__
11836# include <limits.h>
11837#else
11838# include <assert.h>
11839#endif
11840 Syntax error
11841_ACEOF
11842if ac_fn_cxx_try_cpp "$LINENO"; then :
11843
11844else
11845 # Broken: fails on valid input.
11846continue
11847fi
22e05272 11848rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
11849
11850 # OK, works on sane cases. Now check whether nonexistent headers
11851 # can be detected and how.
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853/* end confdefs.h. */
11854#include <ac_nonexistent.h>
11855_ACEOF
11856if ac_fn_cxx_try_cpp "$LINENO"; then :
11857 # Broken: success on invalid input.
11858continue
11859else
11860 # Passes both tests.
11861ac_preproc_ok=:
11862break
11863fi
22e05272 11864rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
11865
11866done
11867# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 11868rm -f conftest.i conftest.err conftest.$ac_ext
5f520819
KY
11869if $ac_preproc_ok; then :
11870
11871else
11872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
11874as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11875See \`config.log' for more details" "$LINENO" 5; }
5f520819
KY
11876fi
11877
11878ac_ext=c
11879ac_cpp='$CPP $CPPFLAGS'
11880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11882ac_compiler_gnu=$ac_cv_c_compiler_gnu
11883
11884else
11885 _lt_caught_CXX_error=yes
11886fi
11887
11888ac_ext=cpp
11889ac_cpp='$CXXCPP $CPPFLAGS'
11890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11893
11894archive_cmds_need_lc_CXX=no
11895allow_undefined_flag_CXX=
11896always_export_symbols_CXX=no
11897archive_expsym_cmds_CXX=
11898compiler_needs_object_CXX=no
11899export_dynamic_flag_spec_CXX=
11900hardcode_direct_CXX=no
11901hardcode_direct_absolute_CXX=no
11902hardcode_libdir_flag_spec_CXX=
11903hardcode_libdir_flag_spec_ld_CXX=
11904hardcode_libdir_separator_CXX=
11905hardcode_minus_L_CXX=no
11906hardcode_shlibpath_var_CXX=unsupported
11907hardcode_automatic_CXX=no
11908inherit_rpath_CXX=no
11909module_cmds_CXX=
11910module_expsym_cmds_CXX=
11911link_all_deplibs_CXX=unknown
11912old_archive_cmds_CXX=$old_archive_cmds
11913reload_flag_CXX=$reload_flag
11914reload_cmds_CXX=$reload_cmds
11915no_undefined_flag_CXX=
11916whole_archive_flag_spec_CXX=
11917enable_shared_with_static_runtimes_CXX=no
11918
11919# Source file extension for C++ test sources.
11920ac_ext=cpp
11921
11922# Object file extension for compiled C++ test sources.
11923objext=o
11924objext_CXX=$objext
11925
11926# No sense in running all these tests if we already determined that
11927# the CXX compiler isn't working. Some variables (like enable_shared)
11928# are currently assumed to apply to all compilers on this platform,
11929# and will be corrupted by setting them based on a non-working compiler.
11930if test "$_lt_caught_CXX_error" != yes; then
11931 # Code to be used in simple compile tests
11932 lt_simple_compile_test_code="int some_variable = 0;"
11933
11934 # Code to be used in simple link tests
11935 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11936
11937 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11938
11939
11940
11941
11942
11943
11944# If no C compiler was specified, use CC.
11945LTCC=${LTCC-"$CC"}
11946
11947# If no C compiler flags were specified, use CFLAGS.
11948LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11949
11950# Allow CC to be a program name with arguments.
11951compiler=$CC
11952
11953
11954 # save warnings/boilerplate of simple test code
11955 ac_outfile=conftest.$ac_objext
11956echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11957eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11958_lt_compiler_boilerplate=`cat conftest.err`
11959$RM conftest*
11960
11961 ac_outfile=conftest.$ac_objext
11962echo "$lt_simple_link_test_code" >conftest.$ac_ext
11963eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11964_lt_linker_boilerplate=`cat conftest.err`
11965$RM -r conftest*
11966
11967
11968 # Allow CC to be a program name with arguments.
11969 lt_save_CC=$CC
11970 lt_save_LD=$LD
11971 lt_save_GCC=$GCC
11972 GCC=$GXX
11973 lt_save_with_gnu_ld=$with_gnu_ld
11974 lt_save_path_LD=$lt_cv_path_LD
11975 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11976 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11977 else
11978 $as_unset lt_cv_prog_gnu_ld
11979 fi
11980 if test -n "${lt_cv_path_LDCXX+set}"; then
11981 lt_cv_path_LD=$lt_cv_path_LDCXX
11982 else
11983 $as_unset lt_cv_path_LD
11984 fi
11985 test -z "${LDCXX+set}" || LD=$LDCXX
11986 CC=${CXX-"c++"}
11987 compiler=$CC
11988 compiler_CXX=$CC
11989 for cc_temp in $compiler""; do
11990 case $cc_temp in
11991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11993 \-*) ;;
11994 *) break;;
11995 esac
11996done
11997cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11998
11999
12000 if test -n "$compiler"; then
12001 # We don't want -fno-exception when compiling C++ code, so set the
12002 # no_builtin_flag separately
12003 if test "$GXX" = yes; then
12004 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12005 else
12006 lt_prog_compiler_no_builtin_flag_CXX=
12007 fi
12008
12009 if test "$GXX" = yes; then
12010 # Set up default GNU C++ configuration
12011
12012
12013
12014# Check whether --with-gnu-ld was given.
12015if test "${with_gnu_ld+set}" = set; then :
12016 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12017else
12018 with_gnu_ld=no
12019fi
12020
12021ac_prog=ld
12022if test "$GCC" = yes; then
12023 # Check if gcc -print-prog-name=ld gives a path.
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12025$as_echo_n "checking for ld used by $CC... " >&6; }
12026 case $host in
12027 *-*-mingw*)
12028 # gcc leaves a trailing carriage return which upsets mingw
12029 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12030 *)
12031 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12032 esac
12033 case $ac_prog in
12034 # Accept absolute paths.
12035 [\\/]* | ?:[\\/]*)
12036 re_direlt='/[^/][^/]*/\.\./'
12037 # Canonicalize the pathname of ld
12038 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12039 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12040 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12041 done
12042 test -z "$LD" && LD="$ac_prog"
12043 ;;
12044 "")
12045 # If it fails, then pretend we aren't using GCC.
12046 ac_prog=ld
12047 ;;
12048 *)
12049 # If it is relative, then search for the first ld in PATH.
12050 with_gnu_ld=unknown
12051 ;;
12052 esac
12053elif test "$with_gnu_ld" = yes; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12055$as_echo_n "checking for GNU ld... " >&6; }
12056else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12058$as_echo_n "checking for non-GNU ld... " >&6; }
12059fi
22e05272 12060if ${lt_cv_path_LD+:} false; then :
5f520819
KY
12061 $as_echo_n "(cached) " >&6
12062else
12063 if test -z "$LD"; then
12064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12065 for ac_dir in $PATH; do
12066 IFS="$lt_save_ifs"
12067 test -z "$ac_dir" && ac_dir=.
12068 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12069 lt_cv_path_LD="$ac_dir/$ac_prog"
12070 # Check to see if the program is GNU ld. I'd rather use --version,
12071 # but apparently some variants of GNU ld only accept -v.
12072 # Break only if it was the GNU/non-GNU ld that we prefer.
12073 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12074 *GNU* | *'with BFD'*)
12075 test "$with_gnu_ld" != no && break
12076 ;;
12077 *)
12078 test "$with_gnu_ld" != yes && break
12079 ;;
12080 esac
12081 fi
12082 done
12083 IFS="$lt_save_ifs"
12084else
12085 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12086fi
12087fi
12088
12089LD="$lt_cv_path_LD"
12090if test -n "$LD"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12092$as_echo "$LD" >&6; }
12093else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095$as_echo "no" >&6; }
12096fi
22e05272 12097test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5f520819
KY
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12099$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 12100if ${lt_cv_prog_gnu_ld+:} false; then :
5f520819
KY
12101 $as_echo_n "(cached) " >&6
12102else
12103 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12104case `$LD -v 2>&1 </dev/null` in
12105*GNU* | *'with BFD'*)
12106 lt_cv_prog_gnu_ld=yes
12107 ;;
12108*)
12109 lt_cv_prog_gnu_ld=no
12110 ;;
12111esac
12112fi
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12114$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12115with_gnu_ld=$lt_cv_prog_gnu_ld
12116
12117
12118
12119
12120
12121
12122
12123 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12124 # archiving commands below assume that GNU ld is being used.
12125 if test "$with_gnu_ld" = yes; then
735aacba
MH
12126 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12127 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5f520819
KY
12128
12129 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12130 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12131
12132 # If archive_cmds runs LD, not CC, wlarc should be empty
12133 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12134 # investigate it a little bit more. (MM)
12135 wlarc='${wl}'
12136
12137 # ancient GNU ld didn't support --whole-archive et. al.
12138 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12139 $GREP 'no-whole-archive' > /dev/null; then
12140 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12141 else
12142 whole_archive_flag_spec_CXX=
12143 fi
12144 else
12145 with_gnu_ld=no
12146 wlarc=
12147
12148 # A generic and very simple default shared library creation
12149 # command for GNU C++ for the case where it uses the native
12150 # linker, instead of GNU ld. If possible, this setting should
12151 # overridden to take advantage of the native linker features on
12152 # the platform it is being used on.
12153 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12154 fi
12155
12156 # Commands to make compiler produce verbose output that lists
12157 # what "hidden" libraries, object files and flags are used when
12158 # linking a shared library.
12159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12160
12161 else
12162 GXX=no
12163 with_gnu_ld=no
12164 wlarc=
12165 fi
12166
12167 # PORTME: fill in a description of your system's C++ link characteristics
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12169$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12170 ld_shlibs_CXX=yes
12171 case $host_os in
12172 aix3*)
12173 # FIXME: insert proper C++ library support
12174 ld_shlibs_CXX=no
12175 ;;
12176 aix[4-9]*)
12177 if test "$host_cpu" = ia64; then
12178 # On IA64, the linker does run time linking by default, so we don't
12179 # have to do anything special.
12180 aix_use_runtimelinking=no
12181 exp_sym_flag='-Bexport'
12182 no_entry_flag=""
12183 else
12184 aix_use_runtimelinking=no
12185
12186 # Test if we are trying to use run time linking or normal
12187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12188 # need to do runtime linking.
12189 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12190 for ld_flag in $LDFLAGS; do
12191 case $ld_flag in
12192 *-brtl*)
12193 aix_use_runtimelinking=yes
12194 break
12195 ;;
12196 esac
12197 done
12198 ;;
12199 esac
12200
12201 exp_sym_flag='-bexport'
12202 no_entry_flag='-bnoentry'
12203 fi
12204
12205 # When large executables or shared objects are built, AIX ld can
12206 # have problems creating the table of contents. If linking a library
12207 # or program results in "error TOC overflow" add -mminimal-toc to
12208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12210
12211 archive_cmds_CXX=''
12212 hardcode_direct_CXX=yes
12213 hardcode_direct_absolute_CXX=yes
12214 hardcode_libdir_separator_CXX=':'
12215 link_all_deplibs_CXX=yes
12216 file_list_spec_CXX='${wl}-f,'
12217
12218 if test "$GXX" = yes; then
12219 case $host_os in aix4.[012]|aix4.[012].*)
12220 # We only want to do this on AIX 4.2 and lower, the check
12221 # below for broken collect2 doesn't work under 4.3+
12222 collect2name=`${CC} -print-prog-name=collect2`
12223 if test -f "$collect2name" &&
12224 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12225 then
12226 # We have reworked collect2
12227 :
12228 else
12229 # We have old collect2
12230 hardcode_direct_CXX=unsupported
12231 # It fails to find uninstalled libraries when the uninstalled
12232 # path is not listed in the libpath. Setting hardcode_minus_L
12233 # to unsupported forces relinking
12234 hardcode_minus_L_CXX=yes
12235 hardcode_libdir_flag_spec_CXX='-L$libdir'
12236 hardcode_libdir_separator_CXX=
12237 fi
12238 esac
12239 shared_flag='-shared'
12240 if test "$aix_use_runtimelinking" = yes; then
12241 shared_flag="$shared_flag "'${wl}-G'
12242 fi
12243 else
12244 # not using gcc
12245 if test "$host_cpu" = ia64; then
12246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12247 # chokes on -Wl,-G. The following line is correct:
12248 shared_flag='-G'
12249 else
12250 if test "$aix_use_runtimelinking" = yes; then
12251 shared_flag='${wl}-G'
12252 else
12253 shared_flag='${wl}-bM:SRE'
12254 fi
12255 fi
12256 fi
12257
12258 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12259 # It seems that -bexpall does not export symbols beginning with
12260 # underscore (_), so it is better to generate a list of symbols to
12261 # export.
12262 always_export_symbols_CXX=yes
12263 if test "$aix_use_runtimelinking" = yes; then
12264 # Warning - without using the other runtime loading flags (-brtl),
12265 # -berok will link without error, but may produce a broken library.
12266 allow_undefined_flag_CXX='-berok'
12267 # Determine the default libpath from the value encoded in an empty
12268 # executable.
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h. */
12271
12272int
12273main ()
12274{
12275
12276 ;
12277 return 0;
12278}
12279_ACEOF
12280if ac_fn_cxx_try_link "$LINENO"; then :
12281
12282lt_aix_libpath_sed='
12283 /Import File Strings/,/^$/ {
12284 /^0/ {
12285 s/^0 *\(.*\)$/\1/
12286 p
12287 }
12288 }'
12289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12290# Check for a 64-bit object if we didn't find anything.
12291if test -z "$aix_libpath"; then
12292 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12293fi
12294fi
12295rm -f core conftest.err conftest.$ac_objext \
12296 conftest$ac_exeext conftest.$ac_ext
12297if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12298
12299 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12300
12301 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12302 else
12303 if test "$host_cpu" = ia64; then
12304 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12305 allow_undefined_flag_CXX="-z nodefs"
12306 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12307 else
12308 # Determine the default libpath from the value encoded in an
12309 # empty executable.
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311/* end confdefs.h. */
12312
12313int
12314main ()
12315{
12316
12317 ;
12318 return 0;
12319}
12320_ACEOF
12321if ac_fn_cxx_try_link "$LINENO"; then :
12322
12323lt_aix_libpath_sed='
12324 /Import File Strings/,/^$/ {
12325 /^0/ {
12326 s/^0 *\(.*\)$/\1/
12327 p
12328 }
12329 }'
12330aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12331# Check for a 64-bit object if we didn't find anything.
12332if test -z "$aix_libpath"; then
12333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12334fi
12335fi
12336rm -f core conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
12338if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12339
12340 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12341 # Warning - without using the other run time loading flags,
12342 # -berok will link without error, but may produce a broken library.
12343 no_undefined_flag_CXX=' ${wl}-bernotok'
12344 allow_undefined_flag_CXX=' ${wl}-berok'
12345 if test "$with_gnu_ld" = yes; then
12346 # We only use this code for GNU lds that support --whole-archive.
12347 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12348 else
12349 # Exported symbols can be pulled into shared objects from archives
12350 whole_archive_flag_spec_CXX='$convenience'
12351 fi
12352 archive_cmds_need_lc_CXX=yes
12353 # This is similar to how AIX traditionally builds its shared
12354 # libraries.
12355 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12356 fi
12357 fi
12358 ;;
12359
12360 beos*)
12361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12362 allow_undefined_flag_CXX=unsupported
12363 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12364 # support --undefined. This deserves some investigation. FIXME
12365 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12366 else
12367 ld_shlibs_CXX=no
12368 fi
12369 ;;
12370
12371 chorus*)
12372 case $cc_basename in
12373 *)
12374 # FIXME: insert proper C++ library support
12375 ld_shlibs_CXX=no
12376 ;;
12377 esac
12378 ;;
12379
12380 cygwin* | mingw* | pw32* | cegcc*)
12381 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12382 # as there is no search path for DLLs.
12383 hardcode_libdir_flag_spec_CXX='-L$libdir'
12384 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12385 allow_undefined_flag_CXX=unsupported
12386 always_export_symbols_CXX=no
12387 enable_shared_with_static_runtimes_CXX=yes
12388
12389 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12390 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12391 # If the export-symbols file already is a .def file (1st line
12392 # is EXPORTS), use it as is; otherwise, prepend...
12393 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12394 cp $export_symbols $output_objdir/$soname.def;
12395 else
12396 echo EXPORTS > $output_objdir/$soname.def;
12397 cat $export_symbols >> $output_objdir/$soname.def;
12398 fi~
12399 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12400 else
12401 ld_shlibs_CXX=no
12402 fi
12403 ;;
12404 darwin* | rhapsody*)
12405
12406
12407 archive_cmds_need_lc_CXX=no
12408 hardcode_direct_CXX=no
12409 hardcode_automatic_CXX=yes
12410 hardcode_shlibpath_var_CXX=unsupported
12411 if test "$lt_cv_ld_force_load" = "yes"; then
12412 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12413 else
12414 whole_archive_flag_spec_CXX=''
12415 fi
12416 link_all_deplibs_CXX=yes
12417 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12418 case $cc_basename in
12419 ifort*) _lt_dar_can_shared=yes ;;
12420 *) _lt_dar_can_shared=$GCC ;;
12421 esac
12422 if test "$_lt_dar_can_shared" = "yes"; then
12423 output_verbose_link_cmd=func_echo_all
12424 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12425 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12426 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12427 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12428 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12429 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12430 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12431 fi
12432
12433 else
12434 ld_shlibs_CXX=no
12435 fi
12436
12437 ;;
12438
12439 dgux*)
12440 case $cc_basename in
12441 ec++*)
12442 # FIXME: insert proper C++ library support
12443 ld_shlibs_CXX=no
12444 ;;
12445 ghcx*)
12446 # Green Hills C++ Compiler
12447 # FIXME: insert proper C++ library support
12448 ld_shlibs_CXX=no
12449 ;;
12450 *)
12451 # FIXME: insert proper C++ library support
12452 ld_shlibs_CXX=no
12453 ;;
12454 esac
12455 ;;
12456
12457 freebsd2.*)
12458 # C++ shared libraries reported to be fairly broken before
12459 # switch to ELF
12460 ld_shlibs_CXX=no
12461 ;;
12462
12463 freebsd-elf*)
12464 archive_cmds_need_lc_CXX=no
12465 ;;
12466
12467 freebsd* | dragonfly*)
12468 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12469 # conventions
12470 ld_shlibs_CXX=yes
12471 ;;
12472
12473 gnu*)
12474 ;;
12475
12476 haiku*)
12477 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12478 link_all_deplibs_CXX=yes
12479 ;;
12480
12481 hpux9*)
12482 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12483 hardcode_libdir_separator_CXX=:
12484 export_dynamic_flag_spec_CXX='${wl}-E'
12485 hardcode_direct_CXX=yes
12486 hardcode_minus_L_CXX=yes # Not in the search PATH,
12487 # but as the default
12488 # location of the library.
12489
12490 case $cc_basename in
12491 CC*)
12492 # FIXME: insert proper C++ library support
12493 ld_shlibs_CXX=no
12494 ;;
12495 aCC*)
12496 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12497 # Commands to make compiler produce verbose output that lists
12498 # what "hidden" libraries, object files and flags are used when
12499 # linking a shared library.
12500 #
12501 # There doesn't appear to be a way to prevent this compiler from
12502 # explicitly linking system object files so we need to strip them
12503 # from the output so that they don't get included in the library
12504 # dependencies.
12505 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12506 ;;
12507 *)
12508 if test "$GXX" = yes; then
12509 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12510 else
12511 # FIXME: insert proper C++ library support
12512 ld_shlibs_CXX=no
12513 fi
12514 ;;
12515 esac
12516 ;;
12517
12518 hpux10*|hpux11*)
12519 if test $with_gnu_ld = no; then
12520 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12521 hardcode_libdir_separator_CXX=:
12522
12523 case $host_cpu in
12524 hppa*64*|ia64*)
12525 ;;
12526 *)
12527 export_dynamic_flag_spec_CXX='${wl}-E'
12528 ;;
12529 esac
12530 fi
12531 case $host_cpu in
12532 hppa*64*|ia64*)
12533 hardcode_direct_CXX=no
12534 hardcode_shlibpath_var_CXX=no
12535 ;;
12536 *)
12537 hardcode_direct_CXX=yes
12538 hardcode_direct_absolute_CXX=yes
12539 hardcode_minus_L_CXX=yes # Not in the search PATH,
12540 # but as the default
12541 # location of the library.
12542 ;;
12543 esac
12544
12545 case $cc_basename in
12546 CC*)
12547 # FIXME: insert proper C++ library support
12548 ld_shlibs_CXX=no
12549 ;;
12550 aCC*)
12551 case $host_cpu in
12552 hppa*64*)
4e4ba647 12553 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5f520819
KY
12554 ;;
12555 ia64*)
12556 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12557 ;;
12558 *)
12559 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12560 ;;
12561 esac
12562 # Commands to make compiler produce verbose output that lists
12563 # what "hidden" libraries, object files and flags are used when
12564 # linking a shared library.
12565 #
12566 # There doesn't appear to be a way to prevent this compiler from
12567 # explicitly linking system object files so we need to strip them
12568 # from the output so that they don't get included in the library
12569 # dependencies.
12570 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12571 ;;
12572 *)
12573 if test "$GXX" = yes; then
12574 if test $with_gnu_ld = no; then
12575 case $host_cpu in
12576 hppa*64*)
4e4ba647 12577 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5f520819
KY
12578 ;;
12579 ia64*)
12580 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12581 ;;
12582 *)
12583 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12584 ;;
12585 esac
12586 fi
12587 else
12588 # FIXME: insert proper C++ library support
12589 ld_shlibs_CXX=no
12590 fi
12591 ;;
12592 esac
12593 ;;
12594
12595 interix[3-9]*)
12596 hardcode_direct_CXX=no
12597 hardcode_shlibpath_var_CXX=no
12598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12599 export_dynamic_flag_spec_CXX='${wl}-E'
12600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12601 # Instead, shared libraries are loaded at an image base (0x10000000 by
12602 # default) and relocated if they conflict, which is a slow very memory
12603 # consuming and fragmenting process. To avoid this, we pick a random,
12604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12606 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12607 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12608 ;;
12609 irix5* | irix6*)
12610 case $cc_basename in
12611 CC*)
12612 # SGI C++
12613 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12614
12615 # Archives containing C++ object files must be created using
12616 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12617 # necessary to make sure instantiated templates are included
12618 # in the archive.
12619 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12620 ;;
12621 *)
12622 if test "$GXX" = yes; then
12623 if test "$with_gnu_ld" = no; then
12624 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12625 else
12626 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12627 fi
12628 fi
12629 link_all_deplibs_CXX=yes
12630 ;;
12631 esac
12632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12633 hardcode_libdir_separator_CXX=:
12634 inherit_rpath_CXX=yes
12635 ;;
12636
12637 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12638 case $cc_basename in
12639 KCC*)
12640 # Kuck and Associates, Inc. (KAI) C++ Compiler
12641
12642 # KCC will only create a shared library if the output file
12643 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12644 # to its proper name (with version) after linking.
12645 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12646 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12647 # Commands to make compiler produce verbose output that lists
12648 # what "hidden" libraries, object files and flags are used when
12649 # linking a shared library.
12650 #
12651 # There doesn't appear to be a way to prevent this compiler from
12652 # explicitly linking system object files so we need to strip them
12653 # from the output so that they don't get included in the library
12654 # dependencies.
12655 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12656
12657 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12659
12660 # Archives containing C++ object files must be created using
12661 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12662 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12663 ;;
12664 icpc* | ecpc* )
12665 # Intel C++
12666 with_gnu_ld=yes
12667 # version 8.0 and above of icpc choke on multiply defined symbols
12668 # if we add $predep_objects and $postdep_objects, however 7.1 and
12669 # earlier do not add the objects themselves.
12670 case `$CC -V 2>&1` in
12671 *"Version 7."*)
12672 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12673 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12674 ;;
12675 *) # Version 8.0 or newer
12676 tmp_idyn=
12677 case $host_cpu in
12678 ia64*) tmp_idyn=' -i_dynamic';;
12679 esac
12680 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12681 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12682 ;;
12683 esac
12684 archive_cmds_need_lc_CXX=no
12685 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12686 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12687 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12688 ;;
12689 pgCC* | pgcpp*)
12690 # Portland Group C++ compiler
12691 case `$CC -V` in
12692 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12693 prelink_cmds_CXX='tpldir=Template.dir~
12694 rm -rf $tpldir~
12695 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22e05272 12696 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5f520819
KY
12697 old_archive_cmds_CXX='tpldir=Template.dir~
12698 rm -rf $tpldir~
12699 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22e05272 12700 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5f520819
KY
12701 $RANLIB $oldlib'
12702 archive_cmds_CXX='tpldir=Template.dir~
12703 rm -rf $tpldir~
12704 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22e05272 12705 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5f520819
KY
12706 archive_expsym_cmds_CXX='tpldir=Template.dir~
12707 rm -rf $tpldir~
12708 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22e05272 12709 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5f520819
KY
12710 ;;
12711 *) # Version 6 and above use weak symbols
12712 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12713 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12714 ;;
12715 esac
12716
12717 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12719 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12720 ;;
12721 cxx*)
12722 # Compaq C++
12723 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12724 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12725
12726 runpath_var=LD_RUN_PATH
12727 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12728 hardcode_libdir_separator_CXX=:
12729
12730 # Commands to make compiler produce verbose output that lists
12731 # what "hidden" libraries, object files and flags are used when
12732 # linking a shared library.
12733 #
12734 # There doesn't appear to be a way to prevent this compiler from
12735 # explicitly linking system object files so we need to strip them
12736 # from the output so that they don't get included in the library
12737 # dependencies.
12738 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12739 ;;
12740 xl* | mpixl* | bgxl*)
12741 # IBM XL 8.0 on PPC, with GNU ld
12742 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12744 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745 if test "x$supports_anon_versioning" = xyes; then
12746 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12748 echo "local: *; };" >> $output_objdir/$libname.ver~
12749 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12750 fi
12751 ;;
12752 *)
12753 case `$CC -V 2>&1 | sed 5q` in
12754 *Sun\ C*)
12755 # Sun C++ 5.9
12756 no_undefined_flag_CXX=' -zdefs'
12757 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12758 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12759 hardcode_libdir_flag_spec_CXX='-R$libdir'
12760 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12761 compiler_needs_object_CXX=yes
12762
12763 # Not sure whether something based on
12764 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12765 # would be better.
12766 output_verbose_link_cmd='func_echo_all'
12767
12768 # Archives containing C++ object files must be created using
12769 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12770 # necessary to make sure instantiated templates are included
12771 # in the archive.
12772 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12773 ;;
12774 esac
12775 ;;
12776 esac
12777 ;;
12778
12779 lynxos*)
12780 # FIXME: insert proper C++ library support
12781 ld_shlibs_CXX=no
12782 ;;
12783
12784 m88k*)
12785 # FIXME: insert proper C++ library support
12786 ld_shlibs_CXX=no
12787 ;;
12788
12789 mvs*)
12790 case $cc_basename in
12791 cxx*)
12792 # FIXME: insert proper C++ library support
12793 ld_shlibs_CXX=no
12794 ;;
12795 *)
12796 # FIXME: insert proper C++ library support
12797 ld_shlibs_CXX=no
12798 ;;
12799 esac
12800 ;;
12801
12802 netbsd*)
12803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12804 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12805 wlarc=
12806 hardcode_libdir_flag_spec_CXX='-R$libdir'
12807 hardcode_direct_CXX=yes
12808 hardcode_shlibpath_var_CXX=no
12809 fi
12810 # Workaround some broken pre-1.5 toolchains
12811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12812 ;;
12813
12814 *nto* | *qnx*)
12815 ld_shlibs_CXX=yes
12816 ;;
12817
12818 openbsd2*)
12819 # C++ shared libraries are fairly broken
12820 ld_shlibs_CXX=no
12821 ;;
12822
12823 openbsd*)
12824 if test -f /usr/libexec/ld.so; then
12825 hardcode_direct_CXX=yes
12826 hardcode_shlibpath_var_CXX=no
12827 hardcode_direct_absolute_CXX=yes
12828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12831 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12832 export_dynamic_flag_spec_CXX='${wl}-E'
12833 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12834 fi
12835 output_verbose_link_cmd=func_echo_all
12836 else
12837 ld_shlibs_CXX=no
12838 fi
12839 ;;
12840
12841 osf3* | osf4* | osf5*)
12842 case $cc_basename in
12843 KCC*)
12844 # Kuck and Associates, Inc. (KAI) C++ Compiler
12845
12846 # KCC will only create a shared library if the output file
12847 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12848 # to its proper name (with version) after linking.
12849 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12850
12851 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12852 hardcode_libdir_separator_CXX=:
12853
12854 # Archives containing C++ object files must be created using
12855 # the KAI C++ compiler.
12856 case $host in
12857 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12858 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12859 esac
12860 ;;
12861 RCC*)
12862 # Rational C++ 2.4.1
12863 # FIXME: insert proper C++ library support
12864 ld_shlibs_CXX=no
12865 ;;
12866 cxx*)
12867 case $host in
12868 osf3*)
12869 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12870 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12872 ;;
12873 *)
12874 allow_undefined_flag_CXX=' -expect_unresolved \*'
12875 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12876 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12877 echo "-hidden">> $lib.exp~
12878 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12879 $RM $lib.exp'
12880 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12881 ;;
12882 esac
12883
12884 hardcode_libdir_separator_CXX=:
12885
12886 # Commands to make compiler produce verbose output that lists
12887 # what "hidden" libraries, object files and flags are used when
12888 # linking a shared library.
12889 #
12890 # There doesn't appear to be a way to prevent this compiler from
12891 # explicitly linking system object files so we need to strip them
12892 # from the output so that they don't get included in the library
12893 # dependencies.
12894 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12895 ;;
12896 *)
12897 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12898 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12899 case $host in
12900 osf3*)
12901 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12902 ;;
12903 *)
12904 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12905 ;;
12906 esac
12907
12908 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12909 hardcode_libdir_separator_CXX=:
12910
12911 # Commands to make compiler produce verbose output that lists
12912 # what "hidden" libraries, object files and flags are used when
12913 # linking a shared library.
12914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12915
12916 else
12917 # FIXME: insert proper C++ library support
12918 ld_shlibs_CXX=no
12919 fi
12920 ;;
12921 esac
12922 ;;
12923
12924 psos*)
12925 # FIXME: insert proper C++ library support
12926 ld_shlibs_CXX=no
12927 ;;
12928
12929 sunos4*)
12930 case $cc_basename in
12931 CC*)
12932 # Sun C++ 4.x
12933 # FIXME: insert proper C++ library support
12934 ld_shlibs_CXX=no
12935 ;;
12936 lcc*)
12937 # Lucid
12938 # FIXME: insert proper C++ library support
12939 ld_shlibs_CXX=no
12940 ;;
12941 *)
12942 # FIXME: insert proper C++ library support
12943 ld_shlibs_CXX=no
12944 ;;
12945 esac
12946 ;;
12947
12948 solaris*)
12949 case $cc_basename in
12950 CC*)
12951 # Sun C++ 4.2, 5.x and Centerline C++
12952 archive_cmds_need_lc_CXX=yes
12953 no_undefined_flag_CXX=' -zdefs'
12954 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12955 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12956 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12957
12958 hardcode_libdir_flag_spec_CXX='-R$libdir'
12959 hardcode_shlibpath_var_CXX=no
12960 case $host_os in
12961 solaris2.[0-5] | solaris2.[0-5].*) ;;
12962 *)
12963 # The compiler driver will combine and reorder linker options,
12964 # but understands `-z linker_flag'.
12965 # Supported since Solaris 2.6 (maybe 2.5.1?)
12966 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12967 ;;
12968 esac
12969 link_all_deplibs_CXX=yes
12970
12971 output_verbose_link_cmd='func_echo_all'
12972
12973 # Archives containing C++ object files must be created using
12974 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12975 # necessary to make sure instantiated templates are included
12976 # in the archive.
12977 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12978 ;;
12979 gcx*)
12980 # Green Hills C++ Compiler
12981 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12982
12983 # The C++ compiler must be used to create the archive.
12984 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12985 ;;
12986 *)
12987 # GNU C++ compiler with Solaris linker
12988 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12989 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12990 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12991 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12992 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12993 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12994
12995 # Commands to make compiler produce verbose output that lists
12996 # what "hidden" libraries, object files and flags are used when
12997 # linking a shared library.
12998 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12999 else
13000 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13001 # platform.
13002 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13003 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13004 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13005
13006 # Commands to make compiler produce verbose output that lists
13007 # what "hidden" libraries, object files and flags are used when
13008 # linking a shared library.
13009 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13010 fi
13011
13012 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13013 case $host_os in
13014 solaris2.[0-5] | solaris2.[0-5].*) ;;
13015 *)
13016 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13017 ;;
13018 esac
13019 fi
13020 ;;
13021 esac
13022 ;;
13023
13024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13025 no_undefined_flag_CXX='${wl}-z,text'
13026 archive_cmds_need_lc_CXX=no
13027 hardcode_shlibpath_var_CXX=no
13028 runpath_var='LD_RUN_PATH'
13029
13030 case $cc_basename in
13031 CC*)
13032 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13033 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13034 ;;
13035 *)
13036 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13037 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13038 ;;
13039 esac
13040 ;;
13041
13042 sysv5* | sco3.2v5* | sco5v6*)
13043 # Note: We can NOT use -z defs as we might desire, because we do not
13044 # link with -lc, and that would cause any symbols used from libc to
13045 # always be unresolved, which means just about no library would
13046 # ever link correctly. If we're not using GNU ld we use -z text
13047 # though, which does catch some bad symbols but isn't as heavy-handed
13048 # as -z defs.
13049 no_undefined_flag_CXX='${wl}-z,text'
13050 allow_undefined_flag_CXX='${wl}-z,nodefs'
13051 archive_cmds_need_lc_CXX=no
13052 hardcode_shlibpath_var_CXX=no
13053 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13054 hardcode_libdir_separator_CXX=':'
13055 link_all_deplibs_CXX=yes
13056 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13057 runpath_var='LD_RUN_PATH'
13058
13059 case $cc_basename in
13060 CC*)
13061 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13063 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13064 '"$old_archive_cmds_CXX"
13065 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13066 '"$reload_cmds_CXX"
13067 ;;
13068 *)
13069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071 ;;
13072 esac
13073 ;;
13074
13075 tandem*)
13076 case $cc_basename in
13077 NCC*)
13078 # NonStop-UX NCC 3.20
13079 # FIXME: insert proper C++ library support
13080 ld_shlibs_CXX=no
13081 ;;
13082 *)
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13085 ;;
13086 esac
13087 ;;
13088
13089 vxworks*)
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13092 ;;
13093
13094 *)
13095 # FIXME: insert proper C++ library support
13096 ld_shlibs_CXX=no
13097 ;;
13098 esac
13099
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13101$as_echo "$ld_shlibs_CXX" >&6; }
13102 test "$ld_shlibs_CXX" = no && can_build_shared=no
13103
13104 GCC_CXX="$GXX"
13105 LD_CXX="$LD"
13106
13107 ## CAVEAT EMPTOR:
13108 ## There is no encapsulation within the following macros, do not change
13109 ## the running order or otherwise move them around unless you know exactly
13110 ## what you are doing...
13111 # Dependencies to place before and after the object being linked:
13112predep_objects_CXX=
13113postdep_objects_CXX=
13114predeps_CXX=
13115postdeps_CXX=
13116compiler_lib_search_path_CXX=
13117
13118cat > conftest.$ac_ext <<_LT_EOF
13119class Foo
13120{
13121public:
13122 Foo (void) { a = 0; }
13123private:
13124 int a;
13125};
13126_LT_EOF
13127
13128if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13129 (eval $ac_compile) 2>&5
13130 ac_status=$?
13131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13132 test $ac_status = 0; }; then
13133 # Parse the compiler output and extract the necessary
13134 # objects, libraries and library flags.
13135
13136 # Sentinel used to keep track of whether or not we are before
13137 # the conftest object file.
13138 pre_test_object_deps_done=no
13139
13140 for p in `eval "$output_verbose_link_cmd"`; do
13141 case $p in
13142
13143 -L* | -R* | -l*)
13144 # Some compilers place space between "-{L,R}" and the path.
13145 # Remove the space.
13146 if test $p = "-L" ||
13147 test $p = "-R"; then
13148 prev=$p
13149 continue
13150 else
13151 prev=
13152 fi
13153
13154 if test "$pre_test_object_deps_done" = no; then
13155 case $p in
13156 -L* | -R*)
13157 # Internal compiler library paths should come after those
13158 # provided the user. The postdeps already come after the
13159 # user supplied libs so there is no need to process them.
13160 if test -z "$compiler_lib_search_path_CXX"; then
13161 compiler_lib_search_path_CXX="${prev}${p}"
13162 else
13163 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13164 fi
13165 ;;
13166 # The "-l" case would never come before the object being
13167 # linked, so don't bother handling this case.
13168 esac
13169 else
13170 if test -z "$postdeps_CXX"; then
13171 postdeps_CXX="${prev}${p}"
13172 else
13173 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13174 fi
13175 fi
13176 ;;
13177
13178 *.$objext)
13179 # This assumes that the test object file only shows up
13180 # once in the compiler output.
13181 if test "$p" = "conftest.$objext"; then
13182 pre_test_object_deps_done=yes
13183 continue
13184 fi
13185
13186 if test "$pre_test_object_deps_done" = no; then
13187 if test -z "$predep_objects_CXX"; then
13188 predep_objects_CXX="$p"
13189 else
13190 predep_objects_CXX="$predep_objects_CXX $p"
13191 fi
13192 else
13193 if test -z "$postdep_objects_CXX"; then
13194 postdep_objects_CXX="$p"
13195 else
13196 postdep_objects_CXX="$postdep_objects_CXX $p"
13197 fi
13198 fi
13199 ;;
13200
13201 *) ;; # Ignore the rest.
13202
13203 esac
13204 done
13205
13206 # Clean up.
13207 rm -f a.out a.exe
13208else
13209 echo "libtool.m4: error: problem compiling CXX test program"
13210fi
13211
13212$RM -f confest.$objext
13213
13214# PORTME: override above test on systems where it is broken
13215case $host_os in
13216interix[3-9]*)
13217 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13218 # hack all around it, let's just trust "g++" to DTRT.
13219 predep_objects_CXX=
13220 postdep_objects_CXX=
13221 postdeps_CXX=
13222 ;;
13223
13224linux*)
13225 case `$CC -V 2>&1 | sed 5q` in
13226 *Sun\ C*)
13227 # Sun C++ 5.9
13228
13229 # The more standards-conforming stlport4 library is
13230 # incompatible with the Cstd library. Avoid specifying
13231 # it if it's in CXXFLAGS. Ignore libCrun as
13232 # -library=stlport4 depends on it.
13233 case " $CXX $CXXFLAGS " in
13234 *" -library=stlport4 "*)
13235 solaris_use_stlport4=yes
13236 ;;
13237 esac
13238
13239 if test "$solaris_use_stlport4" != yes; then
13240 postdeps_CXX='-library=Cstd -library=Crun'
13241 fi
13242 ;;
13243 esac
13244 ;;
13245
13246solaris*)
13247 case $cc_basename in
13248 CC*)
13249 # The more standards-conforming stlport4 library is
13250 # incompatible with the Cstd library. Avoid specifying
13251 # it if it's in CXXFLAGS. Ignore libCrun as
13252 # -library=stlport4 depends on it.
13253 case " $CXX $CXXFLAGS " in
13254 *" -library=stlport4 "*)
13255 solaris_use_stlport4=yes
13256 ;;
13257 esac
13258
13259 # Adding this requires a known-good setup of shared libraries for
13260 # Sun compiler versions before 5.6, else PIC objects from an old
13261 # archive will be linked into the output, leading to subtle bugs.
13262 if test "$solaris_use_stlport4" != yes; then
13263 postdeps_CXX='-library=Cstd -library=Crun'
13264 fi
13265 ;;
13266 esac
13267 ;;
13268esac
13269
13270
13271case " $postdeps_CXX " in
13272*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13273esac
13274 compiler_lib_search_dirs_CXX=
13275if test -n "${compiler_lib_search_path_CXX}"; then
13276 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13277fi
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309 lt_prog_compiler_wl_CXX=
13310lt_prog_compiler_pic_CXX=
13311lt_prog_compiler_static_CXX=
13312
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13314$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13315
13316 # C++ specific cases for pic, static, wl, etc.
13317 if test "$GXX" = yes; then
13318 lt_prog_compiler_wl_CXX='-Wl,'
13319 lt_prog_compiler_static_CXX='-static'
13320
13321 case $host_os in
13322 aix*)
13323 # All AIX code is PIC.
13324 if test "$host_cpu" = ia64; then
13325 # AIX 5 now supports IA64 processor
13326 lt_prog_compiler_static_CXX='-Bstatic'
13327 fi
13328 lt_prog_compiler_pic_CXX='-fPIC'
13329 ;;
13330
13331 amigaos*)
13332 case $host_cpu in
13333 powerpc)
13334 # see comment about AmigaOS4 .so support
13335 lt_prog_compiler_pic_CXX='-fPIC'
13336 ;;
13337 m68k)
13338 # FIXME: we need at least 68020 code to build shared libraries, but
13339 # adding the `-m68020' flag to GCC prevents building anything better,
13340 # like `-m68040'.
13341 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13342 ;;
13343 esac
13344 ;;
13345
13346 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13347 # PIC is the default for these OSes.
13348 ;;
13349 mingw* | cygwin* | os2* | pw32* | cegcc*)
13350 # This hack is so that the source file can tell whether it is being
13351 # built for inclusion in a dll (and should export symbols for example).
13352 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13353 # (--disable-auto-import) libraries
13354 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13355 ;;
13356 darwin* | rhapsody*)
13357 # PIC is the default on this platform
13358 # Common symbols not allowed in MH_DYLIB files
13359 lt_prog_compiler_pic_CXX='-fno-common'
13360 ;;
13361 *djgpp*)
13362 # DJGPP does not support shared libraries at all
13363 lt_prog_compiler_pic_CXX=
13364 ;;
13365 haiku*)
13366 # PIC is the default for Haiku.
13367 # The "-static" flag exists, but is broken.
13368 lt_prog_compiler_static_CXX=
13369 ;;
13370 interix[3-9]*)
13371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13372 # Instead, we relocate shared libraries at runtime.
13373 ;;
13374 sysv4*MP*)
13375 if test -d /usr/nec; then
13376 lt_prog_compiler_pic_CXX=-Kconform_pic
13377 fi
13378 ;;
13379 hpux*)
13380 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13381 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13382 # sets the default TLS model and affects inlining.
13383 case $host_cpu in
13384 hppa*64*)
13385 ;;
13386 *)
13387 lt_prog_compiler_pic_CXX='-fPIC'
13388 ;;
13389 esac
13390 ;;
13391 *qnx* | *nto*)
13392 # QNX uses GNU C++, but need to define -shared option too, otherwise
13393 # it will coredump.
13394 lt_prog_compiler_pic_CXX='-fPIC -shared'
13395 ;;
13396 *)
13397 lt_prog_compiler_pic_CXX='-fPIC'
13398 ;;
13399 esac
13400 else
13401 case $host_os in
13402 aix[4-9]*)
13403 # All AIX code is PIC.
13404 if test "$host_cpu" = ia64; then
13405 # AIX 5 now supports IA64 processor
13406 lt_prog_compiler_static_CXX='-Bstatic'
13407 else
13408 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13409 fi
13410 ;;
13411 chorus*)
13412 case $cc_basename in
13413 cxch68*)
13414 # Green Hills C++ Compiler
13415 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13416 ;;
13417 esac
13418 ;;
13419 dgux*)
13420 case $cc_basename in
13421 ec++*)
13422 lt_prog_compiler_pic_CXX='-KPIC'
13423 ;;
13424 ghcx*)
13425 # Green Hills C++ Compiler
13426 lt_prog_compiler_pic_CXX='-pic'
13427 ;;
13428 *)
13429 ;;
13430 esac
13431 ;;
13432 freebsd* | dragonfly*)
13433 # FreeBSD uses GNU C++
13434 ;;
13435 hpux9* | hpux10* | hpux11*)
13436 case $cc_basename in
13437 CC*)
13438 lt_prog_compiler_wl_CXX='-Wl,'
13439 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13440 if test "$host_cpu" != ia64; then
13441 lt_prog_compiler_pic_CXX='+Z'
13442 fi
13443 ;;
13444 aCC*)
13445 lt_prog_compiler_wl_CXX='-Wl,'
13446 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13447 case $host_cpu in
13448 hppa*64*|ia64*)
13449 # +Z the default
13450 ;;
13451 *)
13452 lt_prog_compiler_pic_CXX='+Z'
13453 ;;
13454 esac
13455 ;;
13456 *)
13457 ;;
13458 esac
13459 ;;
13460 interix*)
13461 # This is c89, which is MS Visual C++ (no shared libs)
13462 # Anyone wants to do a port?
13463 ;;
13464 irix5* | irix6* | nonstopux*)
13465 case $cc_basename in
13466 CC*)
13467 lt_prog_compiler_wl_CXX='-Wl,'
13468 lt_prog_compiler_static_CXX='-non_shared'
13469 # CC pic flag -KPIC is the default.
13470 ;;
13471 *)
13472 ;;
13473 esac
13474 ;;
13475 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13476 case $cc_basename in
13477 KCC*)
13478 # KAI C++ Compiler
13479 lt_prog_compiler_wl_CXX='--backend -Wl,'
13480 lt_prog_compiler_pic_CXX='-fPIC'
13481 ;;
13482 ecpc* )
13483 # old Intel C++ for x86_64 which still supported -KPIC.
13484 lt_prog_compiler_wl_CXX='-Wl,'
13485 lt_prog_compiler_pic_CXX='-KPIC'
13486 lt_prog_compiler_static_CXX='-static'
13487 ;;
13488 icpc* )
13489 # Intel C++, used to be incompatible with GCC.
13490 # ICC 10 doesn't accept -KPIC any more.
13491 lt_prog_compiler_wl_CXX='-Wl,'
13492 lt_prog_compiler_pic_CXX='-fPIC'
13493 lt_prog_compiler_static_CXX='-static'
13494 ;;
13495 pgCC* | pgcpp*)
13496 # Portland Group C++ compiler
13497 lt_prog_compiler_wl_CXX='-Wl,'
13498 lt_prog_compiler_pic_CXX='-fpic'
13499 lt_prog_compiler_static_CXX='-Bstatic'
13500 ;;
13501 cxx*)
13502 # Compaq C++
13503 # Make sure the PIC flag is empty. It appears that all Alpha
13504 # Linux and Compaq Tru64 Unix objects are PIC.
13505 lt_prog_compiler_pic_CXX=
13506 lt_prog_compiler_static_CXX='-non_shared'
13507 ;;
13508 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13509 # IBM XL 8.0, 9.0 on PPC and BlueGene
13510 lt_prog_compiler_wl_CXX='-Wl,'
13511 lt_prog_compiler_pic_CXX='-qpic'
13512 lt_prog_compiler_static_CXX='-qstaticlink'
13513 ;;
13514 *)
13515 case `$CC -V 2>&1 | sed 5q` in
13516 *Sun\ C*)
13517 # Sun C++ 5.9
13518 lt_prog_compiler_pic_CXX='-KPIC'
13519 lt_prog_compiler_static_CXX='-Bstatic'
13520 lt_prog_compiler_wl_CXX='-Qoption ld '
13521 ;;
13522 esac
13523 ;;
13524 esac
13525 ;;
13526 lynxos*)
13527 ;;
13528 m88k*)
13529 ;;
13530 mvs*)
13531 case $cc_basename in
13532 cxx*)
13533 lt_prog_compiler_pic_CXX='-W c,exportall'
13534 ;;
13535 *)
13536 ;;
13537 esac
13538 ;;
13539 netbsd*)
13540 ;;
13541 *qnx* | *nto*)
13542 # QNX uses GNU C++, but need to define -shared option too, otherwise
13543 # it will coredump.
13544 lt_prog_compiler_pic_CXX='-fPIC -shared'
13545 ;;
13546 osf3* | osf4* | osf5*)
13547 case $cc_basename in
13548 KCC*)
13549 lt_prog_compiler_wl_CXX='--backend -Wl,'
13550 ;;
13551 RCC*)
13552 # Rational C++ 2.4.1
13553 lt_prog_compiler_pic_CXX='-pic'
13554 ;;
13555 cxx*)
13556 # Digital/Compaq C++
13557 lt_prog_compiler_wl_CXX='-Wl,'
13558 # Make sure the PIC flag is empty. It appears that all Alpha
13559 # Linux and Compaq Tru64 Unix objects are PIC.
13560 lt_prog_compiler_pic_CXX=
13561 lt_prog_compiler_static_CXX='-non_shared'
13562 ;;
13563 *)
13564 ;;
13565 esac
13566 ;;
13567 psos*)
13568 ;;
13569 solaris*)
13570 case $cc_basename in
13571 CC*)
13572 # Sun C++ 4.2, 5.x and Centerline C++
13573 lt_prog_compiler_pic_CXX='-KPIC'
13574 lt_prog_compiler_static_CXX='-Bstatic'
13575 lt_prog_compiler_wl_CXX='-Qoption ld '
13576 ;;
13577 gcx*)
13578 # Green Hills C++ Compiler
13579 lt_prog_compiler_pic_CXX='-PIC'
13580 ;;
13581 *)
13582 ;;
13583 esac
13584 ;;
13585 sunos4*)
13586 case $cc_basename in
13587 CC*)
13588 # Sun C++ 4.x
13589 lt_prog_compiler_pic_CXX='-pic'
13590 lt_prog_compiler_static_CXX='-Bstatic'
13591 ;;
13592 lcc*)
13593 # Lucid
13594 lt_prog_compiler_pic_CXX='-pic'
13595 ;;
13596 *)
13597 ;;
13598 esac
13599 ;;
13600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13601 case $cc_basename in
13602 CC*)
13603 lt_prog_compiler_wl_CXX='-Wl,'
13604 lt_prog_compiler_pic_CXX='-KPIC'
13605 lt_prog_compiler_static_CXX='-Bstatic'
13606 ;;
13607 esac
13608 ;;
13609 tandem*)
13610 case $cc_basename in
13611 NCC*)
13612 # NonStop-UX NCC 3.20
13613 lt_prog_compiler_pic_CXX='-KPIC'
13614 ;;
13615 *)
13616 ;;
13617 esac
13618 ;;
13619 vxworks*)
13620 ;;
13621 *)
13622 lt_prog_compiler_can_build_shared_CXX=no
13623 ;;
13624 esac
13625 fi
13626
13627case $host_os in
13628 # For platforms which do not support PIC, -DPIC is meaningless:
13629 *djgpp*)
13630 lt_prog_compiler_pic_CXX=
13631 ;;
13632 *)
13633 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13634 ;;
13635esac
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13637$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13638
13639
13640
13641#
13642# Check to make sure the PIC flag actually works.
13643#
13644if test -n "$lt_prog_compiler_pic_CXX"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13646$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22e05272 13647if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
5f520819
KY
13648 $as_echo_n "(cached) " >&6
13649else
13650 lt_cv_prog_compiler_pic_works_CXX=no
13651 ac_outfile=conftest.$ac_objext
13652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13653 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13654 # Insert the option either (1) after the last *FLAGS variable, or
13655 # (2) before a word containing "conftest.", or (3) at the end.
13656 # Note that $ac_compile itself does not contain backslashes and begins
13657 # with a dollar sign (not a hyphen), so the echo should work correctly.
13658 # The option is referenced via a variable to avoid confusing sed.
13659 lt_compile=`echo "$ac_compile" | $SED \
13660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13662 -e 's:$: $lt_compiler_flag:'`
13663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13664 (eval "$lt_compile" 2>conftest.err)
13665 ac_status=$?
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 if (exit $ac_status) && test -s "$ac_outfile"; then
13669 # The compiler can only warn and ignore the option if not recognized
13670 # So say no if there are warnings other than the usual output.
13671 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13674 lt_cv_prog_compiler_pic_works_CXX=yes
13675 fi
13676 fi
13677 $RM conftest*
13678
13679fi
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13681$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13682
13683if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13684 case $lt_prog_compiler_pic_CXX in
13685 "" | " "*) ;;
13686 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13687 esac
13688else
13689 lt_prog_compiler_pic_CXX=
13690 lt_prog_compiler_can_build_shared_CXX=no
13691fi
13692
13693fi
13694
13695
13696
13697#
13698# Check to make sure the static flag actually works.
13699#
13700wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13702$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 13703if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
5f520819
KY
13704 $as_echo_n "(cached) " >&6
13705else
13706 lt_cv_prog_compiler_static_works_CXX=no
13707 save_LDFLAGS="$LDFLAGS"
13708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13711 # The linker can only warn and ignore the option if not recognized
13712 # So say no if there are warnings
13713 if test -s conftest.err; then
13714 # Append any errors to the config.log.
13715 cat conftest.err 1>&5
13716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13718 if diff conftest.exp conftest.er2 >/dev/null; then
13719 lt_cv_prog_compiler_static_works_CXX=yes
13720 fi
13721 else
13722 lt_cv_prog_compiler_static_works_CXX=yes
13723 fi
13724 fi
13725 $RM -r conftest*
13726 LDFLAGS="$save_LDFLAGS"
13727
13728fi
13729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13730$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13731
13732if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13733 :
13734else
13735 lt_prog_compiler_static_CXX=
13736fi
13737
13738
13739
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13742$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 13743if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
5f520819
KY
13744 $as_echo_n "(cached) " >&6
13745else
13746 lt_cv_prog_compiler_c_o_CXX=no
13747 $RM -r conftest 2>/dev/null
13748 mkdir conftest
13749 cd conftest
13750 mkdir out
13751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13752
13753 lt_compiler_flag="-o out/conftest2.$ac_objext"
13754 # Insert the option either (1) after the last *FLAGS variable, or
13755 # (2) before a word containing "conftest.", or (3) at the end.
13756 # Note that $ac_compile itself does not contain backslashes and begins
13757 # with a dollar sign (not a hyphen), so the echo should work correctly.
13758 lt_compile=`echo "$ac_compile" | $SED \
13759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13761 -e 's:$: $lt_compiler_flag:'`
13762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13763 (eval "$lt_compile" 2>out/conftest.err)
13764 ac_status=$?
13765 cat out/conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13768 then
13769 # The compiler can only warn and ignore the option if not recognized
13770 # So say no if there are warnings
13771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13774 lt_cv_prog_compiler_c_o_CXX=yes
13775 fi
13776 fi
13777 chmod u+w . 2>&5
13778 $RM conftest*
13779 # SGI C++ compiler will create directory out/ii_files/ for
13780 # template instantiation
13781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13782 $RM out/* && rmdir out
13783 cd ..
13784 $RM -r conftest
13785 $RM conftest*
13786
13787fi
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13789$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13790
13791
13792
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13794$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 13795if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
5f520819
KY
13796 $as_echo_n "(cached) " >&6
13797else
13798 lt_cv_prog_compiler_c_o_CXX=no
13799 $RM -r conftest 2>/dev/null
13800 mkdir conftest
13801 cd conftest
13802 mkdir out
13803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13804
13805 lt_compiler_flag="-o out/conftest2.$ac_objext"
13806 # Insert the option either (1) after the last *FLAGS variable, or
13807 # (2) before a word containing "conftest.", or (3) at the end.
13808 # Note that $ac_compile itself does not contain backslashes and begins
13809 # with a dollar sign (not a hyphen), so the echo should work correctly.
13810 lt_compile=`echo "$ac_compile" | $SED \
13811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13813 -e 's:$: $lt_compiler_flag:'`
13814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13815 (eval "$lt_compile" 2>out/conftest.err)
13816 ac_status=$?
13817 cat out/conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13820 then
13821 # The compiler can only warn and ignore the option if not recognized
13822 # So say no if there are warnings
13823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13826 lt_cv_prog_compiler_c_o_CXX=yes
13827 fi
13828 fi
13829 chmod u+w . 2>&5
13830 $RM conftest*
13831 # SGI C++ compiler will create directory out/ii_files/ for
13832 # template instantiation
13833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13834 $RM out/* && rmdir out
13835 cd ..
13836 $RM -r conftest
13837 $RM conftest*
13838
13839fi
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13841$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13842
13843
13844
13845
13846hard_links="nottested"
13847if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13848 # do not overwrite the value of need_locks provided by the user
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13850$as_echo_n "checking if we can lock with hard links... " >&6; }
13851 hard_links=yes
13852 $RM conftest*
13853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13854 touch conftest.a
13855 ln conftest.a conftest.b 2>&5 || hard_links=no
13856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13858$as_echo "$hard_links" >&6; }
13859 if test "$hard_links" = no; then
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13861$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13862 need_locks=warn
13863 fi
13864else
13865 need_locks=no
13866fi
13867
13868
13869
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13871$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13872
13873 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13874 case $host_os in
13875 aix[4-9]*)
13876 # If we're using GNU nm, then we don't want the "-C" option.
13877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13878 # Also, AIX nm treats weak defined symbols like other global defined
13879 # symbols, whereas GNU nm marks them as "W".
13880 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13881 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13882 else
84c1b9d3 13883 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5f520819
KY
13884 fi
13885 ;;
13886 pw32*)
13887 export_symbols_cmds_CXX="$ltdll_cmds"
13888 ;;
13889 cygwin* | mingw* | cegcc*)
13890 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13891 ;;
13892 *)
13893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13894 ;;
13895 esac
13896 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13897
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13899$as_echo "$ld_shlibs_CXX" >&6; }
13900test "$ld_shlibs_CXX" = no && can_build_shared=no
13901
13902with_gnu_ld_CXX=$with_gnu_ld
13903
13904
13905
13906
13907
13908
13909#
13910# Do we need to explicitly link libc?
13911#
13912case "x$archive_cmds_need_lc_CXX" in
13913x|xyes)
13914 # Assume -lc should be added
13915 archive_cmds_need_lc_CXX=yes
13916
13917 if test "$enable_shared" = yes && test "$GCC" = yes; then
13918 case $archive_cmds_CXX in
13919 *'~'*)
13920 # FIXME: we may have to deal with multi-command sequences.
13921 ;;
13922 '$CC '*)
13923 # Test whether the compiler implicitly links with -lc since on some
13924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13925 # to ld, don't add -lc before -lgcc.
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13927$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 13928if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
5f520819
KY
13929 $as_echo_n "(cached) " >&6
13930else
13931 $RM conftest*
13932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13933
13934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13935 (eval $ac_compile) 2>&5
13936 ac_status=$?
13937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13938 test $ac_status = 0; } 2>conftest.err; then
13939 soname=conftest
13940 lib=conftest
13941 libobjs=conftest.$ac_objext
13942 deplibs=
13943 wl=$lt_prog_compiler_wl_CXX
13944 pic_flag=$lt_prog_compiler_pic_CXX
13945 compiler_flags=-v
13946 linker_flags=-v
13947 verstring=
13948 output_objdir=.
13949 libname=conftest
13950 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13951 allow_undefined_flag_CXX=
13952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13953 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13954 ac_status=$?
13955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13956 test $ac_status = 0; }
13957 then
13958 lt_cv_archive_cmds_need_lc_CXX=no
13959 else
13960 lt_cv_archive_cmds_need_lc_CXX=yes
13961 fi
13962 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13963 else
13964 cat conftest.err 1>&5
13965 fi
13966 $RM conftest*
13967
13968fi
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13970$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13971 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13972 ;;
13973 esac
13974 fi
13975 ;;
13976esac
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14042$as_echo_n "checking dynamic linker characteristics... " >&6; }
14043
14044library_names_spec=
14045libname_spec='lib$name'
14046soname_spec=
14047shrext_cmds=".so"
14048postinstall_cmds=
14049postuninstall_cmds=
14050finish_cmds=
14051finish_eval=
14052shlibpath_var=
14053shlibpath_overrides_runpath=unknown
14054version_type=none
14055dynamic_linker="$host_os ld.so"
14056sys_lib_dlsearch_path_spec="/lib /usr/lib"
14057need_lib_prefix=unknown
14058hardcode_into_libs=no
14059
14060# when you set need_version to no, make sure it does not cause -set_version
14061# flags to be left without arguments
14062need_version=unknown
14063
14064case $host_os in
14065aix3*)
14066 version_type=linux
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14068 shlibpath_var=LIBPATH
14069
14070 # AIX 3 has no versioning support, so we append a major version to the name.
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 ;;
14073
14074aix[4-9]*)
14075 version_type=linux
14076 need_lib_prefix=no
14077 need_version=no
14078 hardcode_into_libs=yes
14079 if test "$host_cpu" = ia64; then
14080 # AIX 5 supports IA64
14081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 else
14084 # With GCC up to 2.95.x, collect2 would create an import file
14085 # for dependence libraries. The import file would start with
14086 # the line `#! .'. This would cause the generated library to
14087 # depend on `.', always an invalid library. This was fixed in
14088 # development snapshots of GCC prior to 3.0.
14089 case $host_os in
14090 aix4 | aix4.[01] | aix4.[01].*)
14091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14092 echo ' yes '
14093 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14094 :
14095 else
14096 can_build_shared=no
14097 fi
14098 ;;
14099 esac
14100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14101 # soname into executable. Probably we can add versioning support to
14102 # collect2, so additional links can be useful in future.
14103 if test "$aix_use_runtimelinking" = yes; then
14104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14105 # instead of lib<name>.a to let people know that these are not
14106 # typical AIX shared libraries.
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108 else
14109 # We preserve .a as extension for shared libraries through AIX4.2
14110 # and later when we are not doing run time linking.
14111 library_names_spec='${libname}${release}.a $libname.a'
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 fi
14114 shlibpath_var=LIBPATH
14115 fi
14116 ;;
14117
14118amigaos*)
14119 case $host_cpu in
14120 powerpc)
14121 # Since July 2007 AmigaOS4 officially supports .so libraries.
14122 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 ;;
14125 m68k)
14126 library_names_spec='$libname.ixlibrary $libname.a'
14127 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14128 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'
14129 ;;
14130 esac
14131 ;;
14132
14133beos*)
14134 library_names_spec='${libname}${shared_ext}'
14135 dynamic_linker="$host_os ld.so"
14136 shlibpath_var=LIBRARY_PATH
14137 ;;
14138
14139bsdi[45]*)
14140 version_type=linux
14141 need_version=no
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143 soname_spec='${libname}${release}${shared_ext}$major'
14144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14145 shlibpath_var=LD_LIBRARY_PATH
14146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14148 # the default ld.so.conf also contains /usr/contrib/lib and
14149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14150 # libtool to hard-code these into programs
14151 ;;
14152
14153cygwin* | mingw* | pw32* | cegcc*)
14154 version_type=windows
14155 shrext_cmds=".dll"
14156 need_version=no
14157 need_lib_prefix=no
14158
14159 case $GCC,$host_os in
14160 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14161 library_names_spec='$libname.dll.a'
14162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14163 postinstall_cmds='base_file=`basename \${file}`~
14164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14165 dldir=$destdir/`dirname \$dlpath`~
14166 test -d \$dldir || mkdir -p \$dldir~
14167 $install_prog $dir/$dlname \$dldir/$dlname~
14168 chmod a+x \$dldir/$dlname~
14169 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14170 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14171 fi'
14172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14173 dlpath=$dir/\$dldll~
14174 $RM \$dlpath'
14175 shlibpath_overrides_runpath=yes
14176
14177 case $host_os in
14178 cygwin*)
14179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14181
14182 ;;
14183 mingw* | cegcc*)
14184 # MinGW DLLs use traditional 'lib' prefix
14185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14186 ;;
14187 pw32*)
14188 # pw32 DLLs use 'pw' prefix rather than 'lib'
14189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14190 ;;
14191 esac
14192 ;;
14193
14194 *)
14195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14196 ;;
14197 esac
14198 dynamic_linker='Win32 ld.exe'
14199 # FIXME: first we should search . and the directory the executable is in
14200 shlibpath_var=PATH
14201 ;;
14202
14203darwin* | rhapsody*)
14204 dynamic_linker="$host_os dyld"
14205 version_type=darwin
14206 need_lib_prefix=no
14207 need_version=no
14208 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14209 soname_spec='${libname}${release}${major}$shared_ext'
14210 shlibpath_overrides_runpath=yes
14211 shlibpath_var=DYLD_LIBRARY_PATH
14212 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14213
14214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14215 ;;
14216
14217dgux*)
14218 version_type=linux
14219 need_lib_prefix=no
14220 need_version=no
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14222 soname_spec='${libname}${release}${shared_ext}$major'
14223 shlibpath_var=LD_LIBRARY_PATH
14224 ;;
14225
14226freebsd* | dragonfly*)
14227 # DragonFly does not have aout. When/if they implement a new
14228 # versioning mechanism, adjust this.
14229 if test -x /usr/bin/objformat; then
14230 objformat=`/usr/bin/objformat`
14231 else
14232 case $host_os in
14233 freebsd[23].*) objformat=aout ;;
14234 *) objformat=elf ;;
14235 esac
14236 fi
14237 version_type=freebsd-$objformat
14238 case $version_type in
14239 freebsd-elf*)
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14241 need_version=no
14242 need_lib_prefix=no
14243 ;;
14244 freebsd-*)
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14246 need_version=yes
14247 ;;
14248 esac
14249 shlibpath_var=LD_LIBRARY_PATH
14250 case $host_os in
14251 freebsd2.*)
14252 shlibpath_overrides_runpath=yes
14253 ;;
14254 freebsd3.[01]* | freebsdelf3.[01]*)
14255 shlibpath_overrides_runpath=yes
14256 hardcode_into_libs=yes
14257 ;;
14258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14260 shlibpath_overrides_runpath=no
14261 hardcode_into_libs=yes
14262 ;;
14263 *) # from 4.6 on, and DragonFly
14264 shlibpath_overrides_runpath=yes
14265 hardcode_into_libs=yes
14266 ;;
14267 esac
14268 ;;
14269
5f520819
KY
14270haiku*)
14271 version_type=linux
14272 need_lib_prefix=no
14273 need_version=no
14274 dynamic_linker="$host_os runtime_loader"
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14276 soname_spec='${libname}${release}${shared_ext}$major'
14277 shlibpath_var=LIBRARY_PATH
14278 shlibpath_overrides_runpath=yes
14279 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14280 hardcode_into_libs=yes
14281 ;;
14282
14283hpux9* | hpux10* | hpux11*)
14284 # Give a soname corresponding to the major version so that dld.sl refuses to
14285 # link against other versions.
14286 version_type=sunos
14287 need_lib_prefix=no
14288 need_version=no
14289 case $host_cpu in
14290 ia64*)
14291 shrext_cmds='.so'
14292 hardcode_into_libs=yes
14293 dynamic_linker="$host_os dld.so"
14294 shlibpath_var=LD_LIBRARY_PATH
14295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14297 soname_spec='${libname}${release}${shared_ext}$major'
14298 if test "X$HPUX_IA64_MODE" = X32; then
14299 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14300 else
14301 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14302 fi
14303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14304 ;;
14305 hppa*64*)
14306 shrext_cmds='.sl'
14307 hardcode_into_libs=yes
14308 dynamic_linker="$host_os dld.sl"
14309 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14312 soname_spec='${libname}${release}${shared_ext}$major'
14313 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14315 ;;
14316 *)
14317 shrext_cmds='.sl'
14318 dynamic_linker="$host_os dld.sl"
14319 shlibpath_var=SHLIB_PATH
14320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 ;;
14324 esac
14325 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14326 postinstall_cmds='chmod 555 $lib'
14327 # or fails outright, so override atomically:
14328 install_override_mode=555
14329 ;;
14330
14331interix[3-9]*)
14332 version_type=linux
14333 need_lib_prefix=no
14334 need_version=no
14335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14336 soname_spec='${libname}${release}${shared_ext}$major'
14337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14338 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=no
14340 hardcode_into_libs=yes
14341 ;;
14342
14343irix5* | irix6* | nonstopux*)
14344 case $host_os in
14345 nonstopux*) version_type=nonstopux ;;
14346 *)
14347 if test "$lt_cv_prog_gnu_ld" = yes; then
14348 version_type=linux
14349 else
14350 version_type=irix
14351 fi ;;
14352 esac
14353 need_lib_prefix=no
14354 need_version=no
14355 soname_spec='${libname}${release}${shared_ext}$major'
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14357 case $host_os in
14358 irix5* | nonstopux*)
14359 libsuff= shlibsuff=
14360 ;;
14361 *)
14362 case $LD in # libtool.m4 will add one of these switches to LD
14363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14364 libsuff= shlibsuff= libmagic=32-bit;;
14365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14366 libsuff=32 shlibsuff=N32 libmagic=N32;;
14367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14369 *) libsuff= shlibsuff= libmagic=never-match;;
14370 esac
14371 ;;
14372 esac
14373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14374 shlibpath_overrides_runpath=no
14375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14377 hardcode_into_libs=yes
14378 ;;
14379
14380# No shared lib support for Linux oldld, aout, or coff.
14381linux*oldld* | linux*aout* | linux*coff*)
14382 dynamic_linker=no
14383 ;;
14384
14385# This must be Linux ELF.
e9085da5
MR
14386
14387# uclinux* changes (here and below) have been submitted to the libtool
14388# project, but have not yet been accepted: they are GCC-local changes
14389# for the time being. (See
14390# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
b1a3d2b7 14391linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
5f520819
KY
14392 version_type=linux
14393 need_lib_prefix=no
14394 need_version=no
14395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14396 soname_spec='${libname}${release}${shared_ext}$major'
14397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14398 shlibpath_var=LD_LIBRARY_PATH
14399 shlibpath_overrides_runpath=no
14400
14401 # Some binutils ld are patched to set DT_RUNPATH
22e05272 14402 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5f520819
KY
14403 $as_echo_n "(cached) " >&6
14404else
14405 lt_cv_shlibpath_overrides_runpath=no
14406 save_LDFLAGS=$LDFLAGS
14407 save_libdir=$libdir
14408 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14409 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411/* end confdefs.h. */
14412
14413int
14414main ()
14415{
14416
14417 ;
14418 return 0;
14419}
14420_ACEOF
14421if ac_fn_cxx_try_link "$LINENO"; then :
14422 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14423 lt_cv_shlibpath_overrides_runpath=yes
14424fi
14425fi
14426rm -f core conftest.err conftest.$ac_objext \
14427 conftest$ac_exeext conftest.$ac_ext
14428 LDFLAGS=$save_LDFLAGS
14429 libdir=$save_libdir
14430
14431fi
14432
14433 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14434
14435 # This implies no fast_install, which is unacceptable.
14436 # Some rework will be needed to allow for fast_install
14437 # before this can be enabled.
14438 hardcode_into_libs=yes
14439
14440 # Append ld.so.conf contents to the search path
14441 if test -f /etc/ld.so.conf; then
14442 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' ' '`
14443 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14444 fi
14445
14446 # We used to test for /lib/ld.so.1 and disable shared libraries on
14447 # powerpc, because MkLinux only supported shared libraries with the
14448 # GNU dynamic linker. Since this was broken with cross compilers,
14449 # most powerpc-linux boxes support dynamic linking these days and
14450 # people can always --disable-shared, the test was removed, and we
14451 # assume the GNU/Linux dynamic linker is in use.
14452 dynamic_linker='GNU/Linux ld.so'
14453 ;;
14454
14455netbsd*)
14456 version_type=sunos
14457 need_lib_prefix=no
14458 need_version=no
14459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14462 dynamic_linker='NetBSD (a.out) ld.so'
14463 else
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14465 soname_spec='${libname}${release}${shared_ext}$major'
14466 dynamic_linker='NetBSD ld.elf_so'
14467 fi
14468 shlibpath_var=LD_LIBRARY_PATH
14469 shlibpath_overrides_runpath=yes
14470 hardcode_into_libs=yes
14471 ;;
14472
14473newsos6)
14474 version_type=linux
14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 shlibpath_overrides_runpath=yes
14478 ;;
14479
14480*nto* | *qnx*)
14481 version_type=qnx
14482 need_lib_prefix=no
14483 need_version=no
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 shlibpath_overrides_runpath=no
14488 hardcode_into_libs=yes
14489 dynamic_linker='ldqnx.so'
14490 ;;
14491
14492openbsd*)
14493 version_type=sunos
14494 sys_lib_dlsearch_path_spec="/usr/lib"
14495 need_lib_prefix=no
14496 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14497 case $host_os in
14498 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14499 *) need_version=no ;;
14500 esac
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14503 shlibpath_var=LD_LIBRARY_PATH
14504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14505 case $host_os in
14506 openbsd2.[89] | openbsd2.[89].*)
14507 shlibpath_overrides_runpath=no
14508 ;;
14509 *)
14510 shlibpath_overrides_runpath=yes
14511 ;;
14512 esac
14513 else
14514 shlibpath_overrides_runpath=yes
14515 fi
14516 ;;
14517
14518os2*)
14519 libname_spec='$name'
14520 shrext_cmds=".dll"
14521 need_lib_prefix=no
14522 library_names_spec='$libname${shared_ext} $libname.a'
14523 dynamic_linker='OS/2 ld.exe'
14524 shlibpath_var=LIBPATH
14525 ;;
14526
14527osf3* | osf4* | osf5*)
14528 version_type=osf
14529 need_lib_prefix=no
14530 need_version=no
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 shlibpath_var=LD_LIBRARY_PATH
14534 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14535 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14536 ;;
14537
14538rdos*)
14539 dynamic_linker=no
14540 ;;
14541
14542solaris*)
14543 version_type=linux
14544 need_lib_prefix=no
14545 need_version=no
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547 soname_spec='${libname}${release}${shared_ext}$major'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 shlibpath_overrides_runpath=yes
14550 hardcode_into_libs=yes
14551 # ldd complains unless libraries are executable
14552 postinstall_cmds='chmod +x $lib'
14553 ;;
14554
14555sunos4*)
14556 version_type=sunos
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 shlibpath_overrides_runpath=yes
14561 if test "$with_gnu_ld" = yes; then
14562 need_lib_prefix=no
14563 fi
14564 need_version=yes
14565 ;;
14566
14567sysv4 | sysv4.3*)
14568 version_type=linux
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 shlibpath_var=LD_LIBRARY_PATH
14572 case $host_vendor in
14573 sni)
14574 shlibpath_overrides_runpath=no
14575 need_lib_prefix=no
14576 runpath_var=LD_RUN_PATH
14577 ;;
14578 siemens)
14579 need_lib_prefix=no
14580 ;;
14581 motorola)
14582 need_lib_prefix=no
14583 need_version=no
14584 shlibpath_overrides_runpath=no
14585 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14586 ;;
14587 esac
14588 ;;
14589
14590sysv4*MP*)
14591 if test -d /usr/nec ;then
14592 version_type=linux
14593 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14594 soname_spec='$libname${shared_ext}.$major'
14595 shlibpath_var=LD_LIBRARY_PATH
14596 fi
14597 ;;
14598
14599sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14600 version_type=freebsd-elf
14601 need_lib_prefix=no
14602 need_version=no
14603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14604 soname_spec='${libname}${release}${shared_ext}$major'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=yes
14607 hardcode_into_libs=yes
14608 if test "$with_gnu_ld" = yes; then
14609 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14610 else
14611 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14612 case $host_os in
14613 sco3.2v5*)
14614 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14615 ;;
14616 esac
14617 fi
14618 sys_lib_dlsearch_path_spec='/usr/lib'
14619 ;;
14620
14621tpf*)
14622 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14623 version_type=linux
14624 need_lib_prefix=no
14625 need_version=no
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath=no
14629 hardcode_into_libs=yes
14630 ;;
14631
14632uts4*)
14633 version_type=linux
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14635 soname_spec='${libname}${release}${shared_ext}$major'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 ;;
14638
14639*)
14640 dynamic_linker=no
14641 ;;
14642esac
14643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14644$as_echo "$dynamic_linker" >&6; }
14645test "$dynamic_linker" = no && can_build_shared=no
14646
14647variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14648if test "$GCC" = yes; then
14649 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14650fi
14651
14652if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14653 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14654fi
14655if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14656 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14657fi
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14697$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14698hardcode_action_CXX=
14699if test -n "$hardcode_libdir_flag_spec_CXX" ||
14700 test -n "$runpath_var_CXX" ||
14701 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14702
14703 # We can hardcode non-existent directories.
14704 if test "$hardcode_direct_CXX" != no &&
14705 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14706 # have to relink, otherwise we might link with an installed library
14707 # when we should be linking with a yet-to-be-installed one
14708 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14709 test "$hardcode_minus_L_CXX" != no; then
14710 # Linking always hardcodes the temporary library directory.
14711 hardcode_action_CXX=relink
14712 else
14713 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14714 hardcode_action_CXX=immediate
14715 fi
14716else
14717 # We cannot hardcode anything, or else we can only hardcode existing
14718 # directories.
14719 hardcode_action_CXX=unsupported
14720fi
14721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14722$as_echo "$hardcode_action_CXX" >&6; }
14723
14724if test "$hardcode_action_CXX" = relink ||
14725 test "$inherit_rpath_CXX" = yes; then
14726 # Fast installation is not supported
14727 enable_fast_install=no
14728elif test "$shlibpath_overrides_runpath" = yes ||
14729 test "$enable_shared" = no; then
14730 # Fast installation is not necessary
14731 enable_fast_install=needless
14732fi
14733
14734
14735
14736
14737
14738
14739
14740 fi # test -n "$compiler"
14741
14742 CC=$lt_save_CC
14743 LDCXX=$LD
14744 LD=$lt_save_LD
14745 GCC=$lt_save_GCC
14746 with_gnu_ld=$lt_save_with_gnu_ld
14747 lt_cv_path_LDCXX=$lt_cv_path_LD
14748 lt_cv_path_LD=$lt_save_path_LD
14749 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14750 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14751fi # test "$_lt_caught_CXX_error" != yes
14752
14753ac_ext=c
14754ac_cpp='$CPP $CPPFLAGS'
14755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14757ac_compiler_gnu=$ac_cv_c_compiler_gnu
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771 ac_config_commands="$ac_config_commands libtool"
14772
14773
14774
14775
14776# Only expand once:
14777
14778
14779# Forbid libtool to hardcode RPATH, because we want to be able to specify
14780# library search directory using LD_LIBRARY_PATH
14781hardcode_into_libs=no
14782
14783
14784
14785
14786
14787if test $enable_shared = yes; then
14788 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
14789 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
14790else
14791 link_offloadmic_host="-loffloadmic_host $LIBS"
14792 link_offloadmic_target="-loffloadmic_target $LIBS"
14793fi
14794
14795
14796
3c36aa6b
JJ
14797# Determine what GCC version number to use in filesystem paths.
14798
14799 get_gcc_base_ver="cat"
14800
14801# Check whether --with-gcc-major-version-only was given.
14802if test "${with_gcc_major_version_only+set}" = set; then :
14803 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 14804 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
14805 fi
14806
14807fi
14808
14809
14810
14811
5f520819
KY
14812# Must be last
14813cat >confcache <<\_ACEOF
14814# This file is a shell script that caches the results of configure
14815# tests run on this system so they can be shared between configure
14816# scripts and configure runs, see configure's option --config-cache.
14817# It is not useful on other systems. If it contains results you don't
14818# want to keep, you may remove or edit it.
14819#
14820# config.status only pays attention to the cache file if you give it
14821# the --recheck option to rerun configure.
14822#
14823# `ac_cv_env_foo' variables (set or unset) will be overridden when
14824# loading this file, other *unset* `ac_cv_foo' will be assigned the
14825# following values.
14826
14827_ACEOF
14828
14829# The following way of writing the cache mishandles newlines in values,
14830# but we know of no workaround that is simple, portable, and efficient.
14831# So, we kill variables containing newlines.
14832# Ultrix sh set writes to stderr and can't be redirected directly,
14833# and sets the high bit in the cache file unless we assign to the vars.
14834(
14835 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14836 eval ac_val=\$$ac_var
14837 case $ac_val in #(
14838 *${as_nl}*)
14839 case $ac_var in #(
14840 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14841$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14842 esac
14843 case $ac_var in #(
14844 _ | IFS | as_nl) ;; #(
14845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14846 *) { eval $ac_var=; unset $ac_var;} ;;
14847 esac ;;
14848 esac
14849 done
14850
14851 (set) 2>&1 |
14852 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14853 *${as_nl}ac_space=\ *)
14854 # `set' does not quote correctly, so add quotes: double-quote
14855 # substitution turns \\\\ into \\, and sed turns \\ into \.
14856 sed -n \
14857 "s/'/'\\\\''/g;
14858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14859 ;; #(
14860 *)
14861 # `set' quotes correctly as required by POSIX, so do not add quotes.
14862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14863 ;;
14864 esac |
14865 sort
14866) |
14867 sed '
14868 /^ac_cv_env_/b end
14869 t clear
14870 :clear
14871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14872 t end
14873 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14874 :end' >>confcache
14875if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14876 if test -w "$cache_file"; then
22e05272 14877 if test "x$cache_file" != "x/dev/null"; then
5f520819
KY
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14879$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
14880 if test ! -f "$cache_file" || test -h "$cache_file"; then
14881 cat confcache >"$cache_file"
14882 else
14883 case $cache_file in #(
14884 */* | ?:*)
14885 mv -f confcache "$cache_file"$$ &&
14886 mv -f "$cache_file"$$ "$cache_file" ;; #(
14887 *)
14888 mv -f confcache "$cache_file" ;;
14889 esac
14890 fi
14891 fi
5f520819
KY
14892 else
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14894$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14895 fi
14896fi
14897rm -f confcache
14898
14899test "x$prefix" = xNONE && prefix=$ac_default_prefix
14900# Let make expand exec_prefix.
14901test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14902
14903# Transform confdefs.h into DEFS.
14904# Protect against shell expansion while executing Makefile rules.
14905# Protect against Makefile macro expansion.
14906#
14907# If the first sed substitution is executed (which looks for macros that
14908# take arguments), then branch to the quote section. Otherwise,
14909# look for a macro that doesn't take arguments.
14910ac_script='
14911:mline
14912/\\$/{
14913 N
14914 s,\\\n,,
14915 b mline
14916}
14917t clear
14918:clear
14919s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14920t quote
14921s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14922t quote
14923b any
14924:quote
14925s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14926s/\[/\\&/g
14927s/\]/\\&/g
14928s/\$/$$/g
14929H
14930:any
14931${
14932 g
14933 s/^\n//
14934 s/\n/ /g
14935 p
14936}
14937'
14938DEFS=`sed -n "$ac_script" confdefs.h`
14939
14940
14941ac_libobjs=
14942ac_ltlibobjs=
22e05272 14943U=
5f520819
KY
14944for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14945 # 1. Remove the extension, and $U if already installed.
14946 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14947 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14948 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14949 # will be set to the directory where LIBOBJS objects are built.
14950 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14951 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14952done
14953LIBOBJS=$ac_libobjs
14954
14955LTLIBOBJS=$ac_ltlibobjs
14956
14957
22e05272
JM
14958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14959$as_echo_n "checking that generated files are newer than configure... " >&6; }
14960 if test -n "$am_sleep_pid"; then
14961 # Hide warnings about reused PIDs.
14962 wait $am_sleep_pid 2>/dev/null
14963 fi
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14965$as_echo "done" >&6; }
5f520819
KY
14966 if test -n "$EXEEXT"; then
14967 am__EXEEXT_TRUE=
14968 am__EXEEXT_FALSE='#'
14969else
14970 am__EXEEXT_TRUE='#'
14971 am__EXEEXT_FALSE=
14972fi
14973
14974if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 14975 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5f520819
KY
14976Usually this means the macro was only invoked conditionally." "$LINENO" 5
14977fi
14978if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 14979 as_fn_error $? "conditional \"AMDEP\" was never defined.
5f520819
KY
14980Usually this means the macro was only invoked conditionally." "$LINENO" 5
14981fi
14982if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 14983 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5f520819
KY
14984Usually this means the macro was only invoked conditionally." "$LINENO" 5
14985fi
14986if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22e05272 14987 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5f520819
KY
14988Usually this means the macro was only invoked conditionally." "$LINENO" 5
14989fi
14990if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
22e05272 14991 as_fn_error $? "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
5f520819
KY
14992Usually this means the macro was only invoked conditionally." "$LINENO" 5
14993fi
14994
22e05272 14995: "${CONFIG_STATUS=./config.status}"
5f520819
KY
14996ac_write_fail=0
14997ac_clean_files_save=$ac_clean_files
14998ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14999{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15000$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15001as_write_fail=0
15002cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15003#! $SHELL
15004# Generated by $as_me.
15005# Run this file to recreate the current configuration.
15006# Compiler output produced by configure, useful for debugging
15007# configure, is in config.log if it exists.
15008
15009debug=false
15010ac_cs_recheck=false
15011ac_cs_silent=false
15012
15013SHELL=\${CONFIG_SHELL-$SHELL}
15014export SHELL
15015_ASEOF
15016cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15017## -------------------- ##
15018## M4sh Initialization. ##
15019## -------------------- ##
15020
15021# Be more Bourne compatible
15022DUALCASE=1; export DUALCASE # for MKS sh
15023if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15024 emulate sh
15025 NULLCMD=:
15026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15027 # is contrary to our usage. Disable this feature.
15028 alias -g '${1+"$@"}'='"$@"'
15029 setopt NO_GLOB_SUBST
15030else
15031 case `(set -o) 2>/dev/null` in #(
15032 *posix*) :
15033 set -o posix ;; #(
15034 *) :
15035 ;;
15036esac
15037fi
15038
15039
15040as_nl='
15041'
15042export as_nl
15043# Printing a long string crashes Solaris 7 /usr/bin/printf.
15044as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15045as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15046as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15047# Prefer a ksh shell builtin over an external printf program on Solaris,
15048# but without wasting forks for bash or zsh.
15049if test -z "$BASH_VERSION$ZSH_VERSION" \
15050 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15051 as_echo='print -r --'
15052 as_echo_n='print -rn --'
15053elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15054 as_echo='printf %s\n'
15055 as_echo_n='printf %s'
15056else
15057 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15058 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15059 as_echo_n='/usr/ucb/echo -n'
15060 else
15061 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15062 as_echo_n_body='eval
15063 arg=$1;
15064 case $arg in #(
15065 *"$as_nl"*)
15066 expr "X$arg" : "X\\(.*\\)$as_nl";
15067 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15068 esac;
15069 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15070 '
15071 export as_echo_n_body
15072 as_echo_n='sh -c $as_echo_n_body as_echo'
15073 fi
15074 export as_echo_body
15075 as_echo='sh -c $as_echo_body as_echo'
15076fi
15077
15078# The user is always right.
15079if test "${PATH_SEPARATOR+set}" != set; then
15080 PATH_SEPARATOR=:
15081 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15082 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15083 PATH_SEPARATOR=';'
15084 }
15085fi
15086
15087
15088# IFS
15089# We need space, tab and new line, in precisely that order. Quoting is
15090# there to prevent editors from complaining about space-tab.
15091# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15092# splitting by setting IFS to empty value.)
15093IFS=" "" $as_nl"
15094
15095# Find who we are. Look in the path if we contain no directory separator.
22e05272 15096as_myself=
5f520819
KY
15097case $0 in #((
15098 *[\\/]* ) as_myself=$0 ;;
15099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15100for as_dir in $PATH
15101do
15102 IFS=$as_save_IFS
15103 test -z "$as_dir" && as_dir=.
15104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15105 done
15106IFS=$as_save_IFS
15107
15108 ;;
15109esac
15110# We did not find ourselves, most probably we were run as `sh COMMAND'
15111# in which case we are not to be found in the path.
15112if test "x$as_myself" = x; then
15113 as_myself=$0
15114fi
15115if test ! -f "$as_myself"; then
15116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15117 exit 1
15118fi
15119
15120# Unset variables that we do not need and which cause bugs (e.g. in
15121# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15122# suppresses any "Segmentation fault" message there. '((' could
15123# trigger a bug in pdksh 5.2.14.
15124for as_var in BASH_ENV ENV MAIL MAILPATH
15125do eval test x\${$as_var+set} = xset \
15126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15127done
15128PS1='$ '
15129PS2='> '
15130PS4='+ '
15131
15132# NLS nuisances.
15133LC_ALL=C
15134export LC_ALL
15135LANGUAGE=C
15136export LANGUAGE
15137
15138# CDPATH.
15139(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15140
15141
22e05272
JM
15142# as_fn_error STATUS ERROR [LINENO LOG_FD]
15143# ----------------------------------------
5f520819
KY
15144# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15145# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15146# script with STATUS, using 1 if that was 0.
5f520819
KY
15147as_fn_error ()
15148{
22e05272
JM
15149 as_status=$1; test $as_status -eq 0 && as_status=1
15150 if test "$4"; then
15151 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15152 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5f520819 15153 fi
22e05272 15154 $as_echo "$as_me: error: $2" >&2
5f520819
KY
15155 as_fn_exit $as_status
15156} # as_fn_error
15157
15158
15159# as_fn_set_status STATUS
15160# -----------------------
15161# Set $? to STATUS, without forking.
15162as_fn_set_status ()
15163{
15164 return $1
15165} # as_fn_set_status
15166
15167# as_fn_exit STATUS
15168# -----------------
15169# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15170as_fn_exit ()
15171{
15172 set +e
15173 as_fn_set_status $1
15174 exit $1
15175} # as_fn_exit
15176
15177# as_fn_unset VAR
15178# ---------------
15179# Portably unset VAR.
15180as_fn_unset ()
15181{
15182 { eval $1=; unset $1;}
15183}
15184as_unset=as_fn_unset
15185# as_fn_append VAR VALUE
15186# ----------------------
15187# Append the text in VALUE to the end of the definition contained in VAR. Take
15188# advantage of any shell optimizations that allow amortized linear growth over
15189# repeated appends, instead of the typical quadratic growth present in naive
15190# implementations.
15191if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15192 eval 'as_fn_append ()
15193 {
15194 eval $1+=\$2
15195 }'
15196else
15197 as_fn_append ()
15198 {
15199 eval $1=\$$1\$2
15200 }
15201fi # as_fn_append
15202
15203# as_fn_arith ARG...
15204# ------------------
15205# Perform arithmetic evaluation on the ARGs, and store the result in the
15206# global $as_val. Take advantage of shells that can avoid forks. The arguments
15207# must be portable across $(()) and expr.
15208if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15209 eval 'as_fn_arith ()
15210 {
15211 as_val=$(( $* ))
15212 }'
15213else
15214 as_fn_arith ()
15215 {
15216 as_val=`expr "$@" || test $? -eq 1`
15217 }
15218fi # as_fn_arith
15219
15220
15221if expr a : '\(a\)' >/dev/null 2>&1 &&
15222 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15223 as_expr=expr
15224else
15225 as_expr=false
15226fi
15227
15228if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15229 as_basename=basename
15230else
15231 as_basename=false
15232fi
15233
15234if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15235 as_dirname=dirname
15236else
15237 as_dirname=false
15238fi
15239
15240as_me=`$as_basename -- "$0" ||
15241$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15242 X"$0" : 'X\(//\)$' \| \
15243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15244$as_echo X/"$0" |
15245 sed '/^.*\/\([^/][^/]*\)\/*$/{
15246 s//\1/
15247 q
15248 }
15249 /^X\/\(\/\/\)$/{
15250 s//\1/
15251 q
15252 }
15253 /^X\/\(\/\).*/{
15254 s//\1/
15255 q
15256 }
15257 s/.*/./; q'`
15258
15259# Avoid depending upon Character Ranges.
15260as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15261as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15262as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15263as_cr_digits='0123456789'
15264as_cr_alnum=$as_cr_Letters$as_cr_digits
15265
15266ECHO_C= ECHO_N= ECHO_T=
15267case `echo -n x` in #(((((
15268-n*)
15269 case `echo 'xy\c'` in
15270 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15271 xy) ECHO_C='\c';;
15272 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15273 ECHO_T=' ';;
15274 esac;;
15275*)
15276 ECHO_N='-n';;
15277esac
15278
15279rm -f conf$$ conf$$.exe conf$$.file
15280if test -d conf$$.dir; then
15281 rm -f conf$$.dir/conf$$.file
15282else
15283 rm -f conf$$.dir
15284 mkdir conf$$.dir 2>/dev/null
15285fi
15286if (echo >conf$$.file) 2>/dev/null; then
15287 if ln -s conf$$.file conf$$ 2>/dev/null; then
15288 as_ln_s='ln -s'
15289 # ... but there are two gotchas:
15290 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15291 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15292 # In both cases, we have to default to `cp -pR'.
5f520819 15293 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15294 as_ln_s='cp -pR'
5f520819
KY
15295 elif ln conf$$.file conf$$ 2>/dev/null; then
15296 as_ln_s=ln
15297 else
22e05272 15298 as_ln_s='cp -pR'
5f520819
KY
15299 fi
15300else
22e05272 15301 as_ln_s='cp -pR'
5f520819
KY
15302fi
15303rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15304rmdir conf$$.dir 2>/dev/null
15305
15306
15307# as_fn_mkdir_p
15308# -------------
15309# Create "$as_dir" as a directory, including parents if necessary.
15310as_fn_mkdir_p ()
15311{
15312
15313 case $as_dir in #(
15314 -*) as_dir=./$as_dir;;
15315 esac
15316 test -d "$as_dir" || eval $as_mkdir_p || {
15317 as_dirs=
15318 while :; do
15319 case $as_dir in #(
15320 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15321 *) as_qdir=$as_dir;;
15322 esac
15323 as_dirs="'$as_qdir' $as_dirs"
15324 as_dir=`$as_dirname -- "$as_dir" ||
15325$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15326 X"$as_dir" : 'X\(//\)[^/]' \| \
15327 X"$as_dir" : 'X\(//\)$' \| \
15328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15329$as_echo X"$as_dir" |
15330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15331 s//\1/
15332 q
15333 }
15334 /^X\(\/\/\)[^/].*/{
15335 s//\1/
15336 q
15337 }
15338 /^X\(\/\/\)$/{
15339 s//\1/
15340 q
15341 }
15342 /^X\(\/\).*/{
15343 s//\1/
15344 q
15345 }
15346 s/.*/./; q'`
15347 test -d "$as_dir" && break
15348 done
15349 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15350 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5f520819
KY
15351
15352
15353} # as_fn_mkdir_p
15354if mkdir -p . 2>/dev/null; then
15355 as_mkdir_p='mkdir -p "$as_dir"'
15356else
15357 test -d ./-p && rmdir ./-p
15358 as_mkdir_p=false
15359fi
15360
22e05272
JM
15361
15362# as_fn_executable_p FILE
15363# -----------------------
15364# Test if FILE is an executable regular file.
15365as_fn_executable_p ()
15366{
15367 test -f "$1" && test -x "$1"
15368} # as_fn_executable_p
15369as_test_x='test -x'
15370as_executable_p=as_fn_executable_p
5f520819
KY
15371
15372# Sed expression to map a string onto a valid CPP name.
15373as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15374
15375# Sed expression to map a string onto a valid variable name.
15376as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15377
15378
15379exec 6>&1
15380## ----------------------------------- ##
15381## Main body of $CONFIG_STATUS script. ##
15382## ----------------------------------- ##
15383_ASEOF
15384test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15385
15386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15387# Save the log message, to keep $0 and so on meaningful, and to
15388# report actual input values of CONFIG_FILES etc. instead of their
15389# values after options handling.
15390ac_log="
15391This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
22e05272 15392generated by GNU Autoconf 2.69. Invocation command line was
5f520819
KY
15393
15394 CONFIG_FILES = $CONFIG_FILES
15395 CONFIG_HEADERS = $CONFIG_HEADERS
15396 CONFIG_LINKS = $CONFIG_LINKS
15397 CONFIG_COMMANDS = $CONFIG_COMMANDS
15398 $ $0 $@
15399
15400on `(hostname || uname -n) 2>/dev/null | sed 1q`
15401"
15402
15403_ACEOF
15404
15405case $ac_config_files in *"
15406"*) set x $ac_config_files; shift; ac_config_files=$*;;
15407esac
15408
15409
15410
15411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15412# Files that config.status was made for.
15413config_files="$ac_config_files"
15414config_commands="$ac_config_commands"
15415
15416_ACEOF
15417
15418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15419ac_cs_usage="\
15420\`$as_me' instantiates files and other configuration actions
15421from templates according to the current configuration. Unless the files
15422and actions are specified as TAGs, all are instantiated by default.
15423
15424Usage: $0 [OPTION]... [TAG]...
15425
15426 -h, --help print this help, then exit
15427 -V, --version print version number and configuration settings, then exit
22e05272 15428 --config print configuration, then exit
5f520819
KY
15429 -q, --quiet, --silent
15430 do not print progress messages
15431 -d, --debug don't remove temporary files
15432 --recheck update $as_me by reconfiguring in the same conditions
15433 --file=FILE[:TEMPLATE]
15434 instantiate the configuration file FILE
15435
15436Configuration files:
15437$config_files
15438
15439Configuration commands:
15440$config_commands
15441
15442Report bugs to the package provider."
15443
15444_ACEOF
15445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 15446ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5f520819
KY
15447ac_cs_version="\\
15448MIC Offload Runtime Library config.status 1.0
22e05272
JM
15449configured by $0, generated by GNU Autoconf 2.69,
15450 with options \\"\$ac_cs_config\\"
5f520819 15451
22e05272 15452Copyright (C) 2012 Free Software Foundation, Inc.
5f520819
KY
15453This config.status script is free software; the Free Software Foundation
15454gives unlimited permission to copy, distribute and modify it."
15455
15456ac_pwd='$ac_pwd'
15457srcdir='$srcdir'
15458INSTALL='$INSTALL'
15459MKDIR_P='$MKDIR_P'
15460AWK='$AWK'
15461test -n "\$AWK" || AWK=awk
15462_ACEOF
15463
15464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15465# The default lists apply if the user does not specify any file.
15466ac_need_defaults=:
15467while test $# != 0
15468do
15469 case $1 in
22e05272 15470 --*=?*)
5f520819
KY
15471 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15472 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15473 ac_shift=:
15474 ;;
22e05272
JM
15475 --*=)
15476 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15477 ac_optarg=
15478 ac_shift=:
15479 ;;
5f520819
KY
15480 *)
15481 ac_option=$1
15482 ac_optarg=$2
15483 ac_shift=shift
15484 ;;
15485 esac
15486
15487 case $ac_option in
15488 # Handling of the options.
15489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15490 ac_cs_recheck=: ;;
15491 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15492 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
15493 --config | --confi | --conf | --con | --co | --c )
15494 $as_echo "$ac_cs_config"; exit ;;
5f520819
KY
15495 --debug | --debu | --deb | --de | --d | -d )
15496 debug=: ;;
15497 --file | --fil | --fi | --f )
15498 $ac_shift
15499 case $ac_optarg in
15500 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 15501 '') as_fn_error $? "missing file argument" ;;
5f520819
KY
15502 esac
15503 as_fn_append CONFIG_FILES " '$ac_optarg'"
15504 ac_need_defaults=false;;
15505 --he | --h | --help | --hel | -h )
15506 $as_echo "$ac_cs_usage"; exit ;;
15507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15508 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15509 ac_cs_silent=: ;;
15510
15511 # This is an error.
22e05272 15512 -*) as_fn_error $? "unrecognized option: \`$1'
5f520819
KY
15513Try \`$0 --help' for more information." ;;
15514
15515 *) as_fn_append ac_config_targets " $1"
15516 ac_need_defaults=false ;;
15517
15518 esac
15519 shift
15520done
15521
15522ac_configure_extra_args=
15523
15524if $ac_cs_silent; then
15525 exec 6>/dev/null
15526 ac_configure_extra_args="$ac_configure_extra_args --silent"
15527fi
15528
15529_ACEOF
15530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15531if \$ac_cs_recheck; then
22e05272 15532 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5f520819
KY
15533 shift
15534 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15535 CONFIG_SHELL='$SHELL'
15536 export CONFIG_SHELL
15537 exec "\$@"
15538fi
15539
15540_ACEOF
15541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15542exec 5>>config.log
15543{
15544 echo
15545 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15546## Running $as_me. ##
15547_ASBOX
15548 $as_echo "$ac_log"
15549} >&5
15550
15551_ACEOF
15552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15553#
15554# INIT-COMMANDS
15555#
15556AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15557
15558srcdir="$srcdir"
15559host="$host"
15560target="$target"
15561with_multisubdir="$with_multisubdir"
15562with_multisrctop="$with_multisrctop"
15563with_target_subdir="$with_target_subdir"
15564ac_configure_args="${multilib_arg} ${ac_configure_args}"
15565multi_basedir="$multi_basedir"
15566CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15567CC="$CC"
15568CXX="$CXX"
15569GFORTRAN="$GFORTRAN"
22e05272 15570GDC="$GDC"
5f520819
KY
15571
15572
15573# The HP-UX ksh and POSIX shell print the target directory to stdout
15574# if CDPATH is set.
15575(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15576
15577sed_quote_subst='$sed_quote_subst'
15578double_quote_subst='$double_quote_subst'
15579delay_variable_subst='$delay_variable_subst'
15580macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15581macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15582enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15583enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15584pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15585enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15586SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15587ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15588host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15589host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15590host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15591build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15592build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15593build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15594SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15595Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15596GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15597EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15598FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15599LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15600NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15601LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15602max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15603ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15604exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15605lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15606lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15607lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15608reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15609reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15610OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15611deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15612file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15613AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15614AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15615STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15616RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15617old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15618old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15619old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15620lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15621CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15622CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15623compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15624GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15625lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15626lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15627lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15628lt_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"`'
15629objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15630MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15631lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15632lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15633lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15634lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15635lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15636need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15637DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15638NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15639LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15640OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15641OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15642libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15643shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15644extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15645archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15646enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15647export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15648whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15649compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15650old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15651old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15652archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15653archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15654module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15655module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15656with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15657allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15658no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15659hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15660hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15661hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15662hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15663hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15664hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15665hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15666hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15667inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15668link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15669fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15670always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15671export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15672exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15673include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15674prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15675file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15676variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15677need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15678need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15679version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15680runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15681shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15682shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15683libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15684library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15685soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15686install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15687postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15688postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15689finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15690finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15691hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15692sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15693sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15694hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15695enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15696enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15697enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15698old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15699striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15700compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15701predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15702postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15703predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15704postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15705compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15706LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15707reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15708reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15709old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15710compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15711GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15712lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15713lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15714lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15715lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15716lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15717archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15718enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15719export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15720whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15721compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15722old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15723old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15724archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15725archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15726module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15727module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15728with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15729allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15730no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15731hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15732hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15733hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15734hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15735hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15736hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15737hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15738hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15739inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15740link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15741fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15742always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15743export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15744exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15745include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15746prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15747file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15748hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15749compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15750predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15751postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15752predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15753postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15754compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15755
15756LTCC='$LTCC'
15757LTCFLAGS='$LTCFLAGS'
15758compiler='$compiler_DEFAULT'
15759
15760# A function that is used when there is no print builtin or printf.
15761func_fallback_echo ()
15762{
15763 eval 'cat <<_LTECHO_EOF
15764\$1
15765_LTECHO_EOF'
15766}
15767
15768# Quote evaled strings.
15769for var in SHELL \
15770ECHO \
15771SED \
15772GREP \
15773EGREP \
15774FGREP \
15775LD \
15776NM \
15777LN_S \
15778lt_SP2NL \
15779lt_NL2SP \
15780reload_flag \
15781OBJDUMP \
15782deplibs_check_method \
15783file_magic_cmd \
15784AR \
15785AR_FLAGS \
15786STRIP \
15787RANLIB \
15788CC \
15789CFLAGS \
15790compiler \
15791lt_cv_sys_global_symbol_pipe \
15792lt_cv_sys_global_symbol_to_cdecl \
15793lt_cv_sys_global_symbol_to_c_name_address \
15794lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15795lt_prog_compiler_no_builtin_flag \
15796lt_prog_compiler_wl \
15797lt_prog_compiler_pic \
15798lt_prog_compiler_static \
15799lt_cv_prog_compiler_c_o \
15800need_locks \
15801DSYMUTIL \
15802NMEDIT \
15803LIPO \
15804OTOOL \
15805OTOOL64 \
15806shrext_cmds \
15807export_dynamic_flag_spec \
15808whole_archive_flag_spec \
15809compiler_needs_object \
15810with_gnu_ld \
15811allow_undefined_flag \
15812no_undefined_flag \
15813hardcode_libdir_flag_spec \
15814hardcode_libdir_flag_spec_ld \
15815hardcode_libdir_separator \
15816fix_srcfile_path \
15817exclude_expsyms \
15818include_expsyms \
15819file_list_spec \
15820variables_saved_for_relink \
15821libname_spec \
15822library_names_spec \
15823soname_spec \
15824install_override_mode \
15825finish_eval \
15826old_striplib \
15827striplib \
15828compiler_lib_search_dirs \
15829predep_objects \
15830postdep_objects \
15831predeps \
15832postdeps \
15833compiler_lib_search_path \
15834LD_CXX \
15835reload_flag_CXX \
15836compiler_CXX \
15837lt_prog_compiler_no_builtin_flag_CXX \
15838lt_prog_compiler_wl_CXX \
15839lt_prog_compiler_pic_CXX \
15840lt_prog_compiler_static_CXX \
15841lt_cv_prog_compiler_c_o_CXX \
15842export_dynamic_flag_spec_CXX \
15843whole_archive_flag_spec_CXX \
15844compiler_needs_object_CXX \
15845with_gnu_ld_CXX \
15846allow_undefined_flag_CXX \
15847no_undefined_flag_CXX \
15848hardcode_libdir_flag_spec_CXX \
15849hardcode_libdir_flag_spec_ld_CXX \
15850hardcode_libdir_separator_CXX \
15851fix_srcfile_path_CXX \
15852exclude_expsyms_CXX \
15853include_expsyms_CXX \
15854file_list_spec_CXX \
15855compiler_lib_search_dirs_CXX \
15856predep_objects_CXX \
15857postdep_objects_CXX \
15858predeps_CXX \
15859postdeps_CXX \
15860compiler_lib_search_path_CXX; do
15861 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15862 *[\\\\\\\`\\"\\\$]*)
15863 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15864 ;;
15865 *)
15866 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15867 ;;
15868 esac
15869done
15870
15871# Double-quote double-evaled strings.
15872for var in reload_cmds \
15873old_postinstall_cmds \
15874old_postuninstall_cmds \
15875old_archive_cmds \
15876extract_expsyms_cmds \
15877old_archive_from_new_cmds \
15878old_archive_from_expsyms_cmds \
15879archive_cmds \
15880archive_expsym_cmds \
15881module_cmds \
15882module_expsym_cmds \
15883export_symbols_cmds \
15884prelink_cmds \
15885postinstall_cmds \
15886postuninstall_cmds \
15887finish_cmds \
15888sys_lib_search_path_spec \
15889sys_lib_dlsearch_path_spec \
15890reload_cmds_CXX \
15891old_archive_cmds_CXX \
15892old_archive_from_new_cmds_CXX \
15893old_archive_from_expsyms_cmds_CXX \
15894archive_cmds_CXX \
15895archive_expsym_cmds_CXX \
15896module_cmds_CXX \
15897module_expsym_cmds_CXX \
15898export_symbols_cmds_CXX \
15899prelink_cmds_CXX; do
15900 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15901 *[\\\\\\\`\\"\\\$]*)
15902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15903 ;;
15904 *)
15905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15906 ;;
15907 esac
15908done
15909
15910ac_aux_dir='$ac_aux_dir'
15911xsi_shell='$xsi_shell'
15912lt_shell_append='$lt_shell_append'
15913
15914# See if we are running on zsh, and set the options which allow our
15915# commands through without removal of \ escapes INIT.
15916if test -n "\${ZSH_VERSION+set}" ; then
15917 setopt NO_GLOB_SUBST
15918fi
15919
15920
15921 PACKAGE='$PACKAGE'
15922 VERSION='$VERSION'
15923 TIMESTAMP='$TIMESTAMP'
15924 RM='$RM'
15925 ofile='$ofile'
15926
15927
15928
15929
15930
15931
15932_ACEOF
15933
15934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15935
15936# Handling of arguments.
15937for ac_config_target in $ac_config_targets
15938do
15939 case $ac_config_target in
15940 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15941 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15942 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
15943 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
15944 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15945 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15946
22e05272 15947 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5f520819
KY
15948 esac
15949done
15950
15951
15952# If the user did not use the arguments to specify the items to instantiate,
15953# then the envvar interface is used. Set only those that are not.
15954# We use the long form for the default assignment because of an extremely
15955# bizarre bug on SunOS 4.1.3.
15956if $ac_need_defaults; then
15957 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15958 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15959fi
15960
15961# Have a temporary directory for convenience. Make it in the build tree
15962# simply because there is no reason against having it here, and in addition,
15963# creating and moving files from /tmp can sometimes cause problems.
15964# Hook for its removal unless debugging.
15965# Note that there is a small window in which the directory will not be cleaned:
15966# after its creation but before its name has been assigned to `$tmp'.
15967$debug ||
15968{
22e05272 15969 tmp= ac_tmp=
5f520819 15970 trap 'exit_status=$?
22e05272
JM
15971 : "${ac_tmp:=$tmp}"
15972 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5f520819
KY
15973' 0
15974 trap 'as_fn_exit 1' 1 2 13 15
15975}
15976# Create a (secure) tmp directory for tmp files.
15977
15978{
15979 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 15980 test -d "$tmp"
5f520819
KY
15981} ||
15982{
15983 tmp=./conf$$-$RANDOM
15984 (umask 077 && mkdir "$tmp")
22e05272
JM
15985} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15986ac_tmp=$tmp
5f520819
KY
15987
15988# Set up the scripts for CONFIG_FILES section.
15989# No need to generate them if there are no CONFIG_FILES.
15990# This happens for instance with `./config.status config.h'.
15991if test -n "$CONFIG_FILES"; then
15992
15993
15994ac_cr=`echo X | tr X '\015'`
15995# On cygwin, bash can eat \r inside `` if the user requested igncr.
15996# But we know of no other shell where ac_cr would be empty at this
15997# point, so we can use a bashism as a fallback.
15998if test "x$ac_cr" = x; then
15999 eval ac_cr=\$\'\\r\'
16000fi
16001ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16002if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16003 ac_cs_awk_cr='\\r'
5f520819
KY
16004else
16005 ac_cs_awk_cr=$ac_cr
16006fi
16007
22e05272 16008echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5f520819
KY
16009_ACEOF
16010
16011
16012{
16013 echo "cat >conf$$subs.awk <<_ACEOF" &&
16014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16015 echo "_ACEOF"
16016} >conf$$subs.sh ||
22e05272
JM
16017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16018ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5f520819
KY
16019ac_delim='%!_!# '
16020for ac_last_try in false false false false false :; do
16021 . ./conf$$subs.sh ||
22e05272 16022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5f520819
KY
16023
16024 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16025 if test $ac_delim_n = $ac_delim_num; then
16026 break
16027 elif $ac_last_try; then
22e05272 16028 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5f520819
KY
16029 else
16030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16031 fi
16032done
16033rm -f conf$$subs.sh
16034
16035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16036cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5f520819
KY
16037_ACEOF
16038sed -n '
16039h
16040s/^/S["/; s/!.*/"]=/
16041p
16042g
16043s/^[^!]*!//
16044:repl
16045t repl
16046s/'"$ac_delim"'$//
16047t delim
16048:nl
16049h
22e05272 16050s/\(.\{148\}\)..*/\1/
5f520819
KY
16051t more1
16052s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16053p
16054n
16055b repl
16056:more1
16057s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16058p
16059g
16060s/.\{148\}//
16061t nl
16062:delim
16063h
22e05272 16064s/\(.\{148\}\)..*/\1/
5f520819
KY
16065t more2
16066s/["\\]/\\&/g; s/^/"/; s/$/"/
16067p
16068b
16069:more2
16070s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16071p
16072g
16073s/.\{148\}//
16074t delim
16075' <conf$$subs.awk | sed '
16076/^[^""]/{
16077 N
16078 s/\n//
16079}
16080' >>$CONFIG_STATUS || ac_write_fail=1
16081rm -f conf$$subs.awk
16082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16083_ACAWK
22e05272 16084cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5f520819
KY
16085 for (key in S) S_is_set[key] = 1
16086 FS = "\a"
16087
16088}
16089{
16090 line = $ 0
16091 nfields = split(line, field, "@")
16092 substed = 0
16093 len = length(field[1])
16094 for (i = 2; i < nfields; i++) {
16095 key = field[i]
16096 keylen = length(key)
16097 if (S_is_set[key]) {
16098 value = S[key]
16099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16100 len += length(value) + length(field[++i])
16101 substed = 1
16102 } else
16103 len += 1 + keylen
16104 }
16105
16106 print line
16107}
16108
16109_ACAWK
16110_ACEOF
16111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16112if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16113 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16114else
16115 cat
22e05272
JM
16116fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16117 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5f520819
KY
16118_ACEOF
16119
22e05272
JM
16120# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16121# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5f520819
KY
16122# trailing colons and then remove the whole line if VPATH becomes empty
16123# (actually we leave an empty line to preserve line numbers).
16124if test "x$srcdir" = x.; then
22e05272
JM
16125 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16126h
16127s///
16128s/^/:/
16129s/[ ]*$/:/
16130s/:\$(srcdir):/:/g
16131s/:\${srcdir}:/:/g
16132s/:@srcdir@:/:/g
16133s/^:*//
5f520819 16134s/:*$//
22e05272
JM
16135x
16136s/\(=[ ]*\).*/\1/
16137G
16138s/\n//
5f520819
KY
16139s/^[^=]*=[ ]*$//
16140}'
16141fi
16142
16143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16144fi # test -n "$CONFIG_FILES"
16145
16146
16147eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16148shift
16149for ac_tag
16150do
16151 case $ac_tag in
16152 :[FHLC]) ac_mode=$ac_tag; continue;;
16153 esac
16154 case $ac_mode$ac_tag in
16155 :[FHL]*:*);;
22e05272 16156 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5f520819
KY
16157 :[FH]-) ac_tag=-:-;;
16158 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16159 esac
16160 ac_save_IFS=$IFS
16161 IFS=:
16162 set x $ac_tag
16163 IFS=$ac_save_IFS
16164 shift
16165 ac_file=$1
16166 shift
16167
16168 case $ac_mode in
16169 :L) ac_source=$1;;
16170 :[FH])
16171 ac_file_inputs=
16172 for ac_f
16173 do
16174 case $ac_f in
22e05272 16175 -) ac_f="$ac_tmp/stdin";;
5f520819
KY
16176 *) # Look for the file first in the build tree, then in the source tree
16177 # (if the path is not absolute). The absolute path cannot be DOS-style,
16178 # because $ac_f cannot contain `:'.
16179 test -f "$ac_f" ||
16180 case $ac_f in
16181 [\\/$]*) false;;
16182 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16183 esac ||
22e05272 16184 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5f520819
KY
16185 esac
16186 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16187 as_fn_append ac_file_inputs " '$ac_f'"
16188 done
16189
16190 # Let's still pretend it is `configure' which instantiates (i.e., don't
16191 # use $as_me), people would be surprised to read:
16192 # /* config.h. Generated by config.status. */
16193 configure_input='Generated from '`
16194 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16195 `' by configure.'
16196 if test x"$ac_file" != x-; then
16197 configure_input="$ac_file. $configure_input"
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16199$as_echo "$as_me: creating $ac_file" >&6;}
16200 fi
16201 # Neutralize special characters interpreted by sed in replacement strings.
16202 case $configure_input in #(
16203 *\&* | *\|* | *\\* )
16204 ac_sed_conf_input=`$as_echo "$configure_input" |
16205 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16206 *) ac_sed_conf_input=$configure_input;;
16207 esac
16208
16209 case $ac_tag in
22e05272
JM
16210 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5f520819
KY
16212 esac
16213 ;;
16214 esac
16215
16216 ac_dir=`$as_dirname -- "$ac_file" ||
16217$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16218 X"$ac_file" : 'X\(//\)[^/]' \| \
16219 X"$ac_file" : 'X\(//\)$' \| \
16220 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16221$as_echo X"$ac_file" |
16222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16223 s//\1/
16224 q
16225 }
16226 /^X\(\/\/\)[^/].*/{
16227 s//\1/
16228 q
16229 }
16230 /^X\(\/\/\)$/{
16231 s//\1/
16232 q
16233 }
16234 /^X\(\/\).*/{
16235 s//\1/
16236 q
16237 }
16238 s/.*/./; q'`
16239 as_dir="$ac_dir"; as_fn_mkdir_p
16240 ac_builddir=.
16241
16242case "$ac_dir" in
16243.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16244*)
16245 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16246 # A ".." for each directory in $ac_dir_suffix.
16247 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16248 case $ac_top_builddir_sub in
16249 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16250 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16251 esac ;;
16252esac
16253ac_abs_top_builddir=$ac_pwd
16254ac_abs_builddir=$ac_pwd$ac_dir_suffix
16255# for backward compatibility:
16256ac_top_builddir=$ac_top_build_prefix
16257
16258case $srcdir in
16259 .) # We are building in place.
16260 ac_srcdir=.
16261 ac_top_srcdir=$ac_top_builddir_sub
16262 ac_abs_top_srcdir=$ac_pwd ;;
16263 [\\/]* | ?:[\\/]* ) # Absolute name.
16264 ac_srcdir=$srcdir$ac_dir_suffix;
16265 ac_top_srcdir=$srcdir
16266 ac_abs_top_srcdir=$srcdir ;;
16267 *) # Relative name.
16268 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16269 ac_top_srcdir=$ac_top_build_prefix$srcdir
16270 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16271esac
16272ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16273
16274
16275 case $ac_mode in
16276 :F)
16277 #
16278 # CONFIG_FILE
16279 #
16280
16281 case $INSTALL in
16282 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16283 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16284 esac
16285 ac_MKDIR_P=$MKDIR_P
16286 case $MKDIR_P in
16287 [\\/$]* | ?:[\\/]* ) ;;
16288 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16289 esac
16290_ACEOF
16291
16292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16293# If the template does not know about datarootdir, expand it.
16294# FIXME: This hack should be removed a few years after 2.60.
16295ac_datarootdir_hack=; ac_datarootdir_seen=
16296ac_sed_dataroot='
16297/datarootdir/ {
16298 p
16299 q
16300}
16301/@datadir@/p
16302/@docdir@/p
16303/@infodir@/p
16304/@localedir@/p
16305/@mandir@/p'
16306case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16307*datarootdir*) ac_datarootdir_seen=yes;;
16308*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16310$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16311_ACEOF
16312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16313 ac_datarootdir_hack='
16314 s&@datadir@&$datadir&g
16315 s&@docdir@&$docdir&g
16316 s&@infodir@&$infodir&g
16317 s&@localedir@&$localedir&g
16318 s&@mandir@&$mandir&g
16319 s&\\\${datarootdir}&$datarootdir&g' ;;
16320esac
16321_ACEOF
16322
16323# Neutralize VPATH when `$srcdir' = `.'.
16324# Shell code in configure.ac might set extrasub.
16325# FIXME: do we really want to maintain this feature?
16326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16327ac_sed_extra="$ac_vpsub
16328$extrasub
16329_ACEOF
16330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16331:t
16332/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16333s|@configure_input@|$ac_sed_conf_input|;t t
16334s&@top_builddir@&$ac_top_builddir_sub&;t t
16335s&@top_build_prefix@&$ac_top_build_prefix&;t t
16336s&@srcdir@&$ac_srcdir&;t t
16337s&@abs_srcdir@&$ac_abs_srcdir&;t t
16338s&@top_srcdir@&$ac_top_srcdir&;t t
16339s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16340s&@builddir@&$ac_builddir&;t t
16341s&@abs_builddir@&$ac_abs_builddir&;t t
16342s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16343s&@INSTALL@&$ac_INSTALL&;t t
16344s&@MKDIR_P@&$ac_MKDIR_P&;t t
16345$ac_datarootdir_hack
16346"
22e05272
JM
16347eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16348 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5f520819
KY
16349
16350test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16351 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16352 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16353 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5f520819 16354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16355which seems to be undefined. Please make sure it is defined" >&5
5f520819 16356$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16357which seems to be undefined. Please make sure it is defined" >&2;}
5f520819 16358
22e05272 16359 rm -f "$ac_tmp/stdin"
5f520819 16360 case $ac_file in
22e05272
JM
16361 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16362 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5f520819 16363 esac \
22e05272 16364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5f520819
KY
16365 ;;
16366
16367
16368 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16369$as_echo "$as_me: executing $ac_file commands" >&6;}
16370 ;;
16371 esac
16372
16373
16374 case $ac_file$ac_mode in
16375 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 16376 # Older Autoconf quotes --file arguments for eval, but not when files
5f520819
KY
16377 # are listed without --file. Let's play safe and only enable the eval
16378 # if we detect the quoting.
16379 case $CONFIG_FILES in
16380 *\'*) eval set x "$CONFIG_FILES" ;;
16381 *) set x $CONFIG_FILES ;;
16382 esac
16383 shift
16384 for mf
16385 do
16386 # Strip MF so we end up with the name of the file.
16387 mf=`echo "$mf" | sed -e 's/:.*$//'`
16388 # Check whether this is an Automake generated Makefile or not.
22e05272 16389 # We used to match only the files named 'Makefile.in', but
5f520819
KY
16390 # some people rename them; so instead we look at the file content.
16391 # Grep'ing the first line is not enough: some people post-process
16392 # each Makefile.in and add a new line on top of each file to say so.
16393 # Grep'ing the whole file is not good either: AIX grep has a line
16394 # limit of 2048, but all sed's we know have understand at least 4000.
16395 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16396 dirpart=`$as_dirname -- "$mf" ||
16397$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16398 X"$mf" : 'X\(//\)[^/]' \| \
16399 X"$mf" : 'X\(//\)$' \| \
16400 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16401$as_echo X"$mf" |
16402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16403 s//\1/
16404 q
16405 }
16406 /^X\(\/\/\)[^/].*/{
16407 s//\1/
16408 q
16409 }
16410 /^X\(\/\/\)$/{
16411 s//\1/
16412 q
16413 }
16414 /^X\(\/\).*/{
16415 s//\1/
16416 q
16417 }
16418 s/.*/./; q'`
16419 else
16420 continue
16421 fi
16422 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 16423 # from the Makefile without running 'make'.
5f520819
KY
16424 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16425 test -z "$DEPDIR" && continue
16426 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 16427 test -z "$am__include" && continue
5f520819 16428 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5f520819
KY
16429 # Find all dependency output files, they are included files with
16430 # $(DEPDIR) in their names. We invoke sed twice because it is the
16431 # simplest approach to changing $(DEPDIR) to its actual value in the
16432 # expansion.
16433 for file in `sed -n "
16434 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 16435 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5f520819
KY
16436 # Make sure the directory exists.
16437 test -f "$dirpart/$file" && continue
16438 fdir=`$as_dirname -- "$file" ||
16439$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16440 X"$file" : 'X\(//\)[^/]' \| \
16441 X"$file" : 'X\(//\)$' \| \
16442 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16443$as_echo X"$file" |
16444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16445 s//\1/
16446 q
16447 }
16448 /^X\(\/\/\)[^/].*/{
16449 s//\1/
16450 q
16451 }
16452 /^X\(\/\/\)$/{
16453 s//\1/
16454 q
16455 }
16456 /^X\(\/\).*/{
16457 s//\1/
16458 q
16459 }
16460 s/.*/./; q'`
16461 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16462 # echo "creating $dirpart/$file"
16463 echo '# dummy' > "$dirpart/$file"
16464 done
16465 done
16466}
16467 ;;
16468 "default-1":C)
16469# Only add multilib support code if we just rebuilt the top-level
16470# Makefile.
16471case " $CONFIG_FILES " in
16472 *" Makefile "*)
16473 ac_file=Makefile . ${multi_basedir}/config-ml.in
16474 ;;
16475esac ;;
16476 "libtool":C)
16477
16478 # See if we are running on zsh, and set the options which allow our
16479 # commands through without removal of \ escapes.
16480 if test -n "${ZSH_VERSION+set}" ; then
16481 setopt NO_GLOB_SUBST
16482 fi
16483
16484 cfgfile="${ofile}T"
16485 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16486 $RM "$cfgfile"
16487
16488 cat <<_LT_EOF >> "$cfgfile"
16489#! $SHELL
16490
16491# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16492# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16493# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16494# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16495#
16496# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16497# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16498# Written by Gordon Matzigkeit, 1996
16499#
16500# This file is part of GNU Libtool.
16501#
16502# GNU Libtool is free software; you can redistribute it and/or
16503# modify it under the terms of the GNU General Public License as
16504# published by the Free Software Foundation; either version 2 of
16505# the License, or (at your option) any later version.
16506#
16507# As a special exception to the GNU General Public License,
16508# if you distribute this file as part of a program or library that
16509# is built using GNU Libtool, you may include this file under the
16510# same distribution terms that you use for the rest of that program.
16511#
16512# GNU Libtool is distributed in the hope that it will be useful,
16513# but WITHOUT ANY WARRANTY; without even the implied warranty of
16514# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16515# GNU General Public License for more details.
16516#
16517# You should have received a copy of the GNU General Public License
16518# along with GNU Libtool; see the file COPYING. If not, a copy
16519# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16520# obtained by writing to the Free Software Foundation, Inc.,
16521# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16522
16523
16524# The names of the tagged configurations supported by this script.
16525available_tags="CXX "
16526
16527# ### BEGIN LIBTOOL CONFIG
16528
16529# Which release of libtool.m4 was used?
16530macro_version=$macro_version
16531macro_revision=$macro_revision
16532
16533# Whether or not to build shared libraries.
16534build_libtool_libs=$enable_shared
16535
16536# Whether or not to build static libraries.
16537build_old_libs=$enable_static
16538
16539# What type of objects to build.
16540pic_mode=$pic_mode
16541
16542# Whether or not to optimize for fast installation.
16543fast_install=$enable_fast_install
16544
16545# Shell to use when invoking shell scripts.
16546SHELL=$lt_SHELL
16547
16548# An echo program that protects backslashes.
16549ECHO=$lt_ECHO
16550
16551# The host system.
16552host_alias=$host_alias
16553host=$host
16554host_os=$host_os
16555
16556# The build system.
16557build_alias=$build_alias
16558build=$build
16559build_os=$build_os
16560
16561# A sed program that does not truncate output.
16562SED=$lt_SED
16563
16564# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16565Xsed="\$SED -e 1s/^X//"
16566
16567# A grep program that handles long lines.
16568GREP=$lt_GREP
16569
16570# An ERE matcher.
16571EGREP=$lt_EGREP
16572
16573# A literal string matcher.
16574FGREP=$lt_FGREP
16575
16576# A BSD- or MS-compatible name lister.
16577NM=$lt_NM
16578
16579# Whether we need soft or hard links.
16580LN_S=$lt_LN_S
16581
16582# What is the maximum length of a command?
16583max_cmd_len=$max_cmd_len
16584
16585# Object file suffix (normally "o").
16586objext=$ac_objext
16587
16588# Executable file suffix (normally "").
16589exeext=$exeext
16590
16591# whether the shell understands "unset".
16592lt_unset=$lt_unset
16593
16594# turn spaces into newlines.
16595SP2NL=$lt_lt_SP2NL
16596
16597# turn newlines into spaces.
16598NL2SP=$lt_lt_NL2SP
16599
16600# An object symbol dumper.
16601OBJDUMP=$lt_OBJDUMP
16602
16603# Method to check whether dependent libraries are shared objects.
16604deplibs_check_method=$lt_deplibs_check_method
16605
16606# Command to use when deplibs_check_method == "file_magic".
16607file_magic_cmd=$lt_file_magic_cmd
16608
16609# The archiver.
16610AR=$lt_AR
16611AR_FLAGS=$lt_AR_FLAGS
16612
16613# A symbol stripping program.
16614STRIP=$lt_STRIP
16615
16616# Commands used to install an old-style archive.
16617RANLIB=$lt_RANLIB
16618old_postinstall_cmds=$lt_old_postinstall_cmds
16619old_postuninstall_cmds=$lt_old_postuninstall_cmds
16620
16621# Whether to use a lock for old archive extraction.
16622lock_old_archive_extraction=$lock_old_archive_extraction
16623
16624# A C compiler.
16625LTCC=$lt_CC
16626
16627# LTCC compiler flags.
16628LTCFLAGS=$lt_CFLAGS
16629
16630# Take the output of nm and produce a listing of raw symbols and C names.
16631global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16632
16633# Transform the output of nm in a proper C declaration.
16634global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16635
16636# Transform the output of nm in a C name address pair.
16637global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16638
16639# Transform the output of nm in a C name address pair when lib prefix is needed.
16640global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16641
16642# The name of the directory that contains temporary libtool files.
16643objdir=$objdir
16644
16645# Used to examine libraries when file_magic_cmd begins with "file".
16646MAGIC_CMD=$MAGIC_CMD
16647
16648# Must we lock files when doing compilation?
16649need_locks=$lt_need_locks
16650
16651# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16652DSYMUTIL=$lt_DSYMUTIL
16653
16654# Tool to change global to local symbols on Mac OS X.
16655NMEDIT=$lt_NMEDIT
16656
16657# Tool to manipulate fat objects and archives on Mac OS X.
16658LIPO=$lt_LIPO
16659
16660# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16661OTOOL=$lt_OTOOL
16662
16663# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16664OTOOL64=$lt_OTOOL64
16665
16666# Old archive suffix (normally "a").
16667libext=$libext
16668
16669# Shared library suffix (normally ".so").
16670shrext_cmds=$lt_shrext_cmds
16671
16672# The commands to extract the exported symbol list from a shared archive.
16673extract_expsyms_cmds=$lt_extract_expsyms_cmds
16674
16675# Variables whose values should be saved in libtool wrapper scripts and
16676# restored at link time.
16677variables_saved_for_relink=$lt_variables_saved_for_relink
16678
16679# Do we need the "lib" prefix for modules?
16680need_lib_prefix=$need_lib_prefix
16681
16682# Do we need a version for libraries?
16683need_version=$need_version
16684
16685# Library versioning type.
16686version_type=$version_type
16687
16688# Shared library runtime path variable.
16689runpath_var=$runpath_var
16690
16691# Shared library path variable.
16692shlibpath_var=$shlibpath_var
16693
16694# Is shlibpath searched before the hard-coded library search path?
16695shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16696
16697# Format of library name prefix.
16698libname_spec=$lt_libname_spec
16699
16700# List of archive names. First name is the real one, the rest are links.
16701# The last name is the one that the linker finds with -lNAME
16702library_names_spec=$lt_library_names_spec
16703
16704# The coded name of the library, if different from the real name.
16705soname_spec=$lt_soname_spec
16706
16707# Permission mode override for installation of shared libraries.
16708install_override_mode=$lt_install_override_mode
16709
16710# Command to use after installation of a shared archive.
16711postinstall_cmds=$lt_postinstall_cmds
16712
16713# Command to use after uninstallation of a shared archive.
16714postuninstall_cmds=$lt_postuninstall_cmds
16715
16716# Commands used to finish a libtool library installation in a directory.
16717finish_cmds=$lt_finish_cmds
16718
16719# As "finish_cmds", except a single script fragment to be evaled but
16720# not shown.
16721finish_eval=$lt_finish_eval
16722
16723# Whether we should hardcode library paths into libraries.
16724hardcode_into_libs=$hardcode_into_libs
16725
16726# Compile-time system search path for libraries.
16727sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16728
16729# Run-time system search path for libraries.
16730sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16731
16732# Whether dlopen is supported.
16733dlopen_support=$enable_dlopen
16734
16735# Whether dlopen of programs is supported.
16736dlopen_self=$enable_dlopen_self
16737
16738# Whether dlopen of statically linked programs is supported.
16739dlopen_self_static=$enable_dlopen_self_static
16740
16741# Commands to strip libraries.
16742old_striplib=$lt_old_striplib
16743striplib=$lt_striplib
16744
16745
16746# The linker used to build libraries.
16747LD=$lt_LD
16748
16749# How to create reloadable object files.
16750reload_flag=$lt_reload_flag
16751reload_cmds=$lt_reload_cmds
16752
16753# Commands used to build an old-style archive.
16754old_archive_cmds=$lt_old_archive_cmds
16755
16756# A language specific compiler.
16757CC=$lt_compiler
16758
16759# Is the compiler the GNU compiler?
16760with_gcc=$GCC
16761
16762# Compiler flag to turn off builtin functions.
16763no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16764
16765# How to pass a linker flag through the compiler.
16766wl=$lt_lt_prog_compiler_wl
16767
16768# Additional compiler flags for building library objects.
16769pic_flag=$lt_lt_prog_compiler_pic
16770
16771# Compiler flag to prevent dynamic linking.
16772link_static_flag=$lt_lt_prog_compiler_static
16773
16774# Does compiler simultaneously support -c and -o options?
16775compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16776
16777# Whether or not to add -lc for building shared libraries.
16778build_libtool_need_lc=$archive_cmds_need_lc
16779
16780# Whether or not to disallow shared libs when runtime libs are static.
16781allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16782
16783# Compiler flag to allow reflexive dlopens.
16784export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16785
16786# Compiler flag to generate shared objects directly from archives.
16787whole_archive_flag_spec=$lt_whole_archive_flag_spec
16788
16789# Whether the compiler copes with passing no objects directly.
16790compiler_needs_object=$lt_compiler_needs_object
16791
16792# Create an old-style archive from a shared archive.
16793old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16794
16795# Create a temporary old-style archive to link instead of a shared archive.
16796old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16797
16798# Commands used to build a shared archive.
16799archive_cmds=$lt_archive_cmds
16800archive_expsym_cmds=$lt_archive_expsym_cmds
16801
16802# Commands used to build a loadable module if different from building
16803# a shared archive.
16804module_cmds=$lt_module_cmds
16805module_expsym_cmds=$lt_module_expsym_cmds
16806
16807# Whether we are building with GNU ld or not.
16808with_gnu_ld=$lt_with_gnu_ld
16809
16810# Flag that allows shared libraries with undefined symbols to be built.
16811allow_undefined_flag=$lt_allow_undefined_flag
16812
16813# Flag that enforces no undefined symbols.
16814no_undefined_flag=$lt_no_undefined_flag
16815
16816# Flag to hardcode \$libdir into a binary during linking.
16817# This must work even if \$libdir does not exist
16818hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16819
16820# If ld is used when linking, flag to hardcode \$libdir into a binary
16821# during linking. This must work even if \$libdir does not exist.
16822hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16823
16824# Whether we need a single "-rpath" flag with a separated argument.
16825hardcode_libdir_separator=$lt_hardcode_libdir_separator
16826
16827# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16828# DIR into the resulting binary.
16829hardcode_direct=$hardcode_direct
16830
16831# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16832# DIR into the resulting binary and the resulting library dependency is
16833# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16834# library is relocated.
16835hardcode_direct_absolute=$hardcode_direct_absolute
16836
16837# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16838# into the resulting binary.
16839hardcode_minus_L=$hardcode_minus_L
16840
16841# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16842# into the resulting binary.
16843hardcode_shlibpath_var=$hardcode_shlibpath_var
16844
16845# Set to "yes" if building a shared library automatically hardcodes DIR
16846# into the library and all subsequent libraries and executables linked
16847# against it.
16848hardcode_automatic=$hardcode_automatic
16849
16850# Set to yes if linker adds runtime paths of dependent libraries
16851# to runtime path list.
16852inherit_rpath=$inherit_rpath
16853
16854# Whether libtool must link a program against all its dependency libraries.
16855link_all_deplibs=$link_all_deplibs
16856
16857# Fix the shell variable \$srcfile for the compiler.
16858fix_srcfile_path=$lt_fix_srcfile_path
16859
16860# Set to "yes" if exported symbols are required.
16861always_export_symbols=$always_export_symbols
16862
16863# The commands to list exported symbols.
16864export_symbols_cmds=$lt_export_symbols_cmds
16865
16866# Symbols that should not be listed in the preloaded symbols.
16867exclude_expsyms=$lt_exclude_expsyms
16868
16869# Symbols that must always be exported.
16870include_expsyms=$lt_include_expsyms
16871
16872# Commands necessary for linking programs (against libraries) with templates.
16873prelink_cmds=$lt_prelink_cmds
16874
16875# Specify filename containing input files.
16876file_list_spec=$lt_file_list_spec
16877
16878# How to hardcode a shared library path into an executable.
16879hardcode_action=$hardcode_action
16880
16881# The directories searched by this compiler when creating a shared library.
16882compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16883
16884# Dependencies to place before and after the objects being linked to
16885# create a shared library.
16886predep_objects=$lt_predep_objects
16887postdep_objects=$lt_postdep_objects
16888predeps=$lt_predeps
16889postdeps=$lt_postdeps
16890
16891# The library search path used internally by the compiler when linking
16892# a shared library.
16893compiler_lib_search_path=$lt_compiler_lib_search_path
16894
16895# ### END LIBTOOL CONFIG
16896
16897_LT_EOF
16898
16899 case $host_os in
16900 aix3*)
16901 cat <<\_LT_EOF >> "$cfgfile"
16902# AIX sometimes has problems with the GCC collect2 program. For some
16903# reason, if we set the COLLECT_NAMES environment variable, the problems
16904# vanish in a puff of smoke.
16905if test "X${COLLECT_NAMES+set}" != Xset; then
16906 COLLECT_NAMES=
16907 export COLLECT_NAMES
16908fi
16909_LT_EOF
16910 ;;
16911 esac
16912
16913
16914ltmain="$ac_aux_dir/ltmain.sh"
16915
16916
16917 # We use sed instead of cat because bash on DJGPP gets confused if
16918 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16919 # text mode, it properly converts lines to CR/LF. This bash problem
16920 # is reportedly fixed, but why not run on old versions too?
16921 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16922 || (rm -f "$cfgfile"; exit 1)
16923
16924 case $xsi_shell in
16925 yes)
16926 cat << \_LT_EOF >> "$cfgfile"
16927
16928# func_dirname file append nondir_replacement
16929# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16930# otherwise set result to NONDIR_REPLACEMENT.
16931func_dirname ()
16932{
16933 case ${1} in
16934 */*) func_dirname_result="${1%/*}${2}" ;;
16935 * ) func_dirname_result="${3}" ;;
16936 esac
16937}
16938
16939# func_basename file
16940func_basename ()
16941{
16942 func_basename_result="${1##*/}"
16943}
16944
16945# func_dirname_and_basename file append nondir_replacement
16946# perform func_basename and func_dirname in a single function
16947# call:
16948# dirname: Compute the dirname of FILE. If nonempty,
16949# add APPEND to the result, otherwise set result
16950# to NONDIR_REPLACEMENT.
16951# value returned in "$func_dirname_result"
16952# basename: Compute filename of FILE.
16953# value retuned in "$func_basename_result"
16954# Implementation must be kept synchronized with func_dirname
16955# and func_basename. For efficiency, we do not delegate to
16956# those functions but instead duplicate the functionality here.
16957func_dirname_and_basename ()
16958{
16959 case ${1} in
16960 */*) func_dirname_result="${1%/*}${2}" ;;
16961 * ) func_dirname_result="${3}" ;;
16962 esac
16963 func_basename_result="${1##*/}"
16964}
16965
16966# func_stripname prefix suffix name
16967# strip PREFIX and SUFFIX off of NAME.
16968# PREFIX and SUFFIX must not contain globbing or regex special
16969# characters, hashes, percent signs, but SUFFIX may contain a leading
16970# dot (in which case that matches only a dot).
16971func_stripname ()
16972{
16973 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16974 # positional parameters, so assign one to ordinary parameter first.
16975 func_stripname_result=${3}
16976 func_stripname_result=${func_stripname_result#"${1}"}
16977 func_stripname_result=${func_stripname_result%"${2}"}
16978}
16979
16980# func_opt_split
16981func_opt_split ()
16982{
16983 func_opt_split_opt=${1%%=*}
16984 func_opt_split_arg=${1#*=}
16985}
16986
16987# func_lo2o object
16988func_lo2o ()
16989{
16990 case ${1} in
16991 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16992 *) func_lo2o_result=${1} ;;
16993 esac
16994}
16995
16996# func_xform libobj-or-source
16997func_xform ()
16998{
16999 func_xform_result=${1%.*}.lo
17000}
17001
17002# func_arith arithmetic-term...
17003func_arith ()
17004{
17005 func_arith_result=$(( $* ))
17006}
17007
17008# func_len string
17009# STRING may not start with a hyphen.
17010func_len ()
17011{
17012 func_len_result=${#1}
17013}
17014
17015_LT_EOF
17016 ;;
17017 *) # Bourne compatible functions.
17018 cat << \_LT_EOF >> "$cfgfile"
17019
17020# func_dirname file append nondir_replacement
17021# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17022# otherwise set result to NONDIR_REPLACEMENT.
17023func_dirname ()
17024{
17025 # Extract subdirectory from the argument.
17026 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17027 if test "X$func_dirname_result" = "X${1}"; then
17028 func_dirname_result="${3}"
17029 else
17030 func_dirname_result="$func_dirname_result${2}"
17031 fi
17032}
17033
17034# func_basename file
17035func_basename ()
17036{
17037 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17038}
17039
17040
17041# func_stripname prefix suffix name
17042# strip PREFIX and SUFFIX off of NAME.
17043# PREFIX and SUFFIX must not contain globbing or regex special
17044# characters, hashes, percent signs, but SUFFIX may contain a leading
17045# dot (in which case that matches only a dot).
17046# func_strip_suffix prefix name
17047func_stripname ()
17048{
17049 case ${2} in
17050 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17051 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17052 esac
17053}
17054
17055# sed scripts:
17056my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17057my_sed_long_arg='1s/^-[^=]*=//'
17058
17059# func_opt_split
17060func_opt_split ()
17061{
17062 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17063 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17064}
17065
17066# func_lo2o object
17067func_lo2o ()
17068{
17069 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17070}
17071
17072# func_xform libobj-or-source
17073func_xform ()
17074{
17075 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17076}
17077
17078# func_arith arithmetic-term...
17079func_arith ()
17080{
17081 func_arith_result=`expr "$@"`
17082}
17083
17084# func_len string
17085# STRING may not start with a hyphen.
17086func_len ()
17087{
17088 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17089}
17090
17091_LT_EOF
17092esac
17093
17094case $lt_shell_append in
17095 yes)
17096 cat << \_LT_EOF >> "$cfgfile"
17097
17098# func_append var value
17099# Append VALUE to the end of shell variable VAR.
17100func_append ()
17101{
17102 eval "$1+=\$2"
17103}
17104_LT_EOF
17105 ;;
17106 *)
17107 cat << \_LT_EOF >> "$cfgfile"
17108
17109# func_append var value
17110# Append VALUE to the end of shell variable VAR.
17111func_append ()
17112{
17113 eval "$1=\$$1\$2"
17114}
17115
17116_LT_EOF
17117 ;;
17118 esac
17119
17120
17121 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17122 || (rm -f "$cfgfile"; exit 1)
17123
17124 mv -f "$cfgfile" "$ofile" ||
17125 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17126 chmod +x "$ofile"
17127
17128
17129 cat <<_LT_EOF >> "$ofile"
17130
17131# ### BEGIN LIBTOOL TAG CONFIG: CXX
17132
17133# The linker used to build libraries.
17134LD=$lt_LD_CXX
17135
17136# How to create reloadable object files.
17137reload_flag=$lt_reload_flag_CXX
17138reload_cmds=$lt_reload_cmds_CXX
17139
17140# Commands used to build an old-style archive.
17141old_archive_cmds=$lt_old_archive_cmds_CXX
17142
17143# A language specific compiler.
17144CC=$lt_compiler_CXX
17145
17146# Is the compiler the GNU compiler?
17147with_gcc=$GCC_CXX
17148
17149# Compiler flag to turn off builtin functions.
17150no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17151
17152# How to pass a linker flag through the compiler.
17153wl=$lt_lt_prog_compiler_wl_CXX
17154
17155# Additional compiler flags for building library objects.
17156pic_flag=$lt_lt_prog_compiler_pic_CXX
17157
17158# Compiler flag to prevent dynamic linking.
17159link_static_flag=$lt_lt_prog_compiler_static_CXX
17160
17161# Does compiler simultaneously support -c and -o options?
17162compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17163
17164# Whether or not to add -lc for building shared libraries.
17165build_libtool_need_lc=$archive_cmds_need_lc_CXX
17166
17167# Whether or not to disallow shared libs when runtime libs are static.
17168allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17169
17170# Compiler flag to allow reflexive dlopens.
17171export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17172
17173# Compiler flag to generate shared objects directly from archives.
17174whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17175
17176# Whether the compiler copes with passing no objects directly.
17177compiler_needs_object=$lt_compiler_needs_object_CXX
17178
17179# Create an old-style archive from a shared archive.
17180old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17181
17182# Create a temporary old-style archive to link instead of a shared archive.
17183old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17184
17185# Commands used to build a shared archive.
17186archive_cmds=$lt_archive_cmds_CXX
17187archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17188
17189# Commands used to build a loadable module if different from building
17190# a shared archive.
17191module_cmds=$lt_module_cmds_CXX
17192module_expsym_cmds=$lt_module_expsym_cmds_CXX
17193
17194# Whether we are building with GNU ld or not.
17195with_gnu_ld=$lt_with_gnu_ld_CXX
17196
17197# Flag that allows shared libraries with undefined symbols to be built.
17198allow_undefined_flag=$lt_allow_undefined_flag_CXX
17199
17200# Flag that enforces no undefined symbols.
17201no_undefined_flag=$lt_no_undefined_flag_CXX
17202
17203# Flag to hardcode \$libdir into a binary during linking.
17204# This must work even if \$libdir does not exist
17205hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17206
17207# If ld is used when linking, flag to hardcode \$libdir into a binary
17208# during linking. This must work even if \$libdir does not exist.
17209hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17210
17211# Whether we need a single "-rpath" flag with a separated argument.
17212hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17213
17214# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17215# DIR into the resulting binary.
17216hardcode_direct=$hardcode_direct_CXX
17217
17218# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17219# DIR into the resulting binary and the resulting library dependency is
17220# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17221# library is relocated.
17222hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17223
17224# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17225# into the resulting binary.
17226hardcode_minus_L=$hardcode_minus_L_CXX
17227
17228# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17229# into the resulting binary.
17230hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17231
17232# Set to "yes" if building a shared library automatically hardcodes DIR
17233# into the library and all subsequent libraries and executables linked
17234# against it.
17235hardcode_automatic=$hardcode_automatic_CXX
17236
17237# Set to yes if linker adds runtime paths of dependent libraries
17238# to runtime path list.
17239inherit_rpath=$inherit_rpath_CXX
17240
17241# Whether libtool must link a program against all its dependency libraries.
17242link_all_deplibs=$link_all_deplibs_CXX
17243
17244# Fix the shell variable \$srcfile for the compiler.
17245fix_srcfile_path=$lt_fix_srcfile_path_CXX
17246
17247# Set to "yes" if exported symbols are required.
17248always_export_symbols=$always_export_symbols_CXX
17249
17250# The commands to list exported symbols.
17251export_symbols_cmds=$lt_export_symbols_cmds_CXX
17252
17253# Symbols that should not be listed in the preloaded symbols.
17254exclude_expsyms=$lt_exclude_expsyms_CXX
17255
17256# Symbols that must always be exported.
17257include_expsyms=$lt_include_expsyms_CXX
17258
17259# Commands necessary for linking programs (against libraries) with templates.
17260prelink_cmds=$lt_prelink_cmds_CXX
17261
17262# Specify filename containing input files.
17263file_list_spec=$lt_file_list_spec_CXX
17264
17265# How to hardcode a shared library path into an executable.
17266hardcode_action=$hardcode_action_CXX
17267
17268# The directories searched by this compiler when creating a shared library.
17269compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17270
17271# Dependencies to place before and after the objects being linked to
17272# create a shared library.
17273predep_objects=$lt_predep_objects_CXX
17274postdep_objects=$lt_postdep_objects_CXX
17275predeps=$lt_predeps_CXX
17276postdeps=$lt_postdeps_CXX
17277
17278# The library search path used internally by the compiler when linking
17279# a shared library.
17280compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17281
17282# ### END LIBTOOL TAG CONFIG: CXX
17283_LT_EOF
17284
17285 ;;
17286
17287 esac
17288done # for ac_tag
17289
17290
17291as_fn_exit 0
17292_ACEOF
17293ac_clean_files=$ac_clean_files_save
17294
17295test $ac_write_fail = 0 ||
22e05272 17296 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5f520819
KY
17297
17298
17299# configure is writing to config.log, and then calls config.status.
17300# config.status does its own redirection, appending to config.log.
17301# Unfortunately, on DOS this fails, as config.log is still kept open
17302# by configure, so config.status won't be able to write to it; its
17303# output is simply discarded. So we exec the FD to /dev/null,
17304# effectively closing config.log, so it can be properly (re)opened and
17305# appended to by config.status. When coming back to configure, we
17306# need to make the FD available again.
17307if test "$no_create" != yes; then
17308 ac_cs_success=:
17309 ac_config_status_args=
17310 test "$silent" = yes &&
17311 ac_config_status_args="$ac_config_status_args --quiet"
17312 exec 5>/dev/null
17313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17314 exec 5>>config.log
17315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17316 # would make configure fail if this is the last instruction.
22e05272 17317 $ac_cs_success || as_fn_exit 1
5f520819 17318fi
9d73ec14
IV
17319
17320#
17321# CONFIG_SUBDIRS section.
17322#
17323if test "$no_recursion" != yes; then
17324
17325 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17326 # so they do not pile up.
17327 ac_sub_configure_args=
17328 ac_prev=
17329 eval "set x $ac_configure_args"
17330 shift
17331 for ac_arg
17332 do
17333 if test -n "$ac_prev"; then
17334 ac_prev=
17335 continue
17336 fi
17337 case $ac_arg in
17338 -cache-file | --cache-file | --cache-fil | --cache-fi \
17339 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17340 ac_prev=cache_file ;;
17341 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17342 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17343 | --c=*)
17344 ;;
17345 --config-cache | -C)
17346 ;;
17347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17348 ac_prev=srcdir ;;
17349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17350 ;;
17351 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17352 ac_prev=prefix ;;
17353 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17354 ;;
17355 --disable-option-checking)
17356 ;;
17357 *)
17358 case $ac_arg in
17359 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17360 esac
17361 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17362 esac
17363 done
17364
17365 # Always prepend --prefix to ensure using the same prefix
17366 # in subdir configurations.
17367 ac_arg="--prefix=$prefix"
17368 case $ac_arg in
17369 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17370 esac
17371 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17372
17373 # Pass --silent
17374 if test "$silent" = yes; then
17375 ac_sub_configure_args="--silent $ac_sub_configure_args"
17376 fi
17377
17378 # Always prepend --disable-option-checking to silence warnings, since
17379 # different subdirs can have different --enable and --with options.
17380 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17381
17382 ac_popdir=`pwd`
17383 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17384
17385 # Do not complain, so a configure script can configure whichever
17386 # parts of a large source tree are present.
17387 test -d "$srcdir/$ac_dir" || continue
17388
17389 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17390 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17391 $as_echo "$ac_msg" >&6
17392 as_dir="$ac_dir"; as_fn_mkdir_p
17393 ac_builddir=.
17394
17395case "$ac_dir" in
17396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17397*)
17398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17399 # A ".." for each directory in $ac_dir_suffix.
17400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17401 case $ac_top_builddir_sub in
17402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17404 esac ;;
17405esac
17406ac_abs_top_builddir=$ac_pwd
17407ac_abs_builddir=$ac_pwd$ac_dir_suffix
17408# for backward compatibility:
17409ac_top_builddir=$ac_top_build_prefix
17410
17411case $srcdir in
17412 .) # We are building in place.
17413 ac_srcdir=.
17414 ac_top_srcdir=$ac_top_builddir_sub
17415 ac_abs_top_srcdir=$ac_pwd ;;
17416 [\\/]* | ?:[\\/]* ) # Absolute name.
17417 ac_srcdir=$srcdir$ac_dir_suffix;
17418 ac_top_srcdir=$srcdir
17419 ac_abs_top_srcdir=$srcdir ;;
17420 *) # Relative name.
17421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17422 ac_top_srcdir=$ac_top_build_prefix$srcdir
17423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17424esac
17425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17426
17427
17428 cd "$ac_dir"
17429
17430 # Check for guested configure; otherwise get Cygnus style configure.
17431 if test -f "$ac_srcdir/configure.gnu"; then
17432 ac_sub_configure=$ac_srcdir/configure.gnu
17433 elif test -f "$ac_srcdir/configure"; then
17434 ac_sub_configure=$ac_srcdir/configure
3c36aa6b 17435 elif test -f "$ac_srcdir/configure.in"; then
9d73ec14
IV
17436 # This should be Cygnus configure.
17437 ac_sub_configure=$ac_aux_dir/configure
17438 else
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17440$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17441 ac_sub_configure=
17442 fi
17443
17444 # The recursion is here.
17445 if test -n "$ac_sub_configure"; then
17446 # Make the cache file name correct relative to the subdirectory.
17447 case $cache_file in
17448 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17449 *) # Relative name.
17450 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17451 esac
17452
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17454$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17455 # The eval makes quoting arguments work.
17456 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17457 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22e05272 17458 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9d73ec14
IV
17459 fi
17460
17461 cd "$ac_popdir"
17462 done
17463fi
5f520819
KY
17464if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17466$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17467fi
17468