ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
Revision: 5264
Committed: Thu Jan 1 18:15:57 2015 UTC (11 years, 6 months ago) by michael
File size: 446529 byte(s)
Log Message:
- Further cleanups to configure.ac

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for hopm 1.0.0beta1.
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='hopm'
589 PACKAGE_TARNAME='hopm'
590 PACKAGE_VERSION='1.0.0beta1'
591 PACKAGE_STRING='hopm 1.0.0beta1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/opercmd.h"
596 ac_default_prefix=\${HOME}/hopm
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 LTLIBOBJS
636 LIBOBJS
637 LEXLIB
638 LEX_OUTPUT_ROOT
639 LEX
640 YFLAGS
641 YACC
642 CPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 ac_ct_AR
651 AR
652 DLLTOOL
653 OBJDUMP
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 EGREP
661 GREP
662 SED
663 host_os
664 host_vendor
665 host_cpu
666 host
667 build_os
668 build_vendor
669 build_cpu
670 build
671 LIBTOOL
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_silent_rules
761 enable_maintainer_mode
762 enable_dependency_tracking
763 enable_shared
764 enable_static
765 with_pic
766 enable_fast_install
767 with_aix_soname
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 '
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CPP
781 YACC
782 YFLAGS'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
806
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
842 fi
843
844 case $ac_option in
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 ;;
1189
1190 esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211 do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures hopm 1.0.0beta1 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1377
1378 cat <<\_ACEOF
1379
1380 Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of hopm 1.0.0beta1:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397 Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-silent-rules less verbose build output (undo: "make V=1")
1402 --disable-silent-rules verbose build output (undo: "make V=0")
1403 --enable-maintainer-mode
1404 enable make rules and dependencies not useful (and
1405 sometimes confusing) to the casual installer
1406 --enable-dependency-tracking
1407 do not reject slow dependency extractors
1408 --disable-dependency-tracking
1409 speeds up one-time build
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --disable-libtool-lock avoid locking (might break parallel builds)
1415
1416 Optional Packages:
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1420 both]
1421 --with-aix-soname=aix|svr4|both
1422 shared library versioning (aka "SONAME") variant to
1423 provide on AIX, [default=aix].
1424 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1426 compiler's sysroot if not specified).
1427
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CPP C preprocessor
1437 YACC The `Yet Another Compiler Compiler' implementation to use.
1438 Defaults to the first program found out of: `bison -y', `byacc',
1439 `yacc'.
1440 YFLAGS The list of arguments that will be passed by default to $YACC.
1441 This script will default YFLAGS to the empty string to avoid a
1442 default value of `-d' given by some make applications.
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to the package provider.
1448 _ACEOF
1449 ac_status=$?
1450 fi
1451
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
1458 ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477 .) # We are building in place.
1478 ac_srcdir=.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1500 else
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1504 done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509 cat <<\_ACEOF
1510 hopm configure 1.0.0beta1
1511 generated by GNU Autoconf 2.69
1512
1513 Copyright (C) 2012 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1516 _ACEOF
1517 exit
1518 fi
1519
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1523
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551 else
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556 fi
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_link ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 test -x conftest$ac_exeext
1590 }; then :
1591 ac_retval=0
1592 else
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597 fi
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_link
1607
1608 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609 # -------------------------------------------------------
1610 # Tests whether HEADER exists and can be compiled using the include files in
1611 # INCLUDES, setting the cache variable VAR accordingly.
1612 ac_fn_c_check_header_compile ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval \${$3+:} false; then :
1618 $as_echo_n "(cached) " >&6
1619 else
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1622 $4
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626 eval "$3=yes"
1627 else
1628 eval "$3=no"
1629 fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 fi
1632 eval ac_res=\$$3
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637 } # ac_fn_c_check_header_compile
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670 fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1680 ac_fn_c_try_run ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
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_link") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=$ac_status
1711 fi
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_run
1717
1718 # ac_fn_c_check_func LINENO FUNC VAR
1719 # ----------------------------------
1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721 ac_fn_c_check_func ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1733 #define $2 innocuous_$2
1734
1735 /* System header to define __stub macros and hopefully few prototypes,
1736 which can conflict with char $2 (); below.
1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738 <limits.h> exists even on freestanding compilers. */
1739
1740 #ifdef __STDC__
1741 # include <limits.h>
1742 #else
1743 # include <assert.h>
1744 #endif
1745
1746 #undef $2
1747
1748 /* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1751 #ifdef __cplusplus
1752 extern "C"
1753 #endif
1754 char $2 ();
1755 /* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758 #if defined __stub_$2 || defined __stub___$2
1759 choke me
1760 #endif
1761
1762 int
1763 main ()
1764 {
1765 return $2 ();
1766 ;
1767 return 0;
1768 }
1769 _ACEOF
1770 if ac_fn_c_try_link "$LINENO"; then :
1771 eval "$3=yes"
1772 else
1773 eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext \
1776 conftest$ac_exeext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_func
1784
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1789 # accordingly.
1790 ac_fn_c_check_header_mongrel ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if eval \${$3+:} false; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 fi
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 else
1803 # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1813 else
1814 ac_header_compiler=no
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1819
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1829 else
1830 ac_header_preproc=no
1831 fi
1832 rm -f conftest.err conftest.i conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1835
1836 # So? What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838 yes:no: )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844 no:yes:* )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 ;;
1856 esac
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 eval "$3=\$ac_header_compiler"
1863 fi
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 fi
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870 } # ac_fn_c_check_header_mongrel
1871 cat >config.log <<_ACEOF
1872 This file contains any messages produced by compilers while
1873 running configure, to aid debugging if configure makes a mistake.
1874
1875 It was created by hopm $as_me 1.0.0beta1, which was
1876 generated by GNU Autoconf 2.69. Invocation command line was
1877
1878 $ $0 $@
1879
1880 _ACEOF
1881 exec 5>>config.log
1882 {
1883 cat <<_ASUNAME
1884 ## --------- ##
1885 ## Platform. ##
1886 ## --------- ##
1887
1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896
1897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1904
1905 _ASUNAME
1906
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 $as_echo "PATH: $as_dir"
1913 done
1914 IFS=$as_save_IFS
1915
1916 } >&5
1917
1918 cat >&5 <<_ACEOF
1919
1920
1921 ## ----------- ##
1922 ## Core tests. ##
1923 ## ----------- ##
1924
1925 _ACEOF
1926
1927
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_configure_args=
1934 ac_configure_args0=
1935 ac_configure_args1=
1936 ac_must_keep_next=false
1937 for ac_pass in 1 2
1938 do
1939 for ac_arg
1940 do
1941 case $ac_arg in
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1945 continue ;;
1946 *\'*)
1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 esac
1949 case $ac_pass in
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 2)
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1955 else
1956 case $ac_arg in
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963 esac
1964 ;;
1965 -* ) ac_must_keep_next=true ;;
1966 esac
1967 fi
1968 as_fn_append ac_configure_args " '$ac_arg'"
1969 ;;
1970 esac
1971 done
1972 done
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1975
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Save into config.log some information that might help in debugging.
1983 {
1984 echo
1985
1986 $as_echo "## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##"
1989 echo
1990 # The following way of writing the cache mishandles newlines in values,
1991 (
1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in #(
1995 *${as_nl}*)
1996 case $ac_var in #(
1997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999 esac
2000 case $ac_var in #(
2001 _ | IFS | as_nl) ;; #(
2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003 *) { eval $ac_var=; unset $ac_var;} ;;
2004 esac ;;
2005 esac
2006 done
2007 (set) 2>&1 |
2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009 *${as_nl}ac_space=\ *)
2010 sed -n \
2011 "s/'\''/'\''\\\\'\'''\''/g;
2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013 ;; #(
2014 *)
2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016 ;;
2017 esac |
2018 sort
2019 )
2020 echo
2021
2022 $as_echo "## ----------------- ##
2023 ## Output variables. ##
2024 ## ----------------- ##"
2025 echo
2026 for ac_var in $ac_subst_vars
2027 do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 $as_echo "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2035
2036 if test -n "$ac_subst_files"; then
2037 $as_echo "## ------------------- ##
2038 ## File substitutions. ##
2039 ## ------------------- ##"
2040 echo
2041 for ac_var in $ac_subst_files
2042 do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2050 fi
2051
2052 if test -s confdefs.h; then
2053 $as_echo "## ----------- ##
2054 ## confdefs.h. ##
2055 ## ----------- ##"
2056 echo
2057 cat confdefs.h
2058 echo
2059 fi
2060 test "$ac_signal" != 0 &&
2061 $as_echo "$as_me: caught signal $ac_signal"
2062 $as_echo "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2067 ' 0
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 done
2071 ac_signal=0
2072
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2075
2076 $as_echo "/* confdefs.h */" > confdefs.h
2077
2078 # Predefined preprocessor variables.
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_NAME "$PACKAGE_NAME"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_URL "$PACKAGE_URL"
2102 _ACEOF
2103
2104
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2107 ac_site_file1=NONE
2108 ac_site_file2=NONE
2109 if test -n "$CONFIG_SITE"; then
2110 # We do not want a PATH search for config.site.
2111 case $CONFIG_SITE in #((
2112 -*) ac_site_file1=./$CONFIG_SITE;;
2113 */*) ac_site_file1=$CONFIG_SITE;;
2114 *) ac_site_file1=./$CONFIG_SITE;;
2115 esac
2116 elif test "x$prefix" != xNONE; then
2117 ac_site_file1=$prefix/share/config.site
2118 ac_site_file2=$prefix/etc/config.site
2119 else
2120 ac_site_file1=$ac_default_prefix/share/config.site
2121 ac_site_file2=$ac_default_prefix/etc/config.site
2122 fi
2123 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124 do
2125 test "x$ac_site_file" = xNONE && continue
2126 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129 sed 's/^/| /' "$ac_site_file" >&5
2130 . "$ac_site_file" \
2131 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 as_fn_error $? "failed to load site script $ac_site_file
2134 See \`config.log' for more details" "$LINENO" 5; }
2135 fi
2136 done
2137
2138 if test -r "$cache_file"; then
2139 # Some versions of bash will fail to source /dev/null (special files
2140 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2141 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143 $as_echo "$as_me: loading cache $cache_file" >&6;}
2144 case $cache_file in
2145 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146 *) . "./$cache_file";;
2147 esac
2148 fi
2149 else
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151 $as_echo "$as_me: creating cache $cache_file" >&6;}
2152 >$cache_file
2153 fi
2154
2155 # Check that the precious variables saved in the cache have kept the same
2156 # value.
2157 ac_cache_corrupted=false
2158 for ac_var in $ac_precious_vars; do
2159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160 eval ac_new_set=\$ac_env_${ac_var}_set
2161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162 eval ac_new_val=\$ac_env_${ac_var}_value
2163 case $ac_old_set,$ac_new_set in
2164 set,)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,set)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,);;
2173 *)
2174 if test "x$ac_old_val" != "x$ac_new_val"; then
2175 # differences in whitespace do not lead to failure.
2176 ac_old_val_w=`echo x $ac_old_val`
2177 ac_new_val_w=`echo x $ac_new_val`
2178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181 ac_cache_corrupted=:
2182 else
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185 eval $ac_var=\$ac_old_val
2186 fi
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2188 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2190 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2191 fi;;
2192 esac
2193 # Pass precious variables to config.status.
2194 if test "$ac_new_set" = set; then
2195 case $ac_new_val in
2196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197 *) ac_arg=$ac_var=$ac_new_val ;;
2198 esac
2199 case " $ac_configure_args " in
2200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202 esac
2203 fi
2204 done
2205 if $ac_cache_corrupted; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211 fi
2212 ## -------------------- ##
2213 ## Main body of script. ##
2214 ## -------------------- ##
2215
2216 ac_ext=c
2217 ac_cpp='$CPP $CPPFLAGS'
2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221
2222
2223
2224 ac_config_headers="$ac_config_headers src/setup.h"
2225
2226 am__api_version='1.14'
2227
2228 ac_aux_dir=
2229 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2230 if test -f "$ac_dir/install-sh"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/install-sh -c"
2233 break
2234 elif test -f "$ac_dir/install.sh"; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/install.sh -c"
2237 break
2238 elif test -f "$ac_dir/shtool"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/shtool install -c"
2241 break
2242 fi
2243 done
2244 if test -z "$ac_aux_dir"; then
2245 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2246 fi
2247
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's source tree is in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255
2256
2257 # Find a good install program. We prefer a C program (faster),
2258 # so one script is as good as another. But avoid the broken or
2259 # incompatible versions:
2260 # SysV /etc/install, /usr/sbin/install
2261 # SunOS /usr/etc/install
2262 # IRIX /sbin/install
2263 # AIX /bin/install
2264 # AmigaOS /C/install, which installs bootblocks on floppy discs
2265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268 # OS/2's system install, which has a completely different semantic
2269 # ./install, which can be erroneously created by make from ./install.sh.
2270 # Reject install programs that cannot install multiple files.
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2272 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2273 if test -z "$INSTALL"; then
2274 if ${ac_cv_path_install+:} false; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 # Account for people who put trailing slashes in PATH elements.
2283 case $as_dir/ in #((
2284 ./ | .// | /[cC]/* | \
2285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287 /usr/ucb/* ) ;;
2288 *)
2289 # OSF1 and SCO ODT 3.0 have their own names for install.
2290 # Don't use installbsd from OSF since it installs stuff as root
2291 # by default.
2292 for ac_prog in ginstall scoinst install; do
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2295 if test $ac_prog = install &&
2296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297 # AIX install. It has an incompatible calling convention.
2298 :
2299 elif test $ac_prog = install &&
2300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301 # program-specific install script used by HP pwplus--don't use.
2302 :
2303 else
2304 rm -rf conftest.one conftest.two conftest.dir
2305 echo one > conftest.one
2306 echo two > conftest.two
2307 mkdir conftest.dir
2308 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309 test -s conftest.one && test -s conftest.two &&
2310 test -s conftest.dir/conftest.one &&
2311 test -s conftest.dir/conftest.two
2312 then
2313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 break 3
2315 fi
2316 fi
2317 fi
2318 done
2319 done
2320 ;;
2321 esac
2322
2323 done
2324 IFS=$as_save_IFS
2325
2326 rm -rf conftest.one conftest.two conftest.dir
2327
2328 fi
2329 if test "${ac_cv_path_install+set}" = set; then
2330 INSTALL=$ac_cv_path_install
2331 else
2332 # As a last resort, use the slow shell script. Don't cache a
2333 # value for INSTALL within a source directory, because that will
2334 # break other packages using the cache if that directory is
2335 # removed, or if the value is a relative name.
2336 INSTALL=$ac_install_sh
2337 fi
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2340 $as_echo "$INSTALL" >&6; }
2341
2342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343 # It thinks the first close brace ends the variable substitution.
2344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345
2346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347
2348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2351 $as_echo_n "checking whether build environment is sane... " >&6; }
2352 # Reject unsafe characters in $srcdir or the absolute working directory
2353 # name. Accept space and tab only in the latter.
2354 am_lf='
2355 '
2356 case `pwd` in
2357 *[\\\"\#\$\&\'\`$am_lf]*)
2358 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2359 esac
2360 case $srcdir in
2361 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2362 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2363 esac
2364
2365 # Do 'set' in a subshell so we don't clobber the current shell's
2366 # arguments. Must try -L first in case configure is actually a
2367 # symlink; some systems play weird games with the mod time of symlinks
2368 # (eg FreeBSD returns the mod time of the symlink's containing
2369 # directory).
2370 if (
2371 am_has_slept=no
2372 for am_try in 1 2; do
2373 echo "timestamp, slept: $am_has_slept" > conftest.file
2374 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375 if test "$*" = "X"; then
2376 # -L didn't work.
2377 set X `ls -t "$srcdir/configure" conftest.file`
2378 fi
2379 if test "$*" != "X $srcdir/configure conftest.file" \
2380 && test "$*" != "X conftest.file $srcdir/configure"; then
2381
2382 # If neither matched, then we have a broken ls. This can happen
2383 # if, for instance, CONFIG_SHELL is bash and it inherits a
2384 # broken ls alias from the environment. This has actually
2385 # happened. Such a system could not be considered "sane".
2386 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2387 alias in your environment" "$LINENO" 5
2388 fi
2389 if test "$2" = conftest.file || test $am_try -eq 2; then
2390 break
2391 fi
2392 # Just in case.
2393 sleep 1
2394 am_has_slept=yes
2395 done
2396 test "$2" = conftest.file
2397 )
2398 then
2399 # Ok.
2400 :
2401 else
2402 as_fn_error $? "newly created file is older than distributed files!
2403 Check your system clock" "$LINENO" 5
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2406 $as_echo "yes" >&6; }
2407 # If we didn't sleep, we still need to ensure time stamps of config.status and
2408 # generated files are strictly newer.
2409 am_sleep_pid=
2410 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2411 ( sleep 1 ) &
2412 am_sleep_pid=$!
2413 fi
2414
2415 rm -f conftest.file
2416
2417 test "$program_prefix" != NONE &&
2418 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2419 # Use a double $ so make ignores it.
2420 test "$program_suffix" != NONE &&
2421 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2422 # Double any \ or $.
2423 # By default was `s,x,x', remove it if useless.
2424 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2425 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2426
2427 # expand $ac_aux_dir to an absolute path
2428 am_aux_dir=`cd $ac_aux_dir && pwd`
2429
2430 if test x"${MISSING+set}" != xset; then
2431 case $am_aux_dir in
2432 *\ * | *\ *)
2433 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2434 *)
2435 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2436 esac
2437 fi
2438 # Use eval to expand $SHELL
2439 if eval "$MISSING --is-lightweight"; then
2440 am_missing_run="$MISSING "
2441 else
2442 am_missing_run=
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2444 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2445 fi
2446
2447 if test x"${install_sh}" != xset; then
2448 case $am_aux_dir in
2449 *\ * | *\ *)
2450 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2451 *)
2452 install_sh="\${SHELL} $am_aux_dir/install-sh"
2453 esac
2454 fi
2455
2456 # Installed binaries are usually stripped using 'strip' when the user
2457 # run "make install-strip". However 'strip' might not be the right
2458 # tool to use in cross-compilation environments, therefore Automake
2459 # will honor the 'STRIP' environment variable to overrule this program.
2460 if test "$cross_compiling" != no; then
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_STRIP+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$STRIP"; then
2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 STRIP=$ac_cv_prog_STRIP
2490 if test -n "$STRIP"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2492 $as_echo "$STRIP" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499 fi
2500 if test -z "$ac_cv_prog_STRIP"; then
2501 ac_ct_STRIP=$STRIP
2502 # Extract the first word of "strip", so it can be a program name with args.
2503 set dummy strip; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 if test -n "$ac_ct_STRIP"; then
2510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_ac_ct_STRIP="strip"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530 if test -n "$ac_ct_STRIP"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2532 $as_echo "$ac_ct_STRIP" >&6; }
2533 else
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535 $as_echo "no" >&6; }
2536 fi
2537
2538 if test "x$ac_ct_STRIP" = x; then
2539 STRIP=":"
2540 else
2541 case $cross_compiling:$ac_tool_warned in
2542 yes:)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545 ac_tool_warned=yes ;;
2546 esac
2547 STRIP=$ac_ct_STRIP
2548 fi
2549 else
2550 STRIP="$ac_cv_prog_STRIP"
2551 fi
2552
2553 fi
2554 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2555
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2557 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2558 if test -z "$MKDIR_P"; then
2559 if ${ac_cv_path_mkdir+:} false; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_prog in mkdir gmkdir; do
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2570 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2571 'mkdir (GNU coreutils) '* | \
2572 'mkdir (coreutils) '* | \
2573 'mkdir (fileutils) '4.1*)
2574 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2575 break 3;;
2576 esac
2577 done
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583
2584 test -d ./--version && rmdir ./--version
2585 if test "${ac_cv_path_mkdir+set}" = set; then
2586 MKDIR_P="$ac_cv_path_mkdir -p"
2587 else
2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for MKDIR_P within a source directory, because that will
2590 # break other packages using the cache if that directory is
2591 # removed, or if the value is a relative name.
2592 MKDIR_P="$ac_install_sh -d"
2593 fi
2594 fi
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2596 $as_echo "$MKDIR_P" >&6; }
2597
2598 for ac_prog in gawk mawk nawk awk
2599 do
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_AWK+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$AWK"; then
2608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 ac_cv_prog_AWK="$ac_prog"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 AWK=$ac_cv_prog_AWK
2628 if test -n "$AWK"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630 $as_echo "$AWK" >&6; }
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636
2637 test -n "$AWK" && break
2638 done
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642 set x ${MAKE-make}
2643 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 cat >conftest.make <<\_ACEOF
2648 SHELL = /bin/sh
2649 all:
2650 @echo '@@@%%%=$(MAKE)=@@@%%%'
2651 _ACEOF
2652 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654 *@@@%%%=?*=@@@%%%*)
2655 eval ac_cv_prog_make_${ac_make}_set=yes;;
2656 *)
2657 eval ac_cv_prog_make_${ac_make}_set=no;;
2658 esac
2659 rm -f conftest.make
2660 fi
2661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 SET_MAKE=
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 SET_MAKE="MAKE=${MAKE-make}"
2669 fi
2670
2671 rm -rf .tst 2>/dev/null
2672 mkdir .tst 2>/dev/null
2673 if test -d .tst; then
2674 am__leading_dot=.
2675 else
2676 am__leading_dot=_
2677 fi
2678 rmdir .tst 2>/dev/null
2679
2680 # Check whether --enable-silent-rules was given.
2681 if test "${enable_silent_rules+set}" = set; then :
2682 enableval=$enable_silent_rules;
2683 fi
2684
2685 case $enable_silent_rules in # (((
2686 yes) AM_DEFAULT_VERBOSITY=0;;
2687 no) AM_DEFAULT_VERBOSITY=1;;
2688 *) AM_DEFAULT_VERBOSITY=1;;
2689 esac
2690 am_make=${MAKE-make}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2692 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2693 if ${am_cv_make_support_nested_variables+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if $as_echo 'TRUE=$(BAR$(V))
2697 BAR0=false
2698 BAR1=true
2699 V=1
2700 am__doit:
2701 @$(TRUE)
2702 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2703 am_cv_make_support_nested_variables=yes
2704 else
2705 am_cv_make_support_nested_variables=no
2706 fi
2707 fi
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2709 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2710 if test $am_cv_make_support_nested_variables = yes; then
2711 AM_V='$(V)'
2712 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2713 else
2714 AM_V=$AM_DEFAULT_VERBOSITY
2715 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2716 fi
2717 AM_BACKSLASH='\'
2718
2719 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721 # is not polluted with repeated "-I."
2722 am__isrc=' -I$(srcdir)'
2723 # test to see if srcdir already configured
2724 if test -f $srcdir/config.status; then
2725 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2726 fi
2727 fi
2728
2729 # test whether we have cygpath
2730 if test -z "$CYGPATH_W"; then
2731 if (cygpath --version) >/dev/null 2>/dev/null; then
2732 CYGPATH_W='cygpath -w'
2733 else
2734 CYGPATH_W=echo
2735 fi
2736 fi
2737
2738
2739 # Define the identity of the package.
2740 PACKAGE='hopm'
2741 VERSION='1.0.0beta1'
2742
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE "$PACKAGE"
2746 _ACEOF
2747
2748
2749 cat >>confdefs.h <<_ACEOF
2750 #define VERSION "$VERSION"
2751 _ACEOF
2752
2753 # Some tools Automake needs.
2754
2755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2756
2757
2758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2759
2760
2761 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2762
2763
2764 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2765
2766
2767 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2768
2769 # For better backward compatibility. To be removed once Automake 1.9.x
2770 # dies out for good. For more background, see:
2771 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2772 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2773 mkdir_p='$(MKDIR_P)'
2774
2775 # We need awk for the "check" target. The system "awk" is bad on
2776 # some platforms.
2777 # Always define AMTAR for backward compatibility. Yes, it's still used
2778 # in the wild :-( We should find a proper way to deprecate it ...
2779 AMTAR='$${TAR-tar}'
2780
2781
2782 # We'll loop over all known methods to create a tar archive until one works.
2783 _am_tools='gnutar pax cpio none'
2784
2785 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786
2787
2788
2789
2790
2791
2792 # POSIX will say in a future version that running "rm -f" with no argument
2793 # is OK; and we want to be able to make that assumption in our Makefile
2794 # recipes. So use an aggressive probe to check that the usage we want is
2795 # actually supported "in the wild" to an acceptable degree.
2796 # See automake bug#10828.
2797 # To make any issue more visible, cause the running configure to be aborted
2798 # by default if the 'rm' program in use doesn't match our expectations; the
2799 # user can still override this though.
2800 if rm -f && rm -fr && rm -rf; then : OK; else
2801 cat >&2 <<'END'
2802 Oops!
2803
2804 Your 'rm' program seems unable to run without file operands specified
2805 on the command line, even when the '-f' option is present. This is contrary
2806 to the behaviour of most rm programs out there, and not conforming with
2807 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2808
2809 Please tell bug-automake@gnu.org about your system, including the value
2810 of your $PATH and any error possibly output before this message. This
2811 can help us improve future automake versions.
2812
2813 END
2814 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2815 echo 'Configuration will proceed anyway, since you have set the' >&2
2816 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2817 echo >&2
2818 else
2819 cat >&2 <<'END'
2820 Aborting the configuration process, to ensure you take notice of the issue.
2821
2822 You can download and install GNU coreutils to get an 'rm' implementation
2823 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2824
2825 If you want to complete the configuration process using your problematic
2826 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2827 to "yes", and re-run configure.
2828
2829 END
2830 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2831 fi
2832 fi
2833
2834
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2836 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2837 # Check whether --enable-maintainer-mode was given.
2838 if test "${enable_maintainer_mode+set}" = set; then :
2839 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2840 else
2841 USE_MAINTAINER_MODE=no
2842 fi
2843
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2845 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2846 if test $USE_MAINTAINER_MODE = yes; then
2847 MAINTAINER_MODE_TRUE=
2848 MAINTAINER_MODE_FALSE='#'
2849 else
2850 MAINTAINER_MODE_TRUE='#'
2851 MAINTAINER_MODE_FALSE=
2852 fi
2853
2854 MAINT=$MAINTAINER_MODE_TRUE
2855
2856
2857
2858 DEPDIR="${am__leading_dot}deps"
2859
2860 ac_config_commands="$ac_config_commands depfiles"
2861
2862
2863 am_make=${MAKE-make}
2864 cat > confinc << 'END'
2865 am__doit:
2866 @echo this is the am__doit target
2867 .PHONY: am__doit
2868 END
2869 # If we don't find an include directive, just comment out the code.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2871 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2872 am__include="#"
2873 am__quote=
2874 _am_result=none
2875 # First try GNU make style include.
2876 echo "include confinc" > confmf
2877 # Ignore all kinds of additional output from 'make'.
2878 case `$am_make -s -f confmf 2> /dev/null` in #(
2879 *the\ am__doit\ target*)
2880 am__include=include
2881 am__quote=
2882 _am_result=GNU
2883 ;;
2884 esac
2885 # Now try BSD make style include.
2886 if test "$am__include" = "#"; then
2887 echo '.include "confinc"' > confmf
2888 case `$am_make -s -f confmf 2> /dev/null` in #(
2889 *the\ am__doit\ target*)
2890 am__include=.include
2891 am__quote="\""
2892 _am_result=BSD
2893 ;;
2894 esac
2895 fi
2896
2897
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2899 $as_echo "$_am_result" >&6; }
2900 rm -f confinc confmf
2901
2902 # Check whether --enable-dependency-tracking was given.
2903 if test "${enable_dependency_tracking+set}" = set; then :
2904 enableval=$enable_dependency_tracking;
2905 fi
2906
2907 if test "x$enable_dependency_tracking" != xno; then
2908 am_depcomp="$ac_aux_dir/depcomp"
2909 AMDEPBACKSLASH='\'
2910 am__nodep='_no'
2911 fi
2912 if test "x$enable_dependency_tracking" != xno; then
2913 AMDEP_TRUE=
2914 AMDEP_FALSE='#'
2915 else
2916 AMDEP_TRUE='#'
2917 AMDEP_FALSE=
2918 fi
2919
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964 fi
2965 if test -z "$ac_cv_prog_CC"; then
2966 ac_ct_CC=$CC
2967 # Extract the first word of "gcc", so it can be a program name with args.
2968 set dummy gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC="gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003 if test "x$ac_ct_CC" = x; then
3004 CC=""
3005 else
3006 case $cross_compiling:$ac_tool_warned in
3007 yes:)
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3011 esac
3012 CC=$ac_ct_CC
3013 fi
3014 else
3015 CC="$ac_cv_prog_CC"
3016 fi
3017
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_CC="${ac_tool_prefix}cc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 fi
3058 fi
3059 if test -z "$CC"; then
3060 # Extract the first word of "cc", so it can be a program name with args.
3061 set dummy cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 ac_prog_rejected=no
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3079 ac_prog_rejected=yes
3080 continue
3081 fi
3082 ac_cv_prog_CC="cc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 if test $ac_prog_rejected = yes; then
3091 # We found a bogon in the path, so make sure we never use it.
3092 set dummy $ac_cv_prog_CC
3093 shift
3094 if test $# != 0; then
3095 # We chose a different compiler from the bogus one.
3096 # However, it has the same basename, so the bogon will be chosen
3097 # first if we set CC to just the basename; use the full file name.
3098 shift
3099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100 fi
3101 fi
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 fi
3115 if test -z "$CC"; then
3116 if test -n "$ac_tool_prefix"; then
3117 for ac_prog in cl.exe
3118 do
3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156 test -n "$CC" && break
3157 done
3158 fi
3159 if test -z "$CC"; then
3160 ac_ct_CC=$CC
3161 for ac_prog in cl.exe
3162 do
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_ac_ct_CC="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 test -n "$ac_ct_CC" && break
3201 done
3202
3203 if test "x$ac_ct_CC" = x; then
3204 CC=""
3205 else
3206 case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3213 fi
3214 fi
3215
3216 fi
3217
3218
3219 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details" "$LINENO" 5; }
3223
3224 # Provide some information about the compiler.
3225 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3226 set X $ac_compile
3227 ac_compiler=$2
3228 for ac_option in --version -v -V -qversion; do
3229 { { ac_try="$ac_compiler $ac_option >&5"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3237 ac_status=$?
3238 if test -s conftest.err; then
3239 sed '10a\
3240 ... rest of stderr output deleted ...
3241 10q' conftest.err >conftest.er1
3242 cat conftest.er1 >&5
3243 fi
3244 rm -f conftest.er1 conftest.err
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }
3247 done
3248
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251
3252 int
3253 main ()
3254 {
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 ac_clean_files_save=$ac_clean_files
3261 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3262 # Try to create an executable without -o first, disregard a.out.
3263 # It will help us diagnose broken compilers, and finding out an intuition
3264 # of exeext.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266 $as_echo_n "checking whether the C compiler works... " >&6; }
3267 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3268
3269 # The possible output files:
3270 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3271
3272 ac_rmfiles=
3273 for ac_file in $ac_files
3274 do
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278 esac
3279 done
3280 rm -f $ac_rmfiles
3281
3282 if { { ac_try="$ac_link_default"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_link_default") 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3294 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3295 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3296 # so that the user can short-circuit this test for compilers unknown to
3297 # Autoconf.
3298 for ac_file in $ac_files ''
3299 do
3300 test -f "$ac_file" || continue
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3303 ;;
3304 [ab].out )
3305 # We found the default executable, but exeext='' is most
3306 # certainly right.
3307 break;;
3308 *.* )
3309 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3310 then :; else
3311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312 fi
3313 # We set ac_cv_exeext here because the later test for it is not
3314 # safe: cross compilers may not add the suffix if given an `-o'
3315 # argument, so we may need to know it at that point already.
3316 # Even if this section looks crufty: it has the advantage of
3317 # actually working.
3318 break;;
3319 * )
3320 break;;
3321 esac
3322 done
3323 test "$ac_cv_exeext" = no && ac_cv_exeext=
3324
3325 else
3326 ac_file=''
3327 fi
3328 if test -z "$ac_file"; then :
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error 77 "C compiler cannot create executables
3337 See \`config.log' for more details" "$LINENO" 5; }
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340 $as_echo "yes" >&6; }
3341 fi
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3343 $as_echo_n "checking for C compiler default output file name... " >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3345 $as_echo "$ac_file" >&6; }
3346 ac_exeext=$ac_cv_exeext
3347
3348 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349 ac_clean_files=$ac_clean_files_save
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3351 $as_echo_n "checking for suffix of executables... " >&6; }
3352 if { { ac_try="$ac_link"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_link") 2>&5
3360 ac_status=$?
3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 test $ac_status = 0; }; then :
3363 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3365 # work properly (i.e., refer to `conftest.exe'), while it won't with
3366 # `rm'.
3367 for ac_file in conftest.exe conftest conftest.*; do
3368 test -f "$ac_file" || continue
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 break;;
3373 * ) break;;
3374 esac
3375 done
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details" "$LINENO" 5; }
3381 fi
3382 rm -f conftest conftest$ac_cv_exeext
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3384 $as_echo "$ac_cv_exeext" >&6; }
3385
3386 rm -f conftest.$ac_ext
3387 EXEEXT=$ac_cv_exeext
3388 ac_exeext=$EXEEXT
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3391 #include <stdio.h>
3392 int
3393 main ()
3394 {
3395 FILE *f = fopen ("conftest.out", "w");
3396 return ferror (f) || fclose (f) != 0;
3397
3398 ;
3399 return 0;
3400 }
3401 _ACEOF
3402 ac_clean_files="$ac_clean_files conftest.out"
3403 # Check that the compiler produces executables we can run. If not, either
3404 # the compiler is broken, or we cross compile.
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3406 $as_echo_n "checking whether we are cross compiling... " >&6; }
3407 if test "$cross_compiling" != yes; then
3408 { { ac_try="$ac_link"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_link") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3419 if { ac_try='./conftest$ac_cv_exeext'
3420 { { case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_try") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; }; then
3430 cross_compiling=no
3431 else
3432 if test "$cross_compiling" = maybe; then
3433 cross_compiling=yes
3434 else
3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot run C compiled programs.
3438 If you meant to cross compile, use \`--host'.
3439 See \`config.log' for more details" "$LINENO" 5; }
3440 fi
3441 fi
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3444 $as_echo "$cross_compiling" >&6; }
3445
3446 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3447 ac_clean_files=$ac_clean_files_save
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3449 $as_echo_n "checking for suffix of object files... " >&6; }
3450 if ${ac_cv_objext+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455
3456 int
3457 main ()
3458 {
3459
3460 ;
3461 return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.o conftest.obj
3465 if { { ac_try="$ac_compile"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_compile") 2>&5
3473 ac_status=$?
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; then :
3476 for ac_file in conftest.o conftest.obj conftest.*; do
3477 test -f "$ac_file" || continue;
3478 case $ac_file in
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481 break;;
3482 esac
3483 done
3484 else
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "cannot compute suffix of object files: cannot compile
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 fi
3493 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3496 $as_echo "$ac_cv_objext" >&6; }
3497 OBJEXT=$ac_cv_objext
3498 ac_objext=$OBJEXT
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3500 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3501 if ${ac_cv_c_compiler_gnu+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510 #ifndef __GNUC__
3511 choke me
3512 #endif
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519 ac_compiler_gnu=yes
3520 else
3521 ac_compiler_gnu=no
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3528 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3529 if test $ac_compiler_gnu = yes; then
3530 GCC=yes
3531 else
3532 GCC=
3533 fi
3534 ac_test_CFLAGS=${CFLAGS+set}
3535 ac_save_CFLAGS=$CFLAGS
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3537 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3538 if ${ac_cv_prog_cc_g+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 ac_save_c_werror_flag=$ac_c_werror_flag
3542 ac_c_werror_flag=yes
3543 ac_cv_prog_cc_g=no
3544 CFLAGS="-g"
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547
3548 int
3549 main ()
3550 {
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_cv_prog_cc_g=yes
3558 else
3559 CFLAGS=""
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562
3563 int
3564 main ()
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572
3573 else
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3575 CFLAGS="-g"
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 int
3580 main ()
3581 {
3582
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_cv_prog_cc_g=yes
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 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_c_werror_flag=$ac_save_c_werror_flag
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3598 $as_echo "$ac_cv_prog_cc_g" >&6; }
3599 if test "$ac_test_CFLAGS" = set; then
3600 CFLAGS=$ac_save_CFLAGS
3601 elif test $ac_cv_prog_cc_g = yes; then
3602 if test "$GCC" = yes; then
3603 CFLAGS="-g -O2"
3604 else
3605 CFLAGS="-g"
3606 fi
3607 else
3608 if test "$GCC" = yes; then
3609 CFLAGS="-O2"
3610 else
3611 CFLAGS=
3612 fi
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3615 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3616 if ${ac_cv_prog_cc_c89+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 ac_cv_prog_cc_c89=no
3620 ac_save_CC=$CC
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623 #include <stdarg.h>
3624 #include <stdio.h>
3625 struct stat;
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3630 char **p;
3631 int i;
3632 {
3633 return p[i];
3634 }
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3636 {
3637 char *s;
3638 va_list v;
3639 va_start (v,p);
3640 s = g (p, va_arg (v,int));
3641 va_end (v);
3642 return s;
3643 }
3644
3645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3646 function prototypes and stuff, but not '\xHH' hex character constants.
3647 These don't provoke an error unfortunately, instead are silently treated
3648 as 'x'. The following induces an error, until -std is added to get
3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3650 array size at least. It's necessary to write '\x00'==0 to get something
3651 that's true only with -std. */
3652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653
3654 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655 inside strings and character constants. */
3656 #define FOO(x) 'x'
3657 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 int argc;
3664 char **argv;
3665 int
3666 main ()
3667 {
3668 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675 do
3676 CC="$ac_save_CC $ac_arg"
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_c89=$ac_arg
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext
3681 test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3685
3686 fi
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3689 x)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 $as_echo "none needed" >&6; } ;;
3692 xno)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 $as_echo "unsupported" >&6; } ;;
3695 *)
3696 CC="$CC $ac_cv_prog_cc_c89"
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701
3702 fi
3703
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3716 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3717 if ${am_cv_prog_cc_c_o+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 # Make sure it works both with $CC and with simple cc.
3732 # Following AC_PROG_CC_C_O, we do the test twice because some
3733 # compilers refuse to overwrite an existing .o file with -o,
3734 # though they will create one.
3735 am_cv_prog_cc_c_o=yes
3736 for am_i in 1 2; do
3737 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3738 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } \
3742 && test -f conftest2.$ac_objext; then
3743 : OK
3744 else
3745 am_cv_prog_cc_c_o=no
3746 break
3747 fi
3748 done
3749 rm -f core conftest*
3750 unset am_i
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3753 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3754 if test "$am_cv_prog_cc_c_o" != yes; then
3755 # Losing compiler, so override with the script.
3756 # FIXME: It is wrong to rewrite CC.
3757 # But if we don't then we get into trouble of one sort or another.
3758 # A longer-term fix would be to have automake use am__CC in this case,
3759 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3760 CC="$am_aux_dir/compile $CC"
3761 fi
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768
3769 depcc="$CC" am_compiler_list=
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named 'D' -- because '-MD' means "put the output
3781 # in D".
3782 rm -rf conftest.dir
3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
3795
3796 am_cv_CC_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 fi
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3804
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3809 #
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3817 # Solaris 10 /bin/sh.
3818 echo '/* dummy */' > sub/conftst$i.h
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle '-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs.
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
3828 case $depmode in
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3832 ;;
3833 nosideeffect)
3834 # After this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested.
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3840 fi
3841 ;;
3842 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3843 # This compiler won't grok '-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3848 ;;
3849 none) break ;;
3850 esac
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=$am__obj \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869 am_cv_CC_dependencies_compiler_type=$depmode
3870 break
3871 fi
3872 fi
3873 done
3874
3875 cd ..
3876 rm -rf conftest.dir
3877 else
3878 am_cv_CC_dependencies_compiler_type=none
3879 fi
3880
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886 if
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_TRUE=
3890 am__fastdepCC_FALSE='#'
3891 else
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
3894 fi
3895
3896
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3898 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3899 if ${ac_cv_prog_cc_c99+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 ac_cv_prog_cc_c99=no
3903 ac_save_CC=$CC
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906 #include <stdarg.h>
3907 #include <stdbool.h>
3908 #include <stdlib.h>
3909 #include <wchar.h>
3910 #include <stdio.h>
3911
3912 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3913 #define debug(...) fprintf (stderr, __VA_ARGS__)
3914 #define showlist(...) puts (#__VA_ARGS__)
3915 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3916 static void
3917 test_varargs_macros (void)
3918 {
3919 int x = 1234;
3920 int y = 5678;
3921 debug ("Flag");
3922 debug ("X = %d\n", x);
3923 showlist (The first, second, and third items.);
3924 report (x>y, "x is %d but y is %d", x, y);
3925 }
3926
3927 // Check long long types.
3928 #define BIG64 18446744073709551615ull
3929 #define BIG32 4294967295ul
3930 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3931 #if !BIG_OK
3932 your preprocessor is broken;
3933 #endif
3934 #if BIG_OK
3935 #else
3936 your preprocessor is broken;
3937 #endif
3938 static long long int bignum = -9223372036854775807LL;
3939 static unsigned long long int ubignum = BIG64;
3940
3941 struct incomplete_array
3942 {
3943 int datasize;
3944 double data[];
3945 };
3946
3947 struct named_init {
3948 int number;
3949 const wchar_t *name;
3950 double average;
3951 };
3952
3953 typedef const char *ccp;
3954
3955 static inline int
3956 test_restrict (ccp restrict text)
3957 {
3958 // See if C++-style comments work.
3959 // Iterate through items via the restricted pointer.
3960 // Also check for declarations in for loops.
3961 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3962 continue;
3963 return 0;
3964 }
3965
3966 // Check varargs and va_copy.
3967 static void
3968 test_varargs (const char *format, ...)
3969 {
3970 va_list args;
3971 va_start (args, format);
3972 va_list args_copy;
3973 va_copy (args_copy, args);
3974
3975 const char *str;
3976 int number;
3977 float fnumber;
3978
3979 while (*format)
3980 {
3981 switch (*format++)
3982 {
3983 case 's': // string
3984 str = va_arg (args_copy, const char *);
3985 break;
3986 case 'd': // int
3987 number = va_arg (args_copy, int);
3988 break;
3989 case 'f': // float
3990 fnumber = va_arg (args_copy, double);
3991 break;
3992 default:
3993 break;
3994 }
3995 }
3996 va_end (args_copy);
3997 va_end (args);
3998 }
3999
4000 int
4001 main ()
4002 {
4003
4004 // Check bool.
4005 _Bool success = false;
4006
4007 // Check restrict.
4008 if (test_restrict ("String literal") == 0)
4009 success = true;
4010 char *restrict newvar = "Another string";
4011
4012 // Check varargs.
4013 test_varargs ("s, d' f .", "string", 65, 34.234);
4014 test_varargs_macros ();
4015
4016 // Check flexible array members.
4017 struct incomplete_array *ia =
4018 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4019 ia->datasize = 10;
4020 for (int i = 0; i < ia->datasize; ++i)
4021 ia->data[i] = i * 1.234;
4022
4023 // Check named initializers.
4024 struct named_init ni = {
4025 .number = 34,
4026 .name = L"Test wide string",
4027 .average = 543.34343,
4028 };
4029
4030 ni.number = 58;
4031
4032 int dynamic_array[ni.number];
4033 dynamic_array[ni.number - 1] = 543;
4034
4035 // work around unused variable warnings
4036 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4037 || dynamic_array[ni.number - 1] != 543);
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4044 do
4045 CC="$ac_save_CC $ac_arg"
4046 if ac_fn_c_try_compile "$LINENO"; then :
4047 ac_cv_prog_cc_c99=$ac_arg
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext
4050 test "x$ac_cv_prog_cc_c99" != "xno" && break
4051 done
4052 rm -f conftest.$ac_ext
4053 CC=$ac_save_CC
4054
4055 fi
4056 # AC_CACHE_VAL
4057 case "x$ac_cv_prog_cc_c99" in
4058 x)
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4061 xno)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4064 *)
4065 CC="$CC $ac_cv_prog_cc_c99"
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4067 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4068 esac
4069 if test "x$ac_cv_prog_cc_c99" != xno; then :
4070
4071 fi
4072
4073
4074 if test "$ac_cv_prog_cc_c99" = "no"; then :
4075 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4076 fi
4077 case `pwd` in
4078 *\ * | *\ *)
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4080 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4081 esac
4082
4083
4084
4085 macro_version='2.4.4'
4086 macro_revision='2.4.4'
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100 ltmain=$ac_aux_dir/ltmain.sh
4101
4102 # Make sure we can run config.sub.
4103 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4104 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4107 $as_echo_n "checking build system type... " >&6; }
4108 if ${ac_cv_build+:} false; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 ac_build_alias=$build_alias
4112 test "x$ac_build_alias" = x &&
4113 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4114 test "x$ac_build_alias" = x &&
4115 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4116 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4117 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4118
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4121 $as_echo "$ac_cv_build" >&6; }
4122 case $ac_cv_build in
4123 *-*-*) ;;
4124 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4125 esac
4126 build=$ac_cv_build
4127 ac_save_IFS=$IFS; IFS='-'
4128 set x $ac_cv_build
4129 shift
4130 build_cpu=$1
4131 build_vendor=$2
4132 shift; shift
4133 # Remember, the first character of IFS is used to create $*,
4134 # except with old shells:
4135 build_os=$*
4136 IFS=$ac_save_IFS
4137 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4138
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4141 $as_echo_n "checking host system type... " >&6; }
4142 if ${ac_cv_host+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test "x$host_alias" = x; then
4146 ac_cv_host=$ac_cv_build
4147 else
4148 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4149 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4150 fi
4151
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4154 $as_echo "$ac_cv_host" >&6; }
4155 case $ac_cv_host in
4156 *-*-*) ;;
4157 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4158 esac
4159 host=$ac_cv_host
4160 ac_save_IFS=$IFS; IFS='-'
4161 set x $ac_cv_host
4162 shift
4163 host_cpu=$1
4164 host_vendor=$2
4165 shift; shift
4166 # Remember, the first character of IFS is used to create $*,
4167 # except with old shells:
4168 host_os=$*
4169 IFS=$ac_save_IFS
4170 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4171
4172
4173 # Backslashify metacharacters that are still active within
4174 # double-quoted strings.
4175 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4176
4177 # Same as above, but do not quote variable references.
4178 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4179
4180 # Sed substitution to delay expansion of an escaped shell variable in a
4181 # double_quote_subst'ed string.
4182 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4183
4184 # Sed substitution to delay expansion of an escaped single quote.
4185 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4186
4187 # Sed substitution to avoid accidental globbing in evaled expressions
4188 no_glob_subst='s/\*/\\\*/g'
4189
4190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4191 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4192 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4193
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4195 $as_echo_n "checking how to print strings... " >&6; }
4196 # Test print first, because it will be a builtin if present.
4197 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4198 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4199 ECHO='print -r --'
4200 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4201 ECHO='printf %s\n'
4202 else
4203 # Use this function as a fallback that always works.
4204 func_fallback_echo ()
4205 {
4206 eval 'cat <<_LTECHO_EOF
4207 $1
4208 _LTECHO_EOF'
4209 }
4210 ECHO='func_fallback_echo'
4211 fi
4212
4213 # func_echo_all arg...
4214 # Invoke $ECHO with all args, space-separated.
4215 func_echo_all ()
4216 {
4217 $ECHO ""
4218 }
4219
4220 case $ECHO in
4221 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4222 $as_echo "printf" >&6; } ;;
4223 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4224 $as_echo "print -r" >&6; } ;;
4225 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4226 $as_echo "cat" >&6; } ;;
4227 esac
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4243 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4244 if ${ac_cv_path_SED+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4248 for ac_i in 1 2 3 4 5 6 7; do
4249 ac_script="$ac_script$as_nl$ac_script"
4250 done
4251 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4252 { ac_script=; unset ac_script;}
4253 if test -z "$SED"; then
4254 ac_path_SED_found=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_prog in sed gsed; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4264 as_fn_executable_p "$ac_path_SED" || continue
4265 # Check for GNU ac_path_SED and select it if it is found.
4266 # Check for GNU $ac_path_SED
4267 case `"$ac_path_SED" --version 2>&1` in
4268 *GNU*)
4269 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4270 *)
4271 ac_count=0
4272 $as_echo_n 0123456789 >"conftest.in"
4273 while :
4274 do
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 $as_echo '' >> "conftest.nl"
4279 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281 as_fn_arith $ac_count + 1 && ac_count=$as_val
4282 if test $ac_count -gt ${ac_path_SED_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_SED="$ac_path_SED"
4285 ac_path_SED_max=$ac_count
4286 fi
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4289 done
4290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291 esac
4292
4293 $ac_path_SED_found && break 3
4294 done
4295 done
4296 done
4297 IFS=$as_save_IFS
4298 if test -z "$ac_cv_path_SED"; then
4299 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4300 fi
4301 else
4302 ac_cv_path_SED=$SED
4303 fi
4304
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4307 $as_echo "$ac_cv_path_SED" >&6; }
4308 SED="$ac_cv_path_SED"
4309 rm -f conftest.sed
4310
4311 test -z "$SED" && SED=sed
4312 Xsed="$SED -e 1s/^X//"
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4325 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4326 if ${ac_cv_path_GREP+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -z "$GREP"; then
4330 ac_path_GREP_found=false
4331 # Loop through the user's path and test for each of PROGNAME-LIST
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334 do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_prog in grep ggrep; do
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4340 as_fn_executable_p "$ac_path_GREP" || continue
4341 # Check for GNU ac_path_GREP and select it if it is found.
4342 # Check for GNU $ac_path_GREP
4343 case `"$ac_path_GREP" --version 2>&1` in
4344 *GNU*)
4345 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4346 *)
4347 ac_count=0
4348 $as_echo_n 0123456789 >"conftest.in"
4349 while :
4350 do
4351 cat "conftest.in" "conftest.in" >"conftest.tmp"
4352 mv "conftest.tmp" "conftest.in"
4353 cp "conftest.in" "conftest.nl"
4354 $as_echo 'GREP' >> "conftest.nl"
4355 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4357 as_fn_arith $ac_count + 1 && ac_count=$as_val
4358 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4359 # Best one so far, save it but keep looking for a better one
4360 ac_cv_path_GREP="$ac_path_GREP"
4361 ac_path_GREP_max=$ac_count
4362 fi
4363 # 10*(2^10) chars as input seems more than enough
4364 test $ac_count -gt 10 && break
4365 done
4366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367 esac
4368
4369 $ac_path_GREP_found && break 3
4370 done
4371 done
4372 done
4373 IFS=$as_save_IFS
4374 if test -z "$ac_cv_path_GREP"; then
4375 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4376 fi
4377 else
4378 ac_cv_path_GREP=$GREP
4379 fi
4380
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4383 $as_echo "$ac_cv_path_GREP" >&6; }
4384 GREP="$ac_cv_path_GREP"
4385
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4388 $as_echo_n "checking for egrep... " >&6; }
4389 if ${ac_cv_path_EGREP+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4393 then ac_cv_path_EGREP="$GREP -E"
4394 else
4395 if test -z "$EGREP"; then
4396 ac_path_EGREP_found=false
4397 # Loop through the user's path and test for each of PROGNAME-LIST
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_prog in egrep; do
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4406 as_fn_executable_p "$ac_path_EGREP" || continue
4407 # Check for GNU ac_path_EGREP and select it if it is found.
4408 # Check for GNU $ac_path_EGREP
4409 case `"$ac_path_EGREP" --version 2>&1` in
4410 *GNU*)
4411 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4412 *)
4413 ac_count=0
4414 $as_echo_n 0123456789 >"conftest.in"
4415 while :
4416 do
4417 cat "conftest.in" "conftest.in" >"conftest.tmp"
4418 mv "conftest.tmp" "conftest.in"
4419 cp "conftest.in" "conftest.nl"
4420 $as_echo 'EGREP' >> "conftest.nl"
4421 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423 as_fn_arith $ac_count + 1 && ac_count=$as_val
4424 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4425 # Best one so far, save it but keep looking for a better one
4426 ac_cv_path_EGREP="$ac_path_EGREP"
4427 ac_path_EGREP_max=$ac_count
4428 fi
4429 # 10*(2^10) chars as input seems more than enough
4430 test $ac_count -gt 10 && break
4431 done
4432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433 esac
4434
4435 $ac_path_EGREP_found && break 3
4436 done
4437 done
4438 done
4439 IFS=$as_save_IFS
4440 if test -z "$ac_cv_path_EGREP"; then
4441 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4442 fi
4443 else
4444 ac_cv_path_EGREP=$EGREP
4445 fi
4446
4447 fi
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4450 $as_echo "$ac_cv_path_EGREP" >&6; }
4451 EGREP="$ac_cv_path_EGREP"
4452
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4455 $as_echo_n "checking for fgrep... " >&6; }
4456 if ${ac_cv_path_FGREP+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4460 then ac_cv_path_FGREP="$GREP -F"
4461 else
4462 if test -z "$FGREP"; then
4463 ac_path_FGREP_found=false
4464 # Loop through the user's path and test for each of PROGNAME-LIST
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4467 do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_prog in fgrep; do
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4473 as_fn_executable_p "$ac_path_FGREP" || continue
4474 # Check for GNU ac_path_FGREP and select it if it is found.
4475 # Check for GNU $ac_path_FGREP
4476 case `"$ac_path_FGREP" --version 2>&1` in
4477 *GNU*)
4478 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4479 *)
4480 ac_count=0
4481 $as_echo_n 0123456789 >"conftest.in"
4482 while :
4483 do
4484 cat "conftest.in" "conftest.in" >"conftest.tmp"
4485 mv "conftest.tmp" "conftest.in"
4486 cp "conftest.in" "conftest.nl"
4487 $as_echo 'FGREP' >> "conftest.nl"
4488 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490 as_fn_arith $ac_count + 1 && ac_count=$as_val
4491 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4492 # Best one so far, save it but keep looking for a better one
4493 ac_cv_path_FGREP="$ac_path_FGREP"
4494 ac_path_FGREP_max=$ac_count
4495 fi
4496 # 10*(2^10) chars as input seems more than enough
4497 test $ac_count -gt 10 && break
4498 done
4499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4500 esac
4501
4502 $ac_path_FGREP_found && break 3
4503 done
4504 done
4505 done
4506 IFS=$as_save_IFS
4507 if test -z "$ac_cv_path_FGREP"; then
4508 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4509 fi
4510 else
4511 ac_cv_path_FGREP=$FGREP
4512 fi
4513
4514 fi
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4517 $as_echo "$ac_cv_path_FGREP" >&6; }
4518 FGREP="$ac_cv_path_FGREP"
4519
4520
4521 test -z "$GREP" && GREP=grep
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541 # Check whether --with-gnu-ld was given.
4542 if test "${with_gnu_ld+set}" = set; then :
4543 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4544 else
4545 with_gnu_ld=no
4546 fi
4547
4548 ac_prog=ld
4549 if test yes = "$GCC"; then
4550 # Check if gcc -print-prog-name=ld gives a path.
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4552 $as_echo_n "checking for ld used by $CC... " >&6; }
4553 case $host in
4554 *-*-mingw*)
4555 # gcc leaves a trailing carriage return, which upsets mingw
4556 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4557 *)
4558 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4559 esac
4560 case $ac_prog in
4561 # Accept absolute paths.
4562 [\\/]* | ?:[\\/]*)
4563 re_direlt='/[^/][^/]*/\.\./'
4564 # Canonicalize the pathname of ld
4565 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4566 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4567 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4568 done
4569 test -z "$LD" && LD=$ac_prog
4570 ;;
4571 "")
4572 # If it fails, then pretend we aren't using GCC.
4573 ac_prog=ld
4574 ;;
4575 *)
4576 # If it is relative, then search for the first ld in PATH.
4577 with_gnu_ld=unknown
4578 ;;
4579 esac
4580 elif test yes = "$with_gnu_ld"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4582 $as_echo_n "checking for GNU ld... " >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4585 $as_echo_n "checking for non-GNU ld... " >&6; }
4586 fi
4587 if ${lt_cv_path_LD+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test -z "$LD"; then
4591 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4592 for ac_dir in $PATH; do
4593 IFS=$lt_save_ifs
4594 test -z "$ac_dir" && ac_dir=.
4595 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4596 lt_cv_path_LD=$ac_dir/$ac_prog
4597 # Check to see if the program is GNU ld. I'd rather use --version,
4598 # but apparently some variants of GNU ld only accept -v.
4599 # Break only if it was the GNU/non-GNU ld that we prefer.
4600 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4601 *GNU* | *'with BFD'*)
4602 test no != "$with_gnu_ld" && break
4603 ;;
4604 *)
4605 test yes != "$with_gnu_ld" && break
4606 ;;
4607 esac
4608 fi
4609 done
4610 IFS=$lt_save_ifs
4611 else
4612 lt_cv_path_LD=$LD # Let the user override the test with a path.
4613 fi
4614 fi
4615
4616 LD=$lt_cv_path_LD
4617 if test -n "$LD"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4619 $as_echo "$LD" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4626 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4627 if ${lt_cv_prog_gnu_ld+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4631 case `$LD -v 2>&1 </dev/null` in
4632 *GNU* | *'with BFD'*)
4633 lt_cv_prog_gnu_ld=yes
4634 ;;
4635 *)
4636 lt_cv_prog_gnu_ld=no
4637 ;;
4638 esac
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4641 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4642 with_gnu_ld=$lt_cv_prog_gnu_ld
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4653 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4654 if ${lt_cv_path_NM+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -n "$NM"; then
4658 # Let the user override the test.
4659 lt_cv_path_NM=$NM
4660 else
4661 lt_nm_to_check=${ac_tool_prefix}nm
4662 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4663 lt_nm_to_check="$lt_nm_to_check nm"
4664 fi
4665 for lt_tmp_nm in $lt_nm_to_check; do
4666 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4667 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4668 IFS=$lt_save_ifs
4669 test -z "$ac_dir" && ac_dir=.
4670 tmp_nm=$ac_dir/$lt_tmp_nm
4671 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4672 # Check to see if the nm accepts a BSD-compat flag.
4673 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4674 # nm: unknown option "B" ignored
4675 # Tru64's nm complains that /dev/null is an invalid object file
4676 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4677 case $build_os in
4678 mingw*) lt_bad_file=conftest.nm/nofile ;;
4679 *) lt_bad_file=/dev/null ;;
4680 esac
4681 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4682 *$lt_bad_file* | *'Invalid file or object type'*)
4683 lt_cv_path_NM="$tmp_nm -B"
4684 break 2
4685 ;;
4686 *)
4687 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4688 */dev/null*)
4689 lt_cv_path_NM="$tmp_nm -p"
4690 break 2
4691 ;;
4692 *)
4693 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4694 continue # so that we can try to find one that supports BSD flags
4695 ;;
4696 esac
4697 ;;
4698 esac
4699 fi
4700 done
4701 IFS=$lt_save_ifs
4702 done
4703 : ${lt_cv_path_NM=no}
4704 fi
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4707 $as_echo "$lt_cv_path_NM" >&6; }
4708 if test no != "$lt_cv_path_NM"; then
4709 NM=$lt_cv_path_NM
4710 else
4711 # Didn't find any BSD compatible name lister, look for dumpbin.
4712 if test -n "$DUMPBIN"; then :
4713 # Let the user override the test.
4714 else
4715 if test -n "$ac_tool_prefix"; then
4716 for ac_prog in dumpbin "link -dump"
4717 do
4718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_DUMPBIN+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$DUMPBIN"; then
4726 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 fi
4744 fi
4745 DUMPBIN=$ac_cv_prog_DUMPBIN
4746 if test -n "$DUMPBIN"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4748 $as_echo "$DUMPBIN" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754
4755 test -n "$DUMPBIN" && break
4756 done
4757 fi
4758 if test -z "$DUMPBIN"; then
4759 ac_ct_DUMPBIN=$DUMPBIN
4760 for ac_prog in dumpbin "link -dump"
4761 do
4762 # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$ac_ct_DUMPBIN"; then
4770 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787 fi
4788 fi
4789 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4790 if test -n "$ac_ct_DUMPBIN"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4792 $as_echo "$ac_ct_DUMPBIN" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797
4798
4799 test -n "$ac_ct_DUMPBIN" && break
4800 done
4801
4802 if test "x$ac_ct_DUMPBIN" = x; then
4803 DUMPBIN=":"
4804 else
4805 case $cross_compiling:$ac_tool_warned in
4806 yes:)
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4809 ac_tool_warned=yes ;;
4810 esac
4811 DUMPBIN=$ac_ct_DUMPBIN
4812 fi
4813 fi
4814
4815 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4816 *COFF*)
4817 DUMPBIN="$DUMPBIN -symbols -headers"
4818 ;;
4819 *)
4820 DUMPBIN=:
4821 ;;
4822 esac
4823 fi
4824
4825 if test : != "$DUMPBIN"; then
4826 NM=$DUMPBIN
4827 fi
4828 fi
4829 test -z "$NM" && NM=nm
4830
4831
4832
4833
4834
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4837 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4838 if ${lt_cv_nm_interface+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 lt_cv_nm_interface="BSD nm"
4842 echo "int some_variable = 0;" > conftest.$ac_ext
4843 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4844 (eval "$ac_compile" 2>conftest.err)
4845 cat conftest.err >&5
4846 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4847 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4848 cat conftest.err >&5
4849 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4850 cat conftest.out >&5
4851 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4852 lt_cv_nm_interface="MS dumpbin"
4853 fi
4854 rm -f conftest*
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4857 $as_echo "$lt_cv_nm_interface" >&6; }
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4860 $as_echo_n "checking whether ln -s works... " >&6; }
4861 LN_S=$as_ln_s
4862 if test "$LN_S" = "ln -s"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864 $as_echo "yes" >&6; }
4865 else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4867 $as_echo "no, using $LN_S" >&6; }
4868 fi
4869
4870 # find the maximum length of command line arguments
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4872 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4873 if ${lt_cv_sys_max_cmd_len+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 i=0
4877 teststring=ABCD
4878
4879 case $build_os in
4880 msdosdjgpp*)
4881 # On DJGPP, this test can blow up pretty badly due to problems in libc
4882 # (any single argument exceeding 2000 bytes causes a buffer overrun
4883 # during glob expansion). Even if it were fixed, the result of this
4884 # check would be larger than it should be.
4885 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4886 ;;
4887
4888 gnu*)
4889 # Under GNU Hurd, this test is not required because there is
4890 # no limit to the length of command line arguments.
4891 # Libtool will interpret -1 as no limit whatsoever
4892 lt_cv_sys_max_cmd_len=-1;
4893 ;;
4894
4895 cygwin* | mingw* | cegcc*)
4896 # On Win9x/ME, this test blows up -- it succeeds, but takes
4897 # about 5 minutes as the teststring grows exponentially.
4898 # Worse, since 9x/ME are not pre-emptively multitasking,
4899 # you end up with a "frozen" computer, even though with patience
4900 # the test eventually succeeds (with a max line length of 256k).
4901 # Instead, let's just punt: use the minimum linelength reported by
4902 # all of the supported platforms: 8192 (on NT/2K/XP).
4903 lt_cv_sys_max_cmd_len=8192;
4904 ;;
4905
4906 mint*)
4907 # On MiNT this can take a long time and run out of memory.
4908 lt_cv_sys_max_cmd_len=8192;
4909 ;;
4910
4911 amigaos*)
4912 # On AmigaOS with pdksh, this test takes hours, literally.
4913 # So we just punt and use a minimum line length of 8192.
4914 lt_cv_sys_max_cmd_len=8192;
4915 ;;
4916
4917 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4918 # This has been around since 386BSD, at least. Likely further.
4919 if test -x /sbin/sysctl; then
4920 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4921 elif test -x /usr/sbin/sysctl; then
4922 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4923 else
4924 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4925 fi
4926 # And add a safety zone
4927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4929 ;;
4930
4931 interix*)
4932 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4933 lt_cv_sys_max_cmd_len=196608
4934 ;;
4935
4936 os2*)
4937 # The test takes a long time on OS/2.
4938 lt_cv_sys_max_cmd_len=8192
4939 ;;
4940
4941 osf*)
4942 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4943 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4944 # nice to cause kernel panics so lets avoid the loop below.
4945 # First set a reasonable default.
4946 lt_cv_sys_max_cmd_len=16384
4947 #
4948 if test -x /sbin/sysconfig; then
4949 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4950 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4951 esac
4952 fi
4953 ;;
4954 sco3.2v5*)
4955 lt_cv_sys_max_cmd_len=102400
4956 ;;
4957 sysv5* | sco5v6* | sysv4.2uw2*)
4958 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4959 if test -n "$kargmax"; then
4960 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4961 else
4962 lt_cv_sys_max_cmd_len=32768
4963 fi
4964 ;;
4965 *)
4966 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4967 if test -n "$lt_cv_sys_max_cmd_len" && \
4968 test undefined != "$lt_cv_sys_max_cmd_len"; then
4969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4971 else
4972 # Make teststring a little bigger before we do anything with it.
4973 # a 1K string should be a reasonable start.
4974 for i in 1 2 3 4 5 6 7 8; do
4975 teststring=$teststring$teststring
4976 done
4977 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4978 # If test is not a shell built-in, we'll probably end up computing a
4979 # maximum length that is only half of the actual maximum length, but
4980 # we can't tell.
4981 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4982 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4983 test 17 != "$i" # 1/2 MB should be enough
4984 do
4985 i=`expr $i + 1`
4986 teststring=$teststring$teststring
4987 done
4988 # Only check the string length outside the loop.
4989 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4990 teststring=
4991 # Add a significant safety factor because C++ compilers can tack on
4992 # massive amounts of additional arguments before passing them to the
4993 # linker. It appears as though 1/2 is a usable value.
4994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4995 fi
4996 ;;
4997 esac
4998
4999 fi
5000
5001 if test -n "$lt_cv_sys_max_cmd_len"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5003 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5006 $as_echo "none" >&6; }
5007 fi
5008 max_cmd_len=$lt_cv_sys_max_cmd_len
5009
5010
5011
5012
5013
5014
5015 : ${CP="cp -f"}
5016 : ${MV="mv -f"}
5017 : ${RM="rm -f"}
5018
5019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5020 lt_unset=unset
5021 else
5022 lt_unset=false
5023 fi
5024
5025
5026
5027
5028
5029 # test EBCDIC or ASCII
5030 case `echo X|tr X '\101'` in
5031 A) # ASCII based system
5032 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5033 lt_SP2NL='tr \040 \012'
5034 lt_NL2SP='tr \015\012 \040\040'
5035 ;;
5036 *) # EBCDIC based system
5037 lt_SP2NL='tr \100 \n'
5038 lt_NL2SP='tr \r\n \100\100'
5039 ;;
5040 esac
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5051 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5052 if ${lt_cv_to_host_file_cmd+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 case $host in
5056 *-*-mingw* )
5057 case $build in
5058 *-*-mingw* ) # actually msys
5059 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5060 ;;
5061 *-*-cygwin* )
5062 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5063 ;;
5064 * ) # otherwise, assume *nix
5065 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5066 ;;
5067 esac
5068 ;;
5069 *-*-cygwin* )
5070 case $build in
5071 *-*-mingw* ) # actually msys
5072 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5073 ;;
5074 *-*-cygwin* )
5075 lt_cv_to_host_file_cmd=func_convert_file_noop
5076 ;;
5077 * ) # otherwise, assume *nix
5078 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5079 ;;
5080 esac
5081 ;;
5082 * ) # unhandled hosts (and "normal" native builds)
5083 lt_cv_to_host_file_cmd=func_convert_file_noop
5084 ;;
5085 esac
5086
5087 fi
5088
5089 to_host_file_cmd=$lt_cv_to_host_file_cmd
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5091 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5092
5093
5094
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5098 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5099 if ${lt_cv_to_tool_file_cmd+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 #assume ordinary cross tools, or native build.
5103 lt_cv_to_tool_file_cmd=func_convert_file_noop
5104 case $host in
5105 *-*-mingw* )
5106 case $build in
5107 *-*-mingw* ) # actually msys
5108 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5109 ;;
5110 esac
5111 ;;
5112 esac
5113
5114 fi
5115
5116 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5118 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5119
5120
5121
5122
5123
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5125 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5126 if ${lt_cv_ld_reload_flag+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 lt_cv_ld_reload_flag='-r'
5130 fi
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5132 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5133 reload_flag=$lt_cv_ld_reload_flag
5134 case $reload_flag in
5135 "" | " "*) ;;
5136 *) reload_flag=" $reload_flag" ;;
5137 esac
5138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5139 case $host_os in
5140 cygwin* | mingw* | pw32* | cegcc*)
5141 if test yes != "$GCC"; then
5142 reload_cmds=false
5143 fi
5144 ;;
5145 darwin*)
5146 if test yes = "$GCC"; then
5147 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5148 else
5149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5150 fi
5151 ;;
5152 esac
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 if test -n "$ac_tool_prefix"; then
5163 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5164 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_OBJDUMP+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$OBJDUMP"; then
5171 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 OBJDUMP=$ac_cv_prog_OBJDUMP
5191 if test -n "$OBJDUMP"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5193 $as_echo "$OBJDUMP" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200 fi
5201 if test -z "$ac_cv_prog_OBJDUMP"; then
5202 ac_ct_OBJDUMP=$OBJDUMP
5203 # Extract the first word of "objdump", so it can be a program name with args.
5204 set dummy objdump; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$ac_ct_OBJDUMP"; then
5211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5231 if test -n "$ac_ct_OBJDUMP"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5233 $as_echo "$ac_ct_OBJDUMP" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239 if test "x$ac_ct_OBJDUMP" = x; then
5240 OBJDUMP="false"
5241 else
5242 case $cross_compiling:$ac_tool_warned in
5243 yes:)
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246 ac_tool_warned=yes ;;
5247 esac
5248 OBJDUMP=$ac_ct_OBJDUMP
5249 fi
5250 else
5251 OBJDUMP="$ac_cv_prog_OBJDUMP"
5252 fi
5253
5254 test -z "$OBJDUMP" && OBJDUMP=objdump
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5265 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5266 if ${lt_cv_deplibs_check_method+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 lt_cv_file_magic_cmd='$MAGIC_CMD'
5270 lt_cv_file_magic_test_file=
5271 lt_cv_deplibs_check_method='unknown'
5272 # Need to set the preceding variable on all platforms that support
5273 # interlibrary dependencies.
5274 # 'none' -- dependencies not supported.
5275 # 'unknown' -- same as none, but documents that we really don't know.
5276 # 'pass_all' -- all dependencies passed with no checks.
5277 # 'test_compile' -- check by making test program.
5278 # 'file_magic [[regex]]' -- check by looking for files in library path
5279 # that responds to the $file_magic_cmd with a given extended regex.
5280 # If you have 'file' or equivalent on your system and you're not sure
5281 # whether 'pass_all' will *always* work, you probably want this one.
5282
5283 case $host_os in
5284 aix[4-9]*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288 beos*)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
5291
5292 bsdi[45]*)
5293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5294 lt_cv_file_magic_cmd='/usr/bin/file -L'
5295 lt_cv_file_magic_test_file=/shlib/libc.so
5296 ;;
5297
5298 cygwin*)
5299 # func_win32_libid is a shell function defined in ltmain.sh
5300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5301 lt_cv_file_magic_cmd='func_win32_libid'
5302 ;;
5303
5304 mingw* | pw32*)
5305 # Base MSYS/MinGW do not provide the 'file' command needed by
5306 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5307 # unless we find 'file', for example because we are cross-compiling.
5308 if ( file / ) >/dev/null 2>&1; then
5309 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5310 lt_cv_file_magic_cmd='func_win32_libid'
5311 else
5312 # Keep this pattern in sync with the one in func_win32_libid.
5313 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5314 lt_cv_file_magic_cmd='$OBJDUMP -f'
5315 fi
5316 ;;
5317
5318 cegcc*)
5319 # use the weaker test based on 'objdump'. See mingw*.
5320 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5321 lt_cv_file_magic_cmd='$OBJDUMP -f'
5322 ;;
5323
5324 darwin* | rhapsody*)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327
5328 freebsd* | dragonfly*)
5329 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5330 case $host_cpu in
5331 i*86 )
5332 # Not sure whether the presence of OpenBSD here was a mistake.
5333 # Let's accept both of them until this is cleared up.
5334 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5335 lt_cv_file_magic_cmd=/usr/bin/file
5336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5337 ;;
5338 esac
5339 else
5340 lt_cv_deplibs_check_method=pass_all
5341 fi
5342 ;;
5343
5344 haiku*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348 hpux10.20* | hpux11*)
5349 lt_cv_file_magic_cmd=/usr/bin/file
5350 case $host_cpu in
5351 ia64*)
5352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5353 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5354 ;;
5355 hppa*64*)
5356 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]'
5357 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5358 ;;
5359 *)
5360 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5361 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5362 ;;
5363 esac
5364 ;;
5365
5366 interix[3-9]*)
5367 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5369 ;;
5370
5371 irix5* | irix6* | nonstopux*)
5372 case $LD in
5373 *-32|*"-32 ") libmagic=32-bit;;
5374 *-n32|*"-n32 ") libmagic=N32;;
5375 *-64|*"-64 ") libmagic=64-bit;;
5376 *) libmagic=never-match;;
5377 esac
5378 lt_cv_deplibs_check_method=pass_all
5379 ;;
5380
5381 # This must be glibc/ELF.
5382 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5383 lt_cv_deplibs_check_method=pass_all
5384 ;;
5385
5386 netbsd*)
5387 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5389 else
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5391 fi
5392 ;;
5393
5394 newos6*)
5395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5396 lt_cv_file_magic_cmd=/usr/bin/file
5397 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5398 ;;
5399
5400 *nto* | *qnx*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403
5404 openbsd* | bitrig*)
5405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5407 else
5408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5409 fi
5410 ;;
5411
5412 osf3* | osf4* | osf5*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
5416 rdos*)
5417 lt_cv_deplibs_check_method=pass_all
5418 ;;
5419
5420 solaris*)
5421 lt_cv_deplibs_check_method=pass_all
5422 ;;
5423
5424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427
5428 sysv4 | sysv4.3*)
5429 case $host_vendor in
5430 motorola)
5431 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]'
5432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5433 ;;
5434 ncr)
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
5437 sequent)
5438 lt_cv_file_magic_cmd='/bin/file'
5439 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5440 ;;
5441 sni)
5442 lt_cv_file_magic_cmd='/bin/file'
5443 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5444 lt_cv_file_magic_test_file=/lib/libc.so
5445 ;;
5446 siemens)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
5449 pc)
5450 lt_cv_deplibs_check_method=pass_all
5451 ;;
5452 esac
5453 ;;
5454
5455 tpf*)
5456 lt_cv_deplibs_check_method=pass_all
5457 ;;
5458 os2*)
5459 lt_cv_deplibs_check_method=pass_all
5460 ;;
5461 esac
5462
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5465 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5466
5467 file_magic_glob=
5468 want_nocaseglob=no
5469 if test "$build" = "$host"; then
5470 case $host_os in
5471 mingw* | pw32*)
5472 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5473 want_nocaseglob=yes
5474 else
5475 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5476 fi
5477 ;;
5478 esac
5479 fi
5480
5481 file_magic_cmd=$lt_cv_file_magic_cmd
5482 deplibs_check_method=$lt_cv_deplibs_check_method
5483 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 if test -n "$ac_tool_prefix"; then
5507 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5508 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_DLLTOOL+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$DLLTOOL"; then
5515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5527 fi
5528 done
5529 done
5530 IFS=$as_save_IFS
5531
5532 fi
5533 fi
5534 DLLTOOL=$ac_cv_prog_DLLTOOL
5535 if test -n "$DLLTOOL"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5537 $as_echo "$DLLTOOL" >&6; }
5538 else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5541 fi
5542
5543
5544 fi
5545 if test -z "$ac_cv_prog_DLLTOOL"; then
5546 ac_ct_DLLTOOL=$DLLTOOL
5547 # Extract the first word of "dlltool", so it can be a program name with args.
5548 set dummy dlltool; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if test -n "$ac_ct_DLLTOOL"; then
5555 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568 done
5569 done
5570 IFS=$as_save_IFS
5571
5572 fi
5573 fi
5574 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5575 if test -n "$ac_ct_DLLTOOL"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5577 $as_echo "$ac_ct_DLLTOOL" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5581 fi
5582
5583 if test "x$ac_ct_DLLTOOL" = x; then
5584 DLLTOOL="false"
5585 else
5586 case $cross_compiling:$ac_tool_warned in
5587 yes:)
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590 ac_tool_warned=yes ;;
5591 esac
5592 DLLTOOL=$ac_ct_DLLTOOL
5593 fi
5594 else
5595 DLLTOOL="$ac_cv_prog_DLLTOOL"
5596 fi
5597
5598 test -z "$DLLTOOL" && DLLTOOL=dlltool
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5610 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5611 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 lt_cv_sharedlib_from_linklib_cmd='unknown'
5615
5616 case $host_os in
5617 cygwin* | mingw* | pw32* | cegcc*)
5618 # two different shell functions defined in ltmain.sh;
5619 # decide which one to use based on capabilities of $DLLTOOL
5620 case `$DLLTOOL --help 2>&1` in
5621 *--identify-strict*)
5622 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5623 ;;
5624 *)
5625 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5626 ;;
5627 esac
5628 ;;
5629 *)
5630 # fallback: assume linklib IS sharedlib
5631 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5632 ;;
5633 esac
5634
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5637 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5638 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5639 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5640
5641
5642
5643
5644
5645
5646
5647
5648 if test -n "$ac_tool_prefix"; then
5649 for ac_prog in ar
5650 do
5651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_AR+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$AR"; then
5659 ac_cv_prog_AR="$AR" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 AR=$ac_cv_prog_AR
5679 if test -n "$AR"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5681 $as_echo "$AR" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687
5688 test -n "$AR" && break
5689 done
5690 fi
5691 if test -z "$AR"; then
5692 ac_ct_AR=$AR
5693 for ac_prog in ar
5694 do
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$ac_ct_AR"; then
5703 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_ac_ct_AR="$ac_prog"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716 done
5717 done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5723 if test -n "$ac_ct_AR"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5725 $as_echo "$ac_ct_AR" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732 test -n "$ac_ct_AR" && break
5733 done
5734
5735 if test "x$ac_ct_AR" = x; then
5736 AR="false"
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739 yes:)
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742 ac_tool_warned=yes ;;
5743 esac
5744 AR=$ac_ct_AR
5745 fi
5746 fi
5747
5748 : ${AR=ar}
5749 : ${AR_FLAGS=cru}
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5762 $as_echo_n "checking for archiver @FILE support... " >&6; }
5763 if ${lt_cv_ar_at_file+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 lt_cv_ar_at_file=no
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769
5770 int
5771 main ()
5772 {
5773
5774 ;
5775 return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_compile "$LINENO"; then :
5779 echo conftest.$ac_objext > conftest.lst
5780 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5782 (eval $lt_ar_try) 2>&5
5783 ac_status=$?
5784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5785 test $ac_status = 0; }
5786 if test 0 -eq "$ac_status"; then
5787 # Ensure the archiver fails upon bogus file names.
5788 rm -f conftest.$ac_objext libconftest.a
5789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5790 (eval $lt_ar_try) 2>&5
5791 ac_status=$?
5792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5793 test $ac_status = 0; }
5794 if test 0 -ne "$ac_status"; then
5795 lt_cv_ar_at_file=@
5796 fi
5797 fi
5798 rm -f conftest.* libconftest.a
5799
5800 fi
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802
5803 fi
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5805 $as_echo "$lt_cv_ar_at_file" >&6; }
5806
5807 if test no = "$lt_cv_ar_at_file"; then
5808 archiver_list_spec=
5809 else
5810 archiver_list_spec=$lt_cv_ar_at_file
5811 fi
5812
5813
5814
5815
5816
5817
5818
5819 if test -n "$ac_tool_prefix"; then
5820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5821 set dummy ${ac_tool_prefix}strip; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if ${ac_cv_prog_STRIP+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 if test -n "$STRIP"; then
5828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 break 2
5840 fi
5841 done
5842 done
5843 IFS=$as_save_IFS
5844
5845 fi
5846 fi
5847 STRIP=$ac_cv_prog_STRIP
5848 if test -n "$STRIP"; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5850 $as_echo "$STRIP" >&6; }
5851 else
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5854 fi
5855
5856
5857 fi
5858 if test -z "$ac_cv_prog_STRIP"; then
5859 ac_ct_STRIP=$STRIP
5860 # Extract the first word of "strip", so it can be a program name with args.
5861 set dummy strip; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 if test -n "$ac_ct_STRIP"; then
5868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_ac_ct_STRIP="strip"
5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881 done
5882 done
5883 IFS=$as_save_IFS
5884
5885 fi
5886 fi
5887 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5888 if test -n "$ac_ct_STRIP"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5890 $as_echo "$ac_ct_STRIP" >&6; }
5891 else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5894 fi
5895
5896 if test "x$ac_ct_STRIP" = x; then
5897 STRIP=":"
5898 else
5899 case $cross_compiling:$ac_tool_warned in
5900 yes:)
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5903 ac_tool_warned=yes ;;
5904 esac
5905 STRIP=$ac_ct_STRIP
5906 fi
5907 else
5908 STRIP="$ac_cv_prog_STRIP"
5909 fi
5910
5911 test -z "$STRIP" && STRIP=:
5912
5913
5914
5915
5916
5917
5918 if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_prog_RANLIB+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 if test -n "$RANLIB"; then
5927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940 done
5941 done
5942 IFS=$as_save_IFS
5943
5944 fi
5945 fi
5946 RANLIB=$ac_cv_prog_RANLIB
5947 if test -n "$RANLIB"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5949 $as_echo "$RANLIB" >&6; }
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5953 fi
5954
5955
5956 fi
5957 if test -z "$ac_cv_prog_RANLIB"; then
5958 ac_ct_RANLIB=$RANLIB
5959 # Extract the first word of "ranlib", so it can be a program name with args.
5960 set dummy ranlib; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$ac_ct_RANLIB"; then
5967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976 ac_cv_prog_ac_ct_RANLIB="ranlib"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5987 if test -n "$ac_ct_RANLIB"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5989 $as_echo "$ac_ct_RANLIB" >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5993 fi
5994
5995 if test "x$ac_ct_RANLIB" = x; then
5996 RANLIB=":"
5997 else
5998 case $cross_compiling:$ac_tool_warned in
5999 yes:)
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002 ac_tool_warned=yes ;;
6003 esac
6004 RANLIB=$ac_ct_RANLIB
6005 fi
6006 else
6007 RANLIB="$ac_cv_prog_RANLIB"
6008 fi
6009
6010 test -z "$RANLIB" && RANLIB=:
6011
6012
6013
6014
6015
6016
6017 # Determine commands to create old-style static archives.
6018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6019 old_postinstall_cmds='chmod 644 $oldlib'
6020 old_postuninstall_cmds=
6021
6022 if test -n "$RANLIB"; then
6023 case $host_os in
6024 bitrig* | openbsd*)
6025 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6026 ;;
6027 *)
6028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6029 ;;
6030 esac
6031 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6032 fi
6033
6034 case $host_os in
6035 darwin*)
6036 lock_old_archive_extraction=yes ;;
6037 *)
6038 lock_old_archive_extraction=no ;;
6039 esac
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
6078
6079 # If no C compiler was specified, use CC.
6080 LTCC=${LTCC-"$CC"}
6081
6082 # If no C compiler flags were specified, use CFLAGS.
6083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6084
6085 # Allow CC to be a program name with arguments.
6086 compiler=$CC
6087
6088
6089 # Check for command to grab the raw symbol name followed by C symbol from nm.
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6091 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6092 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095
6096 # These are sane defaults that work on at least a few old systems.
6097 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6098
6099 # Character class describing NM global symbol codes.
6100 symcode='[BCDEGRST]'
6101
6102 # Regexp to match symbols that can be accessed directly from C.
6103 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6104
6105 # Define system-specific variables.
6106 case $host_os in
6107 aix*)
6108 symcode='[BCDT]'
6109 ;;
6110 cygwin* | mingw* | pw32* | cegcc*)
6111 symcode='[ABCDGISTW]'
6112 ;;
6113 hpux*)
6114 if test ia64 = "$host_cpu"; then
6115 symcode='[ABCDEGRST]'
6116 fi
6117 ;;
6118 irix* | nonstopux*)
6119 symcode='[BCDEGRST]'
6120 ;;
6121 osf*)
6122 symcode='[BCDEGQRST]'
6123 ;;
6124 solaris*)
6125 symcode='[BDRT]'
6126 ;;
6127 sco3.2v5*)
6128 symcode='[DT]'
6129 ;;
6130 sysv4.2uw2*)
6131 symcode='[DT]'
6132 ;;
6133 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6134 symcode='[ABDT]'
6135 ;;
6136 sysv4)
6137 symcode='[DFNSTU]'
6138 ;;
6139 esac
6140
6141 # If we're using GNU nm, then use its standard symbol codes.
6142 case `$NM -V 2>&1` in
6143 *GNU* | *'with BFD'*)
6144 symcode='[ABCDGIRSTW]' ;;
6145 esac
6146
6147 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6148 # Gets list of data symbols to import.
6149 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6150 # Adjust the below global symbol transforms to fixup imported variables.
6151 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6152 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6153 lt_c_name_lib_hook="\
6154 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6155 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6156 else
6157 # Disable hooks by default.
6158 lt_cv_sys_global_symbol_to_import=
6159 lt_cdecl_hook=
6160 lt_c_name_hook=
6161 lt_c_name_lib_hook=
6162 fi
6163
6164 # Transform an extracted symbol line into a proper C declaration.
6165 # Some systems (esp. on ia64) link data and code symbols differently,
6166 # so use this general approach.
6167 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6168 $lt_cdecl_hook\
6169 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6170 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6171
6172 # Transform an extracted symbol line into symbol name and symbol address
6173 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6174 $lt_c_name_hook\
6175 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6176 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6177
6178 # Transform an extracted symbol line into symbol name with lib prefix and
6179 # symbol address.
6180 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6181 $lt_c_name_lib_hook\
6182 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6183 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6184 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6185
6186 # Handle CRLF in mingw tool chain
6187 opt_cr=
6188 case $build_os in
6189 mingw*)
6190 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6191 ;;
6192 esac
6193
6194 # Try without a prefix underscore, then with it.
6195 for ac_symprfx in "" "_"; do
6196
6197 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6198 symxfrm="\\1 $ac_symprfx\\2 \\2"
6199
6200 # Write the raw and C identifiers.
6201 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6202 # Fake it for dumpbin and say T for any non-static function,
6203 # D for any global variable and I for any imported variable.
6204 # Also find C++ and __fastcall symbols from MSVC++,
6205 # which start with @ or ?.
6206 lt_cv_sys_global_symbol_pipe="$AWK '"\
6207 " {last_section=section; section=\$ 3};"\
6208 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6209 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6210 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6211 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6212 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6213 " \$ 0!~/External *\|/{next};"\
6214 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6215 " {if(hide[section]) next};"\
6216 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6217 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6218 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6219 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6220 " ' prfx=^$ac_symprfx"
6221 else
6222 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6223 fi
6224 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6225
6226 # Check to see that the pipe works correctly.
6227 pipe_works=no
6228
6229 rm -f conftest*
6230 cat > conftest.$ac_ext <<_LT_EOF
6231 #ifdef __cplusplus
6232 extern "C" {
6233 #endif
6234 char nm_test_var;
6235 void nm_test_func(void);
6236 void nm_test_func(void){}
6237 #ifdef __cplusplus
6238 }
6239 #endif
6240 int main(){nm_test_var='a';nm_test_func();return(0);}
6241 _LT_EOF
6242
6243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6244 (eval $ac_compile) 2>&5
6245 ac_status=$?
6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; }; then
6248 # Now try to grab the symbols.
6249 nlist=conftest.nm
6250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6251 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6252 ac_status=$?
6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254 test $ac_status = 0; } && test -s "$nlist"; then
6255 # Try sorting and uniquifying the output.
6256 if sort "$nlist" | uniq > "$nlist"T; then
6257 mv -f "$nlist"T "$nlist"
6258 else
6259 rm -f "$nlist"T
6260 fi
6261
6262 # Make sure that we snagged all the symbols we need.
6263 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6264 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6265 cat <<_LT_EOF > conftest.$ac_ext
6266 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6267 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6268 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6269 relocations are performed -- see ld's documentation on pseudo-relocs. */
6270 # define LT_DLSYM_CONST
6271 #elif defined __osf__
6272 /* This system does not cope well with relocations in const data. */
6273 # define LT_DLSYM_CONST
6274 #else
6275 # define LT_DLSYM_CONST const
6276 #endif
6277
6278 #ifdef __cplusplus
6279 extern "C" {
6280 #endif
6281
6282 _LT_EOF
6283 # Now generate the symbol file.
6284 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6285
6286 cat <<_LT_EOF >> conftest.$ac_ext
6287
6288 /* The mapping between symbol names and symbols. */
6289 LT_DLSYM_CONST struct {
6290 const char *name;
6291 void *address;
6292 }
6293 lt__PROGRAM__LTX_preloaded_symbols[] =
6294 {
6295 { "@PROGRAM@", (void *) 0 },
6296 _LT_EOF
6297 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6298 cat <<\_LT_EOF >> conftest.$ac_ext
6299 {0, (void *) 0}
6300 };
6301
6302 /* This works around a problem in FreeBSD linker */
6303 #ifdef FREEBSD_WORKAROUND
6304 static const void *lt_preloaded_setup() {
6305 return lt__PROGRAM__LTX_preloaded_symbols;
6306 }
6307 #endif
6308
6309 #ifdef __cplusplus
6310 }
6311 #endif
6312 _LT_EOF
6313 # Now try linking the two files.
6314 mv conftest.$ac_objext conftstm.$ac_objext
6315 lt_globsym_save_LIBS=$LIBS
6316 lt_globsym_save_CFLAGS=$CFLAGS
6317 LIBS=conftstm.$ac_objext
6318 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6320 (eval $ac_link) 2>&5
6321 ac_status=$?
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6324 pipe_works=yes
6325 fi
6326 LIBS=$lt_globsym_save_LIBS
6327 CFLAGS=$lt_globsym_save_CFLAGS
6328 else
6329 echo "cannot find nm_test_func in $nlist" >&5
6330 fi
6331 else
6332 echo "cannot find nm_test_var in $nlist" >&5
6333 fi
6334 else
6335 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6336 fi
6337 else
6338 echo "$progname: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 fi
6341 rm -rf conftest* conftst*
6342
6343 # Do not use the global_symbol_pipe unless it works.
6344 if test yes = "$pipe_works"; then
6345 break
6346 else
6347 lt_cv_sys_global_symbol_pipe=
6348 fi
6349 done
6350
6351 fi
6352
6353 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6354 lt_cv_sys_global_symbol_to_cdecl=
6355 fi
6356 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6358 $as_echo "failed" >&6; }
6359 else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6361 $as_echo "ok" >&6; }
6362 fi
6363
6364 # Response file support.
6365 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6366 nm_file_list_spec='@'
6367 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6368 nm_file_list_spec='@'
6369 fi
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
6406
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6408 $as_echo_n "checking for sysroot... " >&6; }
6409
6410 # Check whether --with-sysroot was given.
6411 if test "${with_sysroot+set}" = set; then :
6412 withval=$with_sysroot;
6413 else
6414 with_sysroot=no
6415 fi
6416
6417
6418 lt_sysroot=
6419 case $with_sysroot in #(
6420 yes)
6421 if test yes = "$GCC"; then
6422 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6423 fi
6424 ;; #(
6425 /*)
6426 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6427 ;; #(
6428 no|'')
6429 ;; #(
6430 *)
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6432 $as_echo "$with_sysroot" >&6; }
6433 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6434 ;;
6435 esac
6436
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6438 $as_echo "${lt_sysroot:-no}" >&6; }
6439
6440
6441
6442
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6445 $as_echo_n "checking for a working dd... " >&6; }
6446 if ${ac_cv_path_lt_DD+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 printf 0123456789abcdef0123456789abcdef >conftest.i
6450 cat conftest.i conftest.i >conftest2.i
6451 : ${lt_DD:=$DD}
6452 if test -z "$lt_DD"; then
6453 ac_path_lt_DD_found=false
6454 # Loop through the user's path and test for each of PROGNAME-LIST
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_prog in dd; do
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6463 as_fn_executable_p "$ac_path_lt_DD" || continue
6464 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6465 cmp -s conftest.i conftest.out \
6466 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6467 fi
6468 $ac_path_lt_DD_found && break 3
6469 done
6470 done
6471 done
6472 IFS=$as_save_IFS
6473 if test -z "$ac_cv_path_lt_DD"; then
6474 :
6475 fi
6476 else
6477 ac_cv_path_lt_DD=$lt_DD
6478 fi
6479
6480 rm -f conftest.i conftest2.i conftest.out
6481 fi
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6483 $as_echo "$ac_cv_path_lt_DD" >&6; }
6484
6485
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6487 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6488 if ${lt_cv_truncate_bin+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 printf 0123456789abcdef0123456789abcdef >conftest.i
6492 cat conftest.i conftest.i >conftest2.i
6493 lt_cv_truncate_bin=
6494 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6495 cmp -s conftest.i conftest.out \
6496 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6497 fi
6498 rm -f conftest.i conftest2.i conftest.out
6499 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6500 fi
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6502 $as_echo "$lt_cv_truncate_bin" >&6; }
6503
6504
6505
6506
6507
6508
6509 # Check whether --enable-libtool-lock was given.
6510 if test "${enable_libtool_lock+set}" = set; then :
6511 enableval=$enable_libtool_lock;
6512 fi
6513
6514 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6515
6516 # Some flags need to be propagated to the compiler or linker for good
6517 # libtool support.
6518 case $host in
6519 ia64-*-hpux*)
6520 # Find out what ABI is being produced by ac_compile, and set mode
6521 # options accordingly.
6522 echo 'int i;' > conftest.$ac_ext
6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524 (eval $ac_compile) 2>&5
6525 ac_status=$?
6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; }; then
6528 case `/usr/bin/file conftest.$ac_objext` in
6529 *ELF-32*)
6530 HPUX_IA64_MODE=32
6531 ;;
6532 *ELF-64*)
6533 HPUX_IA64_MODE=64
6534 ;;
6535 esac
6536 fi
6537 rm -rf conftest*
6538 ;;
6539 *-*-irix6*)
6540 # Find out what ABI is being produced by ac_compile, and set linker
6541 # options accordingly.
6542 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544 (eval $ac_compile) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 if test yes = "$lt_cv_prog_gnu_ld"; then
6549 case `/usr/bin/file conftest.$ac_objext` in
6550 *32-bit*)
6551 LD="${LD-ld} -melf32bsmip"
6552 ;;
6553 *N32*)
6554 LD="${LD-ld} -melf32bmipn32"
6555 ;;
6556 *64-bit*)
6557 LD="${LD-ld} -melf64bmip"
6558 ;;
6559 esac
6560 else
6561 case `/usr/bin/file conftest.$ac_objext` in
6562 *32-bit*)
6563 LD="${LD-ld} -32"
6564 ;;
6565 *N32*)
6566 LD="${LD-ld} -n32"
6567 ;;
6568 *64-bit*)
6569 LD="${LD-ld} -64"
6570 ;;
6571 esac
6572 fi
6573 fi
6574 rm -rf conftest*
6575 ;;
6576
6577 mips64*-*linux*)
6578 # Find out what ABI is being produced by ac_compile, and set linker
6579 # options accordingly.
6580 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6582 (eval $ac_compile) 2>&5
6583 ac_status=$?
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; }; then
6586 emul=elf
6587 case `/usr/bin/file conftest.$ac_objext` in
6588 *32-bit*)
6589 emul="${emul}32"
6590 ;;
6591 *64-bit*)
6592 emul="${emul}64"
6593 ;;
6594 esac
6595 case `/usr/bin/file conftest.$ac_objext` in
6596 *MSB*)
6597 emul="${emul}btsmip"
6598 ;;
6599 *LSB*)
6600 emul="${emul}ltsmip"
6601 ;;
6602 esac
6603 case `/usr/bin/file conftest.$ac_objext` in
6604 *N32*)
6605 emul="${emul}n32"
6606 ;;
6607 esac
6608 LD="${LD-ld} -m $emul"
6609 fi
6610 rm -rf conftest*
6611 ;;
6612
6613 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6614 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6615 # Find out what ABI is being produced by ac_compile, and set linker
6616 # options accordingly. Note that the listed cases only cover the
6617 # situations where additional linker options are needed (such as when
6618 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6619 # vice versa); the common cases where no linker options are needed do
6620 # not appear in the list.
6621 echo 'int i;' > conftest.$ac_ext
6622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6623 (eval $ac_compile) 2>&5
6624 ac_status=$?
6625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626 test $ac_status = 0; }; then
6627 case `/usr/bin/file conftest.o` in
6628 *32-bit*)
6629 case $host in
6630 x86_64-*kfreebsd*-gnu)
6631 LD="${LD-ld} -m elf_i386_fbsd"
6632 ;;
6633 x86_64-*linux*)
6634 case `/usr/bin/file conftest.o` in
6635 *x86-64*)
6636 LD="${LD-ld} -m elf32_x86_64"
6637 ;;
6638 *)
6639 LD="${LD-ld} -m elf_i386"
6640 ;;
6641 esac
6642 ;;
6643 powerpc64le-*linux*)
6644 LD="${LD-ld} -m elf32lppclinux"
6645 ;;
6646 powerpc64-*linux*)
6647 LD="${LD-ld} -m elf32ppclinux"
6648 ;;
6649 s390x-*linux*)
6650 LD="${LD-ld} -m elf_s390"
6651 ;;
6652 sparc64-*linux*)
6653 LD="${LD-ld} -m elf32_sparc"
6654 ;;
6655 esac
6656 ;;
6657 *64-bit*)
6658 case $host in
6659 x86_64-*kfreebsd*-gnu)
6660 LD="${LD-ld} -m elf_x86_64_fbsd"
6661 ;;
6662 x86_64-*linux*)
6663 LD="${LD-ld} -m elf_x86_64"
6664 ;;
6665 powerpcle-*linux*)
6666 LD="${LD-ld} -m elf64lppc"
6667 ;;
6668 powerpc-*linux*)
6669 LD="${LD-ld} -m elf64ppc"
6670 ;;
6671 s390*-*linux*|s390*-*tpf*)
6672 LD="${LD-ld} -m elf64_s390"
6673 ;;
6674 sparc*-*linux*)
6675 LD="${LD-ld} -m elf64_sparc"
6676 ;;
6677 esac
6678 ;;
6679 esac
6680 fi
6681 rm -rf conftest*
6682 ;;
6683
6684 *-*-sco3.2v5*)
6685 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6686 SAVE_CFLAGS=$CFLAGS
6687 CFLAGS="$CFLAGS -belf"
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6689 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6690 if ${lt_cv_cc_needs_belf+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 ac_ext=c
6694 ac_cpp='$CPP $CPPFLAGS'
6695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6698
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701
6702 int
6703 main ()
6704 {
6705
6706 ;
6707 return 0;
6708 }
6709 _ACEOF
6710 if ac_fn_c_try_link "$LINENO"; then :
6711 lt_cv_cc_needs_belf=yes
6712 else
6713 lt_cv_cc_needs_belf=no
6714 fi
6715 rm -f core conftest.err conftest.$ac_objext \
6716 conftest$ac_exeext conftest.$ac_ext
6717 ac_ext=c
6718 ac_cpp='$CPP $CPPFLAGS'
6719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6722
6723 fi
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6725 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6726 if test yes != "$lt_cv_cc_needs_belf"; then
6727 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6728 CFLAGS=$SAVE_CFLAGS
6729 fi
6730 ;;
6731 *-*solaris*)
6732 # Find out what ABI is being produced by ac_compile, and set linker
6733 # options accordingly.
6734 echo 'int i;' > conftest.$ac_ext
6735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6736 (eval $ac_compile) 2>&5
6737 ac_status=$?
6738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739 test $ac_status = 0; }; then
6740 case `/usr/bin/file conftest.o` in
6741 *64-bit*)
6742 case $lt_cv_prog_gnu_ld in
6743 yes*)
6744 case $host in
6745 i?86-*-solaris*|x86_64-*-solaris*)
6746 LD="${LD-ld} -m elf_x86_64"
6747 ;;
6748 sparc*-*-solaris*)
6749 LD="${LD-ld} -m elf64_sparc"
6750 ;;
6751 esac
6752 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6753 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6754 LD=${LD-ld}_sol2
6755 fi
6756 ;;
6757 *)
6758 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6759 LD="${LD-ld} -64"
6760 fi
6761 ;;
6762 esac
6763 ;;
6764 esac
6765 fi
6766 rm -rf conftest*
6767 ;;
6768 esac
6769
6770 need_locks=$enable_libtool_lock
6771
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}mt; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if test -n "$MANIFEST_TOOL"; then
6781 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6801 if test -n "$MANIFEST_TOOL"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6803 $as_echo "$MANIFEST_TOOL" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809
6810 fi
6811 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6812 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6813 # Extract the first word of "mt", so it can be a program name with args.
6814 set dummy mt; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 if test -n "$ac_ct_MANIFEST_TOOL"; then
6821 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6841 if test -n "$ac_ct_MANIFEST_TOOL"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6843 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6850 MANIFEST_TOOL=":"
6851 else
6852 case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6859 fi
6860 else
6861 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6862 fi
6863
6864 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6866 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6867 if ${lt_cv_path_mainfest_tool+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 lt_cv_path_mainfest_tool=no
6871 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6872 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6873 cat conftest.err >&5
6874 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6875 lt_cv_path_mainfest_tool=yes
6876 fi
6877 rm -f conftest*
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6880 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6881 if test yes != "$lt_cv_path_mainfest_tool"; then
6882 MANIFEST_TOOL=:
6883 fi
6884
6885
6886
6887
6888
6889
6890 case $host_os in
6891 rhapsody* | darwin*)
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$DSYMUTIL"; then
6901 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914 done
6915 done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6921 if test -n "$DSYMUTIL"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6923 $as_echo "$DSYMUTIL" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929
6930 fi
6931 if test -z "$ac_cv_prog_DSYMUTIL"; then
6932 ac_ct_DSYMUTIL=$DSYMUTIL
6933 # Extract the first word of "dsymutil", so it can be a program name with args.
6934 set dummy dsymutil; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 if test -n "$ac_ct_DSYMUTIL"; then
6941 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6961 if test -n "$ac_ct_DSYMUTIL"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6963 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969 if test "x$ac_ct_DSYMUTIL" = x; then
6970 DSYMUTIL=":"
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978 DSYMUTIL=$ac_ct_DSYMUTIL
6979 fi
6980 else
6981 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6982 fi
6983
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_NMEDIT+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 if test -n "$NMEDIT"; then
6993 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 NMEDIT=$ac_cv_prog_NMEDIT
7013 if test -n "$NMEDIT"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7015 $as_echo "$NMEDIT" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7019 fi
7020
7021
7022 fi
7023 if test -z "$ac_cv_prog_NMEDIT"; then
7024 ac_ct_NMEDIT=$NMEDIT
7025 # Extract the first word of "nmedit", so it can be a program name with args.
7026 set dummy nmedit; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 if test -n "$ac_ct_NMEDIT"; then
7033 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046 done
7047 done
7048 IFS=$as_save_IFS
7049
7050 fi
7051 fi
7052 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7053 if test -n "$ac_ct_NMEDIT"; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7055 $as_echo "$ac_ct_NMEDIT" >&6; }
7056 else
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060
7061 if test "x$ac_ct_NMEDIT" = x; then
7062 NMEDIT=":"
7063 else
7064 case $cross_compiling:$ac_tool_warned in
7065 yes:)
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7068 ac_tool_warned=yes ;;
7069 esac
7070 NMEDIT=$ac_ct_NMEDIT
7071 fi
7072 else
7073 NMEDIT="$ac_cv_prog_NMEDIT"
7074 fi
7075
7076 if test -n "$ac_tool_prefix"; then
7077 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_LIPO+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$LIPO"; then
7085 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 LIPO=$ac_cv_prog_LIPO
7105 if test -n "$LIPO"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7107 $as_echo "$LIPO" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113
7114 fi
7115 if test -z "$ac_cv_prog_LIPO"; then
7116 ac_ct_LIPO=$LIPO
7117 # Extract the first word of "lipo", so it can be a program name with args.
7118 set dummy lipo; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 if test -n "$ac_ct_LIPO"; then
7125 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_ac_ct_LIPO="lipo"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7145 if test -n "$ac_ct_LIPO"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7147 $as_echo "$ac_ct_LIPO" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153 if test "x$ac_ct_LIPO" = x; then
7154 LIPO=":"
7155 else
7156 case $cross_compiling:$ac_tool_warned in
7157 yes:)
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160 ac_tool_warned=yes ;;
7161 esac
7162 LIPO=$ac_ct_LIPO
7163 fi
7164 else
7165 LIPO="$ac_cv_prog_LIPO"
7166 fi
7167
7168 if test -n "$ac_tool_prefix"; then
7169 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7170 set dummy ${ac_tool_prefix}otool; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_OTOOL+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 if test -n "$OTOOL"; then
7177 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 OTOOL=$ac_cv_prog_OTOOL
7197 if test -n "$OTOOL"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7199 $as_echo "$OTOOL" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205
7206 fi
7207 if test -z "$ac_cv_prog_OTOOL"; then
7208 ac_ct_OTOOL=$OTOOL
7209 # Extract the first word of "otool", so it can be a program name with args.
7210 set dummy otool; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 if test -n "$ac_ct_OTOOL"; then
7217 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_ac_ct_OTOOL="otool"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230 done
7231 done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7237 if test -n "$ac_ct_OTOOL"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7239 $as_echo "$ac_ct_OTOOL" >&6; }
7240 else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245 if test "x$ac_ct_OTOOL" = x; then
7246 OTOOL=":"
7247 else
7248 case $cross_compiling:$ac_tool_warned in
7249 yes:)
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252 ac_tool_warned=yes ;;
7253 esac
7254 OTOOL=$ac_ct_OTOOL
7255 fi
7256 else
7257 OTOOL="$ac_cv_prog_OTOOL"
7258 fi
7259
7260 if test -n "$ac_tool_prefix"; then
7261 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_OTOOL64+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 if test -n "$OTOOL64"; then
7269 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282 done
7283 done
7284 IFS=$as_save_IFS
7285
7286 fi
7287 fi
7288 OTOOL64=$ac_cv_prog_OTOOL64
7289 if test -n "$OTOOL64"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7291 $as_echo "$OTOOL64" >&6; }
7292 else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 fi
7299 if test -z "$ac_cv_prog_OTOOL64"; then
7300 ac_ct_OTOOL64=$OTOOL64
7301 # Extract the first word of "otool64", so it can be a program name with args.
7302 set dummy otool64; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 if test -n "$ac_ct_OTOOL64"; then
7309 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_ac_ct_OTOOL64="otool64"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7321 fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7329 if test -n "$ac_ct_OTOOL64"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7331 $as_echo "$ac_ct_OTOOL64" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337 if test "x$ac_ct_OTOOL64" = x; then
7338 OTOOL64=":"
7339 else
7340 case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7345 esac
7346 OTOOL64=$ac_ct_OTOOL64
7347 fi
7348 else
7349 OTOOL64="$ac_cv_prog_OTOOL64"
7350 fi
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
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7379 $as_echo_n "checking for -single_module linker flag... " >&6; }
7380 if ${lt_cv_apple_cc_single_mod+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 lt_cv_apple_cc_single_mod=no
7384 if test -z "$LT_MULTI_MODULE"; then
7385 # By default we will add the -single_module flag. You can override
7386 # by either setting the environment variable LT_MULTI_MODULE
7387 # non-empty at configure time, or by adding -multi_module to the
7388 # link flags.
7389 rm -rf libconftest.dylib*
7390 echo "int foo(void){return 1;}" > conftest.c
7391 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7392 -dynamiclib -Wl,-single_module conftest.c" >&5
7393 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7394 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7395 _lt_result=$?
7396 # If there is a non-empty error log, and "single_module"
7397 # appears in it, assume the flag caused a linker warning
7398 if test -s conftest.err && $GREP single_module conftest.err; then
7399 cat conftest.err >&5
7400 # Otherwise, if the output was created with a 0 exit code from
7401 # the compiler, it worked.
7402 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7403 lt_cv_apple_cc_single_mod=yes
7404 else
7405 cat conftest.err >&5
7406 fi
7407 rm -rf libconftest.dylib*
7408 rm -f conftest.*
7409 fi
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7412 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7413
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7415 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7416 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 lt_cv_ld_exported_symbols_list=no
7420 save_LDFLAGS=$LDFLAGS
7421 echo "_main" > conftest.sym
7422 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425
7426 int
7427 main ()
7428 {
7429
7430 ;
7431 return 0;
7432 }
7433 _ACEOF
7434 if ac_fn_c_try_link "$LINENO"; then :
7435 lt_cv_ld_exported_symbols_list=yes
7436 else
7437 lt_cv_ld_exported_symbols_list=no
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext \
7440 conftest$ac_exeext conftest.$ac_ext
7441 LDFLAGS=$save_LDFLAGS
7442
7443 fi
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7445 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7446
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7448 $as_echo_n "checking for -force_load linker flag... " >&6; }
7449 if ${lt_cv_ld_force_load+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 lt_cv_ld_force_load=no
7453 cat > conftest.c << _LT_EOF
7454 int forced_loaded() { return 2;}
7455 _LT_EOF
7456 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7457 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7458 echo "$AR cru libconftest.a conftest.o" >&5
7459 $AR cru libconftest.a conftest.o 2>&5
7460 echo "$RANLIB libconftest.a" >&5
7461 $RANLIB libconftest.a 2>&5
7462 cat > conftest.c << _LT_EOF
7463 int main() { return 0;}
7464 _LT_EOF
7465 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7466 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7467 _lt_result=$?
7468 if test -s conftest.err && $GREP force_load conftest.err; then
7469 cat conftest.err >&5
7470 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7471 lt_cv_ld_force_load=yes
7472 else
7473 cat conftest.err >&5
7474 fi
7475 rm -f conftest.err libconftest.a conftest conftest.c
7476 rm -rf conftest.dSYM
7477
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7480 $as_echo "$lt_cv_ld_force_load" >&6; }
7481 case $host_os in
7482 rhapsody* | darwin1.[012])
7483 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7484 darwin1.*)
7485 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7486 darwin*) # darwin 5.x on
7487 # if running on 10.5 or later, the deployment target defaults
7488 # to the OS version, if on x86, and 10.4, the deployment
7489 # target defaults to 10.4. Don't you love it?
7490 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7491 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7492 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7493 10.[012][,.]*)
7494 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7495 10.*)
7496 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7497 esac
7498 ;;
7499 esac
7500 if test yes = "$lt_cv_apple_cc_single_mod"; then
7501 _lt_dar_single_mod='$single_module'
7502 fi
7503 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7504 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7505 else
7506 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7507 fi
7508 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7509 _lt_dsymutil='~$DSYMUTIL $lib || :'
7510 else
7511 _lt_dsymutil=
7512 fi
7513 ;;
7514 esac
7515
7516 ac_ext=c
7517 ac_cpp='$CPP $CPPFLAGS'
7518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7522 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7523 # On Suns, sometimes $CPP names a directory.
7524 if test -n "$CPP" && test -d "$CPP"; then
7525 CPP=
7526 fi
7527 if test -z "$CPP"; then
7528 if ${ac_cv_prog_CPP+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 # Double quotes because CPP needs to be expanded
7532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7533 do
7534 ac_preproc_ok=false
7535 for ac_c_preproc_warn_flag in '' yes
7536 do
7537 # Use a header file that comes with gcc, so configuring glibc
7538 # with a fresh cross-compiler works.
7539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7540 # <limits.h> exists even on freestanding compilers.
7541 # On the NeXT, cc -E runs the code through the compiler's parser,
7542 # not just through cpp. "Syntax error" is here to catch this case.
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 #ifdef __STDC__
7546 # include <limits.h>
7547 #else
7548 # include <assert.h>
7549 #endif
7550 Syntax error
7551 _ACEOF
7552 if ac_fn_c_try_cpp "$LINENO"; then :
7553
7554 else
7555 # Broken: fails on valid input.
7556 continue
7557 fi
7558 rm -f conftest.err conftest.i conftest.$ac_ext
7559
7560 # OK, works on sane cases. Now check whether nonexistent headers
7561 # can be detected and how.
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 #include <ac_nonexistent.h>
7565 _ACEOF
7566 if ac_fn_c_try_cpp "$LINENO"; then :
7567 # Broken: success on invalid input.
7568 continue
7569 else
7570 # Passes both tests.
7571 ac_preproc_ok=:
7572 break
7573 fi
7574 rm -f conftest.err conftest.i conftest.$ac_ext
7575
7576 done
7577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7578 rm -f conftest.i conftest.err conftest.$ac_ext
7579 if $ac_preproc_ok; then :
7580 break
7581 fi
7582
7583 done
7584 ac_cv_prog_CPP=$CPP
7585
7586 fi
7587 CPP=$ac_cv_prog_CPP
7588 else
7589 ac_cv_prog_CPP=$CPP
7590 fi
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7592 $as_echo "$CPP" >&6; }
7593 ac_preproc_ok=false
7594 for ac_c_preproc_warn_flag in '' yes
7595 do
7596 # Use a header file that comes with gcc, so configuring glibc
7597 # with a fresh cross-compiler works.
7598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7599 # <limits.h> exists even on freestanding compilers.
7600 # On the NeXT, cc -E runs the code through the compiler's parser,
7601 # not just through cpp. "Syntax error" is here to catch this case.
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #ifdef __STDC__
7605 # include <limits.h>
7606 #else
7607 # include <assert.h>
7608 #endif
7609 Syntax error
7610 _ACEOF
7611 if ac_fn_c_try_cpp "$LINENO"; then :
7612
7613 else
7614 # Broken: fails on valid input.
7615 continue
7616 fi
7617 rm -f conftest.err conftest.i conftest.$ac_ext
7618
7619 # OK, works on sane cases. Now check whether nonexistent headers
7620 # can be detected and how.
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #include <ac_nonexistent.h>
7624 _ACEOF
7625 if ac_fn_c_try_cpp "$LINENO"; then :
7626 # Broken: success on invalid input.
7627 continue
7628 else
7629 # Passes both tests.
7630 ac_preproc_ok=:
7631 break
7632 fi
7633 rm -f conftest.err conftest.i conftest.$ac_ext
7634
7635 done
7636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7637 rm -f conftest.i conftest.err conftest.$ac_ext
7638 if $ac_preproc_ok; then :
7639
7640 else
7641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7643 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7644 See \`config.log' for more details" "$LINENO" 5; }
7645 fi
7646
7647 ac_ext=c
7648 ac_cpp='$CPP $CPPFLAGS'
7649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652
7653
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7655 $as_echo_n "checking for ANSI C header files... " >&6; }
7656 if ${ac_cv_header_stdc+:} false; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7661 #include <stdlib.h>
7662 #include <stdarg.h>
7663 #include <string.h>
7664 #include <float.h>
7665
7666 int
7667 main ()
7668 {
7669
7670 ;
7671 return 0;
7672 }
7673 _ACEOF
7674 if ac_fn_c_try_compile "$LINENO"; then :
7675 ac_cv_header_stdc=yes
7676 else
7677 ac_cv_header_stdc=no
7678 fi
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680
7681 if test $ac_cv_header_stdc = yes; then
7682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 #include <string.h>
7686
7687 _ACEOF
7688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7689 $EGREP "memchr" >/dev/null 2>&1; then :
7690
7691 else
7692 ac_cv_header_stdc=no
7693 fi
7694 rm -f conftest*
7695
7696 fi
7697
7698 if test $ac_cv_header_stdc = yes; then
7699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 #include <stdlib.h>
7703
7704 _ACEOF
7705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7706 $EGREP "free" >/dev/null 2>&1; then :
7707
7708 else
7709 ac_cv_header_stdc=no
7710 fi
7711 rm -f conftest*
7712
7713 fi
7714
7715 if test $ac_cv_header_stdc = yes; then
7716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7717 if test "$cross_compiling" = yes; then :
7718 :
7719 else
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 #include <ctype.h>
7723 #include <stdlib.h>
7724 #if ((' ' & 0x0FF) == 0x020)
7725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7727 #else
7728 # define ISLOWER(c) \
7729 (('a' <= (c) && (c) <= 'i') \
7730 || ('j' <= (c) && (c) <= 'r') \
7731 || ('s' <= (c) && (c) <= 'z'))
7732 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7733 #endif
7734
7735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7736 int
7737 main ()
7738 {
7739 int i;
7740 for (i = 0; i < 256; i++)
7741 if (XOR (islower (i), ISLOWER (i))
7742 || toupper (i) != TOUPPER (i))
7743 return 2;
7744 return 0;
7745 }
7746 _ACEOF
7747 if ac_fn_c_try_run "$LINENO"; then :
7748
7749 else
7750 ac_cv_header_stdc=no
7751 fi
7752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7753 conftest.$ac_objext conftest.beam conftest.$ac_ext
7754 fi
7755
7756 fi
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7759 $as_echo "$ac_cv_header_stdc" >&6; }
7760 if test $ac_cv_header_stdc = yes; then
7761
7762 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7763
7764 fi
7765
7766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7768 inttypes.h stdint.h unistd.h
7769 do :
7770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7771 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7772 "
7773 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7774 cat >>confdefs.h <<_ACEOF
7775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7776 _ACEOF
7777
7778 fi
7779
7780 done
7781
7782
7783 for ac_header in dlfcn.h
7784 do :
7785 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7786 "
7787 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7788 cat >>confdefs.h <<_ACEOF
7789 #define HAVE_DLFCN_H 1
7790 _ACEOF
7791
7792 fi
7793
7794 done
7795
7796
7797
7798
7799
7800 # Set options
7801
7802
7803
7804 enable_dlopen=no
7805
7806
7807 enable_win32_dll=no
7808
7809
7810 # Check whether --enable-shared was given.
7811 if test "${enable_shared+set}" = set; then :
7812 enableval=$enable_shared; p=${PACKAGE-default}
7813 case $enableval in
7814 yes) enable_shared=yes ;;
7815 no) enable_shared=no ;;
7816 *)
7817 enable_shared=no
7818 # Look at the argument we got. We use all the common list separators.
7819 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7820 for pkg in $enableval; do
7821 IFS=$lt_save_ifs
7822 if test "X$pkg" = "X$p"; then
7823 enable_shared=yes
7824 fi
7825 done
7826 IFS=$lt_save_ifs
7827 ;;
7828 esac
7829 else
7830 enable_shared=yes
7831 fi
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841 # Check whether --enable-static was given.
7842 if test "${enable_static+set}" = set; then :
7843 enableval=$enable_static; p=${PACKAGE-default}
7844 case $enableval in
7845 yes) enable_static=yes ;;
7846 no) enable_static=no ;;
7847 *)
7848 enable_static=no
7849 # Look at the argument we got. We use all the common list separators.
7850 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7851 for pkg in $enableval; do
7852 IFS=$lt_save_ifs
7853 if test "X$pkg" = "X$p"; then
7854 enable_static=yes
7855 fi
7856 done
7857 IFS=$lt_save_ifs
7858 ;;
7859 esac
7860 else
7861 enable_static=yes
7862 fi
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873 # Check whether --with-pic was given.
7874 if test "${with_pic+set}" = set; then :
7875 withval=$with_pic; lt_p=${PACKAGE-default}
7876 case $withval in
7877 yes|no) pic_mode=$withval ;;
7878 *)
7879 pic_mode=default
7880 # Look at the argument we got. We use all the common list separators.
7881 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7882 for lt_pkg in $withval; do
7883 IFS=$lt_save_ifs
7884 if test "X$lt_pkg" = "X$lt_p"; then
7885 pic_mode=yes
7886 fi
7887 done
7888 IFS=$lt_save_ifs
7889 ;;
7890 esac
7891 else
7892 pic_mode=default
7893 fi
7894
7895
7896
7897
7898
7899
7900
7901
7902 # Check whether --enable-fast-install was given.
7903 if test "${enable_fast_install+set}" = set; then :
7904 enableval=$enable_fast_install; p=${PACKAGE-default}
7905 case $enableval in
7906 yes) enable_fast_install=yes ;;
7907 no) enable_fast_install=no ;;
7908 *)
7909 enable_fast_install=no
7910 # Look at the argument we got. We use all the common list separators.
7911 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7912 for pkg in $enableval; do
7913 IFS=$lt_save_ifs
7914 if test "X$pkg" = "X$p"; then
7915 enable_fast_install=yes
7916 fi
7917 done
7918 IFS=$lt_save_ifs
7919 ;;
7920 esac
7921 else
7922 enable_fast_install=yes
7923 fi
7924
7925
7926
7927
7928
7929
7930
7931
7932 shared_archive_member_spec=
7933 case $host,$enable_shared in
7934 power*-*-aix[5-9]*,yes)
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7936 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7937
7938 # Check whether --with-aix-soname was given.
7939 if test "${with_aix_soname+set}" = set; then :
7940 withval=$with_aix_soname; case $withval in
7941 aix|svr4|both)
7942 ;;
7943 *)
7944 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7945 ;;
7946 esac
7947 lt_cv_with_aix_soname=$with_aix_soname
7948 else
7949 if ${lt_cv_with_aix_soname+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 lt_cv_with_aix_soname=aix
7953 fi
7954
7955 with_aix_soname=$lt_cv_with_aix_soname
7956 fi
7957
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7959 $as_echo "$with_aix_soname" >&6; }
7960 if test aix != "$with_aix_soname"; then
7961 # For the AIX way of multilib, we name the shared archive member
7962 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7963 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7964 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7965 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7966 if test 64 = "${OBJECT_MODE-32}"; then
7967 shared_archive_member_spec=shr_64
7968 else
7969 shared_archive_member_spec=shr
7970 fi
7971 fi
7972 ;;
7973 *)
7974 with_aix_soname=aix
7975 ;;
7976 esac
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987 # This can be used to rebuild libtool when needed
7988 LIBTOOL_DEPS=$ltmain
7989
7990 # Always use our own libtool.
7991 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8021
8022 test -z "$LN_S" && LN_S="ln -s"
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037 if test -n "${ZSH_VERSION+set}"; then
8038 setopt NO_GLOB_SUBST
8039 fi
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8042 $as_echo_n "checking for objdir... " >&6; }
8043 if ${lt_cv_objdir+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 rm -f .libs 2>/dev/null
8047 mkdir .libs 2>/dev/null
8048 if test -d .libs; then
8049 lt_cv_objdir=.libs
8050 else
8051 # MS-DOS does not allow filenames that begin with a dot.
8052 lt_cv_objdir=_libs
8053 fi
8054 rmdir .libs 2>/dev/null
8055 fi
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8057 $as_echo "$lt_cv_objdir" >&6; }
8058 objdir=$lt_cv_objdir
8059
8060
8061
8062
8063
8064 cat >>confdefs.h <<_ACEOF
8065 #define LT_OBJDIR "$lt_cv_objdir/"
8066 _ACEOF
8067
8068
8069
8070
8071 case $host_os in
8072 aix3*)
8073 # AIX sometimes has problems with the GCC collect2 program. For some
8074 # reason, if we set the COLLECT_NAMES environment variable, the problems
8075 # vanish in a puff of smoke.
8076 if test set != "${COLLECT_NAMES+set}"; then
8077 COLLECT_NAMES=
8078 export COLLECT_NAMES
8079 fi
8080 ;;
8081 esac
8082
8083 # Global variables:
8084 ofile=libtool
8085 can_build_shared=yes
8086
8087 # All known linkers require a '.a' archive for static linking (except MSVC,
8088 # which needs '.lib').
8089 libext=a
8090
8091 with_gnu_ld=$lt_cv_prog_gnu_ld
8092
8093 old_CC=$CC
8094 old_CFLAGS=$CFLAGS
8095
8096 # Set sane defaults for various variables
8097 test -z "$CC" && CC=cc
8098 test -z "$LTCC" && LTCC=$CC
8099 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8100 test -z "$LD" && LD=ld
8101 test -z "$ac_objext" && ac_objext=o
8102
8103 for cc_temp in $compiler""; do
8104 case $cc_temp in
8105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8107 \-*) ;;
8108 *) break;;
8109 esac
8110 done
8111 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8112
8113
8114 # Only perform the check for file, if the check method requires it
8115 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8116 case $deplibs_check_method in
8117 file_magic*)
8118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8120 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8121 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 case $MAGIC_CMD in
8125 [\\/*] | ?:[\\/]*)
8126 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8127 ;;
8128 *)
8129 lt_save_MAGIC_CMD=$MAGIC_CMD
8130 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8132 for ac_dir in $ac_dummy; do
8133 IFS=$lt_save_ifs
8134 test -z "$ac_dir" && ac_dir=.
8135 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8136 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8137 if test -n "$file_magic_test_file"; then
8138 case $deplibs_check_method in
8139 "file_magic "*)
8140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8141 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8143 $EGREP "$file_magic_regex" > /dev/null; then
8144 :
8145 else
8146 cat <<_LT_EOF 1>&2
8147
8148 *** Warning: the command libtool uses to detect shared libraries,
8149 *** $file_magic_cmd, produces output that libtool cannot recognize.
8150 *** The result is that libtool may fail to recognize shared libraries
8151 *** as such. This will affect the creation of libtool libraries that
8152 *** depend on shared libraries, but programs linked with such libtool
8153 *** libraries will work regardless of this problem. Nevertheless, you
8154 *** may want to report the problem to your system manager and/or to
8155 *** bug-libtool@gnu.org
8156
8157 _LT_EOF
8158 fi ;;
8159 esac
8160 fi
8161 break
8162 fi
8163 done
8164 IFS=$lt_save_ifs
8165 MAGIC_CMD=$lt_save_MAGIC_CMD
8166 ;;
8167 esac
8168 fi
8169
8170 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8171 if test -n "$MAGIC_CMD"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8173 $as_echo "$MAGIC_CMD" >&6; }
8174 else
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8177 fi
8178
8179
8180
8181
8182
8183 if test -z "$lt_cv_path_MAGIC_CMD"; then
8184 if test -n "$ac_tool_prefix"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8186 $as_echo_n "checking for file... " >&6; }
8187 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 case $MAGIC_CMD in
8191 [\\/*] | ?:[\\/]*)
8192 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8193 ;;
8194 *)
8195 lt_save_MAGIC_CMD=$MAGIC_CMD
8196 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8198 for ac_dir in $ac_dummy; do
8199 IFS=$lt_save_ifs
8200 test -z "$ac_dir" && ac_dir=.
8201 if test -f "$ac_dir/file"; then
8202 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8203 if test -n "$file_magic_test_file"; then
8204 case $deplibs_check_method in
8205 "file_magic "*)
8206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8207 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8209 $EGREP "$file_magic_regex" > /dev/null; then
8210 :
8211 else
8212 cat <<_LT_EOF 1>&2
8213
8214 *** Warning: the command libtool uses to detect shared libraries,
8215 *** $file_magic_cmd, produces output that libtool cannot recognize.
8216 *** The result is that libtool may fail to recognize shared libraries
8217 *** as such. This will affect the creation of libtool libraries that
8218 *** depend on shared libraries, but programs linked with such libtool
8219 *** libraries will work regardless of this problem. Nevertheless, you
8220 *** may want to report the problem to your system manager and/or to
8221 *** bug-libtool@gnu.org
8222
8223 _LT_EOF
8224 fi ;;
8225 esac
8226 fi
8227 break
8228 fi
8229 done
8230 IFS=$lt_save_ifs
8231 MAGIC_CMD=$lt_save_MAGIC_CMD
8232 ;;
8233 esac
8234 fi
8235
8236 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8237 if test -n "$MAGIC_CMD"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8239 $as_echo "$MAGIC_CMD" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 fi
8244
8245
8246 else
8247 MAGIC_CMD=:
8248 fi
8249 fi
8250
8251 fi
8252 ;;
8253 esac
8254
8255 # Use C for the default configuration in the libtool script
8256
8257 lt_save_CC=$CC
8258 ac_ext=c
8259 ac_cpp='$CPP $CPPFLAGS'
8260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8263
8264
8265 # Source file extension for C test sources.
8266 ac_ext=c
8267
8268 # Object file extension for compiled C test sources.
8269 objext=o
8270 objext=$objext
8271
8272 # Code to be used in simple compile tests
8273 lt_simple_compile_test_code="int some_variable = 0;"
8274
8275 # Code to be used in simple link tests
8276 lt_simple_link_test_code='int main(){return(0);}'
8277
8278
8279
8280
8281
8282
8283
8284 # If no C compiler was specified, use CC.
8285 LTCC=${LTCC-"$CC"}
8286
8287 # If no C compiler flags were specified, use CFLAGS.
8288 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8289
8290 # Allow CC to be a program name with arguments.
8291 compiler=$CC
8292
8293 # Save the default compiler, since it gets overwritten when the other
8294 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8295 compiler_DEFAULT=$CC
8296
8297 # save warnings/boilerplate of simple test code
8298 ac_outfile=conftest.$ac_objext
8299 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8300 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8301 _lt_compiler_boilerplate=`cat conftest.err`
8302 $RM conftest*
8303
8304 ac_outfile=conftest.$ac_objext
8305 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8306 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8307 _lt_linker_boilerplate=`cat conftest.err`
8308 $RM -r conftest*
8309
8310
8311 if test -n "$compiler"; then
8312
8313 lt_prog_compiler_no_builtin_flag=
8314
8315 if test yes = "$GCC"; then
8316 case $cc_basename in
8317 nvcc*)
8318 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8319 *)
8320 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8321 esac
8322
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8324 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8325 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 lt_cv_prog_compiler_rtti_exceptions=no
8329 ac_outfile=conftest.$ac_objext
8330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8332 # Insert the option either (1) after the last *FLAGS variable, or
8333 # (2) before a word containing "conftest.", or (3) at the end.
8334 # Note that $ac_compile itself does not contain backslashes and begins
8335 # with a dollar sign (not a hyphen), so the echo should work correctly.
8336 # The option is referenced via a variable to avoid confusing sed.
8337 lt_compile=`echo "$ac_compile" | $SED \
8338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340 -e 's:$: $lt_compiler_flag:'`
8341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8342 (eval "$lt_compile" 2>conftest.err)
8343 ac_status=$?
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 if (exit $ac_status) && test -s "$ac_outfile"; then
8347 # The compiler can only warn and ignore the option if not recognized
8348 # So say no if there are warnings other than the usual output.
8349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8352 lt_cv_prog_compiler_rtti_exceptions=yes
8353 fi
8354 fi
8355 $RM conftest*
8356
8357 fi
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8359 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8360
8361 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8362 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8363 else
8364 :
8365 fi
8366
8367 fi
8368
8369
8370
8371
8372
8373
8374 lt_prog_compiler_wl=
8375 lt_prog_compiler_pic=
8376 lt_prog_compiler_static=
8377
8378
8379 if test yes = "$GCC"; then
8380 lt_prog_compiler_wl='-Wl,'
8381 lt_prog_compiler_static='-static'
8382
8383 case $host_os in
8384 aix*)
8385 # All AIX code is PIC.
8386 if test ia64 = "$host_cpu"; then
8387 # AIX 5 now supports IA64 processor
8388 lt_prog_compiler_static='-Bstatic'
8389 fi
8390 lt_prog_compiler_pic='-fPIC'
8391 ;;
8392
8393 amigaos*)
8394 case $host_cpu in
8395 powerpc)
8396 # see comment about AmigaOS4 .so support
8397 lt_prog_compiler_pic='-fPIC'
8398 ;;
8399 m68k)
8400 # FIXME: we need at least 68020 code to build shared libraries, but
8401 # adding the '-m68020' flag to GCC prevents building anything better,
8402 # like '-m68040'.
8403 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8404 ;;
8405 esac
8406 ;;
8407
8408 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8409 # PIC is the default for these OSes.
8410 ;;
8411
8412 mingw* | cygwin* | pw32* | os2* | cegcc*)
8413 # This hack is so that the source file can tell whether it is being
8414 # built for inclusion in a dll (and should export symbols for example).
8415 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8416 # (--disable-auto-import) libraries
8417 lt_prog_compiler_pic='-DDLL_EXPORT'
8418 case $host_os in
8419 os2*)
8420 lt_prog_compiler_static='$wl-static'
8421 ;;
8422 esac
8423 ;;
8424
8425 darwin* | rhapsody*)
8426 # PIC is the default on this platform
8427 # Common symbols not allowed in MH_DYLIB files
8428 lt_prog_compiler_pic='-fno-common'
8429 ;;
8430
8431 haiku*)
8432 # PIC is the default for Haiku.
8433 # The "-static" flag exists, but is broken.
8434 lt_prog_compiler_static=
8435 ;;
8436
8437 hpux*)
8438 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8439 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8440 # sets the default TLS model and affects inlining.
8441 case $host_cpu in
8442 hppa*64*)
8443 # +Z the default
8444 ;;
8445 *)
8446 lt_prog_compiler_pic='-fPIC'
8447 ;;
8448 esac
8449 ;;
8450
8451 interix[3-9]*)
8452 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8453 # Instead, we relocate shared libraries at runtime.
8454 ;;
8455
8456 msdosdjgpp*)
8457 # Just because we use GCC doesn't mean we suddenly get shared libraries
8458 # on systems that don't support them.
8459 lt_prog_compiler_can_build_shared=no
8460 enable_shared=no
8461 ;;
8462
8463 *nto* | *qnx*)
8464 # QNX uses GNU C++, but need to define -shared option too, otherwise
8465 # it will coredump.
8466 lt_prog_compiler_pic='-fPIC -shared'
8467 ;;
8468
8469 sysv4*MP*)
8470 if test -d /usr/nec; then
8471 lt_prog_compiler_pic=-Kconform_pic
8472 fi
8473 ;;
8474
8475 *)
8476 lt_prog_compiler_pic='-fPIC'
8477 ;;
8478 esac
8479
8480 case $cc_basename in
8481 nvcc*) # Cuda Compiler Driver 2.2
8482 lt_prog_compiler_wl='-Xlinker '
8483 if test -n "$lt_prog_compiler_pic"; then
8484 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8485 fi
8486 ;;
8487 esac
8488 else
8489 # PORTME Check for flag to pass linker flags through the system compiler.
8490 case $host_os in
8491 aix*)
8492 lt_prog_compiler_wl='-Wl,'
8493 if test ia64 = "$host_cpu"; then
8494 # AIX 5 now supports IA64 processor
8495 lt_prog_compiler_static='-Bstatic'
8496 else
8497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8498 fi
8499 ;;
8500
8501 darwin* | rhapsody*)
8502 # PIC is the default on this platform
8503 # Common symbols not allowed in MH_DYLIB files
8504 lt_prog_compiler_pic='-fno-common'
8505 case $cc_basename in
8506 nagfor*)
8507 # NAG Fortran compiler
8508 lt_prog_compiler_wl='-Wl,-Wl,,'
8509 lt_prog_compiler_pic='-PIC'
8510 lt_prog_compiler_static='-Bstatic'
8511 ;;
8512 esac
8513 ;;
8514
8515 mingw* | cygwin* | pw32* | os2* | cegcc*)
8516 # This hack is so that the source file can tell whether it is being
8517 # built for inclusion in a dll (and should export symbols for example).
8518 lt_prog_compiler_pic='-DDLL_EXPORT'
8519 case $host_os in
8520 os2*)
8521 lt_prog_compiler_static='$wl-static'
8522 ;;
8523 esac
8524 ;;
8525
8526 hpux9* | hpux10* | hpux11*)
8527 lt_prog_compiler_wl='-Wl,'
8528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8529 # not for PA HP-UX.
8530 case $host_cpu in
8531 hppa*64*|ia64*)
8532 # +Z the default
8533 ;;
8534 *)
8535 lt_prog_compiler_pic='+Z'
8536 ;;
8537 esac
8538 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8539 lt_prog_compiler_static='$wl-a ${wl}archive'
8540 ;;
8541
8542 irix5* | irix6* | nonstopux*)
8543 lt_prog_compiler_wl='-Wl,'
8544 # PIC (with -KPIC) is the default.
8545 lt_prog_compiler_static='-non_shared'
8546 ;;
8547
8548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8549 case $cc_basename in
8550 # old Intel for x86_64, which still supported -KPIC.
8551 ecc*)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-KPIC'
8554 lt_prog_compiler_static='-static'
8555 ;;
8556 # icc used to be incompatible with GCC.
8557 # ICC 10 doesn't accept -KPIC any more.
8558 icc* | ifort*)
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_pic='-fPIC'
8561 lt_prog_compiler_static='-static'
8562 ;;
8563 # Lahey Fortran 8.1.
8564 lf95*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_pic='--shared'
8567 lt_prog_compiler_static='--static'
8568 ;;
8569 nagfor*)
8570 # NAG Fortran compiler
8571 lt_prog_compiler_wl='-Wl,-Wl,,'
8572 lt_prog_compiler_pic='-PIC'
8573 lt_prog_compiler_static='-Bstatic'
8574 ;;
8575 tcc*)
8576 # Fabrice Bellard et al's Tiny C Compiler
8577 lt_prog_compiler_wl='-Wl,'
8578 lt_prog_compiler_pic='-fPIC'
8579 lt_prog_compiler_static='-static'
8580 ;;
8581 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8582 # Portland Group compilers (*not* the Pentium gcc compiler,
8583 # which looks to be a dead project)
8584 lt_prog_compiler_wl='-Wl,'
8585 lt_prog_compiler_pic='-fpic'
8586 lt_prog_compiler_static='-Bstatic'
8587 ;;
8588 ccc*)
8589 lt_prog_compiler_wl='-Wl,'
8590 # All Alpha code is PIC.
8591 lt_prog_compiler_static='-non_shared'
8592 ;;
8593 xl* | bgxl* | bgf* | mpixl*)
8594 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8595 lt_prog_compiler_wl='-Wl,'
8596 lt_prog_compiler_pic='-qpic'
8597 lt_prog_compiler_static='-qstaticlink'
8598 ;;
8599 *)
8600 case `$CC -V 2>&1 | sed 5q` in
8601 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8602 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8603 lt_prog_compiler_pic='-KPIC'
8604 lt_prog_compiler_static='-Bstatic'
8605 lt_prog_compiler_wl=''
8606 ;;
8607 *Sun\ F* | *Sun*Fortran*)
8608 lt_prog_compiler_pic='-KPIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 lt_prog_compiler_wl='-Qoption ld '
8611 ;;
8612 *Sun\ C*)
8613 # Sun C 5.9
8614 lt_prog_compiler_pic='-KPIC'
8615 lt_prog_compiler_static='-Bstatic'
8616 lt_prog_compiler_wl='-Wl,'
8617 ;;
8618 *Intel*\ [CF]*Compiler*)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-fPIC'
8621 lt_prog_compiler_static='-static'
8622 ;;
8623 *Portland\ Group*)
8624 lt_prog_compiler_wl='-Wl,'
8625 lt_prog_compiler_pic='-fpic'
8626 lt_prog_compiler_static='-Bstatic'
8627 ;;
8628 esac
8629 ;;
8630 esac
8631 ;;
8632
8633 newsos6)
8634 lt_prog_compiler_pic='-KPIC'
8635 lt_prog_compiler_static='-Bstatic'
8636 ;;
8637
8638 *nto* | *qnx*)
8639 # QNX uses GNU C++, but need to define -shared option too, otherwise
8640 # it will coredump.
8641 lt_prog_compiler_pic='-fPIC -shared'
8642 ;;
8643
8644 osf3* | osf4* | osf5*)
8645 lt_prog_compiler_wl='-Wl,'
8646 # All OSF/1 code is PIC.
8647 lt_prog_compiler_static='-non_shared'
8648 ;;
8649
8650 rdos*)
8651 lt_prog_compiler_static='-non_shared'
8652 ;;
8653
8654 solaris*)
8655 lt_prog_compiler_pic='-KPIC'
8656 lt_prog_compiler_static='-Bstatic'
8657 case $cc_basename in
8658 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8659 lt_prog_compiler_wl='-Qoption ld ';;
8660 *)
8661 lt_prog_compiler_wl='-Wl,';;
8662 esac
8663 ;;
8664
8665 sunos4*)
8666 lt_prog_compiler_wl='-Qoption ld '
8667 lt_prog_compiler_pic='-PIC'
8668 lt_prog_compiler_static='-Bstatic'
8669 ;;
8670
8671 sysv4 | sysv4.2uw2* | sysv4.3*)
8672 lt_prog_compiler_wl='-Wl,'
8673 lt_prog_compiler_pic='-KPIC'
8674 lt_prog_compiler_static='-Bstatic'
8675 ;;
8676
8677 sysv4*MP*)
8678 if test -d /usr/nec; then
8679 lt_prog_compiler_pic='-Kconform_pic'
8680 lt_prog_compiler_static='-Bstatic'
8681 fi
8682 ;;
8683
8684 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-KPIC'
8687 lt_prog_compiler_static='-Bstatic'
8688 ;;
8689
8690 unicos*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_can_build_shared=no
8693 ;;
8694
8695 uts4*)
8696 lt_prog_compiler_pic='-pic'
8697 lt_prog_compiler_static='-Bstatic'
8698 ;;
8699
8700 *)
8701 lt_prog_compiler_can_build_shared=no
8702 ;;
8703 esac
8704 fi
8705
8706 case $host_os in
8707 # For platforms that do not support PIC, -DPIC is meaningless:
8708 *djgpp*)
8709 lt_prog_compiler_pic=
8710 ;;
8711 *)
8712 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8713 ;;
8714 esac
8715
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8717 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8718 if ${lt_cv_prog_compiler_pic+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8724 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8725 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8726
8727 #
8728 # Check to make sure the PIC flag actually works.
8729 #
8730 if test -n "$lt_prog_compiler_pic"; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8732 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8733 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 lt_cv_prog_compiler_pic_works=no
8737 ac_outfile=conftest.$ac_objext
8738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8739 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8740 # Insert the option either (1) after the last *FLAGS variable, or
8741 # (2) before a word containing "conftest.", or (3) at the end.
8742 # Note that $ac_compile itself does not contain backslashes and begins
8743 # with a dollar sign (not a hyphen), so the echo should work correctly.
8744 # The option is referenced via a variable to avoid confusing sed.
8745 lt_compile=`echo "$ac_compile" | $SED \
8746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8748 -e 's:$: $lt_compiler_flag:'`
8749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8750 (eval "$lt_compile" 2>conftest.err)
8751 ac_status=$?
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 if (exit $ac_status) && test -s "$ac_outfile"; then
8755 # The compiler can only warn and ignore the option if not recognized
8756 # So say no if there are warnings other than the usual output.
8757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8759 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8760 lt_cv_prog_compiler_pic_works=yes
8761 fi
8762 fi
8763 $RM conftest*
8764
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8767 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8768
8769 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8770 case $lt_prog_compiler_pic in
8771 "" | " "*) ;;
8772 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8773 esac
8774 else
8775 lt_prog_compiler_pic=
8776 lt_prog_compiler_can_build_shared=no
8777 fi
8778
8779 fi
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791 #
8792 # Check to make sure the static flag actually works.
8793 #
8794 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8796 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8797 if ${lt_cv_prog_compiler_static_works+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 lt_cv_prog_compiler_static_works=no
8801 save_LDFLAGS=$LDFLAGS
8802 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8803 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8804 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8805 # The linker can only warn and ignore the option if not recognized
8806 # So say no if there are warnings
8807 if test -s conftest.err; then
8808 # Append any errors to the config.log.
8809 cat conftest.err 1>&5
8810 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8812 if diff conftest.exp conftest.er2 >/dev/null; then
8813 lt_cv_prog_compiler_static_works=yes
8814 fi
8815 else
8816 lt_cv_prog_compiler_static_works=yes
8817 fi
8818 fi
8819 $RM -r conftest*
8820 LDFLAGS=$save_LDFLAGS
8821
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8824 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8825
8826 if test yes = "$lt_cv_prog_compiler_static_works"; then
8827 :
8828 else
8829 lt_prog_compiler_static=
8830 fi
8831
8832
8833
8834
8835
8836
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8840 if ${lt_cv_prog_compiler_c_o+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 lt_cv_prog_compiler_c_o=no
8844 $RM -r conftest 2>/dev/null
8845 mkdir conftest
8846 cd conftest
8847 mkdir out
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849
8850 lt_compiler_flag="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>out/conftest.err)
8861 ac_status=$?
8862 cat out/conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 then
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler_c_o=yes
8872 fi
8873 fi
8874 chmod u+w . 2>&5
8875 $RM conftest*
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8879 $RM out/* && rmdir out
8880 cd ..
8881 $RM -r conftest
8882 $RM conftest*
8883
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8887
8888
8889
8890
8891
8892
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8894 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8895 if ${lt_cv_prog_compiler_c_o+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 lt_cv_prog_compiler_c_o=no
8899 $RM -r conftest 2>/dev/null
8900 mkdir conftest
8901 cd conftest
8902 mkdir out
8903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904
8905 lt_compiler_flag="-o out/conftest2.$ac_objext"
8906 # Insert the option either (1) after the last *FLAGS variable, or
8907 # (2) before a word containing "conftest.", or (3) at the end.
8908 # Note that $ac_compile itself does not contain backslashes and begins
8909 # with a dollar sign (not a hyphen), so the echo should work correctly.
8910 lt_compile=`echo "$ac_compile" | $SED \
8911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8913 -e 's:$: $lt_compiler_flag:'`
8914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8915 (eval "$lt_compile" 2>out/conftest.err)
8916 ac_status=$?
8917 cat out/conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8920 then
8921 # The compiler can only warn and ignore the option if not recognized
8922 # So say no if there are warnings
8923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8926 lt_cv_prog_compiler_c_o=yes
8927 fi
8928 fi
8929 chmod u+w . 2>&5
8930 $RM conftest*
8931 # SGI C++ compiler will create directory out/ii_files/ for
8932 # template instantiation
8933 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8934 $RM out/* && rmdir out
8935 cd ..
8936 $RM -r conftest
8937 $RM conftest*
8938
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8942
8943
8944
8945
8946 hard_links=nottested
8947 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8948 # do not overwrite the value of need_locks provided by the user
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8950 $as_echo_n "checking if we can lock with hard links... " >&6; }
8951 hard_links=yes
8952 $RM conftest*
8953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8954 touch conftest.a
8955 ln conftest.a conftest.b 2>&5 || hard_links=no
8956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8958 $as_echo "$hard_links" >&6; }
8959 if test no = "$hard_links"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8961 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8962 need_locks=warn
8963 fi
8964 else
8965 need_locks=no
8966 fi
8967
8968
8969
8970
8971
8972
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8974 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8975
8976 runpath_var=
8977 allow_undefined_flag=
8978 always_export_symbols=no
8979 archive_cmds=
8980 archive_expsym_cmds=
8981 compiler_needs_object=no
8982 enable_shared_with_static_runtimes=no
8983 export_dynamic_flag_spec=
8984 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8985 hardcode_automatic=no
8986 hardcode_direct=no
8987 hardcode_direct_absolute=no
8988 hardcode_libdir_flag_spec=
8989 hardcode_libdir_separator=
8990 hardcode_minus_L=no
8991 hardcode_shlibpath_var=unsupported
8992 inherit_rpath=no
8993 link_all_deplibs=unknown
8994 module_cmds=
8995 module_expsym_cmds=
8996 old_archive_from_new_cmds=
8997 old_archive_from_expsyms_cmds=
8998 thread_safe_flag_spec=
8999 whole_archive_flag_spec=
9000 # include_expsyms should be a list of space-separated symbols to be *always*
9001 # included in the symbol list
9002 include_expsyms=
9003 # exclude_expsyms can be an extended regexp of symbols to exclude
9004 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9005 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9006 # as well as any symbol that contains 'd'.
9007 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9008 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9009 # platforms (ab)use it in PIC code, but their linkers get confused if
9010 # the symbol is explicitly referenced. Since portable code cannot
9011 # rely on this symbol name, it's probably fine to never include it in
9012 # preloaded symbol tables.
9013 # Exclude shared library initialization/finalization symbols.
9014 extract_expsyms_cmds=
9015
9016 case $host_os in
9017 cygwin* | mingw* | pw32* | cegcc*)
9018 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9019 # When not using gcc, we currently assume that we are using
9020 # Microsoft Visual C++.
9021 if test yes != "$GCC"; then
9022 with_gnu_ld=no
9023 fi
9024 ;;
9025 interix*)
9026 # we just hope/assume this is gcc and not c89 (= MSVC++)
9027 with_gnu_ld=yes
9028 ;;
9029 openbsd* | bitrig*)
9030 with_gnu_ld=no
9031 ;;
9032 esac
9033
9034 ld_shlibs=yes
9035
9036 # On some targets, GNU ld is compatible enough with the native linker
9037 # that we're better off using the native interface for both.
9038 lt_use_gnu_ld_interface=no
9039 if test yes = "$with_gnu_ld"; then
9040 case $host_os in
9041 aix*)
9042 # The AIX port of GNU ld has always aspired to compatibility
9043 # with the native linker. However, as the warning in the GNU ld
9044 # block says, versions before 2.19.5* couldn't really create working
9045 # shared libraries, regardless of the interface used.
9046 case `$LD -v 2>&1` in
9047 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9048 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9049 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9050 *)
9051 lt_use_gnu_ld_interface=yes
9052 ;;
9053 esac
9054 ;;
9055 *)
9056 lt_use_gnu_ld_interface=yes
9057 ;;
9058 esac
9059 fi
9060
9061 if test yes = "$lt_use_gnu_ld_interface"; then
9062 # If archive_cmds runs LD, not CC, wlarc should be empty
9063 wlarc='$wl'
9064
9065 # Set some defaults for GNU ld with shared library support. These
9066 # are reset later if shared libraries are not supported. Putting them
9067 # here allows them to be overridden if necessary.
9068 runpath_var=LD_RUN_PATH
9069 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9070 export_dynamic_flag_spec='$wl--export-dynamic'
9071 # ancient GNU ld didn't support --whole-archive et. al.
9072 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9073 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9074 else
9075 whole_archive_flag_spec=
9076 fi
9077 supports_anon_versioning=no
9078 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9079 *GNU\ gold*) supports_anon_versioning=yes ;;
9080 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9081 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9082 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9083 *\ 2.11.*) ;; # other 2.11 versions
9084 *) supports_anon_versioning=yes ;;
9085 esac
9086
9087 # See if GNU ld supports shared libraries.
9088 case $host_os in
9089 aix[3-9]*)
9090 # On AIX/PPC, the GNU linker is very broken
9091 if test ia64 != "$host_cpu"; then
9092 ld_shlibs=no
9093 cat <<_LT_EOF 1>&2
9094
9095 *** Warning: the GNU linker, at least up to release 2.19, is reported
9096 *** to be unable to reliably create shared libraries on AIX.
9097 *** Therefore, libtool is disabling shared libraries support. If you
9098 *** really care for shared libraries, you may want to install binutils
9099 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9100 *** You will then need to restart the configuration process.
9101
9102 _LT_EOF
9103 fi
9104 ;;
9105
9106 amigaos*)
9107 case $host_cpu in
9108 powerpc)
9109 # see comment about AmigaOS4 .so support
9110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9111 archive_expsym_cmds=''
9112 ;;
9113 m68k)
9114 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)'
9115 hardcode_libdir_flag_spec='-L$libdir'
9116 hardcode_minus_L=yes
9117 ;;
9118 esac
9119 ;;
9120
9121 beos*)
9122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9123 allow_undefined_flag=unsupported
9124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9125 # support --undefined. This deserves some investigation. FIXME
9126 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9127 else
9128 ld_shlibs=no
9129 fi
9130 ;;
9131
9132 cygwin* | mingw* | pw32* | cegcc*)
9133 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9134 # as there is no search path for DLLs.
9135 hardcode_libdir_flag_spec='-L$libdir'
9136 export_dynamic_flag_spec='$wl--export-all-symbols'
9137 allow_undefined_flag=unsupported
9138 always_export_symbols=no
9139 enable_shared_with_static_runtimes=yes
9140 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'
9141 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9142
9143 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9145 # If the export-symbols file already is a .def file, use it as
9146 # is; otherwise, prepend EXPORTS...
9147 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9148 cp $export_symbols $output_objdir/$soname.def;
9149 else
9150 echo EXPORTS > $output_objdir/$soname.def;
9151 cat $export_symbols >> $output_objdir/$soname.def;
9152 fi~
9153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
9158
9159 haiku*)
9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9161 link_all_deplibs=yes
9162 ;;
9163
9164 os2*)
9165 hardcode_libdir_flag_spec='-L$libdir'
9166 hardcode_minus_L=yes
9167 allow_undefined_flag=unsupported
9168 shrext_cmds=.dll
9169 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9170 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9171 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9172 $ECHO EXPORTS >> $output_objdir/$libname.def~
9173 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9174 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9175 emximp -o $lib $output_objdir/$libname.def'
9176 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9177 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9178 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9179 $ECHO EXPORTS >> $output_objdir/$libname.def~
9180 prefix_cmds="$SED"~
9181 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9182 prefix_cmds="$prefix_cmds -e 1d";
9183 fi~
9184 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9185 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9187 emximp -o $lib $output_objdir/$libname.def'
9188 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9189 enable_shared_with_static_runtimes=yes
9190 ;;
9191
9192 interix[3-9]*)
9193 hardcode_direct=no
9194 hardcode_shlibpath_var=no
9195 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9196 export_dynamic_flag_spec='$wl-E'
9197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9198 # Instead, shared libraries are loaded at an image base (0x10000000 by
9199 # default) and relocated if they conflict, which is a slow very memory
9200 # consuming and fragmenting process. To avoid this, we pick a random,
9201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9202 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9204 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'
9205 ;;
9206
9207 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9208 tmp_diet=no
9209 if test linux-dietlibc = "$host_os"; then
9210 case $cc_basename in
9211 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9212 esac
9213 fi
9214 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9215 && test no = "$tmp_diet"
9216 then
9217 tmp_addflag=' $pic_flag'
9218 tmp_sharedflag='-shared'
9219 case $cc_basename,$host_cpu in
9220 pgcc*) # Portland Group C compiler
9221 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'
9222 tmp_addflag=' $pic_flag'
9223 ;;
9224 pgf77* | pgf90* | pgf95* | pgfortran*)
9225 # Portland Group f77 and f90 compilers
9226 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'
9227 tmp_addflag=' $pic_flag -Mnomain' ;;
9228 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9229 tmp_addflag=' -i_dynamic' ;;
9230 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9231 tmp_addflag=' -i_dynamic -nofor_main' ;;
9232 ifc* | ifort*) # Intel Fortran compiler
9233 tmp_addflag=' -nofor_main' ;;
9234 lf95*) # Lahey Fortran 8.1
9235 whole_archive_flag_spec=
9236 tmp_sharedflag='--shared' ;;
9237 nagfor*) # NAGFOR 5.3
9238 tmp_sharedflag='-Wl,-shared' ;;
9239 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9240 tmp_sharedflag='-qmkshrobj'
9241 tmp_addflag= ;;
9242 nvcc*) # Cuda Compiler Driver 2.2
9243 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'
9244 compiler_needs_object=yes
9245 ;;
9246 esac
9247 case `$CC -V 2>&1 | sed 5q` in
9248 *Sun\ C*) # Sun C 5.9
9249 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'
9250 compiler_needs_object=yes
9251 tmp_sharedflag='-G' ;;
9252 *Sun\ F*) # Sun Fortran 8.3
9253 tmp_sharedflag='-G' ;;
9254 esac
9255 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9256
9257 if test yes = "$supports_anon_versioning"; then
9258 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9260 echo "local: *; };" >> $output_objdir/$libname.ver~
9261 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9262 fi
9263
9264 case $cc_basename in
9265 tcc*)
9266 export_dynamic_flag_spec='-rdynamic'
9267 ;;
9268 xlf* | bgf* | bgxlf* | mpixlf*)
9269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9270 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9271 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9272 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9273 if test yes = "$supports_anon_versioning"; then
9274 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9276 echo "local: *; };" >> $output_objdir/$libname.ver~
9277 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9278 fi
9279 ;;
9280 esac
9281 else
9282 ld_shlibs=no
9283 fi
9284 ;;
9285
9286 netbsd*)
9287 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9288 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9289 wlarc=
9290 else
9291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9292 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9293 fi
9294 ;;
9295
9296 solaris*)
9297 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9298 ld_shlibs=no
9299 cat <<_LT_EOF 1>&2
9300
9301 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9302 *** create shared libraries on Solaris systems. Therefore, libtool
9303 *** is disabling shared libraries support. We urge you to upgrade GNU
9304 *** binutils to release 2.9.1 or newer. Another option is to modify
9305 *** your PATH or compiler configuration so that the native linker is
9306 *** used, and then restart.
9307
9308 _LT_EOF
9309 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9310 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9311 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9312 else
9313 ld_shlibs=no
9314 fi
9315 ;;
9316
9317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9318 case `$LD -v 2>&1` in
9319 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9320 ld_shlibs=no
9321 cat <<_LT_EOF 1>&2
9322
9323 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9324 *** reliably create shared libraries on SCO systems. Therefore, libtool
9325 *** is disabling shared libraries support. We urge you to upgrade GNU
9326 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9327 *** your PATH or compiler configuration so that the native linker is
9328 *** used, and then restart.
9329
9330 _LT_EOF
9331 ;;
9332 *)
9333 # For security reasons, it is highly recommended that you always
9334 # use absolute paths for naming shared libraries, and exclude the
9335 # DT_RUNPATH tag from executables and libraries. But doing so
9336 # requires that you compile everything twice, which is a pain.
9337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9341 else
9342 ld_shlibs=no
9343 fi
9344 ;;
9345 esac
9346 ;;
9347
9348 sunos4*)
9349 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350 wlarc=
9351 hardcode_direct=yes
9352 hardcode_shlibpath_var=no
9353 ;;
9354
9355 *)
9356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9358 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9359 else
9360 ld_shlibs=no
9361 fi
9362 ;;
9363 esac
9364
9365 if test no = "$ld_shlibs"; then
9366 runpath_var=
9367 hardcode_libdir_flag_spec=
9368 export_dynamic_flag_spec=
9369 whole_archive_flag_spec=
9370 fi
9371 else
9372 # PORTME fill in a description of your system's linker (not GNU ld)
9373 case $host_os in
9374 aix3*)
9375 allow_undefined_flag=unsupported
9376 always_export_symbols=yes
9377 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'
9378 # Note: this linker hardcodes the directories in LIBPATH if there
9379 # are no directories specified by -L.
9380 hardcode_minus_L=yes
9381 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9382 # Neither direct hardcoding nor static linking is supported with a
9383 # broken collect2.
9384 hardcode_direct=unsupported
9385 fi
9386 ;;
9387
9388 aix[4-9]*)
9389 if test ia64 = "$host_cpu"; then
9390 # On IA64, the linker does run time linking by default, so we don't
9391 # have to do anything special.
9392 aix_use_runtimelinking=no
9393 exp_sym_flag='-Bexport'
9394 no_entry_flag=
9395 else
9396 # If we're using GNU nm, then we don't want the "-C" option.
9397 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9398 # Without the "-l" option, or with the "-B" option, AIX nm treats
9399 # weak defined symbols like other global defined symbols, whereas
9400 # GNU nm marks them as "W".
9401 # While the 'weak' keyword is ignored in the Export File, we need
9402 # it in the Import File for the 'aix-soname' feature, so we have
9403 # to replace the "-B" option with "-P" for AIX nm.
9404 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9405 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'
9406 else
9407 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'
9408 fi
9409 aix_use_runtimelinking=no
9410
9411 # Test if we are trying to use run time linking or normal
9412 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9413 # have runtime linking enabled, and use it for executables.
9414 # For shared libraries, we enable/disable runtime linking
9415 # depending on the kind of the shared library created -
9416 # when "with_aix_soname,aix_use_runtimelinking" is:
9417 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9418 # "aix,yes" lib.so shared, rtl:yes, for executables
9419 # lib.a static archive
9420 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9421 # lib.a(lib.so.V) shared, rtl:no, for executables
9422 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9423 # lib.a(lib.so.V) shared, rtl:no
9424 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9425 # lib.a static archive
9426 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9427 for ld_flag in $LDFLAGS; do
9428 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9429 aix_use_runtimelinking=yes
9430 break
9431 fi
9432 done
9433 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9434 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9435 # so we don't have lib.a shared libs to link our executables.
9436 # We have to force runtime linking in this case.
9437 aix_use_runtimelinking=yes
9438 LDFLAGS="$LDFLAGS -Wl,-brtl"
9439 fi
9440 ;;
9441 esac
9442
9443 exp_sym_flag='-bexport'
9444 no_entry_flag='-bnoentry'
9445 fi
9446
9447 # When large executables or shared objects are built, AIX ld can
9448 # have problems creating the table of contents. If linking a library
9449 # or program results in "error TOC overflow" add -mminimal-toc to
9450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9452
9453 archive_cmds=''
9454 hardcode_direct=yes
9455 hardcode_direct_absolute=yes
9456 hardcode_libdir_separator=':'
9457 link_all_deplibs=yes
9458 file_list_spec='$wl-f,'
9459 case $with_aix_soname,$aix_use_runtimelinking in
9460 aix,*) ;; # traditional, no import file
9461 svr4,* | *,yes) # use import file
9462 # The Import File defines what to hardcode.
9463 hardcode_direct=no
9464 hardcode_direct_absolute=no
9465 ;;
9466 esac
9467
9468 if test yes = "$GCC"; then
9469 case $host_os in aix4.[012]|aix4.[012].*)
9470 # We only want to do this on AIX 4.2 and lower, the check
9471 # below for broken collect2 doesn't work under 4.3+
9472 collect2name=`$CC -print-prog-name=collect2`
9473 if test -f "$collect2name" &&
9474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9475 then
9476 # We have reworked collect2
9477 :
9478 else
9479 # We have old collect2
9480 hardcode_direct=unsupported
9481 # It fails to find uninstalled libraries when the uninstalled
9482 # path is not listed in the libpath. Setting hardcode_minus_L
9483 # to unsupported forces relinking
9484 hardcode_minus_L=yes
9485 hardcode_libdir_flag_spec='-L$libdir'
9486 hardcode_libdir_separator=
9487 fi
9488 ;;
9489 esac
9490 shared_flag='-shared'
9491 if test yes = "$aix_use_runtimelinking"; then
9492 shared_flag="$shared_flag "'$wl-G'
9493 fi
9494 # Need to ensure runtime linking is disabled for the traditional
9495 # shared library, or the linker may eventually find shared libraries
9496 # /with/ Import File - we do not want to mix them.
9497 shared_flag_aix='-shared'
9498 shared_flag_svr4='-shared $wl-G'
9499 else
9500 # not using gcc
9501 if test ia64 = "$host_cpu"; then
9502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9503 # chokes on -Wl,-G. The following line is correct:
9504 shared_flag='-G'
9505 else
9506 if test yes = "$aix_use_runtimelinking"; then
9507 shared_flag='$wl-G'
9508 else
9509 shared_flag='$wl-bM:SRE'
9510 fi
9511 shared_flag_aix='$wl-bM:SRE'
9512 shared_flag_svr4='$wl-G'
9513 fi
9514 fi
9515
9516 export_dynamic_flag_spec='$wl-bexpall'
9517 # It seems that -bexpall does not export symbols beginning with
9518 # underscore (_), so it is better to generate a list of symbols to export.
9519 always_export_symbols=yes
9520 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9521 # Warning - without using the other runtime loading flags (-brtl),
9522 # -berok will link without error, but may produce a broken library.
9523 allow_undefined_flag='-berok'
9524 # Determine the default libpath from the value encoded in an
9525 # empty executable.
9526 if test set = "${lt_cv_aix_libpath+set}"; then
9527 aix_libpath=$lt_cv_aix_libpath
9528 else
9529 if ${lt_cv_aix_libpath_+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534
9535 int
9536 main ()
9537 {
9538
9539 ;
9540 return 0;
9541 }
9542 _ACEOF
9543 if ac_fn_c_try_link "$LINENO"; then :
9544
9545 lt_aix_libpath_sed='
9546 /Import File Strings/,/^$/ {
9547 /^0/ {
9548 s/^0 *\([^ ]*\) *$/\1/
9549 p
9550 }
9551 }'
9552 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553 # Check for a 64-bit object if we didn't find anything.
9554 if test -z "$lt_cv_aix_libpath_"; then
9555 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9556 fi
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
9560 if test -z "$lt_cv_aix_libpath_"; then
9561 lt_cv_aix_libpath_=/usr/lib:/lib
9562 fi
9563
9564 fi
9565
9566 aix_libpath=$lt_cv_aix_libpath_
9567 fi
9568
9569 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9570 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
9571 else
9572 if test ia64 = "$host_cpu"; then
9573 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9574 allow_undefined_flag="-z nodefs"
9575 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"
9576 else
9577 # Determine the default libpath from the value encoded in an
9578 # empty executable.
9579 if test set = "${lt_cv_aix_libpath+set}"; then
9580 aix_libpath=$lt_cv_aix_libpath
9581 else
9582 if ${lt_cv_aix_libpath_+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9587
9588 int
9589 main ()
9590 {
9591
9592 ;
9593 return 0;
9594 }
9595 _ACEOF
9596 if ac_fn_c_try_link "$LINENO"; then :
9597
9598 lt_aix_libpath_sed='
9599 /Import File Strings/,/^$/ {
9600 /^0/ {
9601 s/^0 *\([^ ]*\) *$/\1/
9602 p
9603 }
9604 }'
9605 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606 # Check for a 64-bit object if we didn't find anything.
9607 if test -z "$lt_cv_aix_libpath_"; then
9608 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9609 fi
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 if test -z "$lt_cv_aix_libpath_"; then
9614 lt_cv_aix_libpath_=/usr/lib:/lib
9615 fi
9616
9617 fi
9618
9619 aix_libpath=$lt_cv_aix_libpath_
9620 fi
9621
9622 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9623 # Warning - without using the other run time loading flags,
9624 # -berok will link without error, but may produce a broken library.
9625 no_undefined_flag=' $wl-bernotok'
9626 allow_undefined_flag=' $wl-berok'
9627 if test yes = "$with_gnu_ld"; then
9628 # We only use this code for GNU lds that support --whole-archive.
9629 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9630 else
9631 # Exported symbols can be pulled into shared objects from archives
9632 whole_archive_flag_spec='$convenience'
9633 fi
9634 archive_cmds_need_lc=yes
9635 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9636 # -brtl affects multiple linker settings, -berok does not and is overridden later
9637 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9638 if test svr4 != "$with_aix_soname"; then
9639 # This is similar to how AIX traditionally builds its shared libraries.
9640 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'
9641 fi
9642 if test aix != "$with_aix_soname"; then
9643 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'
9644 else
9645 # used by -dlpreopen to get the symbols
9646 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9647 fi
9648 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9649 fi
9650 fi
9651 ;;
9652
9653 amigaos*)
9654 case $host_cpu in
9655 powerpc)
9656 # see comment about AmigaOS4 .so support
9657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9658 archive_expsym_cmds=''
9659 ;;
9660 m68k)
9661 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)'
9662 hardcode_libdir_flag_spec='-L$libdir'
9663 hardcode_minus_L=yes
9664 ;;
9665 esac
9666 ;;
9667
9668 bsdi[45]*)
9669 export_dynamic_flag_spec=-rdynamic
9670 ;;
9671
9672 cygwin* | mingw* | pw32* | cegcc*)
9673 # When not using gcc, we currently assume that we are using
9674 # Microsoft Visual C++.
9675 # hardcode_libdir_flag_spec is actually meaningless, as there is
9676 # no search path for DLLs.
9677 case $cc_basename in
9678 cl*)
9679 # Native MSVC
9680 hardcode_libdir_flag_spec=' '
9681 allow_undefined_flag=unsupported
9682 always_export_symbols=yes
9683 file_list_spec='@'
9684 # Tell ltmain to make .lib files, not .a files.
9685 libext=lib
9686 # Tell ltmain to make .dll files, not .so files.
9687 shrext_cmds=.dll
9688 # FIXME: Setting linknames here is a bad hack.
9689 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9690 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9691 cp "$export_symbols" "$output_objdir/$soname.def";
9692 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9693 else
9694 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9695 fi~
9696 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9697 linknames='
9698 # The linker will not automatically build a static lib if we build a DLL.
9699 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9700 enable_shared_with_static_runtimes=yes
9701 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9703 # Don't use ranlib
9704 old_postinstall_cmds='chmod 644 $oldlib'
9705 postlink_cmds='lt_outputfile="@OUTPUT@"~
9706 lt_tool_outputfile="@TOOL_OUTPUT@"~
9707 case $lt_outputfile in
9708 *.exe|*.EXE) ;;
9709 *)
9710 lt_outputfile=$lt_outputfile.exe
9711 lt_tool_outputfile=$lt_tool_outputfile.exe
9712 ;;
9713 esac~
9714 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9715 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9716 $RM "$lt_outputfile.manifest";
9717 fi'
9718 ;;
9719 *)
9720 # Assume MSVC wrapper
9721 hardcode_libdir_flag_spec=' '
9722 allow_undefined_flag=unsupported
9723 # Tell ltmain to make .lib files, not .a files.
9724 libext=lib
9725 # Tell ltmain to make .dll files, not .so files.
9726 shrext_cmds=.dll
9727 # FIXME: Setting linknames here is a bad hack.
9728 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9729 # The linker will automatically build a .lib file if we build a DLL.
9730 old_archive_from_new_cmds='true'
9731 # FIXME: Should let the user specify the lib program.
9732 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9733 enable_shared_with_static_runtimes=yes
9734 ;;
9735 esac
9736 ;;
9737
9738 darwin* | rhapsody*)
9739
9740
9741 archive_cmds_need_lc=no
9742 hardcode_direct=no
9743 hardcode_automatic=yes
9744 hardcode_shlibpath_var=unsupported
9745 if test yes = "$lt_cv_ld_force_load"; then
9746 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\"`'
9747
9748 else
9749 whole_archive_flag_spec=''
9750 fi
9751 link_all_deplibs=yes
9752 allow_undefined_flag=$_lt_dar_allow_undefined
9753 case $cc_basename in
9754 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9755 *) _lt_dar_can_shared=$GCC ;;
9756 esac
9757 if test yes = "$_lt_dar_can_shared"; then
9758 output_verbose_link_cmd=func_echo_all
9759 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9760 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9761 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"
9762 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"
9763
9764 else
9765 ld_shlibs=no
9766 fi
9767
9768 ;;
9769
9770 dgux*)
9771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9772 hardcode_libdir_flag_spec='-L$libdir'
9773 hardcode_shlibpath_var=no
9774 ;;
9775
9776 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9777 # support. Future versions do this automatically, but an explicit c++rt0.o
9778 # does not break anything, and helps significantly (at the cost of a little
9779 # extra space).
9780 freebsd2.2*)
9781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9782 hardcode_libdir_flag_spec='-R$libdir'
9783 hardcode_direct=yes
9784 hardcode_shlibpath_var=no
9785 ;;
9786
9787 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9788 freebsd2.*)
9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_direct=yes
9791 hardcode_minus_L=yes
9792 hardcode_shlibpath_var=no
9793 ;;
9794
9795 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9796 freebsd* | dragonfly*)
9797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9798 hardcode_libdir_flag_spec='-R$libdir'
9799 hardcode_direct=yes
9800 hardcode_shlibpath_var=no
9801 ;;
9802
9803 hpux9*)
9804 if test yes = "$GCC"; then
9805 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'
9806 else
9807 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'
9808 fi
9809 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9810 hardcode_libdir_separator=:
9811 hardcode_direct=yes
9812
9813 # hardcode_minus_L: Not really in the search PATH,
9814 # but as the default location of the library.
9815 hardcode_minus_L=yes
9816 export_dynamic_flag_spec='$wl-E'
9817 ;;
9818
9819 hpux10*)
9820 if test yes,no = "$GCC,$with_gnu_ld"; then
9821 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9822 else
9823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9824 fi
9825 if test no = "$with_gnu_ld"; then
9826 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9827 hardcode_libdir_separator=:
9828 hardcode_direct=yes
9829 hardcode_direct_absolute=yes
9830 export_dynamic_flag_spec='$wl-E'
9831 # hardcode_minus_L: Not really in the search PATH,
9832 # but as the default location of the library.
9833 hardcode_minus_L=yes
9834 fi
9835 ;;
9836
9837 hpux11*)
9838 if test yes,no = "$GCC,$with_gnu_ld"; then
9839 case $host_cpu in
9840 hppa*64*)
9841 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9842 ;;
9843 ia64*)
9844 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9845 ;;
9846 *)
9847 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9848 ;;
9849 esac
9850 else
9851 case $host_cpu in
9852 hppa*64*)
9853 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 ;;
9855 ia64*)
9856 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9857 ;;
9858 *)
9859
9860 # Older versions of the 11.00 compiler do not understand -b yet
9861 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9863 $as_echo_n "checking if $CC understands -b... " >&6; }
9864 if ${lt_cv_prog_compiler__b+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 lt_cv_prog_compiler__b=no
9868 save_LDFLAGS=$LDFLAGS
9869 LDFLAGS="$LDFLAGS -b"
9870 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9871 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9872 # The linker can only warn and ignore the option if not recognized
9873 # So say no if there are warnings
9874 if test -s conftest.err; then
9875 # Append any errors to the config.log.
9876 cat conftest.err 1>&5
9877 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9879 if diff conftest.exp conftest.er2 >/dev/null; then
9880 lt_cv_prog_compiler__b=yes
9881 fi
9882 else
9883 lt_cv_prog_compiler__b=yes
9884 fi
9885 fi
9886 $RM -r conftest*
9887 LDFLAGS=$save_LDFLAGS
9888
9889 fi
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9891 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9892
9893 if test yes = "$lt_cv_prog_compiler__b"; then
9894 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9895 else
9896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9897 fi
9898
9899 ;;
9900 esac
9901 fi
9902 if test no = "$with_gnu_ld"; then
9903 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9904 hardcode_libdir_separator=:
9905
9906 case $host_cpu in
9907 hppa*64*|ia64*)
9908 hardcode_direct=no
9909 hardcode_shlibpath_var=no
9910 ;;
9911 *)
9912 hardcode_direct=yes
9913 hardcode_direct_absolute=yes
9914 export_dynamic_flag_spec='$wl-E'
9915
9916 # hardcode_minus_L: Not really in the search PATH,
9917 # but as the default location of the library.
9918 hardcode_minus_L=yes
9919 ;;
9920 esac
9921 fi
9922 ;;
9923
9924 irix5* | irix6* | nonstopux*)
9925 if test yes = "$GCC"; then
9926 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'
9927 # Try to use the -exported_symbol ld option, if it does not
9928 # work, assume that -exports_file does not work either and
9929 # implicitly export all symbols.
9930 # This should be the same for all languages, so no per-tag cache variable.
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9932 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9933 if ${lt_cv_irix_exported_symbol+:} false; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 save_LDFLAGS=$LDFLAGS
9937 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 int foo (void) { return 0; }
9941 _ACEOF
9942 if ac_fn_c_try_link "$LINENO"; then :
9943 lt_cv_irix_exported_symbol=yes
9944 else
9945 lt_cv_irix_exported_symbol=no
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 LDFLAGS=$save_LDFLAGS
9950 fi
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9952 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9953 if test yes = "$lt_cv_irix_exported_symbol"; then
9954 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'
9955 fi
9956 else
9957 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'
9958 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'
9959 fi
9960 archive_cmds_need_lc='no'
9961 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9962 hardcode_libdir_separator=:
9963 inherit_rpath=yes
9964 link_all_deplibs=yes
9965 ;;
9966
9967 linux*)
9968 case $cc_basename in
9969 tcc*)
9970 # Fabrice Bellard et al's Tiny C Compiler
9971 ld_shlibs=yes
9972 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9973 ;;
9974 esac
9975 ;;
9976
9977 netbsd*)
9978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9980 else
9981 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9982 fi
9983 hardcode_libdir_flag_spec='-R$libdir'
9984 hardcode_direct=yes
9985 hardcode_shlibpath_var=no
9986 ;;
9987
9988 newsos6)
9989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_direct=yes
9991 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9992 hardcode_libdir_separator=:
9993 hardcode_shlibpath_var=no
9994 ;;
9995
9996 *nto* | *qnx*)
9997 ;;
9998
9999 openbsd* | bitrig*)
10000 if test -f /usr/libexec/ld.so; then
10001 hardcode_direct=yes
10002 hardcode_shlibpath_var=no
10003 hardcode_direct_absolute=yes
10004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10006 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10007 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10008 export_dynamic_flag_spec='$wl-E'
10009 else
10010 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10011 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10012 fi
10013 else
10014 ld_shlibs=no
10015 fi
10016 ;;
10017
10018 os2*)
10019 hardcode_libdir_flag_spec='-L$libdir'
10020 hardcode_minus_L=yes
10021 allow_undefined_flag=unsupported
10022 shrext_cmds=.dll
10023 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10024 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10025 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10026 $ECHO EXPORTS >> $output_objdir/$libname.def~
10027 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10028 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10029 emximp -o $lib $output_objdir/$libname.def'
10030 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10031 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10032 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10033 $ECHO EXPORTS >> $output_objdir/$libname.def~
10034 prefix_cmds="$SED"~
10035 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10036 prefix_cmds="$prefix_cmds -e 1d";
10037 fi~
10038 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10039 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10040 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10041 emximp -o $lib $output_objdir/$libname.def'
10042 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10043 enable_shared_with_static_runtimes=yes
10044 ;;
10045
10046 osf3*)
10047 if test yes = "$GCC"; then
10048 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10049 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'
10050 else
10051 allow_undefined_flag=' -expect_unresolved \*'
10052 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'
10053 fi
10054 archive_cmds_need_lc='no'
10055 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10056 hardcode_libdir_separator=:
10057 ;;
10058
10059 osf4* | osf5*) # as osf3* with the addition of -msym flag
10060 if test yes = "$GCC"; then
10061 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10062 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'
10063 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10064 else
10065 allow_undefined_flag=' -expect_unresolved \*'
10066 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'
10067 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~
10068 $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'
10069
10070 # Both c and cxx compiler support -rpath directly
10071 hardcode_libdir_flag_spec='-rpath $libdir'
10072 fi
10073 archive_cmds_need_lc='no'
10074 hardcode_libdir_separator=:
10075 ;;
10076
10077 solaris*)
10078 no_undefined_flag=' -z defs'
10079 if test yes = "$GCC"; then
10080 wlarc='$wl'
10081 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10083 $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'
10084 else
10085 case `$CC -V 2>&1` in
10086 *"Compilers 5.0"*)
10087 wlarc=''
10088 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10090 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10091 ;;
10092 *)
10093 wlarc='$wl'
10094 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10096 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10097 ;;
10098 esac
10099 fi
10100 hardcode_libdir_flag_spec='-R$libdir'
10101 hardcode_shlibpath_var=no
10102 case $host_os in
10103 solaris2.[0-5] | solaris2.[0-5].*) ;;
10104 *)
10105 # The compiler driver will combine and reorder linker options,
10106 # but understands '-z linker_flag'. GCC discards it without '$wl',
10107 # but is careful enough not to reorder.
10108 # Supported since Solaris 2.6 (maybe 2.5.1?)
10109 if test yes = "$GCC"; then
10110 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10111 else
10112 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10113 fi
10114 ;;
10115 esac
10116 link_all_deplibs=yes
10117 ;;
10118
10119 sunos4*)
10120 if test sequent = "$host_vendor"; then
10121 # Use $CC to link under sequent, because it throws in some extra .o
10122 # files that make .init and .fini sections work.
10123 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10124 else
10125 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10126 fi
10127 hardcode_libdir_flag_spec='-L$libdir'
10128 hardcode_direct=yes
10129 hardcode_minus_L=yes
10130 hardcode_shlibpath_var=no
10131 ;;
10132
10133 sysv4)
10134 case $host_vendor in
10135 sni)
10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_direct=yes # is this really true???
10138 ;;
10139 siemens)
10140 ## LD is ld it makes a PLAMLIB
10141 ## CC just makes a GrossModule.
10142 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10143 reload_cmds='$CC -r -o $output$reload_objs'
10144 hardcode_direct=no
10145 ;;
10146 motorola)
10147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10149 ;;
10150 esac
10151 runpath_var='LD_RUN_PATH'
10152 hardcode_shlibpath_var=no
10153 ;;
10154
10155 sysv4.3*)
10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_shlibpath_var=no
10158 export_dynamic_flag_spec='-Bexport'
10159 ;;
10160
10161 sysv4*MP*)
10162 if test -d /usr/nec; then
10163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_shlibpath_var=no
10165 runpath_var=LD_RUN_PATH
10166 hardcode_runpath_var=yes
10167 ld_shlibs=yes
10168 fi
10169 ;;
10170
10171 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10172 no_undefined_flag='$wl-z,text'
10173 archive_cmds_need_lc=no
10174 hardcode_shlibpath_var=no
10175 runpath_var='LD_RUN_PATH'
10176
10177 if test yes = "$GCC"; then
10178 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 else
10181 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183 fi
10184 ;;
10185
10186 sysv5* | sco3.2v5* | sco5v6*)
10187 # Note: We CANNOT use -z defs as we might desire, because we do not
10188 # link with -lc, and that would cause any symbols used from libc to
10189 # always be unresolved, which means just about no library would
10190 # ever link correctly. If we're not using GNU ld we use -z text
10191 # though, which does catch some bad symbols but isn't as heavy-handed
10192 # as -z defs.
10193 no_undefined_flag='$wl-z,text'
10194 allow_undefined_flag='$wl-z,nodefs'
10195 archive_cmds_need_lc=no
10196 hardcode_shlibpath_var=no
10197 hardcode_libdir_flag_spec='$wl-R,$libdir'
10198 hardcode_libdir_separator=':'
10199 link_all_deplibs=yes
10200 export_dynamic_flag_spec='$wl-Bexport'
10201 runpath_var='LD_RUN_PATH'
10202
10203 if test yes = "$GCC"; then
10204 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206 else
10207 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209 fi
10210 ;;
10211
10212 uts4*)
10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_libdir_flag_spec='-L$libdir'
10215 hardcode_shlibpath_var=no
10216 ;;
10217
10218 *)
10219 ld_shlibs=no
10220 ;;
10221 esac
10222
10223 if test sni = "$host_vendor"; then
10224 case $host in
10225 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10226 export_dynamic_flag_spec='$wl-Blargedynsym'
10227 ;;
10228 esac
10229 fi
10230 fi
10231
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10233 $as_echo "$ld_shlibs" >&6; }
10234 test no = "$ld_shlibs" && can_build_shared=no
10235
10236 with_gnu_ld=$with_gnu_ld
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252 #
10253 # Do we need to explicitly link libc?
10254 #
10255 case "x$archive_cmds_need_lc" in
10256 x|xyes)
10257 # Assume -lc should be added
10258 archive_cmds_need_lc=yes
10259
10260 if test yes,yes = "$GCC,$enable_shared"; then
10261 case $archive_cmds in
10262 *'~'*)
10263 # FIXME: we may have to deal with multi-command sequences.
10264 ;;
10265 '$CC '*)
10266 # Test whether the compiler implicitly links with -lc since on some
10267 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10268 # to ld, don't add -lc before -lgcc.
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10270 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10271 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 $RM conftest*
10275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10276
10277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10278 (eval $ac_compile) 2>&5
10279 ac_status=$?
10280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10281 test $ac_status = 0; } 2>conftest.err; then
10282 soname=conftest
10283 lib=conftest
10284 libobjs=conftest.$ac_objext
10285 deplibs=
10286 wl=$lt_prog_compiler_wl
10287 pic_flag=$lt_prog_compiler_pic
10288 compiler_flags=-v
10289 linker_flags=-v
10290 verstring=
10291 output_objdir=.
10292 libname=conftest
10293 lt_save_allow_undefined_flag=$allow_undefined_flag
10294 allow_undefined_flag=
10295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10296 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10297 ac_status=$?
10298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10299 test $ac_status = 0; }
10300 then
10301 lt_cv_archive_cmds_need_lc=no
10302 else
10303 lt_cv_archive_cmds_need_lc=yes
10304 fi
10305 allow_undefined_flag=$lt_save_allow_undefined_flag
10306 else
10307 cat conftest.err 1>&5
10308 fi
10309 $RM conftest*
10310
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10313 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10314 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10315 ;;
10316 esac
10317 fi
10318 ;;
10319 esac
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
10471
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10473 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10474
10475 if test yes = "$GCC"; then
10476 case $host_os in
10477 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10478 *) lt_awk_arg='/^libraries:/' ;;
10479 esac
10480 case $host_os in
10481 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10482 *) lt_sed_strip_eq='s|=/|/|g' ;;
10483 esac
10484 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10485 case $lt_search_path_spec in
10486 *\;*)
10487 # if the path contains ";" then we assume it to be the separator
10488 # otherwise default to the standard path separator (i.e. ":") - it is
10489 # assumed that no part of a normal pathname contains ";" but that should
10490 # okay in the real world where ";" in dirpaths is itself problematic.
10491 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10492 ;;
10493 *)
10494 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10495 ;;
10496 esac
10497 # Ok, now we have the path, separated by spaces, we can step through it
10498 # and add multilib dir if necessary...
10499 lt_tmp_lt_search_path_spec=
10500 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10501 # ...but if some path component already ends with the multilib dir we assume
10502 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10503 case "$lt_multi_os_dir; $lt_search_path_spec " in
10504 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10505 lt_multi_os_dir=
10506 ;;
10507 esac
10508 for lt_sys_path in $lt_search_path_spec; do
10509 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10510 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10511 elif test -n "$lt_multi_os_dir"; then
10512 test -d "$lt_sys_path" && \
10513 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10514 fi
10515 done
10516 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10517 BEGIN {RS = " "; FS = "/|\n";} {
10518 lt_foo = "";
10519 lt_count = 0;
10520 for (lt_i = NF; lt_i > 0; lt_i--) {
10521 if ($lt_i != "" && $lt_i != ".") {
10522 if ($lt_i == "..") {
10523 lt_count++;
10524 } else {
10525 if (lt_count == 0) {
10526 lt_foo = "/" $lt_i lt_foo;
10527 } else {
10528 lt_count--;
10529 }
10530 }
10531 }
10532 }
10533 if (lt_foo != "") { lt_freq[lt_foo]++; }
10534 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10535 }'`
10536 # AWK program above erroneously prepends '/' to C:/dos/paths
10537 # for these hosts.
10538 case $host_os in
10539 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10540 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10541 esac
10542 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10543 else
10544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10545 fi
10546 library_names_spec=
10547 libname_spec='lib$name'
10548 soname_spec=
10549 shrext_cmds=.so
10550 postinstall_cmds=
10551 postuninstall_cmds=
10552 finish_cmds=
10553 finish_eval=
10554 shlibpath_var=
10555 shlibpath_overrides_runpath=unknown
10556 version_type=none
10557 dynamic_linker="$host_os ld.so"
10558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10559 need_lib_prefix=unknown
10560 hardcode_into_libs=no
10561
10562 # when you set need_version to no, make sure it does not cause -set_version
10563 # flags to be left without arguments
10564 need_version=unknown
10565
10566 case $host_os in
10567 aix3*)
10568 version_type=linux # correct to gnu/linux during the next big refactor
10569 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10570 shlibpath_var=LIBPATH
10571
10572 # AIX 3 has no versioning support, so we append a major version to the name.
10573 soname_spec='$libname$release$shared_ext$major'
10574 ;;
10575
10576 aix[4-9]*)
10577 version_type=linux # correct to gnu/linux during the next big refactor
10578 need_lib_prefix=no
10579 need_version=no
10580 hardcode_into_libs=yes
10581 if test ia64 = "$host_cpu"; then
10582 # AIX 5 supports IA64
10583 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10584 shlibpath_var=LD_LIBRARY_PATH
10585 else
10586 # With GCC up to 2.95.x, collect2 would create an import file
10587 # for dependence libraries. The import file would start with
10588 # the line '#! .'. This would cause the generated library to
10589 # depend on '.', always an invalid library. This was fixed in
10590 # development snapshots of GCC prior to 3.0.
10591 case $host_os in
10592 aix4 | aix4.[01] | aix4.[01].*)
10593 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10594 echo ' yes '
10595 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10596 :
10597 else
10598 can_build_shared=no
10599 fi
10600 ;;
10601 esac
10602 # Using Import Files as archive members, it is possible to support
10603 # filename-based versioning of shared library archives on AIX. While
10604 # this would work for both with and without runtime linking, it will
10605 # prevent static linking of such archives. So we do filename-based
10606 # shared library versioning with .so extension only, which is used
10607 # when both runtime linking and shared linking is enabled.
10608 # Unfortunately, runtime linking may impact performance, so we do
10609 # not want this to be the default eventually. Also, we use the
10610 # versioned .so libs for executables only if there is the -brtl
10611 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10612 # To allow for filename-based versioning support, we need to create
10613 # libNAME.so.V as an archive file, containing:
10614 # *) an Import File, referring to the versioned filename of the
10615 # archive as well as the shared archive member, telling the
10616 # bitwidth (32 or 64) of that shared object, and providing the
10617 # list of exported symbols of that shared object, eventually
10618 # decorated with the 'weak' keyword
10619 # *) the shared object with the F_LOADONLY flag set, to really avoid
10620 # it being seen by the linker.
10621 # At run time we better use the real file rather than another symlink,
10622 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10623
10624 case $with_aix_soname,$aix_use_runtimelinking in
10625 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10626 # soname into executable. Probably we can add versioning support to
10627 # collect2, so additional links can be useful in future.
10628 aix,yes) # traditional libtool
10629 dynamic_linker='AIX unversionable lib.so'
10630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10631 # instead of lib<name>.a to let people know that these are not
10632 # typical AIX shared libraries.
10633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10634 ;;
10635 aix,no) # traditional AIX only
10636 dynamic_linker='AIX lib.a(lib.so.V)'
10637 # We preserve .a as extension for shared libraries through AIX4.2
10638 # and later when we are not doing run time linking.
10639 library_names_spec='$libname$release.a $libname.a'
10640 soname_spec='$libname$release$shared_ext$major'
10641 ;;
10642 svr4,*) # full svr4 only
10643 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10644 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10645 # We do not specify a path in Import Files, so LIBPATH fires.
10646 shlibpath_overrides_runpath=yes
10647 ;;
10648 *,yes) # both, prefer svr4
10649 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10650 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10651 # unpreferred sharedlib libNAME.a needs extra handling
10652 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"'
10653 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"'
10654 # We do not specify a path in Import Files, so LIBPATH fires.
10655 shlibpath_overrides_runpath=yes
10656 ;;
10657 *,no) # both, prefer aix
10658 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10659 library_names_spec='$libname$release.a $libname.a'
10660 soname_spec='$libname$release$shared_ext$major'
10661 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10662 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)'
10663 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"'
10664 ;;
10665 esac
10666 shlibpath_var=LIBPATH
10667 fi
10668 ;;
10669
10670 amigaos*)
10671 case $host_cpu in
10672 powerpc)
10673 # Since July 2007 AmigaOS4 officially supports .so libraries.
10674 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10676 ;;
10677 m68k)
10678 library_names_spec='$libname.ixlibrary $libname.a'
10679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10680 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'
10681 ;;
10682 esac
10683 ;;
10684
10685 beos*)
10686 library_names_spec='$libname$shared_ext'
10687 dynamic_linker="$host_os ld.so"
10688 shlibpath_var=LIBRARY_PATH
10689 ;;
10690
10691 bsdi[45]*)
10692 version_type=linux # correct to gnu/linux during the next big refactor
10693 need_version=no
10694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10695 soname_spec='$libname$release$shared_ext$major'
10696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10700 # the default ld.so.conf also contains /usr/contrib/lib and
10701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10702 # libtool to hard-code these into programs
10703 ;;
10704
10705 cygwin* | mingw* | pw32* | cegcc*)
10706 version_type=windows
10707 shrext_cmds=.dll
10708 need_version=no
10709 need_lib_prefix=no
10710
10711 case $GCC,$cc_basename in
10712 yes,*)
10713 # gcc
10714 library_names_spec='$libname.dll.a'
10715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716 postinstall_cmds='base_file=`basename \$file`~
10717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10718 dldir=$destdir/`dirname \$dlpath`~
10719 test -d \$dldir || mkdir -p \$dldir~
10720 $install_prog $dir/$dlname \$dldir/$dlname~
10721 chmod a+x \$dldir/$dlname~
10722 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10723 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10724 fi'
10725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10726 dlpath=$dir/\$dldll~
10727 $RM \$dlpath'
10728 shlibpath_overrides_runpath=yes
10729
10730 case $host_os in
10731 cygwin*)
10732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10733 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10734
10735 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10736 ;;
10737 mingw* | cegcc*)
10738 # MinGW DLLs use traditional 'lib' prefix
10739 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10740 ;;
10741 pw32*)
10742 # pw32 DLLs use 'pw' prefix rather than 'lib'
10743 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10744 ;;
10745 esac
10746 dynamic_linker='Win32 ld.exe'
10747 ;;
10748
10749 *,cl*)
10750 # Native MSVC
10751 libname_spec='$name'
10752 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10753 library_names_spec='$libname.dll.lib'
10754
10755 case $build_os in
10756 mingw*)
10757 sys_lib_search_path_spec=
10758 lt_save_ifs=$IFS
10759 IFS=';'
10760 for lt_path in $LIB
10761 do
10762 IFS=$lt_save_ifs
10763 # Let DOS variable expansion print the short 8.3 style file name.
10764 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10765 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10766 done
10767 IFS=$lt_save_ifs
10768 # Convert to MSYS style.
10769 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10770 ;;
10771 cygwin*)
10772 # Convert to unix form, then to dos form, then back to unix form
10773 # but this time dos style (no spaces!) so that the unix form looks
10774 # like /cygdrive/c/PROGRA~1:/cygdr...
10775 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10776 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10777 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10778 ;;
10779 *)
10780 sys_lib_search_path_spec=$LIB
10781 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10782 # It is most probably a Windows format PATH.
10783 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10784 else
10785 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10786 fi
10787 # FIXME: find the short name or the path components, as spaces are
10788 # common. (e.g. "Program Files" -> "PROGRA~1")
10789 ;;
10790 esac
10791
10792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10793 postinstall_cmds='base_file=`basename \$file`~
10794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10795 dldir=$destdir/`dirname \$dlpath`~
10796 test -d \$dldir || mkdir -p \$dldir~
10797 $install_prog $dir/$dlname \$dldir/$dlname'
10798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10799 dlpath=$dir/\$dldll~
10800 $RM \$dlpath'
10801 shlibpath_overrides_runpath=yes
10802 dynamic_linker='Win32 link.exe'
10803 ;;
10804
10805 *)
10806 # Assume MSVC wrapper
10807 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10808 dynamic_linker='Win32 ld.exe'
10809 ;;
10810 esac
10811 # FIXME: first we should search . and the directory the executable is in
10812 shlibpath_var=PATH
10813 ;;
10814
10815 darwin* | rhapsody*)
10816 dynamic_linker="$host_os dyld"
10817 version_type=darwin
10818 need_lib_prefix=no
10819 need_version=no
10820 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10821 soname_spec='$libname$release$major$shared_ext'
10822 shlibpath_overrides_runpath=yes
10823 shlibpath_var=DYLD_LIBRARY_PATH
10824 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10825
10826 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10827 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10828 ;;
10829
10830 dgux*)
10831 version_type=linux # correct to gnu/linux during the next big refactor
10832 need_lib_prefix=no
10833 need_version=no
10834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10835 soname_spec='$libname$release$shared_ext$major'
10836 shlibpath_var=LD_LIBRARY_PATH
10837 ;;
10838
10839 freebsd* | dragonfly*)
10840 # DragonFly does not have aout. When/if they implement a new
10841 # versioning mechanism, adjust this.
10842 if test -x /usr/bin/objformat; then
10843 objformat=`/usr/bin/objformat`
10844 else
10845 case $host_os in
10846 freebsd[23].*) objformat=aout ;;
10847 *) objformat=elf ;;
10848 esac
10849 fi
10850 version_type=freebsd-$objformat
10851 case $version_type in
10852 freebsd-elf*)
10853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10854 need_version=no
10855 need_lib_prefix=no
10856 ;;
10857 freebsd-*)
10858 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10859 need_version=yes
10860 ;;
10861 esac
10862 shlibpath_var=LD_LIBRARY_PATH
10863 case $host_os in
10864 freebsd2.*)
10865 shlibpath_overrides_runpath=yes
10866 ;;
10867 freebsd3.[01]* | freebsdelf3.[01]*)
10868 shlibpath_overrides_runpath=yes
10869 hardcode_into_libs=yes
10870 ;;
10871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10873 shlibpath_overrides_runpath=no
10874 hardcode_into_libs=yes
10875 ;;
10876 *) # from 4.6 on, and DragonFly
10877 shlibpath_overrides_runpath=yes
10878 hardcode_into_libs=yes
10879 ;;
10880 esac
10881 ;;
10882
10883 haiku*)
10884 version_type=linux # correct to gnu/linux during the next big refactor
10885 need_lib_prefix=no
10886 need_version=no
10887 dynamic_linker="$host_os runtime_loader"
10888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10889 soname_spec='$libname$release$shared_ext$major'
10890 shlibpath_var=LIBRARY_PATH
10891 shlibpath_overrides_runpath=no
10892 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10893 hardcode_into_libs=yes
10894 ;;
10895
10896 hpux9* | hpux10* | hpux11*)
10897 # Give a soname corresponding to the major version so that dld.sl refuses to
10898 # link against other versions.
10899 version_type=sunos
10900 need_lib_prefix=no
10901 need_version=no
10902 case $host_cpu in
10903 ia64*)
10904 shrext_cmds='.so'
10905 hardcode_into_libs=yes
10906 dynamic_linker="$host_os dld.so"
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10910 soname_spec='$libname$release$shared_ext$major'
10911 if test 32 = "$HPUX_IA64_MODE"; then
10912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10913 else
10914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10915 fi
10916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10917 ;;
10918 hppa*64*)
10919 shrext_cmds='.sl'
10920 hardcode_into_libs=yes
10921 dynamic_linker="$host_os dld.sl"
10922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10925 soname_spec='$libname$release$shared_ext$major'
10926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10928 ;;
10929 *)
10930 shrext_cmds='.sl'
10931 dynamic_linker="$host_os dld.sl"
10932 shlibpath_var=SHLIB_PATH
10933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10935 soname_spec='$libname$release$shared_ext$major'
10936 ;;
10937 esac
10938 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10939 postinstall_cmds='chmod 555 $lib'
10940 # or fails outright, so override atomically:
10941 install_override_mode=555
10942 ;;
10943
10944 interix[3-9]*)
10945 version_type=linux # correct to gnu/linux during the next big refactor
10946 need_lib_prefix=no
10947 need_version=no
10948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10949 soname_spec='$libname$release$shared_ext$major'
10950 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=no
10953 hardcode_into_libs=yes
10954 ;;
10955
10956 irix5* | irix6* | nonstopux*)
10957 case $host_os in
10958 nonstopux*) version_type=nonstopux ;;
10959 *)
10960 if test yes = "$lt_cv_prog_gnu_ld"; then
10961 version_type=linux # correct to gnu/linux during the next big refactor
10962 else
10963 version_type=irix
10964 fi ;;
10965 esac
10966 need_lib_prefix=no
10967 need_version=no
10968 soname_spec='$libname$release$shared_ext$major'
10969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10970 case $host_os in
10971 irix5* | nonstopux*)
10972 libsuff= shlibsuff=
10973 ;;
10974 *)
10975 case $LD in # libtool.m4 will add one of these switches to LD
10976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10977 libsuff= shlibsuff= libmagic=32-bit;;
10978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10979 libsuff=32 shlibsuff=N32 libmagic=N32;;
10980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10981 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10982 *) libsuff= shlibsuff= libmagic=never-match;;
10983 esac
10984 ;;
10985 esac
10986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10987 shlibpath_overrides_runpath=no
10988 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10989 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10990 hardcode_into_libs=yes
10991 ;;
10992
10993 # No shared lib support for Linux oldld, aout, or coff.
10994 linux*oldld* | linux*aout* | linux*coff*)
10995 dynamic_linker=no
10996 ;;
10997
10998 linux*android*)
10999 version_type=none # Android doesn't support versioned libraries.
11000 need_lib_prefix=no
11001 need_version=no
11002 library_names_spec='$libname$release$shared_ext'
11003 soname_spec='$libname$release$shared_ext'
11004 finish_cmds=
11005 shlibpath_var=LD_LIBRARY_PATH
11006 shlibpath_overrides_runpath=yes
11007
11008 # This implies no fast_install, which is unacceptable.
11009 # Some rework will be needed to allow for fast_install
11010 # before this can be enabled.
11011 hardcode_into_libs=yes
11012
11013 dynamic_linker='Android linker'
11014 # Don't embed -rpath directories since the linker doesn't support them.
11015 hardcode_libdir_flag_spec='-L$libdir'
11016 ;;
11017
11018 # This must be glibc/ELF.
11019 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11020 version_type=linux # correct to gnu/linux during the next big refactor
11021 need_lib_prefix=no
11022 need_version=no
11023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11024 soname_spec='$libname$release$shared_ext$major'
11025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=no
11028
11029 # Some binutils ld are patched to set DT_RUNPATH
11030 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 lt_cv_shlibpath_overrides_runpath=no
11034 save_LDFLAGS=$LDFLAGS
11035 save_libdir=$libdir
11036 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11037 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11040
11041 int
11042 main ()
11043 {
11044
11045 ;
11046 return 0;
11047 }
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11051 lt_cv_shlibpath_overrides_runpath=yes
11052 fi
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LDFLAGS=$save_LDFLAGS
11057 libdir=$save_libdir
11058
11059 fi
11060
11061 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11062
11063 # This implies no fast_install, which is unacceptable.
11064 # Some rework will be needed to allow for fast_install
11065 # before this can be enabled.
11066 hardcode_into_libs=yes
11067
11068 # Append ld.so.conf contents to the search path
11069 if test -f /etc/ld.so.conf; then
11070 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' ' '`
11071 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11072 fi
11073
11074 # We used to test for /lib/ld.so.1 and disable shared libraries on
11075 # powerpc, because MkLinux only supported shared libraries with the
11076 # GNU dynamic linker. Since this was broken with cross compilers,
11077 # most powerpc-linux boxes support dynamic linking these days and
11078 # people can always --disable-shared, the test was removed, and we
11079 # assume the GNU/Linux dynamic linker is in use.
11080 dynamic_linker='GNU/Linux ld.so'
11081 ;;
11082
11083 netbsd*)
11084 version_type=sunos
11085 need_lib_prefix=no
11086 need_version=no
11087 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11088 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11090 dynamic_linker='NetBSD (a.out) ld.so'
11091 else
11092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11093 soname_spec='$libname$release$shared_ext$major'
11094 dynamic_linker='NetBSD ld.elf_so'
11095 fi
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11098 hardcode_into_libs=yes
11099 ;;
11100
11101 newsos6)
11102 version_type=linux # correct to gnu/linux during the next big refactor
11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
11106 ;;
11107
11108 *nto* | *qnx*)
11109 version_type=qnx
11110 need_lib_prefix=no
11111 need_version=no
11112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113 soname_spec='$libname$release$shared_ext$major'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=no
11116 hardcode_into_libs=yes
11117 dynamic_linker='ldqnx.so'
11118 ;;
11119
11120 openbsd* | bitrig*)
11121 version_type=sunos
11122 sys_lib_dlsearch_path_spec=/usr/lib
11123 need_lib_prefix=no
11124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11125 need_version=no
11126 else
11127 need_version=yes
11128 fi
11129 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 shlibpath_overrides_runpath=yes
11133 ;;
11134
11135 os2*)
11136 libname_spec='$name'
11137 version_type=windows
11138 shrext_cmds=.dll
11139 need_version=no
11140 need_lib_prefix=no
11141 # OS/2 can only load a DLL with a base name of 8 characters or less.
11142 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11143 v=$($ECHO $release$versuffix | tr -d .-);
11144 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11145 $ECHO $n$v`$shared_ext'
11146 library_names_spec='${libname}_dll.$libext'
11147 dynamic_linker='OS/2 ld.exe'
11148 shlibpath_var=BEGINLIBPATH
11149 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11151 postinstall_cmds='base_file=`basename \$file`~
11152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11153 dldir=$destdir/`dirname \$dlpath`~
11154 test -d \$dldir || mkdir -p \$dldir~
11155 $install_prog $dir/$dlname \$dldir/$dlname~
11156 chmod a+x \$dldir/$dlname~
11157 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11158 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11159 fi'
11160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11161 dlpath=$dir/\$dldll~
11162 $RM \$dlpath'
11163 ;;
11164
11165 osf3* | osf4* | osf5*)
11166 version_type=osf
11167 need_lib_prefix=no
11168 need_version=no
11169 soname_spec='$libname$release$shared_ext$major'
11170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11174 ;;
11175
11176 rdos*)
11177 dynamic_linker=no
11178 ;;
11179
11180 solaris*)
11181 version_type=linux # correct to gnu/linux during the next big refactor
11182 need_lib_prefix=no
11183 need_version=no
11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11185 soname_spec='$libname$release$shared_ext$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 shlibpath_overrides_runpath=yes
11188 hardcode_into_libs=yes
11189 # ldd complains unless libraries are executable
11190 postinstall_cmds='chmod +x $lib'
11191 ;;
11192
11193 sunos4*)
11194 version_type=sunos
11195 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11196 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=yes
11199 if test yes = "$with_gnu_ld"; then
11200 need_lib_prefix=no
11201 fi
11202 need_version=yes
11203 ;;
11204
11205 sysv4 | sysv4.3*)
11206 version_type=linux # correct to gnu/linux during the next big refactor
11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11208 soname_spec='$libname$release$shared_ext$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 case $host_vendor in
11211 sni)
11212 shlibpath_overrides_runpath=no
11213 need_lib_prefix=no
11214 runpath_var=LD_RUN_PATH
11215 ;;
11216 siemens)
11217 need_lib_prefix=no
11218 ;;
11219 motorola)
11220 need_lib_prefix=no
11221 need_version=no
11222 shlibpath_overrides_runpath=no
11223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11224 ;;
11225 esac
11226 ;;
11227
11228 sysv4*MP*)
11229 if test -d /usr/nec; then
11230 version_type=linux # correct to gnu/linux during the next big refactor
11231 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11232 soname_spec='$libname$shared_ext.$major'
11233 shlibpath_var=LD_LIBRARY_PATH
11234 fi
11235 ;;
11236
11237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11238 version_type=sco
11239 need_lib_prefix=no
11240 need_version=no
11241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11242 soname_spec='$libname$release$shared_ext$major'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes
11245 hardcode_into_libs=yes
11246 if test yes = "$with_gnu_ld"; then
11247 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11248 else
11249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11250 case $host_os in
11251 sco3.2v5*)
11252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11253 ;;
11254 esac
11255 fi
11256 sys_lib_dlsearch_path_spec='/usr/lib'
11257 ;;
11258
11259 tpf*)
11260 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11261 version_type=linux # correct to gnu/linux during the next big refactor
11262 need_lib_prefix=no
11263 need_version=no
11264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=no
11267 hardcode_into_libs=yes
11268 ;;
11269
11270 uts4*)
11271 version_type=linux # correct to gnu/linux during the next big refactor
11272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11273 soname_spec='$libname$release$shared_ext$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 ;;
11276
11277 *)
11278 dynamic_linker=no
11279 ;;
11280 esac
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11282 $as_echo "$dynamic_linker" >&6; }
11283 test no = "$dynamic_linker" && can_build_shared=no
11284
11285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11286 if test yes = "$GCC"; then
11287 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11288 fi
11289
11290 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11291 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11292 fi
11293 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11294 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11295 fi
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
11387
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11389 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11390 hardcode_action=
11391 if test -n "$hardcode_libdir_flag_spec" ||
11392 test -n "$runpath_var" ||
11393 test yes = "$hardcode_automatic"; then
11394
11395 # We can hardcode non-existent directories.
11396 if test no != "$hardcode_direct" &&
11397 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11398 # have to relink, otherwise we might link with an installed library
11399 # when we should be linking with a yet-to-be-installed one
11400 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11401 test no != "$hardcode_minus_L"; then
11402 # Linking always hardcodes the temporary library directory.
11403 hardcode_action=relink
11404 else
11405 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11406 hardcode_action=immediate
11407 fi
11408 else
11409 # We cannot hardcode anything, or else we can only hardcode existing
11410 # directories.
11411 hardcode_action=unsupported
11412 fi
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11414 $as_echo "$hardcode_action" >&6; }
11415
11416 if test relink = "$hardcode_action" ||
11417 test yes = "$inherit_rpath"; then
11418 # Fast installation is not supported
11419 enable_fast_install=no
11420 elif test yes = "$shlibpath_overrides_runpath" ||
11421 test no = "$enable_shared"; then
11422 # Fast installation is not necessary
11423 enable_fast_install=needless
11424 fi
11425
11426
11427
11428
11429
11430
11431 if test yes != "$enable_dlopen"; then
11432 enable_dlopen=unknown
11433 enable_dlopen_self=unknown
11434 enable_dlopen_self_static=unknown
11435 else
11436 lt_cv_dlopen=no
11437 lt_cv_dlopen_libs=
11438
11439 case $host_os in
11440 beos*)
11441 lt_cv_dlopen=load_add_on
11442 lt_cv_dlopen_libs=
11443 lt_cv_dlopen_self=yes
11444 ;;
11445
11446 mingw* | pw32* | cegcc*)
11447 lt_cv_dlopen=LoadLibrary
11448 lt_cv_dlopen_libs=
11449 ;;
11450
11451 cygwin*)
11452 lt_cv_dlopen=dlopen
11453 lt_cv_dlopen_libs=
11454 ;;
11455
11456 darwin*)
11457 # if libdl is installed we need to link against it
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11459 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11460 if ${ac_cv_lib_dl_dlopen+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-ldl $LIBS"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char dlopen ();
11475 int
11476 main ()
11477 {
11478 return dlopen ();
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 ac_cv_lib_dl_dlopen=yes
11485 else
11486 ac_cv_lib_dl_dlopen=no
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 LIBS=$ac_check_lib_save_LIBS
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11494 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11495 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11496 else
11497
11498 lt_cv_dlopen=dyld
11499 lt_cv_dlopen_libs=
11500 lt_cv_dlopen_self=yes
11501
11502 fi
11503
11504 ;;
11505
11506 tpf*)
11507 # Don't try to run any link tests for TPF. We know it's impossible
11508 # because TPF is a cross-compiler, and we know how we open DSOs.
11509 lt_cv_dlopen=dlopen
11510 lt_cv_dlopen_libs=
11511 lt_cv_dlopen_self=no
11512 ;;
11513
11514 *)
11515 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11516 if test "x$ac_cv_func_shl_load" = xyes; then :
11517 lt_cv_dlopen=shl_load
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11520 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11521 if ${ac_cv_lib_dld_shl_load+:} false; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 ac_check_lib_save_LIBS=$LIBS
11525 LIBS="-ldld $LIBS"
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528
11529 /* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
11532 #ifdef __cplusplus
11533 extern "C"
11534 #endif
11535 char shl_load ();
11536 int
11537 main ()
11538 {
11539 return shl_load ();
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_c_try_link "$LINENO"; then :
11545 ac_cv_lib_dld_shl_load=yes
11546 else
11547 ac_cv_lib_dld_shl_load=no
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11551 LIBS=$ac_check_lib_save_LIBS
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11554 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11555 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11556 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11557 else
11558 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11559 if test "x$ac_cv_func_dlopen" = xyes; then :
11560 lt_cv_dlopen=dlopen
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11564 if ${ac_cv_lib_dl_dlopen+:} false; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-ldl $LIBS"
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11571
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 char dlopen ();
11579 int
11580 main ()
11581 {
11582 return dlopen ();
11583 ;
11584 return 0;
11585 }
11586 _ACEOF
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 ac_cv_lib_dl_dlopen=yes
11589 else
11590 ac_cv_lib_dl_dlopen=no
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11595 fi
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11597 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11598 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11599 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11602 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11603 if ${ac_cv_lib_svld_dlopen+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 ac_check_lib_save_LIBS=$LIBS
11607 LIBS="-lsvld $LIBS"
11608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609 /* end confdefs.h. */
11610
11611 /* Override any GCC internal prototype to avoid an error.
11612 Use char because int might match the return type of a GCC
11613 builtin and then its argument prototype would still apply. */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 char dlopen ();
11618 int
11619 main ()
11620 {
11621 return dlopen ();
11622 ;
11623 return 0;
11624 }
11625 _ACEOF
11626 if ac_fn_c_try_link "$LINENO"; then :
11627 ac_cv_lib_svld_dlopen=yes
11628 else
11629 ac_cv_lib_svld_dlopen=no
11630 fi
11631 rm -f core conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
11633 LIBS=$ac_check_lib_save_LIBS
11634 fi
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11636 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11637 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11638 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11639 else
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11641 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11642 if ${ac_cv_lib_dld_dld_link+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 ac_check_lib_save_LIBS=$LIBS
11646 LIBS="-ldld $LIBS"
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649
11650 /* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 char dld_link ();
11657 int
11658 main ()
11659 {
11660 return dld_link ();
11661 ;
11662 return 0;
11663 }
11664 _ACEOF
11665 if ac_fn_c_try_link "$LINENO"; then :
11666 ac_cv_lib_dld_dld_link=yes
11667 else
11668 ac_cv_lib_dld_dld_link=no
11669 fi
11670 rm -f core conftest.err conftest.$ac_objext \
11671 conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11673 fi
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11675 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11676 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11677 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11678 fi
11679
11680
11681 fi
11682
11683
11684 fi
11685
11686
11687 fi
11688
11689
11690 fi
11691
11692
11693 fi
11694
11695 ;;
11696 esac
11697
11698 if test no = "$lt_cv_dlopen"; then
11699 enable_dlopen=no
11700 else
11701 enable_dlopen=yes
11702 fi
11703
11704 case $lt_cv_dlopen in
11705 dlopen)
11706 save_CPPFLAGS=$CPPFLAGS
11707 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11708
11709 save_LDFLAGS=$LDFLAGS
11710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11711
11712 save_LIBS=$LIBS
11713 LIBS="$lt_cv_dlopen_libs $LIBS"
11714
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11716 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11717 if ${lt_cv_dlopen_self+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 if test yes = "$cross_compiling"; then :
11721 lt_cv_dlopen_self=cross
11722 else
11723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11724 lt_status=$lt_dlunknown
11725 cat > conftest.$ac_ext <<_LT_EOF
11726 #line $LINENO "configure"
11727 #include "confdefs.h"
11728
11729 #if HAVE_DLFCN_H
11730 #include <dlfcn.h>
11731 #endif
11732
11733 #include <stdio.h>
11734
11735 #ifdef RTLD_GLOBAL
11736 # define LT_DLGLOBAL RTLD_GLOBAL
11737 #else
11738 # ifdef DL_GLOBAL
11739 # define LT_DLGLOBAL DL_GLOBAL
11740 # else
11741 # define LT_DLGLOBAL 0
11742 # endif
11743 #endif
11744
11745 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11746 find out it does not work in some platform. */
11747 #ifndef LT_DLLAZY_OR_NOW
11748 # ifdef RTLD_LAZY
11749 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11750 # else
11751 # ifdef DL_LAZY
11752 # define LT_DLLAZY_OR_NOW DL_LAZY
11753 # else
11754 # ifdef RTLD_NOW
11755 # define LT_DLLAZY_OR_NOW RTLD_NOW
11756 # else
11757 # ifdef DL_NOW
11758 # define LT_DLLAZY_OR_NOW DL_NOW
11759 # else
11760 # define LT_DLLAZY_OR_NOW 0
11761 # endif
11762 # endif
11763 # endif
11764 # endif
11765 #endif
11766
11767 /* When -fvisibility=hidden is used, assume the code has been annotated
11768 correspondingly for the symbols needed. */
11769 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11770 int fnord () __attribute__((visibility("default")));
11771 #endif
11772
11773 int fnord () { return 42; }
11774 int main ()
11775 {
11776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11777 int status = $lt_dlunknown;
11778
11779 if (self)
11780 {
11781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11782 else
11783 {
11784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11785 else puts (dlerror ());
11786 }
11787 /* dlclose (self); */
11788 }
11789 else
11790 puts (dlerror ());
11791
11792 return status;
11793 }
11794 _LT_EOF
11795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11796 (eval $ac_link) 2>&5
11797 ac_status=$?
11798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11800 (./conftest; exit; ) >&5 2>/dev/null
11801 lt_status=$?
11802 case x$lt_status in
11803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11805 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11806 esac
11807 else :
11808 # compilation failed
11809 lt_cv_dlopen_self=no
11810 fi
11811 fi
11812 rm -fr conftest*
11813
11814
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11817 $as_echo "$lt_cv_dlopen_self" >&6; }
11818
11819 if test yes = "$lt_cv_dlopen_self"; then
11820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11822 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11823 if ${lt_cv_dlopen_self_static+:} false; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 if test yes = "$cross_compiling"; then :
11827 lt_cv_dlopen_self_static=cross
11828 else
11829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11830 lt_status=$lt_dlunknown
11831 cat > conftest.$ac_ext <<_LT_EOF
11832 #line $LINENO "configure"
11833 #include "confdefs.h"
11834
11835 #if HAVE_DLFCN_H
11836 #include <dlfcn.h>
11837 #endif
11838
11839 #include <stdio.h>
11840
11841 #ifdef RTLD_GLOBAL
11842 # define LT_DLGLOBAL RTLD_GLOBAL
11843 #else
11844 # ifdef DL_GLOBAL
11845 # define LT_DLGLOBAL DL_GLOBAL
11846 # else
11847 # define LT_DLGLOBAL 0
11848 # endif
11849 #endif
11850
11851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11852 find out it does not work in some platform. */
11853 #ifndef LT_DLLAZY_OR_NOW
11854 # ifdef RTLD_LAZY
11855 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11856 # else
11857 # ifdef DL_LAZY
11858 # define LT_DLLAZY_OR_NOW DL_LAZY
11859 # else
11860 # ifdef RTLD_NOW
11861 # define LT_DLLAZY_OR_NOW RTLD_NOW
11862 # else
11863 # ifdef DL_NOW
11864 # define LT_DLLAZY_OR_NOW DL_NOW
11865 # else
11866 # define LT_DLLAZY_OR_NOW 0
11867 # endif
11868 # endif
11869 # endif
11870 # endif
11871 #endif
11872
11873 /* When -fvisibility=hidden is used, assume the code has been annotated
11874 correspondingly for the symbols needed. */
11875 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11876 int fnord () __attribute__((visibility("default")));
11877 #endif
11878
11879 int fnord () { return 42; }
11880 int main ()
11881 {
11882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11883 int status = $lt_dlunknown;
11884
11885 if (self)
11886 {
11887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11888 else
11889 {
11890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11891 else puts (dlerror ());
11892 }
11893 /* dlclose (self); */
11894 }
11895 else
11896 puts (dlerror ());
11897
11898 return status;
11899 }
11900 _LT_EOF
11901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11902 (eval $ac_link) 2>&5
11903 ac_status=$?
11904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11905 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11906 (./conftest; exit; ) >&5 2>/dev/null
11907 lt_status=$?
11908 case x$lt_status in
11909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11911 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11912 esac
11913 else :
11914 # compilation failed
11915 lt_cv_dlopen_self_static=no
11916 fi
11917 fi
11918 rm -fr conftest*
11919
11920
11921 fi
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11923 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11924 fi
11925
11926 CPPFLAGS=$save_CPPFLAGS
11927 LDFLAGS=$save_LDFLAGS
11928 LIBS=$save_LIBS
11929 ;;
11930 esac
11931
11932 case $lt_cv_dlopen_self in
11933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11934 *) enable_dlopen_self=unknown ;;
11935 esac
11936
11937 case $lt_cv_dlopen_self_static in
11938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11939 *) enable_dlopen_self_static=unknown ;;
11940 esac
11941 fi
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959 striplib=
11960 old_striplib=
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11962 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11963 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11964 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11965 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967 $as_echo "yes" >&6; }
11968 else
11969 # FIXME - insert some real tests, host_os isn't really good enough
11970 case $host_os in
11971 darwin*)
11972 if test -n "$STRIP"; then
11973 striplib="$STRIP -x"
11974 old_striplib="$STRIP -S"
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976 $as_echo "yes" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980 fi
11981 ;;
11982 *)
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11985 ;;
11986 esac
11987 fi
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000 # Report what library types will actually be built
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12002 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12004 $as_echo "$can_build_shared" >&6; }
12005
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12007 $as_echo_n "checking whether to build shared libraries... " >&6; }
12008 test no = "$can_build_shared" && enable_shared=no
12009
12010 # On AIX, shared libraries and static libraries use the same namespace, and
12011 # are all built from PIC.
12012 case $host_os in
12013 aix3*)
12014 test yes = "$enable_shared" && enable_static=no
12015 if test -n "$RANLIB"; then
12016 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12017 postinstall_cmds='$RANLIB $lib'
12018 fi
12019 ;;
12020
12021 aix[4-9]*)
12022 if test ia64 != "$host_cpu"; then
12023 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12024 yes,aix,yes) ;; # shared object as lib.so file only
12025 yes,svr4,*) ;; # shared object as lib.so archive member only
12026 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12027 esac
12028 fi
12029 ;;
12030 esac
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12032 $as_echo "$enable_shared" >&6; }
12033
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12035 $as_echo_n "checking whether to build static libraries... " >&6; }
12036 # Make sure either enable_shared or enable_static is yes.
12037 test yes = "$enable_shared" || enable_static=yes
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12039 $as_echo "$enable_static" >&6; }
12040
12041
12042
12043
12044 fi
12045 ac_ext=c
12046 ac_cpp='$CPP $CPPFLAGS'
12047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12050
12051 CC=$lt_save_CC
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067 ac_config_commands="$ac_config_commands libtool"
12068
12069
12070
12071
12072 # Only expand once:
12073
12074
12075
12076
12077 for ac_header in sys/time.h
12078 do :
12079 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12080 if test "x$ac_cv_header_sys_time_h" = xyes; then :
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_SYS_TIME_H 1
12083 _ACEOF
12084
12085 fi
12086
12087 done
12088
12089
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12091 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12092 if ${ac_cv_header_time+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h. */
12097 #include <sys/types.h>
12098 #include <sys/time.h>
12099 #include <time.h>
12100
12101 int
12102 main ()
12103 {
12104 if ((struct tm *) 0)
12105 return 0;
12106 ;
12107 return 0;
12108 }
12109 _ACEOF
12110 if ac_fn_c_try_compile "$LINENO"; then :
12111 ac_cv_header_time=yes
12112 else
12113 ac_cv_header_time=no
12114 fi
12115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12116 fi
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12118 $as_echo "$ac_cv_header_time" >&6; }
12119 if test $ac_cv_header_time = yes; then
12120
12121 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12122
12123 fi
12124
12125
12126
12127 for ac_prog in 'bison -y' byacc
12128 do
12129 # Extract the first word of "$ac_prog", so it can be a program name with args.
12130 set dummy $ac_prog; ac_word=$2
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if ${ac_cv_prog_YACC+:} false; then :
12134 $as_echo_n "(cached) " >&6
12135 else
12136 if test -n "$YACC"; then
12137 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12138 else
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12141 do
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12146 ac_cv_prog_YACC="$ac_prog"
12147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 break 2
12149 fi
12150 done
12151 done
12152 IFS=$as_save_IFS
12153
12154 fi
12155 fi
12156 YACC=$ac_cv_prog_YACC
12157 if test -n "$YACC"; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12159 $as_echo "$YACC" >&6; }
12160 else
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12163 fi
12164
12165
12166 test -n "$YACC" && break
12167 done
12168 test -n "$YACC" || YACC="yacc"
12169
12170
12171 for ac_prog in flex lex
12172 do
12173 # Extract the first word of "$ac_prog", so it can be a program name with args.
12174 set dummy $ac_prog; ac_word=$2
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176 $as_echo_n "checking for $ac_word... " >&6; }
12177 if ${ac_cv_prog_LEX+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 if test -n "$LEX"; then
12181 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12182 else
12183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184 for as_dir in $PATH
12185 do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_LEX="$ac_prog"
12191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12192 break 2
12193 fi
12194 done
12195 done
12196 IFS=$as_save_IFS
12197
12198 fi
12199 fi
12200 LEX=$ac_cv_prog_LEX
12201 if test -n "$LEX"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12203 $as_echo "$LEX" >&6; }
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12207 fi
12208
12209
12210 test -n "$LEX" && break
12211 done
12212 test -n "$LEX" || LEX=":"
12213
12214 if test "x$LEX" != "x:"; then
12215 cat >conftest.l <<_ACEOF
12216 %%
12217 a { ECHO; }
12218 b { REJECT; }
12219 c { yymore (); }
12220 d { yyless (1); }
12221 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12222 yyless ((input () != 0)); }
12223 f { unput (yytext[0]); }
12224 . { BEGIN INITIAL; }
12225 %%
12226 #ifdef YYTEXT_POINTER
12227 extern char *yytext;
12228 #endif
12229 int
12230 main (void)
12231 {
12232 return ! yylex () + ! yywrap ();
12233 }
12234 _ACEOF
12235 { { ac_try="$LEX conftest.l"
12236 case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12239 esac
12240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12241 $as_echo "$ac_try_echo"; } >&5
12242 (eval "$LEX conftest.l") 2>&5
12243 ac_status=$?
12244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12245 test $ac_status = 0; }
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12247 $as_echo_n "checking lex output file root... " >&6; }
12248 if ${ac_cv_prog_lex_root+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251
12252 if test -f lex.yy.c; then
12253 ac_cv_prog_lex_root=lex.yy
12254 elif test -f lexyy.c; then
12255 ac_cv_prog_lex_root=lexyy
12256 else
12257 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12258 fi
12259 fi
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12261 $as_echo "$ac_cv_prog_lex_root" >&6; }
12262 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12263
12264 if test -z "${LEXLIB+set}"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12266 $as_echo_n "checking lex library... " >&6; }
12267 if ${ac_cv_lib_lex+:} false; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270
12271 ac_save_LIBS=$LIBS
12272 ac_cv_lib_lex='none needed'
12273 for ac_lib in '' -lfl -ll; do
12274 LIBS="$ac_lib $ac_save_LIBS"
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12277 `cat $LEX_OUTPUT_ROOT.c`
12278 _ACEOF
12279 if ac_fn_c_try_link "$LINENO"; then :
12280 ac_cv_lib_lex=$ac_lib
12281 fi
12282 rm -f core conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
12284 test "$ac_cv_lib_lex" != 'none needed' && break
12285 done
12286 LIBS=$ac_save_LIBS
12287
12288 fi
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12290 $as_echo "$ac_cv_lib_lex" >&6; }
12291 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12292 fi
12293
12294
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12296 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12297 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 # POSIX says lex can declare yytext either as a pointer or an array; the
12301 # default is implementation-dependent. Figure out which it is, since
12302 # not all implementations provide the %pointer and %array declarations.
12303 ac_cv_prog_lex_yytext_pointer=no
12304 ac_save_LIBS=$LIBS
12305 LIBS="$LEXLIB $ac_save_LIBS"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308
12309 #define YYTEXT_POINTER 1
12310 `cat $LEX_OUTPUT_ROOT.c`
12311 _ACEOF
12312 if ac_fn_c_try_link "$LINENO"; then :
12313 ac_cv_prog_lex_yytext_pointer=yes
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_save_LIBS
12318
12319 fi
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12321 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12322 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12323
12324 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12325
12326 fi
12327 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12328
12329 fi
12330 if test "$LEX" = :; then
12331 LEX=${am_missing_run}flex
12332 fi
12333
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12335 $as_echo_n "checking for library containing socket... " >&6; }
12336 if ${ac_cv_search_socket+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 ac_func_search_save_LIBS=$LIBS
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12342
12343 /* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
12346 #ifdef __cplusplus
12347 extern "C"
12348 #endif
12349 char socket ();
12350 int
12351 main ()
12352 {
12353 return socket ();
12354 ;
12355 return 0;
12356 }
12357 _ACEOF
12358 for ac_lib in '' socket; do
12359 if test -z "$ac_lib"; then
12360 ac_res="none required"
12361 else
12362 ac_res=-l$ac_lib
12363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12364 fi
12365 if ac_fn_c_try_link "$LINENO"; then :
12366 ac_cv_search_socket=$ac_res
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext
12370 if ${ac_cv_search_socket+:} false; then :
12371 break
12372 fi
12373 done
12374 if ${ac_cv_search_socket+:} false; then :
12375
12376 else
12377 ac_cv_search_socket=no
12378 fi
12379 rm conftest.$ac_ext
12380 LIBS=$ac_func_search_save_LIBS
12381 fi
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12383 $as_echo "$ac_cv_search_socket" >&6; }
12384 ac_res=$ac_cv_search_socket
12385 if test "$ac_res" != no; then :
12386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12387
12388 else
12389 as_fn_error $? "socket library not found" "$LINENO" 5
12390 fi
12391
12392 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12393 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12394
12395 else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12397 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12398 if ${ac_cv_search_getaddrinfo+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 ac_func_search_save_LIBS=$LIBS
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char getaddrinfo ();
12412 int
12413 main ()
12414 {
12415 return getaddrinfo ();
12416 ;
12417 return 0;
12418 }
12419 _ACEOF
12420 for ac_lib in '' nsl; do
12421 if test -z "$ac_lib"; then
12422 ac_res="none required"
12423 else
12424 ac_res=-l$ac_lib
12425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12426 fi
12427 if ac_fn_c_try_link "$LINENO"; then :
12428 ac_cv_search_getaddrinfo=$ac_res
12429 fi
12430 rm -f core conftest.err conftest.$ac_objext \
12431 conftest$ac_exeext
12432 if ${ac_cv_search_getaddrinfo+:} false; then :
12433 break
12434 fi
12435 done
12436 if ${ac_cv_search_getaddrinfo+:} false; then :
12437
12438 else
12439 ac_cv_search_getaddrinfo=no
12440 fi
12441 rm conftest.$ac_ext
12442 LIBS=$ac_func_search_save_LIBS
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12445 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12446 ac_res=$ac_cv_search_getaddrinfo
12447 if test "$ac_res" != no; then :
12448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12449
12450 fi
12451
12452 fi
12453
12454 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12455 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12456
12457 else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12459 $as_echo_n "checking for library containing getnameinfo... " >&6; }
12460 if ${ac_cv_search_getnameinfo+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 ac_func_search_save_LIBS=$LIBS
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466
12467 /* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply. */
12470 #ifdef __cplusplus
12471 extern "C"
12472 #endif
12473 char getnameinfo ();
12474 int
12475 main ()
12476 {
12477 return getnameinfo ();
12478 ;
12479 return 0;
12480 }
12481 _ACEOF
12482 for ac_lib in '' nsl; do
12483 if test -z "$ac_lib"; then
12484 ac_res="none required"
12485 else
12486 ac_res=-l$ac_lib
12487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12488 fi
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 ac_cv_search_getnameinfo=$ac_res
12491 fi
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext
12494 if ${ac_cv_search_getnameinfo+:} false; then :
12495 break
12496 fi
12497 done
12498 if ${ac_cv_search_getnameinfo+:} false; then :
12499
12500 else
12501 ac_cv_search_getnameinfo=no
12502 fi
12503 rm conftest.$ac_ext
12504 LIBS=$ac_func_search_save_LIBS
12505 fi
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12507 $as_echo "$ac_cv_search_getnameinfo" >&6; }
12508 ac_res=$ac_cv_search_getnameinfo
12509 if test "$ac_res" != no; then :
12510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12511
12512 fi
12513
12514 fi
12515
12516
12517 for ac_func in strlcpy strlcat
12518 do :
12519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12520 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12521 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12522 cat >>confdefs.h <<_ACEOF
12523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12524 _ACEOF
12525
12526 fi
12527 done
12528
12529
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12531 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12532 if ${ac_cv_c_bigendian+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 ac_cv_c_bigendian=unknown
12536 # See if we're dealing with a universal compiler.
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12539 #ifndef __APPLE_CC__
12540 not a universal capable compiler
12541 #endif
12542 typedef int dummy;
12543
12544 _ACEOF
12545 if ac_fn_c_try_compile "$LINENO"; then :
12546
12547 # Check for potential -arch flags. It is not universal unless
12548 # there are at least two -arch flags with different values.
12549 ac_arch=
12550 ac_prev=
12551 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12552 if test -n "$ac_prev"; then
12553 case $ac_word in
12554 i?86 | x86_64 | ppc | ppc64)
12555 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12556 ac_arch=$ac_word
12557 else
12558 ac_cv_c_bigendian=universal
12559 break
12560 fi
12561 ;;
12562 esac
12563 ac_prev=
12564 elif test "x$ac_word" = "x-arch"; then
12565 ac_prev=arch
12566 fi
12567 done
12568 fi
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 if test $ac_cv_c_bigendian = unknown; then
12571 # See if sys/param.h defines the BYTE_ORDER macro.
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12574 #include <sys/types.h>
12575 #include <sys/param.h>
12576
12577 int
12578 main ()
12579 {
12580 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12581 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12582 && LITTLE_ENDIAN)
12583 bogus endian macros
12584 #endif
12585
12586 ;
12587 return 0;
12588 }
12589 _ACEOF
12590 if ac_fn_c_try_compile "$LINENO"; then :
12591 # It does; now see whether it defined to BIG_ENDIAN or not.
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12594 #include <sys/types.h>
12595 #include <sys/param.h>
12596
12597 int
12598 main ()
12599 {
12600 #if BYTE_ORDER != BIG_ENDIAN
12601 not big endian
12602 #endif
12603
12604 ;
12605 return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_compile "$LINENO"; then :
12609 ac_cv_c_bigendian=yes
12610 else
12611 ac_cv_c_bigendian=no
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614 fi
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 fi
12617 if test $ac_cv_c_bigendian = unknown; then
12618 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621 #include <limits.h>
12622
12623 int
12624 main ()
12625 {
12626 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12627 bogus endian macros
12628 #endif
12629
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_compile "$LINENO"; then :
12635 # It does; now see whether it defined to _BIG_ENDIAN or not.
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12638 #include <limits.h>
12639
12640 int
12641 main ()
12642 {
12643 #ifndef _BIG_ENDIAN
12644 not big endian
12645 #endif
12646
12647 ;
12648 return 0;
12649 }
12650 _ACEOF
12651 if ac_fn_c_try_compile "$LINENO"; then :
12652 ac_cv_c_bigendian=yes
12653 else
12654 ac_cv_c_bigendian=no
12655 fi
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657 fi
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 fi
12660 if test $ac_cv_c_bigendian = unknown; then
12661 # Compile a test program.
12662 if test "$cross_compiling" = yes; then :
12663 # Try to guess by grepping values from an object file.
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12666 short int ascii_mm[] =
12667 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12668 short int ascii_ii[] =
12669 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12670 int use_ascii (int i) {
12671 return ascii_mm[i] + ascii_ii[i];
12672 }
12673 short int ebcdic_ii[] =
12674 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12675 short int ebcdic_mm[] =
12676 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12677 int use_ebcdic (int i) {
12678 return ebcdic_mm[i] + ebcdic_ii[i];
12679 }
12680 extern int foo;
12681
12682 int
12683 main ()
12684 {
12685 return use_ascii (foo) == use_ebcdic (foo);
12686 ;
12687 return 0;
12688 }
12689 _ACEOF
12690 if ac_fn_c_try_compile "$LINENO"; then :
12691 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12692 ac_cv_c_bigendian=yes
12693 fi
12694 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12695 if test "$ac_cv_c_bigendian" = unknown; then
12696 ac_cv_c_bigendian=no
12697 else
12698 # finding both strings is unlikely to happen, but who knows?
12699 ac_cv_c_bigendian=unknown
12700 fi
12701 fi
12702 fi
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704 else
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707 $ac_includes_default
12708 int
12709 main ()
12710 {
12711
12712 /* Are we little or big endian? From Harbison&Steele. */
12713 union
12714 {
12715 long int l;
12716 char c[sizeof (long int)];
12717 } u;
12718 u.l = 1;
12719 return u.c[sizeof (long int) - 1] == 1;
12720
12721 ;
12722 return 0;
12723 }
12724 _ACEOF
12725 if ac_fn_c_try_run "$LINENO"; then :
12726 ac_cv_c_bigendian=no
12727 else
12728 ac_cv_c_bigendian=yes
12729 fi
12730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12731 conftest.$ac_objext conftest.beam conftest.$ac_ext
12732 fi
12733
12734 fi
12735 fi
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12737 $as_echo "$ac_cv_c_bigendian" >&6; }
12738 case $ac_cv_c_bigendian in #(
12739 yes)
12740 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12741 ;; #(
12742 no)
12743 ;; #(
12744 universal)
12745
12746 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12747
12748 ;; #(
12749 *)
12750 as_fn_error $? "unknown endianness
12751 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12752 esac
12753
12754
12755 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
12756
12757 cat >confcache <<\_ACEOF
12758 # This file is a shell script that caches the results of configure
12759 # tests run on this system so they can be shared between configure
12760 # scripts and configure runs, see configure's option --config-cache.
12761 # It is not useful on other systems. If it contains results you don't
12762 # want to keep, you may remove or edit it.
12763 #
12764 # config.status only pays attention to the cache file if you give it
12765 # the --recheck option to rerun configure.
12766 #
12767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12769 # following values.
12770
12771 _ACEOF
12772
12773 # The following way of writing the cache mishandles newlines in values,
12774 # but we know of no workaround that is simple, portable, and efficient.
12775 # So, we kill variables containing newlines.
12776 # Ultrix sh set writes to stderr and can't be redirected directly,
12777 # and sets the high bit in the cache file unless we assign to the vars.
12778 (
12779 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12780 eval ac_val=\$$ac_var
12781 case $ac_val in #(
12782 *${as_nl}*)
12783 case $ac_var in #(
12784 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12786 esac
12787 case $ac_var in #(
12788 _ | IFS | as_nl) ;; #(
12789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12790 *) { eval $ac_var=; unset $ac_var;} ;;
12791 esac ;;
12792 esac
12793 done
12794
12795 (set) 2>&1 |
12796 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12797 *${as_nl}ac_space=\ *)
12798 # `set' does not quote correctly, so add quotes: double-quote
12799 # substitution turns \\\\ into \\, and sed turns \\ into \.
12800 sed -n \
12801 "s/'/'\\\\''/g;
12802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12803 ;; #(
12804 *)
12805 # `set' quotes correctly as required by POSIX, so do not add quotes.
12806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12807 ;;
12808 esac |
12809 sort
12810 ) |
12811 sed '
12812 /^ac_cv_env_/b end
12813 t clear
12814 :clear
12815 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12816 t end
12817 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12818 :end' >>confcache
12819 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12820 if test -w "$cache_file"; then
12821 if test "x$cache_file" != "x/dev/null"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12823 $as_echo "$as_me: updating cache $cache_file" >&6;}
12824 if test ! -f "$cache_file" || test -h "$cache_file"; then
12825 cat confcache >"$cache_file"
12826 else
12827 case $cache_file in #(
12828 */* | ?:*)
12829 mv -f confcache "$cache_file"$$ &&
12830 mv -f "$cache_file"$$ "$cache_file" ;; #(
12831 *)
12832 mv -f confcache "$cache_file" ;;
12833 esac
12834 fi
12835 fi
12836 else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12838 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12839 fi
12840 fi
12841 rm -f confcache
12842
12843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12844 # Let make expand exec_prefix.
12845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12846
12847 DEFS=-DHAVE_CONFIG_H
12848
12849 ac_libobjs=
12850 ac_ltlibobjs=
12851 U=
12852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12853 # 1. Remove the extension, and $U if already installed.
12854 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12855 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12856 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12857 # will be set to the directory where LIBOBJS objects are built.
12858 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12859 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12860 done
12861 LIBOBJS=$ac_libobjs
12862
12863 LTLIBOBJS=$ac_ltlibobjs
12864
12865
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12867 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12868 if test -n "$am_sleep_pid"; then
12869 # Hide warnings about reused PIDs.
12870 wait $am_sleep_pid 2>/dev/null
12871 fi
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12873 $as_echo "done" >&6; }
12874 if test -n "$EXEEXT"; then
12875 am__EXEEXT_TRUE=
12876 am__EXEEXT_FALSE='#'
12877 else
12878 am__EXEEXT_TRUE='#'
12879 am__EXEEXT_FALSE=
12880 fi
12881
12882 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12883 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12885 fi
12886 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12887 as_fn_error $? "conditional \"AMDEP\" was never defined.
12888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12889 fi
12890 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12891 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12893 fi
12894
12895
12896 : "${CONFIG_STATUS=./config.status}"
12897 ac_write_fail=0
12898 ac_clean_files_save=$ac_clean_files
12899 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12901 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12902 as_write_fail=0
12903 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12904 #! $SHELL
12905 # Generated by $as_me.
12906 # Run this file to recreate the current configuration.
12907 # Compiler output produced by configure, useful for debugging
12908 # configure, is in config.log if it exists.
12909
12910 debug=false
12911 ac_cs_recheck=false
12912 ac_cs_silent=false
12913
12914 SHELL=\${CONFIG_SHELL-$SHELL}
12915 export SHELL
12916 _ASEOF
12917 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12918 ## -------------------- ##
12919 ## M4sh Initialization. ##
12920 ## -------------------- ##
12921
12922 # Be more Bourne compatible
12923 DUALCASE=1; export DUALCASE # for MKS sh
12924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12925 emulate sh
12926 NULLCMD=:
12927 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12928 # is contrary to our usage. Disable this feature.
12929 alias -g '${1+"$@"}'='"$@"'
12930 setopt NO_GLOB_SUBST
12931 else
12932 case `(set -o) 2>/dev/null` in #(
12933 *posix*) :
12934 set -o posix ;; #(
12935 *) :
12936 ;;
12937 esac
12938 fi
12939
12940
12941 as_nl='
12942 '
12943 export as_nl
12944 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12945 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12948 # Prefer a ksh shell builtin over an external printf program on Solaris,
12949 # but without wasting forks for bash or zsh.
12950 if test -z "$BASH_VERSION$ZSH_VERSION" \
12951 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12952 as_echo='print -r --'
12953 as_echo_n='print -rn --'
12954 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12955 as_echo='printf %s\n'
12956 as_echo_n='printf %s'
12957 else
12958 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12959 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12960 as_echo_n='/usr/ucb/echo -n'
12961 else
12962 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12963 as_echo_n_body='eval
12964 arg=$1;
12965 case $arg in #(
12966 *"$as_nl"*)
12967 expr "X$arg" : "X\\(.*\\)$as_nl";
12968 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12969 esac;
12970 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12971 '
12972 export as_echo_n_body
12973 as_echo_n='sh -c $as_echo_n_body as_echo'
12974 fi
12975 export as_echo_body
12976 as_echo='sh -c $as_echo_body as_echo'
12977 fi
12978
12979 # The user is always right.
12980 if test "${PATH_SEPARATOR+set}" != set; then
12981 PATH_SEPARATOR=:
12982 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12983 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12984 PATH_SEPARATOR=';'
12985 }
12986 fi
12987
12988
12989 # IFS
12990 # We need space, tab and new line, in precisely that order. Quoting is
12991 # there to prevent editors from complaining about space-tab.
12992 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12993 # splitting by setting IFS to empty value.)
12994 IFS=" "" $as_nl"
12995
12996 # Find who we are. Look in the path if we contain no directory separator.
12997 as_myself=
12998 case $0 in #((
12999 *[\\/]* ) as_myself=$0 ;;
13000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13002 do
13003 IFS=$as_save_IFS
13004 test -z "$as_dir" && as_dir=.
13005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13006 done
13007 IFS=$as_save_IFS
13008
13009 ;;
13010 esac
13011 # We did not find ourselves, most probably we were run as `sh COMMAND'
13012 # in which case we are not to be found in the path.
13013 if test "x$as_myself" = x; then
13014 as_myself=$0
13015 fi
13016 if test ! -f "$as_myself"; then
13017 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13018 exit 1
13019 fi
13020
13021 # Unset variables that we do not need and which cause bugs (e.g. in
13022 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13023 # suppresses any "Segmentation fault" message there. '((' could
13024 # trigger a bug in pdksh 5.2.14.
13025 for as_var in BASH_ENV ENV MAIL MAILPATH
13026 do eval test x\${$as_var+set} = xset \
13027 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13028 done
13029 PS1='$ '
13030 PS2='> '
13031 PS4='+ '
13032
13033 # NLS nuisances.
13034 LC_ALL=C
13035 export LC_ALL
13036 LANGUAGE=C
13037 export LANGUAGE
13038
13039 # CDPATH.
13040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13041
13042
13043 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13044 # ----------------------------------------
13045 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13046 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13047 # script with STATUS, using 1 if that was 0.
13048 as_fn_error ()
13049 {
13050 as_status=$1; test $as_status -eq 0 && as_status=1
13051 if test "$4"; then
13052 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13053 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13054 fi
13055 $as_echo "$as_me: error: $2" >&2
13056 as_fn_exit $as_status
13057 } # as_fn_error
13058
13059
13060 # as_fn_set_status STATUS
13061 # -----------------------
13062 # Set $? to STATUS, without forking.
13063 as_fn_set_status ()
13064 {
13065 return $1
13066 } # as_fn_set_status
13067
13068 # as_fn_exit STATUS
13069 # -----------------
13070 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13071 as_fn_exit ()
13072 {
13073 set +e
13074 as_fn_set_status $1
13075 exit $1
13076 } # as_fn_exit
13077
13078 # as_fn_unset VAR
13079 # ---------------
13080 # Portably unset VAR.
13081 as_fn_unset ()
13082 {
13083 { eval $1=; unset $1;}
13084 }
13085 as_unset=as_fn_unset
13086 # as_fn_append VAR VALUE
13087 # ----------------------
13088 # Append the text in VALUE to the end of the definition contained in VAR. Take
13089 # advantage of any shell optimizations that allow amortized linear growth over
13090 # repeated appends, instead of the typical quadratic growth present in naive
13091 # implementations.
13092 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13093 eval 'as_fn_append ()
13094 {
13095 eval $1+=\$2
13096 }'
13097 else
13098 as_fn_append ()
13099 {
13100 eval $1=\$$1\$2
13101 }
13102 fi # as_fn_append
13103
13104 # as_fn_arith ARG...
13105 # ------------------
13106 # Perform arithmetic evaluation on the ARGs, and store the result in the
13107 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13108 # must be portable across $(()) and expr.
13109 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13110 eval 'as_fn_arith ()
13111 {
13112 as_val=$(( $* ))
13113 }'
13114 else
13115 as_fn_arith ()
13116 {
13117 as_val=`expr "$@" || test $? -eq 1`
13118 }
13119 fi # as_fn_arith
13120
13121
13122 if expr a : '\(a\)' >/dev/null 2>&1 &&
13123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13124 as_expr=expr
13125 else
13126 as_expr=false
13127 fi
13128
13129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13130 as_basename=basename
13131 else
13132 as_basename=false
13133 fi
13134
13135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13136 as_dirname=dirname
13137 else
13138 as_dirname=false
13139 fi
13140
13141 as_me=`$as_basename -- "$0" ||
13142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13143 X"$0" : 'X\(//\)$' \| \
13144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13145 $as_echo X/"$0" |
13146 sed '/^.*\/\([^/][^/]*\)\/*$/{
13147 s//\1/
13148 q
13149 }
13150 /^X\/\(\/\/\)$/{
13151 s//\1/
13152 q
13153 }
13154 /^X\/\(\/\).*/{
13155 s//\1/
13156 q
13157 }
13158 s/.*/./; q'`
13159
13160 # Avoid depending upon Character Ranges.
13161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13164 as_cr_digits='0123456789'
13165 as_cr_alnum=$as_cr_Letters$as_cr_digits
13166
13167 ECHO_C= ECHO_N= ECHO_T=
13168 case `echo -n x` in #(((((
13169 -n*)
13170 case `echo 'xy\c'` in
13171 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13172 xy) ECHO_C='\c';;
13173 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13174 ECHO_T=' ';;
13175 esac;;
13176 *)
13177 ECHO_N='-n';;
13178 esac
13179
13180 rm -f conf$$ conf$$.exe conf$$.file
13181 if test -d conf$$.dir; then
13182 rm -f conf$$.dir/conf$$.file
13183 else
13184 rm -f conf$$.dir
13185 mkdir conf$$.dir 2>/dev/null
13186 fi
13187 if (echo >conf$$.file) 2>/dev/null; then
13188 if ln -s conf$$.file conf$$ 2>/dev/null; then
13189 as_ln_s='ln -s'
13190 # ... but there are two gotchas:
13191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13193 # In both cases, we have to default to `cp -pR'.
13194 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13195 as_ln_s='cp -pR'
13196 elif ln conf$$.file conf$$ 2>/dev/null; then
13197 as_ln_s=ln
13198 else
13199 as_ln_s='cp -pR'
13200 fi
13201 else
13202 as_ln_s='cp -pR'
13203 fi
13204 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13205 rmdir conf$$.dir 2>/dev/null
13206
13207
13208 # as_fn_mkdir_p
13209 # -------------
13210 # Create "$as_dir" as a directory, including parents if necessary.
13211 as_fn_mkdir_p ()
13212 {
13213
13214 case $as_dir in #(
13215 -*) as_dir=./$as_dir;;
13216 esac
13217 test -d "$as_dir" || eval $as_mkdir_p || {
13218 as_dirs=
13219 while :; do
13220 case $as_dir in #(
13221 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13222 *) as_qdir=$as_dir;;
13223 esac
13224 as_dirs="'$as_qdir' $as_dirs"
13225 as_dir=`$as_dirname -- "$as_dir" ||
13226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13227 X"$as_dir" : 'X\(//\)[^/]' \| \
13228 X"$as_dir" : 'X\(//\)$' \| \
13229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13230 $as_echo X"$as_dir" |
13231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13232 s//\1/
13233 q
13234 }
13235 /^X\(\/\/\)[^/].*/{
13236 s//\1/
13237 q
13238 }
13239 /^X\(\/\/\)$/{
13240 s//\1/
13241 q
13242 }
13243 /^X\(\/\).*/{
13244 s//\1/
13245 q
13246 }
13247 s/.*/./; q'`
13248 test -d "$as_dir" && break
13249 done
13250 test -z "$as_dirs" || eval "mkdir $as_dirs"
13251 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13252
13253
13254 } # as_fn_mkdir_p
13255 if mkdir -p . 2>/dev/null; then
13256 as_mkdir_p='mkdir -p "$as_dir"'
13257 else
13258 test -d ./-p && rmdir ./-p
13259 as_mkdir_p=false
13260 fi
13261
13262
13263 # as_fn_executable_p FILE
13264 # -----------------------
13265 # Test if FILE is an executable regular file.
13266 as_fn_executable_p ()
13267 {
13268 test -f "$1" && test -x "$1"
13269 } # as_fn_executable_p
13270 as_test_x='test -x'
13271 as_executable_p=as_fn_executable_p
13272
13273 # Sed expression to map a string onto a valid CPP name.
13274 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13275
13276 # Sed expression to map a string onto a valid variable name.
13277 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13278
13279
13280 exec 6>&1
13281 ## ----------------------------------- ##
13282 ## Main body of $CONFIG_STATUS script. ##
13283 ## ----------------------------------- ##
13284 _ASEOF
13285 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13286
13287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13288 # Save the log message, to keep $0 and so on meaningful, and to
13289 # report actual input values of CONFIG_FILES etc. instead of their
13290 # values after options handling.
13291 ac_log="
13292 This file was extended by hopm $as_me 1.0.0beta1, which was
13293 generated by GNU Autoconf 2.69. Invocation command line was
13294
13295 CONFIG_FILES = $CONFIG_FILES
13296 CONFIG_HEADERS = $CONFIG_HEADERS
13297 CONFIG_LINKS = $CONFIG_LINKS
13298 CONFIG_COMMANDS = $CONFIG_COMMANDS
13299 $ $0 $@
13300
13301 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13302 "
13303
13304 _ACEOF
13305
13306 case $ac_config_files in *"
13307 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13308 esac
13309
13310 case $ac_config_headers in *"
13311 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13312 esac
13313
13314
13315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13316 # Files that config.status was made for.
13317 config_files="$ac_config_files"
13318 config_headers="$ac_config_headers"
13319 config_commands="$ac_config_commands"
13320
13321 _ACEOF
13322
13323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13324 ac_cs_usage="\
13325 \`$as_me' instantiates files and other configuration actions
13326 from templates according to the current configuration. Unless the files
13327 and actions are specified as TAGs, all are instantiated by default.
13328
13329 Usage: $0 [OPTION]... [TAG]...
13330
13331 -h, --help print this help, then exit
13332 -V, --version print version number and configuration settings, then exit
13333 --config print configuration, then exit
13334 -q, --quiet, --silent
13335 do not print progress messages
13336 -d, --debug don't remove temporary files
13337 --recheck update $as_me by reconfiguring in the same conditions
13338 --file=FILE[:TEMPLATE]
13339 instantiate the configuration file FILE
13340 --header=FILE[:TEMPLATE]
13341 instantiate the configuration header FILE
13342
13343 Configuration files:
13344 $config_files
13345
13346 Configuration headers:
13347 $config_headers
13348
13349 Configuration commands:
13350 $config_commands
13351
13352 Report bugs to the package provider."
13353
13354 _ACEOF
13355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13356 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13357 ac_cs_version="\\
13358 hopm config.status 1.0.0beta1
13359 configured by $0, generated by GNU Autoconf 2.69,
13360 with options \\"\$ac_cs_config\\"
13361
13362 Copyright (C) 2012 Free Software Foundation, Inc.
13363 This config.status script is free software; the Free Software Foundation
13364 gives unlimited permission to copy, distribute and modify it."
13365
13366 ac_pwd='$ac_pwd'
13367 srcdir='$srcdir'
13368 INSTALL='$INSTALL'
13369 MKDIR_P='$MKDIR_P'
13370 AWK='$AWK'
13371 test -n "\$AWK" || AWK=awk
13372 _ACEOF
13373
13374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13375 # The default lists apply if the user does not specify any file.
13376 ac_need_defaults=:
13377 while test $# != 0
13378 do
13379 case $1 in
13380 --*=?*)
13381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13382 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13383 ac_shift=:
13384 ;;
13385 --*=)
13386 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13387 ac_optarg=
13388 ac_shift=:
13389 ;;
13390 *)
13391 ac_option=$1
13392 ac_optarg=$2
13393 ac_shift=shift
13394 ;;
13395 esac
13396
13397 case $ac_option in
13398 # Handling of the options.
13399 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13400 ac_cs_recheck=: ;;
13401 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13402 $as_echo "$ac_cs_version"; exit ;;
13403 --config | --confi | --conf | --con | --co | --c )
13404 $as_echo "$ac_cs_config"; exit ;;
13405 --debug | --debu | --deb | --de | --d | -d )
13406 debug=: ;;
13407 --file | --fil | --fi | --f )
13408 $ac_shift
13409 case $ac_optarg in
13410 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13411 '') as_fn_error $? "missing file argument" ;;
13412 esac
13413 as_fn_append CONFIG_FILES " '$ac_optarg'"
13414 ac_need_defaults=false;;
13415 --header | --heade | --head | --hea )
13416 $ac_shift
13417 case $ac_optarg in
13418 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13419 esac
13420 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13421 ac_need_defaults=false;;
13422 --he | --h)
13423 # Conflict between --help and --header
13424 as_fn_error $? "ambiguous option: \`$1'
13425 Try \`$0 --help' for more information.";;
13426 --help | --hel | -h )
13427 $as_echo "$ac_cs_usage"; exit ;;
13428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13429 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13430 ac_cs_silent=: ;;
13431
13432 # This is an error.
13433 -*) as_fn_error $? "unrecognized option: \`$1'
13434 Try \`$0 --help' for more information." ;;
13435
13436 *) as_fn_append ac_config_targets " $1"
13437 ac_need_defaults=false ;;
13438
13439 esac
13440 shift
13441 done
13442
13443 ac_configure_extra_args=
13444
13445 if $ac_cs_silent; then
13446 exec 6>/dev/null
13447 ac_configure_extra_args="$ac_configure_extra_args --silent"
13448 fi
13449
13450 _ACEOF
13451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13452 if \$ac_cs_recheck; then
13453 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13454 shift
13455 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13456 CONFIG_SHELL='$SHELL'
13457 export CONFIG_SHELL
13458 exec "\$@"
13459 fi
13460
13461 _ACEOF
13462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13463 exec 5>>config.log
13464 {
13465 echo
13466 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13467 ## Running $as_me. ##
13468 _ASBOX
13469 $as_echo "$ac_log"
13470 } >&5
13471
13472 _ACEOF
13473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13474 #
13475 # INIT-COMMANDS
13476 #
13477 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13478
13479
13480 # The HP-UX ksh and POSIX shell print the target directory to stdout
13481 # if CDPATH is set.
13482 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13483
13484 sed_quote_subst='$sed_quote_subst'
13485 double_quote_subst='$double_quote_subst'
13486 delay_variable_subst='$delay_variable_subst'
13487 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13488 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13489 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13490 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13491 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13492 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13493 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13494 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13495 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13496 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13497 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13498 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13499 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13500 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13501 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13502 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13503 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13504 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13505 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13506 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13507 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13508 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13509 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13510 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13511 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13512 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13513 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13514 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13515 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13516 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13517 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13518 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13519 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13520 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13521 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13522 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13523 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13524 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13525 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13526 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13527 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13528 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13529 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13530 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13531 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13532 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13533 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13534 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13535 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13536 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13537 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13538 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13539 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13540 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13541 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13542 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13543 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13544 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13545 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"`'
13546 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13547 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13548 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13549 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13550 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13551 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13552 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13553 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13554 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13555 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13556 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13557 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13558 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13559 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13560 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13561 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13562 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13563 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13564 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13565 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13566 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13567 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13568 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13569 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13570 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13571 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13572 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13573 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13574 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13575 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13576 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13577 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13578 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13579 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13580 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13581 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13582 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13583 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13584 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13585 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13586 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13587 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13588 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13589 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13590 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13591 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13592 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13593 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13594 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13595 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13596 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13597 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13598 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13599 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13600 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13601 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13602 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13603 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13604 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13605 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13606 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13607 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13608 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13609 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13610 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13611 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13612 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13613 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13614 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13615 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13616 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13617 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13618 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13619 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13620 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13621
13622 LTCC='$LTCC'
13623 LTCFLAGS='$LTCFLAGS'
13624 compiler='$compiler_DEFAULT'
13625
13626 # A function that is used when there is no print builtin or printf.
13627 func_fallback_echo ()
13628 {
13629 eval 'cat <<_LTECHO_EOF
13630 \$1
13631 _LTECHO_EOF'
13632 }
13633
13634 # Quote evaled strings.
13635 for var in SHELL \
13636 ECHO \
13637 PATH_SEPARATOR \
13638 SED \
13639 GREP \
13640 EGREP \
13641 FGREP \
13642 LD \
13643 NM \
13644 LN_S \
13645 lt_SP2NL \
13646 lt_NL2SP \
13647 reload_flag \
13648 OBJDUMP \
13649 deplibs_check_method \
13650 file_magic_cmd \
13651 file_magic_glob \
13652 want_nocaseglob \
13653 DLLTOOL \
13654 sharedlib_from_linklib_cmd \
13655 AR \
13656 AR_FLAGS \
13657 archiver_list_spec \
13658 STRIP \
13659 RANLIB \
13660 CC \
13661 CFLAGS \
13662 compiler \
13663 lt_cv_sys_global_symbol_pipe \
13664 lt_cv_sys_global_symbol_to_cdecl \
13665 lt_cv_sys_global_symbol_to_import \
13666 lt_cv_sys_global_symbol_to_c_name_address \
13667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13668 lt_cv_nm_interface \
13669 nm_file_list_spec \
13670 lt_cv_truncate_bin \
13671 lt_prog_compiler_no_builtin_flag \
13672 lt_prog_compiler_pic \
13673 lt_prog_compiler_wl \
13674 lt_prog_compiler_static \
13675 lt_cv_prog_compiler_c_o \
13676 need_locks \
13677 MANIFEST_TOOL \
13678 DSYMUTIL \
13679 NMEDIT \
13680 LIPO \
13681 OTOOL \
13682 OTOOL64 \
13683 shrext_cmds \
13684 export_dynamic_flag_spec \
13685 whole_archive_flag_spec \
13686 compiler_needs_object \
13687 with_gnu_ld \
13688 allow_undefined_flag \
13689 no_undefined_flag \
13690 hardcode_libdir_flag_spec \
13691 hardcode_libdir_separator \
13692 exclude_expsyms \
13693 include_expsyms \
13694 file_list_spec \
13695 variables_saved_for_relink \
13696 libname_spec \
13697 library_names_spec \
13698 soname_spec \
13699 install_override_mode \
13700 finish_eval \
13701 old_striplib \
13702 striplib; do
13703 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13704 *[\\\\\\\`\\"\\\$]*)
13705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13706 ;;
13707 *)
13708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13709 ;;
13710 esac
13711 done
13712
13713 # Double-quote double-evaled strings.
13714 for var in reload_cmds \
13715 old_postinstall_cmds \
13716 old_postuninstall_cmds \
13717 old_archive_cmds \
13718 extract_expsyms_cmds \
13719 old_archive_from_new_cmds \
13720 old_archive_from_expsyms_cmds \
13721 archive_cmds \
13722 archive_expsym_cmds \
13723 module_cmds \
13724 module_expsym_cmds \
13725 export_symbols_cmds \
13726 prelink_cmds \
13727 postlink_cmds \
13728 postinstall_cmds \
13729 postuninstall_cmds \
13730 finish_cmds \
13731 sys_lib_search_path_spec \
13732 sys_lib_dlsearch_path_spec; do
13733 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13734 *[\\\\\\\`\\"\\\$]*)
13735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13736 ;;
13737 *)
13738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13739 ;;
13740 esac
13741 done
13742
13743 ac_aux_dir='$ac_aux_dir'
13744
13745 # See if we are running on zsh, and set the options that allow our
13746 # commands through without removal of \ escapes INIT.
13747 if test -n "\${ZSH_VERSION+set}"; then
13748 setopt NO_GLOB_SUBST
13749 fi
13750
13751
13752 PACKAGE='$PACKAGE'
13753 VERSION='$VERSION'
13754 RM='$RM'
13755 ofile='$ofile'
13756
13757
13758
13759
13760 _ACEOF
13761
13762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13763
13764 # Handling of arguments.
13765 for ac_config_target in $ac_config_targets
13766 do
13767 case $ac_config_target in
13768 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13769 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13770 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13772 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13773 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13774 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
13775 "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
13776
13777 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13778 esac
13779 done
13780
13781
13782 # If the user did not use the arguments to specify the items to instantiate,
13783 # then the envvar interface is used. Set only those that are not.
13784 # We use the long form for the default assignment because of an extremely
13785 # bizarre bug on SunOS 4.1.3.
13786 if $ac_need_defaults; then
13787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13788 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13790 fi
13791
13792 # Have a temporary directory for convenience. Make it in the build tree
13793 # simply because there is no reason against having it here, and in addition,
13794 # creating and moving files from /tmp can sometimes cause problems.
13795 # Hook for its removal unless debugging.
13796 # Note that there is a small window in which the directory will not be cleaned:
13797 # after its creation but before its name has been assigned to `$tmp'.
13798 $debug ||
13799 {
13800 tmp= ac_tmp=
13801 trap 'exit_status=$?
13802 : "${ac_tmp:=$tmp}"
13803 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13804 ' 0
13805 trap 'as_fn_exit 1' 1 2 13 15
13806 }
13807 # Create a (secure) tmp directory for tmp files.
13808
13809 {
13810 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13811 test -d "$tmp"
13812 } ||
13813 {
13814 tmp=./conf$$-$RANDOM
13815 (umask 077 && mkdir "$tmp")
13816 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13817 ac_tmp=$tmp
13818
13819 # Set up the scripts for CONFIG_FILES section.
13820 # No need to generate them if there are no CONFIG_FILES.
13821 # This happens for instance with `./config.status config.h'.
13822 if test -n "$CONFIG_FILES"; then
13823
13824
13825 ac_cr=`echo X | tr X '\015'`
13826 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13827 # But we know of no other shell where ac_cr would be empty at this
13828 # point, so we can use a bashism as a fallback.
13829 if test "x$ac_cr" = x; then
13830 eval ac_cr=\$\'\\r\'
13831 fi
13832 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13833 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13834 ac_cs_awk_cr='\\r'
13835 else
13836 ac_cs_awk_cr=$ac_cr
13837 fi
13838
13839 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13840 _ACEOF
13841
13842
13843 {
13844 echo "cat >conf$$subs.awk <<_ACEOF" &&
13845 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13846 echo "_ACEOF"
13847 } >conf$$subs.sh ||
13848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13849 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13850 ac_delim='%!_!# '
13851 for ac_last_try in false false false false false :; do
13852 . ./conf$$subs.sh ||
13853 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13854
13855 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13856 if test $ac_delim_n = $ac_delim_num; then
13857 break
13858 elif $ac_last_try; then
13859 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13860 else
13861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13862 fi
13863 done
13864 rm -f conf$$subs.sh
13865
13866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13867 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13868 _ACEOF
13869 sed -n '
13870 h
13871 s/^/S["/; s/!.*/"]=/
13872 p
13873 g
13874 s/^[^!]*!//
13875 :repl
13876 t repl
13877 s/'"$ac_delim"'$//
13878 t delim
13879 :nl
13880 h
13881 s/\(.\{148\}\)..*/\1/
13882 t more1
13883 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13884 p
13885 n
13886 b repl
13887 :more1
13888 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13889 p
13890 g
13891 s/.\{148\}//
13892 t nl
13893 :delim
13894 h
13895 s/\(.\{148\}\)..*/\1/
13896 t more2
13897 s/["\\]/\\&/g; s/^/"/; s/$/"/
13898 p
13899 b
13900 :more2
13901 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13902 p
13903 g
13904 s/.\{148\}//
13905 t delim
13906 ' <conf$$subs.awk | sed '
13907 /^[^""]/{
13908 N
13909 s/\n//
13910 }
13911 ' >>$CONFIG_STATUS || ac_write_fail=1
13912 rm -f conf$$subs.awk
13913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13914 _ACAWK
13915 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13916 for (key in S) S_is_set[key] = 1
13917 FS = ""
13918
13919 }
13920 {
13921 line = $ 0
13922 nfields = split(line, field, "@")
13923 substed = 0
13924 len = length(field[1])
13925 for (i = 2; i < nfields; i++) {
13926 key = field[i]
13927 keylen = length(key)
13928 if (S_is_set[key]) {
13929 value = S[key]
13930 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13931 len += length(value) + length(field[++i])
13932 substed = 1
13933 } else
13934 len += 1 + keylen
13935 }
13936
13937 print line
13938 }
13939
13940 _ACAWK
13941 _ACEOF
13942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13943 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13944 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13945 else
13946 cat
13947 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13948 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13949 _ACEOF
13950
13951 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13952 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13953 # trailing colons and then remove the whole line if VPATH becomes empty
13954 # (actually we leave an empty line to preserve line numbers).
13955 if test "x$srcdir" = x.; then
13956 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13957 h
13958 s///
13959 s/^/:/
13960 s/[ ]*$/:/
13961 s/:\$(srcdir):/:/g
13962 s/:\${srcdir}:/:/g
13963 s/:@srcdir@:/:/g
13964 s/^:*//
13965 s/:*$//
13966 x
13967 s/\(=[ ]*\).*/\1/
13968 G
13969 s/\n//
13970 s/^[^=]*=[ ]*$//
13971 }'
13972 fi
13973
13974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13975 fi # test -n "$CONFIG_FILES"
13976
13977 # Set up the scripts for CONFIG_HEADERS section.
13978 # No need to generate them if there are no CONFIG_HEADERS.
13979 # This happens for instance with `./config.status Makefile'.
13980 if test -n "$CONFIG_HEADERS"; then
13981 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13982 BEGIN {
13983 _ACEOF
13984
13985 # Transform confdefs.h into an awk script `defines.awk', embedded as
13986 # here-document in config.status, that substitutes the proper values into
13987 # config.h.in to produce config.h.
13988
13989 # Create a delimiter string that does not exist in confdefs.h, to ease
13990 # handling of long lines.
13991 ac_delim='%!_!# '
13992 for ac_last_try in false false :; do
13993 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13994 if test -z "$ac_tt"; then
13995 break
13996 elif $ac_last_try; then
13997 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13998 else
13999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14000 fi
14001 done
14002
14003 # For the awk script, D is an array of macro values keyed by name,
14004 # likewise P contains macro parameters if any. Preserve backslash
14005 # newline sequences.
14006
14007 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14008 sed -n '
14009 s/.\{148\}/&'"$ac_delim"'/g
14010 t rset
14011 :rset
14012 s/^[ ]*#[ ]*define[ ][ ]*/ /
14013 t def
14014 d
14015 :def
14016 s/\\$//
14017 t bsnl
14018 s/["\\]/\\&/g
14019 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14020 D["\1"]=" \3"/p
14021 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14022 d
14023 :bsnl
14024 s/["\\]/\\&/g
14025 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14026 D["\1"]=" \3\\\\\\n"\\/p
14027 t cont
14028 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14029 t cont
14030 d
14031 :cont
14032 n
14033 s/.\{148\}/&'"$ac_delim"'/g
14034 t clear
14035 :clear
14036 s/\\$//
14037 t bsnlc
14038 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14039 d
14040 :bsnlc
14041 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14042 b cont
14043 ' <confdefs.h | sed '
14044 s/'"$ac_delim"'/"\\\
14045 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14046
14047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14048 for (key in D) D_is_set[key] = 1
14049 FS = ""
14050 }
14051 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14052 line = \$ 0
14053 split(line, arg, " ")
14054 if (arg[1] == "#") {
14055 defundef = arg[2]
14056 mac1 = arg[3]
14057 } else {
14058 defundef = substr(arg[1], 2)
14059 mac1 = arg[2]
14060 }
14061 split(mac1, mac2, "(") #)
14062 macro = mac2[1]
14063 prefix = substr(line, 1, index(line, defundef) - 1)
14064 if (D_is_set[macro]) {
14065 # Preserve the white space surrounding the "#".
14066 print prefix "define", macro P[macro] D[macro]
14067 next
14068 } else {
14069 # Replace #undef with comments. This is necessary, for example,
14070 # in the case of _POSIX_SOURCE, which is predefined and required
14071 # on some systems where configure will not decide to define it.
14072 if (defundef == "undef") {
14073 print "/*", prefix defundef, macro, "*/"
14074 next
14075 }
14076 }
14077 }
14078 { print }
14079 _ACAWK
14080 _ACEOF
14081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14082 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14083 fi # test -n "$CONFIG_HEADERS"
14084
14085
14086 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14087 shift
14088 for ac_tag
14089 do
14090 case $ac_tag in
14091 :[FHLC]) ac_mode=$ac_tag; continue;;
14092 esac
14093 case $ac_mode$ac_tag in
14094 :[FHL]*:*);;
14095 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14096 :[FH]-) ac_tag=-:-;;
14097 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14098 esac
14099 ac_save_IFS=$IFS
14100 IFS=:
14101 set x $ac_tag
14102 IFS=$ac_save_IFS
14103 shift
14104 ac_file=$1
14105 shift
14106
14107 case $ac_mode in
14108 :L) ac_source=$1;;
14109 :[FH])
14110 ac_file_inputs=
14111 for ac_f
14112 do
14113 case $ac_f in
14114 -) ac_f="$ac_tmp/stdin";;
14115 *) # Look for the file first in the build tree, then in the source tree
14116 # (if the path is not absolute). The absolute path cannot be DOS-style,
14117 # because $ac_f cannot contain `:'.
14118 test -f "$ac_f" ||
14119 case $ac_f in
14120 [\\/$]*) false;;
14121 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14122 esac ||
14123 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14124 esac
14125 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14126 as_fn_append ac_file_inputs " '$ac_f'"
14127 done
14128
14129 # Let's still pretend it is `configure' which instantiates (i.e., don't
14130 # use $as_me), people would be surprised to read:
14131 # /* config.h. Generated by config.status. */
14132 configure_input='Generated from '`
14133 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14134 `' by configure.'
14135 if test x"$ac_file" != x-; then
14136 configure_input="$ac_file. $configure_input"
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14138 $as_echo "$as_me: creating $ac_file" >&6;}
14139 fi
14140 # Neutralize special characters interpreted by sed in replacement strings.
14141 case $configure_input in #(
14142 *\&* | *\|* | *\\* )
14143 ac_sed_conf_input=`$as_echo "$configure_input" |
14144 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14145 *) ac_sed_conf_input=$configure_input;;
14146 esac
14147
14148 case $ac_tag in
14149 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14150 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14151 esac
14152 ;;
14153 esac
14154
14155 ac_dir=`$as_dirname -- "$ac_file" ||
14156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14157 X"$ac_file" : 'X\(//\)[^/]' \| \
14158 X"$ac_file" : 'X\(//\)$' \| \
14159 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14160 $as_echo X"$ac_file" |
14161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14162 s//\1/
14163 q
14164 }
14165 /^X\(\/\/\)[^/].*/{
14166 s//\1/
14167 q
14168 }
14169 /^X\(\/\/\)$/{
14170 s//\1/
14171 q
14172 }
14173 /^X\(\/\).*/{
14174 s//\1/
14175 q
14176 }
14177 s/.*/./; q'`
14178 as_dir="$ac_dir"; as_fn_mkdir_p
14179 ac_builddir=.
14180
14181 case "$ac_dir" in
14182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14183 *)
14184 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14185 # A ".." for each directory in $ac_dir_suffix.
14186 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14187 case $ac_top_builddir_sub in
14188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14190 esac ;;
14191 esac
14192 ac_abs_top_builddir=$ac_pwd
14193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14194 # for backward compatibility:
14195 ac_top_builddir=$ac_top_build_prefix
14196
14197 case $srcdir in
14198 .) # We are building in place.
14199 ac_srcdir=.
14200 ac_top_srcdir=$ac_top_builddir_sub
14201 ac_abs_top_srcdir=$ac_pwd ;;
14202 [\\/]* | ?:[\\/]* ) # Absolute name.
14203 ac_srcdir=$srcdir$ac_dir_suffix;
14204 ac_top_srcdir=$srcdir
14205 ac_abs_top_srcdir=$srcdir ;;
14206 *) # Relative name.
14207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14208 ac_top_srcdir=$ac_top_build_prefix$srcdir
14209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14210 esac
14211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14212
14213
14214 case $ac_mode in
14215 :F)
14216 #
14217 # CONFIG_FILE
14218 #
14219
14220 case $INSTALL in
14221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14222 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14223 esac
14224 ac_MKDIR_P=$MKDIR_P
14225 case $MKDIR_P in
14226 [\\/$]* | ?:[\\/]* ) ;;
14227 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14228 esac
14229 _ACEOF
14230
14231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14232 # If the template does not know about datarootdir, expand it.
14233 # FIXME: This hack should be removed a few years after 2.60.
14234 ac_datarootdir_hack=; ac_datarootdir_seen=
14235 ac_sed_dataroot='
14236 /datarootdir/ {
14237 p
14238 q
14239 }
14240 /@datadir@/p
14241 /@docdir@/p
14242 /@infodir@/p
14243 /@localedir@/p
14244 /@mandir@/p'
14245 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14246 *datarootdir*) ac_datarootdir_seen=yes;;
14247 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14249 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14250 _ACEOF
14251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14252 ac_datarootdir_hack='
14253 s&@datadir@&$datadir&g
14254 s&@docdir@&$docdir&g
14255 s&@infodir@&$infodir&g
14256 s&@localedir@&$localedir&g
14257 s&@mandir@&$mandir&g
14258 s&\\\${datarootdir}&$datarootdir&g' ;;
14259 esac
14260 _ACEOF
14261
14262 # Neutralize VPATH when `$srcdir' = `.'.
14263 # Shell code in configure.ac might set extrasub.
14264 # FIXME: do we really want to maintain this feature?
14265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14266 ac_sed_extra="$ac_vpsub
14267 $extrasub
14268 _ACEOF
14269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14270 :t
14271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14272 s|@configure_input@|$ac_sed_conf_input|;t t
14273 s&@top_builddir@&$ac_top_builddir_sub&;t t
14274 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14275 s&@srcdir@&$ac_srcdir&;t t
14276 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14277 s&@top_srcdir@&$ac_top_srcdir&;t t
14278 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14279 s&@builddir@&$ac_builddir&;t t
14280 s&@abs_builddir@&$ac_abs_builddir&;t t
14281 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14282 s&@INSTALL@&$ac_INSTALL&;t t
14283 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14284 $ac_datarootdir_hack
14285 "
14286 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14287 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14288
14289 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14290 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14292 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14294 which seems to be undefined. Please make sure it is defined" >&5
14295 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14296 which seems to be undefined. Please make sure it is defined" >&2;}
14297
14298 rm -f "$ac_tmp/stdin"
14299 case $ac_file in
14300 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14301 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14302 esac \
14303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14304 ;;
14305 :H)
14306 #
14307 # CONFIG_HEADER
14308 #
14309 if test x"$ac_file" != x-; then
14310 {
14311 $as_echo "/* $configure_input */" \
14312 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14313 } >"$ac_tmp/config.h" \
14314 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14315 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14317 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14318 else
14319 rm -f "$ac_file"
14320 mv "$ac_tmp/config.h" "$ac_file" \
14321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14322 fi
14323 else
14324 $as_echo "/* $configure_input */" \
14325 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14326 || as_fn_error $? "could not create -" "$LINENO" 5
14327 fi
14328 # Compute "$ac_file"'s index in $config_headers.
14329 _am_arg="$ac_file"
14330 _am_stamp_count=1
14331 for _am_header in $config_headers :; do
14332 case $_am_header in
14333 $_am_arg | $_am_arg:* )
14334 break ;;
14335 * )
14336 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14337 esac
14338 done
14339 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14340 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14341 X"$_am_arg" : 'X\(//\)[^/]' \| \
14342 X"$_am_arg" : 'X\(//\)$' \| \
14343 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14344 $as_echo X"$_am_arg" |
14345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14346 s//\1/
14347 q
14348 }
14349 /^X\(\/\/\)[^/].*/{
14350 s//\1/
14351 q
14352 }
14353 /^X\(\/\/\)$/{
14354 s//\1/
14355 q
14356 }
14357 /^X\(\/\).*/{
14358 s//\1/
14359 q
14360 }
14361 s/.*/./; q'`/stamp-h$_am_stamp_count
14362 ;;
14363
14364 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14365 $as_echo "$as_me: executing $ac_file commands" >&6;}
14366 ;;
14367 esac
14368
14369
14370 case $ac_file$ac_mode in
14371 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14372 # Older Autoconf quotes --file arguments for eval, but not when files
14373 # are listed without --file. Let's play safe and only enable the eval
14374 # if we detect the quoting.
14375 case $CONFIG_FILES in
14376 *\'*) eval set x "$CONFIG_FILES" ;;
14377 *) set x $CONFIG_FILES ;;
14378 esac
14379 shift
14380 for mf
14381 do
14382 # Strip MF so we end up with the name of the file.
14383 mf=`echo "$mf" | sed -e 's/:.*$//'`
14384 # Check whether this is an Automake generated Makefile or not.
14385 # We used to match only the files named 'Makefile.in', but
14386 # some people rename them; so instead we look at the file content.
14387 # Grep'ing the first line is not enough: some people post-process
14388 # each Makefile.in and add a new line on top of each file to say so.
14389 # Grep'ing the whole file is not good either: AIX grep has a line
14390 # limit of 2048, but all sed's we know have understand at least 4000.
14391 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14392 dirpart=`$as_dirname -- "$mf" ||
14393 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14394 X"$mf" : 'X\(//\)[^/]' \| \
14395 X"$mf" : 'X\(//\)$' \| \
14396 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14397 $as_echo X"$mf" |
14398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14399 s//\1/
14400 q
14401 }
14402 /^X\(\/\/\)[^/].*/{
14403 s//\1/
14404 q
14405 }
14406 /^X\(\/\/\)$/{
14407 s//\1/
14408 q
14409 }
14410 /^X\(\/\).*/{
14411 s//\1/
14412 q
14413 }
14414 s/.*/./; q'`
14415 else
14416 continue
14417 fi
14418 # Extract the definition of DEPDIR, am__include, and am__quote
14419 # from the Makefile without running 'make'.
14420 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14421 test -z "$DEPDIR" && continue
14422 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14423 test -z "$am__include" && continue
14424 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14425 # Find all dependency output files, they are included files with
14426 # $(DEPDIR) in their names. We invoke sed twice because it is the
14427 # simplest approach to changing $(DEPDIR) to its actual value in the
14428 # expansion.
14429 for file in `sed -n "
14430 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14431 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14432 # Make sure the directory exists.
14433 test -f "$dirpart/$file" && continue
14434 fdir=`$as_dirname -- "$file" ||
14435 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14436 X"$file" : 'X\(//\)[^/]' \| \
14437 X"$file" : 'X\(//\)$' \| \
14438 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14439 $as_echo X"$file" |
14440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14441 s//\1/
14442 q
14443 }
14444 /^X\(\/\/\)[^/].*/{
14445 s//\1/
14446 q
14447 }
14448 /^X\(\/\/\)$/{
14449 s//\1/
14450 q
14451 }
14452 /^X\(\/\).*/{
14453 s//\1/
14454 q
14455 }
14456 s/.*/./; q'`
14457 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14458 # echo "creating $dirpart/$file"
14459 echo '# dummy' > "$dirpart/$file"
14460 done
14461 done
14462 }
14463 ;;
14464 "libtool":C)
14465
14466 # See if we are running on zsh, and set the options that allow our
14467 # commands through without removal of \ escapes.
14468 if test -n "${ZSH_VERSION+set}"; then
14469 setopt NO_GLOB_SUBST
14470 fi
14471
14472 cfgfile=${ofile}T
14473 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14474 $RM "$cfgfile"
14475
14476 cat <<_LT_EOF >> "$cfgfile"
14477 #! $SHELL
14478 # Generated automatically by $as_me ($PACKAGE) $VERSION
14479 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14481
14482 # Provide generalized library-building support services.
14483 # Written by Gordon Matzigkeit, 1996
14484
14485 # Copyright (C) 2014 Free Software Foundation, Inc.
14486 # This is free software; see the source for copying conditions. There is NO
14487 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14488
14489 # GNU Libtool is free software; you can redistribute it and/or modify
14490 # it under the terms of the GNU General Public License as published by
14491 # the Free Software Foundation; either version 2 of of the License, or
14492 # (at your option) any later version.
14493 #
14494 # As a special exception to the GNU General Public License, if you
14495 # distribute this file as part of a program or library that is built
14496 # using GNU Libtool, you may include this file under the same
14497 # distribution terms that you use for the rest of that program.
14498 #
14499 # GNU Libtool is distributed in the hope that it will be useful, but
14500 # WITHOUT ANY WARRANTY; without even the implied warranty of
14501 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14502 # GNU General Public License for more details.
14503 #
14504 # You should have received a copy of the GNU General Public License
14505 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14506
14507
14508 # The names of the tagged configurations supported by this script.
14509 available_tags=''
14510
14511 # ### BEGIN LIBTOOL CONFIG
14512
14513 # Which release of libtool.m4 was used?
14514 macro_version=$macro_version
14515 macro_revision=$macro_revision
14516
14517 # Whether or not to build shared libraries.
14518 build_libtool_libs=$enable_shared
14519
14520 # Whether or not to build static libraries.
14521 build_old_libs=$enable_static
14522
14523 # What type of objects to build.
14524 pic_mode=$pic_mode
14525
14526 # Whether or not to optimize for fast installation.
14527 fast_install=$enable_fast_install
14528
14529 # Shared archive member basename,for filename based shared library versioning on AIX.
14530 shared_archive_member_spec=$shared_archive_member_spec
14531
14532 # Shell to use when invoking shell scripts.
14533 SHELL=$lt_SHELL
14534
14535 # An echo program that protects backslashes.
14536 ECHO=$lt_ECHO
14537
14538 # The PATH separator for the build system.
14539 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14540
14541 # The host system.
14542 host_alias=$host_alias
14543 host=$host
14544 host_os=$host_os
14545
14546 # The build system.
14547 build_alias=$build_alias
14548 build=$build
14549 build_os=$build_os
14550
14551 # A sed program that does not truncate output.
14552 SED=$lt_SED
14553
14554 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14555 Xsed="\$SED -e 1s/^X//"
14556
14557 # A grep program that handles long lines.
14558 GREP=$lt_GREP
14559
14560 # An ERE matcher.
14561 EGREP=$lt_EGREP
14562
14563 # A literal string matcher.
14564 FGREP=$lt_FGREP
14565
14566 # A BSD- or MS-compatible name lister.
14567 NM=$lt_NM
14568
14569 # Whether we need soft or hard links.
14570 LN_S=$lt_LN_S
14571
14572 # What is the maximum length of a command?
14573 max_cmd_len=$max_cmd_len
14574
14575 # Object file suffix (normally "o").
14576 objext=$ac_objext
14577
14578 # Executable file suffix (normally "").
14579 exeext=$exeext
14580
14581 # whether the shell understands "unset".
14582 lt_unset=$lt_unset
14583
14584 # turn spaces into newlines.
14585 SP2NL=$lt_lt_SP2NL
14586
14587 # turn newlines into spaces.
14588 NL2SP=$lt_lt_NL2SP
14589
14590 # convert \$build file names to \$host format.
14591 to_host_file_cmd=$lt_cv_to_host_file_cmd
14592
14593 # convert \$build files to toolchain format.
14594 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14595
14596 # An object symbol dumper.
14597 OBJDUMP=$lt_OBJDUMP
14598
14599 # Method to check whether dependent libraries are shared objects.
14600 deplibs_check_method=$lt_deplibs_check_method
14601
14602 # Command to use when deplibs_check_method = "file_magic".
14603 file_magic_cmd=$lt_file_magic_cmd
14604
14605 # How to find potential files when deplibs_check_method = "file_magic".
14606 file_magic_glob=$lt_file_magic_glob
14607
14608 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14609 want_nocaseglob=$lt_want_nocaseglob
14610
14611 # DLL creation program.
14612 DLLTOOL=$lt_DLLTOOL
14613
14614 # Command to associate shared and link libraries.
14615 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14616
14617 # The archiver.
14618 AR=$lt_AR
14619
14620 # Flags to create an archive.
14621 AR_FLAGS=$lt_AR_FLAGS
14622
14623 # How to feed a file listing to the archiver.
14624 archiver_list_spec=$lt_archiver_list_spec
14625
14626 # A symbol stripping program.
14627 STRIP=$lt_STRIP
14628
14629 # Commands used to install an old-style archive.
14630 RANLIB=$lt_RANLIB
14631 old_postinstall_cmds=$lt_old_postinstall_cmds
14632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14633
14634 # Whether to use a lock for old archive extraction.
14635 lock_old_archive_extraction=$lock_old_archive_extraction
14636
14637 # A C compiler.
14638 LTCC=$lt_CC
14639
14640 # LTCC compiler flags.
14641 LTCFLAGS=$lt_CFLAGS
14642
14643 # Take the output of nm and produce a listing of raw symbols and C names.
14644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14645
14646 # Transform the output of nm in a proper C declaration.
14647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14648
14649 # Transform the output of nm into a list of symbols to manually relocate.
14650 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14651
14652 # Transform the output of nm in a C name address pair.
14653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14654
14655 # Transform the output of nm in a C name address pair when lib prefix is needed.
14656 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14657
14658 # The name lister interface.
14659 nm_interface=$lt_lt_cv_nm_interface
14660
14661 # Specify filename containing input files for \$NM.
14662 nm_file_list_spec=$lt_nm_file_list_spec
14663
14664 # The root where to search for dependent libraries,and where our libraries should be installed.
14665 lt_sysroot=$lt_sysroot
14666
14667 # Command to truncate a binary pipe.
14668 lt_truncate_bin=$lt_lt_cv_truncate_bin
14669
14670 # The name of the directory that contains temporary libtool files.
14671 objdir=$objdir
14672
14673 # Used to examine libraries when file_magic_cmd begins with "file".
14674 MAGIC_CMD=$MAGIC_CMD
14675
14676 # Must we lock files when doing compilation?
14677 need_locks=$lt_need_locks
14678
14679 # Manifest tool.
14680 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14681
14682 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14683 DSYMUTIL=$lt_DSYMUTIL
14684
14685 # Tool to change global to local symbols on Mac OS X.
14686 NMEDIT=$lt_NMEDIT
14687
14688 # Tool to manipulate fat objects and archives on Mac OS X.
14689 LIPO=$lt_LIPO
14690
14691 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14692 OTOOL=$lt_OTOOL
14693
14694 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14695 OTOOL64=$lt_OTOOL64
14696
14697 # Old archive suffix (normally "a").
14698 libext=$libext
14699
14700 # Shared library suffix (normally ".so").
14701 shrext_cmds=$lt_shrext_cmds
14702
14703 # The commands to extract the exported symbol list from a shared archive.
14704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14705
14706 # Variables whose values should be saved in libtool wrapper scripts and
14707 # restored at link time.
14708 variables_saved_for_relink=$lt_variables_saved_for_relink
14709
14710 # Do we need the "lib" prefix for modules?
14711 need_lib_prefix=$need_lib_prefix
14712
14713 # Do we need a version for libraries?
14714 need_version=$need_version
14715
14716 # Library versioning type.
14717 version_type=$version_type
14718
14719 # Shared library runtime path variable.
14720 runpath_var=$runpath_var
14721
14722 # Shared library path variable.
14723 shlibpath_var=$shlibpath_var
14724
14725 # Is shlibpath searched before the hard-coded library search path?
14726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14727
14728 # Format of library name prefix.
14729 libname_spec=$lt_libname_spec
14730
14731 # List of archive names. First name is the real one, the rest are links.
14732 # The last name is the one that the linker finds with -lNAME
14733 library_names_spec=$lt_library_names_spec
14734
14735 # The coded name of the library, if different from the real name.
14736 soname_spec=$lt_soname_spec
14737
14738 # Permission mode override for installation of shared libraries.
14739 install_override_mode=$lt_install_override_mode
14740
14741 # Command to use after installation of a shared archive.
14742 postinstall_cmds=$lt_postinstall_cmds
14743
14744 # Command to use after uninstallation of a shared archive.
14745 postuninstall_cmds=$lt_postuninstall_cmds
14746
14747 # Commands used to finish a libtool library installation in a directory.
14748 finish_cmds=$lt_finish_cmds
14749
14750 # As "finish_cmds", except a single script fragment to be evaled but
14751 # not shown.
14752 finish_eval=$lt_finish_eval
14753
14754 # Whether we should hardcode library paths into libraries.
14755 hardcode_into_libs=$hardcode_into_libs
14756
14757 # Compile-time system search path for libraries.
14758 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14759
14760 # Run-time system search path for libraries.
14761 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14762
14763 # Whether dlopen is supported.
14764 dlopen_support=$enable_dlopen
14765
14766 # Whether dlopen of programs is supported.
14767 dlopen_self=$enable_dlopen_self
14768
14769 # Whether dlopen of statically linked programs is supported.
14770 dlopen_self_static=$enable_dlopen_self_static
14771
14772 # Commands to strip libraries.
14773 old_striplib=$lt_old_striplib
14774 striplib=$lt_striplib
14775
14776
14777 # The linker used to build libraries.
14778 LD=$lt_LD
14779
14780 # How to create reloadable object files.
14781 reload_flag=$lt_reload_flag
14782 reload_cmds=$lt_reload_cmds
14783
14784 # Commands used to build an old-style archive.
14785 old_archive_cmds=$lt_old_archive_cmds
14786
14787 # A language specific compiler.
14788 CC=$lt_compiler
14789
14790 # Is the compiler the GNU compiler?
14791 with_gcc=$GCC
14792
14793 # Compiler flag to turn off builtin functions.
14794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14795
14796 # Additional compiler flags for building library objects.
14797 pic_flag=$lt_lt_prog_compiler_pic
14798
14799 # How to pass a linker flag through the compiler.
14800 wl=$lt_lt_prog_compiler_wl
14801
14802 # Compiler flag to prevent dynamic linking.
14803 link_static_flag=$lt_lt_prog_compiler_static
14804
14805 # Does compiler simultaneously support -c and -o options?
14806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14807
14808 # Whether or not to add -lc for building shared libraries.
14809 build_libtool_need_lc=$archive_cmds_need_lc
14810
14811 # Whether or not to disallow shared libs when runtime libs are static.
14812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14813
14814 # Compiler flag to allow reflexive dlopens.
14815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14816
14817 # Compiler flag to generate shared objects directly from archives.
14818 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14819
14820 # Whether the compiler copes with passing no objects directly.
14821 compiler_needs_object=$lt_compiler_needs_object
14822
14823 # Create an old-style archive from a shared archive.
14824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14825
14826 # Create a temporary old-style archive to link instead of a shared archive.
14827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14828
14829 # Commands used to build a shared archive.
14830 archive_cmds=$lt_archive_cmds
14831 archive_expsym_cmds=$lt_archive_expsym_cmds
14832
14833 # Commands used to build a loadable module if different from building
14834 # a shared archive.
14835 module_cmds=$lt_module_cmds
14836 module_expsym_cmds=$lt_module_expsym_cmds
14837
14838 # Whether we are building with GNU ld or not.
14839 with_gnu_ld=$lt_with_gnu_ld
14840
14841 # Flag that allows shared libraries with undefined symbols to be built.
14842 allow_undefined_flag=$lt_allow_undefined_flag
14843
14844 # Flag that enforces no undefined symbols.
14845 no_undefined_flag=$lt_no_undefined_flag
14846
14847 # Flag to hardcode \$libdir into a binary during linking.
14848 # This must work even if \$libdir does not exist
14849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14850
14851 # Whether we need a single "-rpath" flag with a separated argument.
14852 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14853
14854 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14855 # DIR into the resulting binary.
14856 hardcode_direct=$hardcode_direct
14857
14858 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14859 # DIR into the resulting binary and the resulting library dependency is
14860 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14861 # library is relocated.
14862 hardcode_direct_absolute=$hardcode_direct_absolute
14863
14864 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14865 # into the resulting binary.
14866 hardcode_minus_L=$hardcode_minus_L
14867
14868 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14869 # into the resulting binary.
14870 hardcode_shlibpath_var=$hardcode_shlibpath_var
14871
14872 # Set to "yes" if building a shared library automatically hardcodes DIR
14873 # into the library and all subsequent libraries and executables linked
14874 # against it.
14875 hardcode_automatic=$hardcode_automatic
14876
14877 # Set to yes if linker adds runtime paths of dependent libraries
14878 # to runtime path list.
14879 inherit_rpath=$inherit_rpath
14880
14881 # Whether libtool must link a program against all its dependency libraries.
14882 link_all_deplibs=$link_all_deplibs
14883
14884 # Set to "yes" if exported symbols are required.
14885 always_export_symbols=$always_export_symbols
14886
14887 # The commands to list exported symbols.
14888 export_symbols_cmds=$lt_export_symbols_cmds
14889
14890 # Symbols that should not be listed in the preloaded symbols.
14891 exclude_expsyms=$lt_exclude_expsyms
14892
14893 # Symbols that must always be exported.
14894 include_expsyms=$lt_include_expsyms
14895
14896 # Commands necessary for linking programs (against libraries) with templates.
14897 prelink_cmds=$lt_prelink_cmds
14898
14899 # Commands necessary for finishing linking programs.
14900 postlink_cmds=$lt_postlink_cmds
14901
14902 # Specify filename containing input files.
14903 file_list_spec=$lt_file_list_spec
14904
14905 # How to hardcode a shared library path into an executable.
14906 hardcode_action=$hardcode_action
14907
14908 # ### END LIBTOOL CONFIG
14909
14910 _LT_EOF
14911
14912 case $host_os in
14913 aix3*)
14914 cat <<\_LT_EOF >> "$cfgfile"
14915 # AIX sometimes has problems with the GCC collect2 program. For some
14916 # reason, if we set the COLLECT_NAMES environment variable, the problems
14917 # vanish in a puff of smoke.
14918 if test set != "${COLLECT_NAMES+set}"; then
14919 COLLECT_NAMES=
14920 export COLLECT_NAMES
14921 fi
14922 _LT_EOF
14923 ;;
14924 esac
14925
14926
14927 ltmain=$ac_aux_dir/ltmain.sh
14928
14929
14930 # We use sed instead of cat because bash on DJGPP gets confused if
14931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14932 # text mode, it properly converts lines to CR/LF. This bash problem
14933 # is reportedly fixed, but why not run on old versions too?
14934 sed '$q' "$ltmain" >> "$cfgfile" \
14935 || (rm -f "$cfgfile"; exit 1)
14936
14937 mv -f "$cfgfile" "$ofile" ||
14938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14939 chmod +x "$ofile"
14940
14941 ;;
14942
14943 esac
14944 done # for ac_tag
14945
14946
14947 as_fn_exit 0
14948 _ACEOF
14949 ac_clean_files=$ac_clean_files_save
14950
14951 test $ac_write_fail = 0 ||
14952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14953
14954
14955 # configure is writing to config.log, and then calls config.status.
14956 # config.status does its own redirection, appending to config.log.
14957 # Unfortunately, on DOS this fails, as config.log is still kept open
14958 # by configure, so config.status won't be able to write to it; its
14959 # output is simply discarded. So we exec the FD to /dev/null,
14960 # effectively closing config.log, so it can be properly (re)opened and
14961 # appended to by config.status. When coming back to configure, we
14962 # need to make the FD available again.
14963 if test "$no_create" != yes; then
14964 ac_cs_success=:
14965 ac_config_status_args=
14966 test "$silent" = yes &&
14967 ac_config_status_args="$ac_config_status_args --quiet"
14968 exec 5>/dev/null
14969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14970 exec 5>>config.log
14971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14972 # would make configure fail if this is the last instruction.
14973 $ac_cs_success || as_fn_exit 1
14974 fi
14975 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14977 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14978 fi
14979
14980
14981
14982 echo "###############################################################################"
14983 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
14984 echo
14985 echo "HOPM will be installed in ${prefix}. To change this, run:"
14986 echo " ./configure --prefix=DIRECTORY"
14987 echo "###############################################################################"

Properties

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