ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/libopm/configure
Revision: 5206
Committed: Mon Dec 29 19:36:12 2014 UTC (9 years, 3 months ago) by michael
File size: 441081 byte(s)
Log Message:
- Removed AC_HEADER_STDC configure test

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libopm 0.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libopm'
589 PACKAGE_TARNAME='libopm'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='libopm 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/libopm.h"
596 ac_default_prefix=/usr/local/libopm
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 # include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LIBOBJS
636 LTLIBOBJS
637 LIBTOOL_DEPS
638 CPP
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 MANIFEST_TOOL
645 RANLIB
646 ac_ct_AR
647 AR
648 DLLTOOL
649 OBJDUMP
650 LN_S
651 NM
652 ac_ct_DUMPBIN
653 DUMPBIN
654 LD
655 FGREP
656 EGREP
657 GREP
658 SED
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 LIBTOOL
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 am__nodep
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 MAINT
686 MAINTAINER_MODE_FALSE
687 MAINTAINER_MODE_TRUE
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_maintainer_mode
758 with_extra_fascism
759 enable_dependency_tracking
760 enable_shared
761 enable_static
762 with_pic
763 enable_fast_install
764 with_aix_soname
765 with_gnu_ld
766 with_sysroot
767 enable_libtool_lock
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283 else
1284 ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures libopm 0.1 to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/libopm]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1372
1373 cat <<\_ACEOF
1374
1375 Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of libopm 0.1:";;
1389 esac
1390 cat <<\_ACEOF
1391
1392 Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-silent-rules less verbose build output (undo: "make V=1")
1397 --disable-silent-rules verbose build output (undo: "make V=0")
1398 --enable-maintainer-mode
1399 enable make rules and dependencies not useful (and
1400 sometimes confusing) to the casual installer
1401 --enable-dependency-tracking
1402 do not reject slow dependency extractors
1403 --disable-dependency-tracking
1404 speeds up one-time build
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-extra-fascism add extra gcc3-specific warning flags
1415 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1416 both]
1417 --with-aix-soname=aix|svr4|both
1418 shared library versioning (aka "SONAME") variant to
1419 provide on AIX, [default=aix].
1420 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1421 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1422 compiler's sysroot if not specified).
1423
1424 Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 CPP C preprocessor
1433
1434 Use these variables to override the choices made by `configure' or to help
1435 it to find libraries and programs with nonstandard names/locations.
1436
1437 Report bugs to the package provider.
1438 _ACEOF
1439 ac_status=$?
1440 fi
1441
1442 if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450 case "$ac_dir" in
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *)
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460 esac
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1465
1466 case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 esac
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1495 fi
1496
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1499 cat <<\_ACEOF
1500 libopm configure 0.1
1501 generated by GNU Autoconf 2.69
1502
1503 Copyright (C) 2012 Free Software Foundation, Inc.
1504 This configure script is free software; the Free Software Foundation
1505 gives unlimited permission to copy, distribute and modify it.
1506 _ACEOF
1507 exit
1508 fi
1509
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1513
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile ()
1518 {
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546 fi
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550 } # ac_fn_c_try_compile
1551
1552 # ac_fn_c_try_link LINENO
1553 # -----------------------
1554 # Try to link conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_link ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext conftest$ac_exeext
1559 if { { ac_try="$ac_link"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_link") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest$ac_exeext && {
1578 test "$cross_compiling" = yes ||
1579 test -x conftest$ac_exeext
1580 }; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587 fi
1588 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1589 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1590 # interfere with the next link command; also delete a directory that is
1591 # left behind by Apple's compiler. We do this before executing the actions.
1592 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_link
1597
1598 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists and can be compiled using the include files in
1601 # INCLUDES, setting the cache variable VAR accordingly.
1602 ac_fn_c_check_header_compile ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1609 else
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 $4
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616 eval "$3=yes"
1617 else
1618 eval "$3=no"
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 fi
1622 eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627 } # ac_fn_c_check_header_compile
1628
1629 # ac_fn_c_try_cpp LINENO
1630 # ----------------------
1631 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_cpp ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } > conftest.i && {
1651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 }; then :
1654 ac_retval=0
1655 else
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660 fi
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_cpp
1665
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=$ac_status
1701 fi
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_run
1707
1708 # ac_fn_c_check_func LINENO FUNC VAR
1709 # ----------------------------------
1710 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1711 ac_fn_c_check_func ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718 else
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1723 #define $2 innocuous_$2
1724
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char $2 (); below.
1727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1728 <limits.h> exists even on freestanding compilers. */
1729
1730 #ifdef __STDC__
1731 # include <limits.h>
1732 #else
1733 # include <assert.h>
1734 #endif
1735
1736 #undef $2
1737
1738 /* Override any GCC internal prototype to avoid an error.
1739 Use char because int might match the return type of a GCC
1740 builtin and then its argument prototype would still apply. */
1741 #ifdef __cplusplus
1742 extern "C"
1743 #endif
1744 char $2 ();
1745 /* The GNU C library defines this for functions which it implements
1746 to always fail with ENOSYS. Some functions are actually named
1747 something starting with __ and the normal name is an alias. */
1748 #if defined __stub_$2 || defined __stub___$2
1749 choke me
1750 #endif
1751
1752 int
1753 main ()
1754 {
1755 return $2 ();
1756 ;
1757 return 0;
1758 }
1759 _ACEOF
1760 if ac_fn_c_try_link "$LINENO"; then :
1761 eval "$3=yes"
1762 else
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext \
1766 conftest$ac_exeext conftest.$ac_ext
1767 fi
1768 eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_func
1774
1775 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1778 # the include files in INCLUDES and setting the cache variable VAR
1779 # accordingly.
1780 ac_fn_c_check_header_mongrel ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if eval \${$3+:} false; then :
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 fi
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 else
1793 # Is the header compilable?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1795 $as_echo_n "checking $2 usability... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 ac_header_compiler=yes
1803 else
1804 ac_header_compiler=no
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1808 $as_echo "$ac_header_compiler" >&6; }
1809
1810 # Is the header present?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1812 $as_echo_n "checking $2 presence... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_cpp "$LINENO"; then :
1818 ac_header_preproc=yes
1819 else
1820 ac_header_preproc=no
1821 fi
1822 rm -f conftest.err conftest.i conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1824 $as_echo "$ac_header_preproc" >&6; }
1825
1826 # So? What about this header?
1827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1828 yes:no: )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1830 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ;;
1834 no:yes:* )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1836 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1838 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1840 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1842 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ;;
1846 esac
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 eval "$3=\$ac_header_compiler"
1853 fi
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 fi
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_header_mongrel
1861 cat >config.log <<_ACEOF
1862 This file contains any messages produced by compilers while
1863 running configure, to aid debugging if configure makes a mistake.
1864
1865 It was created by libopm $as_me 0.1, which was
1866 generated by GNU Autoconf 2.69. Invocation command line was
1867
1868 $ $0 $@
1869
1870 _ACEOF
1871 exec 5>>config.log
1872 {
1873 cat <<_ASUNAME
1874 ## --------- ##
1875 ## Platform. ##
1876 ## --------- ##
1877
1878 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883
1884 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886
1887 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1888 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1889 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1890 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1891 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1892 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1893 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894
1895 _ASUNAME
1896
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 $as_echo "PATH: $as_dir"
1903 done
1904 IFS=$as_save_IFS
1905
1906 } >&5
1907
1908 cat >&5 <<_ACEOF
1909
1910
1911 ## ----------- ##
1912 ## Core tests. ##
1913 ## ----------- ##
1914
1915 _ACEOF
1916
1917
1918 # Keep a trace of the command line.
1919 # Strip out --no-create and --no-recursion so they do not pile up.
1920 # Strip out --silent because we don't want to record it for future runs.
1921 # Also quote any args containing shell meta-characters.
1922 # Make two passes to allow for proper duplicate-argument suppression.
1923 ac_configure_args=
1924 ac_configure_args0=
1925 ac_configure_args1=
1926 ac_must_keep_next=false
1927 for ac_pass in 1 2
1928 do
1929 for ac_arg
1930 do
1931 case $ac_arg in
1932 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934 | -silent | --silent | --silen | --sile | --sil)
1935 continue ;;
1936 *\'*)
1937 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1938 esac
1939 case $ac_pass in
1940 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1941 2)
1942 as_fn_append ac_configure_args1 " '$ac_arg'"
1943 if test $ac_must_keep_next = true; then
1944 ac_must_keep_next=false # Got value, back to normal.
1945 else
1946 case $ac_arg in
1947 *=* | --config-cache | -C | -disable-* | --disable-* \
1948 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950 | -with-* | --with-* | -without-* | --without-* | --x)
1951 case "$ac_configure_args0 " in
1952 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1953 esac
1954 ;;
1955 -* ) ac_must_keep_next=true ;;
1956 esac
1957 fi
1958 as_fn_append ac_configure_args " '$ac_arg'"
1959 ;;
1960 esac
1961 done
1962 done
1963 { ac_configure_args0=; unset ac_configure_args0;}
1964 { ac_configure_args1=; unset ac_configure_args1;}
1965
1966 # When interrupted or exit'd, cleanup temporary files, and complete
1967 # config.log. We remove comments because anyway the quotes in there
1968 # would cause problems or look ugly.
1969 # WARNING: Use '\'' to represent an apostrophe within the trap.
1970 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1971 trap 'exit_status=$?
1972 # Save into config.log some information that might help in debugging.
1973 {
1974 echo
1975
1976 $as_echo "## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##"
1979 echo
1980 # The following way of writing the cache mishandles newlines in values,
1981 (
1982 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in #(
1985 *${as_nl}*)
1986 case $ac_var in #(
1987 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1989 esac
1990 case $ac_var in #(
1991 _ | IFS | as_nl) ;; #(
1992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1993 *) { eval $ac_var=; unset $ac_var;} ;;
1994 esac ;;
1995 esac
1996 done
1997 (set) 2>&1 |
1998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999 *${as_nl}ac_space=\ *)
2000 sed -n \
2001 "s/'\''/'\''\\\\'\'''\''/g;
2002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2003 ;; #(
2004 *)
2005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006 ;;
2007 esac |
2008 sort
2009 )
2010 echo
2011
2012 $as_echo "## ----------------- ##
2013 ## Output variables. ##
2014 ## ----------------- ##"
2015 echo
2016 for ac_var in $ac_subst_vars
2017 do
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 $as_echo "$ac_var='\''$ac_val'\''"
2023 done | sort
2024 echo
2025
2026 if test -n "$ac_subst_files"; then
2027 $as_echo "## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##"
2030 echo
2031 for ac_var in $ac_subst_files
2032 do
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 $as_echo "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2040 fi
2041
2042 if test -s confdefs.h; then
2043 $as_echo "## ----------- ##
2044 ## confdefs.h. ##
2045 ## ----------- ##"
2046 echo
2047 cat confdefs.h
2048 echo
2049 fi
2050 test "$ac_signal" != 0 &&
2051 $as_echo "$as_me: caught signal $ac_signal"
2052 $as_echo "$as_me: exit $exit_status"
2053 } >&5
2054 rm -f core *.core core.conftest.* &&
2055 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2056 exit $exit_status
2057 ' 0
2058 for ac_signal in 1 2 13 15; do
2059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2060 done
2061 ac_signal=0
2062
2063 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2064 rm -f -r conftest* confdefs.h
2065
2066 $as_echo "/* confdefs.h */" > confdefs.h
2067
2068 # Predefined preprocessor variables.
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_NAME "$PACKAGE_NAME"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_STRING "$PACKAGE_STRING"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2088 _ACEOF
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_URL "$PACKAGE_URL"
2092 _ACEOF
2093
2094
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer an explicitly selected file to automatically selected ones.
2097 ac_site_file1=NONE
2098 ac_site_file2=NONE
2099 if test -n "$CONFIG_SITE"; then
2100 # We do not want a PATH search for config.site.
2101 case $CONFIG_SITE in #((
2102 -*) ac_site_file1=./$CONFIG_SITE;;
2103 */*) ac_site_file1=$CONFIG_SITE;;
2104 *) ac_site_file1=./$CONFIG_SITE;;
2105 esac
2106 elif test "x$prefix" != xNONE; then
2107 ac_site_file1=$prefix/share/config.site
2108 ac_site_file2=$prefix/etc/config.site
2109 else
2110 ac_site_file1=$ac_default_prefix/share/config.site
2111 ac_site_file2=$ac_default_prefix/etc/config.site
2112 fi
2113 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114 do
2115 test "x$ac_site_file" = xNONE && continue
2116 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119 sed 's/^/| /' "$ac_site_file" >&5
2120 . "$ac_site_file" \
2121 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123 as_fn_error $? "failed to load site script $ac_site_file
2124 See \`config.log' for more details" "$LINENO" 5; }
2125 fi
2126 done
2127
2128 if test -r "$cache_file"; then
2129 # Some versions of bash will fail to source /dev/null (special files
2130 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2131 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133 $as_echo "$as_me: loading cache $cache_file" >&6;}
2134 case $cache_file in
2135 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136 *) . "./$cache_file";;
2137 esac
2138 fi
2139 else
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142 >$cache_file
2143 fi
2144
2145 # Check that the precious variables saved in the cache have kept the same
2146 # value.
2147 ac_cache_corrupted=false
2148 for ac_var in $ac_precious_vars; do
2149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150 eval ac_new_set=\$ac_env_${ac_var}_set
2151 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152 eval ac_new_val=\$ac_env_${ac_var}_value
2153 case $ac_old_set,$ac_new_set in
2154 set,)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,set)
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161 ac_cache_corrupted=: ;;
2162 ,);;
2163 *)
2164 if test "x$ac_old_val" != "x$ac_new_val"; then
2165 # differences in whitespace do not lead to failure.
2166 ac_old_val_w=`echo x $ac_old_val`
2167 ac_new_val_w=`echo x $ac_new_val`
2168 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171 ac_cache_corrupted=:
2172 else
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175 eval $ac_var=\$ac_old_val
2176 fi
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2178 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2181 fi;;
2182 esac
2183 # Pass precious variables to config.status.
2184 if test "$ac_new_set" = set; then
2185 case $ac_new_val in
2186 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 *) ac_arg=$ac_var=$ac_new_val ;;
2188 esac
2189 case " $ac_configure_args " in
2190 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2191 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2192 esac
2193 fi
2194 done
2195 if $ac_cache_corrupted; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2201 fi
2202 ## -------------------- ##
2203 ## Main body of script. ##
2204 ## -------------------- ##
2205
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211
2212
2213
2214 ac_config_headers="$ac_config_headers src/setup.h"
2215
2216 am__api_version='1.14'
2217
2218 ac_aux_dir=
2219 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2220 if test -f "$ac_dir/install-sh"; then
2221 ac_aux_dir=$ac_dir
2222 ac_install_sh="$ac_aux_dir/install-sh -c"
2223 break
2224 elif test -f "$ac_dir/install.sh"; then
2225 ac_aux_dir=$ac_dir
2226 ac_install_sh="$ac_aux_dir/install.sh -c"
2227 break
2228 elif test -f "$ac_dir/shtool"; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/shtool install -c"
2231 break
2232 fi
2233 done
2234 if test -z "$ac_aux_dir"; then
2235 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2236 fi
2237
2238 # These three variables are undocumented and unsupported,
2239 # and are intended to be withdrawn in a future Autoconf release.
2240 # They can cause serious problems if a builder's source tree is in a directory
2241 # whose full name contains unusual characters.
2242 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2243 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2244 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2245
2246
2247 # Find a good install program. We prefer a C program (faster),
2248 # so one script is as good as another. But avoid the broken or
2249 # incompatible versions:
2250 # SysV /etc/install, /usr/sbin/install
2251 # SunOS /usr/etc/install
2252 # IRIX /sbin/install
2253 # AIX /bin/install
2254 # AmigaOS /C/install, which installs bootblocks on floppy discs
2255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2258 # OS/2's system install, which has a completely different semantic
2259 # ./install, which can be erroneously created by make from ./install.sh.
2260 # Reject install programs that cannot install multiple files.
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2262 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2263 if test -z "$INSTALL"; then
2264 if ${ac_cv_path_install+:} false; then :
2265 $as_echo_n "(cached) " >&6
2266 else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2269 do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 # Account for people who put trailing slashes in PATH elements.
2273 case $as_dir/ in #((
2274 ./ | .// | /[cC]/* | \
2275 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2276 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2277 /usr/ucb/* ) ;;
2278 *)
2279 # OSF1 and SCO ODT 3.0 have their own names for install.
2280 # Don't use installbsd from OSF since it installs stuff as root
2281 # by default.
2282 for ac_prog in ginstall scoinst install; do
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2285 if test $ac_prog = install &&
2286 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2287 # AIX install. It has an incompatible calling convention.
2288 :
2289 elif test $ac_prog = install &&
2290 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291 # program-specific install script used by HP pwplus--don't use.
2292 :
2293 else
2294 rm -rf conftest.one conftest.two conftest.dir
2295 echo one > conftest.one
2296 echo two > conftest.two
2297 mkdir conftest.dir
2298 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2299 test -s conftest.one && test -s conftest.two &&
2300 test -s conftest.dir/conftest.one &&
2301 test -s conftest.dir/conftest.two
2302 then
2303 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2304 break 3
2305 fi
2306 fi
2307 fi
2308 done
2309 done
2310 ;;
2311 esac
2312
2313 done
2314 IFS=$as_save_IFS
2315
2316 rm -rf conftest.one conftest.two conftest.dir
2317
2318 fi
2319 if test "${ac_cv_path_install+set}" = set; then
2320 INSTALL=$ac_cv_path_install
2321 else
2322 # As a last resort, use the slow shell script. Don't cache a
2323 # value for INSTALL within a source directory, because that will
2324 # break other packages using the cache if that directory is
2325 # removed, or if the value is a relative name.
2326 INSTALL=$ac_install_sh
2327 fi
2328 fi
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2330 $as_echo "$INSTALL" >&6; }
2331
2332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2333 # It thinks the first close brace ends the variable substitution.
2334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2335
2336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2337
2338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2339
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2341 $as_echo_n "checking whether build environment is sane... " >&6; }
2342 # Reject unsafe characters in $srcdir or the absolute working directory
2343 # name. Accept space and tab only in the latter.
2344 am_lf='
2345 '
2346 case `pwd` in
2347 *[\\\"\#\$\&\'\`$am_lf]*)
2348 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2349 esac
2350 case $srcdir in
2351 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2352 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2353 esac
2354
2355 # Do 'set' in a subshell so we don't clobber the current shell's
2356 # arguments. Must try -L first in case configure is actually a
2357 # symlink; some systems play weird games with the mod time of symlinks
2358 # (eg FreeBSD returns the mod time of the symlink's containing
2359 # directory).
2360 if (
2361 am_has_slept=no
2362 for am_try in 1 2; do
2363 echo "timestamp, slept: $am_has_slept" > conftest.file
2364 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2365 if test "$*" = "X"; then
2366 # -L didn't work.
2367 set X `ls -t "$srcdir/configure" conftest.file`
2368 fi
2369 if test "$*" != "X $srcdir/configure conftest.file" \
2370 && test "$*" != "X conftest.file $srcdir/configure"; then
2371
2372 # If neither matched, then we have a broken ls. This can happen
2373 # if, for instance, CONFIG_SHELL is bash and it inherits a
2374 # broken ls alias from the environment. This has actually
2375 # happened. Such a system could not be considered "sane".
2376 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2377 alias in your environment" "$LINENO" 5
2378 fi
2379 if test "$2" = conftest.file || test $am_try -eq 2; then
2380 break
2381 fi
2382 # Just in case.
2383 sleep 1
2384 am_has_slept=yes
2385 done
2386 test "$2" = conftest.file
2387 )
2388 then
2389 # Ok.
2390 :
2391 else
2392 as_fn_error $? "newly created file is older than distributed files!
2393 Check your system clock" "$LINENO" 5
2394 fi
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2396 $as_echo "yes" >&6; }
2397 # If we didn't sleep, we still need to ensure time stamps of config.status and
2398 # generated files are strictly newer.
2399 am_sleep_pid=
2400 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2401 ( sleep 1 ) &
2402 am_sleep_pid=$!
2403 fi
2404
2405 rm -f conftest.file
2406
2407 test "$program_prefix" != NONE &&
2408 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2409 # Use a double $ so make ignores it.
2410 test "$program_suffix" != NONE &&
2411 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2412 # Double any \ or $.
2413 # By default was `s,x,x', remove it if useless.
2414 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2415 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2416
2417 # expand $ac_aux_dir to an absolute path
2418 am_aux_dir=`cd $ac_aux_dir && pwd`
2419
2420 if test x"${MISSING+set}" != xset; then
2421 case $am_aux_dir in
2422 *\ * | *\ *)
2423 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2424 *)
2425 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2426 esac
2427 fi
2428 # Use eval to expand $SHELL
2429 if eval "$MISSING --is-lightweight"; then
2430 am_missing_run="$MISSING "
2431 else
2432 am_missing_run=
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2434 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2435 fi
2436
2437 if test x"${install_sh}" != xset; then
2438 case $am_aux_dir in
2439 *\ * | *\ *)
2440 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2441 *)
2442 install_sh="\${SHELL} $am_aux_dir/install-sh"
2443 esac
2444 fi
2445
2446 # Installed binaries are usually stripped using 'strip' when the user
2447 # run "make install-strip". However 'strip' might not be the right
2448 # tool to use in cross-compilation environments, therefore Automake
2449 # will honor the 'STRIP' environment variable to overrule this program.
2450 if test "$cross_compiling" != no; then
2451 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2453 set dummy ${ac_tool_prefix}strip; ac_word=$2
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if ${ac_cv_prog_STRIP+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test -n "$STRIP"; then
2460 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2469 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 STRIP=$ac_cv_prog_STRIP
2480 if test -n "$STRIP"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2482 $as_echo "$STRIP" >&6; }
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2487
2488
2489 fi
2490 if test -z "$ac_cv_prog_STRIP"; then
2491 ac_ct_STRIP=$STRIP
2492 # Extract the first word of "strip", so it can be a program name with args.
2493 set dummy strip; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test -n "$ac_ct_STRIP"; then
2500 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509 ac_cv_prog_ac_ct_STRIP="strip"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 break 2
2512 fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2520 if test -n "$ac_ct_STRIP"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2522 $as_echo "$ac_ct_STRIP" >&6; }
2523 else
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528 if test "x$ac_ct_STRIP" = x; then
2529 STRIP=":"
2530 else
2531 case $cross_compiling:$ac_tool_warned in
2532 yes:)
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2535 ac_tool_warned=yes ;;
2536 esac
2537 STRIP=$ac_ct_STRIP
2538 fi
2539 else
2540 STRIP="$ac_cv_prog_STRIP"
2541 fi
2542
2543 fi
2544 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2545
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2547 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2548 if test -z "$MKDIR_P"; then
2549 if ${ac_cv_path_mkdir+:} false; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2554 do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_prog in mkdir gmkdir; do
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2560 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2561 'mkdir (GNU coreutils) '* | \
2562 'mkdir (coreutils) '* | \
2563 'mkdir (fileutils) '4.1*)
2564 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2565 break 3;;
2566 esac
2567 done
2568 done
2569 done
2570 IFS=$as_save_IFS
2571
2572 fi
2573
2574 test -d ./--version && rmdir ./--version
2575 if test "${ac_cv_path_mkdir+set}" = set; then
2576 MKDIR_P="$ac_cv_path_mkdir -p"
2577 else
2578 # As a last resort, use the slow shell script. Don't cache a
2579 # value for MKDIR_P within a source directory, because that will
2580 # break other packages using the cache if that directory is
2581 # removed, or if the value is a relative name.
2582 MKDIR_P="$ac_install_sh -d"
2583 fi
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2586 $as_echo "$MKDIR_P" >&6; }
2587
2588 for ac_prog in gawk mawk nawk awk
2589 do
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591 set dummy $ac_prog; ac_word=$2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if ${ac_cv_prog_AWK+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 if test -n "$AWK"; then
2598 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2607 ac_cv_prog_AWK="$ac_prog"
2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611 done
2612 done
2613 IFS=$as_save_IFS
2614
2615 fi
2616 fi
2617 AWK=$ac_cv_prog_AWK
2618 if test -n "$AWK"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2620 $as_echo "$AWK" >&6; }
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2624 fi
2625
2626
2627 test -n "$AWK" && break
2628 done
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2631 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2632 set x ${MAKE-make}
2633 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2634 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 cat >conftest.make <<\_ACEOF
2638 SHELL = /bin/sh
2639 all:
2640 @echo '@@@%%%=$(MAKE)=@@@%%%'
2641 _ACEOF
2642 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2643 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2644 *@@@%%%=?*=@@@%%%*)
2645 eval ac_cv_prog_make_${ac_make}_set=yes;;
2646 *)
2647 eval ac_cv_prog_make_${ac_make}_set=no;;
2648 esac
2649 rm -f conftest.make
2650 fi
2651 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2653 $as_echo "yes" >&6; }
2654 SET_MAKE=
2655 else
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 SET_MAKE="MAKE=${MAKE-make}"
2659 fi
2660
2661 rm -rf .tst 2>/dev/null
2662 mkdir .tst 2>/dev/null
2663 if test -d .tst; then
2664 am__leading_dot=.
2665 else
2666 am__leading_dot=_
2667 fi
2668 rmdir .tst 2>/dev/null
2669
2670 # Check whether --enable-silent-rules was given.
2671 if test "${enable_silent_rules+set}" = set; then :
2672 enableval=$enable_silent_rules;
2673 fi
2674
2675 case $enable_silent_rules in # (((
2676 yes) AM_DEFAULT_VERBOSITY=0;;
2677 no) AM_DEFAULT_VERBOSITY=1;;
2678 *) AM_DEFAULT_VERBOSITY=1;;
2679 esac
2680 am_make=${MAKE-make}
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2682 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2683 if ${am_cv_make_support_nested_variables+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if $as_echo 'TRUE=$(BAR$(V))
2687 BAR0=false
2688 BAR1=true
2689 V=1
2690 am__doit:
2691 @$(TRUE)
2692 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2693 am_cv_make_support_nested_variables=yes
2694 else
2695 am_cv_make_support_nested_variables=no
2696 fi
2697 fi
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2699 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2700 if test $am_cv_make_support_nested_variables = yes; then
2701 AM_V='$(V)'
2702 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2703 else
2704 AM_V=$AM_DEFAULT_VERBOSITY
2705 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2706 fi
2707 AM_BACKSLASH='\'
2708
2709 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2710 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2711 # is not polluted with repeated "-I."
2712 am__isrc=' -I$(srcdir)'
2713 # test to see if srcdir already configured
2714 if test -f $srcdir/config.status; then
2715 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2716 fi
2717 fi
2718
2719 # test whether we have cygpath
2720 if test -z "$CYGPATH_W"; then
2721 if (cygpath --version) >/dev/null 2>/dev/null; then
2722 CYGPATH_W='cygpath -w'
2723 else
2724 CYGPATH_W=echo
2725 fi
2726 fi
2727
2728
2729 # Define the identity of the package.
2730 PACKAGE='libopm'
2731 VERSION='0.1'
2732
2733
2734 cat >>confdefs.h <<_ACEOF
2735 #define PACKAGE "$PACKAGE"
2736 _ACEOF
2737
2738
2739 cat >>confdefs.h <<_ACEOF
2740 #define VERSION "$VERSION"
2741 _ACEOF
2742
2743 # Some tools Automake needs.
2744
2745 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2746
2747
2748 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2749
2750
2751 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2752
2753
2754 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2755
2756
2757 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2758
2759 # For better backward compatibility. To be removed once Automake 1.9.x
2760 # dies out for good. For more background, see:
2761 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2762 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2763 mkdir_p='$(MKDIR_P)'
2764
2765 # We need awk for the "check" target. The system "awk" is bad on
2766 # some platforms.
2767 # Always define AMTAR for backward compatibility. Yes, it's still used
2768 # in the wild :-( We should find a proper way to deprecate it ...
2769 AMTAR='$${TAR-tar}'
2770
2771
2772 # We'll loop over all known methods to create a tar archive until one works.
2773 _am_tools='gnutar pax cpio none'
2774
2775 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2776
2777
2778
2779
2780
2781
2782 # POSIX will say in a future version that running "rm -f" with no argument
2783 # is OK; and we want to be able to make that assumption in our Makefile
2784 # recipes. So use an aggressive probe to check that the usage we want is
2785 # actually supported "in the wild" to an acceptable degree.
2786 # See automake bug#10828.
2787 # To make any issue more visible, cause the running configure to be aborted
2788 # by default if the 'rm' program in use doesn't match our expectations; the
2789 # user can still override this though.
2790 if rm -f && rm -fr && rm -rf; then : OK; else
2791 cat >&2 <<'END'
2792 Oops!
2793
2794 Your 'rm' program seems unable to run without file operands specified
2795 on the command line, even when the '-f' option is present. This is contrary
2796 to the behaviour of most rm programs out there, and not conforming with
2797 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2798
2799 Please tell bug-automake@gnu.org about your system, including the value
2800 of your $PATH and any error possibly output before this message. This
2801 can help us improve future automake versions.
2802
2803 END
2804 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2805 echo 'Configuration will proceed anyway, since you have set the' >&2
2806 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2807 echo >&2
2808 else
2809 cat >&2 <<'END'
2810 Aborting the configuration process, to ensure you take notice of the issue.
2811
2812 You can download and install GNU coreutils to get an 'rm' implementation
2813 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2814
2815 If you want to complete the configuration process using your problematic
2816 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2817 to "yes", and re-run configure.
2818
2819 END
2820 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2821 fi
2822 fi
2823
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2826 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2827 # Check whether --enable-maintainer-mode was given.
2828 if test "${enable_maintainer_mode+set}" = set; then :
2829 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2830 else
2831 USE_MAINTAINER_MODE=no
2832 fi
2833
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2835 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2836 if test $USE_MAINTAINER_MODE = yes; then
2837 MAINTAINER_MODE_TRUE=
2838 MAINTAINER_MODE_FALSE='#'
2839 else
2840 MAINTAINER_MODE_TRUE='#'
2841 MAINTAINER_MODE_FALSE=
2842 fi
2843
2844 MAINT=$MAINTAINER_MODE_TRUE
2845
2846
2847
2848
2849 # Check whether --with-extra-fascism was given.
2850 if test "${with_extra_fascism+set}" = set; then :
2851 withval=$with_extra_fascism; CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
2852 fi
2853
2854
2855
2856 DEPDIR="${am__leading_dot}deps"
2857
2858 ac_config_commands="$ac_config_commands depfiles"
2859
2860
2861 am_make=${MAKE-make}
2862 cat > confinc << 'END'
2863 am__doit:
2864 @echo this is the am__doit target
2865 .PHONY: am__doit
2866 END
2867 # If we don't find an include directive, just comment out the code.
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2869 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2870 am__include="#"
2871 am__quote=
2872 _am_result=none
2873 # First try GNU make style include.
2874 echo "include confinc" > confmf
2875 # Ignore all kinds of additional output from 'make'.
2876 case `$am_make -s -f confmf 2> /dev/null` in #(
2877 *the\ am__doit\ target*)
2878 am__include=include
2879 am__quote=
2880 _am_result=GNU
2881 ;;
2882 esac
2883 # Now try BSD make style include.
2884 if test "$am__include" = "#"; then
2885 echo '.include "confinc"' > confmf
2886 case `$am_make -s -f confmf 2> /dev/null` in #(
2887 *the\ am__doit\ target*)
2888 am__include=.include
2889 am__quote="\""
2890 _am_result=BSD
2891 ;;
2892 esac
2893 fi
2894
2895
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2897 $as_echo "$_am_result" >&6; }
2898 rm -f confinc confmf
2899
2900 # Check whether --enable-dependency-tracking was given.
2901 if test "${enable_dependency_tracking+set}" = set; then :
2902 enableval=$enable_dependency_tracking;
2903 fi
2904
2905 if test "x$enable_dependency_tracking" != xno; then
2906 am_depcomp="$ac_aux_dir/depcomp"
2907 AMDEPBACKSLASH='\'
2908 am__nodep='_no'
2909 fi
2910 if test "x$enable_dependency_tracking" != xno; then
2911 AMDEP_TRUE=
2912 AMDEP_FALSE='#'
2913 else
2914 AMDEP_TRUE='#'
2915 AMDEP_FALSE=
2916 fi
2917
2918
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if ${ac_cv_prog_CC+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi
2951 fi
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955 $as_echo "$CC" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961
2962 fi
2963 if test -z "$ac_cv_prog_CC"; then
2964 ac_ct_CC=$CC
2965 # Extract the first word of "gcc", so it can be a program name with args.
2966 set dummy gcc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$ac_ct_CC"; then
2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_ac_ct_CC="gcc"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986 done
2987 done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995 $as_echo "$ac_ct_CC" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001 if test "x$ac_ct_CC" = x; then
3002 CC=""
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010 CC=$ac_ct_CC
3011 fi
3012 else
3013 CC="$ac_cv_prog_CC"
3014 fi
3015
3016 if test -z "$CC"; then
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3019 set dummy ${ac_tool_prefix}cc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_CC+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 ac_cv_prog_CC="${ac_tool_prefix}cc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055 fi
3056 fi
3057 if test -z "$CC"; then
3058 # Extract the first word of "cc", so it can be a program name with args.
3059 set dummy cc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if ${ac_cv_prog_CC+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068 ac_prog_rejected=no
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3077 ac_prog_rejected=yes
3078 continue
3079 fi
3080 ac_cv_prog_CC="cc"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084 done
3085 done
3086 IFS=$as_save_IFS
3087
3088 if test $ac_prog_rejected = yes; then
3089 # We found a bogon in the path, so make sure we never use it.
3090 set dummy $ac_cv_prog_CC
3091 shift
3092 if test $# != 0; then
3093 # We chose a different compiler from the bogus one.
3094 # However, it has the same basename, so the bogon will be chosen
3095 # first if we set CC to just the basename; use the full file name.
3096 shift
3097 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3098 fi
3099 fi
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 fi
3113 if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 for ac_prog in cl.exe
3116 do
3117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_CC+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154 test -n "$CC" && break
3155 done
3156 fi
3157 if test -z "$CC"; then
3158 ac_ct_CC=$CC
3159 for ac_prog in cl.exe
3160 do
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_ac_ct_CC="$ac_prog"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189 if test -n "$ac_ct_CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191 $as_echo "$ac_ct_CC" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198 test -n "$ac_ct_CC" && break
3199 done
3200
3201 if test "x$ac_ct_CC" = x; then
3202 CC=""
3203 else
3204 case $cross_compiling:$ac_tool_warned in
3205 yes:)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208 ac_tool_warned=yes ;;
3209 esac
3210 CC=$ac_ct_CC
3211 fi
3212 fi
3213
3214 fi
3215
3216
3217 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error $? "no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details" "$LINENO" 5; }
3221
3222 # Provide some information about the compiler.
3223 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3224 set X $ac_compile
3225 ac_compiler=$2
3226 for ac_option in --version -v -V -qversion; do
3227 { { ac_try="$ac_compiler $ac_option >&5"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3235 ac_status=$?
3236 if test -s conftest.err; then
3237 sed '10a\
3238 ... rest of stderr output deleted ...
3239 10q' conftest.err >conftest.er1
3240 cat conftest.er1 >&5
3241 fi
3242 rm -f conftest.er1 conftest.err
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }
3245 done
3246
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3249
3250 int
3251 main ()
3252 {
3253
3254 ;
3255 return 0;
3256 }
3257 _ACEOF
3258 ac_clean_files_save=$ac_clean_files
3259 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3260 # Try to create an executable without -o first, disregard a.out.
3261 # It will help us diagnose broken compilers, and finding out an intuition
3262 # of exeext.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3264 $as_echo_n "checking whether the C compiler works... " >&6; }
3265 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3266
3267 # The possible output files:
3268 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3269
3270 ac_rmfiles=
3271 for ac_file in $ac_files
3272 do
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3276 esac
3277 done
3278 rm -f $ac_rmfiles
3279
3280 if { { ac_try="$ac_link_default"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link_default") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3292 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3293 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3294 # so that the user can short-circuit this test for compilers unknown to
3295 # Autoconf.
3296 for ac_file in $ac_files ''
3297 do
3298 test -f "$ac_file" || continue
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3301 ;;
3302 [ab].out )
3303 # We found the default executable, but exeext='' is most
3304 # certainly right.
3305 break;;
3306 *.* )
3307 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3308 then :; else
3309 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3310 fi
3311 # We set ac_cv_exeext here because the later test for it is not
3312 # safe: cross compilers may not add the suffix if given an `-o'
3313 # argument, so we may need to know it at that point already.
3314 # Even if this section looks crufty: it has the advantage of
3315 # actually working.
3316 break;;
3317 * )
3318 break;;
3319 esac
3320 done
3321 test "$ac_cv_exeext" = no && ac_cv_exeext=
3322
3323 else
3324 ac_file=''
3325 fi
3326 if test -z "$ac_file"; then :
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 $as_echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error 77 "C compiler cannot create executables
3335 See \`config.log' for more details" "$LINENO" 5; }
3336 else
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3339 fi
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3341 $as_echo_n "checking for C compiler default output file name... " >&6; }
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3343 $as_echo "$ac_file" >&6; }
3344 ac_exeext=$ac_cv_exeext
3345
3346 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3347 ac_clean_files=$ac_clean_files_save
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3349 $as_echo_n "checking for suffix of executables... " >&6; }
3350 if { { ac_try="$ac_link"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }; then :
3361 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3362 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3363 # work properly (i.e., refer to `conftest.exe'), while it won't with
3364 # `rm'.
3365 for ac_file in conftest.exe conftest conftest.*; do
3366 test -f "$ac_file" || continue
3367 case $ac_file in
3368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3369 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3370 break;;
3371 * ) break;;
3372 esac
3373 done
3374 else
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3378 See \`config.log' for more details" "$LINENO" 5; }
3379 fi
3380 rm -f conftest conftest$ac_cv_exeext
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3382 $as_echo "$ac_cv_exeext" >&6; }
3383
3384 rm -f conftest.$ac_ext
3385 EXEEXT=$ac_cv_exeext
3386 ac_exeext=$EXEEXT
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389 #include <stdio.h>
3390 int
3391 main ()
3392 {
3393 FILE *f = fopen ("conftest.out", "w");
3394 return ferror (f) || fclose (f) != 0;
3395
3396 ;
3397 return 0;
3398 }
3399 _ACEOF
3400 ac_clean_files="$ac_clean_files conftest.out"
3401 # Check that the compiler produces executables we can run. If not, either
3402 # the compiler is broken, or we cross compile.
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3404 $as_echo_n "checking whether we are cross compiling... " >&6; }
3405 if test "$cross_compiling" != yes; then
3406 { { ac_try="$ac_link"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
3413 (eval "$ac_link") 2>&5
3414 ac_status=$?
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }
3417 if { ac_try='./conftest$ac_cv_exeext'
3418 { { case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_try") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }; }; then
3428 cross_compiling=no
3429 else
3430 if test "$cross_compiling" = maybe; then
3431 cross_compiling=yes
3432 else
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error $? "cannot run C compiled programs.
3436 If you meant to cross compile, use \`--host'.
3437 See \`config.log' for more details" "$LINENO" 5; }
3438 fi
3439 fi
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3442 $as_echo "$cross_compiling" >&6; }
3443
3444 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3445 ac_clean_files=$ac_clean_files_save
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3447 $as_echo_n "checking for suffix of object files... " >&6; }
3448 if ${ac_cv_objext+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3453
3454 int
3455 main ()
3456 {
3457
3458 ;
3459 return 0;
3460 }
3461 _ACEOF
3462 rm -f conftest.o conftest.obj
3463 if { { ac_try="$ac_compile"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_compile") 2>&5
3471 ac_status=$?
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; then :
3474 for ac_file in conftest.o conftest.obj conftest.*; do
3475 test -f "$ac_file" || continue;
3476 case $ac_file in
3477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3478 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3479 break;;
3480 esac
3481 done
3482 else
3483 $as_echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $? "cannot compute suffix of object files: cannot compile
3489 See \`config.log' for more details" "$LINENO" 5; }
3490 fi
3491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3494 $as_echo "$ac_cv_objext" >&6; }
3495 OBJEXT=$ac_cv_objext
3496 ac_objext=$OBJEXT
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3498 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3499 if ${ac_cv_c_compiler_gnu+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508 #ifndef __GNUC__
3509 choke me
3510 #endif
3511
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_compiler_gnu=yes
3518 else
3519 ac_compiler_gnu=no
3520 fi
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3523
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3526 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3527 if test $ac_compiler_gnu = yes; then
3528 GCC=yes
3529 else
3530 GCC=
3531 fi
3532 ac_test_CFLAGS=${CFLAGS+set}
3533 ac_save_CFLAGS=$CFLAGS
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3535 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3536 if ${ac_cv_prog_cc_g+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 ac_save_c_werror_flag=$ac_c_werror_flag
3540 ac_c_werror_flag=yes
3541 ac_cv_prog_cc_g=no
3542 CFLAGS="-g"
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545
3546 int
3547 main ()
3548 {
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_cv_prog_cc_g=yes
3556 else
3557 CFLAGS=""
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560
3561 int
3562 main ()
3563 {
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570
3571 else
3572 ac_c_werror_flag=$ac_save_c_werror_flag
3573 CFLAGS="-g"
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576
3577 int
3578 main ()
3579 {
3580
3581 ;
3582 return 0;
3583 }
3584 _ACEOF
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586 ac_cv_prog_cc_g=yes
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 ac_c_werror_flag=$ac_save_c_werror_flag
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3596 $as_echo "$ac_cv_prog_cc_g" >&6; }
3597 if test "$ac_test_CFLAGS" = set; then
3598 CFLAGS=$ac_save_CFLAGS
3599 elif test $ac_cv_prog_cc_g = yes; then
3600 if test "$GCC" = yes; then
3601 CFLAGS="-g -O2"
3602 else
3603 CFLAGS="-g"
3604 fi
3605 else
3606 if test "$GCC" = yes; then
3607 CFLAGS="-O2"
3608 else
3609 CFLAGS=
3610 fi
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3613 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3614 if ${ac_cv_prog_cc_c89+:} false; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 ac_cv_prog_cc_c89=no
3618 ac_save_CC=$CC
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621 #include <stdarg.h>
3622 #include <stdio.h>
3623 struct stat;
3624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3625 struct buf { int x; };
3626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3627 static char *e (p, i)
3628 char **p;
3629 int i;
3630 {
3631 return p[i];
3632 }
3633 static char *f (char * (*g) (char **, int), char **p, ...)
3634 {
3635 char *s;
3636 va_list v;
3637 va_start (v,p);
3638 s = g (p, va_arg (v,int));
3639 va_end (v);
3640 return s;
3641 }
3642
3643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3644 function prototypes and stuff, but not '\xHH' hex character constants.
3645 These don't provoke an error unfortunately, instead are silently treated
3646 as 'x'. The following induces an error, until -std is added to get
3647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3648 array size at least. It's necessary to write '\x00'==0 to get something
3649 that's true only with -std. */
3650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651
3652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3653 inside strings and character constants. */
3654 #define FOO(x) 'x'
3655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656
3657 int test (int i, double x);
3658 struct s1 {int (*f) (int a);};
3659 struct s2 {int (*f) (double a);};
3660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3661 int argc;
3662 char **argv;
3663 int
3664 main ()
3665 {
3666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 do
3674 CC="$ac_save_CC $ac_arg"
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_prog_cc_c89=$ac_arg
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext
3679 test "x$ac_cv_prog_cc_c89" != "xno" && break
3680 done
3681 rm -f conftest.$ac_ext
3682 CC=$ac_save_CC
3683
3684 fi
3685 # AC_CACHE_VAL
3686 case "x$ac_cv_prog_cc_c89" in
3687 x)
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3689 $as_echo "none needed" >&6; } ;;
3690 xno)
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3692 $as_echo "unsupported" >&6; } ;;
3693 *)
3694 CC="$CC $ac_cv_prog_cc_c89"
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3696 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3697 esac
3698 if test "x$ac_cv_prog_cc_c89" != xno; then :
3699
3700 fi
3701
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3714 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3715 if ${am_cv_prog_cc_c_o+:} false; then :
3716 $as_echo_n "(cached) " >&6
3717 else
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720
3721 int
3722 main ()
3723 {
3724
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 # Make sure it works both with $CC and with simple cc.
3730 # Following AC_PROG_CC_C_O, we do the test twice because some
3731 # compilers refuse to overwrite an existing .o file with -o,
3732 # though they will create one.
3733 am_cv_prog_cc_c_o=yes
3734 for am_i in 1 2; do
3735 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3736 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } \
3740 && test -f conftest2.$ac_objext; then
3741 : OK
3742 else
3743 am_cv_prog_cc_c_o=no
3744 break
3745 fi
3746 done
3747 rm -f core conftest*
3748 unset am_i
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3751 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3752 if test "$am_cv_prog_cc_c_o" != yes; then
3753 # Losing compiler, so override with the script.
3754 # FIXME: It is wrong to rewrite CC.
3755 # But if we don't then we get into trouble of one sort or another.
3756 # A longer-term fix would be to have automake use am__CC in this case,
3757 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3758 CC="$am_aux_dir/compile $CC"
3759 fi
3760 ac_ext=c
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765
3766
3767 depcc="$CC" am_compiler_list=
3768
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3770 $as_echo_n "checking dependency style of $depcc... " >&6; }
3771 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3775 # We make a subdir and do the tests there. Otherwise we can end up
3776 # making bogus files that we don't know about and never remove. For
3777 # instance it was reported that on HP-UX the gcc test will end up
3778 # making a dummy file named 'D' -- because '-MD' means "put the output
3779 # in D".
3780 rm -rf conftest.dir
3781 mkdir conftest.dir
3782 # Copy depcomp to subdir because otherwise we won't find it if we're
3783 # using a relative directory.
3784 cp "$am_depcomp" conftest.dir
3785 cd conftest.dir
3786 # We will build objects and dependencies in a subdirectory because
3787 # it helps to detect inapplicable dependency modes. For instance
3788 # both Tru64's cc and ICC support -MD to output dependencies as a
3789 # side effect of compilation, but ICC will put the dependencies in
3790 # the current directory while Tru64 will put them in the object
3791 # directory.
3792 mkdir sub
3793
3794 am_cv_CC_dependencies_compiler_type=none
3795 if test "$am_compiler_list" = ""; then
3796 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3797 fi
3798 am__universal=false
3799 case " $depcc " in #(
3800 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3801 esac
3802
3803 for depmode in $am_compiler_list; do
3804 # Setup a source with many dependencies, because some compilers
3805 # like to wrap large dependency lists on column 80 (with \), and
3806 # we should not choose a depcomp mode which is confused by this.
3807 #
3808 # We need to recreate these files for each test, as the compiler may
3809 # overwrite some of them when testing with obscure command lines.
3810 # This happens at least with the AIX C compiler.
3811 : > sub/conftest.c
3812 for i in 1 2 3 4 5 6; do
3813 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3814 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3815 # Solaris 10 /bin/sh.
3816 echo '/* dummy */' > sub/conftst$i.h
3817 done
3818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3819
3820 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3821 # mode. It turns out that the SunPro C++ compiler does not properly
3822 # handle '-M -o', and we need to detect this. Also, some Intel
3823 # versions had trouble with output in subdirs.
3824 am__obj=sub/conftest.${OBJEXT-o}
3825 am__minus_obj="-o $am__obj"
3826 case $depmode in
3827 gcc)
3828 # This depmode causes a compiler race in universal mode.
3829 test "$am__universal" = false || continue
3830 ;;
3831 nosideeffect)
3832 # After this tag, mechanisms are not by side-effect, so they'll
3833 # only be used when explicitly requested.
3834 if test "x$enable_dependency_tracking" = xyes; then
3835 continue
3836 else
3837 break
3838 fi
3839 ;;
3840 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3841 # This compiler won't grok '-c -o', but also, the minuso test has
3842 # not run yet. These depmodes are late enough in the game, and
3843 # so weak that their functioning should not be impacted.
3844 am__obj=conftest.${OBJEXT-o}
3845 am__minus_obj=
3846 ;;
3847 none) break ;;
3848 esac
3849 if depmode=$depmode \
3850 source=sub/conftest.c object=$am__obj \
3851 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3852 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3853 >/dev/null 2>conftest.err &&
3854 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3858 # icc doesn't choke on unknown options, it will just issue warnings
3859 # or remarks (even with -Werror). So we grep stderr for any message
3860 # that says an option was ignored or not supported.
3861 # When given -MP, icc 7.0 and 7.1 complain thusly:
3862 # icc: Command line warning: ignoring option '-M'; no argument required
3863 # The diagnosis changed in icc 8.0:
3864 # icc: Command line remark: option '-MP' not supported
3865 if (grep 'ignoring option' conftest.err ||
3866 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3867 am_cv_CC_dependencies_compiler_type=$depmode
3868 break
3869 fi
3870 fi
3871 done
3872
3873 cd ..
3874 rm -rf conftest.dir
3875 else
3876 am_cv_CC_dependencies_compiler_type=none
3877 fi
3878
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3881 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3882 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3883
3884 if
3885 test "x$enable_dependency_tracking" != xno \
3886 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3887 am__fastdepCC_TRUE=
3888 am__fastdepCC_FALSE='#'
3889 else
3890 am__fastdepCC_TRUE='#'
3891 am__fastdepCC_FALSE=
3892 fi
3893
3894
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3896 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3897 if ${ac_cv_prog_cc_c99+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 ac_cv_prog_cc_c99=no
3901 ac_save_CC=$CC
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904 #include <stdarg.h>
3905 #include <stdbool.h>
3906 #include <stdlib.h>
3907 #include <wchar.h>
3908 #include <stdio.h>
3909
3910 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3911 #define debug(...) fprintf (stderr, __VA_ARGS__)
3912 #define showlist(...) puts (#__VA_ARGS__)
3913 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3914 static void
3915 test_varargs_macros (void)
3916 {
3917 int x = 1234;
3918 int y = 5678;
3919 debug ("Flag");
3920 debug ("X = %d\n", x);
3921 showlist (The first, second, and third items.);
3922 report (x>y, "x is %d but y is %d", x, y);
3923 }
3924
3925 // Check long long types.
3926 #define BIG64 18446744073709551615ull
3927 #define BIG32 4294967295ul
3928 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3929 #if !BIG_OK
3930 your preprocessor is broken;
3931 #endif
3932 #if BIG_OK
3933 #else
3934 your preprocessor is broken;
3935 #endif
3936 static long long int bignum = -9223372036854775807LL;
3937 static unsigned long long int ubignum = BIG64;
3938
3939 struct incomplete_array
3940 {
3941 int datasize;
3942 double data[];
3943 };
3944
3945 struct named_init {
3946 int number;
3947 const wchar_t *name;
3948 double average;
3949 };
3950
3951 typedef const char *ccp;
3952
3953 static inline int
3954 test_restrict (ccp restrict text)
3955 {
3956 // See if C++-style comments work.
3957 // Iterate through items via the restricted pointer.
3958 // Also check for declarations in for loops.
3959 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3960 continue;
3961 return 0;
3962 }
3963
3964 // Check varargs and va_copy.
3965 static void
3966 test_varargs (const char *format, ...)
3967 {
3968 va_list args;
3969 va_start (args, format);
3970 va_list args_copy;
3971 va_copy (args_copy, args);
3972
3973 const char *str;
3974 int number;
3975 float fnumber;
3976
3977 while (*format)
3978 {
3979 switch (*format++)
3980 {
3981 case 's': // string
3982 str = va_arg (args_copy, const char *);
3983 break;
3984 case 'd': // int
3985 number = va_arg (args_copy, int);
3986 break;
3987 case 'f': // float
3988 fnumber = va_arg (args_copy, double);
3989 break;
3990 default:
3991 break;
3992 }
3993 }
3994 va_end (args_copy);
3995 va_end (args);
3996 }
3997
3998 int
3999 main ()
4000 {
4001
4002 // Check bool.
4003 _Bool success = false;
4004
4005 // Check restrict.
4006 if (test_restrict ("String literal") == 0)
4007 success = true;
4008 char *restrict newvar = "Another string";
4009
4010 // Check varargs.
4011 test_varargs ("s, d' f .", "string", 65, 34.234);
4012 test_varargs_macros ();
4013
4014 // Check flexible array members.
4015 struct incomplete_array *ia =
4016 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4017 ia->datasize = 10;
4018 for (int i = 0; i < ia->datasize; ++i)
4019 ia->data[i] = i * 1.234;
4020
4021 // Check named initializers.
4022 struct named_init ni = {
4023 .number = 34,
4024 .name = L"Test wide string",
4025 .average = 543.34343,
4026 };
4027
4028 ni.number = 58;
4029
4030 int dynamic_array[ni.number];
4031 dynamic_array[ni.number - 1] = 543;
4032
4033 // work around unused variable warnings
4034 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4035 || dynamic_array[ni.number - 1] != 543);
4036
4037 ;
4038 return 0;
4039 }
4040 _ACEOF
4041 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4042 do
4043 CC="$ac_save_CC $ac_arg"
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045 ac_cv_prog_cc_c99=$ac_arg
4046 fi
4047 rm -f core conftest.err conftest.$ac_objext
4048 test "x$ac_cv_prog_cc_c99" != "xno" && break
4049 done
4050 rm -f conftest.$ac_ext
4051 CC=$ac_save_CC
4052
4053 fi
4054 # AC_CACHE_VAL
4055 case "x$ac_cv_prog_cc_c99" in
4056 x)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4058 $as_echo "none needed" >&6; } ;;
4059 xno)
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4061 $as_echo "unsupported" >&6; } ;;
4062 *)
4063 CC="$CC $ac_cv_prog_cc_c99"
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4065 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4066 esac
4067 if test "x$ac_cv_prog_cc_c99" != xno; then :
4068
4069 fi
4070
4071
4072 if test "$ac_cv_prog_cc_c99" = "no"; then :
4073 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4074 fi
4075 case `pwd` in
4076 *\ * | *\ *)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4078 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4079 esac
4080
4081
4082
4083 macro_version='2.4.4'
4084 macro_revision='2.4.4'
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098 ltmain=$ac_aux_dir/ltmain.sh
4099
4100 # Make sure we can run config.sub.
4101 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4102 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4103
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4105 $as_echo_n "checking build system type... " >&6; }
4106 if ${ac_cv_build+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 ac_build_alias=$build_alias
4110 test "x$ac_build_alias" = x &&
4111 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4112 test "x$ac_build_alias" = x &&
4113 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4114 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4115 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4116
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4119 $as_echo "$ac_cv_build" >&6; }
4120 case $ac_cv_build in
4121 *-*-*) ;;
4122 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4123 esac
4124 build=$ac_cv_build
4125 ac_save_IFS=$IFS; IFS='-'
4126 set x $ac_cv_build
4127 shift
4128 build_cpu=$1
4129 build_vendor=$2
4130 shift; shift
4131 # Remember, the first character of IFS is used to create $*,
4132 # except with old shells:
4133 build_os=$*
4134 IFS=$ac_save_IFS
4135 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4136
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4139 $as_echo_n "checking host system type... " >&6; }
4140 if ${ac_cv_host+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test "x$host_alias" = x; then
4144 ac_cv_host=$ac_cv_build
4145 else
4146 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4147 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4148 fi
4149
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4152 $as_echo "$ac_cv_host" >&6; }
4153 case $ac_cv_host in
4154 *-*-*) ;;
4155 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4156 esac
4157 host=$ac_cv_host
4158 ac_save_IFS=$IFS; IFS='-'
4159 set x $ac_cv_host
4160 shift
4161 host_cpu=$1
4162 host_vendor=$2
4163 shift; shift
4164 # Remember, the first character of IFS is used to create $*,
4165 # except with old shells:
4166 host_os=$*
4167 IFS=$ac_save_IFS
4168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4169
4170
4171 # Backslashify metacharacters that are still active within
4172 # double-quoted strings.
4173 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4174
4175 # Same as above, but do not quote variable references.
4176 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4177
4178 # Sed substitution to delay expansion of an escaped shell variable in a
4179 # double_quote_subst'ed string.
4180 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4181
4182 # Sed substitution to delay expansion of an escaped single quote.
4183 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4184
4185 # Sed substitution to avoid accidental globbing in evaled expressions
4186 no_glob_subst='s/\*/\\\*/g'
4187
4188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4189 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4190 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4193 $as_echo_n "checking how to print strings... " >&6; }
4194 # Test print first, because it will be a builtin if present.
4195 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4196 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4197 ECHO='print -r --'
4198 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4199 ECHO='printf %s\n'
4200 else
4201 # Use this function as a fallback that always works.
4202 func_fallback_echo ()
4203 {
4204 eval 'cat <<_LTECHO_EOF
4205 $1
4206 _LTECHO_EOF'
4207 }
4208 ECHO='func_fallback_echo'
4209 fi
4210
4211 # func_echo_all arg...
4212 # Invoke $ECHO with all args, space-separated.
4213 func_echo_all ()
4214 {
4215 $ECHO ""
4216 }
4217
4218 case $ECHO in
4219 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4220 $as_echo "printf" >&6; } ;;
4221 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4222 $as_echo "print -r" >&6; } ;;
4223 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4224 $as_echo "cat" >&6; } ;;
4225 esac
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4241 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4242 if ${ac_cv_path_SED+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4246 for ac_i in 1 2 3 4 5 6 7; do
4247 ac_script="$ac_script$as_nl$ac_script"
4248 done
4249 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4250 { ac_script=; unset ac_script;}
4251 if test -z "$SED"; then
4252 ac_path_SED_found=false
4253 # Loop through the user's path and test for each of PROGNAME-LIST
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_prog in sed gsed; do
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4262 as_fn_executable_p "$ac_path_SED" || continue
4263 # Check for GNU ac_path_SED and select it if it is found.
4264 # Check for GNU $ac_path_SED
4265 case `"$ac_path_SED" --version 2>&1` in
4266 *GNU*)
4267 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4268 *)
4269 ac_count=0
4270 $as_echo_n 0123456789 >"conftest.in"
4271 while :
4272 do
4273 cat "conftest.in" "conftest.in" >"conftest.tmp"
4274 mv "conftest.tmp" "conftest.in"
4275 cp "conftest.in" "conftest.nl"
4276 $as_echo '' >> "conftest.nl"
4277 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4279 as_fn_arith $ac_count + 1 && ac_count=$as_val
4280 if test $ac_count -gt ${ac_path_SED_max-0}; then
4281 # Best one so far, save it but keep looking for a better one
4282 ac_cv_path_SED="$ac_path_SED"
4283 ac_path_SED_max=$ac_count
4284 fi
4285 # 10*(2^10) chars as input seems more than enough
4286 test $ac_count -gt 10 && break
4287 done
4288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289 esac
4290
4291 $ac_path_SED_found && break 3
4292 done
4293 done
4294 done
4295 IFS=$as_save_IFS
4296 if test -z "$ac_cv_path_SED"; then
4297 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4298 fi
4299 else
4300 ac_cv_path_SED=$SED
4301 fi
4302
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4305 $as_echo "$ac_cv_path_SED" >&6; }
4306 SED="$ac_cv_path_SED"
4307 rm -f conftest.sed
4308
4309 test -z "$SED" && SED=sed
4310 Xsed="$SED -e 1s/^X//"
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4323 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4324 if ${ac_cv_path_GREP+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 if test -z "$GREP"; then
4328 ac_path_GREP_found=false
4329 # Loop through the user's path and test for each of PROGNAME-LIST
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4332 do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_prog in grep ggrep; do
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4338 as_fn_executable_p "$ac_path_GREP" || continue
4339 # Check for GNU ac_path_GREP and select it if it is found.
4340 # Check for GNU $ac_path_GREP
4341 case `"$ac_path_GREP" --version 2>&1` in
4342 *GNU*)
4343 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4344 *)
4345 ac_count=0
4346 $as_echo_n 0123456789 >"conftest.in"
4347 while :
4348 do
4349 cat "conftest.in" "conftest.in" >"conftest.tmp"
4350 mv "conftest.tmp" "conftest.in"
4351 cp "conftest.in" "conftest.nl"
4352 $as_echo 'GREP' >> "conftest.nl"
4353 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4355 as_fn_arith $ac_count + 1 && ac_count=$as_val
4356 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4357 # Best one so far, save it but keep looking for a better one
4358 ac_cv_path_GREP="$ac_path_GREP"
4359 ac_path_GREP_max=$ac_count
4360 fi
4361 # 10*(2^10) chars as input seems more than enough
4362 test $ac_count -gt 10 && break
4363 done
4364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4365 esac
4366
4367 $ac_path_GREP_found && break 3
4368 done
4369 done
4370 done
4371 IFS=$as_save_IFS
4372 if test -z "$ac_cv_path_GREP"; then
4373 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4374 fi
4375 else
4376 ac_cv_path_GREP=$GREP
4377 fi
4378
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4381 $as_echo "$ac_cv_path_GREP" >&6; }
4382 GREP="$ac_cv_path_GREP"
4383
4384
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4386 $as_echo_n "checking for egrep... " >&6; }
4387 if ${ac_cv_path_EGREP+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4391 then ac_cv_path_EGREP="$GREP -E"
4392 else
4393 if test -z "$EGREP"; then
4394 ac_path_EGREP_found=false
4395 # Loop through the user's path and test for each of PROGNAME-LIST
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398 do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_prog in egrep; do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4404 as_fn_executable_p "$ac_path_EGREP" || continue
4405 # Check for GNU ac_path_EGREP and select it if it is found.
4406 # Check for GNU $ac_path_EGREP
4407 case `"$ac_path_EGREP" --version 2>&1` in
4408 *GNU*)
4409 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4410 *)
4411 ac_count=0
4412 $as_echo_n 0123456789 >"conftest.in"
4413 while :
4414 do
4415 cat "conftest.in" "conftest.in" >"conftest.tmp"
4416 mv "conftest.tmp" "conftest.in"
4417 cp "conftest.in" "conftest.nl"
4418 $as_echo 'EGREP' >> "conftest.nl"
4419 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4421 as_fn_arith $ac_count + 1 && ac_count=$as_val
4422 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4423 # Best one so far, save it but keep looking for a better one
4424 ac_cv_path_EGREP="$ac_path_EGREP"
4425 ac_path_EGREP_max=$ac_count
4426 fi
4427 # 10*(2^10) chars as input seems more than enough
4428 test $ac_count -gt 10 && break
4429 done
4430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4431 esac
4432
4433 $ac_path_EGREP_found && break 3
4434 done
4435 done
4436 done
4437 IFS=$as_save_IFS
4438 if test -z "$ac_cv_path_EGREP"; then
4439 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4440 fi
4441 else
4442 ac_cv_path_EGREP=$EGREP
4443 fi
4444
4445 fi
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4448 $as_echo "$ac_cv_path_EGREP" >&6; }
4449 EGREP="$ac_cv_path_EGREP"
4450
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4453 $as_echo_n "checking for fgrep... " >&6; }
4454 if ${ac_cv_path_FGREP+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4458 then ac_cv_path_FGREP="$GREP -F"
4459 else
4460 if test -z "$FGREP"; then
4461 ac_path_FGREP_found=false
4462 # Loop through the user's path and test for each of PROGNAME-LIST
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4465 do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_prog in fgrep; do
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4471 as_fn_executable_p "$ac_path_FGREP" || continue
4472 # Check for GNU ac_path_FGREP and select it if it is found.
4473 # Check for GNU $ac_path_FGREP
4474 case `"$ac_path_FGREP" --version 2>&1` in
4475 *GNU*)
4476 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4477 *)
4478 ac_count=0
4479 $as_echo_n 0123456789 >"conftest.in"
4480 while :
4481 do
4482 cat "conftest.in" "conftest.in" >"conftest.tmp"
4483 mv "conftest.tmp" "conftest.in"
4484 cp "conftest.in" "conftest.nl"
4485 $as_echo 'FGREP' >> "conftest.nl"
4486 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4488 as_fn_arith $ac_count + 1 && ac_count=$as_val
4489 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4490 # Best one so far, save it but keep looking for a better one
4491 ac_cv_path_FGREP="$ac_path_FGREP"
4492 ac_path_FGREP_max=$ac_count
4493 fi
4494 # 10*(2^10) chars as input seems more than enough
4495 test $ac_count -gt 10 && break
4496 done
4497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4498 esac
4499
4500 $ac_path_FGREP_found && break 3
4501 done
4502 done
4503 done
4504 IFS=$as_save_IFS
4505 if test -z "$ac_cv_path_FGREP"; then
4506 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4507 fi
4508 else
4509 ac_cv_path_FGREP=$FGREP
4510 fi
4511
4512 fi
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4515 $as_echo "$ac_cv_path_FGREP" >&6; }
4516 FGREP="$ac_cv_path_FGREP"
4517
4518
4519 test -z "$GREP" && GREP=grep
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539 # Check whether --with-gnu-ld was given.
4540 if test "${with_gnu_ld+set}" = set; then :
4541 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4542 else
4543 with_gnu_ld=no
4544 fi
4545
4546 ac_prog=ld
4547 if test yes = "$GCC"; then
4548 # Check if gcc -print-prog-name=ld gives a path.
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4550 $as_echo_n "checking for ld used by $CC... " >&6; }
4551 case $host in
4552 *-*-mingw*)
4553 # gcc leaves a trailing carriage return, which upsets mingw
4554 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4555 *)
4556 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4557 esac
4558 case $ac_prog in
4559 # Accept absolute paths.
4560 [\\/]* | ?:[\\/]*)
4561 re_direlt='/[^/][^/]*/\.\./'
4562 # Canonicalize the pathname of ld
4563 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4564 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4565 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4566 done
4567 test -z "$LD" && LD=$ac_prog
4568 ;;
4569 "")
4570 # If it fails, then pretend we aren't using GCC.
4571 ac_prog=ld
4572 ;;
4573 *)
4574 # If it is relative, then search for the first ld in PATH.
4575 with_gnu_ld=unknown
4576 ;;
4577 esac
4578 elif test yes = "$with_gnu_ld"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4580 $as_echo_n "checking for GNU ld... " >&6; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4583 $as_echo_n "checking for non-GNU ld... " >&6; }
4584 fi
4585 if ${lt_cv_path_LD+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if test -z "$LD"; then
4589 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4590 for ac_dir in $PATH; do
4591 IFS=$lt_save_ifs
4592 test -z "$ac_dir" && ac_dir=.
4593 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4594 lt_cv_path_LD=$ac_dir/$ac_prog
4595 # Check to see if the program is GNU ld. I'd rather use --version,
4596 # but apparently some variants of GNU ld only accept -v.
4597 # Break only if it was the GNU/non-GNU ld that we prefer.
4598 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4599 *GNU* | *'with BFD'*)
4600 test no != "$with_gnu_ld" && break
4601 ;;
4602 *)
4603 test yes != "$with_gnu_ld" && break
4604 ;;
4605 esac
4606 fi
4607 done
4608 IFS=$lt_save_ifs
4609 else
4610 lt_cv_path_LD=$LD # Let the user override the test with a path.
4611 fi
4612 fi
4613
4614 LD=$lt_cv_path_LD
4615 if test -n "$LD"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4617 $as_echo "$LD" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4624 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4625 if ${lt_cv_prog_gnu_ld+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4629 case `$LD -v 2>&1 </dev/null` in
4630 *GNU* | *'with BFD'*)
4631 lt_cv_prog_gnu_ld=yes
4632 ;;
4633 *)
4634 lt_cv_prog_gnu_ld=no
4635 ;;
4636 esac
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4639 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4640 with_gnu_ld=$lt_cv_prog_gnu_ld
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4651 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4652 if ${lt_cv_path_NM+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$NM"; then
4656 # Let the user override the test.
4657 lt_cv_path_NM=$NM
4658 else
4659 lt_nm_to_check=${ac_tool_prefix}nm
4660 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4661 lt_nm_to_check="$lt_nm_to_check nm"
4662 fi
4663 for lt_tmp_nm in $lt_nm_to_check; do
4664 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4665 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4666 IFS=$lt_save_ifs
4667 test -z "$ac_dir" && ac_dir=.
4668 tmp_nm=$ac_dir/$lt_tmp_nm
4669 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4670 # Check to see if the nm accepts a BSD-compat flag.
4671 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4672 # nm: unknown option "B" ignored
4673 # Tru64's nm complains that /dev/null is an invalid object file
4674 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4675 case $build_os in
4676 mingw*) lt_bad_file=conftest.nm/nofile ;;
4677 *) lt_bad_file=/dev/null ;;
4678 esac
4679 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4680 *$lt_bad_file* | *'Invalid file or object type'*)
4681 lt_cv_path_NM="$tmp_nm -B"
4682 break 2
4683 ;;
4684 *)
4685 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4686 */dev/null*)
4687 lt_cv_path_NM="$tmp_nm -p"
4688 break 2
4689 ;;
4690 *)
4691 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4692 continue # so that we can try to find one that supports BSD flags
4693 ;;
4694 esac
4695 ;;
4696 esac
4697 fi
4698 done
4699 IFS=$lt_save_ifs
4700 done
4701 : ${lt_cv_path_NM=no}
4702 fi
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4705 $as_echo "$lt_cv_path_NM" >&6; }
4706 if test no != "$lt_cv_path_NM"; then
4707 NM=$lt_cv_path_NM
4708 else
4709 # Didn't find any BSD compatible name lister, look for dumpbin.
4710 if test -n "$DUMPBIN"; then :
4711 # Let the user override the test.
4712 else
4713 if test -n "$ac_tool_prefix"; then
4714 for ac_prog in dumpbin "link -dump"
4715 do
4716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_DUMPBIN+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$DUMPBIN"; then
4724 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 DUMPBIN=$ac_cv_prog_DUMPBIN
4744 if test -n "$DUMPBIN"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4746 $as_echo "$DUMPBIN" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753 test -n "$DUMPBIN" && break
4754 done
4755 fi
4756 if test -z "$DUMPBIN"; then
4757 ac_ct_DUMPBIN=$DUMPBIN
4758 for ac_prog in dumpbin "link -dump"
4759 do
4760 # Extract the first word of "$ac_prog", so it can be a program name with args.
4761 set dummy $ac_prog; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -n "$ac_ct_DUMPBIN"; then
4768 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785 fi
4786 fi
4787 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4788 if test -n "$ac_ct_DUMPBIN"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4790 $as_echo "$ac_ct_DUMPBIN" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4794 fi
4795
4796
4797 test -n "$ac_ct_DUMPBIN" && break
4798 done
4799
4800 if test "x$ac_ct_DUMPBIN" = x; then
4801 DUMPBIN=":"
4802 else
4803 case $cross_compiling:$ac_tool_warned in
4804 yes:)
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807 ac_tool_warned=yes ;;
4808 esac
4809 DUMPBIN=$ac_ct_DUMPBIN
4810 fi
4811 fi
4812
4813 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4814 *COFF*)
4815 DUMPBIN="$DUMPBIN -symbols -headers"
4816 ;;
4817 *)
4818 DUMPBIN=:
4819 ;;
4820 esac
4821 fi
4822
4823 if test : != "$DUMPBIN"; then
4824 NM=$DUMPBIN
4825 fi
4826 fi
4827 test -z "$NM" && NM=nm
4828
4829
4830
4831
4832
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4835 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4836 if ${lt_cv_nm_interface+:} false; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 lt_cv_nm_interface="BSD nm"
4840 echo "int some_variable = 0;" > conftest.$ac_ext
4841 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4842 (eval "$ac_compile" 2>conftest.err)
4843 cat conftest.err >&5
4844 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4845 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4846 cat conftest.err >&5
4847 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4848 cat conftest.out >&5
4849 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4850 lt_cv_nm_interface="MS dumpbin"
4851 fi
4852 rm -f conftest*
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4855 $as_echo "$lt_cv_nm_interface" >&6; }
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4858 $as_echo_n "checking whether ln -s works... " >&6; }
4859 LN_S=$as_ln_s
4860 if test "$LN_S" = "ln -s"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4862 $as_echo "yes" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4865 $as_echo "no, using $LN_S" >&6; }
4866 fi
4867
4868 # find the maximum length of command line arguments
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4870 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4871 if ${lt_cv_sys_max_cmd_len+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 i=0
4875 teststring=ABCD
4876
4877 case $build_os in
4878 msdosdjgpp*)
4879 # On DJGPP, this test can blow up pretty badly due to problems in libc
4880 # (any single argument exceeding 2000 bytes causes a buffer overrun
4881 # during glob expansion). Even if it were fixed, the result of this
4882 # check would be larger than it should be.
4883 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4884 ;;
4885
4886 gnu*)
4887 # Under GNU Hurd, this test is not required because there is
4888 # no limit to the length of command line arguments.
4889 # Libtool will interpret -1 as no limit whatsoever
4890 lt_cv_sys_max_cmd_len=-1;
4891 ;;
4892
4893 cygwin* | mingw* | cegcc*)
4894 # On Win9x/ME, this test blows up -- it succeeds, but takes
4895 # about 5 minutes as the teststring grows exponentially.
4896 # Worse, since 9x/ME are not pre-emptively multitasking,
4897 # you end up with a "frozen" computer, even though with patience
4898 # the test eventually succeeds (with a max line length of 256k).
4899 # Instead, let's just punt: use the minimum linelength reported by
4900 # all of the supported platforms: 8192 (on NT/2K/XP).
4901 lt_cv_sys_max_cmd_len=8192;
4902 ;;
4903
4904 mint*)
4905 # On MiNT this can take a long time and run out of memory.
4906 lt_cv_sys_max_cmd_len=8192;
4907 ;;
4908
4909 amigaos*)
4910 # On AmigaOS with pdksh, this test takes hours, literally.
4911 # So we just punt and use a minimum line length of 8192.
4912 lt_cv_sys_max_cmd_len=8192;
4913 ;;
4914
4915 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4916 # This has been around since 386BSD, at least. Likely further.
4917 if test -x /sbin/sysctl; then
4918 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4919 elif test -x /usr/sbin/sysctl; then
4920 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4921 else
4922 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4923 fi
4924 # And add a safety zone
4925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4927 ;;
4928
4929 interix*)
4930 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4931 lt_cv_sys_max_cmd_len=196608
4932 ;;
4933
4934 os2*)
4935 # The test takes a long time on OS/2.
4936 lt_cv_sys_max_cmd_len=8192
4937 ;;
4938
4939 osf*)
4940 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4941 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4942 # nice to cause kernel panics so lets avoid the loop below.
4943 # First set a reasonable default.
4944 lt_cv_sys_max_cmd_len=16384
4945 #
4946 if test -x /sbin/sysconfig; then
4947 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4948 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4949 esac
4950 fi
4951 ;;
4952 sco3.2v5*)
4953 lt_cv_sys_max_cmd_len=102400
4954 ;;
4955 sysv5* | sco5v6* | sysv4.2uw2*)
4956 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4957 if test -n "$kargmax"; then
4958 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4959 else
4960 lt_cv_sys_max_cmd_len=32768
4961 fi
4962 ;;
4963 *)
4964 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4965 if test -n "$lt_cv_sys_max_cmd_len" && \
4966 test undefined != "$lt_cv_sys_max_cmd_len"; then
4967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4969 else
4970 # Make teststring a little bigger before we do anything with it.
4971 # a 1K string should be a reasonable start.
4972 for i in 1 2 3 4 5 6 7 8; do
4973 teststring=$teststring$teststring
4974 done
4975 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4976 # If test is not a shell built-in, we'll probably end up computing a
4977 # maximum length that is only half of the actual maximum length, but
4978 # we can't tell.
4979 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4980 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4981 test 17 != "$i" # 1/2 MB should be enough
4982 do
4983 i=`expr $i + 1`
4984 teststring=$teststring$teststring
4985 done
4986 # Only check the string length outside the loop.
4987 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4988 teststring=
4989 # Add a significant safety factor because C++ compilers can tack on
4990 # massive amounts of additional arguments before passing them to the
4991 # linker. It appears as though 1/2 is a usable value.
4992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4993 fi
4994 ;;
4995 esac
4996
4997 fi
4998
4999 if test -n "$lt_cv_sys_max_cmd_len"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5001 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5004 $as_echo "none" >&6; }
5005 fi
5006 max_cmd_len=$lt_cv_sys_max_cmd_len
5007
5008
5009
5010
5011
5012
5013 : ${CP="cp -f"}
5014 : ${MV="mv -f"}
5015 : ${RM="rm -f"}
5016
5017 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5018 lt_unset=unset
5019 else
5020 lt_unset=false
5021 fi
5022
5023
5024
5025
5026
5027 # test EBCDIC or ASCII
5028 case `echo X|tr X '\101'` in
5029 A) # ASCII based system
5030 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5031 lt_SP2NL='tr \040 \012'
5032 lt_NL2SP='tr \015\012 \040\040'
5033 ;;
5034 *) # EBCDIC based system
5035 lt_SP2NL='tr \100 \n'
5036 lt_NL2SP='tr \r\n \100\100'
5037 ;;
5038 esac
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5049 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5050 if ${lt_cv_to_host_file_cmd+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 case $host in
5054 *-*-mingw* )
5055 case $build in
5056 *-*-mingw* ) # actually msys
5057 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5058 ;;
5059 *-*-cygwin* )
5060 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5061 ;;
5062 * ) # otherwise, assume *nix
5063 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5064 ;;
5065 esac
5066 ;;
5067 *-*-cygwin* )
5068 case $build in
5069 *-*-mingw* ) # actually msys
5070 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5071 ;;
5072 *-*-cygwin* )
5073 lt_cv_to_host_file_cmd=func_convert_file_noop
5074 ;;
5075 * ) # otherwise, assume *nix
5076 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5077 ;;
5078 esac
5079 ;;
5080 * ) # unhandled hosts (and "normal" native builds)
5081 lt_cv_to_host_file_cmd=func_convert_file_noop
5082 ;;
5083 esac
5084
5085 fi
5086
5087 to_host_file_cmd=$lt_cv_to_host_file_cmd
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5089 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5090
5091
5092
5093
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5096 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5097 if ${lt_cv_to_tool_file_cmd+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 #assume ordinary cross tools, or native build.
5101 lt_cv_to_tool_file_cmd=func_convert_file_noop
5102 case $host in
5103 *-*-mingw* )
5104 case $build in
5105 *-*-mingw* ) # actually msys
5106 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5107 ;;
5108 esac
5109 ;;
5110 esac
5111
5112 fi
5113
5114 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5116 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5117
5118
5119
5120
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5123 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5124 if ${lt_cv_ld_reload_flag+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 lt_cv_ld_reload_flag='-r'
5128 fi
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5130 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5131 reload_flag=$lt_cv_ld_reload_flag
5132 case $reload_flag in
5133 "" | " "*) ;;
5134 *) reload_flag=" $reload_flag" ;;
5135 esac
5136 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5137 case $host_os in
5138 cygwin* | mingw* | pw32* | cegcc*)
5139 if test yes != "$GCC"; then
5140 reload_cmds=false
5141 fi
5142 ;;
5143 darwin*)
5144 if test yes = "$GCC"; then
5145 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5146 else
5147 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5148 fi
5149 ;;
5150 esac
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160 if test -n "$ac_tool_prefix"; then
5161 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5162 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_OBJDUMP+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$OBJDUMP"; then
5169 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 OBJDUMP=$ac_cv_prog_OBJDUMP
5189 if test -n "$OBJDUMP"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5191 $as_echo "$OBJDUMP" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5195 fi
5196
5197
5198 fi
5199 if test -z "$ac_cv_prog_OBJDUMP"; then
5200 ac_ct_OBJDUMP=$OBJDUMP
5201 # Extract the first word of "objdump", so it can be a program name with args.
5202 set dummy objdump; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$ac_ct_OBJDUMP"; then
5209 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222 done
5223 done
5224 IFS=$as_save_IFS
5225
5226 fi
5227 fi
5228 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5229 if test -n "$ac_ct_OBJDUMP"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5231 $as_echo "$ac_ct_OBJDUMP" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5235 fi
5236
5237 if test "x$ac_ct_OBJDUMP" = x; then
5238 OBJDUMP="false"
5239 else
5240 case $cross_compiling:$ac_tool_warned in
5241 yes:)
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5244 ac_tool_warned=yes ;;
5245 esac
5246 OBJDUMP=$ac_ct_OBJDUMP
5247 fi
5248 else
5249 OBJDUMP="$ac_cv_prog_OBJDUMP"
5250 fi
5251
5252 test -z "$OBJDUMP" && OBJDUMP=objdump
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5263 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5264 if ${lt_cv_deplibs_check_method+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 lt_cv_file_magic_cmd='$MAGIC_CMD'
5268 lt_cv_file_magic_test_file=
5269 lt_cv_deplibs_check_method='unknown'
5270 # Need to set the preceding variable on all platforms that support
5271 # interlibrary dependencies.
5272 # 'none' -- dependencies not supported.
5273 # 'unknown' -- same as none, but documents that we really don't know.
5274 # 'pass_all' -- all dependencies passed with no checks.
5275 # 'test_compile' -- check by making test program.
5276 # 'file_magic [[regex]]' -- check by looking for files in library path
5277 # that responds to the $file_magic_cmd with a given extended regex.
5278 # If you have 'file' or equivalent on your system and you're not sure
5279 # whether 'pass_all' will *always* work, you probably want this one.
5280
5281 case $host_os in
5282 aix[4-9]*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285
5286 beos*)
5287 lt_cv_deplibs_check_method=pass_all
5288 ;;
5289
5290 bsdi[45]*)
5291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5292 lt_cv_file_magic_cmd='/usr/bin/file -L'
5293 lt_cv_file_magic_test_file=/shlib/libc.so
5294 ;;
5295
5296 cygwin*)
5297 # func_win32_libid is a shell function defined in ltmain.sh
5298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5299 lt_cv_file_magic_cmd='func_win32_libid'
5300 ;;
5301
5302 mingw* | pw32*)
5303 # Base MSYS/MinGW do not provide the 'file' command needed by
5304 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5305 # unless we find 'file', for example because we are cross-compiling.
5306 if ( file / ) >/dev/null 2>&1; then
5307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5308 lt_cv_file_magic_cmd='func_win32_libid'
5309 else
5310 # Keep this pattern in sync with the one in func_win32_libid.
5311 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5312 lt_cv_file_magic_cmd='$OBJDUMP -f'
5313 fi
5314 ;;
5315
5316 cegcc*)
5317 # use the weaker test based on 'objdump'. See mingw*.
5318 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5319 lt_cv_file_magic_cmd='$OBJDUMP -f'
5320 ;;
5321
5322 darwin* | rhapsody*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326 freebsd* | dragonfly*)
5327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5328 case $host_cpu in
5329 i*86 )
5330 # Not sure whether the presence of OpenBSD here was a mistake.
5331 # Let's accept both of them until this is cleared up.
5332 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5333 lt_cv_file_magic_cmd=/usr/bin/file
5334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5335 ;;
5336 esac
5337 else
5338 lt_cv_deplibs_check_method=pass_all
5339 fi
5340 ;;
5341
5342 haiku*)
5343 lt_cv_deplibs_check_method=pass_all
5344 ;;
5345
5346 hpux10.20* | hpux11*)
5347 lt_cv_file_magic_cmd=/usr/bin/file
5348 case $host_cpu in
5349 ia64*)
5350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5351 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5352 ;;
5353 hppa*64*)
5354 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]'
5355 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5356 ;;
5357 *)
5358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5359 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5360 ;;
5361 esac
5362 ;;
5363
5364 interix[3-9]*)
5365 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5367 ;;
5368
5369 irix5* | irix6* | nonstopux*)
5370 case $LD in
5371 *-32|*"-32 ") libmagic=32-bit;;
5372 *-n32|*"-n32 ") libmagic=N32;;
5373 *-64|*"-64 ") libmagic=64-bit;;
5374 *) libmagic=never-match;;
5375 esac
5376 lt_cv_deplibs_check_method=pass_all
5377 ;;
5378
5379 # This must be glibc/ELF.
5380 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5381 lt_cv_deplibs_check_method=pass_all
5382 ;;
5383
5384 netbsd*)
5385 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5387 else
5388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5389 fi
5390 ;;
5391
5392 newos6*)
5393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5394 lt_cv_file_magic_cmd=/usr/bin/file
5395 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5396 ;;
5397
5398 *nto* | *qnx*)
5399 lt_cv_deplibs_check_method=pass_all
5400 ;;
5401
5402 openbsd* | bitrig*)
5403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5405 else
5406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5407 fi
5408 ;;
5409
5410 osf3* | osf4* | osf5*)
5411 lt_cv_deplibs_check_method=pass_all
5412 ;;
5413
5414 rdos*)
5415 lt_cv_deplibs_check_method=pass_all
5416 ;;
5417
5418 solaris*)
5419 lt_cv_deplibs_check_method=pass_all
5420 ;;
5421
5422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425
5426 sysv4 | sysv4.3*)
5427 case $host_vendor in
5428 motorola)
5429 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]'
5430 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5431 ;;
5432 ncr)
5433 lt_cv_deplibs_check_method=pass_all
5434 ;;
5435 sequent)
5436 lt_cv_file_magic_cmd='/bin/file'
5437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5438 ;;
5439 sni)
5440 lt_cv_file_magic_cmd='/bin/file'
5441 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5442 lt_cv_file_magic_test_file=/lib/libc.so
5443 ;;
5444 siemens)
5445 lt_cv_deplibs_check_method=pass_all
5446 ;;
5447 pc)
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450 esac
5451 ;;
5452
5453 tpf*)
5454 lt_cv_deplibs_check_method=pass_all
5455 ;;
5456 os2*)
5457 lt_cv_deplibs_check_method=pass_all
5458 ;;
5459 esac
5460
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5463 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5464
5465 file_magic_glob=
5466 want_nocaseglob=no
5467 if test "$build" = "$host"; then
5468 case $host_os in
5469 mingw* | pw32*)
5470 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5471 want_nocaseglob=yes
5472 else
5473 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5474 fi
5475 ;;
5476 esac
5477 fi
5478
5479 file_magic_cmd=$lt_cv_file_magic_cmd
5480 deplibs_check_method=$lt_cv_deplibs_check_method
5481 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504 if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5506 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_DLLTOOL+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -n "$DLLTOOL"; then
5513 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526 done
5527 done
5528 IFS=$as_save_IFS
5529
5530 fi
5531 fi
5532 DLLTOOL=$ac_cv_prog_DLLTOOL
5533 if test -n "$DLLTOOL"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5535 $as_echo "$DLLTOOL" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541
5542 fi
5543 if test -z "$ac_cv_prog_DLLTOOL"; then
5544 ac_ct_DLLTOOL=$DLLTOOL
5545 # Extract the first word of "dlltool", so it can be a program name with args.
5546 set dummy dlltool; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if test -n "$ac_ct_DLLTOOL"; then
5553 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5565 fi
5566 done
5567 done
5568 IFS=$as_save_IFS
5569
5570 fi
5571 fi
5572 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5573 if test -n "$ac_ct_DLLTOOL"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5575 $as_echo "$ac_ct_DLLTOOL" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580
5581 if test "x$ac_ct_DLLTOOL" = x; then
5582 DLLTOOL="false"
5583 else
5584 case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5589 esac
5590 DLLTOOL=$ac_ct_DLLTOOL
5591 fi
5592 else
5593 DLLTOOL="$ac_cv_prog_DLLTOOL"
5594 fi
5595
5596 test -z "$DLLTOOL" && DLLTOOL=dlltool
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5608 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5609 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 lt_cv_sharedlib_from_linklib_cmd='unknown'
5613
5614 case $host_os in
5615 cygwin* | mingw* | pw32* | cegcc*)
5616 # two different shell functions defined in ltmain.sh;
5617 # decide which one to use based on capabilities of $DLLTOOL
5618 case `$DLLTOOL --help 2>&1` in
5619 *--identify-strict*)
5620 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5621 ;;
5622 *)
5623 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5624 ;;
5625 esac
5626 ;;
5627 *)
5628 # fallback: assume linklib IS sharedlib
5629 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5630 ;;
5631 esac
5632
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5635 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5636 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5637 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5638
5639
5640
5641
5642
5643
5644
5645
5646 if test -n "$ac_tool_prefix"; then
5647 for ac_prog in ar
5648 do
5649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if ${ac_cv_prog_AR+:} false; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 if test -n "$AR"; then
5657 ac_cv_prog_AR="$AR" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670 done
5671 done
5672 IFS=$as_save_IFS
5673
5674 fi
5675 fi
5676 AR=$ac_cv_prog_AR
5677 if test -n "$AR"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5679 $as_echo "$AR" >&6; }
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 fi
5684
5685
5686 test -n "$AR" && break
5687 done
5688 fi
5689 if test -z "$AR"; then
5690 ac_ct_AR=$AR
5691 for ac_prog in ar
5692 do
5693 # Extract the first word of "$ac_prog", so it can be a program name with args.
5694 set dummy $ac_prog; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -n "$ac_ct_AR"; then
5701 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_ac_ct_AR="$ac_prog"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714 done
5715 done
5716 IFS=$as_save_IFS
5717
5718 fi
5719 fi
5720 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5721 if test -n "$ac_ct_AR"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5723 $as_echo "$ac_ct_AR" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729
5730 test -n "$ac_ct_AR" && break
5731 done
5732
5733 if test "x$ac_ct_AR" = x; then
5734 AR="false"
5735 else
5736 case $cross_compiling:$ac_tool_warned in
5737 yes:)
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5740 ac_tool_warned=yes ;;
5741 esac
5742 AR=$ac_ct_AR
5743 fi
5744 fi
5745
5746 : ${AR=ar}
5747 : ${AR_FLAGS=cru}
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5760 $as_echo_n "checking for archiver @FILE support... " >&6; }
5761 if ${lt_cv_ar_at_file+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 lt_cv_ar_at_file=no
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767
5768 int
5769 main ()
5770 {
5771
5772 ;
5773 return 0;
5774 }
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777 echo conftest.$ac_objext > conftest.lst
5778 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5780 (eval $lt_ar_try) 2>&5
5781 ac_status=$?
5782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783 test $ac_status = 0; }
5784 if test 0 -eq "$ac_status"; then
5785 # Ensure the archiver fails upon bogus file names.
5786 rm -f conftest.$ac_objext libconftest.a
5787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5788 (eval $lt_ar_try) 2>&5
5789 ac_status=$?
5790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791 test $ac_status = 0; }
5792 if test 0 -ne "$ac_status"; then
5793 lt_cv_ar_at_file=@
5794 fi
5795 fi
5796 rm -f conftest.* libconftest.a
5797
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5803 $as_echo "$lt_cv_ar_at_file" >&6; }
5804
5805 if test no = "$lt_cv_ar_at_file"; then
5806 archiver_list_spec=
5807 else
5808 archiver_list_spec=$lt_cv_ar_at_file
5809 fi
5810
5811
5812
5813
5814
5815
5816
5817 if test -n "$ac_tool_prefix"; then
5818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}strip; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_STRIP+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$STRIP"; then
5826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 STRIP=$ac_cv_prog_STRIP
5846 if test -n "$STRIP"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5848 $as_echo "$STRIP" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854
5855 fi
5856 if test -z "$ac_cv_prog_STRIP"; then
5857 ac_ct_STRIP=$STRIP
5858 # Extract the first word of "strip", so it can be a program name with args.
5859 set dummy strip; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -n "$ac_ct_STRIP"; then
5866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_ac_ct_STRIP="strip"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5886 if test -n "$ac_ct_STRIP"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5888 $as_echo "$ac_ct_STRIP" >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894 if test "x$ac_ct_STRIP" = x; then
5895 STRIP=":"
5896 else
5897 case $cross_compiling:$ac_tool_warned in
5898 yes:)
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901 ac_tool_warned=yes ;;
5902 esac
5903 STRIP=$ac_ct_STRIP
5904 fi
5905 else
5906 STRIP="$ac_cv_prog_STRIP"
5907 fi
5908
5909 test -z "$STRIP" && STRIP=:
5910
5911
5912
5913
5914
5915
5916 if test -n "$ac_tool_prefix"; then
5917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_RANLIB+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if test -n "$RANLIB"; then
5925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 RANLIB=$ac_cv_prog_RANLIB
5945 if test -n "$RANLIB"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5947 $as_echo "$RANLIB" >&6; }
5948 else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952
5953
5954 fi
5955 if test -z "$ac_cv_prog_RANLIB"; then
5956 ac_ct_RANLIB=$RANLIB
5957 # Extract the first word of "ranlib", so it can be a program name with args.
5958 set dummy ranlib; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if test -n "$ac_ct_RANLIB"; then
5965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974 ac_cv_prog_ac_ct_RANLIB="ranlib"
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 break 2
5977 fi
5978 done
5979 done
5980 IFS=$as_save_IFS
5981
5982 fi
5983 fi
5984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5985 if test -n "$ac_ct_RANLIB"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5987 $as_echo "$ac_ct_RANLIB" >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992
5993 if test "x$ac_ct_RANLIB" = x; then
5994 RANLIB=":"
5995 else
5996 case $cross_compiling:$ac_tool_warned in
5997 yes:)
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000 ac_tool_warned=yes ;;
6001 esac
6002 RANLIB=$ac_ct_RANLIB
6003 fi
6004 else
6005 RANLIB="$ac_cv_prog_RANLIB"
6006 fi
6007
6008 test -z "$RANLIB" && RANLIB=:
6009
6010
6011
6012
6013
6014
6015 # Determine commands to create old-style static archives.
6016 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6017 old_postinstall_cmds='chmod 644 $oldlib'
6018 old_postuninstall_cmds=
6019
6020 if test -n "$RANLIB"; then
6021 case $host_os in
6022 bitrig* | openbsd*)
6023 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6024 ;;
6025 *)
6026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6027 ;;
6028 esac
6029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6030 fi
6031
6032 case $host_os in
6033 darwin*)
6034 lock_old_archive_extraction=yes ;;
6035 *)
6036 lock_old_archive_extraction=no ;;
6037 esac
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 # If no C compiler was specified, use CC.
6078 LTCC=${LTCC-"$CC"}
6079
6080 # If no C compiler flags were specified, use CFLAGS.
6081 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6082
6083 # Allow CC to be a program name with arguments.
6084 compiler=$CC
6085
6086
6087 # Check for command to grab the raw symbol name followed by C symbol from nm.
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6089 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6090 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093
6094 # These are sane defaults that work on at least a few old systems.
6095 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6096
6097 # Character class describing NM global symbol codes.
6098 symcode='[BCDEGRST]'
6099
6100 # Regexp to match symbols that can be accessed directly from C.
6101 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6102
6103 # Define system-specific variables.
6104 case $host_os in
6105 aix*)
6106 symcode='[BCDT]'
6107 ;;
6108 cygwin* | mingw* | pw32* | cegcc*)
6109 symcode='[ABCDGISTW]'
6110 ;;
6111 hpux*)
6112 if test ia64 = "$host_cpu"; then
6113 symcode='[ABCDEGRST]'
6114 fi
6115 ;;
6116 irix* | nonstopux*)
6117 symcode='[BCDEGRST]'
6118 ;;
6119 osf*)
6120 symcode='[BCDEGQRST]'
6121 ;;
6122 solaris*)
6123 symcode='[BDRT]'
6124 ;;
6125 sco3.2v5*)
6126 symcode='[DT]'
6127 ;;
6128 sysv4.2uw2*)
6129 symcode='[DT]'
6130 ;;
6131 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6132 symcode='[ABDT]'
6133 ;;
6134 sysv4)
6135 symcode='[DFNSTU]'
6136 ;;
6137 esac
6138
6139 # If we're using GNU nm, then use its standard symbol codes.
6140 case `$NM -V 2>&1` in
6141 *GNU* | *'with BFD'*)
6142 symcode='[ABCDGIRSTW]' ;;
6143 esac
6144
6145 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6146 # Gets list of data symbols to import.
6147 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6148 # Adjust the below global symbol transforms to fixup imported variables.
6149 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6150 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6151 lt_c_name_lib_hook="\
6152 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6153 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6154 else
6155 # Disable hooks by default.
6156 lt_cv_sys_global_symbol_to_import=
6157 lt_cdecl_hook=
6158 lt_c_name_hook=
6159 lt_c_name_lib_hook=
6160 fi
6161
6162 # Transform an extracted symbol line into a proper C declaration.
6163 # Some systems (esp. on ia64) link data and code symbols differently,
6164 # so use this general approach.
6165 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6166 $lt_cdecl_hook\
6167 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6168 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6169
6170 # Transform an extracted symbol line into symbol name and symbol address
6171 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6172 $lt_c_name_hook\
6173 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6174 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6175
6176 # Transform an extracted symbol line into symbol name with lib prefix and
6177 # symbol address.
6178 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6179 $lt_c_name_lib_hook\
6180 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6181 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6182 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6183
6184 # Handle CRLF in mingw tool chain
6185 opt_cr=
6186 case $build_os in
6187 mingw*)
6188 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6189 ;;
6190 esac
6191
6192 # Try without a prefix underscore, then with it.
6193 for ac_symprfx in "" "_"; do
6194
6195 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6196 symxfrm="\\1 $ac_symprfx\\2 \\2"
6197
6198 # Write the raw and C identifiers.
6199 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6200 # Fake it for dumpbin and say T for any non-static function,
6201 # D for any global variable and I for any imported variable.
6202 # Also find C++ and __fastcall symbols from MSVC++,
6203 # which start with @ or ?.
6204 lt_cv_sys_global_symbol_pipe="$AWK '"\
6205 " {last_section=section; section=\$ 3};"\
6206 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6207 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6208 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6209 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6210 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6211 " \$ 0!~/External *\|/{next};"\
6212 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6213 " {if(hide[section]) next};"\
6214 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6215 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6216 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6217 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6218 " ' prfx=^$ac_symprfx"
6219 else
6220 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6221 fi
6222 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6223
6224 # Check to see that the pipe works correctly.
6225 pipe_works=no
6226
6227 rm -f conftest*
6228 cat > conftest.$ac_ext <<_LT_EOF
6229 #ifdef __cplusplus
6230 extern "C" {
6231 #endif
6232 char nm_test_var;
6233 void nm_test_func(void);
6234 void nm_test_func(void){}
6235 #ifdef __cplusplus
6236 }
6237 #endif
6238 int main(){nm_test_var='a';nm_test_func();return(0);}
6239 _LT_EOF
6240
6241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6242 (eval $ac_compile) 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; }; then
6246 # Now try to grab the symbols.
6247 nlist=conftest.nm
6248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6249 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6250 ac_status=$?
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; } && test -s "$nlist"; then
6253 # Try sorting and uniquifying the output.
6254 if sort "$nlist" | uniq > "$nlist"T; then
6255 mv -f "$nlist"T "$nlist"
6256 else
6257 rm -f "$nlist"T
6258 fi
6259
6260 # Make sure that we snagged all the symbols we need.
6261 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6262 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6263 cat <<_LT_EOF > conftest.$ac_ext
6264 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6265 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6266 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6267 relocations are performed -- see ld's documentation on pseudo-relocs. */
6268 # define LT_DLSYM_CONST
6269 #elif defined __osf__
6270 /* This system does not cope well with relocations in const data. */
6271 # define LT_DLSYM_CONST
6272 #else
6273 # define LT_DLSYM_CONST const
6274 #endif
6275
6276 #ifdef __cplusplus
6277 extern "C" {
6278 #endif
6279
6280 _LT_EOF
6281 # Now generate the symbol file.
6282 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6283
6284 cat <<_LT_EOF >> conftest.$ac_ext
6285
6286 /* The mapping between symbol names and symbols. */
6287 LT_DLSYM_CONST struct {
6288 const char *name;
6289 void *address;
6290 }
6291 lt__PROGRAM__LTX_preloaded_symbols[] =
6292 {
6293 { "@PROGRAM@", (void *) 0 },
6294 _LT_EOF
6295 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6296 cat <<\_LT_EOF >> conftest.$ac_ext
6297 {0, (void *) 0}
6298 };
6299
6300 /* This works around a problem in FreeBSD linker */
6301 #ifdef FREEBSD_WORKAROUND
6302 static const void *lt_preloaded_setup() {
6303 return lt__PROGRAM__LTX_preloaded_symbols;
6304 }
6305 #endif
6306
6307 #ifdef __cplusplus
6308 }
6309 #endif
6310 _LT_EOF
6311 # Now try linking the two files.
6312 mv conftest.$ac_objext conftstm.$ac_objext
6313 lt_globsym_save_LIBS=$LIBS
6314 lt_globsym_save_CFLAGS=$CFLAGS
6315 LIBS=conftstm.$ac_objext
6316 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6318 (eval $ac_link) 2>&5
6319 ac_status=$?
6320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6321 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6322 pipe_works=yes
6323 fi
6324 LIBS=$lt_globsym_save_LIBS
6325 CFLAGS=$lt_globsym_save_CFLAGS
6326 else
6327 echo "cannot find nm_test_func in $nlist" >&5
6328 fi
6329 else
6330 echo "cannot find nm_test_var in $nlist" >&5
6331 fi
6332 else
6333 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6334 fi
6335 else
6336 echo "$progname: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6338 fi
6339 rm -rf conftest* conftst*
6340
6341 # Do not use the global_symbol_pipe unless it works.
6342 if test yes = "$pipe_works"; then
6343 break
6344 else
6345 lt_cv_sys_global_symbol_pipe=
6346 fi
6347 done
6348
6349 fi
6350
6351 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6352 lt_cv_sys_global_symbol_to_cdecl=
6353 fi
6354 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6356 $as_echo "failed" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6359 $as_echo "ok" >&6; }
6360 fi
6361
6362 # Response file support.
6363 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6364 nm_file_list_spec='@'
6365 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6366 nm_file_list_spec='@'
6367 fi
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6406 $as_echo_n "checking for sysroot... " >&6; }
6407
6408 # Check whether --with-sysroot was given.
6409 if test "${with_sysroot+set}" = set; then :
6410 withval=$with_sysroot;
6411 else
6412 with_sysroot=no
6413 fi
6414
6415
6416 lt_sysroot=
6417 case $with_sysroot in #(
6418 yes)
6419 if test yes = "$GCC"; then
6420 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6421 fi
6422 ;; #(
6423 /*)
6424 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6425 ;; #(
6426 no|'')
6427 ;; #(
6428 *)
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6430 $as_echo "$with_sysroot" >&6; }
6431 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6432 ;;
6433 esac
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6436 $as_echo "${lt_sysroot:-no}" >&6; }
6437
6438
6439
6440
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6443 $as_echo_n "checking for a working dd... " >&6; }
6444 if ${ac_cv_path_lt_DD+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 printf 0123456789abcdef0123456789abcdef >conftest.i
6448 cat conftest.i conftest.i >conftest2.i
6449 : ${lt_DD:=$DD}
6450 if test -z "$lt_DD"; then
6451 ac_path_lt_DD_found=false
6452 # Loop through the user's path and test for each of PROGNAME-LIST
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_prog in dd; do
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6461 as_fn_executable_p "$ac_path_lt_DD" || continue
6462 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6463 cmp -s conftest.i conftest.out \
6464 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6465 fi
6466 $ac_path_lt_DD_found && break 3
6467 done
6468 done
6469 done
6470 IFS=$as_save_IFS
6471 if test -z "$ac_cv_path_lt_DD"; then
6472 :
6473 fi
6474 else
6475 ac_cv_path_lt_DD=$lt_DD
6476 fi
6477
6478 rm -f conftest.i conftest2.i conftest.out
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6481 $as_echo "$ac_cv_path_lt_DD" >&6; }
6482
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6485 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6486 if ${lt_cv_truncate_bin+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 printf 0123456789abcdef0123456789abcdef >conftest.i
6490 cat conftest.i conftest.i >conftest2.i
6491 lt_cv_truncate_bin=
6492 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6493 cmp -s conftest.i conftest.out \
6494 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6495 fi
6496 rm -f conftest.i conftest2.i conftest.out
6497 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6498 fi
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6500 $as_echo "$lt_cv_truncate_bin" >&6; }
6501
6502
6503
6504
6505
6506
6507 # Check whether --enable-libtool-lock was given.
6508 if test "${enable_libtool_lock+set}" = set; then :
6509 enableval=$enable_libtool_lock;
6510 fi
6511
6512 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6513
6514 # Some flags need to be propagated to the compiler or linker for good
6515 # libtool support.
6516 case $host in
6517 ia64-*-hpux*)
6518 # Find out what ABI is being produced by ac_compile, and set mode
6519 # options accordingly.
6520 echo 'int i;' > conftest.$ac_ext
6521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6522 (eval $ac_compile) 2>&5
6523 ac_status=$?
6524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6525 test $ac_status = 0; }; then
6526 case `/usr/bin/file conftest.$ac_objext` in
6527 *ELF-32*)
6528 HPUX_IA64_MODE=32
6529 ;;
6530 *ELF-64*)
6531 HPUX_IA64_MODE=64
6532 ;;
6533 esac
6534 fi
6535 rm -rf conftest*
6536 ;;
6537 *-*-irix6*)
6538 # Find out what ABI is being produced by ac_compile, and set linker
6539 # options accordingly.
6540 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6542 (eval $ac_compile) 2>&5
6543 ac_status=$?
6544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545 test $ac_status = 0; }; then
6546 if test yes = "$lt_cv_prog_gnu_ld"; then
6547 case `/usr/bin/file conftest.$ac_objext` in
6548 *32-bit*)
6549 LD="${LD-ld} -melf32bsmip"
6550 ;;
6551 *N32*)
6552 LD="${LD-ld} -melf32bmipn32"
6553 ;;
6554 *64-bit*)
6555 LD="${LD-ld} -melf64bmip"
6556 ;;
6557 esac
6558 else
6559 case `/usr/bin/file conftest.$ac_objext` in
6560 *32-bit*)
6561 LD="${LD-ld} -32"
6562 ;;
6563 *N32*)
6564 LD="${LD-ld} -n32"
6565 ;;
6566 *64-bit*)
6567 LD="${LD-ld} -64"
6568 ;;
6569 esac
6570 fi
6571 fi
6572 rm -rf conftest*
6573 ;;
6574
6575 mips64*-*linux*)
6576 # Find out what ABI is being produced by ac_compile, and set linker
6577 # options accordingly.
6578 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6580 (eval $ac_compile) 2>&5
6581 ac_status=$?
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; }; then
6584 emul=elf
6585 case `/usr/bin/file conftest.$ac_objext` in
6586 *32-bit*)
6587 emul="${emul}32"
6588 ;;
6589 *64-bit*)
6590 emul="${emul}64"
6591 ;;
6592 esac
6593 case `/usr/bin/file conftest.$ac_objext` in
6594 *MSB*)
6595 emul="${emul}btsmip"
6596 ;;
6597 *LSB*)
6598 emul="${emul}ltsmip"
6599 ;;
6600 esac
6601 case `/usr/bin/file conftest.$ac_objext` in
6602 *N32*)
6603 emul="${emul}n32"
6604 ;;
6605 esac
6606 LD="${LD-ld} -m $emul"
6607 fi
6608 rm -rf conftest*
6609 ;;
6610
6611 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6612 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6613 # Find out what ABI is being produced by ac_compile, and set linker
6614 # options accordingly. Note that the listed cases only cover the
6615 # situations where additional linker options are needed (such as when
6616 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6617 # vice versa); the common cases where no linker options are needed do
6618 # not appear in the list.
6619 echo 'int i;' > conftest.$ac_ext
6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621 (eval $ac_compile) 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 case `/usr/bin/file conftest.o` in
6626 *32-bit*)
6627 case $host in
6628 x86_64-*kfreebsd*-gnu)
6629 LD="${LD-ld} -m elf_i386_fbsd"
6630 ;;
6631 x86_64-*linux*)
6632 case `/usr/bin/file conftest.o` in
6633 *x86-64*)
6634 LD="${LD-ld} -m elf32_x86_64"
6635 ;;
6636 *)
6637 LD="${LD-ld} -m elf_i386"
6638 ;;
6639 esac
6640 ;;
6641 powerpc64le-*linux*)
6642 LD="${LD-ld} -m elf32lppclinux"
6643 ;;
6644 powerpc64-*linux*)
6645 LD="${LD-ld} -m elf32ppclinux"
6646 ;;
6647 s390x-*linux*)
6648 LD="${LD-ld} -m elf_s390"
6649 ;;
6650 sparc64-*linux*)
6651 LD="${LD-ld} -m elf32_sparc"
6652 ;;
6653 esac
6654 ;;
6655 *64-bit*)
6656 case $host in
6657 x86_64-*kfreebsd*-gnu)
6658 LD="${LD-ld} -m elf_x86_64_fbsd"
6659 ;;
6660 x86_64-*linux*)
6661 LD="${LD-ld} -m elf_x86_64"
6662 ;;
6663 powerpcle-*linux*)
6664 LD="${LD-ld} -m elf64lppc"
6665 ;;
6666 powerpc-*linux*)
6667 LD="${LD-ld} -m elf64ppc"
6668 ;;
6669 s390*-*linux*|s390*-*tpf*)
6670 LD="${LD-ld} -m elf64_s390"
6671 ;;
6672 sparc*-*linux*)
6673 LD="${LD-ld} -m elf64_sparc"
6674 ;;
6675 esac
6676 ;;
6677 esac
6678 fi
6679 rm -rf conftest*
6680 ;;
6681
6682 *-*-sco3.2v5*)
6683 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6684 SAVE_CFLAGS=$CFLAGS
6685 CFLAGS="$CFLAGS -belf"
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6687 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6688 if ${lt_cv_cc_needs_belf+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 ac_ext=c
6692 ac_cpp='$CPP $CPPFLAGS'
6693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6696
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699
6700 int
6701 main ()
6702 {
6703
6704 ;
6705 return 0;
6706 }
6707 _ACEOF
6708 if ac_fn_c_try_link "$LINENO"; then :
6709 lt_cv_cc_needs_belf=yes
6710 else
6711 lt_cv_cc_needs_belf=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
6715 ac_ext=c
6716 ac_cpp='$CPP $CPPFLAGS'
6717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6720
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6723 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6724 if test yes != "$lt_cv_cc_needs_belf"; then
6725 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6726 CFLAGS=$SAVE_CFLAGS
6727 fi
6728 ;;
6729 *-*solaris*)
6730 # Find out what ABI is being produced by ac_compile, and set linker
6731 # options accordingly.
6732 echo 'int i;' > conftest.$ac_ext
6733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6734 (eval $ac_compile) 2>&5
6735 ac_status=$?
6736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6737 test $ac_status = 0; }; then
6738 case `/usr/bin/file conftest.o` in
6739 *64-bit*)
6740 case $lt_cv_prog_gnu_ld in
6741 yes*)
6742 case $host in
6743 i?86-*-solaris*|x86_64-*-solaris*)
6744 LD="${LD-ld} -m elf_x86_64"
6745 ;;
6746 sparc*-*-solaris*)
6747 LD="${LD-ld} -m elf64_sparc"
6748 ;;
6749 esac
6750 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6751 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6752 LD=${LD-ld}_sol2
6753 fi
6754 ;;
6755 *)
6756 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6757 LD="${LD-ld} -64"
6758 fi
6759 ;;
6760 esac
6761 ;;
6762 esac
6763 fi
6764 rm -rf conftest*
6765 ;;
6766 esac
6767
6768 need_locks=$enable_libtool_lock
6769
6770 if test -n "$ac_tool_prefix"; then
6771 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}mt; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 if test -n "$MANIFEST_TOOL"; then
6779 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6791 fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6799 if test -n "$MANIFEST_TOOL"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6801 $as_echo "$MANIFEST_TOOL" >&6; }
6802 else
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807
6808 fi
6809 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6810 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6811 # Extract the first word of "mt", so it can be a program name with args.
6812 set dummy mt; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 if test -n "$ac_ct_MANIFEST_TOOL"; then
6819 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6839 if test -n "$ac_ct_MANIFEST_TOOL"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6841 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6848 MANIFEST_TOOL=":"
6849 else
6850 case $cross_compiling:$ac_tool_warned in
6851 yes:)
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6854 ac_tool_warned=yes ;;
6855 esac
6856 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6857 fi
6858 else
6859 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6860 fi
6861
6862 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6864 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6865 if ${lt_cv_path_mainfest_tool+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 lt_cv_path_mainfest_tool=no
6869 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6870 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6871 cat conftest.err >&5
6872 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6873 lt_cv_path_mainfest_tool=yes
6874 fi
6875 rm -f conftest*
6876 fi
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6878 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6879 if test yes != "$lt_cv_path_mainfest_tool"; then
6880 MANIFEST_TOOL=:
6881 fi
6882
6883
6884
6885
6886
6887
6888 case $host_os in
6889 rhapsody* | darwin*)
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$DSYMUTIL"; then
6899 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6919 if test -n "$DSYMUTIL"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6921 $as_echo "$DSYMUTIL" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927
6928 fi
6929 if test -z "$ac_cv_prog_DSYMUTIL"; then
6930 ac_ct_DSYMUTIL=$DSYMUTIL
6931 # Extract the first word of "dsymutil", so it can be a program name with args.
6932 set dummy dsymutil; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 if test -n "$ac_ct_DSYMUTIL"; then
6939 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6959 if test -n "$ac_ct_DSYMUTIL"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6961 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967 if test "x$ac_ct_DSYMUTIL" = x; then
6968 DSYMUTIL=":"
6969 else
6970 case $cross_compiling:$ac_tool_warned in
6971 yes:)
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6975 esac
6976 DSYMUTIL=$ac_ct_DSYMUTIL
6977 fi
6978 else
6979 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6980 fi
6981
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_prog_NMEDIT+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 if test -n "$NMEDIT"; then
6991 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 NMEDIT=$ac_cv_prog_NMEDIT
7011 if test -n "$NMEDIT"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7013 $as_echo "$NMEDIT" >&6; }
7014 else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7018
7019
7020 fi
7021 if test -z "$ac_cv_prog_NMEDIT"; then
7022 ac_ct_NMEDIT=$NMEDIT
7023 # Extract the first word of "nmedit", so it can be a program name with args.
7024 set dummy nmedit; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 if test -n "$ac_ct_NMEDIT"; then
7031 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 break 2
7043 fi
7044 done
7045 done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7051 if test -n "$ac_ct_NMEDIT"; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7053 $as_echo "$ac_ct_NMEDIT" >&6; }
7054 else
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7057 fi
7058
7059 if test "x$ac_ct_NMEDIT" = x; then
7060 NMEDIT=":"
7061 else
7062 case $cross_compiling:$ac_tool_warned in
7063 yes:)
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066 ac_tool_warned=yes ;;
7067 esac
7068 NMEDIT=$ac_ct_NMEDIT
7069 fi
7070 else
7071 NMEDIT="$ac_cv_prog_NMEDIT"
7072 fi
7073
7074 if test -n "$ac_tool_prefix"; then
7075 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7076 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_LIPO+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 if test -n "$LIPO"; then
7083 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 LIPO=$ac_cv_prog_LIPO
7103 if test -n "$LIPO"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7105 $as_echo "$LIPO" >&6; }
7106 else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111
7112 fi
7113 if test -z "$ac_cv_prog_LIPO"; then
7114 ac_ct_LIPO=$LIPO
7115 # Extract the first word of "lipo", so it can be a program name with args.
7116 set dummy lipo; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 if test -n "$ac_ct_LIPO"; then
7123 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_prog_ac_ct_LIPO="lipo"
7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7135 fi
7136 done
7137 done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7143 if test -n "$ac_ct_LIPO"; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7145 $as_echo "$ac_ct_LIPO" >&6; }
7146 else
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151 if test "x$ac_ct_LIPO" = x; then
7152 LIPO=":"
7153 else
7154 case $cross_compiling:$ac_tool_warned in
7155 yes:)
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160 LIPO=$ac_ct_LIPO
7161 fi
7162 else
7163 LIPO="$ac_cv_prog_LIPO"
7164 fi
7165
7166 if test -n "$ac_tool_prefix"; then
7167 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7168 set dummy ${ac_tool_prefix}otool; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if ${ac_cv_prog_OTOOL+:} false; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 if test -n "$OTOOL"; then
7175 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 OTOOL=$ac_cv_prog_OTOOL
7195 if test -n "$OTOOL"; then
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7197 $as_echo "$OTOOL" >&6; }
7198 else
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7201 fi
7202
7203
7204 fi
7205 if test -z "$ac_cv_prog_OTOOL"; then
7206 ac_ct_OTOOL=$OTOOL
7207 # Extract the first word of "otool", so it can be a program name with args.
7208 set dummy otool; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 if test -n "$ac_ct_OTOOL"; then
7215 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_ac_ct_OTOOL="otool"
7225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228 done
7229 done
7230 IFS=$as_save_IFS
7231
7232 fi
7233 fi
7234 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7235 if test -n "$ac_ct_OTOOL"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7237 $as_echo "$ac_ct_OTOOL" >&6; }
7238 else
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242
7243 if test "x$ac_ct_OTOOL" = x; then
7244 OTOOL=":"
7245 else
7246 case $cross_compiling:$ac_tool_warned in
7247 yes:)
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250 ac_tool_warned=yes ;;
7251 esac
7252 OTOOL=$ac_ct_OTOOL
7253 fi
7254 else
7255 OTOOL="$ac_cv_prog_OTOOL"
7256 fi
7257
7258 if test -n "$ac_tool_prefix"; then
7259 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7260 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_OTOOL64+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 if test -n "$OTOOL64"; then
7267 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 OTOOL64=$ac_cv_prog_OTOOL64
7287 if test -n "$OTOOL64"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7289 $as_echo "$OTOOL64" >&6; }
7290 else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295
7296 fi
7297 if test -z "$ac_cv_prog_OTOOL64"; then
7298 ac_ct_OTOOL64=$OTOOL64
7299 # Extract the first word of "otool64", so it can be a program name with args.
7300 set dummy otool64; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 if test -n "$ac_ct_OTOOL64"; then
7307 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316 ac_cv_prog_ac_ct_OTOOL64="otool64"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7327 if test -n "$ac_ct_OTOOL64"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7329 $as_echo "$ac_ct_OTOOL64" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335 if test "x$ac_ct_OTOOL64" = x; then
7336 OTOOL64=":"
7337 else
7338 case $cross_compiling:$ac_tool_warned in
7339 yes:)
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7342 ac_tool_warned=yes ;;
7343 esac
7344 OTOOL64=$ac_ct_OTOOL64
7345 fi
7346 else
7347 OTOOL64="$ac_cv_prog_OTOOL64"
7348 fi
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7377 $as_echo_n "checking for -single_module linker flag... " >&6; }
7378 if ${lt_cv_apple_cc_single_mod+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 lt_cv_apple_cc_single_mod=no
7382 if test -z "$LT_MULTI_MODULE"; then
7383 # By default we will add the -single_module flag. You can override
7384 # by either setting the environment variable LT_MULTI_MODULE
7385 # non-empty at configure time, or by adding -multi_module to the
7386 # link flags.
7387 rm -rf libconftest.dylib*
7388 echo "int foo(void){return 1;}" > conftest.c
7389 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7390 -dynamiclib -Wl,-single_module conftest.c" >&5
7391 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7392 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7393 _lt_result=$?
7394 # If there is a non-empty error log, and "single_module"
7395 # appears in it, assume the flag caused a linker warning
7396 if test -s conftest.err && $GREP single_module conftest.err; then
7397 cat conftest.err >&5
7398 # Otherwise, if the output was created with a 0 exit code from
7399 # the compiler, it worked.
7400 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7401 lt_cv_apple_cc_single_mod=yes
7402 else
7403 cat conftest.err >&5
7404 fi
7405 rm -rf libconftest.dylib*
7406 rm -f conftest.*
7407 fi
7408 fi
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7410 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7411
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7413 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7414 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 lt_cv_ld_exported_symbols_list=no
7418 save_LDFLAGS=$LDFLAGS
7419 echo "_main" > conftest.sym
7420 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423
7424 int
7425 main ()
7426 {
7427
7428 ;
7429 return 0;
7430 }
7431 _ACEOF
7432 if ac_fn_c_try_link "$LINENO"; then :
7433 lt_cv_ld_exported_symbols_list=yes
7434 else
7435 lt_cv_ld_exported_symbols_list=no
7436 fi
7437 rm -f core conftest.err conftest.$ac_objext \
7438 conftest$ac_exeext conftest.$ac_ext
7439 LDFLAGS=$save_LDFLAGS
7440
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7443 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7444
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7446 $as_echo_n "checking for -force_load linker flag... " >&6; }
7447 if ${lt_cv_ld_force_load+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 lt_cv_ld_force_load=no
7451 cat > conftest.c << _LT_EOF
7452 int forced_loaded() { return 2;}
7453 _LT_EOF
7454 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7455 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7456 echo "$AR cru libconftest.a conftest.o" >&5
7457 $AR cru libconftest.a conftest.o 2>&5
7458 echo "$RANLIB libconftest.a" >&5
7459 $RANLIB libconftest.a 2>&5
7460 cat > conftest.c << _LT_EOF
7461 int main() { return 0;}
7462 _LT_EOF
7463 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7464 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7465 _lt_result=$?
7466 if test -s conftest.err && $GREP force_load conftest.err; then
7467 cat conftest.err >&5
7468 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7469 lt_cv_ld_force_load=yes
7470 else
7471 cat conftest.err >&5
7472 fi
7473 rm -f conftest.err libconftest.a conftest conftest.c
7474 rm -rf conftest.dSYM
7475
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7478 $as_echo "$lt_cv_ld_force_load" >&6; }
7479 case $host_os in
7480 rhapsody* | darwin1.[012])
7481 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7482 darwin1.*)
7483 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7484 darwin*) # darwin 5.x on
7485 # if running on 10.5 or later, the deployment target defaults
7486 # to the OS version, if on x86, and 10.4, the deployment
7487 # target defaults to 10.4. Don't you love it?
7488 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7489 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7490 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7491 10.[012][,.]*)
7492 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7493 10.*)
7494 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7495 esac
7496 ;;
7497 esac
7498 if test yes = "$lt_cv_apple_cc_single_mod"; then
7499 _lt_dar_single_mod='$single_module'
7500 fi
7501 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7502 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7503 else
7504 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7505 fi
7506 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7507 _lt_dsymutil='~$DSYMUTIL $lib || :'
7508 else
7509 _lt_dsymutil=
7510 fi
7511 ;;
7512 esac
7513
7514 ac_ext=c
7515 ac_cpp='$CPP $CPPFLAGS'
7516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7520 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7521 # On Suns, sometimes $CPP names a directory.
7522 if test -n "$CPP" && test -d "$CPP"; then
7523 CPP=
7524 fi
7525 if test -z "$CPP"; then
7526 if ${ac_cv_prog_CPP+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 # Double quotes because CPP needs to be expanded
7530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7531 do
7532 ac_preproc_ok=false
7533 for ac_c_preproc_warn_flag in '' yes
7534 do
7535 # Use a header file that comes with gcc, so configuring glibc
7536 # with a fresh cross-compiler works.
7537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7538 # <limits.h> exists even on freestanding compilers.
7539 # On the NeXT, cc -E runs the code through the compiler's parser,
7540 # not just through cpp. "Syntax error" is here to catch this case.
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #ifdef __STDC__
7544 # include <limits.h>
7545 #else
7546 # include <assert.h>
7547 #endif
7548 Syntax error
7549 _ACEOF
7550 if ac_fn_c_try_cpp "$LINENO"; then :
7551
7552 else
7553 # Broken: fails on valid input.
7554 continue
7555 fi
7556 rm -f conftest.err conftest.i conftest.$ac_ext
7557
7558 # OK, works on sane cases. Now check whether nonexistent headers
7559 # can be detected and how.
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562 #include <ac_nonexistent.h>
7563 _ACEOF
7564 if ac_fn_c_try_cpp "$LINENO"; then :
7565 # Broken: success on invalid input.
7566 continue
7567 else
7568 # Passes both tests.
7569 ac_preproc_ok=:
7570 break
7571 fi
7572 rm -f conftest.err conftest.i conftest.$ac_ext
7573
7574 done
7575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7576 rm -f conftest.i conftest.err conftest.$ac_ext
7577 if $ac_preproc_ok; then :
7578 break
7579 fi
7580
7581 done
7582 ac_cv_prog_CPP=$CPP
7583
7584 fi
7585 CPP=$ac_cv_prog_CPP
7586 else
7587 ac_cv_prog_CPP=$CPP
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7590 $as_echo "$CPP" >&6; }
7591 ac_preproc_ok=false
7592 for ac_c_preproc_warn_flag in '' yes
7593 do
7594 # Use a header file that comes with gcc, so configuring glibc
7595 # with a fresh cross-compiler works.
7596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7597 # <limits.h> exists even on freestanding compilers.
7598 # On the NeXT, cc -E runs the code through the compiler's parser,
7599 # not just through cpp. "Syntax error" is here to catch this case.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 #ifdef __STDC__
7603 # include <limits.h>
7604 #else
7605 # include <assert.h>
7606 #endif
7607 Syntax error
7608 _ACEOF
7609 if ac_fn_c_try_cpp "$LINENO"; then :
7610
7611 else
7612 # Broken: fails on valid input.
7613 continue
7614 fi
7615 rm -f conftest.err conftest.i conftest.$ac_ext
7616
7617 # OK, works on sane cases. Now check whether nonexistent headers
7618 # can be detected and how.
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 #include <ac_nonexistent.h>
7622 _ACEOF
7623 if ac_fn_c_try_cpp "$LINENO"; then :
7624 # Broken: success on invalid input.
7625 continue
7626 else
7627 # Passes both tests.
7628 ac_preproc_ok=:
7629 break
7630 fi
7631 rm -f conftest.err conftest.i conftest.$ac_ext
7632
7633 done
7634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7635 rm -f conftest.i conftest.err conftest.$ac_ext
7636 if $ac_preproc_ok; then :
7637
7638 else
7639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7641 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7642 See \`config.log' for more details" "$LINENO" 5; }
7643 fi
7644
7645 ac_ext=c
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650
7651
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7653 $as_echo_n "checking for ANSI C header files... " >&6; }
7654 if ${ac_cv_header_stdc+:} false; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7659 #include <stdlib.h>
7660 #include <stdarg.h>
7661 #include <string.h>
7662 #include <float.h>
7663
7664 int
7665 main ()
7666 {
7667
7668 ;
7669 return 0;
7670 }
7671 _ACEOF
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673 ac_cv_header_stdc=yes
7674 else
7675 ac_cv_header_stdc=no
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678
7679 if test $ac_cv_header_stdc = yes; then
7680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 #include <string.h>
7684
7685 _ACEOF
7686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7687 $EGREP "memchr" >/dev/null 2>&1; then :
7688
7689 else
7690 ac_cv_header_stdc=no
7691 fi
7692 rm -f conftest*
7693
7694 fi
7695
7696 if test $ac_cv_header_stdc = yes; then
7697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700 #include <stdlib.h>
7701
7702 _ACEOF
7703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7704 $EGREP "free" >/dev/null 2>&1; then :
7705
7706 else
7707 ac_cv_header_stdc=no
7708 fi
7709 rm -f conftest*
7710
7711 fi
7712
7713 if test $ac_cv_header_stdc = yes; then
7714 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7715 if test "$cross_compiling" = yes; then :
7716 :
7717 else
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 #include <ctype.h>
7721 #include <stdlib.h>
7722 #if ((' ' & 0x0FF) == 0x020)
7723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7725 #else
7726 # define ISLOWER(c) \
7727 (('a' <= (c) && (c) <= 'i') \
7728 || ('j' <= (c) && (c) <= 'r') \
7729 || ('s' <= (c) && (c) <= 'z'))
7730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7731 #endif
7732
7733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7734 int
7735 main ()
7736 {
7737 int i;
7738 for (i = 0; i < 256; i++)
7739 if (XOR (islower (i), ISLOWER (i))
7740 || toupper (i) != TOUPPER (i))
7741 return 2;
7742 return 0;
7743 }
7744 _ACEOF
7745 if ac_fn_c_try_run "$LINENO"; then :
7746
7747 else
7748 ac_cv_header_stdc=no
7749 fi
7750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7751 conftest.$ac_objext conftest.beam conftest.$ac_ext
7752 fi
7753
7754 fi
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7757 $as_echo "$ac_cv_header_stdc" >&6; }
7758 if test $ac_cv_header_stdc = yes; then
7759
7760 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7761
7762 fi
7763
7764 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7765 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7766 inttypes.h stdint.h unistd.h
7767 do :
7768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7770 "
7771 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7772 cat >>confdefs.h <<_ACEOF
7773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7774 _ACEOF
7775
7776 fi
7777
7778 done
7779
7780
7781 for ac_header in dlfcn.h
7782 do :
7783 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7784 "
7785 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7786 cat >>confdefs.h <<_ACEOF
7787 #define HAVE_DLFCN_H 1
7788 _ACEOF
7789
7790 fi
7791
7792 done
7793
7794
7795
7796
7797
7798 # Set options
7799
7800
7801
7802 enable_dlopen=no
7803
7804
7805 enable_win32_dll=no
7806
7807
7808 # Check whether --enable-shared was given.
7809 if test "${enable_shared+set}" = set; then :
7810 enableval=$enable_shared; p=${PACKAGE-default}
7811 case $enableval in
7812 yes) enable_shared=yes ;;
7813 no) enable_shared=no ;;
7814 *)
7815 enable_shared=no
7816 # Look at the argument we got. We use all the common list separators.
7817 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7818 for pkg in $enableval; do
7819 IFS=$lt_save_ifs
7820 if test "X$pkg" = "X$p"; then
7821 enable_shared=yes
7822 fi
7823 done
7824 IFS=$lt_save_ifs
7825 ;;
7826 esac
7827 else
7828 enable_shared=yes
7829 fi
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839 # Check whether --enable-static was given.
7840 if test "${enable_static+set}" = set; then :
7841 enableval=$enable_static; p=${PACKAGE-default}
7842 case $enableval in
7843 yes) enable_static=yes ;;
7844 no) enable_static=no ;;
7845 *)
7846 enable_static=no
7847 # Look at the argument we got. We use all the common list separators.
7848 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7849 for pkg in $enableval; do
7850 IFS=$lt_save_ifs
7851 if test "X$pkg" = "X$p"; then
7852 enable_static=yes
7853 fi
7854 done
7855 IFS=$lt_save_ifs
7856 ;;
7857 esac
7858 else
7859 enable_static=yes
7860 fi
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 # Check whether --with-pic was given.
7872 if test "${with_pic+set}" = set; then :
7873 withval=$with_pic; lt_p=${PACKAGE-default}
7874 case $withval in
7875 yes|no) pic_mode=$withval ;;
7876 *)
7877 pic_mode=default
7878 # Look at the argument we got. We use all the common list separators.
7879 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7880 for lt_pkg in $withval; do
7881 IFS=$lt_save_ifs
7882 if test "X$lt_pkg" = "X$lt_p"; then
7883 pic_mode=yes
7884 fi
7885 done
7886 IFS=$lt_save_ifs
7887 ;;
7888 esac
7889 else
7890 pic_mode=default
7891 fi
7892
7893
7894
7895
7896
7897
7898
7899
7900 # Check whether --enable-fast-install was given.
7901 if test "${enable_fast_install+set}" = set; then :
7902 enableval=$enable_fast_install; p=${PACKAGE-default}
7903 case $enableval in
7904 yes) enable_fast_install=yes ;;
7905 no) enable_fast_install=no ;;
7906 *)
7907 enable_fast_install=no
7908 # Look at the argument we got. We use all the common list separators.
7909 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7910 for pkg in $enableval; do
7911 IFS=$lt_save_ifs
7912 if test "X$pkg" = "X$p"; then
7913 enable_fast_install=yes
7914 fi
7915 done
7916 IFS=$lt_save_ifs
7917 ;;
7918 esac
7919 else
7920 enable_fast_install=yes
7921 fi
7922
7923
7924
7925
7926
7927
7928
7929
7930 shared_archive_member_spec=
7931 case $host,$enable_shared in
7932 power*-*-aix[5-9]*,yes)
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7934 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7935
7936 # Check whether --with-aix-soname was given.
7937 if test "${with_aix_soname+set}" = set; then :
7938 withval=$with_aix_soname; case $withval in
7939 aix|svr4|both)
7940 ;;
7941 *)
7942 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7943 ;;
7944 esac
7945 lt_cv_with_aix_soname=$with_aix_soname
7946 else
7947 if ${lt_cv_with_aix_soname+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 lt_cv_with_aix_soname=aix
7951 fi
7952
7953 with_aix_soname=$lt_cv_with_aix_soname
7954 fi
7955
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7957 $as_echo "$with_aix_soname" >&6; }
7958 if test aix != "$with_aix_soname"; then
7959 # For the AIX way of multilib, we name the shared archive member
7960 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7961 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7962 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7963 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7964 if test 64 = "${OBJECT_MODE-32}"; then
7965 shared_archive_member_spec=shr_64
7966 else
7967 shared_archive_member_spec=shr
7968 fi
7969 fi
7970 ;;
7971 *)
7972 with_aix_soname=aix
7973 ;;
7974 esac
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985 # This can be used to rebuild libtool when needed
7986 LIBTOOL_DEPS=$ltmain
7987
7988 # Always use our own libtool.
7989 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020 test -z "$LN_S" && LN_S="ln -s"
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035 if test -n "${ZSH_VERSION+set}"; then
8036 setopt NO_GLOB_SUBST
8037 fi
8038
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8040 $as_echo_n "checking for objdir... " >&6; }
8041 if ${lt_cv_objdir+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 rm -f .libs 2>/dev/null
8045 mkdir .libs 2>/dev/null
8046 if test -d .libs; then
8047 lt_cv_objdir=.libs
8048 else
8049 # MS-DOS does not allow filenames that begin with a dot.
8050 lt_cv_objdir=_libs
8051 fi
8052 rmdir .libs 2>/dev/null
8053 fi
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8055 $as_echo "$lt_cv_objdir" >&6; }
8056 objdir=$lt_cv_objdir
8057
8058
8059
8060
8061
8062 cat >>confdefs.h <<_ACEOF
8063 #define LT_OBJDIR "$lt_cv_objdir/"
8064 _ACEOF
8065
8066
8067
8068
8069 case $host_os in
8070 aix3*)
8071 # AIX sometimes has problems with the GCC collect2 program. For some
8072 # reason, if we set the COLLECT_NAMES environment variable, the problems
8073 # vanish in a puff of smoke.
8074 if test set != "${COLLECT_NAMES+set}"; then
8075 COLLECT_NAMES=
8076 export COLLECT_NAMES
8077 fi
8078 ;;
8079 esac
8080
8081 # Global variables:
8082 ofile=libtool
8083 can_build_shared=yes
8084
8085 # All known linkers require a '.a' archive for static linking (except MSVC,
8086 # which needs '.lib').
8087 libext=a
8088
8089 with_gnu_ld=$lt_cv_prog_gnu_ld
8090
8091 old_CC=$CC
8092 old_CFLAGS=$CFLAGS
8093
8094 # Set sane defaults for various variables
8095 test -z "$CC" && CC=cc
8096 test -z "$LTCC" && LTCC=$CC
8097 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8098 test -z "$LD" && LD=ld
8099 test -z "$ac_objext" && ac_objext=o
8100
8101 for cc_temp in $compiler""; do
8102 case $cc_temp in
8103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8105 \-*) ;;
8106 *) break;;
8107 esac
8108 done
8109 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8110
8111
8112 # Only perform the check for file, if the check method requires it
8113 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8114 case $deplibs_check_method in
8115 file_magic*)
8116 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8118 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8119 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 case $MAGIC_CMD in
8123 [\\/*] | ?:[\\/]*)
8124 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8125 ;;
8126 *)
8127 lt_save_MAGIC_CMD=$MAGIC_CMD
8128 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8129 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8130 for ac_dir in $ac_dummy; do
8131 IFS=$lt_save_ifs
8132 test -z "$ac_dir" && ac_dir=.
8133 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8134 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8135 if test -n "$file_magic_test_file"; then
8136 case $deplibs_check_method in
8137 "file_magic "*)
8138 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8139 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8141 $EGREP "$file_magic_regex" > /dev/null; then
8142 :
8143 else
8144 cat <<_LT_EOF 1>&2
8145
8146 *** Warning: the command libtool uses to detect shared libraries,
8147 *** $file_magic_cmd, produces output that libtool cannot recognize.
8148 *** The result is that libtool may fail to recognize shared libraries
8149 *** as such. This will affect the creation of libtool libraries that
8150 *** depend on shared libraries, but programs linked with such libtool
8151 *** libraries will work regardless of this problem. Nevertheless, you
8152 *** may want to report the problem to your system manager and/or to
8153 *** bug-libtool@gnu.org
8154
8155 _LT_EOF
8156 fi ;;
8157 esac
8158 fi
8159 break
8160 fi
8161 done
8162 IFS=$lt_save_ifs
8163 MAGIC_CMD=$lt_save_MAGIC_CMD
8164 ;;
8165 esac
8166 fi
8167
8168 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8169 if test -n "$MAGIC_CMD"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8171 $as_echo "$MAGIC_CMD" >&6; }
8172 else
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8175 fi
8176
8177
8178
8179
8180
8181 if test -z "$lt_cv_path_MAGIC_CMD"; then
8182 if test -n "$ac_tool_prefix"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8184 $as_echo_n "checking for file... " >&6; }
8185 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 case $MAGIC_CMD in
8189 [\\/*] | ?:[\\/]*)
8190 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8191 ;;
8192 *)
8193 lt_save_MAGIC_CMD=$MAGIC_CMD
8194 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8196 for ac_dir in $ac_dummy; do
8197 IFS=$lt_save_ifs
8198 test -z "$ac_dir" && ac_dir=.
8199 if test -f "$ac_dir/file"; then
8200 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8201 if test -n "$file_magic_test_file"; then
8202 case $deplibs_check_method in
8203 "file_magic "*)
8204 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8205 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8207 $EGREP "$file_magic_regex" > /dev/null; then
8208 :
8209 else
8210 cat <<_LT_EOF 1>&2
8211
8212 *** Warning: the command libtool uses to detect shared libraries,
8213 *** $file_magic_cmd, produces output that libtool cannot recognize.
8214 *** The result is that libtool may fail to recognize shared libraries
8215 *** as such. This will affect the creation of libtool libraries that
8216 *** depend on shared libraries, but programs linked with such libtool
8217 *** libraries will work regardless of this problem. Nevertheless, you
8218 *** may want to report the problem to your system manager and/or to
8219 *** bug-libtool@gnu.org
8220
8221 _LT_EOF
8222 fi ;;
8223 esac
8224 fi
8225 break
8226 fi
8227 done
8228 IFS=$lt_save_ifs
8229 MAGIC_CMD=$lt_save_MAGIC_CMD
8230 ;;
8231 esac
8232 fi
8233
8234 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8235 if test -n "$MAGIC_CMD"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8237 $as_echo "$MAGIC_CMD" >&6; }
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 fi
8242
8243
8244 else
8245 MAGIC_CMD=:
8246 fi
8247 fi
8248
8249 fi
8250 ;;
8251 esac
8252
8253 # Use C for the default configuration in the libtool script
8254
8255 lt_save_CC=$CC
8256 ac_ext=c
8257 ac_cpp='$CPP $CPPFLAGS'
8258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8261
8262
8263 # Source file extension for C test sources.
8264 ac_ext=c
8265
8266 # Object file extension for compiled C test sources.
8267 objext=o
8268 objext=$objext
8269
8270 # Code to be used in simple compile tests
8271 lt_simple_compile_test_code="int some_variable = 0;"
8272
8273 # Code to be used in simple link tests
8274 lt_simple_link_test_code='int main(){return(0);}'
8275
8276
8277
8278
8279
8280
8281
8282 # If no C compiler was specified, use CC.
8283 LTCC=${LTCC-"$CC"}
8284
8285 # If no C compiler flags were specified, use CFLAGS.
8286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8287
8288 # Allow CC to be a program name with arguments.
8289 compiler=$CC
8290
8291 # Save the default compiler, since it gets overwritten when the other
8292 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8293 compiler_DEFAULT=$CC
8294
8295 # save warnings/boilerplate of simple test code
8296 ac_outfile=conftest.$ac_objext
8297 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8298 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8299 _lt_compiler_boilerplate=`cat conftest.err`
8300 $RM conftest*
8301
8302 ac_outfile=conftest.$ac_objext
8303 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8304 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8305 _lt_linker_boilerplate=`cat conftest.err`
8306 $RM -r conftest*
8307
8308
8309 if test -n "$compiler"; then
8310
8311 lt_prog_compiler_no_builtin_flag=
8312
8313 if test yes = "$GCC"; then
8314 case $cc_basename in
8315 nvcc*)
8316 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8317 *)
8318 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8319 esac
8320
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8322 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8323 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 lt_cv_prog_compiler_rtti_exceptions=no
8327 ac_outfile=conftest.$ac_objext
8328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8329 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8330 # Insert the option either (1) after the last *FLAGS variable, or
8331 # (2) before a word containing "conftest.", or (3) at the end.
8332 # Note that $ac_compile itself does not contain backslashes and begins
8333 # with a dollar sign (not a hyphen), so the echo should work correctly.
8334 # The option is referenced via a variable to avoid confusing sed.
8335 lt_compile=`echo "$ac_compile" | $SED \
8336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8338 -e 's:$: $lt_compiler_flag:'`
8339 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8340 (eval "$lt_compile" 2>conftest.err)
8341 ac_status=$?
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 if (exit $ac_status) && test -s "$ac_outfile"; then
8345 # The compiler can only warn and ignore the option if not recognized
8346 # So say no if there are warnings other than the usual output.
8347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8349 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8350 lt_cv_prog_compiler_rtti_exceptions=yes
8351 fi
8352 fi
8353 $RM conftest*
8354
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8357 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8358
8359 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8360 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8361 else
8362 :
8363 fi
8364
8365 fi
8366
8367
8368
8369
8370
8371
8372 lt_prog_compiler_wl=
8373 lt_prog_compiler_pic=
8374 lt_prog_compiler_static=
8375
8376
8377 if test yes = "$GCC"; then
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_static='-static'
8380
8381 case $host_os in
8382 aix*)
8383 # All AIX code is PIC.
8384 if test ia64 = "$host_cpu"; then
8385 # AIX 5 now supports IA64 processor
8386 lt_prog_compiler_static='-Bstatic'
8387 fi
8388 lt_prog_compiler_pic='-fPIC'
8389 ;;
8390
8391 amigaos*)
8392 case $host_cpu in
8393 powerpc)
8394 # see comment about AmigaOS4 .so support
8395 lt_prog_compiler_pic='-fPIC'
8396 ;;
8397 m68k)
8398 # FIXME: we need at least 68020 code to build shared libraries, but
8399 # adding the '-m68020' flag to GCC prevents building anything better,
8400 # like '-m68040'.
8401 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8402 ;;
8403 esac
8404 ;;
8405
8406 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8407 # PIC is the default for these OSes.
8408 ;;
8409
8410 mingw* | cygwin* | pw32* | os2* | cegcc*)
8411 # This hack is so that the source file can tell whether it is being
8412 # built for inclusion in a dll (and should export symbols for example).
8413 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8414 # (--disable-auto-import) libraries
8415 lt_prog_compiler_pic='-DDLL_EXPORT'
8416 case $host_os in
8417 os2*)
8418 lt_prog_compiler_static='$wl-static'
8419 ;;
8420 esac
8421 ;;
8422
8423 darwin* | rhapsody*)
8424 # PIC is the default on this platform
8425 # Common symbols not allowed in MH_DYLIB files
8426 lt_prog_compiler_pic='-fno-common'
8427 ;;
8428
8429 haiku*)
8430 # PIC is the default for Haiku.
8431 # The "-static" flag exists, but is broken.
8432 lt_prog_compiler_static=
8433 ;;
8434
8435 hpux*)
8436 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8437 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8438 # sets the default TLS model and affects inlining.
8439 case $host_cpu in
8440 hppa*64*)
8441 # +Z the default
8442 ;;
8443 *)
8444 lt_prog_compiler_pic='-fPIC'
8445 ;;
8446 esac
8447 ;;
8448
8449 interix[3-9]*)
8450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8451 # Instead, we relocate shared libraries at runtime.
8452 ;;
8453
8454 msdosdjgpp*)
8455 # Just because we use GCC doesn't mean we suddenly get shared libraries
8456 # on systems that don't support them.
8457 lt_prog_compiler_can_build_shared=no
8458 enable_shared=no
8459 ;;
8460
8461 *nto* | *qnx*)
8462 # QNX uses GNU C++, but need to define -shared option too, otherwise
8463 # it will coredump.
8464 lt_prog_compiler_pic='-fPIC -shared'
8465 ;;
8466
8467 sysv4*MP*)
8468 if test -d /usr/nec; then
8469 lt_prog_compiler_pic=-Kconform_pic
8470 fi
8471 ;;
8472
8473 *)
8474 lt_prog_compiler_pic='-fPIC'
8475 ;;
8476 esac
8477
8478 case $cc_basename in
8479 nvcc*) # Cuda Compiler Driver 2.2
8480 lt_prog_compiler_wl='-Xlinker '
8481 if test -n "$lt_prog_compiler_pic"; then
8482 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8483 fi
8484 ;;
8485 esac
8486 else
8487 # PORTME Check for flag to pass linker flags through the system compiler.
8488 case $host_os in
8489 aix*)
8490 lt_prog_compiler_wl='-Wl,'
8491 if test ia64 = "$host_cpu"; then
8492 # AIX 5 now supports IA64 processor
8493 lt_prog_compiler_static='-Bstatic'
8494 else
8495 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8496 fi
8497 ;;
8498
8499 darwin* | rhapsody*)
8500 # PIC is the default on this platform
8501 # Common symbols not allowed in MH_DYLIB files
8502 lt_prog_compiler_pic='-fno-common'
8503 case $cc_basename in
8504 nagfor*)
8505 # NAG Fortran compiler
8506 lt_prog_compiler_wl='-Wl,-Wl,,'
8507 lt_prog_compiler_pic='-PIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 ;;
8510 esac
8511 ;;
8512
8513 mingw* | cygwin* | pw32* | os2* | cegcc*)
8514 # This hack is so that the source file can tell whether it is being
8515 # built for inclusion in a dll (and should export symbols for example).
8516 lt_prog_compiler_pic='-DDLL_EXPORT'
8517 case $host_os in
8518 os2*)
8519 lt_prog_compiler_static='$wl-static'
8520 ;;
8521 esac
8522 ;;
8523
8524 hpux9* | hpux10* | hpux11*)
8525 lt_prog_compiler_wl='-Wl,'
8526 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8527 # not for PA HP-UX.
8528 case $host_cpu in
8529 hppa*64*|ia64*)
8530 # +Z the default
8531 ;;
8532 *)
8533 lt_prog_compiler_pic='+Z'
8534 ;;
8535 esac
8536 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8537 lt_prog_compiler_static='$wl-a ${wl}archive'
8538 ;;
8539
8540 irix5* | irix6* | nonstopux*)
8541 lt_prog_compiler_wl='-Wl,'
8542 # PIC (with -KPIC) is the default.
8543 lt_prog_compiler_static='-non_shared'
8544 ;;
8545
8546 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8547 case $cc_basename in
8548 # old Intel for x86_64, which still supported -KPIC.
8549 ecc*)
8550 lt_prog_compiler_wl='-Wl,'
8551 lt_prog_compiler_pic='-KPIC'
8552 lt_prog_compiler_static='-static'
8553 ;;
8554 # icc used to be incompatible with GCC.
8555 # ICC 10 doesn't accept -KPIC any more.
8556 icc* | ifort*)
8557 lt_prog_compiler_wl='-Wl,'
8558 lt_prog_compiler_pic='-fPIC'
8559 lt_prog_compiler_static='-static'
8560 ;;
8561 # Lahey Fortran 8.1.
8562 lf95*)
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='--shared'
8565 lt_prog_compiler_static='--static'
8566 ;;
8567 nagfor*)
8568 # NAG Fortran compiler
8569 lt_prog_compiler_wl='-Wl,-Wl,,'
8570 lt_prog_compiler_pic='-PIC'
8571 lt_prog_compiler_static='-Bstatic'
8572 ;;
8573 tcc*)
8574 # Fabrice Bellard et al's Tiny C Compiler
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-fPIC'
8577 lt_prog_compiler_static='-static'
8578 ;;
8579 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8580 # Portland Group compilers (*not* the Pentium gcc compiler,
8581 # which looks to be a dead project)
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_pic='-fpic'
8584 lt_prog_compiler_static='-Bstatic'
8585 ;;
8586 ccc*)
8587 lt_prog_compiler_wl='-Wl,'
8588 # All Alpha code is PIC.
8589 lt_prog_compiler_static='-non_shared'
8590 ;;
8591 xl* | bgxl* | bgf* | mpixl*)
8592 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-qpic'
8595 lt_prog_compiler_static='-qstaticlink'
8596 ;;
8597 *)
8598 case `$CC -V 2>&1 | sed 5q` in
8599 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8600 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8601 lt_prog_compiler_pic='-KPIC'
8602 lt_prog_compiler_static='-Bstatic'
8603 lt_prog_compiler_wl=''
8604 ;;
8605 *Sun\ F* | *Sun*Fortran*)
8606 lt_prog_compiler_pic='-KPIC'
8607 lt_prog_compiler_static='-Bstatic'
8608 lt_prog_compiler_wl='-Qoption ld '
8609 ;;
8610 *Sun\ C*)
8611 # Sun C 5.9
8612 lt_prog_compiler_pic='-KPIC'
8613 lt_prog_compiler_static='-Bstatic'
8614 lt_prog_compiler_wl='-Wl,'
8615 ;;
8616 *Intel*\ [CF]*Compiler*)
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-fPIC'
8619 lt_prog_compiler_static='-static'
8620 ;;
8621 *Portland\ Group*)
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-fpic'
8624 lt_prog_compiler_static='-Bstatic'
8625 ;;
8626 esac
8627 ;;
8628 esac
8629 ;;
8630
8631 newsos6)
8632 lt_prog_compiler_pic='-KPIC'
8633 lt_prog_compiler_static='-Bstatic'
8634 ;;
8635
8636 *nto* | *qnx*)
8637 # QNX uses GNU C++, but need to define -shared option too, otherwise
8638 # it will coredump.
8639 lt_prog_compiler_pic='-fPIC -shared'
8640 ;;
8641
8642 osf3* | osf4* | osf5*)
8643 lt_prog_compiler_wl='-Wl,'
8644 # All OSF/1 code is PIC.
8645 lt_prog_compiler_static='-non_shared'
8646 ;;
8647
8648 rdos*)
8649 lt_prog_compiler_static='-non_shared'
8650 ;;
8651
8652 solaris*)
8653 lt_prog_compiler_pic='-KPIC'
8654 lt_prog_compiler_static='-Bstatic'
8655 case $cc_basename in
8656 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8657 lt_prog_compiler_wl='-Qoption ld ';;
8658 *)
8659 lt_prog_compiler_wl='-Wl,';;
8660 esac
8661 ;;
8662
8663 sunos4*)
8664 lt_prog_compiler_wl='-Qoption ld '
8665 lt_prog_compiler_pic='-PIC'
8666 lt_prog_compiler_static='-Bstatic'
8667 ;;
8668
8669 sysv4 | sysv4.2uw2* | sysv4.3*)
8670 lt_prog_compiler_wl='-Wl,'
8671 lt_prog_compiler_pic='-KPIC'
8672 lt_prog_compiler_static='-Bstatic'
8673 ;;
8674
8675 sysv4*MP*)
8676 if test -d /usr/nec; then
8677 lt_prog_compiler_pic='-Kconform_pic'
8678 lt_prog_compiler_static='-Bstatic'
8679 fi
8680 ;;
8681
8682 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_pic='-KPIC'
8685 lt_prog_compiler_static='-Bstatic'
8686 ;;
8687
8688 unicos*)
8689 lt_prog_compiler_wl='-Wl,'
8690 lt_prog_compiler_can_build_shared=no
8691 ;;
8692
8693 uts4*)
8694 lt_prog_compiler_pic='-pic'
8695 lt_prog_compiler_static='-Bstatic'
8696 ;;
8697
8698 *)
8699 lt_prog_compiler_can_build_shared=no
8700 ;;
8701 esac
8702 fi
8703
8704 case $host_os in
8705 # For platforms that do not support PIC, -DPIC is meaningless:
8706 *djgpp*)
8707 lt_prog_compiler_pic=
8708 ;;
8709 *)
8710 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8711 ;;
8712 esac
8713
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8715 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8716 if ${lt_cv_prog_compiler_pic+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8720 fi
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8722 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8723 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8724
8725 #
8726 # Check to make sure the PIC flag actually works.
8727 #
8728 if test -n "$lt_prog_compiler_pic"; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8730 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8731 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 lt_cv_prog_compiler_pic_works=no
8735 ac_outfile=conftest.$ac_objext
8736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8737 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8738 # Insert the option either (1) after the last *FLAGS variable, or
8739 # (2) before a word containing "conftest.", or (3) at the end.
8740 # Note that $ac_compile itself does not contain backslashes and begins
8741 # with a dollar sign (not a hyphen), so the echo should work correctly.
8742 # The option is referenced via a variable to avoid confusing sed.
8743 lt_compile=`echo "$ac_compile" | $SED \
8744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8746 -e 's:$: $lt_compiler_flag:'`
8747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8748 (eval "$lt_compile" 2>conftest.err)
8749 ac_status=$?
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 if (exit $ac_status) && test -s "$ac_outfile"; then
8753 # The compiler can only warn and ignore the option if not recognized
8754 # So say no if there are warnings other than the usual output.
8755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_pic_works=yes
8759 fi
8760 fi
8761 $RM conftest*
8762
8763 fi
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8765 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8766
8767 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8768 case $lt_prog_compiler_pic in
8769 "" | " "*) ;;
8770 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8771 esac
8772 else
8773 lt_prog_compiler_pic=
8774 lt_prog_compiler_can_build_shared=no
8775 fi
8776
8777 fi
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789 #
8790 # Check to make sure the static flag actually works.
8791 #
8792 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8794 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8795 if ${lt_cv_prog_compiler_static_works+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 lt_cv_prog_compiler_static_works=no
8799 save_LDFLAGS=$LDFLAGS
8800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8803 # The linker can only warn and ignore the option if not recognized
8804 # So say no if there are warnings
8805 if test -s conftest.err; then
8806 # Append any errors to the config.log.
8807 cat conftest.err 1>&5
8808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8810 if diff conftest.exp conftest.er2 >/dev/null; then
8811 lt_cv_prog_compiler_static_works=yes
8812 fi
8813 else
8814 lt_cv_prog_compiler_static_works=yes
8815 fi
8816 fi
8817 $RM -r conftest*
8818 LDFLAGS=$save_LDFLAGS
8819
8820 fi
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8822 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8823
8824 if test yes = "$lt_cv_prog_compiler_static_works"; then
8825 :
8826 else
8827 lt_prog_compiler_static=
8828 fi
8829
8830
8831
8832
8833
8834
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8838 if ${lt_cv_prog_compiler_c_o+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 lt_cv_prog_compiler_c_o=no
8842 $RM -r conftest 2>/dev/null
8843 mkdir conftest
8844 cd conftest
8845 mkdir out
8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847
8848 lt_compiler_flag="-o out/conftest2.$ac_objext"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 lt_compile=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858 (eval "$lt_compile" 2>out/conftest.err)
8859 ac_status=$?
8860 cat out/conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8863 then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings
8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_c_o=yes
8870 fi
8871 fi
8872 chmod u+w . 2>&5
8873 $RM conftest*
8874 # SGI C++ compiler will create directory out/ii_files/ for
8875 # template instantiation
8876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8877 $RM out/* && rmdir out
8878 cd ..
8879 $RM -r conftest
8880 $RM conftest*
8881
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8884 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8885
8886
8887
8888
8889
8890
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8893 if ${lt_cv_prog_compiler_c_o+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 lt_cv_prog_compiler_c_o=no
8897 $RM -r conftest 2>/dev/null
8898 mkdir conftest
8899 cd conftest
8900 mkdir out
8901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8902
8903 lt_compiler_flag="-o out/conftest2.$ac_objext"
8904 # Insert the option either (1) after the last *FLAGS variable, or
8905 # (2) before a word containing "conftest.", or (3) at the end.
8906 # Note that $ac_compile itself does not contain backslashes and begins
8907 # with a dollar sign (not a hyphen), so the echo should work correctly.
8908 lt_compile=`echo "$ac_compile" | $SED \
8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911 -e 's:$: $lt_compiler_flag:'`
8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8913 (eval "$lt_compile" 2>out/conftest.err)
8914 ac_status=$?
8915 cat out/conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8918 then
8919 # The compiler can only warn and ignore the option if not recognized
8920 # So say no if there are warnings
8921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8924 lt_cv_prog_compiler_c_o=yes
8925 fi
8926 fi
8927 chmod u+w . 2>&5
8928 $RM conftest*
8929 # SGI C++ compiler will create directory out/ii_files/ for
8930 # template instantiation
8931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8932 $RM out/* && rmdir out
8933 cd ..
8934 $RM -r conftest
8935 $RM conftest*
8936
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8939 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8940
8941
8942
8943
8944 hard_links=nottested
8945 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8946 # do not overwrite the value of need_locks provided by the user
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8948 $as_echo_n "checking if we can lock with hard links... " >&6; }
8949 hard_links=yes
8950 $RM conftest*
8951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8952 touch conftest.a
8953 ln conftest.a conftest.b 2>&5 || hard_links=no
8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8956 $as_echo "$hard_links" >&6; }
8957 if test no = "$hard_links"; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8959 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8960 need_locks=warn
8961 fi
8962 else
8963 need_locks=no
8964 fi
8965
8966
8967
8968
8969
8970
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8972 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8973
8974 runpath_var=
8975 allow_undefined_flag=
8976 always_export_symbols=no
8977 archive_cmds=
8978 archive_expsym_cmds=
8979 compiler_needs_object=no
8980 enable_shared_with_static_runtimes=no
8981 export_dynamic_flag_spec=
8982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8983 hardcode_automatic=no
8984 hardcode_direct=no
8985 hardcode_direct_absolute=no
8986 hardcode_libdir_flag_spec=
8987 hardcode_libdir_separator=
8988 hardcode_minus_L=no
8989 hardcode_shlibpath_var=unsupported
8990 inherit_rpath=no
8991 link_all_deplibs=unknown
8992 module_cmds=
8993 module_expsym_cmds=
8994 old_archive_from_new_cmds=
8995 old_archive_from_expsyms_cmds=
8996 thread_safe_flag_spec=
8997 whole_archive_flag_spec=
8998 # include_expsyms should be a list of space-separated symbols to be *always*
8999 # included in the symbol list
9000 include_expsyms=
9001 # exclude_expsyms can be an extended regexp of symbols to exclude
9002 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9003 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9004 # as well as any symbol that contains 'd'.
9005 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9006 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9007 # platforms (ab)use it in PIC code, but their linkers get confused if
9008 # the symbol is explicitly referenced. Since portable code cannot
9009 # rely on this symbol name, it's probably fine to never include it in
9010 # preloaded symbol tables.
9011 # Exclude shared library initialization/finalization symbols.
9012 extract_expsyms_cmds=
9013
9014 case $host_os in
9015 cygwin* | mingw* | pw32* | cegcc*)
9016 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9017 # When not using gcc, we currently assume that we are using
9018 # Microsoft Visual C++.
9019 if test yes != "$GCC"; then
9020 with_gnu_ld=no
9021 fi
9022 ;;
9023 interix*)
9024 # we just hope/assume this is gcc and not c89 (= MSVC++)
9025 with_gnu_ld=yes
9026 ;;
9027 openbsd* | bitrig*)
9028 with_gnu_ld=no
9029 ;;
9030 esac
9031
9032 ld_shlibs=yes
9033
9034 # On some targets, GNU ld is compatible enough with the native linker
9035 # that we're better off using the native interface for both.
9036 lt_use_gnu_ld_interface=no
9037 if test yes = "$with_gnu_ld"; then
9038 case $host_os in
9039 aix*)
9040 # The AIX port of GNU ld has always aspired to compatibility
9041 # with the native linker. However, as the warning in the GNU ld
9042 # block says, versions before 2.19.5* couldn't really create working
9043 # shared libraries, regardless of the interface used.
9044 case `$LD -v 2>&1` in
9045 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9046 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9047 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9048 *)
9049 lt_use_gnu_ld_interface=yes
9050 ;;
9051 esac
9052 ;;
9053 *)
9054 lt_use_gnu_ld_interface=yes
9055 ;;
9056 esac
9057 fi
9058
9059 if test yes = "$lt_use_gnu_ld_interface"; then
9060 # If archive_cmds runs LD, not CC, wlarc should be empty
9061 wlarc='$wl'
9062
9063 # Set some defaults for GNU ld with shared library support. These
9064 # are reset later if shared libraries are not supported. Putting them
9065 # here allows them to be overridden if necessary.
9066 runpath_var=LD_RUN_PATH
9067 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9068 export_dynamic_flag_spec='$wl--export-dynamic'
9069 # ancient GNU ld didn't support --whole-archive et. al.
9070 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9071 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9072 else
9073 whole_archive_flag_spec=
9074 fi
9075 supports_anon_versioning=no
9076 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9077 *GNU\ gold*) supports_anon_versioning=yes ;;
9078 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9079 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9080 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9081 *\ 2.11.*) ;; # other 2.11 versions
9082 *) supports_anon_versioning=yes ;;
9083 esac
9084
9085 # See if GNU ld supports shared libraries.
9086 case $host_os in
9087 aix[3-9]*)
9088 # On AIX/PPC, the GNU linker is very broken
9089 if test ia64 != "$host_cpu"; then
9090 ld_shlibs=no
9091 cat <<_LT_EOF 1>&2
9092
9093 *** Warning: the GNU linker, at least up to release 2.19, is reported
9094 *** to be unable to reliably create shared libraries on AIX.
9095 *** Therefore, libtool is disabling shared libraries support. If you
9096 *** really care for shared libraries, you may want to install binutils
9097 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9098 *** You will then need to restart the configuration process.
9099
9100 _LT_EOF
9101 fi
9102 ;;
9103
9104 amigaos*)
9105 case $host_cpu in
9106 powerpc)
9107 # see comment about AmigaOS4 .so support
9108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9109 archive_expsym_cmds=''
9110 ;;
9111 m68k)
9112 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)'
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 hardcode_minus_L=yes
9115 ;;
9116 esac
9117 ;;
9118
9119 beos*)
9120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 allow_undefined_flag=unsupported
9122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9123 # support --undefined. This deserves some investigation. FIXME
9124 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9125 else
9126 ld_shlibs=no
9127 fi
9128 ;;
9129
9130 cygwin* | mingw* | pw32* | cegcc*)
9131 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9132 # as there is no search path for DLLs.
9133 hardcode_libdir_flag_spec='-L$libdir'
9134 export_dynamic_flag_spec='$wl--export-all-symbols'
9135 allow_undefined_flag=unsupported
9136 always_export_symbols=no
9137 enable_shared_with_static_runtimes=yes
9138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9139 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9140
9141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9143 # If the export-symbols file already is a .def file, use it as
9144 # is; otherwise, prepend EXPORTS...
9145 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9146 cp $export_symbols $output_objdir/$soname.def;
9147 else
9148 echo EXPORTS > $output_objdir/$soname.def;
9149 cat $export_symbols >> $output_objdir/$soname.def;
9150 fi~
9151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156
9157 haiku*)
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9159 link_all_deplibs=yes
9160 ;;
9161
9162 os2*)
9163 hardcode_libdir_flag_spec='-L$libdir'
9164 hardcode_minus_L=yes
9165 allow_undefined_flag=unsupported
9166 shrext_cmds=.dll
9167 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9168 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9169 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9170 $ECHO EXPORTS >> $output_objdir/$libname.def~
9171 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9173 emximp -o $lib $output_objdir/$libname.def'
9174 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9175 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9176 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9177 $ECHO EXPORTS >> $output_objdir/$libname.def~
9178 prefix_cmds="$SED"~
9179 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9180 prefix_cmds="$prefix_cmds -e 1d";
9181 fi~
9182 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9183 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9184 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9185 emximp -o $lib $output_objdir/$libname.def'
9186 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9187 enable_shared_with_static_runtimes=yes
9188 ;;
9189
9190 interix[3-9]*)
9191 hardcode_direct=no
9192 hardcode_shlibpath_var=no
9193 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9194 export_dynamic_flag_spec='$wl-E'
9195 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9196 # Instead, shared libraries are loaded at an image base (0x10000000 by
9197 # default) and relocated if they conflict, which is a slow very memory
9198 # consuming and fragmenting process. To avoid this, we pick a random,
9199 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9200 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9201 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9202 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'
9203 ;;
9204
9205 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9206 tmp_diet=no
9207 if test linux-dietlibc = "$host_os"; then
9208 case $cc_basename in
9209 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9210 esac
9211 fi
9212 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9213 && test no = "$tmp_diet"
9214 then
9215 tmp_addflag=' $pic_flag'
9216 tmp_sharedflag='-shared'
9217 case $cc_basename,$host_cpu in
9218 pgcc*) # Portland Group C compiler
9219 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'
9220 tmp_addflag=' $pic_flag'
9221 ;;
9222 pgf77* | pgf90* | pgf95* | pgfortran*)
9223 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9227 tmp_addflag=' -i_dynamic' ;;
9228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9229 tmp_addflag=' -i_dynamic -nofor_main' ;;
9230 ifc* | ifort*) # Intel Fortran compiler
9231 tmp_addflag=' -nofor_main' ;;
9232 lf95*) # Lahey Fortran 8.1
9233 whole_archive_flag_spec=
9234 tmp_sharedflag='--shared' ;;
9235 nagfor*) # NAGFOR 5.3
9236 tmp_sharedflag='-Wl,-shared' ;;
9237 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9238 tmp_sharedflag='-qmkshrobj'
9239 tmp_addflag= ;;
9240 nvcc*) # Cuda Compiler Driver 2.2
9241 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'
9242 compiler_needs_object=yes
9243 ;;
9244 esac
9245 case `$CC -V 2>&1 | sed 5q` in
9246 *Sun\ C*) # Sun C 5.9
9247 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'
9248 compiler_needs_object=yes
9249 tmp_sharedflag='-G' ;;
9250 *Sun\ F*) # Sun Fortran 8.3
9251 tmp_sharedflag='-G' ;;
9252 esac
9253 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9254
9255 if test yes = "$supports_anon_versioning"; then
9256 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9258 echo "local: *; };" >> $output_objdir/$libname.ver~
9259 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9260 fi
9261
9262 case $cc_basename in
9263 tcc*)
9264 export_dynamic_flag_spec='-rdynamic'
9265 ;;
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='$wl-rpath $wl$libdir'
9270 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9271 if test yes = "$supports_anon_versioning"; then
9272 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9274 echo "local: *; };" >> $output_objdir/$libname.ver~
9275 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9276 fi
9277 ;;
9278 esac
9279 else
9280 ld_shlibs=no
9281 fi
9282 ;;
9283
9284 netbsd*)
9285 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9286 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9287 wlarc=
9288 else
9289 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9290 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9291 fi
9292 ;;
9293
9294 solaris*)
9295 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9296 ld_shlibs=no
9297 cat <<_LT_EOF 1>&2
9298
9299 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9300 *** create shared libraries on Solaris systems. Therefore, libtool
9301 *** is disabling shared libraries support. We urge you to upgrade GNU
9302 *** binutils to release 2.9.1 or newer. Another option is to modify
9303 *** your PATH or compiler configuration so that the native linker is
9304 *** used, and then restart.
9305
9306 _LT_EOF
9307 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9308 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9309 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9310 else
9311 ld_shlibs=no
9312 fi
9313 ;;
9314
9315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9316 case `$LD -v 2>&1` in
9317 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9318 ld_shlibs=no
9319 cat <<_LT_EOF 1>&2
9320
9321 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9322 *** reliably create shared libraries on SCO systems. Therefore, libtool
9323 *** is disabling shared libraries support. We urge you to upgrade GNU
9324 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9325 *** your PATH or compiler configuration so that the native linker is
9326 *** used, and then restart.
9327
9328 _LT_EOF
9329 ;;
9330 *)
9331 # For security reasons, it is highly recommended that you always
9332 # use absolute paths for naming shared libraries, and exclude the
9333 # DT_RUNPATH tag from executables and libraries. But doing so
9334 # requires that you compile everything twice, which is a pain.
9335 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9336 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9339 else
9340 ld_shlibs=no
9341 fi
9342 ;;
9343 esac
9344 ;;
9345
9346 sunos4*)
9347 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9348 wlarc=
9349 hardcode_direct=yes
9350 hardcode_shlibpath_var=no
9351 ;;
9352
9353 *)
9354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9355 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9356 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9357 else
9358 ld_shlibs=no
9359 fi
9360 ;;
9361 esac
9362
9363 if test no = "$ld_shlibs"; then
9364 runpath_var=
9365 hardcode_libdir_flag_spec=
9366 export_dynamic_flag_spec=
9367 whole_archive_flag_spec=
9368 fi
9369 else
9370 # PORTME fill in a description of your system's linker (not GNU ld)
9371 case $host_os in
9372 aix3*)
9373 allow_undefined_flag=unsupported
9374 always_export_symbols=yes
9375 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'
9376 # Note: this linker hardcodes the directories in LIBPATH if there
9377 # are no directories specified by -L.
9378 hardcode_minus_L=yes
9379 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9380 # Neither direct hardcoding nor static linking is supported with a
9381 # broken collect2.
9382 hardcode_direct=unsupported
9383 fi
9384 ;;
9385
9386 aix[4-9]*)
9387 if test ia64 = "$host_cpu"; then
9388 # On IA64, the linker does run time linking by default, so we don't
9389 # have to do anything special.
9390 aix_use_runtimelinking=no
9391 exp_sym_flag='-Bexport'
9392 no_entry_flag=
9393 else
9394 # If we're using GNU nm, then we don't want the "-C" option.
9395 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9396 # Without the "-l" option, or with the "-B" option, AIX nm treats
9397 # weak defined symbols like other global defined symbols, whereas
9398 # GNU nm marks them as "W".
9399 # While the 'weak' keyword is ignored in the Export File, we need
9400 # it in the Import File for the 'aix-soname' feature, so we have
9401 # to replace the "-B" option with "-P" for AIX nm.
9402 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9403 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9404 else
9405 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9406 fi
9407 aix_use_runtimelinking=no
9408
9409 # Test if we are trying to use run time linking or normal
9410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9411 # have runtime linking enabled, and use it for executables.
9412 # For shared libraries, we enable/disable runtime linking
9413 # depending on the kind of the shared library created -
9414 # when "with_aix_soname,aix_use_runtimelinking" is:
9415 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9416 # "aix,yes" lib.so shared, rtl:yes, for executables
9417 # lib.a static archive
9418 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9419 # lib.a(lib.so.V) shared, rtl:no, for executables
9420 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9421 # lib.a(lib.so.V) shared, rtl:no
9422 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9423 # lib.a static archive
9424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9425 for ld_flag in $LDFLAGS; do
9426 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9427 aix_use_runtimelinking=yes
9428 break
9429 fi
9430 done
9431 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9432 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9433 # so we don't have lib.a shared libs to link our executables.
9434 # We have to force runtime linking in this case.
9435 aix_use_runtimelinking=yes
9436 LDFLAGS="$LDFLAGS -Wl,-brtl"
9437 fi
9438 ;;
9439 esac
9440
9441 exp_sym_flag='-bexport'
9442 no_entry_flag='-bnoentry'
9443 fi
9444
9445 # When large executables or shared objects are built, AIX ld can
9446 # have problems creating the table of contents. If linking a library
9447 # or program results in "error TOC overflow" add -mminimal-toc to
9448 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9449 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9450
9451 archive_cmds=''
9452 hardcode_direct=yes
9453 hardcode_direct_absolute=yes
9454 hardcode_libdir_separator=':'
9455 link_all_deplibs=yes
9456 file_list_spec='$wl-f,'
9457 case $with_aix_soname,$aix_use_runtimelinking in
9458 aix,*) ;; # traditional, no import file
9459 svr4,* | *,yes) # use import file
9460 # The Import File defines what to hardcode.
9461 hardcode_direct=no
9462 hardcode_direct_absolute=no
9463 ;;
9464 esac
9465
9466 if test yes = "$GCC"; then
9467 case $host_os in aix4.[012]|aix4.[012].*)
9468 # We only want to do this on AIX 4.2 and lower, the check
9469 # below for broken collect2 doesn't work under 4.3+
9470 collect2name=`$CC -print-prog-name=collect2`
9471 if test -f "$collect2name" &&
9472 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9473 then
9474 # We have reworked collect2
9475 :
9476 else
9477 # We have old collect2
9478 hardcode_direct=unsupported
9479 # It fails to find uninstalled libraries when the uninstalled
9480 # path is not listed in the libpath. Setting hardcode_minus_L
9481 # to unsupported forces relinking
9482 hardcode_minus_L=yes
9483 hardcode_libdir_flag_spec='-L$libdir'
9484 hardcode_libdir_separator=
9485 fi
9486 ;;
9487 esac
9488 shared_flag='-shared'
9489 if test yes = "$aix_use_runtimelinking"; then
9490 shared_flag="$shared_flag "'$wl-G'
9491 fi
9492 # Need to ensure runtime linking is disabled for the traditional
9493 # shared library, or the linker may eventually find shared libraries
9494 # /with/ Import File - we do not want to mix them.
9495 shared_flag_aix='-shared'
9496 shared_flag_svr4='-shared $wl-G'
9497 else
9498 # not using gcc
9499 if test ia64 = "$host_cpu"; then
9500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9501 # chokes on -Wl,-G. The following line is correct:
9502 shared_flag='-G'
9503 else
9504 if test yes = "$aix_use_runtimelinking"; then
9505 shared_flag='$wl-G'
9506 else
9507 shared_flag='$wl-bM:SRE'
9508 fi
9509 shared_flag_aix='$wl-bM:SRE'
9510 shared_flag_svr4='$wl-G'
9511 fi
9512 fi
9513
9514 export_dynamic_flag_spec='$wl-bexpall'
9515 # It seems that -bexpall does not export symbols beginning with
9516 # underscore (_), so it is better to generate a list of symbols to export.
9517 always_export_symbols=yes
9518 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9519 # Warning - without using the other runtime loading flags (-brtl),
9520 # -berok will link without error, but may produce a broken library.
9521 allow_undefined_flag='-berok'
9522 # Determine the default libpath from the value encoded in an
9523 # empty executable.
9524 if test set = "${lt_cv_aix_libpath+set}"; then
9525 aix_libpath=$lt_cv_aix_libpath
9526 else
9527 if ${lt_cv_aix_libpath_+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9532
9533 int
9534 main ()
9535 {
9536
9537 ;
9538 return 0;
9539 }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542
9543 lt_aix_libpath_sed='
9544 /Import File Strings/,/^$/ {
9545 /^0/ {
9546 s/^0 *\([^ ]*\) *$/\1/
9547 p
9548 }
9549 }'
9550 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551 # Check for a 64-bit object if we didn't find anything.
9552 if test -z "$lt_cv_aix_libpath_"; then
9553 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9554 fi
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9558 if test -z "$lt_cv_aix_libpath_"; then
9559 lt_cv_aix_libpath_=/usr/lib:/lib
9560 fi
9561
9562 fi
9563
9564 aix_libpath=$lt_cv_aix_libpath_
9565 fi
9566
9567 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9568 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9569 else
9570 if test ia64 = "$host_cpu"; then
9571 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9572 allow_undefined_flag="-z nodefs"
9573 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"
9574 else
9575 # Determine the default libpath from the value encoded in an
9576 # empty executable.
9577 if test set = "${lt_cv_aix_libpath+set}"; then
9578 aix_libpath=$lt_cv_aix_libpath
9579 else
9580 if ${lt_cv_aix_libpath_+:} false; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585
9586 int
9587 main ()
9588 {
9589
9590 ;
9591 return 0;
9592 }
9593 _ACEOF
9594 if ac_fn_c_try_link "$LINENO"; then :
9595
9596 lt_aix_libpath_sed='
9597 /Import File Strings/,/^$/ {
9598 /^0/ {
9599 s/^0 *\([^ ]*\) *$/\1/
9600 p
9601 }
9602 }'
9603 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9604 # Check for a 64-bit object if we didn't find anything.
9605 if test -z "$lt_cv_aix_libpath_"; then
9606 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 fi
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
9611 if test -z "$lt_cv_aix_libpath_"; then
9612 lt_cv_aix_libpath_=/usr/lib:/lib
9613 fi
9614
9615 fi
9616
9617 aix_libpath=$lt_cv_aix_libpath_
9618 fi
9619
9620 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9621 # Warning - without using the other run time loading flags,
9622 # -berok will link without error, but may produce a broken library.
9623 no_undefined_flag=' $wl-bernotok'
9624 allow_undefined_flag=' $wl-berok'
9625 if test yes = "$with_gnu_ld"; then
9626 # We only use this code for GNU lds that support --whole-archive.
9627 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9628 else
9629 # Exported symbols can be pulled into shared objects from archives
9630 whole_archive_flag_spec='$convenience'
9631 fi
9632 archive_cmds_need_lc=yes
9633 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9634 # -brtl affects multiple linker settings, -berok does not and is overridden later
9635 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9636 if test svr4 != "$with_aix_soname"; then
9637 # This is similar to how AIX traditionally builds its shared libraries.
9638 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9639 fi
9640 if test aix != "$with_aix_soname"; then
9641 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9642 else
9643 # used by -dlpreopen to get the symbols
9644 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9645 fi
9646 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9647 fi
9648 fi
9649 ;;
9650
9651 amigaos*)
9652 case $host_cpu in
9653 powerpc)
9654 # see comment about AmigaOS4 .so support
9655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9656 archive_expsym_cmds=''
9657 ;;
9658 m68k)
9659 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)'
9660 hardcode_libdir_flag_spec='-L$libdir'
9661 hardcode_minus_L=yes
9662 ;;
9663 esac
9664 ;;
9665
9666 bsdi[45]*)
9667 export_dynamic_flag_spec=-rdynamic
9668 ;;
9669
9670 cygwin* | mingw* | pw32* | cegcc*)
9671 # When not using gcc, we currently assume that we are using
9672 # Microsoft Visual C++.
9673 # hardcode_libdir_flag_spec is actually meaningless, as there is
9674 # no search path for DLLs.
9675 case $cc_basename in
9676 cl*)
9677 # Native MSVC
9678 hardcode_libdir_flag_spec=' '
9679 allow_undefined_flag=unsupported
9680 always_export_symbols=yes
9681 file_list_spec='@'
9682 # Tell ltmain to make .lib files, not .a files.
9683 libext=lib
9684 # Tell ltmain to make .dll files, not .so files.
9685 shrext_cmds=.dll
9686 # FIXME: Setting linknames here is a bad hack.
9687 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9688 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9689 cp "$export_symbols" "$output_objdir/$soname.def";
9690 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9691 else
9692 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9693 fi~
9694 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9695 linknames='
9696 # The linker will not automatically build a static lib if we build a DLL.
9697 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9698 enable_shared_with_static_runtimes=yes
9699 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9700 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9701 # Don't use ranlib
9702 old_postinstall_cmds='chmod 644 $oldlib'
9703 postlink_cmds='lt_outputfile="@OUTPUT@"~
9704 lt_tool_outputfile="@TOOL_OUTPUT@"~
9705 case $lt_outputfile in
9706 *.exe|*.EXE) ;;
9707 *)
9708 lt_outputfile=$lt_outputfile.exe
9709 lt_tool_outputfile=$lt_tool_outputfile.exe
9710 ;;
9711 esac~
9712 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9713 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9714 $RM "$lt_outputfile.manifest";
9715 fi'
9716 ;;
9717 *)
9718 # Assume MSVC wrapper
9719 hardcode_libdir_flag_spec=' '
9720 allow_undefined_flag=unsupported
9721 # Tell ltmain to make .lib files, not .a files.
9722 libext=lib
9723 # Tell ltmain to make .dll files, not .so files.
9724 shrext_cmds=.dll
9725 # FIXME: Setting linknames here is a bad hack.
9726 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9727 # The linker will automatically build a .lib file if we build a DLL.
9728 old_archive_from_new_cmds='true'
9729 # FIXME: Should let the user specify the lib program.
9730 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9731 enable_shared_with_static_runtimes=yes
9732 ;;
9733 esac
9734 ;;
9735
9736 darwin* | rhapsody*)
9737
9738
9739 archive_cmds_need_lc=no
9740 hardcode_direct=no
9741 hardcode_automatic=yes
9742 hardcode_shlibpath_var=unsupported
9743 if test yes = "$lt_cv_ld_force_load"; then
9744 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\"`'
9745
9746 else
9747 whole_archive_flag_spec=''
9748 fi
9749 link_all_deplibs=yes
9750 allow_undefined_flag=$_lt_dar_allow_undefined
9751 case $cc_basename in
9752 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9753 *) _lt_dar_can_shared=$GCC ;;
9754 esac
9755 if test yes = "$_lt_dar_can_shared"; then
9756 output_verbose_link_cmd=func_echo_all
9757 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9758 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9759 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"
9760 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"
9761
9762 else
9763 ld_shlibs=no
9764 fi
9765
9766 ;;
9767
9768 dgux*)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_libdir_flag_spec='-L$libdir'
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9775 # support. Future versions do this automatically, but an explicit c++rt0.o
9776 # does not break anything, and helps significantly (at the cost of a little
9777 # extra space).
9778 freebsd2.2*)
9779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9780 hardcode_libdir_flag_spec='-R$libdir'
9781 hardcode_direct=yes
9782 hardcode_shlibpath_var=no
9783 ;;
9784
9785 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9786 freebsd2.*)
9787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9788 hardcode_direct=yes
9789 hardcode_minus_L=yes
9790 hardcode_shlibpath_var=no
9791 ;;
9792
9793 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9794 freebsd* | dragonfly*)
9795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9796 hardcode_libdir_flag_spec='-R$libdir'
9797 hardcode_direct=yes
9798 hardcode_shlibpath_var=no
9799 ;;
9800
9801 hpux9*)
9802 if test yes = "$GCC"; then
9803 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9804 else
9805 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9806 fi
9807 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9808 hardcode_libdir_separator=:
9809 hardcode_direct=yes
9810
9811 # hardcode_minus_L: Not really in the search PATH,
9812 # but as the default location of the library.
9813 hardcode_minus_L=yes
9814 export_dynamic_flag_spec='$wl-E'
9815 ;;
9816
9817 hpux10*)
9818 if test yes,no = "$GCC,$with_gnu_ld"; then
9819 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9820 else
9821 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9822 fi
9823 if test no = "$with_gnu_ld"; then
9824 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9825 hardcode_libdir_separator=:
9826 hardcode_direct=yes
9827 hardcode_direct_absolute=yes
9828 export_dynamic_flag_spec='$wl-E'
9829 # hardcode_minus_L: Not really in the search PATH,
9830 # but as the default location of the library.
9831 hardcode_minus_L=yes
9832 fi
9833 ;;
9834
9835 hpux11*)
9836 if test yes,no = "$GCC,$with_gnu_ld"; then
9837 case $host_cpu in
9838 hppa*64*)
9839 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 ;;
9841 ia64*)
9842 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9843 ;;
9844 *)
9845 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846 ;;
9847 esac
9848 else
9849 case $host_cpu in
9850 hppa*64*)
9851 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9852 ;;
9853 ia64*)
9854 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9855 ;;
9856 *)
9857
9858 # Older versions of the 11.00 compiler do not understand -b yet
9859 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9861 $as_echo_n "checking if $CC understands -b... " >&6; }
9862 if ${lt_cv_prog_compiler__b+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 lt_cv_prog_compiler__b=no
9866 save_LDFLAGS=$LDFLAGS
9867 LDFLAGS="$LDFLAGS -b"
9868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9870 # The linker can only warn and ignore the option if not recognized
9871 # So say no if there are warnings
9872 if test -s conftest.err; then
9873 # Append any errors to the config.log.
9874 cat conftest.err 1>&5
9875 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9877 if diff conftest.exp conftest.er2 >/dev/null; then
9878 lt_cv_prog_compiler__b=yes
9879 fi
9880 else
9881 lt_cv_prog_compiler__b=yes
9882 fi
9883 fi
9884 $RM -r conftest*
9885 LDFLAGS=$save_LDFLAGS
9886
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9889 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9890
9891 if test yes = "$lt_cv_prog_compiler__b"; then
9892 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893 else
9894 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9895 fi
9896
9897 ;;
9898 esac
9899 fi
9900 if test no = "$with_gnu_ld"; then
9901 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9902 hardcode_libdir_separator=:
9903
9904 case $host_cpu in
9905 hppa*64*|ia64*)
9906 hardcode_direct=no
9907 hardcode_shlibpath_var=no
9908 ;;
9909 *)
9910 hardcode_direct=yes
9911 hardcode_direct_absolute=yes
9912 export_dynamic_flag_spec='$wl-E'
9913
9914 # hardcode_minus_L: Not really in the search PATH,
9915 # but as the default location of the library.
9916 hardcode_minus_L=yes
9917 ;;
9918 esac
9919 fi
9920 ;;
9921
9922 irix5* | irix6* | nonstopux*)
9923 if test yes = "$GCC"; then
9924 archive_cmds='$CC -shared $pic_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'
9925 # Try to use the -exported_symbol ld option, if it does not
9926 # work, assume that -exports_file does not work either and
9927 # implicitly export all symbols.
9928 # This should be the same for all languages, so no per-tag cache variable.
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9930 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9931 if ${lt_cv_irix_exported_symbol+:} false; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 save_LDFLAGS=$LDFLAGS
9935 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9938 int foo (void) { return 0; }
9939 _ACEOF
9940 if ac_fn_c_try_link "$LINENO"; then :
9941 lt_cv_irix_exported_symbol=yes
9942 else
9943 lt_cv_irix_exported_symbol=no
9944 fi
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LDFLAGS=$save_LDFLAGS
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9950 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9951 if test yes = "$lt_cv_irix_exported_symbol"; then
9952 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
9953 fi
9954 else
9955 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'
9956 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'
9957 fi
9958 archive_cmds_need_lc='no'
9959 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9960 hardcode_libdir_separator=:
9961 inherit_rpath=yes
9962 link_all_deplibs=yes
9963 ;;
9964
9965 linux*)
9966 case $cc_basename in
9967 tcc*)
9968 # Fabrice Bellard et al's Tiny C Compiler
9969 ld_shlibs=yes
9970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9971 ;;
9972 esac
9973 ;;
9974
9975 netbsd*)
9976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9978 else
9979 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9980 fi
9981 hardcode_libdir_flag_spec='-R$libdir'
9982 hardcode_direct=yes
9983 hardcode_shlibpath_var=no
9984 ;;
9985
9986 newsos6)
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_direct=yes
9989 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9990 hardcode_libdir_separator=:
9991 hardcode_shlibpath_var=no
9992 ;;
9993
9994 *nto* | *qnx*)
9995 ;;
9996
9997 openbsd* | bitrig*)
9998 if test -f /usr/libexec/ld.so; then
9999 hardcode_direct=yes
10000 hardcode_shlibpath_var=no
10001 hardcode_direct_absolute=yes
10002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10003 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10004 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10005 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10006 export_dynamic_flag_spec='$wl-E'
10007 else
10008 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10009 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10010 fi
10011 else
10012 ld_shlibs=no
10013 fi
10014 ;;
10015
10016 os2*)
10017 hardcode_libdir_flag_spec='-L$libdir'
10018 hardcode_minus_L=yes
10019 allow_undefined_flag=unsupported
10020 shrext_cmds=.dll
10021 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10022 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10023 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10024 $ECHO EXPORTS >> $output_objdir/$libname.def~
10025 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10026 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10027 emximp -o $lib $output_objdir/$libname.def'
10028 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10029 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10030 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10031 $ECHO EXPORTS >> $output_objdir/$libname.def~
10032 prefix_cmds="$SED"~
10033 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10034 prefix_cmds="$prefix_cmds -e 1d";
10035 fi~
10036 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10037 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10038 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10039 emximp -o $lib $output_objdir/$libname.def'
10040 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10041 enable_shared_with_static_runtimes=yes
10042 ;;
10043
10044 osf3*)
10045 if test yes = "$GCC"; then
10046 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10047 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'
10048 else
10049 allow_undefined_flag=' -expect_unresolved \*'
10050 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'
10051 fi
10052 archive_cmds_need_lc='no'
10053 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10054 hardcode_libdir_separator=:
10055 ;;
10056
10057 osf4* | osf5*) # as osf3* with the addition of -msym flag
10058 if test yes = "$GCC"; then
10059 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10060 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
10061 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10062 else
10063 allow_undefined_flag=' -expect_unresolved \*'
10064 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'
10065 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~
10066 $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'
10067
10068 # Both c and cxx compiler support -rpath directly
10069 hardcode_libdir_flag_spec='-rpath $libdir'
10070 fi
10071 archive_cmds_need_lc='no'
10072 hardcode_libdir_separator=:
10073 ;;
10074
10075 solaris*)
10076 no_undefined_flag=' -z defs'
10077 if test yes = "$GCC"; then
10078 wlarc='$wl'
10079 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10081 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10082 else
10083 case `$CC -V 2>&1` in
10084 *"Compilers 5.0"*)
10085 wlarc=''
10086 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10088 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10089 ;;
10090 *)
10091 wlarc='$wl'
10092 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10094 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10095 ;;
10096 esac
10097 fi
10098 hardcode_libdir_flag_spec='-R$libdir'
10099 hardcode_shlibpath_var=no
10100 case $host_os in
10101 solaris2.[0-5] | solaris2.[0-5].*) ;;
10102 *)
10103 # The compiler driver will combine and reorder linker options,
10104 # but understands '-z linker_flag'. GCC discards it without '$wl',
10105 # but is careful enough not to reorder.
10106 # Supported since Solaris 2.6 (maybe 2.5.1?)
10107 if test yes = "$GCC"; then
10108 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10109 else
10110 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10111 fi
10112 ;;
10113 esac
10114 link_all_deplibs=yes
10115 ;;
10116
10117 sunos4*)
10118 if test sequent = "$host_vendor"; then
10119 # Use $CC to link under sequent, because it throws in some extra .o
10120 # files that make .init and .fini sections work.
10121 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10122 else
10123 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10124 fi
10125 hardcode_libdir_flag_spec='-L$libdir'
10126 hardcode_direct=yes
10127 hardcode_minus_L=yes
10128 hardcode_shlibpath_var=no
10129 ;;
10130
10131 sysv4)
10132 case $host_vendor in
10133 sni)
10134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135 hardcode_direct=yes # is this really true???
10136 ;;
10137 siemens)
10138 ## LD is ld it makes a PLAMLIB
10139 ## CC just makes a GrossModule.
10140 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10141 reload_cmds='$CC -r -o $output$reload_objs'
10142 hardcode_direct=no
10143 ;;
10144 motorola)
10145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10147 ;;
10148 esac
10149 runpath_var='LD_RUN_PATH'
10150 hardcode_shlibpath_var=no
10151 ;;
10152
10153 sysv4.3*)
10154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10155 hardcode_shlibpath_var=no
10156 export_dynamic_flag_spec='-Bexport'
10157 ;;
10158
10159 sysv4*MP*)
10160 if test -d /usr/nec; then
10161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10162 hardcode_shlibpath_var=no
10163 runpath_var=LD_RUN_PATH
10164 hardcode_runpath_var=yes
10165 ld_shlibs=yes
10166 fi
10167 ;;
10168
10169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10170 no_undefined_flag='$wl-z,text'
10171 archive_cmds_need_lc=no
10172 hardcode_shlibpath_var=no
10173 runpath_var='LD_RUN_PATH'
10174
10175 if test yes = "$GCC"; then
10176 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 else
10179 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 fi
10182 ;;
10183
10184 sysv5* | sco3.2v5* | sco5v6*)
10185 # Note: We CANNOT use -z defs as we might desire, because we do not
10186 # link with -lc, and that would cause any symbols used from libc to
10187 # always be unresolved, which means just about no library would
10188 # ever link correctly. If we're not using GNU ld we use -z text
10189 # though, which does catch some bad symbols but isn't as heavy-handed
10190 # as -z defs.
10191 no_undefined_flag='$wl-z,text'
10192 allow_undefined_flag='$wl-z,nodefs'
10193 archive_cmds_need_lc=no
10194 hardcode_shlibpath_var=no
10195 hardcode_libdir_flag_spec='$wl-R,$libdir'
10196 hardcode_libdir_separator=':'
10197 link_all_deplibs=yes
10198 export_dynamic_flag_spec='$wl-Bexport'
10199 runpath_var='LD_RUN_PATH'
10200
10201 if test yes = "$GCC"; then
10202 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10203 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10204 else
10205 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 fi
10208 ;;
10209
10210 uts4*)
10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_libdir_flag_spec='-L$libdir'
10213 hardcode_shlibpath_var=no
10214 ;;
10215
10216 *)
10217 ld_shlibs=no
10218 ;;
10219 esac
10220
10221 if test sni = "$host_vendor"; then
10222 case $host in
10223 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10224 export_dynamic_flag_spec='$wl-Blargedynsym'
10225 ;;
10226 esac
10227 fi
10228 fi
10229
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10231 $as_echo "$ld_shlibs" >&6; }
10232 test no = "$ld_shlibs" && can_build_shared=no
10233
10234 with_gnu_ld=$with_gnu_ld
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250 #
10251 # Do we need to explicitly link libc?
10252 #
10253 case "x$archive_cmds_need_lc" in
10254 x|xyes)
10255 # Assume -lc should be added
10256 archive_cmds_need_lc=yes
10257
10258 if test yes,yes = "$GCC,$enable_shared"; then
10259 case $archive_cmds in
10260 *'~'*)
10261 # FIXME: we may have to deal with multi-command sequences.
10262 ;;
10263 '$CC '*)
10264 # Test whether the compiler implicitly links with -lc since on some
10265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10266 # to ld, don't add -lc before -lgcc.
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10268 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10269 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 $RM conftest*
10273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10274
10275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10276 (eval $ac_compile) 2>&5
10277 ac_status=$?
10278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10279 test $ac_status = 0; } 2>conftest.err; then
10280 soname=conftest
10281 lib=conftest
10282 libobjs=conftest.$ac_objext
10283 deplibs=
10284 wl=$lt_prog_compiler_wl
10285 pic_flag=$lt_prog_compiler_pic
10286 compiler_flags=-v
10287 linker_flags=-v
10288 verstring=
10289 output_objdir=.
10290 libname=conftest
10291 lt_save_allow_undefined_flag=$allow_undefined_flag
10292 allow_undefined_flag=
10293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10294 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10295 ac_status=$?
10296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10297 test $ac_status = 0; }
10298 then
10299 lt_cv_archive_cmds_need_lc=no
10300 else
10301 lt_cv_archive_cmds_need_lc=yes
10302 fi
10303 allow_undefined_flag=$lt_save_allow_undefined_flag
10304 else
10305 cat conftest.err 1>&5
10306 fi
10307 $RM conftest*
10308
10309 fi
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10311 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10312 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10313 ;;
10314 esac
10315 fi
10316 ;;
10317 esac
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10471 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10472
10473 if test yes = "$GCC"; then
10474 case $host_os in
10475 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10476 *) lt_awk_arg='/^libraries:/' ;;
10477 esac
10478 case $host_os in
10479 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10480 *) lt_sed_strip_eq='s|=/|/|g' ;;
10481 esac
10482 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10483 case $lt_search_path_spec in
10484 *\;*)
10485 # if the path contains ";" then we assume it to be the separator
10486 # otherwise default to the standard path separator (i.e. ":") - it is
10487 # assumed that no part of a normal pathname contains ";" but that should
10488 # okay in the real world where ";" in dirpaths is itself problematic.
10489 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10490 ;;
10491 *)
10492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10493 ;;
10494 esac
10495 # Ok, now we have the path, separated by spaces, we can step through it
10496 # and add multilib dir if necessary...
10497 lt_tmp_lt_search_path_spec=
10498 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10499 # ...but if some path component already ends with the multilib dir we assume
10500 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10501 case "$lt_multi_os_dir; $lt_search_path_spec " in
10502 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10503 lt_multi_os_dir=
10504 ;;
10505 esac
10506 for lt_sys_path in $lt_search_path_spec; do
10507 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10508 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10509 elif test -n "$lt_multi_os_dir"; then
10510 test -d "$lt_sys_path" && \
10511 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10512 fi
10513 done
10514 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10515 BEGIN {RS = " "; FS = "/|\n";} {
10516 lt_foo = "";
10517 lt_count = 0;
10518 for (lt_i = NF; lt_i > 0; lt_i--) {
10519 if ($lt_i != "" && $lt_i != ".") {
10520 if ($lt_i == "..") {
10521 lt_count++;
10522 } else {
10523 if (lt_count == 0) {
10524 lt_foo = "/" $lt_i lt_foo;
10525 } else {
10526 lt_count--;
10527 }
10528 }
10529 }
10530 }
10531 if (lt_foo != "") { lt_freq[lt_foo]++; }
10532 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10533 }'`
10534 # AWK program above erroneously prepends '/' to C:/dos/paths
10535 # for these hosts.
10536 case $host_os in
10537 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10538 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10539 esac
10540 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10541 else
10542 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10543 fi
10544 library_names_spec=
10545 libname_spec='lib$name'
10546 soname_spec=
10547 shrext_cmds=.so
10548 postinstall_cmds=
10549 postuninstall_cmds=
10550 finish_cmds=
10551 finish_eval=
10552 shlibpath_var=
10553 shlibpath_overrides_runpath=unknown
10554 version_type=none
10555 dynamic_linker="$host_os ld.so"
10556 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10557 need_lib_prefix=unknown
10558 hardcode_into_libs=no
10559
10560 # when you set need_version to no, make sure it does not cause -set_version
10561 # flags to be left without arguments
10562 need_version=unknown
10563
10564 case $host_os in
10565 aix3*)
10566 version_type=linux # correct to gnu/linux during the next big refactor
10567 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10568 shlibpath_var=LIBPATH
10569
10570 # AIX 3 has no versioning support, so we append a major version to the name.
10571 soname_spec='$libname$release$shared_ext$major'
10572 ;;
10573
10574 aix[4-9]*)
10575 version_type=linux # correct to gnu/linux during the next big refactor
10576 need_lib_prefix=no
10577 need_version=no
10578 hardcode_into_libs=yes
10579 if test ia64 = "$host_cpu"; then
10580 # AIX 5 supports IA64
10581 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 else
10584 # With GCC up to 2.95.x, collect2 would create an import file
10585 # for dependence libraries. The import file would start with
10586 # the line '#! .'. This would cause the generated library to
10587 # depend on '.', always an invalid library. This was fixed in
10588 # development snapshots of GCC prior to 3.0.
10589 case $host_os in
10590 aix4 | aix4.[01] | aix4.[01].*)
10591 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10592 echo ' yes '
10593 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10594 :
10595 else
10596 can_build_shared=no
10597 fi
10598 ;;
10599 esac
10600 # Using Import Files as archive members, it is possible to support
10601 # filename-based versioning of shared library archives on AIX. While
10602 # this would work for both with and without runtime linking, it will
10603 # prevent static linking of such archives. So we do filename-based
10604 # shared library versioning with .so extension only, which is used
10605 # when both runtime linking and shared linking is enabled.
10606 # Unfortunately, runtime linking may impact performance, so we do
10607 # not want this to be the default eventually. Also, we use the
10608 # versioned .so libs for executables only if there is the -brtl
10609 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10610 # To allow for filename-based versioning support, we need to create
10611 # libNAME.so.V as an archive file, containing:
10612 # *) an Import File, referring to the versioned filename of the
10613 # archive as well as the shared archive member, telling the
10614 # bitwidth (32 or 64) of that shared object, and providing the
10615 # list of exported symbols of that shared object, eventually
10616 # decorated with the 'weak' keyword
10617 # *) the shared object with the F_LOADONLY flag set, to really avoid
10618 # it being seen by the linker.
10619 # At run time we better use the real file rather than another symlink,
10620 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10621
10622 case $with_aix_soname,$aix_use_runtimelinking in
10623 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10624 # soname into executable. Probably we can add versioning support to
10625 # collect2, so additional links can be useful in future.
10626 aix,yes) # traditional libtool
10627 dynamic_linker='AIX unversionable lib.so'
10628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10629 # instead of lib<name>.a to let people know that these are not
10630 # typical AIX shared libraries.
10631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10632 ;;
10633 aix,no) # traditional AIX only
10634 dynamic_linker='AIX lib.a(lib.so.V)'
10635 # We preserve .a as extension for shared libraries through AIX4.2
10636 # and later when we are not doing run time linking.
10637 library_names_spec='$libname$release.a $libname.a'
10638 soname_spec='$libname$release$shared_ext$major'
10639 ;;
10640 svr4,*) # full svr4 only
10641 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10642 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10643 # We do not specify a path in Import Files, so LIBPATH fires.
10644 shlibpath_overrides_runpath=yes
10645 ;;
10646 *,yes) # both, prefer svr4
10647 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10648 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10649 # unpreferred sharedlib libNAME.a needs extra handling
10650 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10651 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10652 # We do not specify a path in Import Files, so LIBPATH fires.
10653 shlibpath_overrides_runpath=yes
10654 ;;
10655 *,no) # both, prefer aix
10656 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10657 library_names_spec='$libname$release.a $libname.a'
10658 soname_spec='$libname$release$shared_ext$major'
10659 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10660 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10661 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10662 ;;
10663 esac
10664 shlibpath_var=LIBPATH
10665 fi
10666 ;;
10667
10668 amigaos*)
10669 case $host_cpu in
10670 powerpc)
10671 # Since July 2007 AmigaOS4 officially supports .so libraries.
10672 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10674 ;;
10675 m68k)
10676 library_names_spec='$libname.ixlibrary $libname.a'
10677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10678 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10679 ;;
10680 esac
10681 ;;
10682
10683 beos*)
10684 library_names_spec='$libname$shared_ext'
10685 dynamic_linker="$host_os ld.so"
10686 shlibpath_var=LIBRARY_PATH
10687 ;;
10688
10689 bsdi[45]*)
10690 version_type=linux # correct to gnu/linux during the next big refactor
10691 need_version=no
10692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10693 soname_spec='$libname$release$shared_ext$major'
10694 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10697 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10698 # the default ld.so.conf also contains /usr/contrib/lib and
10699 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10700 # libtool to hard-code these into programs
10701 ;;
10702
10703 cygwin* | mingw* | pw32* | cegcc*)
10704 version_type=windows
10705 shrext_cmds=.dll
10706 need_version=no
10707 need_lib_prefix=no
10708
10709 case $GCC,$cc_basename in
10710 yes,*)
10711 # gcc
10712 library_names_spec='$libname.dll.a'
10713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714 postinstall_cmds='base_file=`basename \$file`~
10715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10716 dldir=$destdir/`dirname \$dlpath`~
10717 test -d \$dldir || mkdir -p \$dldir~
10718 $install_prog $dir/$dlname \$dldir/$dlname~
10719 chmod a+x \$dldir/$dlname~
10720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10722 fi'
10723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10724 dlpath=$dir/\$dldll~
10725 $RM \$dlpath'
10726 shlibpath_overrides_runpath=yes
10727
10728 case $host_os in
10729 cygwin*)
10730 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10731 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10732
10733 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10734 ;;
10735 mingw* | cegcc*)
10736 # MinGW DLLs use traditional 'lib' prefix
10737 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10738 ;;
10739 pw32*)
10740 # pw32 DLLs use 'pw' prefix rather than 'lib'
10741 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10742 ;;
10743 esac
10744 dynamic_linker='Win32 ld.exe'
10745 ;;
10746
10747 *,cl*)
10748 # Native MSVC
10749 libname_spec='$name'
10750 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10751 library_names_spec='$libname.dll.lib'
10752
10753 case $build_os in
10754 mingw*)
10755 sys_lib_search_path_spec=
10756 lt_save_ifs=$IFS
10757 IFS=';'
10758 for lt_path in $LIB
10759 do
10760 IFS=$lt_save_ifs
10761 # Let DOS variable expansion print the short 8.3 style file name.
10762 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10763 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10764 done
10765 IFS=$lt_save_ifs
10766 # Convert to MSYS style.
10767 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10768 ;;
10769 cygwin*)
10770 # Convert to unix form, then to dos form, then back to unix form
10771 # but this time dos style (no spaces!) so that the unix form looks
10772 # like /cygdrive/c/PROGRA~1:/cygdr...
10773 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10774 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10775 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10776 ;;
10777 *)
10778 sys_lib_search_path_spec=$LIB
10779 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10780 # It is most probably a Windows format PATH.
10781 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10782 else
10783 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10784 fi
10785 # FIXME: find the short name or the path components, as spaces are
10786 # common. (e.g. "Program Files" -> "PROGRA~1")
10787 ;;
10788 esac
10789
10790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10791 postinstall_cmds='base_file=`basename \$file`~
10792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10793 dldir=$destdir/`dirname \$dlpath`~
10794 test -d \$dldir || mkdir -p \$dldir~
10795 $install_prog $dir/$dlname \$dldir/$dlname'
10796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10797 dlpath=$dir/\$dldll~
10798 $RM \$dlpath'
10799 shlibpath_overrides_runpath=yes
10800 dynamic_linker='Win32 link.exe'
10801 ;;
10802
10803 *)
10804 # Assume MSVC wrapper
10805 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10806 dynamic_linker='Win32 ld.exe'
10807 ;;
10808 esac
10809 # FIXME: first we should search . and the directory the executable is in
10810 shlibpath_var=PATH
10811 ;;
10812
10813 darwin* | rhapsody*)
10814 dynamic_linker="$host_os dyld"
10815 version_type=darwin
10816 need_lib_prefix=no
10817 need_version=no
10818 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10819 soname_spec='$libname$release$major$shared_ext'
10820 shlibpath_overrides_runpath=yes
10821 shlibpath_var=DYLD_LIBRARY_PATH
10822 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10823
10824 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10826 ;;
10827
10828 dgux*)
10829 version_type=linux # correct to gnu/linux during the next big refactor
10830 need_lib_prefix=no
10831 need_version=no
10832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10833 soname_spec='$libname$release$shared_ext$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 ;;
10836
10837 freebsd* | dragonfly*)
10838 # DragonFly does not have aout. When/if they implement a new
10839 # versioning mechanism, adjust this.
10840 if test -x /usr/bin/objformat; then
10841 objformat=`/usr/bin/objformat`
10842 else
10843 case $host_os in
10844 freebsd[23].*) objformat=aout ;;
10845 *) objformat=elf ;;
10846 esac
10847 fi
10848 version_type=freebsd-$objformat
10849 case $version_type in
10850 freebsd-elf*)
10851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10852 need_version=no
10853 need_lib_prefix=no
10854 ;;
10855 freebsd-*)
10856 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10857 need_version=yes
10858 ;;
10859 esac
10860 shlibpath_var=LD_LIBRARY_PATH
10861 case $host_os in
10862 freebsd2.*)
10863 shlibpath_overrides_runpath=yes
10864 ;;
10865 freebsd3.[01]* | freebsdelf3.[01]*)
10866 shlibpath_overrides_runpath=yes
10867 hardcode_into_libs=yes
10868 ;;
10869 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10870 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10871 shlibpath_overrides_runpath=no
10872 hardcode_into_libs=yes
10873 ;;
10874 *) # from 4.6 on, and DragonFly
10875 shlibpath_overrides_runpath=yes
10876 hardcode_into_libs=yes
10877 ;;
10878 esac
10879 ;;
10880
10881 haiku*)
10882 version_type=linux # correct to gnu/linux during the next big refactor
10883 need_lib_prefix=no
10884 need_version=no
10885 dynamic_linker="$host_os runtime_loader"
10886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10887 soname_spec='$libname$release$shared_ext$major'
10888 shlibpath_var=LIBRARY_PATH
10889 shlibpath_overrides_runpath=no
10890 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10891 hardcode_into_libs=yes
10892 ;;
10893
10894 hpux9* | hpux10* | hpux11*)
10895 # Give a soname corresponding to the major version so that dld.sl refuses to
10896 # link against other versions.
10897 version_type=sunos
10898 need_lib_prefix=no
10899 need_version=no
10900 case $host_cpu in
10901 ia64*)
10902 shrext_cmds='.so'
10903 hardcode_into_libs=yes
10904 dynamic_linker="$host_os dld.so"
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10908 soname_spec='$libname$release$shared_ext$major'
10909 if test 32 = "$HPUX_IA64_MODE"; then
10910 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10911 else
10912 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10913 fi
10914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10915 ;;
10916 hppa*64*)
10917 shrext_cmds='.sl'
10918 hardcode_into_libs=yes
10919 dynamic_linker="$host_os dld.sl"
10920 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10923 soname_spec='$libname$release$shared_ext$major'
10924 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10926 ;;
10927 *)
10928 shrext_cmds='.sl'
10929 dynamic_linker="$host_os dld.sl"
10930 shlibpath_var=SHLIB_PATH
10931 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10933 soname_spec='$libname$release$shared_ext$major'
10934 ;;
10935 esac
10936 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10937 postinstall_cmds='chmod 555 $lib'
10938 # or fails outright, so override atomically:
10939 install_override_mode=555
10940 ;;
10941
10942 interix[3-9]*)
10943 version_type=linux # correct to gnu/linux during the next big refactor
10944 need_lib_prefix=no
10945 need_version=no
10946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10947 soname_spec='$libname$release$shared_ext$major'
10948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=no
10951 hardcode_into_libs=yes
10952 ;;
10953
10954 irix5* | irix6* | nonstopux*)
10955 case $host_os in
10956 nonstopux*) version_type=nonstopux ;;
10957 *)
10958 if test yes = "$lt_cv_prog_gnu_ld"; then
10959 version_type=linux # correct to gnu/linux during the next big refactor
10960 else
10961 version_type=irix
10962 fi ;;
10963 esac
10964 need_lib_prefix=no
10965 need_version=no
10966 soname_spec='$libname$release$shared_ext$major'
10967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10968 case $host_os in
10969 irix5* | nonstopux*)
10970 libsuff= shlibsuff=
10971 ;;
10972 *)
10973 case $LD in # libtool.m4 will add one of these switches to LD
10974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10975 libsuff= shlibsuff= libmagic=32-bit;;
10976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10977 libsuff=32 shlibsuff=N32 libmagic=N32;;
10978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10979 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10980 *) libsuff= shlibsuff= libmagic=never-match;;
10981 esac
10982 ;;
10983 esac
10984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10985 shlibpath_overrides_runpath=no
10986 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10987 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10988 hardcode_into_libs=yes
10989 ;;
10990
10991 # No shared lib support for Linux oldld, aout, or coff.
10992 linux*oldld* | linux*aout* | linux*coff*)
10993 dynamic_linker=no
10994 ;;
10995
10996 linux*android*)
10997 version_type=none # Android doesn't support versioned libraries.
10998 need_lib_prefix=no
10999 need_version=no
11000 library_names_spec='$libname$release$shared_ext'
11001 soname_spec='$libname$release$shared_ext'
11002 finish_cmds=
11003 shlibpath_var=LD_LIBRARY_PATH
11004 shlibpath_overrides_runpath=yes
11005
11006 # This implies no fast_install, which is unacceptable.
11007 # Some rework will be needed to allow for fast_install
11008 # before this can be enabled.
11009 hardcode_into_libs=yes
11010
11011 dynamic_linker='Android linker'
11012 # Don't embed -rpath directories since the linker doesn't support them.
11013 hardcode_libdir_flag_spec='-L$libdir'
11014 ;;
11015
11016 # This must be glibc/ELF.
11017 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11018 version_type=linux # correct to gnu/linux during the next big refactor
11019 need_lib_prefix=no
11020 need_version=no
11021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11022 soname_spec='$libname$release$shared_ext$major'
11023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=no
11026
11027 # Some binutils ld are patched to set DT_RUNPATH
11028 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 lt_cv_shlibpath_overrides_runpath=no
11032 save_LDFLAGS=$LDFLAGS
11033 save_libdir=$libdir
11034 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11035 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11038
11039 int
11040 main ()
11041 {
11042
11043 ;
11044 return 0;
11045 }
11046 _ACEOF
11047 if ac_fn_c_try_link "$LINENO"; then :
11048 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11049 lt_cv_shlibpath_overrides_runpath=yes
11050 fi
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LDFLAGS=$save_LDFLAGS
11055 libdir=$save_libdir
11056
11057 fi
11058
11059 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11060
11061 # This implies no fast_install, which is unacceptable.
11062 # Some rework will be needed to allow for fast_install
11063 # before this can be enabled.
11064 hardcode_into_libs=yes
11065
11066 # Append ld.so.conf contents to the search path
11067 if test -f /etc/ld.so.conf; then
11068 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' ' '`
11069 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11070 fi
11071
11072 # We used to test for /lib/ld.so.1 and disable shared libraries on
11073 # powerpc, because MkLinux only supported shared libraries with the
11074 # GNU dynamic linker. Since this was broken with cross compilers,
11075 # most powerpc-linux boxes support dynamic linking these days and
11076 # people can always --disable-shared, the test was removed, and we
11077 # assume the GNU/Linux dynamic linker is in use.
11078 dynamic_linker='GNU/Linux ld.so'
11079 ;;
11080
11081 netbsd*)
11082 version_type=sunos
11083 need_lib_prefix=no
11084 need_version=no
11085 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11086 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088 dynamic_linker='NetBSD (a.out) ld.so'
11089 else
11090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11091 soname_spec='$libname$release$shared_ext$major'
11092 dynamic_linker='NetBSD ld.elf_so'
11093 fi
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 hardcode_into_libs=yes
11097 ;;
11098
11099 newsos6)
11100 version_type=linux # correct to gnu/linux during the next big refactor
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=yes
11104 ;;
11105
11106 *nto* | *qnx*)
11107 version_type=qnx
11108 need_lib_prefix=no
11109 need_version=no
11110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11111 soname_spec='$libname$release$shared_ext$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 shlibpath_overrides_runpath=no
11114 hardcode_into_libs=yes
11115 dynamic_linker='ldqnx.so'
11116 ;;
11117
11118 openbsd* | bitrig*)
11119 version_type=sunos
11120 sys_lib_dlsearch_path_spec=/usr/lib
11121 need_lib_prefix=no
11122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11123 need_version=no
11124 else
11125 need_version=yes
11126 fi
11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=yes
11131 ;;
11132
11133 os2*)
11134 libname_spec='$name'
11135 version_type=windows
11136 shrext_cmds=.dll
11137 need_version=no
11138 need_lib_prefix=no
11139 # OS/2 can only load a DLL with a base name of 8 characters or less.
11140 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11141 v=$($ECHO $release$versuffix | tr -d .-);
11142 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11143 $ECHO $n$v`$shared_ext'
11144 library_names_spec='${libname}_dll.$libext'
11145 dynamic_linker='OS/2 ld.exe'
11146 shlibpath_var=BEGINLIBPATH
11147 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11149 postinstall_cmds='base_file=`basename \$file`~
11150 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11151 dldir=$destdir/`dirname \$dlpath`~
11152 test -d \$dldir || mkdir -p \$dldir~
11153 $install_prog $dir/$dlname \$dldir/$dlname~
11154 chmod a+x \$dldir/$dlname~
11155 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11156 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11157 fi'
11158 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11159 dlpath=$dir/\$dldll~
11160 $RM \$dlpath'
11161 ;;
11162
11163 osf3* | osf4* | osf5*)
11164 version_type=osf
11165 need_lib_prefix=no
11166 need_version=no
11167 soname_spec='$libname$release$shared_ext$major'
11168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11172 ;;
11173
11174 rdos*)
11175 dynamic_linker=no
11176 ;;
11177
11178 solaris*)
11179 version_type=linux # correct to gnu/linux during the next big refactor
11180 need_lib_prefix=no
11181 need_version=no
11182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11183 soname_spec='$libname$release$shared_ext$major'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=yes
11186 hardcode_into_libs=yes
11187 # ldd complains unless libraries are executable
11188 postinstall_cmds='chmod +x $lib'
11189 ;;
11190
11191 sunos4*)
11192 version_type=sunos
11193 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 if test yes = "$with_gnu_ld"; then
11198 need_lib_prefix=no
11199 fi
11200 need_version=yes
11201 ;;
11202
11203 sysv4 | sysv4.3*)
11204 version_type=linux # correct to gnu/linux during the next big refactor
11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206 soname_spec='$libname$release$shared_ext$major'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 case $host_vendor in
11209 sni)
11210 shlibpath_overrides_runpath=no
11211 need_lib_prefix=no
11212 runpath_var=LD_RUN_PATH
11213 ;;
11214 siemens)
11215 need_lib_prefix=no
11216 ;;
11217 motorola)
11218 need_lib_prefix=no
11219 need_version=no
11220 shlibpath_overrides_runpath=no
11221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11222 ;;
11223 esac
11224 ;;
11225
11226 sysv4*MP*)
11227 if test -d /usr/nec; then
11228 version_type=linux # correct to gnu/linux during the next big refactor
11229 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11230 soname_spec='$libname$shared_ext.$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 fi
11233 ;;
11234
11235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11236 version_type=sco
11237 need_lib_prefix=no
11238 need_version=no
11239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11240 soname_spec='$libname$release$shared_ext$major'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 shlibpath_overrides_runpath=yes
11243 hardcode_into_libs=yes
11244 if test yes = "$with_gnu_ld"; then
11245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11246 else
11247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11248 case $host_os in
11249 sco3.2v5*)
11250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11251 ;;
11252 esac
11253 fi
11254 sys_lib_dlsearch_path_spec='/usr/lib'
11255 ;;
11256
11257 tpf*)
11258 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11259 version_type=linux # correct to gnu/linux during the next big refactor
11260 need_lib_prefix=no
11261 need_version=no
11262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=no
11265 hardcode_into_libs=yes
11266 ;;
11267
11268 uts4*)
11269 version_type=linux # correct to gnu/linux during the next big refactor
11270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11271 soname_spec='$libname$release$shared_ext$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 ;;
11274
11275 *)
11276 dynamic_linker=no
11277 ;;
11278 esac
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11280 $as_echo "$dynamic_linker" >&6; }
11281 test no = "$dynamic_linker" && can_build_shared=no
11282
11283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11284 if test yes = "$GCC"; then
11285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11286 fi
11287
11288 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11289 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11290 fi
11291 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11292 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11293 fi
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11387 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11388 hardcode_action=
11389 if test -n "$hardcode_libdir_flag_spec" ||
11390 test -n "$runpath_var" ||
11391 test yes = "$hardcode_automatic"; then
11392
11393 # We can hardcode non-existent directories.
11394 if test no != "$hardcode_direct" &&
11395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11396 # have to relink, otherwise we might link with an installed library
11397 # when we should be linking with a yet-to-be-installed one
11398 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11399 test no != "$hardcode_minus_L"; then
11400 # Linking always hardcodes the temporary library directory.
11401 hardcode_action=relink
11402 else
11403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11404 hardcode_action=immediate
11405 fi
11406 else
11407 # We cannot hardcode anything, or else we can only hardcode existing
11408 # directories.
11409 hardcode_action=unsupported
11410 fi
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11412 $as_echo "$hardcode_action" >&6; }
11413
11414 if test relink = "$hardcode_action" ||
11415 test yes = "$inherit_rpath"; then
11416 # Fast installation is not supported
11417 enable_fast_install=no
11418 elif test yes = "$shlibpath_overrides_runpath" ||
11419 test no = "$enable_shared"; then
11420 # Fast installation is not necessary
11421 enable_fast_install=needless
11422 fi
11423
11424
11425
11426
11427
11428
11429 if test yes != "$enable_dlopen"; then
11430 enable_dlopen=unknown
11431 enable_dlopen_self=unknown
11432 enable_dlopen_self_static=unknown
11433 else
11434 lt_cv_dlopen=no
11435 lt_cv_dlopen_libs=
11436
11437 case $host_os in
11438 beos*)
11439 lt_cv_dlopen=load_add_on
11440 lt_cv_dlopen_libs=
11441 lt_cv_dlopen_self=yes
11442 ;;
11443
11444 mingw* | pw32* | cegcc*)
11445 lt_cv_dlopen=LoadLibrary
11446 lt_cv_dlopen_libs=
11447 ;;
11448
11449 cygwin*)
11450 lt_cv_dlopen=dlopen
11451 lt_cv_dlopen_libs=
11452 ;;
11453
11454 darwin*)
11455 # if libdl is installed we need to link against it
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11457 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11458 if ${ac_cv_lib_dl_dlopen+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 ac_check_lib_save_LIBS=$LIBS
11462 LIBS="-ldl $LIBS"
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465
11466 /* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 char dlopen ();
11473 int
11474 main ()
11475 {
11476 return dlopen ();
11477 ;
11478 return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_c_try_link "$LINENO"; then :
11482 ac_cv_lib_dl_dlopen=yes
11483 else
11484 ac_cv_lib_dl_dlopen=no
11485 fi
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11491 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11492 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11493 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11494 else
11495
11496 lt_cv_dlopen=dyld
11497 lt_cv_dlopen_libs=
11498 lt_cv_dlopen_self=yes
11499
11500 fi
11501
11502 ;;
11503
11504 tpf*)
11505 # Don't try to run any link tests for TPF. We know it's impossible
11506 # because TPF is a cross-compiler, and we know how we open DSOs.
11507 lt_cv_dlopen=dlopen
11508 lt_cv_dlopen_libs=
11509 lt_cv_dlopen_self=no
11510 ;;
11511
11512 *)
11513 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11514 if test "x$ac_cv_func_shl_load" = xyes; then :
11515 lt_cv_dlopen=shl_load
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11518 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11519 if ${ac_cv_lib_dld_shl_load+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-ldld $LIBS"
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char shl_load ();
11534 int
11535 main ()
11536 {
11537 return shl_load ();
11538 ;
11539 return 0;
11540 }
11541 _ACEOF
11542 if ac_fn_c_try_link "$LINENO"; then :
11543 ac_cv_lib_dld_shl_load=yes
11544 else
11545 ac_cv_lib_dld_shl_load=no
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11552 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11553 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11554 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11555 else
11556 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11557 if test "x$ac_cv_func_dlopen" = xyes; then :
11558 lt_cv_dlopen=dlopen
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11561 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11562 if ${ac_cv_lib_dl_dlopen+:} false; then :
11563 $as_echo_n "(cached) " >&6
11564 else
11565 ac_check_lib_save_LIBS=$LIBS
11566 LIBS="-ldl $LIBS"
11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h. */
11569
11570 /* Override any GCC internal prototype to avoid an error.
11571 Use char because int might match the return type of a GCC
11572 builtin and then its argument prototype would still apply. */
11573 #ifdef __cplusplus
11574 extern "C"
11575 #endif
11576 char dlopen ();
11577 int
11578 main ()
11579 {
11580 return dlopen ();
11581 ;
11582 return 0;
11583 }
11584 _ACEOF
11585 if ac_fn_c_try_link "$LINENO"; then :
11586 ac_cv_lib_dl_dlopen=yes
11587 else
11588 ac_cv_lib_dl_dlopen=no
11589 fi
11590 rm -f core conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11592 LIBS=$ac_check_lib_save_LIBS
11593 fi
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11595 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11596 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11597 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11598 else
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11600 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11601 if ${ac_cv_lib_svld_dlopen+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 ac_check_lib_save_LIBS=$LIBS
11605 LIBS="-lsvld $LIBS"
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608
11609 /* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 char dlopen ();
11616 int
11617 main ()
11618 {
11619 return dlopen ();
11620 ;
11621 return 0;
11622 }
11623 _ACEOF
11624 if ac_fn_c_try_link "$LINENO"; then :
11625 ac_cv_lib_svld_dlopen=yes
11626 else
11627 ac_cv_lib_svld_dlopen=no
11628 fi
11629 rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11631 LIBS=$ac_check_lib_save_LIBS
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11634 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11635 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11636 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11639 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11640 if ${ac_cv_lib_dld_dld_link+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 ac_check_lib_save_LIBS=$LIBS
11644 LIBS="-ldld $LIBS"
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647
11648 /* Override any GCC internal prototype to avoid an error.
11649 Use char because int might match the return type of a GCC
11650 builtin and then its argument prototype would still apply. */
11651 #ifdef __cplusplus
11652 extern "C"
11653 #endif
11654 char dld_link ();
11655 int
11656 main ()
11657 {
11658 return dld_link ();
11659 ;
11660 return 0;
11661 }
11662 _ACEOF
11663 if ac_fn_c_try_link "$LINENO"; then :
11664 ac_cv_lib_dld_dld_link=yes
11665 else
11666 ac_cv_lib_dld_dld_link=no
11667 fi
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 LIBS=$ac_check_lib_save_LIBS
11671 fi
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11673 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11674 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11675 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11676 fi
11677
11678
11679 fi
11680
11681
11682 fi
11683
11684
11685 fi
11686
11687
11688 fi
11689
11690
11691 fi
11692
11693 ;;
11694 esac
11695
11696 if test no = "$lt_cv_dlopen"; then
11697 enable_dlopen=no
11698 else
11699 enable_dlopen=yes
11700 fi
11701
11702 case $lt_cv_dlopen in
11703 dlopen)
11704 save_CPPFLAGS=$CPPFLAGS
11705 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11706
11707 save_LDFLAGS=$LDFLAGS
11708 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11709
11710 save_LIBS=$LIBS
11711 LIBS="$lt_cv_dlopen_libs $LIBS"
11712
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11714 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11715 if ${lt_cv_dlopen_self+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 if test yes = "$cross_compiling"; then :
11719 lt_cv_dlopen_self=cross
11720 else
11721 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11722 lt_status=$lt_dlunknown
11723 cat > conftest.$ac_ext <<_LT_EOF
11724 #line $LINENO "configure"
11725 #include "confdefs.h"
11726
11727 #if HAVE_DLFCN_H
11728 #include <dlfcn.h>
11729 #endif
11730
11731 #include <stdio.h>
11732
11733 #ifdef RTLD_GLOBAL
11734 # define LT_DLGLOBAL RTLD_GLOBAL
11735 #else
11736 # ifdef DL_GLOBAL
11737 # define LT_DLGLOBAL DL_GLOBAL
11738 # else
11739 # define LT_DLGLOBAL 0
11740 # endif
11741 #endif
11742
11743 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11744 find out it does not work in some platform. */
11745 #ifndef LT_DLLAZY_OR_NOW
11746 # ifdef RTLD_LAZY
11747 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11748 # else
11749 # ifdef DL_LAZY
11750 # define LT_DLLAZY_OR_NOW DL_LAZY
11751 # else
11752 # ifdef RTLD_NOW
11753 # define LT_DLLAZY_OR_NOW RTLD_NOW
11754 # else
11755 # ifdef DL_NOW
11756 # define LT_DLLAZY_OR_NOW DL_NOW
11757 # else
11758 # define LT_DLLAZY_OR_NOW 0
11759 # endif
11760 # endif
11761 # endif
11762 # endif
11763 #endif
11764
11765 /* When -fvisibility=hidden is used, assume the code has been annotated
11766 correspondingly for the symbols needed. */
11767 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11768 int fnord () __attribute__((visibility("default")));
11769 #endif
11770
11771 int fnord () { return 42; }
11772 int main ()
11773 {
11774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11775 int status = $lt_dlunknown;
11776
11777 if (self)
11778 {
11779 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11780 else
11781 {
11782 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11783 else puts (dlerror ());
11784 }
11785 /* dlclose (self); */
11786 }
11787 else
11788 puts (dlerror ());
11789
11790 return status;
11791 }
11792 _LT_EOF
11793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11794 (eval $ac_link) 2>&5
11795 ac_status=$?
11796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11797 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11798 (./conftest; exit; ) >&5 2>/dev/null
11799 lt_status=$?
11800 case x$lt_status in
11801 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11802 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11803 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11804 esac
11805 else :
11806 # compilation failed
11807 lt_cv_dlopen_self=no
11808 fi
11809 fi
11810 rm -fr conftest*
11811
11812
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11815 $as_echo "$lt_cv_dlopen_self" >&6; }
11816
11817 if test yes = "$lt_cv_dlopen_self"; then
11818 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11820 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11821 if ${lt_cv_dlopen_self_static+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 if test yes = "$cross_compiling"; then :
11825 lt_cv_dlopen_self_static=cross
11826 else
11827 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11828 lt_status=$lt_dlunknown
11829 cat > conftest.$ac_ext <<_LT_EOF
11830 #line $LINENO "configure"
11831 #include "confdefs.h"
11832
11833 #if HAVE_DLFCN_H
11834 #include <dlfcn.h>
11835 #endif
11836
11837 #include <stdio.h>
11838
11839 #ifdef RTLD_GLOBAL
11840 # define LT_DLGLOBAL RTLD_GLOBAL
11841 #else
11842 # ifdef DL_GLOBAL
11843 # define LT_DLGLOBAL DL_GLOBAL
11844 # else
11845 # define LT_DLGLOBAL 0
11846 # endif
11847 #endif
11848
11849 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11850 find out it does not work in some platform. */
11851 #ifndef LT_DLLAZY_OR_NOW
11852 # ifdef RTLD_LAZY
11853 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11854 # else
11855 # ifdef DL_LAZY
11856 # define LT_DLLAZY_OR_NOW DL_LAZY
11857 # else
11858 # ifdef RTLD_NOW
11859 # define LT_DLLAZY_OR_NOW RTLD_NOW
11860 # else
11861 # ifdef DL_NOW
11862 # define LT_DLLAZY_OR_NOW DL_NOW
11863 # else
11864 # define LT_DLLAZY_OR_NOW 0
11865 # endif
11866 # endif
11867 # endif
11868 # endif
11869 #endif
11870
11871 /* When -fvisibility=hidden is used, assume the code has been annotated
11872 correspondingly for the symbols needed. */
11873 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11874 int fnord () __attribute__((visibility("default")));
11875 #endif
11876
11877 int fnord () { return 42; }
11878 int main ()
11879 {
11880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11881 int status = $lt_dlunknown;
11882
11883 if (self)
11884 {
11885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11886 else
11887 {
11888 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11889 else puts (dlerror ());
11890 }
11891 /* dlclose (self); */
11892 }
11893 else
11894 puts (dlerror ());
11895
11896 return status;
11897 }
11898 _LT_EOF
11899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11900 (eval $ac_link) 2>&5
11901 ac_status=$?
11902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11903 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11904 (./conftest; exit; ) >&5 2>/dev/null
11905 lt_status=$?
11906 case x$lt_status in
11907 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11908 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11909 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11910 esac
11911 else :
11912 # compilation failed
11913 lt_cv_dlopen_self_static=no
11914 fi
11915 fi
11916 rm -fr conftest*
11917
11918
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11921 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11922 fi
11923
11924 CPPFLAGS=$save_CPPFLAGS
11925 LDFLAGS=$save_LDFLAGS
11926 LIBS=$save_LIBS
11927 ;;
11928 esac
11929
11930 case $lt_cv_dlopen_self in
11931 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11932 *) enable_dlopen_self=unknown ;;
11933 esac
11934
11935 case $lt_cv_dlopen_self_static in
11936 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11937 *) enable_dlopen_self_static=unknown ;;
11938 esac
11939 fi
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957 striplib=
11958 old_striplib=
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11960 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11961 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11962 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11963 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11965 $as_echo "yes" >&6; }
11966 else
11967 # FIXME - insert some real tests, host_os isn't really good enough
11968 case $host_os in
11969 darwin*)
11970 if test -n "$STRIP"; then
11971 striplib="$STRIP -x"
11972 old_striplib="$STRIP -S"
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11974 $as_echo "yes" >&6; }
11975 else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11978 fi
11979 ;;
11980 *)
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11983 ;;
11984 esac
11985 fi
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998 # Report what library types will actually be built
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12000 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12002 $as_echo "$can_build_shared" >&6; }
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12005 $as_echo_n "checking whether to build shared libraries... " >&6; }
12006 test no = "$can_build_shared" && enable_shared=no
12007
12008 # On AIX, shared libraries and static libraries use the same namespace, and
12009 # are all built from PIC.
12010 case $host_os in
12011 aix3*)
12012 test yes = "$enable_shared" && enable_static=no
12013 if test -n "$RANLIB"; then
12014 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12015 postinstall_cmds='$RANLIB $lib'
12016 fi
12017 ;;
12018
12019 aix[4-9]*)
12020 if test ia64 != "$host_cpu"; then
12021 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12022 yes,aix,yes) ;; # shared object as lib.so file only
12023 yes,svr4,*) ;; # shared object as lib.so archive member only
12024 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12025 esac
12026 fi
12027 ;;
12028 esac
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12030 $as_echo "$enable_shared" >&6; }
12031
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12033 $as_echo_n "checking whether to build static libraries... " >&6; }
12034 # Make sure either enable_shared or enable_static is yes.
12035 test yes = "$enable_shared" || enable_static=yes
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12037 $as_echo "$enable_static" >&6; }
12038
12039
12040
12041
12042 fi
12043 ac_ext=c
12044 ac_cpp='$CPP $CPPFLAGS'
12045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12048
12049 CC=$lt_save_CC
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065 ac_config_commands="$ac_config_commands libtool"
12066
12067
12068
12069
12070 # Only expand once:
12071
12072
12073
12074
12075 for ac_header in sys/poll.h
12076 do :
12077 ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
12078 if test "x$ac_cv_header_sys_poll_h" = xyes; then :
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_SYS_POLL_H 1
12081 _ACEOF
12082 have_poll_sys_h=yes
12083 else
12084 have_sys_poll_h=no
12085 fi
12086
12087 done
12088
12089
12090 for ac_header in fcntl.h sys/time.h unistd.h strings.h
12091 do :
12092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12093 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12094 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12095 cat >>confdefs.h <<_ACEOF
12096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12097 _ACEOF
12098
12099 fi
12100
12101 done
12102
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12105 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12106 if ${ac_cv_header_time+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111 #include <sys/types.h>
12112 #include <sys/time.h>
12113 #include <time.h>
12114
12115 int
12116 main ()
12117 {
12118 if ((struct tm *) 0)
12119 return 0;
12120 ;
12121 return 0;
12122 }
12123 _ACEOF
12124 if ac_fn_c_try_compile "$LINENO"; then :
12125 ac_cv_header_time=yes
12126 else
12127 ac_cv_header_time=no
12128 fi
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12132 $as_echo "$ac_cv_header_time" >&6; }
12133 if test $ac_cv_header_time = yes; then
12134
12135 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12136
12137 fi
12138
12139
12140 if test "$have_sys_poll_h" = "no"; then
12141 for ac_func in select
12142 do :
12143 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
12144 if test "x$ac_cv_func_select" = xyes; then :
12145 cat >>confdefs.h <<_ACEOF
12146 #define HAVE_SELECT 1
12147 _ACEOF
12148 have_select=yes
12149 else
12150 have_select=no
12151 fi
12152 done
12153
12154 if test "$have_select" = "no"; then
12155 as_fn_error $? "No select() implementation found" "$LINENO" 5
12156 fi
12157 fi
12158
12159 for ac_func in gethostbyname
12160 do :
12161 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12162 if test "x$ac_cv_func_gethostbyname" = xyes; then :
12163 cat >>confdefs.h <<_ACEOF
12164 #define HAVE_GETHOSTBYNAME 1
12165 _ACEOF
12166
12167 fi
12168 done
12169
12170
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12172 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12173 if ${ac_cv_c_bigendian+:} false; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 ac_cv_c_bigendian=unknown
12177 # See if we're dealing with a universal compiler.
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12180 #ifndef __APPLE_CC__
12181 not a universal capable compiler
12182 #endif
12183 typedef int dummy;
12184
12185 _ACEOF
12186 if ac_fn_c_try_compile "$LINENO"; then :
12187
12188 # Check for potential -arch flags. It is not universal unless
12189 # there are at least two -arch flags with different values.
12190 ac_arch=
12191 ac_prev=
12192 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12193 if test -n "$ac_prev"; then
12194 case $ac_word in
12195 i?86 | x86_64 | ppc | ppc64)
12196 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12197 ac_arch=$ac_word
12198 else
12199 ac_cv_c_bigendian=universal
12200 break
12201 fi
12202 ;;
12203 esac
12204 ac_prev=
12205 elif test "x$ac_word" = "x-arch"; then
12206 ac_prev=arch
12207 fi
12208 done
12209 fi
12210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211 if test $ac_cv_c_bigendian = unknown; then
12212 # See if sys/param.h defines the BYTE_ORDER macro.
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12215 #include <sys/types.h>
12216 #include <sys/param.h>
12217
12218 int
12219 main ()
12220 {
12221 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12222 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12223 && LITTLE_ENDIAN)
12224 bogus endian macros
12225 #endif
12226
12227 ;
12228 return 0;
12229 }
12230 _ACEOF
12231 if ac_fn_c_try_compile "$LINENO"; then :
12232 # It does; now see whether it defined to BIG_ENDIAN or not.
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12235 #include <sys/types.h>
12236 #include <sys/param.h>
12237
12238 int
12239 main ()
12240 {
12241 #if BYTE_ORDER != BIG_ENDIAN
12242 not big endian
12243 #endif
12244
12245 ;
12246 return 0;
12247 }
12248 _ACEOF
12249 if ac_fn_c_try_compile "$LINENO"; then :
12250 ac_cv_c_bigendian=yes
12251 else
12252 ac_cv_c_bigendian=no
12253 fi
12254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 fi
12256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12257 fi
12258 if test $ac_cv_c_bigendian = unknown; then
12259 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12262 #include <limits.h>
12263
12264 int
12265 main ()
12266 {
12267 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12268 bogus endian macros
12269 #endif
12270
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_compile "$LINENO"; then :
12276 # It does; now see whether it defined to _BIG_ENDIAN or not.
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12279 #include <limits.h>
12280
12281 int
12282 main ()
12283 {
12284 #ifndef _BIG_ENDIAN
12285 not big endian
12286 #endif
12287
12288 ;
12289 return 0;
12290 }
12291 _ACEOF
12292 if ac_fn_c_try_compile "$LINENO"; then :
12293 ac_cv_c_bigendian=yes
12294 else
12295 ac_cv_c_bigendian=no
12296 fi
12297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12298 fi
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300 fi
12301 if test $ac_cv_c_bigendian = unknown; then
12302 # Compile a test program.
12303 if test "$cross_compiling" = yes; then :
12304 # Try to guess by grepping values from an object file.
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12307 short int ascii_mm[] =
12308 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12309 short int ascii_ii[] =
12310 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12311 int use_ascii (int i) {
12312 return ascii_mm[i] + ascii_ii[i];
12313 }
12314 short int ebcdic_ii[] =
12315 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12316 short int ebcdic_mm[] =
12317 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12318 int use_ebcdic (int i) {
12319 return ebcdic_mm[i] + ebcdic_ii[i];
12320 }
12321 extern int foo;
12322
12323 int
12324 main ()
12325 {
12326 return use_ascii (foo) == use_ebcdic (foo);
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 if ac_fn_c_try_compile "$LINENO"; then :
12332 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12333 ac_cv_c_bigendian=yes
12334 fi
12335 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12336 if test "$ac_cv_c_bigendian" = unknown; then
12337 ac_cv_c_bigendian=no
12338 else
12339 # finding both strings is unlikely to happen, but who knows?
12340 ac_cv_c_bigendian=unknown
12341 fi
12342 fi
12343 fi
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 else
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348 $ac_includes_default
12349 int
12350 main ()
12351 {
12352
12353 /* Are we little or big endian? From Harbison&Steele. */
12354 union
12355 {
12356 long int l;
12357 char c[sizeof (long int)];
12358 } u;
12359 u.l = 1;
12360 return u.c[sizeof (long int) - 1] == 1;
12361
12362 ;
12363 return 0;
12364 }
12365 _ACEOF
12366 if ac_fn_c_try_run "$LINENO"; then :
12367 ac_cv_c_bigendian=no
12368 else
12369 ac_cv_c_bigendian=yes
12370 fi
12371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12372 conftest.$ac_objext conftest.beam conftest.$ac_ext
12373 fi
12374
12375 fi
12376 fi
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12378 $as_echo "$ac_cv_c_bigendian" >&6; }
12379 case $ac_cv_c_bigendian in #(
12380 yes)
12381 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12382 ;; #(
12383 no)
12384 ;; #(
12385 universal)
12386
12387 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12388
12389 ;; #(
12390 *)
12391 as_fn_error $? "unknown endianness
12392 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12393 esac
12394
12395
12396 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12397 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12398
12399 else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12401 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12402 if ${ac_cv_search_getaddrinfo+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 ac_func_search_save_LIBS=$LIBS
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12408
12409 /* Override any GCC internal prototype to avoid an error.
12410 Use char because int might match the return type of a GCC
12411 builtin and then its argument prototype would still apply. */
12412 #ifdef __cplusplus
12413 extern "C"
12414 #endif
12415 char getaddrinfo ();
12416 int
12417 main ()
12418 {
12419 return getaddrinfo ();
12420 ;
12421 return 0;
12422 }
12423 _ACEOF
12424 for ac_lib in '' nsl; do
12425 if test -z "$ac_lib"; then
12426 ac_res="none required"
12427 else
12428 ac_res=-l$ac_lib
12429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12430 fi
12431 if ac_fn_c_try_link "$LINENO"; then :
12432 ac_cv_search_getaddrinfo=$ac_res
12433 fi
12434 rm -f core conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext
12436 if ${ac_cv_search_getaddrinfo+:} false; then :
12437 break
12438 fi
12439 done
12440 if ${ac_cv_search_getaddrinfo+:} false; then :
12441
12442 else
12443 ac_cv_search_getaddrinfo=no
12444 fi
12445 rm conftest.$ac_ext
12446 LIBS=$ac_func_search_save_LIBS
12447 fi
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12449 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12450 ac_res=$ac_cv_search_getaddrinfo
12451 if test "$ac_res" != no; then :
12452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12453
12454 fi
12455
12456 fi
12457
12458 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12459 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12460
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12463 $as_echo_n "checking for library containing getnameinfo... " >&6; }
12464 if ${ac_cv_search_getnameinfo+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 ac_func_search_save_LIBS=$LIBS
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470
12471 /* Override any GCC internal prototype to avoid an error.
12472 Use char because int might match the return type of a GCC
12473 builtin and then its argument prototype would still apply. */
12474 #ifdef __cplusplus
12475 extern "C"
12476 #endif
12477 char getnameinfo ();
12478 int
12479 main ()
12480 {
12481 return getnameinfo ();
12482 ;
12483 return 0;
12484 }
12485 _ACEOF
12486 for ac_lib in '' nsl; do
12487 if test -z "$ac_lib"; then
12488 ac_res="none required"
12489 else
12490 ac_res=-l$ac_lib
12491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12492 fi
12493 if ac_fn_c_try_link "$LINENO"; then :
12494 ac_cv_search_getnameinfo=$ac_res
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext
12498 if ${ac_cv_search_getnameinfo+:} false; then :
12499 break
12500 fi
12501 done
12502 if ${ac_cv_search_getnameinfo+:} false; then :
12503
12504 else
12505 ac_cv_search_getnameinfo=no
12506 fi
12507 rm conftest.$ac_ext
12508 LIBS=$ac_func_search_save_LIBS
12509 fi
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12511 $as_echo "$ac_cv_search_getnameinfo" >&6; }
12512 ac_res=$ac_cv_search_getnameinfo
12513 if test "$ac_res" != no; then :
12514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12515
12516 fi
12517
12518 fi
12519
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12521 $as_echo_n "checking for library containing socket... " >&6; }
12522 if ${ac_cv_search_socket+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 ac_func_search_save_LIBS=$LIBS
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char socket ();
12536 int
12537 main ()
12538 {
12539 return socket ();
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 for ac_lib in '' socket; do
12545 if test -z "$ac_lib"; then
12546 ac_res="none required"
12547 else
12548 ac_res=-l$ac_lib
12549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12550 fi
12551 if ac_fn_c_try_link "$LINENO"; then :
12552 ac_cv_search_socket=$ac_res
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext
12556 if ${ac_cv_search_socket+:} false; then :
12557 break
12558 fi
12559 done
12560 if ${ac_cv_search_socket+:} false; then :
12561
12562 else
12563 ac_cv_search_socket=no
12564 fi
12565 rm conftest.$ac_ext
12566 LIBS=$ac_func_search_save_LIBS
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12569 $as_echo "$ac_cv_search_socket" >&6; }
12570 ac_res=$ac_cv_search_socket
12571 if test "$ac_res" != no; then :
12572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12573
12574 else
12575 as_fn_error $? "socket library not found" "$LINENO" 5
12576 fi
12577
12578
12579 LTLIBOBJS=`echo "$LIBOBJS" |
12580 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
12581
12582
12583 ac_config_files="$ac_config_files Makefile src/Makefile"
12584
12585 cat >confcache <<\_ACEOF
12586 # This file is a shell script that caches the results of configure
12587 # tests run on this system so they can be shared between configure
12588 # scripts and configure runs, see configure's option --config-cache.
12589 # It is not useful on other systems. If it contains results you don't
12590 # want to keep, you may remove or edit it.
12591 #
12592 # config.status only pays attention to the cache file if you give it
12593 # the --recheck option to rerun configure.
12594 #
12595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12597 # following values.
12598
12599 _ACEOF
12600
12601 # The following way of writing the cache mishandles newlines in values,
12602 # but we know of no workaround that is simple, portable, and efficient.
12603 # So, we kill variables containing newlines.
12604 # Ultrix sh set writes to stderr and can't be redirected directly,
12605 # and sets the high bit in the cache file unless we assign to the vars.
12606 (
12607 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12608 eval ac_val=\$$ac_var
12609 case $ac_val in #(
12610 *${as_nl}*)
12611 case $ac_var in #(
12612 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12614 esac
12615 case $ac_var in #(
12616 _ | IFS | as_nl) ;; #(
12617 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12618 *) { eval $ac_var=; unset $ac_var;} ;;
12619 esac ;;
12620 esac
12621 done
12622
12623 (set) 2>&1 |
12624 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12625 *${as_nl}ac_space=\ *)
12626 # `set' does not quote correctly, so add quotes: double-quote
12627 # substitution turns \\\\ into \\, and sed turns \\ into \.
12628 sed -n \
12629 "s/'/'\\\\''/g;
12630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12631 ;; #(
12632 *)
12633 # `set' quotes correctly as required by POSIX, so do not add quotes.
12634 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12635 ;;
12636 esac |
12637 sort
12638 ) |
12639 sed '
12640 /^ac_cv_env_/b end
12641 t clear
12642 :clear
12643 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12644 t end
12645 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12646 :end' >>confcache
12647 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12648 if test -w "$cache_file"; then
12649 if test "x$cache_file" != "x/dev/null"; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12651 $as_echo "$as_me: updating cache $cache_file" >&6;}
12652 if test ! -f "$cache_file" || test -h "$cache_file"; then
12653 cat confcache >"$cache_file"
12654 else
12655 case $cache_file in #(
12656 */* | ?:*)
12657 mv -f confcache "$cache_file"$$ &&
12658 mv -f "$cache_file"$$ "$cache_file" ;; #(
12659 *)
12660 mv -f confcache "$cache_file" ;;
12661 esac
12662 fi
12663 fi
12664 else
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12666 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12667 fi
12668 fi
12669 rm -f confcache
12670
12671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12672 # Let make expand exec_prefix.
12673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12674
12675 DEFS=-DHAVE_CONFIG_H
12676
12677 ac_libobjs=
12678 ac_ltlibobjs=
12679 U=
12680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12681 # 1. Remove the extension, and $U if already installed.
12682 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12683 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12684 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12685 # will be set to the directory where LIBOBJS objects are built.
12686 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12687 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12688 done
12689 LIBOBJS=$ac_libobjs
12690
12691 LTLIBOBJS=$ac_ltlibobjs
12692
12693
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12695 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12696 if test -n "$am_sleep_pid"; then
12697 # Hide warnings about reused PIDs.
12698 wait $am_sleep_pid 2>/dev/null
12699 fi
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12701 $as_echo "done" >&6; }
12702 if test -n "$EXEEXT"; then
12703 am__EXEEXT_TRUE=
12704 am__EXEEXT_FALSE='#'
12705 else
12706 am__EXEEXT_TRUE='#'
12707 am__EXEEXT_FALSE=
12708 fi
12709
12710 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12711 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12713 fi
12714 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12715 as_fn_error $? "conditional \"AMDEP\" was never defined.
12716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12717 fi
12718 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12719 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12721 fi
12722
12723
12724 : "${CONFIG_STATUS=./config.status}"
12725 ac_write_fail=0
12726 ac_clean_files_save=$ac_clean_files
12727 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12729 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12730 as_write_fail=0
12731 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12732 #! $SHELL
12733 # Generated by $as_me.
12734 # Run this file to recreate the current configuration.
12735 # Compiler output produced by configure, useful for debugging
12736 # configure, is in config.log if it exists.
12737
12738 debug=false
12739 ac_cs_recheck=false
12740 ac_cs_silent=false
12741
12742 SHELL=\${CONFIG_SHELL-$SHELL}
12743 export SHELL
12744 _ASEOF
12745 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12746 ## -------------------- ##
12747 ## M4sh Initialization. ##
12748 ## -------------------- ##
12749
12750 # Be more Bourne compatible
12751 DUALCASE=1; export DUALCASE # for MKS sh
12752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12753 emulate sh
12754 NULLCMD=:
12755 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12756 # is contrary to our usage. Disable this feature.
12757 alias -g '${1+"$@"}'='"$@"'
12758 setopt NO_GLOB_SUBST
12759 else
12760 case `(set -o) 2>/dev/null` in #(
12761 *posix*) :
12762 set -o posix ;; #(
12763 *) :
12764 ;;
12765 esac
12766 fi
12767
12768
12769 as_nl='
12770 '
12771 export as_nl
12772 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12773 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12776 # Prefer a ksh shell builtin over an external printf program on Solaris,
12777 # but without wasting forks for bash or zsh.
12778 if test -z "$BASH_VERSION$ZSH_VERSION" \
12779 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12780 as_echo='print -r --'
12781 as_echo_n='print -rn --'
12782 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12783 as_echo='printf %s\n'
12784 as_echo_n='printf %s'
12785 else
12786 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12787 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12788 as_echo_n='/usr/ucb/echo -n'
12789 else
12790 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12791 as_echo_n_body='eval
12792 arg=$1;
12793 case $arg in #(
12794 *"$as_nl"*)
12795 expr "X$arg" : "X\\(.*\\)$as_nl";
12796 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12797 esac;
12798 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12799 '
12800 export as_echo_n_body
12801 as_echo_n='sh -c $as_echo_n_body as_echo'
12802 fi
12803 export as_echo_body
12804 as_echo='sh -c $as_echo_body as_echo'
12805 fi
12806
12807 # The user is always right.
12808 if test "${PATH_SEPARATOR+set}" != set; then
12809 PATH_SEPARATOR=:
12810 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12811 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12812 PATH_SEPARATOR=';'
12813 }
12814 fi
12815
12816
12817 # IFS
12818 # We need space, tab and new line, in precisely that order. Quoting is
12819 # there to prevent editors from complaining about space-tab.
12820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12821 # splitting by setting IFS to empty value.)
12822 IFS=" "" $as_nl"
12823
12824 # Find who we are. Look in the path if we contain no directory separator.
12825 as_myself=
12826 case $0 in #((
12827 *[\\/]* ) as_myself=$0 ;;
12828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $PATH
12830 do
12831 IFS=$as_save_IFS
12832 test -z "$as_dir" && as_dir=.
12833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12834 done
12835 IFS=$as_save_IFS
12836
12837 ;;
12838 esac
12839 # We did not find ourselves, most probably we were run as `sh COMMAND'
12840 # in which case we are not to be found in the path.
12841 if test "x$as_myself" = x; then
12842 as_myself=$0
12843 fi
12844 if test ! -f "$as_myself"; then
12845 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12846 exit 1
12847 fi
12848
12849 # Unset variables that we do not need and which cause bugs (e.g. in
12850 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12851 # suppresses any "Segmentation fault" message there. '((' could
12852 # trigger a bug in pdksh 5.2.14.
12853 for as_var in BASH_ENV ENV MAIL MAILPATH
12854 do eval test x\${$as_var+set} = xset \
12855 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12856 done
12857 PS1='$ '
12858 PS2='> '
12859 PS4='+ '
12860
12861 # NLS nuisances.
12862 LC_ALL=C
12863 export LC_ALL
12864 LANGUAGE=C
12865 export LANGUAGE
12866
12867 # CDPATH.
12868 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12869
12870
12871 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12872 # ----------------------------------------
12873 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12874 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12875 # script with STATUS, using 1 if that was 0.
12876 as_fn_error ()
12877 {
12878 as_status=$1; test $as_status -eq 0 && as_status=1
12879 if test "$4"; then
12880 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12881 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12882 fi
12883 $as_echo "$as_me: error: $2" >&2
12884 as_fn_exit $as_status
12885 } # as_fn_error
12886
12887
12888 # as_fn_set_status STATUS
12889 # -----------------------
12890 # Set $? to STATUS, without forking.
12891 as_fn_set_status ()
12892 {
12893 return $1
12894 } # as_fn_set_status
12895
12896 # as_fn_exit STATUS
12897 # -----------------
12898 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12899 as_fn_exit ()
12900 {
12901 set +e
12902 as_fn_set_status $1
12903 exit $1
12904 } # as_fn_exit
12905
12906 # as_fn_unset VAR
12907 # ---------------
12908 # Portably unset VAR.
12909 as_fn_unset ()
12910 {
12911 { eval $1=; unset $1;}
12912 }
12913 as_unset=as_fn_unset
12914 # as_fn_append VAR VALUE
12915 # ----------------------
12916 # Append the text in VALUE to the end of the definition contained in VAR. Take
12917 # advantage of any shell optimizations that allow amortized linear growth over
12918 # repeated appends, instead of the typical quadratic growth present in naive
12919 # implementations.
12920 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12921 eval 'as_fn_append ()
12922 {
12923 eval $1+=\$2
12924 }'
12925 else
12926 as_fn_append ()
12927 {
12928 eval $1=\$$1\$2
12929 }
12930 fi # as_fn_append
12931
12932 # as_fn_arith ARG...
12933 # ------------------
12934 # Perform arithmetic evaluation on the ARGs, and store the result in the
12935 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12936 # must be portable across $(()) and expr.
12937 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12938 eval 'as_fn_arith ()
12939 {
12940 as_val=$(( $* ))
12941 }'
12942 else
12943 as_fn_arith ()
12944 {
12945 as_val=`expr "$@" || test $? -eq 1`
12946 }
12947 fi # as_fn_arith
12948
12949
12950 if expr a : '\(a\)' >/dev/null 2>&1 &&
12951 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12952 as_expr=expr
12953 else
12954 as_expr=false
12955 fi
12956
12957 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12958 as_basename=basename
12959 else
12960 as_basename=false
12961 fi
12962
12963 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12964 as_dirname=dirname
12965 else
12966 as_dirname=false
12967 fi
12968
12969 as_me=`$as_basename -- "$0" ||
12970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12971 X"$0" : 'X\(//\)$' \| \
12972 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12973 $as_echo X/"$0" |
12974 sed '/^.*\/\([^/][^/]*\)\/*$/{
12975 s//\1/
12976 q
12977 }
12978 /^X\/\(\/\/\)$/{
12979 s//\1/
12980 q
12981 }
12982 /^X\/\(\/\).*/{
12983 s//\1/
12984 q
12985 }
12986 s/.*/./; q'`
12987
12988 # Avoid depending upon Character Ranges.
12989 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12990 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12991 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12992 as_cr_digits='0123456789'
12993 as_cr_alnum=$as_cr_Letters$as_cr_digits
12994
12995 ECHO_C= ECHO_N= ECHO_T=
12996 case `echo -n x` in #(((((
12997 -n*)
12998 case `echo 'xy\c'` in
12999 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13000 xy) ECHO_C='\c';;
13001 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13002 ECHO_T=' ';;
13003 esac;;
13004 *)
13005 ECHO_N='-n';;
13006 esac
13007
13008 rm -f conf$$ conf$$.exe conf$$.file
13009 if test -d conf$$.dir; then
13010 rm -f conf$$.dir/conf$$.file
13011 else
13012 rm -f conf$$.dir
13013 mkdir conf$$.dir 2>/dev/null
13014 fi
13015 if (echo >conf$$.file) 2>/dev/null; then
13016 if ln -s conf$$.file conf$$ 2>/dev/null; then
13017 as_ln_s='ln -s'
13018 # ... but there are two gotchas:
13019 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13020 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13021 # In both cases, we have to default to `cp -pR'.
13022 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13023 as_ln_s='cp -pR'
13024 elif ln conf$$.file conf$$ 2>/dev/null; then
13025 as_ln_s=ln
13026 else
13027 as_ln_s='cp -pR'
13028 fi
13029 else
13030 as_ln_s='cp -pR'
13031 fi
13032 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13033 rmdir conf$$.dir 2>/dev/null
13034
13035
13036 # as_fn_mkdir_p
13037 # -------------
13038 # Create "$as_dir" as a directory, including parents if necessary.
13039 as_fn_mkdir_p ()
13040 {
13041
13042 case $as_dir in #(
13043 -*) as_dir=./$as_dir;;
13044 esac
13045 test -d "$as_dir" || eval $as_mkdir_p || {
13046 as_dirs=
13047 while :; do
13048 case $as_dir in #(
13049 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13050 *) as_qdir=$as_dir;;
13051 esac
13052 as_dirs="'$as_qdir' $as_dirs"
13053 as_dir=`$as_dirname -- "$as_dir" ||
13054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13055 X"$as_dir" : 'X\(//\)[^/]' \| \
13056 X"$as_dir" : 'X\(//\)$' \| \
13057 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13058 $as_echo X"$as_dir" |
13059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13060 s//\1/
13061 q
13062 }
13063 /^X\(\/\/\)[^/].*/{
13064 s//\1/
13065 q
13066 }
13067 /^X\(\/\/\)$/{
13068 s//\1/
13069 q
13070 }
13071 /^X\(\/\).*/{
13072 s//\1/
13073 q
13074 }
13075 s/.*/./; q'`
13076 test -d "$as_dir" && break
13077 done
13078 test -z "$as_dirs" || eval "mkdir $as_dirs"
13079 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13080
13081
13082 } # as_fn_mkdir_p
13083 if mkdir -p . 2>/dev/null; then
13084 as_mkdir_p='mkdir -p "$as_dir"'
13085 else
13086 test -d ./-p && rmdir ./-p
13087 as_mkdir_p=false
13088 fi
13089
13090
13091 # as_fn_executable_p FILE
13092 # -----------------------
13093 # Test if FILE is an executable regular file.
13094 as_fn_executable_p ()
13095 {
13096 test -f "$1" && test -x "$1"
13097 } # as_fn_executable_p
13098 as_test_x='test -x'
13099 as_executable_p=as_fn_executable_p
13100
13101 # Sed expression to map a string onto a valid CPP name.
13102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13103
13104 # Sed expression to map a string onto a valid variable name.
13105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13106
13107
13108 exec 6>&1
13109 ## ----------------------------------- ##
13110 ## Main body of $CONFIG_STATUS script. ##
13111 ## ----------------------------------- ##
13112 _ASEOF
13113 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13114
13115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13116 # Save the log message, to keep $0 and so on meaningful, and to
13117 # report actual input values of CONFIG_FILES etc. instead of their
13118 # values after options handling.
13119 ac_log="
13120 This file was extended by libopm $as_me 0.1, which was
13121 generated by GNU Autoconf 2.69. Invocation command line was
13122
13123 CONFIG_FILES = $CONFIG_FILES
13124 CONFIG_HEADERS = $CONFIG_HEADERS
13125 CONFIG_LINKS = $CONFIG_LINKS
13126 CONFIG_COMMANDS = $CONFIG_COMMANDS
13127 $ $0 $@
13128
13129 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13130 "
13131
13132 _ACEOF
13133
13134 case $ac_config_files in *"
13135 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13136 esac
13137
13138 case $ac_config_headers in *"
13139 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13140 esac
13141
13142
13143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13144 # Files that config.status was made for.
13145 config_files="$ac_config_files"
13146 config_headers="$ac_config_headers"
13147 config_commands="$ac_config_commands"
13148
13149 _ACEOF
13150
13151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13152 ac_cs_usage="\
13153 \`$as_me' instantiates files and other configuration actions
13154 from templates according to the current configuration. Unless the files
13155 and actions are specified as TAGs, all are instantiated by default.
13156
13157 Usage: $0 [OPTION]... [TAG]...
13158
13159 -h, --help print this help, then exit
13160 -V, --version print version number and configuration settings, then exit
13161 --config print configuration, then exit
13162 -q, --quiet, --silent
13163 do not print progress messages
13164 -d, --debug don't remove temporary files
13165 --recheck update $as_me by reconfiguring in the same conditions
13166 --file=FILE[:TEMPLATE]
13167 instantiate the configuration file FILE
13168 --header=FILE[:TEMPLATE]
13169 instantiate the configuration header FILE
13170
13171 Configuration files:
13172 $config_files
13173
13174 Configuration headers:
13175 $config_headers
13176
13177 Configuration commands:
13178 $config_commands
13179
13180 Report bugs to the package provider."
13181
13182 _ACEOF
13183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13184 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13185 ac_cs_version="\\
13186 libopm config.status 0.1
13187 configured by $0, generated by GNU Autoconf 2.69,
13188 with options \\"\$ac_cs_config\\"
13189
13190 Copyright (C) 2012 Free Software Foundation, Inc.
13191 This config.status script is free software; the Free Software Foundation
13192 gives unlimited permission to copy, distribute and modify it."
13193
13194 ac_pwd='$ac_pwd'
13195 srcdir='$srcdir'
13196 INSTALL='$INSTALL'
13197 MKDIR_P='$MKDIR_P'
13198 AWK='$AWK'
13199 test -n "\$AWK" || AWK=awk
13200 _ACEOF
13201
13202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13203 # The default lists apply if the user does not specify any file.
13204 ac_need_defaults=:
13205 while test $# != 0
13206 do
13207 case $1 in
13208 --*=?*)
13209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13210 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13211 ac_shift=:
13212 ;;
13213 --*=)
13214 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13215 ac_optarg=
13216 ac_shift=:
13217 ;;
13218 *)
13219 ac_option=$1
13220 ac_optarg=$2
13221 ac_shift=shift
13222 ;;
13223 esac
13224
13225 case $ac_option in
13226 # Handling of the options.
13227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13228 ac_cs_recheck=: ;;
13229 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13230 $as_echo "$ac_cs_version"; exit ;;
13231 --config | --confi | --conf | --con | --co | --c )
13232 $as_echo "$ac_cs_config"; exit ;;
13233 --debug | --debu | --deb | --de | --d | -d )
13234 debug=: ;;
13235 --file | --fil | --fi | --f )
13236 $ac_shift
13237 case $ac_optarg in
13238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13239 '') as_fn_error $? "missing file argument" ;;
13240 esac
13241 as_fn_append CONFIG_FILES " '$ac_optarg'"
13242 ac_need_defaults=false;;
13243 --header | --heade | --head | --hea )
13244 $ac_shift
13245 case $ac_optarg in
13246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13247 esac
13248 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13249 ac_need_defaults=false;;
13250 --he | --h)
13251 # Conflict between --help and --header
13252 as_fn_error $? "ambiguous option: \`$1'
13253 Try \`$0 --help' for more information.";;
13254 --help | --hel | -h )
13255 $as_echo "$ac_cs_usage"; exit ;;
13256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13257 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13258 ac_cs_silent=: ;;
13259
13260 # This is an error.
13261 -*) as_fn_error $? "unrecognized option: \`$1'
13262 Try \`$0 --help' for more information." ;;
13263
13264 *) as_fn_append ac_config_targets " $1"
13265 ac_need_defaults=false ;;
13266
13267 esac
13268 shift
13269 done
13270
13271 ac_configure_extra_args=
13272
13273 if $ac_cs_silent; then
13274 exec 6>/dev/null
13275 ac_configure_extra_args="$ac_configure_extra_args --silent"
13276 fi
13277
13278 _ACEOF
13279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13280 if \$ac_cs_recheck; then
13281 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13282 shift
13283 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13284 CONFIG_SHELL='$SHELL'
13285 export CONFIG_SHELL
13286 exec "\$@"
13287 fi
13288
13289 _ACEOF
13290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13291 exec 5>>config.log
13292 {
13293 echo
13294 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13295 ## Running $as_me. ##
13296 _ASBOX
13297 $as_echo "$ac_log"
13298 } >&5
13299
13300 _ACEOF
13301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13302 #
13303 # INIT-COMMANDS
13304 #
13305 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13306
13307
13308 # The HP-UX ksh and POSIX shell print the target directory to stdout
13309 # if CDPATH is set.
13310 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13311
13312 sed_quote_subst='$sed_quote_subst'
13313 double_quote_subst='$double_quote_subst'
13314 delay_variable_subst='$delay_variable_subst'
13315 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13316 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13317 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13318 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13319 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13320 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13321 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13322 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13323 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13324 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13325 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13326 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13327 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13328 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13329 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13330 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13331 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13332 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13333 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13334 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13335 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13336 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13337 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13338 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13339 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13340 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13341 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13342 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13343 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13344 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13345 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13346 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13347 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13348 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13349 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13350 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13351 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13352 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13353 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13354 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13355 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13356 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13357 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13358 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13359 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13360 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13361 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13362 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13363 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13364 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13365 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13366 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13367 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13368 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13369 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13370 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13371 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13372 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13373 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13374 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13375 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13376 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13377 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13378 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13379 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13380 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13381 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13382 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13383 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13384 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13385 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13386 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13387 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13388 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13389 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13390 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13391 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13392 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13393 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13394 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13395 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13396 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13397 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13398 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13399 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13400 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13401 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13402 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13403 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13404 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13405 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13406 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13407 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13408 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13409 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13410 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13411 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13412 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13413 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13414 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13415 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13416 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13417 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13418 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13419 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13420 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13421 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13422 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13423 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13424 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13425 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13426 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13427 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13428 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13429 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13430 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13431 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13432 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13433 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13434 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13435 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13436 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13437 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13438 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13439 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13440 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13441 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13442 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13443 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13444 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13445 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13446 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13447 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13448 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13449
13450 LTCC='$LTCC'
13451 LTCFLAGS='$LTCFLAGS'
13452 compiler='$compiler_DEFAULT'
13453
13454 # A function that is used when there is no print builtin or printf.
13455 func_fallback_echo ()
13456 {
13457 eval 'cat <<_LTECHO_EOF
13458 \$1
13459 _LTECHO_EOF'
13460 }
13461
13462 # Quote evaled strings.
13463 for var in SHELL \
13464 ECHO \
13465 PATH_SEPARATOR \
13466 SED \
13467 GREP \
13468 EGREP \
13469 FGREP \
13470 LD \
13471 NM \
13472 LN_S \
13473 lt_SP2NL \
13474 lt_NL2SP \
13475 reload_flag \
13476 OBJDUMP \
13477 deplibs_check_method \
13478 file_magic_cmd \
13479 file_magic_glob \
13480 want_nocaseglob \
13481 DLLTOOL \
13482 sharedlib_from_linklib_cmd \
13483 AR \
13484 AR_FLAGS \
13485 archiver_list_spec \
13486 STRIP \
13487 RANLIB \
13488 CC \
13489 CFLAGS \
13490 compiler \
13491 lt_cv_sys_global_symbol_pipe \
13492 lt_cv_sys_global_symbol_to_cdecl \
13493 lt_cv_sys_global_symbol_to_import \
13494 lt_cv_sys_global_symbol_to_c_name_address \
13495 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13496 lt_cv_nm_interface \
13497 nm_file_list_spec \
13498 lt_cv_truncate_bin \
13499 lt_prog_compiler_no_builtin_flag \
13500 lt_prog_compiler_pic \
13501 lt_prog_compiler_wl \
13502 lt_prog_compiler_static \
13503 lt_cv_prog_compiler_c_o \
13504 need_locks \
13505 MANIFEST_TOOL \
13506 DSYMUTIL \
13507 NMEDIT \
13508 LIPO \
13509 OTOOL \
13510 OTOOL64 \
13511 shrext_cmds \
13512 export_dynamic_flag_spec \
13513 whole_archive_flag_spec \
13514 compiler_needs_object \
13515 with_gnu_ld \
13516 allow_undefined_flag \
13517 no_undefined_flag \
13518 hardcode_libdir_flag_spec \
13519 hardcode_libdir_separator \
13520 exclude_expsyms \
13521 include_expsyms \
13522 file_list_spec \
13523 variables_saved_for_relink \
13524 libname_spec \
13525 library_names_spec \
13526 soname_spec \
13527 install_override_mode \
13528 finish_eval \
13529 old_striplib \
13530 striplib; do
13531 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13532 *[\\\\\\\`\\"\\\$]*)
13533 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13534 ;;
13535 *)
13536 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13537 ;;
13538 esac
13539 done
13540
13541 # Double-quote double-evaled strings.
13542 for var in reload_cmds \
13543 old_postinstall_cmds \
13544 old_postuninstall_cmds \
13545 old_archive_cmds \
13546 extract_expsyms_cmds \
13547 old_archive_from_new_cmds \
13548 old_archive_from_expsyms_cmds \
13549 archive_cmds \
13550 archive_expsym_cmds \
13551 module_cmds \
13552 module_expsym_cmds \
13553 export_symbols_cmds \
13554 prelink_cmds \
13555 postlink_cmds \
13556 postinstall_cmds \
13557 postuninstall_cmds \
13558 finish_cmds \
13559 sys_lib_search_path_spec \
13560 sys_lib_dlsearch_path_spec; do
13561 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13562 *[\\\\\\\`\\"\\\$]*)
13563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13564 ;;
13565 *)
13566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13567 ;;
13568 esac
13569 done
13570
13571 ac_aux_dir='$ac_aux_dir'
13572
13573 # See if we are running on zsh, and set the options that allow our
13574 # commands through without removal of \ escapes INIT.
13575 if test -n "\${ZSH_VERSION+set}"; then
13576 setopt NO_GLOB_SUBST
13577 fi
13578
13579
13580 PACKAGE='$PACKAGE'
13581 VERSION='$VERSION'
13582 RM='$RM'
13583 ofile='$ofile'
13584
13585
13586
13587
13588 _ACEOF
13589
13590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13591
13592 # Handling of arguments.
13593 for ac_config_target in $ac_config_targets
13594 do
13595 case $ac_config_target in
13596 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13597 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13598 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13599 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13600 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13601
13602 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13603 esac
13604 done
13605
13606
13607 # If the user did not use the arguments to specify the items to instantiate,
13608 # then the envvar interface is used. Set only those that are not.
13609 # We use the long form for the default assignment because of an extremely
13610 # bizarre bug on SunOS 4.1.3.
13611 if $ac_need_defaults; then
13612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13613 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13615 fi
13616
13617 # Have a temporary directory for convenience. Make it in the build tree
13618 # simply because there is no reason against having it here, and in addition,
13619 # creating and moving files from /tmp can sometimes cause problems.
13620 # Hook for its removal unless debugging.
13621 # Note that there is a small window in which the directory will not be cleaned:
13622 # after its creation but before its name has been assigned to `$tmp'.
13623 $debug ||
13624 {
13625 tmp= ac_tmp=
13626 trap 'exit_status=$?
13627 : "${ac_tmp:=$tmp}"
13628 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13629 ' 0
13630 trap 'as_fn_exit 1' 1 2 13 15
13631 }
13632 # Create a (secure) tmp directory for tmp files.
13633
13634 {
13635 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13636 test -d "$tmp"
13637 } ||
13638 {
13639 tmp=./conf$$-$RANDOM
13640 (umask 077 && mkdir "$tmp")
13641 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13642 ac_tmp=$tmp
13643
13644 # Set up the scripts for CONFIG_FILES section.
13645 # No need to generate them if there are no CONFIG_FILES.
13646 # This happens for instance with `./config.status config.h'.
13647 if test -n "$CONFIG_FILES"; then
13648
13649
13650 ac_cr=`echo X | tr X '\015'`
13651 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13652 # But we know of no other shell where ac_cr would be empty at this
13653 # point, so we can use a bashism as a fallback.
13654 if test "x$ac_cr" = x; then
13655 eval ac_cr=\$\'\\r\'
13656 fi
13657 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13658 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13659 ac_cs_awk_cr='\\r'
13660 else
13661 ac_cs_awk_cr=$ac_cr
13662 fi
13663
13664 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13665 _ACEOF
13666
13667
13668 {
13669 echo "cat >conf$$subs.awk <<_ACEOF" &&
13670 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13671 echo "_ACEOF"
13672 } >conf$$subs.sh ||
13673 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13674 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13675 ac_delim='%!_!# '
13676 for ac_last_try in false false false false false :; do
13677 . ./conf$$subs.sh ||
13678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13679
13680 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13681 if test $ac_delim_n = $ac_delim_num; then
13682 break
13683 elif $ac_last_try; then
13684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13685 else
13686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13687 fi
13688 done
13689 rm -f conf$$subs.sh
13690
13691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13692 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13693 _ACEOF
13694 sed -n '
13695 h
13696 s/^/S["/; s/!.*/"]=/
13697 p
13698 g
13699 s/^[^!]*!//
13700 :repl
13701 t repl
13702 s/'"$ac_delim"'$//
13703 t delim
13704 :nl
13705 h
13706 s/\(.\{148\}\)..*/\1/
13707 t more1
13708 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13709 p
13710 n
13711 b repl
13712 :more1
13713 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13714 p
13715 g
13716 s/.\{148\}//
13717 t nl
13718 :delim
13719 h
13720 s/\(.\{148\}\)..*/\1/
13721 t more2
13722 s/["\\]/\\&/g; s/^/"/; s/$/"/
13723 p
13724 b
13725 :more2
13726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13727 p
13728 g
13729 s/.\{148\}//
13730 t delim
13731 ' <conf$$subs.awk | sed '
13732 /^[^""]/{
13733 N
13734 s/\n//
13735 }
13736 ' >>$CONFIG_STATUS || ac_write_fail=1
13737 rm -f conf$$subs.awk
13738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13739 _ACAWK
13740 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13741 for (key in S) S_is_set[key] = 1
13742 FS = ""
13743
13744 }
13745 {
13746 line = $ 0
13747 nfields = split(line, field, "@")
13748 substed = 0
13749 len = length(field[1])
13750 for (i = 2; i < nfields; i++) {
13751 key = field[i]
13752 keylen = length(key)
13753 if (S_is_set[key]) {
13754 value = S[key]
13755 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13756 len += length(value) + length(field[++i])
13757 substed = 1
13758 } else
13759 len += 1 + keylen
13760 }
13761
13762 print line
13763 }
13764
13765 _ACAWK
13766 _ACEOF
13767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13768 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13769 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13770 else
13771 cat
13772 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13773 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13774 _ACEOF
13775
13776 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13777 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13778 # trailing colons and then remove the whole line if VPATH becomes empty
13779 # (actually we leave an empty line to preserve line numbers).
13780 if test "x$srcdir" = x.; then
13781 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13782 h
13783 s///
13784 s/^/:/
13785 s/[ ]*$/:/
13786 s/:\$(srcdir):/:/g
13787 s/:\${srcdir}:/:/g
13788 s/:@srcdir@:/:/g
13789 s/^:*//
13790 s/:*$//
13791 x
13792 s/\(=[ ]*\).*/\1/
13793 G
13794 s/\n//
13795 s/^[^=]*=[ ]*$//
13796 }'
13797 fi
13798
13799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13800 fi # test -n "$CONFIG_FILES"
13801
13802 # Set up the scripts for CONFIG_HEADERS section.
13803 # No need to generate them if there are no CONFIG_HEADERS.
13804 # This happens for instance with `./config.status Makefile'.
13805 if test -n "$CONFIG_HEADERS"; then
13806 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13807 BEGIN {
13808 _ACEOF
13809
13810 # Transform confdefs.h into an awk script `defines.awk', embedded as
13811 # here-document in config.status, that substitutes the proper values into
13812 # config.h.in to produce config.h.
13813
13814 # Create a delimiter string that does not exist in confdefs.h, to ease
13815 # handling of long lines.
13816 ac_delim='%!_!# '
13817 for ac_last_try in false false :; do
13818 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13819 if test -z "$ac_tt"; then
13820 break
13821 elif $ac_last_try; then
13822 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13823 else
13824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13825 fi
13826 done
13827
13828 # For the awk script, D is an array of macro values keyed by name,
13829 # likewise P contains macro parameters if any. Preserve backslash
13830 # newline sequences.
13831
13832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13833 sed -n '
13834 s/.\{148\}/&'"$ac_delim"'/g
13835 t rset
13836 :rset
13837 s/^[ ]*#[ ]*define[ ][ ]*/ /
13838 t def
13839 d
13840 :def
13841 s/\\$//
13842 t bsnl
13843 s/["\\]/\\&/g
13844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13845 D["\1"]=" \3"/p
13846 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13847 d
13848 :bsnl
13849 s/["\\]/\\&/g
13850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13851 D["\1"]=" \3\\\\\\n"\\/p
13852 t cont
13853 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13854 t cont
13855 d
13856 :cont
13857 n
13858 s/.\{148\}/&'"$ac_delim"'/g
13859 t clear
13860 :clear
13861 s/\\$//
13862 t bsnlc
13863 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13864 d
13865 :bsnlc
13866 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13867 b cont
13868 ' <confdefs.h | sed '
13869 s/'"$ac_delim"'/"\\\
13870 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13871
13872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13873 for (key in D) D_is_set[key] = 1
13874 FS = ""
13875 }
13876 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13877 line = \$ 0
13878 split(line, arg, " ")
13879 if (arg[1] == "#") {
13880 defundef = arg[2]
13881 mac1 = arg[3]
13882 } else {
13883 defundef = substr(arg[1], 2)
13884 mac1 = arg[2]
13885 }
13886 split(mac1, mac2, "(") #)
13887 macro = mac2[1]
13888 prefix = substr(line, 1, index(line, defundef) - 1)
13889 if (D_is_set[macro]) {
13890 # Preserve the white space surrounding the "#".
13891 print prefix "define", macro P[macro] D[macro]
13892 next
13893 } else {
13894 # Replace #undef with comments. This is necessary, for example,
13895 # in the case of _POSIX_SOURCE, which is predefined and required
13896 # on some systems where configure will not decide to define it.
13897 if (defundef == "undef") {
13898 print "/*", prefix defundef, macro, "*/"
13899 next
13900 }
13901 }
13902 }
13903 { print }
13904 _ACAWK
13905 _ACEOF
13906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13907 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13908 fi # test -n "$CONFIG_HEADERS"
13909
13910
13911 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13912 shift
13913 for ac_tag
13914 do
13915 case $ac_tag in
13916 :[FHLC]) ac_mode=$ac_tag; continue;;
13917 esac
13918 case $ac_mode$ac_tag in
13919 :[FHL]*:*);;
13920 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13921 :[FH]-) ac_tag=-:-;;
13922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13923 esac
13924 ac_save_IFS=$IFS
13925 IFS=:
13926 set x $ac_tag
13927 IFS=$ac_save_IFS
13928 shift
13929 ac_file=$1
13930 shift
13931
13932 case $ac_mode in
13933 :L) ac_source=$1;;
13934 :[FH])
13935 ac_file_inputs=
13936 for ac_f
13937 do
13938 case $ac_f in
13939 -) ac_f="$ac_tmp/stdin";;
13940 *) # Look for the file first in the build tree, then in the source tree
13941 # (if the path is not absolute). The absolute path cannot be DOS-style,
13942 # because $ac_f cannot contain `:'.
13943 test -f "$ac_f" ||
13944 case $ac_f in
13945 [\\/$]*) false;;
13946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13947 esac ||
13948 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13949 esac
13950 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13951 as_fn_append ac_file_inputs " '$ac_f'"
13952 done
13953
13954 # Let's still pretend it is `configure' which instantiates (i.e., don't
13955 # use $as_me), people would be surprised to read:
13956 # /* config.h. Generated by config.status. */
13957 configure_input='Generated from '`
13958 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13959 `' by configure.'
13960 if test x"$ac_file" != x-; then
13961 configure_input="$ac_file. $configure_input"
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13963 $as_echo "$as_me: creating $ac_file" >&6;}
13964 fi
13965 # Neutralize special characters interpreted by sed in replacement strings.
13966 case $configure_input in #(
13967 *\&* | *\|* | *\\* )
13968 ac_sed_conf_input=`$as_echo "$configure_input" |
13969 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13970 *) ac_sed_conf_input=$configure_input;;
13971 esac
13972
13973 case $ac_tag in
13974 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13976 esac
13977 ;;
13978 esac
13979
13980 ac_dir=`$as_dirname -- "$ac_file" ||
13981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13982 X"$ac_file" : 'X\(//\)[^/]' \| \
13983 X"$ac_file" : 'X\(//\)$' \| \
13984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13985 $as_echo X"$ac_file" |
13986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13987 s//\1/
13988 q
13989 }
13990 /^X\(\/\/\)[^/].*/{
13991 s//\1/
13992 q
13993 }
13994 /^X\(\/\/\)$/{
13995 s//\1/
13996 q
13997 }
13998 /^X\(\/\).*/{
13999 s//\1/
14000 q
14001 }
14002 s/.*/./; q'`
14003 as_dir="$ac_dir"; as_fn_mkdir_p
14004 ac_builddir=.
14005
14006 case "$ac_dir" in
14007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14008 *)
14009 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14010 # A ".." for each directory in $ac_dir_suffix.
14011 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14012 case $ac_top_builddir_sub in
14013 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14014 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14015 esac ;;
14016 esac
14017 ac_abs_top_builddir=$ac_pwd
14018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14019 # for backward compatibility:
14020 ac_top_builddir=$ac_top_build_prefix
14021
14022 case $srcdir in
14023 .) # We are building in place.
14024 ac_srcdir=.
14025 ac_top_srcdir=$ac_top_builddir_sub
14026 ac_abs_top_srcdir=$ac_pwd ;;
14027 [\\/]* | ?:[\\/]* ) # Absolute name.
14028 ac_srcdir=$srcdir$ac_dir_suffix;
14029 ac_top_srcdir=$srcdir
14030 ac_abs_top_srcdir=$srcdir ;;
14031 *) # Relative name.
14032 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14033 ac_top_srcdir=$ac_top_build_prefix$srcdir
14034 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14035 esac
14036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14037
14038
14039 case $ac_mode in
14040 :F)
14041 #
14042 # CONFIG_FILE
14043 #
14044
14045 case $INSTALL in
14046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14047 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14048 esac
14049 ac_MKDIR_P=$MKDIR_P
14050 case $MKDIR_P in
14051 [\\/$]* | ?:[\\/]* ) ;;
14052 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14053 esac
14054 _ACEOF
14055
14056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14057 # If the template does not know about datarootdir, expand it.
14058 # FIXME: This hack should be removed a few years after 2.60.
14059 ac_datarootdir_hack=; ac_datarootdir_seen=
14060 ac_sed_dataroot='
14061 /datarootdir/ {
14062 p
14063 q
14064 }
14065 /@datadir@/p
14066 /@docdir@/p
14067 /@infodir@/p
14068 /@localedir@/p
14069 /@mandir@/p'
14070 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14071 *datarootdir*) ac_datarootdir_seen=yes;;
14072 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14074 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14075 _ACEOF
14076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14077 ac_datarootdir_hack='
14078 s&@datadir@&$datadir&g
14079 s&@docdir@&$docdir&g
14080 s&@infodir@&$infodir&g
14081 s&@localedir@&$localedir&g
14082 s&@mandir@&$mandir&g
14083 s&\\\${datarootdir}&$datarootdir&g' ;;
14084 esac
14085 _ACEOF
14086
14087 # Neutralize VPATH when `$srcdir' = `.'.
14088 # Shell code in configure.ac might set extrasub.
14089 # FIXME: do we really want to maintain this feature?
14090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14091 ac_sed_extra="$ac_vpsub
14092 $extrasub
14093 _ACEOF
14094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14095 :t
14096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14097 s|@configure_input@|$ac_sed_conf_input|;t t
14098 s&@top_builddir@&$ac_top_builddir_sub&;t t
14099 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14100 s&@srcdir@&$ac_srcdir&;t t
14101 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14102 s&@top_srcdir@&$ac_top_srcdir&;t t
14103 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14104 s&@builddir@&$ac_builddir&;t t
14105 s&@abs_builddir@&$ac_abs_builddir&;t t
14106 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14107 s&@INSTALL@&$ac_INSTALL&;t t
14108 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14109 $ac_datarootdir_hack
14110 "
14111 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14112 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14113
14114 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14115 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14116 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14117 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14119 which seems to be undefined. Please make sure it is defined" >&5
14120 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14121 which seems to be undefined. Please make sure it is defined" >&2;}
14122
14123 rm -f "$ac_tmp/stdin"
14124 case $ac_file in
14125 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14126 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14127 esac \
14128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14129 ;;
14130 :H)
14131 #
14132 # CONFIG_HEADER
14133 #
14134 if test x"$ac_file" != x-; then
14135 {
14136 $as_echo "/* $configure_input */" \
14137 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14138 } >"$ac_tmp/config.h" \
14139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14140 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14142 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14143 else
14144 rm -f "$ac_file"
14145 mv "$ac_tmp/config.h" "$ac_file" \
14146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14147 fi
14148 else
14149 $as_echo "/* $configure_input */" \
14150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14151 || as_fn_error $? "could not create -" "$LINENO" 5
14152 fi
14153 # Compute "$ac_file"'s index in $config_headers.
14154 _am_arg="$ac_file"
14155 _am_stamp_count=1
14156 for _am_header in $config_headers :; do
14157 case $_am_header in
14158 $_am_arg | $_am_arg:* )
14159 break ;;
14160 * )
14161 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14162 esac
14163 done
14164 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14165 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14166 X"$_am_arg" : 'X\(//\)[^/]' \| \
14167 X"$_am_arg" : 'X\(//\)$' \| \
14168 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14169 $as_echo X"$_am_arg" |
14170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14171 s//\1/
14172 q
14173 }
14174 /^X\(\/\/\)[^/].*/{
14175 s//\1/
14176 q
14177 }
14178 /^X\(\/\/\)$/{
14179 s//\1/
14180 q
14181 }
14182 /^X\(\/\).*/{
14183 s//\1/
14184 q
14185 }
14186 s/.*/./; q'`/stamp-h$_am_stamp_count
14187 ;;
14188
14189 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14190 $as_echo "$as_me: executing $ac_file commands" >&6;}
14191 ;;
14192 esac
14193
14194
14195 case $ac_file$ac_mode in
14196 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14197 # Older Autoconf quotes --file arguments for eval, but not when files
14198 # are listed without --file. Let's play safe and only enable the eval
14199 # if we detect the quoting.
14200 case $CONFIG_FILES in
14201 *\'*) eval set x "$CONFIG_FILES" ;;
14202 *) set x $CONFIG_FILES ;;
14203 esac
14204 shift
14205 for mf
14206 do
14207 # Strip MF so we end up with the name of the file.
14208 mf=`echo "$mf" | sed -e 's/:.*$//'`
14209 # Check whether this is an Automake generated Makefile or not.
14210 # We used to match only the files named 'Makefile.in', but
14211 # some people rename them; so instead we look at the file content.
14212 # Grep'ing the first line is not enough: some people post-process
14213 # each Makefile.in and add a new line on top of each file to say so.
14214 # Grep'ing the whole file is not good either: AIX grep has a line
14215 # limit of 2048, but all sed's we know have understand at least 4000.
14216 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14217 dirpart=`$as_dirname -- "$mf" ||
14218 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14219 X"$mf" : 'X\(//\)[^/]' \| \
14220 X"$mf" : 'X\(//\)$' \| \
14221 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14222 $as_echo X"$mf" |
14223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14224 s//\1/
14225 q
14226 }
14227 /^X\(\/\/\)[^/].*/{
14228 s//\1/
14229 q
14230 }
14231 /^X\(\/\/\)$/{
14232 s//\1/
14233 q
14234 }
14235 /^X\(\/\).*/{
14236 s//\1/
14237 q
14238 }
14239 s/.*/./; q'`
14240 else
14241 continue
14242 fi
14243 # Extract the definition of DEPDIR, am__include, and am__quote
14244 # from the Makefile without running 'make'.
14245 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14246 test -z "$DEPDIR" && continue
14247 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14248 test -z "$am__include" && continue
14249 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14250 # Find all dependency output files, they are included files with
14251 # $(DEPDIR) in their names. We invoke sed twice because it is the
14252 # simplest approach to changing $(DEPDIR) to its actual value in the
14253 # expansion.
14254 for file in `sed -n "
14255 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14256 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14257 # Make sure the directory exists.
14258 test -f "$dirpart/$file" && continue
14259 fdir=`$as_dirname -- "$file" ||
14260 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14261 X"$file" : 'X\(//\)[^/]' \| \
14262 X"$file" : 'X\(//\)$' \| \
14263 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14264 $as_echo X"$file" |
14265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14266 s//\1/
14267 q
14268 }
14269 /^X\(\/\/\)[^/].*/{
14270 s//\1/
14271 q
14272 }
14273 /^X\(\/\/\)$/{
14274 s//\1/
14275 q
14276 }
14277 /^X\(\/\).*/{
14278 s//\1/
14279 q
14280 }
14281 s/.*/./; q'`
14282 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14283 # echo "creating $dirpart/$file"
14284 echo '# dummy' > "$dirpart/$file"
14285 done
14286 done
14287 }
14288 ;;
14289 "libtool":C)
14290
14291 # See if we are running on zsh, and set the options that allow our
14292 # commands through without removal of \ escapes.
14293 if test -n "${ZSH_VERSION+set}"; then
14294 setopt NO_GLOB_SUBST
14295 fi
14296
14297 cfgfile=${ofile}T
14298 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14299 $RM "$cfgfile"
14300
14301 cat <<_LT_EOF >> "$cfgfile"
14302 #! $SHELL
14303 # Generated automatically by $as_me ($PACKAGE) $VERSION
14304 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14305 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14306
14307 # Provide generalized library-building support services.
14308 # Written by Gordon Matzigkeit, 1996
14309
14310 # Copyright (C) 2014 Free Software Foundation, Inc.
14311 # This is free software; see the source for copying conditions. There is NO
14312 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14313
14314 # GNU Libtool is free software; you can redistribute it and/or modify
14315 # it under the terms of the GNU General Public License as published by
14316 # the Free Software Foundation; either version 2 of of the License, or
14317 # (at your option) any later version.
14318 #
14319 # As a special exception to the GNU General Public License, if you
14320 # distribute this file as part of a program or library that is built
14321 # using GNU Libtool, you may include this file under the same
14322 # distribution terms that you use for the rest of that program.
14323 #
14324 # GNU Libtool is distributed in the hope that it will be useful, but
14325 # WITHOUT ANY WARRANTY; without even the implied warranty of
14326 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14327 # GNU General Public License for more details.
14328 #
14329 # You should have received a copy of the GNU General Public License
14330 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14331
14332
14333 # The names of the tagged configurations supported by this script.
14334 available_tags=''
14335
14336 # ### BEGIN LIBTOOL CONFIG
14337
14338 # Which release of libtool.m4 was used?
14339 macro_version=$macro_version
14340 macro_revision=$macro_revision
14341
14342 # Whether or not to build shared libraries.
14343 build_libtool_libs=$enable_shared
14344
14345 # Whether or not to build static libraries.
14346 build_old_libs=$enable_static
14347
14348 # What type of objects to build.
14349 pic_mode=$pic_mode
14350
14351 # Whether or not to optimize for fast installation.
14352 fast_install=$enable_fast_install
14353
14354 # Shared archive member basename,for filename based shared library versioning on AIX.
14355 shared_archive_member_spec=$shared_archive_member_spec
14356
14357 # Shell to use when invoking shell scripts.
14358 SHELL=$lt_SHELL
14359
14360 # An echo program that protects backslashes.
14361 ECHO=$lt_ECHO
14362
14363 # The PATH separator for the build system.
14364 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14365
14366 # The host system.
14367 host_alias=$host_alias
14368 host=$host
14369 host_os=$host_os
14370
14371 # The build system.
14372 build_alias=$build_alias
14373 build=$build
14374 build_os=$build_os
14375
14376 # A sed program that does not truncate output.
14377 SED=$lt_SED
14378
14379 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14380 Xsed="\$SED -e 1s/^X//"
14381
14382 # A grep program that handles long lines.
14383 GREP=$lt_GREP
14384
14385 # An ERE matcher.
14386 EGREP=$lt_EGREP
14387
14388 # A literal string matcher.
14389 FGREP=$lt_FGREP
14390
14391 # A BSD- or MS-compatible name lister.
14392 NM=$lt_NM
14393
14394 # Whether we need soft or hard links.
14395 LN_S=$lt_LN_S
14396
14397 # What is the maximum length of a command?
14398 max_cmd_len=$max_cmd_len
14399
14400 # Object file suffix (normally "o").
14401 objext=$ac_objext
14402
14403 # Executable file suffix (normally "").
14404 exeext=$exeext
14405
14406 # whether the shell understands "unset".
14407 lt_unset=$lt_unset
14408
14409 # turn spaces into newlines.
14410 SP2NL=$lt_lt_SP2NL
14411
14412 # turn newlines into spaces.
14413 NL2SP=$lt_lt_NL2SP
14414
14415 # convert \$build file names to \$host format.
14416 to_host_file_cmd=$lt_cv_to_host_file_cmd
14417
14418 # convert \$build files to toolchain format.
14419 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14420
14421 # An object symbol dumper.
14422 OBJDUMP=$lt_OBJDUMP
14423
14424 # Method to check whether dependent libraries are shared objects.
14425 deplibs_check_method=$lt_deplibs_check_method
14426
14427 # Command to use when deplibs_check_method = "file_magic".
14428 file_magic_cmd=$lt_file_magic_cmd
14429
14430 # How to find potential files when deplibs_check_method = "file_magic".
14431 file_magic_glob=$lt_file_magic_glob
14432
14433 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14434 want_nocaseglob=$lt_want_nocaseglob
14435
14436 # DLL creation program.
14437 DLLTOOL=$lt_DLLTOOL
14438
14439 # Command to associate shared and link libraries.
14440 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14441
14442 # The archiver.
14443 AR=$lt_AR
14444
14445 # Flags to create an archive.
14446 AR_FLAGS=$lt_AR_FLAGS
14447
14448 # How to feed a file listing to the archiver.
14449 archiver_list_spec=$lt_archiver_list_spec
14450
14451 # A symbol stripping program.
14452 STRIP=$lt_STRIP
14453
14454 # Commands used to install an old-style archive.
14455 RANLIB=$lt_RANLIB
14456 old_postinstall_cmds=$lt_old_postinstall_cmds
14457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14458
14459 # Whether to use a lock for old archive extraction.
14460 lock_old_archive_extraction=$lock_old_archive_extraction
14461
14462 # A C compiler.
14463 LTCC=$lt_CC
14464
14465 # LTCC compiler flags.
14466 LTCFLAGS=$lt_CFLAGS
14467
14468 # Take the output of nm and produce a listing of raw symbols and C names.
14469 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14470
14471 # Transform the output of nm in a proper C declaration.
14472 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14473
14474 # Transform the output of nm into a list of symbols to manually relocate.
14475 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14476
14477 # Transform the output of nm in a C name address pair.
14478 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14479
14480 # Transform the output of nm in a C name address pair when lib prefix is needed.
14481 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14482
14483 # The name lister interface.
14484 nm_interface=$lt_lt_cv_nm_interface
14485
14486 # Specify filename containing input files for \$NM.
14487 nm_file_list_spec=$lt_nm_file_list_spec
14488
14489 # The root where to search for dependent libraries,and where our libraries should be installed.
14490 lt_sysroot=$lt_sysroot
14491
14492 # Command to truncate a binary pipe.
14493 lt_truncate_bin=$lt_lt_cv_truncate_bin
14494
14495 # The name of the directory that contains temporary libtool files.
14496 objdir=$objdir
14497
14498 # Used to examine libraries when file_magic_cmd begins with "file".
14499 MAGIC_CMD=$MAGIC_CMD
14500
14501 # Must we lock files when doing compilation?
14502 need_locks=$lt_need_locks
14503
14504 # Manifest tool.
14505 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14506
14507 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14508 DSYMUTIL=$lt_DSYMUTIL
14509
14510 # Tool to change global to local symbols on Mac OS X.
14511 NMEDIT=$lt_NMEDIT
14512
14513 # Tool to manipulate fat objects and archives on Mac OS X.
14514 LIPO=$lt_LIPO
14515
14516 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14517 OTOOL=$lt_OTOOL
14518
14519 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14520 OTOOL64=$lt_OTOOL64
14521
14522 # Old archive suffix (normally "a").
14523 libext=$libext
14524
14525 # Shared library suffix (normally ".so").
14526 shrext_cmds=$lt_shrext_cmds
14527
14528 # The commands to extract the exported symbol list from a shared archive.
14529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14530
14531 # Variables whose values should be saved in libtool wrapper scripts and
14532 # restored at link time.
14533 variables_saved_for_relink=$lt_variables_saved_for_relink
14534
14535 # Do we need the "lib" prefix for modules?
14536 need_lib_prefix=$need_lib_prefix
14537
14538 # Do we need a version for libraries?
14539 need_version=$need_version
14540
14541 # Library versioning type.
14542 version_type=$version_type
14543
14544 # Shared library runtime path variable.
14545 runpath_var=$runpath_var
14546
14547 # Shared library path variable.
14548 shlibpath_var=$shlibpath_var
14549
14550 # Is shlibpath searched before the hard-coded library search path?
14551 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14552
14553 # Format of library name prefix.
14554 libname_spec=$lt_libname_spec
14555
14556 # List of archive names. First name is the real one, the rest are links.
14557 # The last name is the one that the linker finds with -lNAME
14558 library_names_spec=$lt_library_names_spec
14559
14560 # The coded name of the library, if different from the real name.
14561 soname_spec=$lt_soname_spec
14562
14563 # Permission mode override for installation of shared libraries.
14564 install_override_mode=$lt_install_override_mode
14565
14566 # Command to use after installation of a shared archive.
14567 postinstall_cmds=$lt_postinstall_cmds
14568
14569 # Command to use after uninstallation of a shared archive.
14570 postuninstall_cmds=$lt_postuninstall_cmds
14571
14572 # Commands used to finish a libtool library installation in a directory.
14573 finish_cmds=$lt_finish_cmds
14574
14575 # As "finish_cmds", except a single script fragment to be evaled but
14576 # not shown.
14577 finish_eval=$lt_finish_eval
14578
14579 # Whether we should hardcode library paths into libraries.
14580 hardcode_into_libs=$hardcode_into_libs
14581
14582 # Compile-time system search path for libraries.
14583 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14584
14585 # Run-time system search path for libraries.
14586 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14587
14588 # Whether dlopen is supported.
14589 dlopen_support=$enable_dlopen
14590
14591 # Whether dlopen of programs is supported.
14592 dlopen_self=$enable_dlopen_self
14593
14594 # Whether dlopen of statically linked programs is supported.
14595 dlopen_self_static=$enable_dlopen_self_static
14596
14597 # Commands to strip libraries.
14598 old_striplib=$lt_old_striplib
14599 striplib=$lt_striplib
14600
14601
14602 # The linker used to build libraries.
14603 LD=$lt_LD
14604
14605 # How to create reloadable object files.
14606 reload_flag=$lt_reload_flag
14607 reload_cmds=$lt_reload_cmds
14608
14609 # Commands used to build an old-style archive.
14610 old_archive_cmds=$lt_old_archive_cmds
14611
14612 # A language specific compiler.
14613 CC=$lt_compiler
14614
14615 # Is the compiler the GNU compiler?
14616 with_gcc=$GCC
14617
14618 # Compiler flag to turn off builtin functions.
14619 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14620
14621 # Additional compiler flags for building library objects.
14622 pic_flag=$lt_lt_prog_compiler_pic
14623
14624 # How to pass a linker flag through the compiler.
14625 wl=$lt_lt_prog_compiler_wl
14626
14627 # Compiler flag to prevent dynamic linking.
14628 link_static_flag=$lt_lt_prog_compiler_static
14629
14630 # Does compiler simultaneously support -c and -o options?
14631 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14632
14633 # Whether or not to add -lc for building shared libraries.
14634 build_libtool_need_lc=$archive_cmds_need_lc
14635
14636 # Whether or not to disallow shared libs when runtime libs are static.
14637 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14638
14639 # Compiler flag to allow reflexive dlopens.
14640 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14641
14642 # Compiler flag to generate shared objects directly from archives.
14643 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14644
14645 # Whether the compiler copes with passing no objects directly.
14646 compiler_needs_object=$lt_compiler_needs_object
14647
14648 # Create an old-style archive from a shared archive.
14649 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14650
14651 # Create a temporary old-style archive to link instead of a shared archive.
14652 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14653
14654 # Commands used to build a shared archive.
14655 archive_cmds=$lt_archive_cmds
14656 archive_expsym_cmds=$lt_archive_expsym_cmds
14657
14658 # Commands used to build a loadable module if different from building
14659 # a shared archive.
14660 module_cmds=$lt_module_cmds
14661 module_expsym_cmds=$lt_module_expsym_cmds
14662
14663 # Whether we are building with GNU ld or not.
14664 with_gnu_ld=$lt_with_gnu_ld
14665
14666 # Flag that allows shared libraries with undefined symbols to be built.
14667 allow_undefined_flag=$lt_allow_undefined_flag
14668
14669 # Flag that enforces no undefined symbols.
14670 no_undefined_flag=$lt_no_undefined_flag
14671
14672 # Flag to hardcode \$libdir into a binary during linking.
14673 # This must work even if \$libdir does not exist
14674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14675
14676 # Whether we need a single "-rpath" flag with a separated argument.
14677 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14678
14679 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14680 # DIR into the resulting binary.
14681 hardcode_direct=$hardcode_direct
14682
14683 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14684 # DIR into the resulting binary and the resulting library dependency is
14685 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14686 # library is relocated.
14687 hardcode_direct_absolute=$hardcode_direct_absolute
14688
14689 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14690 # into the resulting binary.
14691 hardcode_minus_L=$hardcode_minus_L
14692
14693 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14694 # into the resulting binary.
14695 hardcode_shlibpath_var=$hardcode_shlibpath_var
14696
14697 # Set to "yes" if building a shared library automatically hardcodes DIR
14698 # into the library and all subsequent libraries and executables linked
14699 # against it.
14700 hardcode_automatic=$hardcode_automatic
14701
14702 # Set to yes if linker adds runtime paths of dependent libraries
14703 # to runtime path list.
14704 inherit_rpath=$inherit_rpath
14705
14706 # Whether libtool must link a program against all its dependency libraries.
14707 link_all_deplibs=$link_all_deplibs
14708
14709 # Set to "yes" if exported symbols are required.
14710 always_export_symbols=$always_export_symbols
14711
14712 # The commands to list exported symbols.
14713 export_symbols_cmds=$lt_export_symbols_cmds
14714
14715 # Symbols that should not be listed in the preloaded symbols.
14716 exclude_expsyms=$lt_exclude_expsyms
14717
14718 # Symbols that must always be exported.
14719 include_expsyms=$lt_include_expsyms
14720
14721 # Commands necessary for linking programs (against libraries) with templates.
14722 prelink_cmds=$lt_prelink_cmds
14723
14724 # Commands necessary for finishing linking programs.
14725 postlink_cmds=$lt_postlink_cmds
14726
14727 # Specify filename containing input files.
14728 file_list_spec=$lt_file_list_spec
14729
14730 # How to hardcode a shared library path into an executable.
14731 hardcode_action=$hardcode_action
14732
14733 # ### END LIBTOOL CONFIG
14734
14735 _LT_EOF
14736
14737 case $host_os in
14738 aix3*)
14739 cat <<\_LT_EOF >> "$cfgfile"
14740 # AIX sometimes has problems with the GCC collect2 program. For some
14741 # reason, if we set the COLLECT_NAMES environment variable, the problems
14742 # vanish in a puff of smoke.
14743 if test set != "${COLLECT_NAMES+set}"; then
14744 COLLECT_NAMES=
14745 export COLLECT_NAMES
14746 fi
14747 _LT_EOF
14748 ;;
14749 esac
14750
14751
14752 ltmain=$ac_aux_dir/ltmain.sh
14753
14754
14755 # We use sed instead of cat because bash on DJGPP gets confused if
14756 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14757 # text mode, it properly converts lines to CR/LF. This bash problem
14758 # is reportedly fixed, but why not run on old versions too?
14759 sed '$q' "$ltmain" >> "$cfgfile" \
14760 || (rm -f "$cfgfile"; exit 1)
14761
14762 mv -f "$cfgfile" "$ofile" ||
14763 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14764 chmod +x "$ofile"
14765
14766 ;;
14767
14768 esac
14769 done # for ac_tag
14770
14771
14772 as_fn_exit 0
14773 _ACEOF
14774 ac_clean_files=$ac_clean_files_save
14775
14776 test $ac_write_fail = 0 ||
14777 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14778
14779
14780 # configure is writing to config.log, and then calls config.status.
14781 # config.status does its own redirection, appending to config.log.
14782 # Unfortunately, on DOS this fails, as config.log is still kept open
14783 # by configure, so config.status won't be able to write to it; its
14784 # output is simply discarded. So we exec the FD to /dev/null,
14785 # effectively closing config.log, so it can be properly (re)opened and
14786 # appended to by config.status. When coming back to configure, we
14787 # need to make the FD available again.
14788 if test "$no_create" != yes; then
14789 ac_cs_success=:
14790 ac_config_status_args=
14791 test "$silent" = yes &&
14792 ac_config_status_args="$ac_config_status_args --quiet"
14793 exec 5>/dev/null
14794 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14795 exec 5>>config.log
14796 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14797 # would make configure fail if this is the last instruction.
14798 $ac_cs_success || as_fn_exit 1
14799 fi
14800 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14802 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14803 fi
14804

Properties

Name Value
svn:eol-style native
svn:executable
svn:keywords Id